/* ==========================================================================
   Think & Make — design tokens
   ========================================================================== */
:root {
  --ink:  #050810;
  --ink-2: #0a0f1c;
  --navy: #0D47A1;
  --blue: #2196F3;
  --sky:  #90CAF9;
  --mist: #E3F2FD;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --ease: cubic-bezier(.16,.84,.44,1);
  --container: min(1180px, 92vw);

  --radius: 14px;
  --radius-sm: 8px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 1000;
  background: var(--blue); color: var(--ink); padding: .75rem 1.25rem;
  border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: .85rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: var(--container); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.03; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.15rem; font-weight: 800; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .9rem;
}

.section-lede { max-width: 46ch; color: var(--sky); margin-top: .9rem; }

.todo {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .72em;
  color: #ffb454;
  border: 1px dashed rgba(255,180,84,.5);
  padding: .1em .5em;
  border-radius: 5px;
  margin-left: .5em;
  white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .04em;
  padding: .95rem 1.6rem; border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--blue); color: var(--ink); }
.btn--primary:hover { transform: translateY(-2px); background: var(--sky); }
.btn--ghost { border: 1px solid rgba(227,242,253,.3); color: var(--mist); }
.btn--ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn--large { font-size: .95rem; padding: 1.15rem 2rem; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(5,8,16,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227,242,253,.08);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 900; }
.nav__brand img { width: 30px; height: 30px; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; font-size: .92rem; }
.nav__links a:not(.nav__cta) { opacity: .85; transition: opacity .2s; }
.nav__links a:not(.nav__cta):hover { opacity: 1; color: var(--sky); }
.nav__cta {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  background: var(--blue); color: var(--ink); padding: .6rem 1.1rem; border-radius: 999px;
}
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav__toggle span { height: 2px; background: var(--mist); border-radius: 2px; }

@media (max-width: 780px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: var(--ink-2); padding: 1.5rem; gap: 1.2rem;
    transform: translateY(-120%); transition: transform .3s var(--ease);
    border-bottom: 1px solid rgba(227,242,253,.08);
  }
  .nav__links.is-open { transform: translateY(0); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 5rem;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) brightness(.5); }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,16,.5) 0%, rgba(5,8,16,.75) 60%, var(--ink) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 46rem; }
.hero__sub { color: var(--sky); font-size: 1.1rem; max-width: 42ch; margin-top: 1.3rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__scrollcue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky);
}
.hero__scrollcue span {
  width: 1px; height: 32px; background: linear-gradient(var(--blue), transparent);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ==========================================================================
   Pinned story
   ========================================================================== */
.story { position: relative; background: var(--ink); }
.story__spacer { height: 600vh; position: relative; }
.story__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #0b1220 0%, var(--ink) 65%);
}

.hud {
  position: absolute; top: 5.5rem; left: clamp(1rem, 4vw, 2.5rem); z-index: 5;
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .72rem; color: var(--sky); letter-spacing: .08em;
}
.hud__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 8px #ff4d4d; }
.hud__fps { opacity: .6; }

.beat {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  will-change: transform, opacity;
}
.story__stage .beat__label {
  position: absolute; top: 5.5rem; right: clamp(1rem, 4vw, 2.5rem); z-index: 5;
}
.beat__label {
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mist);
}
.beat__label span { color: var(--sky); }

.layer-field { position: relative; width: min(90vw, 1100px); height: min(60vh, 620px); }
.story-layer {
  position: absolute; width: 220px; aspect-ratio: 9/16; object-fit: cover;
  border-radius: var(--radius); border: 1px solid rgba(227,242,253,.15);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
  filter: saturate(.42) brightness(.6);
  will-change: transform, opacity;
  transform: translate3d(0,0,0);
}
[data-layer="a"] { top: 4%; left: 6%; }
[data-layer="b"] { top: 10%; right: 10%; aspect-ratio: 16/9; width: 280px; }
[data-layer="c"] { bottom: 6%; left: 18%; aspect-ratio: 16/9; width: 260px; }
[data-layer="d"] { bottom: 2%; right: 4%; }

.story-texture {
  position: absolute; top: 50%; left: 50%; width: 60vw; max-width: 640px;
  transform: translate3d(-50%,-50%,0);
  opacity: .18; object-fit: cover; border-radius: var(--radius);
}
[data-layer="tex2"] { transform: translate3d(-30%,-40%,0) rotate(-4deg); opacity: .12; }

.story-hero-clip {
  width: min(72vw, 880px); aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
  will-change: transform, opacity;
}

.layer-field--settle .story-layer { filter: saturate(1) brightness(1); }
[data-layer="settle-a"] { top: 8%; left: 8%; }
[data-layer="settle-b"] { top: 14%; right: 6%; aspect-ratio: 16/9; width: 320px; }
[data-layer="settle-c"] { bottom: 4%; left: 32%; }

.story-mark {
  position: absolute; bottom: 8%; left: 50%; width: 64px;
  transform: translate3d(-50%,0,0);
  opacity: 0; will-change: transform, opacity;
}

.story__persistent-cta {
  position: absolute; bottom: 1.5rem; right: clamp(1rem, 4vw, 2.5rem); z-index: 10;
}

.story__static { display: none; }

@media (prefers-reduced-motion: reduce) {
  .story__spacer { height: auto; }
  .story__stage { display: none; }
  .story__static { display: block; padding: 4rem clamp(1rem,4vw,2.5rem); }
  .beat-static { max-width: 640px; margin: 0 auto 5rem; text-align: center; }
  .beat-static img { border-radius: var(--radius); margin-top: 1rem; width: 100%; }
  .beat-static:last-child { margin-bottom: 0; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { overflow: hidden; border-block: 1px solid rgba(227,242,253,.08); padding: 1.4rem 0; background: var(--ink-2); }
.marquee__track {
  display: flex; gap: 3rem; width: max-content;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: rgba(227,242,253,.35);
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee__track span::after { content: '—'; margin-left: 3rem; color: var(--blue); }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ==========================================================================
   Sections / grids / cards
   ========================================================================== */
.band { padding: clamp(4rem, 9vw, 7rem) 0; }
.band--close { text-align: center; }
.band--close h2 { margin-inline: auto; }
.wrap { width: var(--container); margin-inline: auto; }

.grid { display: grid; gap: 1.1rem; margin-top: 2.5rem; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--why { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid--team { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  padding: 1.8rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(227,242,253,.05), rgba(227,242,253,.02));
  border: 1px solid rgba(227,242,253,.08);
}
.card__index { font-family: var(--font-mono); color: var(--blue); font-size: .85rem; margin-bottom: .8rem; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--sky); font-size: .95rem; }

.chip {
  padding: 1.4rem 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(33,150,243,.3); background: rgba(33,150,243,.06);
  font-family: var(--font-mono); font-size: .9rem; text-align: center;
}

/* Work grid */
.work-grid {
  display: grid; gap: 1rem; margin-top: 2.5rem;
  grid-template-columns: repeat(6, 1fr);
}
.work-tile { border-radius: var(--radius); overflow: hidden; }
.work-tile--portrait { grid-column: span 2; }
.work-tile--landscape { grid-column: span 3; }
.work-tile__trigger { position: relative; display: block; width: 100%; aspect-ratio: 4/5; }
.work-tile--landscape .work-tile__trigger { aspect-ratio: 16/9; }
.work-tile__poster, .work-tile__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.42) brightness(.58);
  transition: filter .4s var(--ease), opacity .3s var(--ease);
}
.work-tile__video { opacity: 0; }
.work-tile.is-playing .work-tile__video { opacity: 1; }
.work-tile.is-playing .work-tile__poster { opacity: 0; }
.work-tile__trigger:hover .work-tile__video,
.work-tile__trigger:hover .work-tile__poster,
.work-tile__trigger:focus-visible .work-tile__video,
.work-tile__trigger:focus-visible .work-tile__poster {
  filter: saturate(1) brightness(1);
}
.work-tile__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1rem; background: linear-gradient(0deg, rgba(5,8,16,.85), transparent);
  display: flex; flex-direction: column; gap: .3rem;
}
.work-tile__title { font-size: .82rem; font-weight: 600; }
.work-tile__format { font-family: var(--font-mono); font-size: .68rem; color: var(--sky); opacity: .7; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-tile--portrait, .work-tile--landscape { grid-column: span 1; }
}

/* Timeline / process */
.timeline { display: flex; gap: 1px; margin-top: 2.5rem; background: rgba(227,242,253,.1); border-radius: var(--radius); overflow: hidden; flex-wrap: wrap; }
.timeline__step { flex: 1 1 160px; background: var(--ink-2); padding: 1.6rem 1.2rem; }
.timeline__index { display: block; font-family: var(--font-mono); color: var(--blue); font-size: .85rem; margin-bottom: .6rem; }
.timeline__label { font-family: var(--font-display); font-weight: 800; font-size: 1rem; }

/* Reviews empty state */
.empty-state {
  margin-top: 2.5rem; padding: 2.5rem; text-align: center;
  border: 1px dashed rgba(227,242,253,.25); border-radius: var(--radius);
  color: var(--sky);
}

/* Team */
.team-card { text-align: left; }
.team-card img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; margin-bottom: 1.1rem; }
.team-card__role { font-family: var(--font-mono); font-size: .78rem; color: var(--blue); margin-top: .2rem; letter-spacing: .04em; }
.team-card__stat { font-family: var(--font-mono); font-size: .74rem; color: var(--sky); margin-top: .4rem; }
.team-card p:not(.team-card__role):not(.team-card__stat) { margin-top: .8rem; color: var(--sky); font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tags li { font-family: var(--font-mono); font-size: .68rem; padding: .3rem .6rem; border: 1px solid rgba(144,202,249,.3); border-radius: 999px; color: var(--sky); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid rgba(227,242,253,.08); padding: 3rem 0 1.5rem; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-bottom: 2rem; }
.footer__links, .footer__social { display: flex; gap: 1.4rem; font-size: .88rem; flex-wrap: wrap; }
.footer__links a:hover, .footer__social a:hover { color: var(--sky); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  border-top: 1px solid rgba(227,242,253,.08); padding-top: 1.5rem;
  font-family: var(--font-mono); font-size: .74rem; color: rgba(227,242,253,.55);
}
.footer__bottom a:hover { color: var(--sky); }

@media (max-width: 640px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .layer-field { height: 50vh; }
  .story-layer { width: 150px; }
  [data-layer="b"], [data-layer="c"] { width: 190px; }
}
