/* Visual Engine — site styles.
   Layout: the artwork leads. Plain, confident type in one family; colour taken from the key art
   (warm off-white, the lilac sky, katana-hilt gold). The logo keeps its gradient; the interface does not. */
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-normal-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-italic-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --ink-0: #0c0b0e;          /* page */
  --ink-1: #141217;          /* panels */
  --ink-2: #1d1a21;          /* raised */
  --line: rgba(236, 232, 225, .1);
  --line-2: rgba(236, 232, 225, .2);
  --text: #ece8e1;           /* warm paper white */
  --muted: #a39e98;
  --dim: #6e6a66;
  --lilac: #bba8ec;          /* the sky in the key art */
  --gold: #d9ae5f;           /* katana hilts */
  --blood: #d23c43;          /* status dots only */
  --font: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --wrap: 1200px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink-0); }
body { margin: 0; background: var(--ink-0); color: var(--text); font: 400 17px/1.6 var(--font); font-stretch: 100%; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--lilac); color: var(--ink-0); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--ink-0); padding: 8px 14px; }
.skip:focus { left: var(--gutter-l); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; font-stretch: 112%; line-height: 1.04; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); max-width: 58ch; }
.prose { display: grid; gap: 1.1em; max-width: 64ch; color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ buttons + links */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; font: 600 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  background: var(--text); color: var(--ink-0); transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--gold); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--line:hover { background: transparent; border-color: var(--text); }
.btn[hidden] { display: none !important; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .35s, transform .45s var(--ease); }
.nav::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: linear-gradient(180deg, rgba(12, 11, 14, .6), rgba(12, 11, 14, 0)); pointer-events: none; transition: opacity .35s; }
.nav.is-scrolled::before { opacity: 0; }
.nav.is-scrolled { background: rgba(12, 11, 14, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
/* the logo lockup: mark + wide caps name */
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-stretch: 125%; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.brand svg, .brand img { width: 40px; height: 40px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 15px; text-decoration: none; color: var(--muted); padding-block: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--text); border-color: var(--gold); }
.nav__cta { padding: 10px 16px; font-size: 14px; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 49; background: var(--ink-0); padding: calc(var(--nav-h) + 30px + env(safe-area-inset-top, 0px)) var(--gutter-r) 40px var(--gutter-l);
  display: flex; flex-direction: column; gap: 4px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu a { font-size: 34px; font-weight: 800; font-stretch: 112%; text-decoration: none; padding-block: 6px; transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.menu.is-open a { transform: none; opacity: 1; transition-delay: calc(var(--i, 0) * 40ms); }
.menu .btn { margin-top: 24px; font-size: 15px; align-self: flex-start; }

/* ------------------------------------------------------------------ intro (first visit) + page change */
.no-js .intro { display: none; }
html.is-intro body { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--ink-0); overflow: hidden; }
.intro__mark { width: min(170px, 40vw); height: auto; animation: introMark 1s var(--ease) both; }
@keyframes introMark { from { opacity: 0; transform: scale(.86) rotate(-20deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.intro__slash { position: absolute; left: -20%; right: -20%; top: 50%; height: 2px; background: var(--text); transform: scaleX(0) rotate(-18deg); }
.intro.is-leaving .intro__slash { animation: slash .45s var(--ease-io) forwards; }
.intro.is-leaving .intro__top, .intro.is-leaving .intro__bottom { animation-play-state: running; }
.intro__top, .intro__bottom { position: absolute; left: -10%; right: -10%; height: 70%; background: var(--ink-0); animation: .8s .35s var(--ease-io) forwards paused; }
.intro__top { top: -20%; transform: rotate(-18deg); transform-origin: 50% 100%; animation-name: cutUp; }
.intro__bottom { bottom: -20%; transform: rotate(-18deg); transform-origin: 50% 0; animation-name: cutDown; }
.intro.is-leaving { animation: clearBg 0s .35s forwards; }
@keyframes clearBg { to { background: transparent; } }
.intro.is-leaving .intro__mark { animation: fade .25s forwards; }
@keyframes introV { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes introE { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes slash { 0% { transform: scaleX(0) rotate(-18deg); } 60% { transform: scaleX(1) rotate(-18deg); opacity: 1; } 100% { transform: scaleX(1) rotate(-18deg); opacity: 0; } }
@keyframes cutUp { to { transform: rotate(-18deg) translateY(-110%); } }
@keyframes cutDown { to { transform: rotate(-18deg) translateY(110%); } }
@keyframes fade { to { opacity: 0; } }

.veil { position: fixed; inset: 0; z-index: 150; pointer-events: none; overflow: hidden; }
.veil__panel { position: absolute; inset: -10% -30%; background: var(--ink-1); transform: translateX(-130%) skewX(-18deg); }
.veil__panel:nth-child(2) { background: var(--ink-2); }
.veil__panel:nth-child(3) { background: var(--ink-0); }
.veil__label { position: absolute; left: var(--gutter-l); bottom: 8vh; font-size: clamp(26px, 4vw, 48px); font-weight: 800; font-stretch: 112%; opacity: 0; }

/* ------------------------------------------------------------------ reveal on scroll (content is visible without JS) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-io); }
.reveal-img.is-in { clip-path: inset(0 0 0 0); }
.no-js .reveal, .no-js .reveal-img { opacity: 1; transform: none; clip-path: none; }

/* ------------------------------------------------------------------ home hero */
.hero { position: relative; min-height: min(92svh, 900px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding-block: calc(var(--nav-h) + 40px) clamp(48px, 8vh, 90px); }
.hero__art { position: absolute; inset: -5% 0; z-index: -3; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 28%; animation: settle 2.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.12); filter: brightness(.35); } to { transform: scale(1.02); filter: none; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(0deg, var(--ink-0) 0%, rgba(12, 11, 14, .55) 34%, rgba(12, 11, 14, 0) 62%),
  linear-gradient(90deg, rgba(12, 11, 14, .78) 0%, rgba(12, 11, 14, .25) 46%, rgba(12, 11, 14, 0) 70%); }
.hero canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__content { display: grid; gap: 22px; }
.hero__title { font-size: clamp(40px, 6.4vw, 92px); max-width: 13ch; }
.hero__title em { font-style: italic; font-weight: 300; font-stretch: 100%; color: var(--lilac); }
.hero__sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 46ch; }
.hero__note { position: absolute; right: var(--gutter-r); bottom: clamp(48px, 8vh, 90px); font-size: 13px; color: var(--muted); text-align: right; }
.hero__note b { display: block; color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(80px, 11vw, 140px); }
.section--tight { padding-top: 0; }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 { font-size: clamp(32px, 4.4vw, 58px); }
.split-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }

/* project spotlight */
.spot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.spot__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--ink-1); }
.spot__img img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.spot__img:hover img { transform: scale(1.08); }
.spot__body { display: grid; gap: 22px; }
.spot__body { min-width: 0; }
.spot__body h2 { font-size: clamp(38px, 4.6vw, 64px); font-stretch: 118%; letter-spacing: -.03em; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--blood); box-shadow: 0 0 0 0 rgba(210, 60, 67, .5); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(210, 60, 67, 0); } 100% { box-shadow: 0 0 0 0 rgba(210, 60, 67, 0); } }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--dim); font-size: 14px; }
.facts dd { margin: 0; font-size: 15px; }
.num { font-variant-numeric: tabular-nums; }

/* recent work list */
.log { display: grid; border-top: 1px solid var(--line); }
.log__item { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.log__tag { font-size: 13px; color: var(--gold); font-weight: 600; letter-spacing: .04em; }
.log__item h3 { font-size: 21px; font-stretch: 100%; letter-spacing: -.01em; }
.log__item p { color: var(--muted); font-size: 16px; }

/* team faces */
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px; }
.faces--three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; gap: 28px; }
.face { display: grid; gap: 4px; text-decoration: none; }
.face img, .face .mono { margin-bottom: 8px; }
.face img, .face .mono { width: 100%; aspect-ratio: 1; max-width: 100%; object-fit: cover; background: var(--ink-1); filter: grayscale(.35); transition: filter .4s; }
.face:hover img { filter: none; }
.face b { font-weight: 600; font-size: 16px; }
.face span { font-size: 14px; color: var(--muted); }
.mono { display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--dim); background: var(--ink-1); }

/* closing band */
.band { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(90px, 12vw, 150px); }
.band__bg { position: absolute; inset: -12% 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 11, 14, .94) 0%, rgba(12, 11, 14, .7) 50%, rgba(12, 11, 14, .35) 100%); }
.band h2 { font-size: clamp(34px, 5vw, 64px); max-width: 16ch; }
.band .lead { margin-block: 18px 30px; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h4 { font-size: 13px; font-weight: 600; font-stretch: 100%; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { text-decoration: none; color: var(--muted); transition: color .2s; }
.footer ul a:hover { color: var(--text); }
.footer__about { display: grid; gap: 14px; color: var(--muted); max-width: 32ch; align-content: start; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* ------------------------------------------------------------------ inner page header */
.page-head { position: relative; padding-block: calc(var(--nav-h) + clamp(60px, 9vw, 120px)) clamp(40px, 6vw, 70px); overflow: hidden; isolation: isolate; }
.page-head__bg { position: absolute; inset: 0; z-index: -2; opacity: .28; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 11, 14, .5), var(--ink-0) 95%); }
.page-head h1 { font-size: clamp(40px, 6.6vw, 96px); margin-block: 14px 20px; max-width: 16ch; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .spot, .split-row { grid-template-columns: 1fr; }
  .log__item { grid-template-columns: 1fr; gap: 8px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__note { display: none; }
  .faces--three { gap: 14px; }
  .hero__art img { object-position: 30% 22%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .faces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
