:root {
  --ink: #f4f2eb;
  --muted: #b7b8b0;
  --bg: #11130f;
  --surface: #1a1d18;
  --line: rgba(244, 242, 235, .16);
  --accent: #f28c28;
  --accent-hot: #ffad41;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--accent); color: #111; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 50; top: 0; left: 0; width: 100%; height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 4vw, 64px); transition: background .25s, height .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled { height: 72px; background: rgba(17, 19, 15, .92); backdrop-filter: blur(16px); border-color: var(--line); }
.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; padding: 6px 14px 6px 8px; background: rgba(255, 255, 255, .94); color: #191b16; text-decoration: none; }
.brand img { flex: 0 0 auto; width: 51px; height: 53px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 1.45rem; font-weight: 520; letter-spacing: -.045em; }
.brand-copy small { font-size: .48em; font-weight: 650; letter-spacing: -.01em; }
.brand-copy > span { margin-top: 5px; font-size: .48rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.navigation { display: flex; align-items: center; gap: clamp(20px, 2.8vw, 42px); }
.navigation a { text-decoration: none; font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.navigation a:not(.nav-portal) { padding: 28px 0; }
.navigation a:not(.nav-portal):hover { color: var(--accent-hot); }
.nav-portal { padding: 12px 18px; border: 1px solid rgba(255,255,255,.5); }
.nav-portal:hover { color: #111; background: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: white; }
.menu-toggle > span:not(.sr-only) { display: block; width: 20px; height: 1px; margin: 5px auto; background: currentColor; }

.hero { position: relative; min-height: 780px; height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media, .hero-shade, .hero-grid { position: absolute; inset: 0; }
.hero-media { background: url("assets/hero.jpg") 58% 50% / cover no-repeat; transform: scale(1.02); }
.hero-shade { background: linear-gradient(90deg, rgba(10,12,9,.94) 0%, rgba(10,12,9,.72) 42%, rgba(10,12,9,.12) 78%), linear-gradient(0deg, rgba(10,12,9,.75) 0%, transparent 48%); }
.hero-grid { opacity: .12; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 92px 92px; mask-image: linear-gradient(90deg, black, transparent 78%); }
.hero-content { position: relative; z-index: 1; width: min(860px, 90vw); margin: 0 0 clamp(96px, 12vh, 140px) max(5vw, calc((100vw - var(--max)) / 2)); }
.eyebrow { margin: 0 0 20px; color: var(--accent-hot); font-size: .75rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero h1, .section h2, .process h2, .partnership h2, .contact h2 { margin: 0; font-size: clamp(3.3rem, 7.2vw, 7rem); line-height: .91; letter-spacing: -.055em; text-transform: uppercase; }
.hero h1 em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; text-transform: none; }
.hero-copy { width: min(620px, 100%); margin: 30px 0 0; color: #e0e0da; font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid rgba(255,255,255,.45); text-decoration: none; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: .2s ease; }
.button-primary { border-color: var(--accent); background: var(--accent); color: #111; }
.button-primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); transform: translateY(-2px); }
.button-ghost:hover { background: var(--ink); color: #111; transform: translateY(-2px); }
.hero-index { position: absolute; right: clamp(22px, 4vw, 64px); bottom: 36px; display: flex; align-items: baseline; gap: 18px; font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero-index span:first-child { color: var(--accent); font-size: 1.4rem; }

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.ticker div { width: max-content; padding: 18px 0; color: #d7d6cf; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; animation: marquee 26s linear infinite; }
.ticker span { margin: 0 26px; color: var(--accent); }

.section { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: 128px 0; }
.section-heading { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 44px; align-items: end; margin-bottom: 68px; }
.section-heading .eyebrow { align-self: start; }
.section-heading h2 { font-size: clamp(2.8rem, 5vw, 5.6rem); }
.section-heading > p:last-child { margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.service-card { position: relative; min-height: 340px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.service-card-large { grid-row: span 2; min-height: 700px; }
.service-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); transition: transform .6s ease; }
.service-card:hover img { transform: scale(1.035); }
.service-card-content { position: absolute; z-index: 2; inset: auto 0 0; padding: 30px; background: linear-gradient(0deg, rgba(11,13,10,.97), rgba(11,13,10,.7) 65%, transparent); }
.service-card:not(.service-card-image) .service-card-content { position: static; display: flex; height: 100%; flex-direction: column; justify-content: flex-end; background: none; }
.service-card-content > span { color: var(--accent); font: 700 .76rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.service-card h3 { margin: 20px 0 10px; font-size: clamp(1.5rem, 2vw, 2.1rem); line-height: 1.05; text-transform: uppercase; }
.service-card p { max-width: 520px; margin: 0; color: var(--muted); }
.service-card-image { min-height: 340px; }

.process { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 10vw, 150px); padding: 128px max(5vw, calc((100vw - var(--max)) / 2)); background: var(--ink); color: #181a15; }
.process .eyebrow { color: #a95811; }
.process h2 { font-size: clamp(2.8rem, 5.2vw, 5.8rem); }
.process-intro > p:last-child { max-width: 460px; margin-top: 28px; color: #5e605a; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #c8c7c0; }
.process-list li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid #c8c7c0; }
.process-list li > span { padding-top: 6px; color: #a95811; font: 700 .75rem/1 ui-monospace, monospace; }
.process-list h3 { margin: 0 0 5px; font-size: 1.45rem; text-transform: uppercase; }
.process-list p { margin: 0; color: #696b64; }

.partnership { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.partnership-image { position: relative; }
.partnership-image img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; filter: saturate(.75); }
.image-label { position: absolute; bottom: -18px; right: -18px; padding: 17px 20px; background: var(--accent); color: #151812; font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.partnership h2 { font-size: clamp(2.6rem, 4.5vw, 5rem); }
.partnership-copy > p:not(.eyebrow) { max-width: 550px; margin: 28px 0; color: var(--muted); }
.text-link { display: inline-block; padding-bottom: 5px; border-bottom: 1px solid var(--accent); color: var(--ink); text-decoration: none; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.text-link span { color: var(--accent); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 10vw, 150px); padding: 120px max(5vw, calc((100vw - var(--max)) / 2)); background: var(--accent); color: #141610; }
.contact .eyebrow { color: #6d3405; }
.contact h2 { font-size: clamp(3rem, 5.2vw, 5.8rem); }
.contact-copy > p:last-child { max-width: 500px; margin-top: 28px; color: #4c3117; }
.contact-links { border-top: 1px solid rgba(20,22,16,.28); }
.contact-links > * { position: relative; display: block; padding: 24px 48px 24px 0; border-bottom: 1px solid rgba(20,22,16,.28); text-decoration: none; }
.contact-links span { display: block; margin-bottom: 7px; color: #6d421c; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-links strong { font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.2; }
.contact-links i { position: absolute; right: 4px; top: 34px; font-size: 1.3rem; font-style: normal; }
.contact-links a:hover strong { text-decoration: underline; text-underline-offset: 5px; }

.site-footer { position: relative; min-height: 160px; display: flex; align-items: flex-end; overflow: hidden; padding: 48px max(5vw, calc((100vw - var(--max)) / 2)); }
.site-footer > img { position: absolute; right: 4vw; bottom: -165px; width: 310px; opacity: .08; }
.site-footer > div { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; width: 100%; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { margin: 0 auto 0 0; }
.footer-link { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; text-transform: uppercase; }
.prototype-badge { padding: 5px 8px; border: 1px solid #6e461e; color: var(--accent-hot); }

.legal-dialog { width: min(720px, calc(100% - 30px)); max-height: 88vh; padding: 0; border: 1px solid #42443e; background: #f2f0e9; color: #171914; box-shadow: 0 30px 100px #000; }
.legal-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.legal-content { padding: clamp(32px, 6vw, 70px); }
.legal-content .eyebrow { color: #a95811; }
.legal-content h2 { margin: 0 0 35px; font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1; text-transform: uppercase; }
.legal-content h3 { margin: 28px 0 8px; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; }
.legal-content p { color: #555750; }
.legal-content a { color: #6f3909; }
.legal-note { margin-top: 36px; padding-top: 22px; border-top: 1px solid #c7c7bf; font-size: .78rem; }
.dialog-close { position: sticky; z-index: 2; top: 14px; float: right; width: 44px; height: 44px; margin: 14px 14px -58px 0; border: 1px solid #b9b9b1; background: #f2f0e9; cursor: pointer; font-size: 1.6rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .site-header { height: 72px; }
  .brand { gap: 8px; padding: 5px 10px 5px 6px; }
  .brand img { width: 43px; height: 44px; }
  .brand-copy strong { font-size: 1.18rem; }
  .brand-copy > span { font-size: .4rem; letter-spacing: .12em; }
  .menu-toggle { position: relative; z-index: 2; display: block; }
  .navigation { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 100px 30px; background: rgba(17,19,15,.98); visibility: hidden; opacity: 0; transition: .2s; }
  .navigation.open { visibility: visible; opacity: 1; }
  .navigation a:not(.nav-portal) { padding: 12px; font-size: 1.5rem; }
  .nav-portal { margin-top: 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .section-heading .eyebrow { margin: 0; }
  .process { grid-template-columns: 1fr; }
  .partnership { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero { min-height: 720px; }
  .hero-media { background-position: 62% 50%; }
  .hero-shade { background: linear-gradient(90deg, rgba(10,12,9,.95), rgba(10,12,9,.48)), linear-gradient(0deg, rgba(10,12,9,.9), transparent); }
  .hero-content { margin-left: 22px; margin-bottom: 110px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-copy { font-size: 1rem; }
  .hero-index { left: 22px; right: auto; bottom: 28px; }
  .section { width: min(100% - 36px, var(--max)); padding: 90px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card-large { grid-row: auto; min-height: 520px; }
  .service-card { min-height: 310px; }
  .service-card-content { padding: 24px; }
  .process, .contact { padding: 90px 22px; }
  .partnership { gap: 55px; }
  .image-label { right: -8px; }
  .site-footer { padding: 40px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
