/* Ryterna Modul — design mockup (static). Brand: burgundy #940224 on light surfaces, Ubuntu. */
@font-face { font-family: "Ubuntu"; font-weight: 300; font-display: swap; src: url("fonts/ubuntu-300-latin.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 400; font-display: swap; src: url("fonts/ubuntu-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 500; font-display: swap; src: url("fonts/ubuntu-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 700; font-display: swap; src: url("fonts/ubuntu-700-latin.woff2") format("woff2"); }

:root {
  --brand: #940224; --brand-dark: #76011c; --brand-tint: #f7e7eb;
  --ink: #1c1a1a; --charcoal: #282525; --text: #5f5b5b; --muted: #8a8585;
  --line: #e6e2e2; --surface: #f6f4f4; --surface-2: #ebe7e7; --white: #fff;
  --sans: "Ubuntu", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px); --max: 1200px; --ease: cubic-bezier(.2,.7,.1,1);
  --shadow: 0 10px 30px rgba(40,37,37,.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 300; line-height: 1.1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.thin { color: var(--muted); font-weight: 300; }
.on-dark .thin { color: rgba(255,255,255,.55); }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 16px; font: 500 13px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 50px; height: 2px; background: currentColor; flex: none; }
.on-dark .eyebrow { color: #fff; }
.h2 { font-size: clamp(32px, 4vw, 56px); letter-spacing: 0; }
.h3 { font-size: clamp(26px, 3vw, 40px); }
.lead { font-size: clamp(17px, 1.3vw, 19px); max-width: 60ch; margin-top: 20px; }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: rgba(255,255,255,.82); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; font: 500 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 18px 28px; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 0; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn svg { transition: transform .25s var(--ease); } .btn:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; } .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); } .btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 12px; font: 500 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); padding: 8px 0; }
.link::after { content: "\2192"; font-size: 18px; transition: transform .25s var(--ease); } .link:hover::after { transform: translateX(4px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 0 7px rgba(0,0,0,.12); }
.hdr .wrap { max-width: 1400px; display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 32px; }
.logo img { width: 200px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font: 500 12.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: 8px 0; position: relative; transition: color .2s; }
.nav a:hover, .nav a.on { color: var(--brand); }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brand); }
.nav .cta { background: var(--brand); color: #fff; padding: 14px 22px; margin-left: 8px; letter-spacing: .1em; }
.nav .cta:hover { background: var(--brand-dark); color: #fff; }
.nav .cta::after { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 24px; gap: 0; border-top: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.1); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav a.on::after { display: none; }
  .nav .cta { margin: 16px 0 0; text-align: center; }
  .burger { display: block; }
  .logo img { width: 160px; }
}

/* sections */
.sec { position: relative; padding: clamp(72px, 9vw, 128px) 0; overflow: hidden; isolation: isolate; }
.sec--surface { background: var(--surface); }
.sec--ink { background: var(--ink); }
.wm { position: absolute; left: var(--gutter); top: clamp(24px, 4vw, 56px); pointer-events: none; z-index: 0; }
.wm span { display: block; font: 500 clamp(72px, 13vw, 200px)/.8 var(--sans); color: #f1f1f1; white-space: nowrap; user-select: none; }
.sec--surface .wm span { color: #e9e5e5; }
.sec--ink .wm span { color: rgba(255,255,255,.04); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cols--intro { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 900px) { .cols, .cols--intro { grid-template-columns: 1fr; gap: 40px; } }

/* hero */
.hero { position: relative; min-height: 88vh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,18,18,.25) 0%, rgba(20,18,18,.15) 40%, rgba(20,18,18,.65) 100%), linear-gradient(90deg, rgba(20,18,18,.6) 0%, rgba(20,18,18,.2) 60%, rgba(20,18,18,0) 100%); }
.hero .wrap { width: 100%; padding-top: 140px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 72px); max-width: 16ch; }
.hero h1 strong { font-weight: 400; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 54ch; }
.hero .ill { position: absolute; right: var(--gutter); bottom: 20px; font-size: 12px; color: rgba(255,255,255,.7); }

/* intro */
.statement { font-size: clamp(26px, 3.2vw, 46px); line-height: 1.18; font-weight: 300; color: var(--ink); max-width: 24ch; }
.statement em { font-style: normal; font-weight: 400; color: var(--brand); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fact { background: #fff; padding: 30px 26px; }
.fact .n { font: 300 clamp(40px, 4vw, 60px)/1 var(--sans); color: var(--ink); }
.fact .n span { color: var(--brand); font-size: .55em; margin-left: 2px; }
.fact .l { font-size: 15px; margin-top: 10px; }
.sec--ink .facts { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }
.sec--ink .fact { background: var(--ink); } .sec--ink .fact .n { color: #fff; } .sec--ink .fact .l { color: rgba(255,255,255,.65); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* cards */
.grid { display: grid; gap: 28px; margin-top: 48px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }
.sol figure { overflow: hidden; margin-bottom: 18px; aspect-ratio: 4/5; }
.sol img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sol:hover img { transform: scale(1.04); }
.sol h3 { font-size: 22px; font-weight: 400; margin-bottom: 6px; } .sol:hover h3 { color: var(--brand); }
.sol p { font-size: 15px; }
.proj { position: relative; }
.proj figure { overflow: hidden; aspect-ratio: 4/5; }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj:hover img { transform: scale(1.04); }
.proj .body { position: relative; margin: -40px 20px 0; background: #fff; padding: 20px 24px 22px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.proj h3 { font-size: 21px; font-weight: 400; margin-bottom: 6px; } .proj:hover h3 { color: var(--brand); }
.proj .meta { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.proj .meta span + span::before { content: "\00b7"; margin: 0 8px; }
.news figure { overflow: hidden; aspect-ratio: 4/3; margin-bottom: 16px; }
.news img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); } .news:hover img { transform: scale(1.04); }
.news .date { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.news h3 { font-size: 21px; font-weight: 400; margin-bottom: 8px; } .news:hover h3 { color: var(--brand); }
.news p { font-size: 15px; }

/* checks */
.checks { margin-top: 28px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 5px; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }
.checks b { color: var(--ink); font-weight: 500; }
.shadow { box-shadow: var(--shadow); }
.about-img { aspect-ratio: 4/3; overflow: hidden; } .about-img img { width: 100%; height: 100%; object-fit: cover; }

/* cta */
.cta { position: relative; padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -2; } .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,26,26,.94) 0%, rgba(28,26,26,.86) 45%, rgba(28,26,26,.6) 100%); }
.cta .cols { grid-template-columns: 1.4fr 1fr; }
.cta .btns { justify-content: flex-end; margin-top: 0; }
@media (max-width: 900px) { .cta .cols { grid-template-columns: 1fr; } .cta .btns { justify-content: flex-start; } }

/* footer */
.ftr { background: var(--ink); color: rgba(255,255,255,.78); font-size: 15px; padding: 72px 0 32px; }
.ftr .grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; margin-top: 0; gap: 40px; }
@media (max-width: 900px) { .ftr .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr .grid { grid-template-columns: 1fr; } }
.ftr .logo img { width: 180px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.ftr .lbl { font: 500 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.ftr li + li { margin-top: 8px; } .ftr a:hover { color: #fff; }
.ftr .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.55); }

/* inner page */
.page-head { background: var(--surface); padding: clamp(48px, 6vw, 80px) 0 40px; }
.page-head h1 { font-size: clamp(36px, 4.5vw, 60px); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filter a { padding: 11px 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: .2s; }
.filter a:hover { border-color: var(--brand); color: var(--brand); }
.filter a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination { display: flex; justify-content: center; gap: 20px; margin-top: 56px; font: 500 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.pagination .cur { color: var(--brand); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s !important; } .d2 { transition-delay: .16s !important; } .d3 { transition-delay: .24s !important; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* mockup badge */
.mock { position: fixed; left: 16px; bottom: 16px; z-index: 60; background: var(--ink); color: #fff; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; opacity: .85; }
