:root {
  --bg: #0a0a0c;
  --surface: #121216;
  --surface-2: #18181d;
  --text: #f6f3ed;
  --muted: #a6a4aa;
  --line: rgba(255,255,255,.14);
  --cyan: #29d9ff;
  --magenta: #ff2b9d;
  --yellow: #ffd52e;
  --page: min(1500px, calc(100vw - 80px));
  --header-h: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
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: 1000; top: 12px; left: 12px; padding: 10px 14px; color: #000; background: var(--yellow); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.noise { position: fixed; z-index: 50; inset: 0; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.progress { position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: 2px; }
.progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow)); transform: scaleX(0); transform-origin: left; }

.site-header { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 max(28px, calc((100vw - 1500px)/2)); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, backdrop-filter .25s; }
.site-header.is-scrolled { background: rgba(10,10,12,.82); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 12px; font-weight: 850; font-size: 15px; line-height: 1; letter-spacing: -.035em; }
.brand-mark { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--text); border-radius: 50%; }
.brand-mark i { width: 4px; height: 42px; border-radius: 4px; background: var(--magenta); transform: rotate(45deg); box-shadow: 0 0 14px rgba(255,43,157,.45); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { position: relative; color: #d7d5d7; font-size: 14px; font-weight: 650; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--text); transition: right .22s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.header-index { justify-self: end; color: var(--muted); font: 600 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.menu-button { display: none; }

.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 72px) max(40px, calc((100vw - 1500px)/2)) 80px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(520px, 1.05fr); gap: 40px; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: 0; width: 52vw; aspect-ratio: 1; left: -24vw; top: 16%; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 8vw rgba(255,255,255,.018), 0 0 0 16vw rgba(255,255,255,.012); }
.hero-copy, .hero-reel { position: relative; z-index: 1; }
.eyebrow, .kicker { margin: 0 0 26px; color: var(--muted); font: 650 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(54px, 6.7vw, 112px); line-height: .87; letter-spacing: -.072em; font-weight: 860; }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(255,255,255,.7); text-stroke: 1px rgba(255,255,255,.7); }
.hero-lead { max-width: 590px; margin: 38px 0 0; color: #c8c6ca; font-size: clamp(18px, 1.4vw, 23px); line-height: 1.48; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.hero-actions p { margin: 0; color: #7d7b82; font: 600 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; min-width: 220px; min-height: 54px; padding: 0 19px; border: 1px solid var(--line); font-size: 14px; font-weight: 750; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.button span { font-size: 20px; font-weight: 400; }
.button:hover, .button:focus-visible { transform: translateY(-3px); }
.button-primary { color: #050506; background: var(--yellow); border-color: var(--yellow); }
.button-primary:hover, .button-primary:focus-visible { background: #fff; border-color: #fff; }
.hero-reel { min-height: 630px; perspective: 1200px; }
.hero-reel figure { position: absolute; margin: 0; overflow: hidden; background: #18181d; box-shadow: 0 34px 90px rgba(0,0,0,.42); }
.hero-reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.hero-reel figure:hover img { transform: scale(1.035); }
.hero-reel figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 18px 20px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.82)); font-size: 14px; font-weight: 750; }
.hero-reel figcaption span { color: rgba(255,255,255,.58); font: 600 12px/1.5 ui-monospace, monospace; }
.reel-main { top: 30px; left: 0; width: 84%; aspect-ratio: 1.6; transform: rotate(-2.5deg); }
.reel-side { right: 0; bottom: 12px; width: 49%; aspect-ratio: 1.22; border: 7px solid var(--bg); transform: rotate(4deg); }
.orbit-label { position: absolute; right: -28px; top: 18px; width: 112px; height: 112px; display: grid; place-items: center; color: var(--magenta); border: 1px solid rgba(255,43,157,.38); border-radius: 50%; font: 700 9px/1.25 ui-monospace, monospace; letter-spacing: .1em; text-align: center; transform: rotate(10deg); }
.scroll-note { position: absolute; z-index: 2; left: max(40px, calc((100vw - 1500px)/2)); bottom: 30px; display: inline-flex; align-items: center; gap: 18px; color: #77757c; font-size: 12px; }

.section-shell { width: var(--page); margin-inline: auto; }
.projects { padding: 150px 0; }
.section-head { display: grid; grid-template-columns: 1.2fr .55fr; gap: 90px; align-items: end; margin-bottom: 68px; }
.section-head h2, .approach h2, .lab h2 { margin: 0; font-size: clamp(42px, 5.1vw, 80px); line-height: .95; letter-spacing: -.056em; }
.section-note { max-width: 460px; margin: 0 0 4px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 74px 28px; }
.project-card { min-width: 0; }
.project-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: end; }
.project-media { position: relative; aspect-ratio: 1.6; overflow: hidden; background: var(--surface); }
.project-card:not(.project-card-wide) .project-media { aspect-ratio: 1.35; }
.project-media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.08); pointer-events: none; }
.project-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.03); transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .4s; }
.project-card:hover .project-media img { transform: scale(1.035); filter: saturate(1.08) contrast(1.02); }
.project-number { position: absolute; z-index: 2; top: 14px; left: 14px; min-width: 42px; padding: 7px 9px; color: #0a0a0c; background: rgba(246,243,237,.95); font: 750 11px/1 ui-monospace, monospace; text-align: center; }
.project-info { display: grid; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.project-card-wide .project-info { padding: 24px 6px 8px 0; }
.project-info h3 { margin: 2px 0 0; font-size: clamp(30px, 3.1vw, 54px); line-height: 1; letter-spacing: -.05em; }
.project-type { margin: 0; color: var(--cyan); font: 650 11px/1.2 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.project-info > p { max-width: 600px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 6px 10px; color: #c8c6ca; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }

.approach { padding: 140px 0; border-top: 1px solid var(--line); }
.approach-title { display: grid; grid-template-columns: .45fr 1.55fr; gap: 40px; align-items: start; }
.approach-title .kicker { margin-top: 10px; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 90px; background: var(--line); border: 1px solid var(--line); }
.principle { min-height: 330px; padding: 34px; background: var(--bg); transition: background .25s; }
.principle:hover { background: var(--surface); }
.principle span { color: #68666e; font: 650 12px/1 ui-monospace, monospace; }
.principle h3 { margin: 108px 0 20px; font-size: 32px; letter-spacing: -.04em; }
.principle p { margin: 0; color: var(--muted); line-height: 1.65; }

.lab { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; padding: 150px 0; border-top: 1px solid var(--line); }
.lab-copy > p:last-child { max-width: 570px; margin: 34px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.lab-list { border-top: 1px solid var(--line); }
.lab-list > div { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; min-height: 86px; border-bottom: 1px solid var(--line); transition: padding .22s, background .22s; }
.lab-list > div:hover { padding-inline: 12px; background: var(--surface); }
.lab-list span { color: #64626a; font: 650 11px/1 ui-monospace, monospace; }
.lab-list strong { font-size: clamp(18px, 2vw, 27px); letter-spacing: -.025em; }
.lab-list em { color: var(--muted); font-size: 13px; font-style: normal; text-align: right; }

.closing { padding: 150px 0 170px; text-align: center; }
.closing-line { margin: 0 auto 50px; font-size: clamp(50px, 8vw, 124px); font-weight: 850; line-height: .9; letter-spacing: -.07em; }
.closing-line span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); text-stroke: 1px rgba(255,255,255,.55); }
.button-light { color: #09090b; background: var(--text); border-color: var(--text); }

.site-footer { width: var(--page); margin: 0 auto; min-height: 150px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.footer-brand .brand-mark { transform: scale(.72); transform-origin: left center; margin-right: -7px; }
.site-footer > p { justify-self: center; }
.footer-links { justify-self: end; display: flex; gap: 26px; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--text); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

.legal-page { background: #efede7; color: #111114; }
.legal-page .noise { opacity: .025; }
.legal-header { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 0 max(24px, calc((100vw - 1180px)/2)); color: #f7f4ed; background: rgba(10,10,12,.96); backdrop-filter: blur(16px); }
.legal-back { font-size: 14px; font-weight: 700; }
.legal-back:hover { color: var(--yellow); }
.legal-meta { color: #9c99a0; font: 600 11px/1 ui-monospace, monospace; letter-spacing: .08em; }
.legal-main { width: min(1180px, calc(100vw - 48px)); margin: 0 auto; padding: 86px 0 120px; display: grid; grid-template-columns: .65fr 1.35fr; gap: 100px; }
.legal-aside { position: sticky; top: 130px; align-self: start; }
.legal-aside h1 { margin: 0 0 24px; font-size: clamp(48px, 6vw, 88px); line-height: .9; letter-spacing: -.065em; }
.legal-aside p { max-width: 360px; color: #68666a; font-size: 15px; line-height: 1.65; }
.legal-content { counter-reset: clause; }
.legal-content section { position: relative; padding: 0 0 38px 58px; margin-bottom: 38px; border-bottom: 1px solid rgba(0,0,0,.18); counter-increment: clause; }
.legal-content section::before { content: counter(clause, decimal-leading-zero); position: absolute; top: 5px; left: 0; color: #8c8990; font: 700 12px/1 ui-monospace, monospace; }
.legal-content h2 { margin: 0 0 16px; font-size: 25px; letter-spacing: -.035em; }
.legal-content p, .legal-content li { color: #4c4a50; line-height: 1.72; }
.legal-content ul { padding-left: 20px; }
.legal-note { padding: 20px 22px; background: #dedbd3; border-left: 3px solid #111114; }

@media (max-width: 1100px) {
  :root { --page: calc(100vw - 48px); }
  .hero { grid-template-columns: 1fr; padding-inline: 24px; padding-top: 140px; }
  .hero-copy { max-width: 850px; }
  .hero-reel { min-height: 570px; width: min(820px, 100%); justify-self: end; }
  .scroll-note { display: none; }
  .section-head, .approach-title { grid-template-columns: 1fr; gap: 30px; }
  .lab { grid-template-columns: 1fr; gap: 70px; }
  .legal-main { grid-template-columns: 1fr; gap: 60px; }
  .legal-aside { position: static; }
}

@media (max-width: 760px) {
  :root { --page: calc(100vw - 32px); --header-h: 74px; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 16px; }
  .header-index { display: none; }
  .menu-button { justify-self: end; display: grid; gap: 4px; width: 42px; height: 42px; place-content: center; color: var(--text); background: transparent; border: 1px solid var(--line); }
  .menu-button > span:not(.sr-only) { display: block; width: 17px; height: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-button[aria-expanded="true"] > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; display: grid; gap: 0; padding: 12px 16px 20px; background: rgba(10,10,12,.97); border-bottom: 1px solid var(--line); transform: translateY(-140%); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s; }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav a::after { display: none; }
  .hero { min-height: auto; padding: 122px 16px 70px; gap: 60px; }
  .hero h1 { font-size: clamp(48px, 14vw, 70px); }
  .hero-lead { margin-top: 28px; font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions p { order: -1; }
  .hero-reel { min-height: 365px; }
  .reel-main { top: 0; width: 90%; }
  .reel-side { width: 52%; bottom: 0; }
  .orbit-label { display: none; }
  .projects, .approach, .lab { padding-block: 96px; }
  .section-head { margin-bottom: 46px; }
  .project-grid { grid-template-columns: 1fr; gap: 62px; }
  .project-card-wide { grid-column: auto; display: block; }
  .project-card-wide .project-info { padding-top: 22px; }
  .project-media, .project-card:not(.project-card-wide) .project-media { aspect-ratio: 1.28; }
  .principles { grid-template-columns: 1fr; margin-top: 54px; }
  .principle { min-height: 260px; }
  .principle h3 { margin-top: 70px; }
  .lab-list > div { grid-template-columns: 36px 1fr; padding-block: 18px; }
  .lab-list em { grid-column: 2; text-align: left; }
  .closing { padding-block: 100px 120px; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; padding: 38px 0; }
  .site-footer > p, .footer-links { justify-self: start; }
  .legal-header { padding-inline: 16px; }
  .legal-meta { display: none; }
  .legal-main { width: calc(100vw - 32px); padding-top: 58px; gap: 44px; }
  .legal-content section { padding-left: 42px; }
}

@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; }
}
