/* fonts inlined: an @import here would chain a second render-blocking request */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/font/k3kPo8UDI-1M0wlSV9XAw6lQkqWY8Q82sLydOxKsv4Rn.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/font/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/font/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgsAXHNk.woff2') format('woff2');
}

/* ============================================================
   Evolution Exhibits — concept draft
   Ground: the show hall is dark; the booths are the light.
   ============================================================ */

:root {
  --ink:        #0A0B0D;
  --ink-raise:  #131518;
  --ink-line:   #24272C;
  --fg:         #ECEEF1;
  --fg-mute:    #8C929B;
  --brand:      #0070B0;   /* sampled from their logo */
  --brand-lift: #35A7E4;   /* legible against the dark ground */

  --gut: clamp(1.25rem, 4vw, 4.5rem);
  --rule: 1px solid var(--ink-line);

  /* one easing, used everywhere: fast out, long settle */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

figure { margin: 0; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: 'Archivo', system-ui, sans-serif;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

::selection { background: var(--brand); color: #fff; }

/* --- type -------------------------------------------------- */

.display {
  font-weight: 800;
  /* tight tracking is what separates editorial from default */
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-wrap: balance;
  margin: 0;
}

h1.display { font-size: clamp(2.75rem, 9vw, 9.5rem); }
h2.display { font-size: clamp(2.25rem, 6.5vw, 6rem); }

.spec {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: clamp(0.62rem, 0.78vw, 0.75rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 400;
}
.spec--brand { color: var(--brand-lift); }

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--fg);
  max-width: 34ch;
  text-wrap: pretty;
}

p { margin: 0 0 1em; }

/* --- the measure line: the site's signature device ---------- */
/* A dimension rule, like a shop drawing. Draws itself on entry. */

.measure {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
}
.measure__rule {
  flex: 1;
  height: 1px;
  background: var(--brand-lift);
  transform: scaleX(0);
  transform-origin: left center;   /* transform-only = compositor-friendly */
  position: relative;
}
.measure__rule::before,
.measure__rule::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--brand-lift);
}
.measure__rule::before { left: 0; }
.measure__rule::after  { right: 0; }

.is-drawn .measure__rule {
  transform: scaleX(1);
  transition: transform 1.1s var(--ease);
}

/* --- reveals ----------------------------------------------- */
/* clip-path curtain, not an opacity fade: the image feels built. */

.reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.15s var(--ease);
  will-change: clip-path;
}
.is-in .reveal,
.reveal.is-in {
  clip-path: inset(0 0 0 0);
  will-change: auto;   /* drop the promoted layer once the curtain has played */
}

.rise > * {
  opacity: 0;
  transform: translateY(1.1em);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.rise.is-in > * { opacity: 1; transform: none; }
/* stagger by line, ~55ms apart — the cadence that reads art-directed */
.rise.is-in > *:nth-child(2) { transition-delay: 0.055s; }
.rise.is-in > *:nth-child(3) { transition-delay: 0.11s; }
.rise.is-in > *:nth-child(4) { transition-delay: 0.165s; }
.rise.is-in > *:nth-child(5) { transition-delay: 0.22s; }

/* ============================================================
   NAV — thin, quiet, gets out of the way of the work
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--gut);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
/* only grow a background once you have left the hero */
.nav.is-stuck {
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--ink-line);
}
.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 0.4ch;
  text-decoration: none;
  color: var(--fg);
}
.nav__mark {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.nav__mark--thin { font-weight: 400; color: var(--fg-mute); }
.nav__links { display: none; gap: 2rem; }
@media (min-width: 820px) { .nav__links { display: flex; } }
.nav__links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  opacity: 0.72;
  transition: opacity 0.3s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  font-size: 0.85rem;
  padding: 0.7rem 1.15rem;
}

/* ============================================================
   HERO
   The LCP image paints immediately at full opacity.
   All drama happens AROUND it (mask on the type, slow scale on
   the image) — never by delaying its paint.
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-settle 2.6s var(--ease) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }

.hero__media::after {          /* legibility scrim, weighted to the bottom */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10,11,13,0.94) 0%,
    rgba(10,11,13,0.72) 26%,
    rgba(10,11,13,0.18) 62%,
    rgba(10,11,13,0.42) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: var(--gut);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  width: 100%;
}
.hero__head { max-width: 18ch; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1.25rem;
  border-top: var(--rule);
}

/* masked line-by-line entrance for the headline */
.line { display: block; overflow: hidden; }
.line > span {
  display: block;
  transform: translateY(105%);
  animation: line-in 1.15s var(--ease) forwards;
}
.line:nth-child(2) > span { animation-delay: 0.08s; }
.line:nth-child(3) > span { animation-delay: 0.16s; }
@keyframes line-in { to { transform: none; } }

/* --- buttons ----------------------------------------------- */

.btn {
  --pad: 1.15rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--pad);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid var(--brand);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:hover { background: transparent; color: var(--brand-lift); }
.btn--ghost {
  background: transparent;
  border-color: var(--ink-line);
  color: var(--fg);
}
.btn--ghost:hover { border-color: var(--fg); color: var(--fg); }

/* ============================================================
   SECTIONS
   ============================================================ */

section { position: relative; }

/* offscreen sections cost nothing to render until needed */
.defer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.pad { padding: clamp(5rem, 12vw, 11rem) var(--gut); }

.head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
@media (min-width: 900px) {
  .head { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 4rem; }
}

/* --- manifesto --------------------------------------------- */

/* only the opening statement gets display size; the follow-on is body copy */
.manifesto .statement {
  font-size: clamp(1.5rem, 3.4vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 22ch;
  text-wrap: balance;
}
.manifesto .dim { color: var(--fg-mute); }

/* set the follow-on into the second column, editorial style */
.manifesto__body {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 42ch;
}
@media (min-width: 900px) {
  .manifesto__body { margin-left: auto; margin-top: -4rem; }
}

/* ============================================================
   RENDER → SHOP → FLOOR   (the signature sequence)
   One booth, three stages, cross-dissolved by scroll.
   ============================================================ */

.stages { position: relative; }

.stages__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
}
.stages__frame {
  position: absolute;
  inset: 0;
}
.stages__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.stages__frame {
  opacity: 0;
  transition: opacity 0.65s linear;   /* crossfade driven by scroll progress */
}
.stages__frame.is-active { opacity: 1; }

.stages__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,11,13,0.9), rgba(10,11,13,0.05) 55%);
  z-index: 2;
  pointer-events: none;
}
.stages__caption {
  position: absolute;
  left: var(--gut);
  right: var(--gut);
  bottom: clamp(3.5rem, 8vw, 6rem);   /* clear of the progress rule */
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: flex-end;
  justify-content: space-between;
}
.stages__label {
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}
.stages__label .idx {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  vertical-align: super;
  color: var(--brand-lift);
  font-weight: 400;
  margin-right: 0.6rem;
}
.stages__note {
  max-width: 30ch;
  color: var(--fg-mute);
  font-size: 0.95rem;
  line-height: 1.5;
}
/* drives the scroll length of the pinned sequence */
.stages__track { height: 300svh; }

.stages__progress {
  position: absolute;
  left: var(--gut); right: var(--gut);
  bottom: clamp(1.25rem, 3vw, 2rem); height: 2px;
  background: var(--ink-line);
  z-index: 3;
}
.stages__progress i {
  display: block; height: 100%;
  background: var(--brand-lift);
  transform: scaleX(0);
  transform-origin: left;
}

/* ============================================================
   WORK — booths are never thumbnails.
   ============================================================ */

.work__item {
  position: relative;
  margin-bottom: clamp(4rem, 9vw, 9rem);
}
.work__media { position: relative; overflow: clip; }
.work__media img { width: 100%; }

/* the parallax is deliberately slight (~8%) — heavy parallax now reads amateur */
.work__media img { will-change: transform; }

.work__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.1rem;
  margin-top: 1.1rem;
  border-top: var(--rule);
}
.work__name {
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
}

/* full-bleed items break the gutter entirely */
.work__item--wide { margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); }
.work__item--wide .work__bar { padding-left: var(--gut); padding-right: var(--gut); }

.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 860px) {
  .work__grid { grid-template-columns: 1fr 1fr; }
  .work__grid .work__item { margin-bottom: 0; }
}

/* ============================================================
   SCALE — the footprint system
   ============================================================ */

.scale__rows { border-top: var(--rule); }
.scale__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 2rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.4rem) 0;
  border-bottom: var(--rule);
}
@media (min-width: 760px) {
  .scale__row { grid-template-columns: 12rem 1fr 16rem; }
}
.scale__dim {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
  color: var(--fg);
}
.scale__desc { color: var(--fg-mute); font-size: 0.98rem; line-height: 1.5; }

/* ============================================================
   CAPABILITIES
   ============================================================ */

.caps { border-top: var(--rule); }
.caps__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 3rem;
  padding: clamp(1.6rem, 3vw, 2.6rem) 0;
  border-bottom: var(--rule);
  transition: background 0.5s var(--ease), padding-left 0.5s var(--ease);
}
@media (min-width: 900px) {
  .caps__row { grid-template-columns: 4rem 20rem 1fr; align-items: baseline; }
  .caps__row:hover { background: var(--ink-raise); padding-left: 1.25rem; }
}
.caps__name {
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
}
.caps__body { color: var(--fg-mute); line-height: 1.55; max-width: 52ch; }

/* ============================================================
   PILLARS
   ============================================================ */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar__n {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--brand-lift);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
.pillar h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 1.25rem 0 0.75rem;
}
.pillar p { color: var(--fg-mute); line-height: 1.6; margin: 0; }

/* ============================================================
   CONTACT
   ============================================================ */

.contact { border-top: var(--rule); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.2fr 1fr; } }

.contact a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--ink-line); }
.contact a:hover { border-color: var(--brand-lift); color: var(--brand-lift); }

.dl { display: grid; gap: 1.5rem; }
.dl div { display: grid; gap: 0.35rem; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding: 2rem var(--gut);
  border-top: var(--rule);
  color: var(--fg-mute);
}

/* ============================================================
   Draft badge — this is a concept, and it must always say so.
   ============================================================ */

.draft {
  position: fixed;
  right: 1rem; bottom: 1rem;   /* clear of the pinned-stage caption on the left */
  z-index: 100;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  background: rgba(10,11,13,0.86);
  border: 1px solid var(--ink-line);
  backdrop-filter: blur(6px);
  color: var(--fg-mute);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.draft b { color: var(--brand-lift); font-weight: 500; }

/* ============================================================
   Motion off: everything must still be legible and complete.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { clip-path: none !important; }
  .rise > * { opacity: 1 !important; transform: none !important; }
  .measure__rule { transform: scaleX(1) !important; }
  .line > span { transform: none !important; }
  .hero__media img { animation: none; transform: none; }
  .stages__frame { opacity: 1; }
  .stages__frame:not(:last-child) { opacity: 0; }
}
