/* ============================================================
   What-Creative / What We Do Collective
   Minimal editorial single-pager. No build step.
   Aesthetic: monochrome, heavy grotesque, pills, glyphs, framed page.
   Color comes from the work video/photography only.
   Change the tokens in :root to re-skin.
   ============================================================ */

:root {
  --ink: #111110;
  --bg: #e7e5df;        /* page (behind the frame) */
  --panel: #f5f4f0;     /* the framed card */
  --muted: #76746c;
  --line: #d8d6cd;
  --ink-soft: #2a2a27;
  --max: 1280px;
  --pad: clamp(1.15rem, 4.2vw, 3.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  padding: clamp(.4rem, 1.4vw, 1rem);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
/* sticky-nav offset so anchor jumps don't hide section tops */
section[id], main[id] { scroll-margin-top: 84px; }

.shell {
  background: var(--panel);
  border-radius: clamp(16px, 1.8vw, 30px);
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}

/* ---------- glyphs ---------- */
.glyph { display: inline-block; font-size: .72em; vertical-align: .12em; transform: translateY(-.05em); }
.spin { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dot { font-size: .4em; vertical-align: .35em; padding: 0 .12em; }
.reg { font-size: .32em; vertical-align: .9em; font-weight: 600; }
.sq { font-size: .5em; vertical-align: .28em; padding: 0 .06em; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .5em 1em;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
a.pill:hover, button.pill:hover { background: var(--ink); color: var(--panel); }
button.pill { cursor: pointer; font-family: inherit; }
.watch { margin-top: .4rem; }
.watch--head { margin-top: 1.3rem; }
.pill--solid { background: var(--ink); color: var(--panel); }
.pill--solid:hover { transform: translateY(-2px); }
.pill--lg { font-size: .95rem; padding: .72em 1.3em; }
.arrow { font-weight: 600; }

.label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.eyebrow { font-size: .9rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem var(--pad);
  background: rgba(245, 244, 240, 0.9);                       /* fallback */
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.is-stuck { border-color: var(--line); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: clamp(20px, 3.4vw, 28px); width: auto; }
.nav__links { display: flex; gap: clamp(1rem, 2.6vw, 2.2rem); margin-left: 2.4rem; }
.nav__links a { font-weight: 500; font-size: .98rem; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__contact { margin-left: auto; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 6rem) var(--pad) clamp(2rem, 5vw, 3.5rem); }
.hero .eyebrow { margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.hero__title {
  font-size: clamp(2.5rem, 8.2vw, 7rem);
  line-height: .92; font-weight: 800;
  letter-spacing: -.025em; text-transform: uppercase;
  max-width: 16ch;
}
.hero__title .reg { text-transform: none; }
.hero__row {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: end;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.hero__lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; }
.hero__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- cinematic band ---------- */
.cinema {
  position: relative;
  margin: clamp(1rem, 3vw, 2rem) var(--pad) 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 7;
}
.cinema video { width: 100%; height: 100%; object-fit: cover; }
.cinema__cap {
  position: absolute; left: 1rem; bottom: 1rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .02em;
  color: #fff; background: rgba(0,0,0,.45);
  padding: .45em .9em; border-radius: 100px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: .9rem 0;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.marquee__track {
  display: inline-flex; align-items: center; white-space: nowrap;
  animation: marquee 30s linear infinite; will-change: transform;
}
.marquee__track span {
  font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.3rem);
  text-transform: uppercase; letter-spacing: -.01em; padding: 0 1.1rem;
}
.marquee__track .glyph { font-size: 1.1rem; color: var(--muted); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) var(--pad); }
.section__head { margin-bottom: clamp(1.5rem, 4vw, 2.6rem); }

/* statement */
.statement { padding: clamp(3.5rem, 9vw, 8rem) var(--pad); border-bottom: 1px solid var(--line); }
.statement h2 {
  font-size: clamp(1.7rem, 4.6vw, 3.6rem); font-weight: 700;
  line-height: 1.06; letter-spacing: -.02em; max-width: 20ch;
}

/* ---------- selected work ---------- */
.work { border-bottom: 1px solid var(--line); }

/* feature project */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.feature:last-child { margin-bottom: 0; }
.feature__media { border-radius: 16px; overflow: hidden; background: #0a1230; aspect-ratio: 16/10; min-width: 0; }
.feature__media video, .feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem; min-width: 0; }
.feature__body h3 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.feature__body p { color: var(--ink-soft); max-width: 40ch; }
.feature__stats { display: flex; flex-wrap: wrap; gap: clamp(1rem, 4vw, 3rem); margin-top: .6rem; }
.feature__stats strong { display: block; font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.feature__stats span { font-size: .82rem; color: var(--muted); }

/* work grid (video tiles) */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.8rem, 1.6vw, 1.2rem); }
.tile {
  position: relative; aspect-ratio: 5 / 4; border-radius: 14px; overflow: hidden;
  display: flex; align-items: flex-start; padding: clamp(1rem, 2vw, 1.5rem);
  background: #1a1a18 center/cover no-repeat; isolation: isolate; transition: transform .25s ease;
}
button.tile { border: 0; cursor: pointer; font-family: inherit; color: inherit; text-align: left; width: 100%; -webkit-appearance: none; appearance: none; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(0,0,0,.12), rgba(0,0,0,.5));
}
.tile--poster { background-size: cover; background-position: center; }
.tile:hover { transform: translateY(-4px); }
.tile__pill { font-size: .76rem; font-weight: 500; background: rgba(255,255,255,.9); color: var(--ink); padding: .4em .9em; border-radius: 100px; }
.tile__name {
  position: absolute; left: clamp(1rem, 2vw, 1.5rem); bottom: clamp(1rem, 2vw, 1.5rem);
  color: #fff; font-weight: 800; font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  letter-spacing: -.01em; max-width: 88%; line-height: 1.05;
}

/* ---------- reel (responsive grid, titles below) ---------- */
.reel { border-bottom: 1px solid var(--line); }
.reel-grid, .act-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 1.8rem);
}
.reel__item { margin: 0; }
.reel__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0;
  aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #1a1a18;
  cursor: pointer; font: inherit; color: inherit;
}
.reel__media video, .reel__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
button.reel__media::after {
  content: "\25B6"; position: absolute; inset: 0; margin: auto; width: 54px; height: 54px;
  display: grid; place-items: center; font-size: 1rem; color: #fff;
  background: rgba(0,0,0,.5); border-radius: 100px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s ease, transform .2s ease; transform: scale(.85);
}
button.reel__media:hover::after, button.reel__media:focus-visible::after { opacity: 1; transform: scale(1); }
.reel__media--placeholder { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #ececE6, #ececE6 12px, #e4e3dc 12px, #e4e3dc 24px); }
.reel__cap { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-top: .85rem; }
.reel__title { font-weight: 800; font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: -.01em; }
.reel__cat { font-size: .82rem; color: var(--muted); text-align: right; }

/* ---------- services ---------- */
.services { border-bottom: 1px solid var(--line); }
.services__list {
  font-size: clamp(2rem, 6.4vw, 5rem); font-weight: 800;
  line-height: 1.02; letter-spacing: -.025em; text-transform: uppercase;
}
.services__copy {
  margin-top: clamp(2rem, 4vw, 3rem); max-width: 60ch;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--ink-soft);
}

/* ---------- about + stats ---------- */
.about { border-bottom: 1px solid var(--line); }
.about__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.about__copy { font-size: clamp(1.3rem, 3vw, 2.1rem); font-weight: 500; line-height: 1.22; letter-spacing: -.015em; max-width: 26ch; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line);
  padding-top: clamp(1.6rem, 4vw, 2.4rem);
}
.stat__num { display: block; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat__label { display: block; margin-top: .5rem; color: var(--muted); font-size: .92rem; }

/* ---------- awards ---------- */
.awards { border-bottom: 1px solid var(--line); }
.award-list { list-style: none; }
.award-list li {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.5rem) 0; border-top: 1px solid var(--line); align-items: baseline;
}
.award-list li:first-child { border-top: 0; }
.award__org { font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.4rem); letter-spacing: -.01em; }
.award__what { color: var(--ink-soft); font-size: clamp(.95rem, 1.5vw, 1.1rem); }
.award__more { margin-top: 1.6rem; color: var(--muted); max-width: 60ch; }

/* ---------- creed ---------- */
.creed { border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.creed p {
  font-size: clamp(1.5rem, 4.4vw, 3.2rem); font-weight: 600; letter-spacing: -.02em;
  line-height: 1.15; color: var(--muted); padding: clamp(.7rem, 1.8vw, 1.1rem) 0; border-bottom: 1px solid var(--line);
}
.creed p:last-child { border-bottom: 0; }
.creed span { color: var(--ink); }

/* ---------- big CTA ---------- */
.cta { padding: clamp(2rem,4vw,3rem) var(--pad) clamp(2rem, 4vw, 3rem); }
.cta__panel {
  background: var(--ink); color: var(--panel); border-radius: clamp(18px, 2.2vw, 32px);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.4rem, 3vw, 2.5rem); align-items: center;
}
.cta__mark { font-size: clamp(2rem, 5vw, 3.4rem); animation: spin 12s linear infinite; line-height: 1; }
.cta__body h2 { font-size: clamp(1.4rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; max-width: 24ch; }
.cta__email {
  display: inline-block; margin-top: 1rem; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600;
  color: #cfcdc4; border-bottom: 2px solid #4a4944; padding-bottom: .1em; transition: color .18s ease, border-color .18s ease;
}
.cta__email:hover { color: #fff; border-color: #fff; }
.cta__social { display: flex; gap: 1.3rem; margin-top: 1.4rem; }
.cta__social a { color: #a3a199; font-size: .95rem; font-weight: 500; }
.cta__social a:hover { color: #fff; }
.cta__sub { margin-top: 1rem; color: #b8b6ad; font-size: clamp(.98rem, 1.6vw, 1.1rem); max-width: 38ch; }
.cta__btn { background: var(--panel); color: var(--ink); border-color: var(--panel); cursor: pointer; font-family: inherit; }
.cta__btn:hover, a.cta__btn:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }

/* ---------- contact form ---------- */
.form { max-width: 760px; margin: clamp(1.6rem, 4vw, 2.6rem) auto 0; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.9rem, 2vw, 1.3rem); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field span { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field span em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: .8rem .95rem; transition: border-color .18s ease; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.2rem; flex-wrap: wrap; }
.form__foot button { cursor: pointer; font-family: inherit; border: 1.5px solid var(--ink); }
.form__status { font-size: .92rem; color: var(--muted); }

/* ---------- footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.4rem) var(--pad); color: var(--muted); font-size: .92rem;
}
.footer__logo { height: 22px; width: auto; }

/* ---------- section title (heads with an h2) ---------- */
.section__head .section__title { margin-top: .9rem; }
.section__title {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.08; max-width: 22ch;
}

/* ---------- pill variants ---------- */
.pill--ghost { background: transparent; color: var(--muted); border-color: var(--line); }

/* ---------- apps / studio ---------- */
.apps { border-bottom: 1px solid var(--line); }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.app-card {
  display: flex; flex-direction: column; gap: 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.3rem, 2.4vw, 1.8rem); transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -30px rgba(0,0,0,.45); }
.app-card__icon { width: 68px; height: 68px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.app-card__top { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.app-card__top h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.app-card__body { display: flex; flex-direction: column; flex: 1; }
.app-card__body p { color: var(--ink-soft); font-size: .98rem; }
.app-card__tag { font-size: .78rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.app-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: 1rem; }
.app-card:hover .brand-card__link { color: var(--ink); }
.app-card--soon { background: transparent; border-style: dashed; }
.app-card--soon .app-card__tag { display: inline-block; margin-top: .9rem; }
.app-card--soon .app-card__icon { opacity: .5; }

/* ---------- brands we've shaped ---------- */
.brands { border-bottom: 1px solid var(--line); }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.brand-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -30px rgba(0,0,0,.45); }
.brand-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: #1a1a18; }
.brand-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.brand-card:hover .brand-card__media img { transform: scale(1.03); }
.brand-card__body { padding: clamp(1rem, 2vw, 1.4rem); display: flex; flex-direction: column; gap: .4rem; }
.brand-card__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.brand-card__top h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.brand-card__link { font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.brand-card:hover .brand-card__link { color: var(--ink); }
.brand-card__tag { font-size: .9rem; color: var(--muted); }

/* ---------- feature reverse + placeholder ---------- */
.feature--reverse .feature__media { order: 2; }
.feature__media--placeholder {
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #ededE7, #ededE7 14px, #e5e4dd 14px, #e5e4dd 28px);
}
.placeholder__note {
  font-size: .9rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted); padding: .5em 1em; border: 1.5px dashed var(--muted); border-radius: 100px; background: rgba(255,255,255,.5);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem); background: rgba(10,10,9,.92);
  opacity: 0; animation: lbIn .2s ease forwards;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { to { opacity: 1; } }
.lightbox__inner { width: min(1000px, 100%); border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lightbox__inner video, .lightbox__inner img, .lightbox__inner iframe { width: 100%; display: block; max-height: 78vh; object-fit: contain; background: #000; border: 0; aspect-ratio: 16/9; }
.lightbox__inner img { object-fit: contain; }
.lightbox__cap { margin-top: 1rem; color: #f0efe9; font-size: .95rem; text-align: center; }
.lightbox__cap strong { font-weight: 800; }
.lightbox__cap span { color: #a3a199; margin-left: .5rem; }
.lightbox__close {
  position: absolute; top: clamp(.8rem, 2vw, 1.4rem); right: clamp(.8rem, 2vw, 1.4rem);
  width: 44px; height: 44px; border-radius: 100px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background .18s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero__row { grid-template-columns: 1fr; align-items: start; }
  .hero__aside { margin-top: .5rem; }
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .reel-grid, .act-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .reel-grid, .act-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 1.4rem; }
  .cta__panel { grid-template-columns: 1fr; }
  .cta__btn { justify-self: start; }
  .award-list li { grid-template-columns: 1fr; gap: .3rem; }
  .cinema { aspect-ratio: 4 / 3; }
  .form__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, .marquee__track, .spin, .cta__mark { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
