@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* Tokens — from brand palette (Midnight Sky, Dark Blue, Compass Blue, Electric Blue, Mist Blue, Clouds White) */
:root {
  --ink: #16151D;
  --navy: #06103A;
  --blue-deep: #0821B7;
  --blue: #2047FF;
  --mist: #DDE4FF;
  --paper: #FFFCF5;

  --ink-2: color-mix(in oklch, var(--ink), white 6%);
  --line-dark: color-mix(in oklch, var(--mist) 16%, transparent);
  --line-light: color-mix(in oklch, var(--ink) 14%, transparent);
  --muted-dark: color-mix(in oklch, var(--mist) 68%, var(--ink));
  --muted-light: color-mix(in oklch, var(--ink) 64%, var(--paper));

  --f-display: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --pad: 24px;
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.45, 0, 0.15, 1);
}
@media (min-width: 768px) { :root { --pad: 40px; } }
@media (min-width: 1024px) { :root { --pad: 64px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; font-family: var(--f-body); color: var(--mist); background: var(--ink); line-height: 1.55; font-size: 16px; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, [data-dark] :focus-visible { outline-color: var(--mist); }
::selection { background: var(--blue); color: #fff; }

/* Surfaces */
.dark { background: var(--ink); color: var(--mist); }
.navy { background: var(--navy); color: var(--mist); }
.light { background: var(--paper); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }

/* Type */
.display { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.9; }
.h1 { font-size: clamp(48px, 9vw, 150px); }
.h2 { font-size: clamp(38px, 5.6vw, 88px); }
.h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.01em; line-height: 1.1; }
.lede { font-weight: 300; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.4; letter-spacing: -0.01em; max-width: 34em; text-wrap: pretty; }
.body-copy { max-width: 36em; text-wrap: pretty; }
.muted { color: var(--muted-dark); }
.light .muted { color: var(--muted-light); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; display: flex; gap: 14px; align-items: center; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .6; }
.accent { color: var(--blue); }
.dark .accent-on-dark { color: var(--mist); }
.balance { text-wrap: balance; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); flex-wrap: wrap; }
.sec-head .eyebrow { margin-bottom: 20px; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 500; font-size: 15px; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease); white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { border: 1px solid currentColor; }
.dark .btn-ghost:hover, .navy .btn-ghost:hover, [data-dark] .btn-ghost:hover { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.light .btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.tlink { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); padding-bottom: 3px; min-height: 44px; }
.tlink:hover { background-size: 100% 1px; }

/* ---------- Preloader (home only) ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: flex; align-items: center; justify-content: center;
  transition: transform 1.5s var(--ease-io); }
.pre-word { color: #fff; font-size: clamp(64px, 11vw, 150px); }
.pre-word .wm-name .l { display: none; }
.pre-word .wm-name .l.on { display: inline; }
.pre-word .wm-rec { opacity: 0; }
.pre-word .wm-rec.on { opacity: 1; animation: blink 1s step-end 2; }
.pre-word .wm-sub span { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .5s var(--ease); }
.pre-word .wm-sub.in span { opacity: 1; transform: none; }
.pre-cursor { display: inline-block; vertical-align: top; width: .035em; min-width: 3px; height: .8em; margin-left: .06em; background: #fff; border-radius: 2px; animation: blink .7s step-end infinite; }
.pre-tc { position: absolute; bottom: 32px; left: 0; right: 0; text-align: center; color: var(--muted-dark); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); color: var(--mist); transition: color .35s ease, background .35s ease, transform .45s var(--ease); }
.nav.on-light { color: var(--ink); }
.nav.scrolled { background: color-mix(in oklch, var(--ink) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.scrolled.on-light { background: color-mix(in oklch, var(--paper) 80%, transparent); }
.nav.hide { transform: translateY(-100%); }
.logo { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Wordmark: METUB + tally light + PRODUCTION ----------
   inline  → nav:     METUB▪ | PRODUCTION
   stack   → lockups: PRODUCTION letter-spaced to the exact width of METUB */
.wm { display: inline-flex; align-items: center; gap: .55em; line-height: 1; color: inherit; }
.wm-main { position: relative; display: inline-flex; align-items: flex-start; }
.wm-name { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.045em; font-size: 1.32rem; line-height: .8; padding-top: .06em; }
.wm-rec { width: .2em; height: .2em; background: var(--blue); margin-left: .12em; flex: none; font-size: 1.32rem; border-radius: 1px; }
.wm-rule { width: 1px; height: 1.05em; background: currentColor; opacity: .35; }
.wm-sub { font-family: var(--f-mono); font-weight: 500; font-size: .6rem; letter-spacing: .38em; text-transform: uppercase; margin-right: -.38em; }
@media (max-width: 380px) { .wm-inline .wm-rule, .wm-inline .wm-sub { display: none; } }

.wm-stack { flex-direction: column; align-items: stretch; gap: 0; width: max-content; }
.wm-stack .wm-name { font-size: 1em; }
.wm-stack .wm-rec { font-size: 1em; }
.wm-stack .wm-rule { display: none; }
.wm-stack .wm-sub { display: flex; justify-content: space-between; letter-spacing: 0; margin: .5em 2.6em 0 .15em; font-size: .135em; font-weight: 400; }
.wm-lg { font-size: clamp(56px, 9vw, 132px); }
.wm-md { font-size: 44px; }
.nav-links { display: none; gap: 36px; align-items: center; }
.nav-links a:not(.btn) { font-size: 14px; font-weight: 500; position: relative; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .btn { min-height: 44px; }
.nav-toggle { display: flex; flex-direction: column; gap: 7px; width: 44px; height: 44px; align-items: flex-end; justify-content: center; }
.nav-toggle .ln { width: 28px; height: 1px; background: currentColor; transition: width .3s ease; }
.nav-toggle:hover .ln.top { width: 20px; }
@media (min-width: 1024px) { .nav-links { display: flex; } .nav-toggle { display: none; } }

.menu { position: fixed; inset: 0; z-index: 49; background: var(--ink); display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--pad) 40px; gap: 4px; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); visibility: hidden; }
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu a.big { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 11vw, 72px); letter-spacing: -0.03em; line-height: 1.05; color: var(--mist); display: flex; gap: 16px; align-items: baseline; }
.menu a.big small { font-family: var(--f-mono); font-size: 12px; color: var(--muted-dark); font-weight: 400; }
.menu a.big:hover { color: #fff; }
.menu .btn { margin-top: 32px; align-self: flex-start; }
.menu-foot { margin-top: auto; color: var(--muted-dark); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
.mask { overflow: hidden; }
.mask > * { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.mask.in > * { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv, .mask > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; background: var(--ink-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a:hover .media img, .hover-zoom:hover .media img { transform: scale(1.04); }
.r-16x9 { aspect-ratio: 16/9; } .r-4x5 { aspect-ratio: 4/5; } .r-3x2 { aspect-ratio: 3/2; } .r-21x9 { aspect-ratio: 21/9; } .r-1x1 { aspect-ratio: 1/1; } .r-3x4 { aspect-ratio: 3/4; }
.tag { position: absolute; left: 16px; top: 16px; z-index: 2; background: color-mix(in oklch, var(--ink) 78%, transparent); backdrop-filter: blur(8px);
  color: var(--mist); padding: 7px 11px; border-radius: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 4px 18px rgb(0 0 0 / .25); }

/* Work tile (shared) */
.work-tile { display: block; }
.work-tile .meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; align-items: baseline; }
.work-tile .title { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.02em; line-height: 1.05; }
.work-tile .sub { margin-top: 6px; }
.work-tile .idx { color: var(--blue); }
.dark .work-tile .idx, [data-dark] .work-tile .idx { color: var(--mist); }

/* Work tile hover loop — fades over the still */
.tile-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.clip-on .tile-clip { opacity: 1; }
.clip-cue { position: absolute; right: 16px; bottom: 16px; z-index: 2; color: #fff; background: color-mix(in oklch, var(--ink) 70%, transparent); backdrop-filter: blur(8px);
  padding: 7px 11px; border-radius: 4px; font-size: 11px; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .4s var(--ease); }
.work-tile:hover .clip-cue, .work-tile:focus-visible .clip-cue { opacity: 1; transform: none; }
.clip-on .clip-cue { opacity: 0 !important; }

/* Spec table */
.specs { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-dark); }
.light .specs { border-color: var(--line-light); }
.specs > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.light .specs > div { border-color: var(--line-light); }
.specs dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); }
.light .specs dt { color: var(--muted-light); }
.specs dd { text-align: right; font-weight: 500; }

/* Chips / filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: background .25s, color .25s, border-color .25s; }
.light .chip { border-color: var(--line-light); }
.chip sup { font-family: var(--f-mono); font-size: 10px; opacity: .75; }
.chip:hover { border-color: currentColor; }
.chip[aria-pressed="true"] { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.light .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Page hero (inner pages) */
.page-hero { padding: clamp(140px, 18vw, 220px) 0 clamp(48px, 6vw, 80px); }
.page-hero .display { margin-top: 24px; }
.page-hero .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 32px; }

/* Marquee */
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marq 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Final CTA + Footer */
.cta-final { padding: clamp(100px, 14vw, 200px) 0 clamp(64px, 8vw, 110px); }
.cta-final .display { font-size: clamp(56px, 12vw, 200px); }
.cta-final .row { display: flex; gap: 24px 40px; align-items: center; flex-wrap: wrap; margin-top: 48px; }
.footer { border-top: 1px solid var(--line-dark); padding: 56px 0 40px; }
.footer .grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer .grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 4px; }
.footer ul a { display: inline-flex; min-height: 32px; align-items: center; }
.footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; color: var(--muted-dark); }
.credit-note { font-size: 12px; color: var(--muted-dark); margin-top: 16px; max-width: 70em; }
.credit-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgb(8 8 12 / .96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; }
.lb-close { position: absolute; top: 20px; right: var(--pad); color: var(--mist); min-height: 44px; }
.lb-bar { position: absolute; bottom: 24px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; gap: 16px; color: var(--muted-dark); }
.lb-prog { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--blue); width: 0; }
