/* DUO · style.css
   Palette and type come from the DUO logo: black, warm white, one gold line. */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Light theme (v3): --ink is the cream page, --paper the near-black type. */
  --ink: #f3efe7;
  --ink-2: #e9e3d7;
  --paper: #111111;
  --muted: #6f6b63;
  --line: #d9d3c7;
  --gold: #b9874a;

  --display: "Montserrat", "Arial Black", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --gap: clamp(48px, 9vw, 140px);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(16px, 0.35vw + 14.6px, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

::selection { background: var(--gold); color: #111; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

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

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- shared pieces ---------- */

.label {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(11px, 0.2vw + 10px, 13px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

/* The gold line from the logo. Every .rule draws in from the left. */
.rule {
  display: block;
  width: clamp(56px, 7vw, 110px);
  height: 3px;
  background: var(--gold);
  transform-origin: left center;
}

.link {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  font-weight: 500;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transition: transform 0.5s var(--ease);
}
.link:hover::after { transform: scaleX(0); }
.link:not(.link--quiet)::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s 0.15s var(--ease);
  z-index: 1;
}
.link:not(.link--quiet):hover::before { transform: scaleX(1); }
.link--quiet { color: var(--muted); }
.link--quiet:hover { color: var(--paper); }

.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line > span { display: block; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: linear-gradient(var(--ink) 30%, rgba(243, 239, 231, 0));
}

.nav__logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__links a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="true"] { color: var(--paper); }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  padding: 8px 0;
  background: none;
  border: 0;
  color: var(--paper);
  font: 500 15px var(--body);
  cursor: pointer;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px var(--pad) 40px;
  background: var(--ink);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 12vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.menu__meta { margin-top: 40px; color: var(--muted); }

/* ---------- hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 96px var(--pad) clamp(28px, 5vh, 56px);
}

.hero__label { margin-bottom: clamp(12px, 2vh, 24px); }

/* Sized by width AND height so it never overflows short laptop screens. */
.hero__mark {
  display: flex;
  font-family: var(--display);
  font-weight: 800;
  font-size: min(37vw, 52svh);
  line-height: 0.8;
  letter-spacing: -0.045em;
  margin-left: -0.06em;
}
.hero__clip { display: block; overflow: hidden; padding: 0.04em 0.02em 0.06em; }
.hero__clip + .hero__clip { margin-left: -0.05em; }
.hero__letter { display: block; }

.hero__base {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(14px, 2.4vh, 28px);
}
.hero__rule { width: clamp(80px, 10vw, 150px); }
.hero__tag { color: var(--gold); }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: clamp(28px, 6vh, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__intro { max-width: 34em; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */

.section { padding: var(--gap) var(--pad) 0; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(40px, 7vw, 96px);
}

.heading {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 8.4vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

/* ---------- work ---------- */

.projects { display: flex; flex-direction: column; gap: clamp(72px, 11vw, 160px); }

.project {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.project__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 6px;
}
.project__num { font-family: var(--display); font-weight: 500; color: var(--muted); font-size: 14px; }
.project__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 8px;
}
.project__type { color: var(--gold); font-weight: 500; }
.project__desc { color: var(--muted); max-width: 26em; }
.project__meta .link { align-self: flex-start; }
.project__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold); }
.dot--live { background: var(--gold); }

.project__media {
  display: block;
  overflow: hidden;
  background: var(--ink-2);
  aspect-ratio: 16 / 10;
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.2s var(--ease);
}


/* ---------- services ---------- */

.services__list { border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px 48px;
  align-items: baseline;
  padding: clamp(24px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.service::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease);
}
.service:hover::after { transform: scaleX(1); }
.service__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.service__desc { color: var(--muted); max-width: 30em; }

/* ---------- process: five steps on one screen ---------- */

.steps { position: relative; padding-top: 6px; }
.steps__line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line);
}
.steps__fill {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--gold);
  transform: scaleX(1);
  transform-origin: left center;
}
.steps__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
  list-style: none;
}
.step { position: relative; padding-top: clamp(28px, 3vw, 44px); }
.step__dot {
  position: absolute;
  top: -11px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--gold);
  transition: background-color 0.4s, border-color 0.4s;
}
.step__num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 5vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  transition: -webkit-text-stroke-color 0.5s;
}
.step__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
}
.step__text { color: var(--muted); font-size: 0.95em; max-width: 22em; }
.step__name, .step__text { transition: opacity 0.5s, transform 0.5s; }

/* With JS the steps start quiet and light up as the line reaches them. */
.steps.is-live .steps__fill { transform: scaleX(0); }
.steps.is-live .step__dot { background: var(--ink); border-color: #cdc5b6; }
.steps.is-live .step__num { -webkit-text-stroke-color: #cdc5b6; }
.steps.is-live .step__name, .steps.is-live .step__text { opacity: 0.25; transform: translateY(8px); }
.steps.is-live .step.is-on .step__dot { background: var(--gold); border-color: var(--gold); }
.steps.is-live .step.is-on .step__num { -webkit-text-stroke-color: var(--gold); }
.steps.is-live .step.is-on .step__name, .steps.is-live .step.is-on .step__text { opacity: 1; transform: none; }

/* Desktop: the section holds the screen while the line runs. */
@media (min-width: 821px) {
  .process.is-pinned { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
}

/* Phone: the steps stack and the line runs down the left. */
@media (max-width: 820px) {
  .steps { padding: 0 0 0 34px; }
  .steps__line { top: 6px; bottom: 6px; left: 5px; right: auto; width: 2px; height: auto; }
  .steps__fill { transform-origin: center top; }
  .steps.is-live .steps__fill { transform: scaleY(0); }
  .steps__list { grid-template-columns: 1fr; gap: 36px; }
  .step { padding-top: 0; }
  .step__dot { top: 4px; left: -34px; }
  .step__num { font-size: 40px; }
  .step__name { margin: 8px 0 6px; }
}

/* ---------- studio ---------- */

.studio__body {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: start;
}
.studio__text { font-size: clamp(19px, 1.5vw, 26px); line-height: 1.45; max-width: 24em; }
.founders { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.founder {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.founder__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: -0.02em;
}

/* ---------- contact ---------- */

.contact { padding-bottom: clamp(64px, 9vw, 120px); }
.contact > .label { margin-bottom: clamp(14px, 2vw, 22px); }
.contact__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: min(13vw, 22svh);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.contact__rule { width: 100%; height: 3px; margin: clamp(24px, 4vw, 48px) 0; }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 64px;
  align-items: end;
}
.contact__lead { color: var(--muted); margin-bottom: 16px; }
.contact__email {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 52px);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  transition: color 0.3s;
}
.contact__email:hover { color: var(--gold); }
.contact__list { display: flex; flex-direction: column; gap: 18px; }
.contact__list .link { justify-self: start; }
.contact__list li { display: grid; grid-template-columns: 9.5em 1fr; align-items: baseline; gap: 12px; }

.footer {
  display: flex;
  justify-content: space-between;
  padding: 24px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.notfound {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: 100svh;
  padding: 96px var(--pad);
}

/* ---------- initial states (only when JS runs and motion is allowed) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero__letter,
  .js .line > span { transform: translateY(105%); }
  .js .rule { transform: scaleX(0); }
  .js .hero__label,
  .js .hero__tag,
  .js .hero__foot,
  .js body:not(.is-case) .nav { opacity: 0; }
  .js .project__media { clip-path: inset(99.5% 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .step { border-top: 2px solid var(--line); }
  .step::before { top: -7px; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .project { grid-template-columns: 1fr; }
  .project__media { order: -1; }

  .service,
  .studio__body,
  .contact__grid { grid-template-columns: 1fr; }

  .hero { min-height: 88svh; }
  .hero__mark { font-size: min(33vw, 46svh); }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero__actions { gap: 24px; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .footer { flex-direction: column; gap: 8px; }
}

/* ---------- case study pages ---------- */

.case-head {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(120px, 16vh, 180px) var(--pad) clamp(40px, 6vw, 80px);
}
.case-head__back { align-self: flex-start; margin-bottom: clamp(16px, 4vh, 40px); }
.case-head__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: min(11vw, 20svh);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.case-head__summary {
  max-width: 30em;
  font-size: clamp(19px, 1.5vw, 26px);
  line-height: 1.45;
  margin-top: clamp(8px, 2vw, 24px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px clamp(24px, 3vw, 48px);
  margin: clamp(24px, 4vw, 56px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.facts dt { margin-bottom: 8px; }
.facts dd { margin: 0; display: flex; align-items: center; gap: 10px; }
.facts .link { align-self: flex-start; }

.case-media { margin: 0; padding: 0 var(--pad); }
.case-media figure { margin: 0; }
.case-media--pair {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  gap: clamp(16px, 2.4vw, 40px);
  align-items: end;
  margin-top: var(--gap);
}
.project__media--phone { aspect-ratio: 39 / 80; }

.case-block {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px clamp(24px, 4vw, 64px);
  padding: var(--gap) var(--pad) 0;
}
.case-block__body { display: flex; flex-direction: column; gap: 1em; max-width: 36em; font-size: clamp(18px, 1.3vw, 22px); line-height: 1.55; }
.case-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.case-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }

.next { padding: var(--gap) var(--pad) clamp(64px, 9vw, 120px); }
.next .label { margin-bottom: clamp(14px, 2vw, 22px); }
.next__link { display: inline-flex; flex-direction: column; gap: clamp(12px, 2vw, 24px); }
.next__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.next__rule,
.js .next__rule { width: 100%; transform: scaleX(0.12); transition: transform 0.9s var(--ease); }
.next__link:hover .next__rule,
.next__link:focus-visible .next__rule { transform: scaleX(1); }

.footer--case { flex-wrap: wrap; gap: 12px 32px; }

@media (max-width: 820px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-block { grid-template-columns: 1fr; }
  .case-media--pair { grid-template-columns: 1fr; }
  .project__media--phone { width: min(70%, 320px); justify-self: center; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
}
.project__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.project__name a:hover { color: var(--gold); }

/* ---------- page wipe, screenshot line ---------- */

.wipe {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--ink);
  border-top: 3px solid var(--gold);
  pointer-events: none;
}

.media-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform-origin: left center;
  z-index: 2;
  pointer-events: none;
}
.project__media { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  html.is-wiping::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 96;
    background: var(--ink);
  }
}

/* ---------- hero reveal: founders photo / video behind the letters ---------- */

.hero { position: relative; overflow: hidden; }
.hero > :not(.hero__media) { position: relative; z-index: 1; }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Black and white keeps any photo or phone video inside the DUO palette. */
  filter: grayscale(1) contrast(1.08) brightness(0.8);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0) 45%);
}

.hero__caption {
  position: absolute !important;
  left: var(--pad);
  bottom: clamp(28px, 6vh, 64px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  font-size: clamp(16px, 1.2vw, 20px);
}

@media (prefers-reduced-motion: reduce) {
  .hero__media,
  .hero__caption { display: none; }
}

/* ---------- client logos (white knock-outs of each client's own mark) ---------- */

.project__logo,
.case-head__logo { align-self: flex-start; object-fit: contain; }
.project__logo {
  width: auto;
  height: clamp(48px, 4.2vw, 64px);
  margin-bottom: 18px;
  opacity: 0.9;
}
.case-head__logo {
  width: auto;
  height: clamp(64px, 6vw, 96px);
  margin-bottom: clamp(8px, 2vh, 20px);
}

/* ---------- real recordings (v1.5): screenshots and videos share the recording's shape ---------- */

.project__media { aspect-ratio: 1280 / 606; }
.project__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-media--second { margin-top: var(--gap); }

/* ---------- v1.6: solid nav on scroll, darker hero reel ---------- */

.nav { transition: background-color 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: var(--ink); border-bottom-color: var(--line); }
.hero__media video { filter: grayscale(1) contrast(1.05) brightness(0.62); }

/* ---------- v1.7: work panels show each client's logo instead of a screenshot ---------- */

.project__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 45%, #232322 0%, var(--ink-2) 70%);
}
.project__media .project__brand {
  width: auto;
  height: auto;
  max-width: 52%;
  max-height: 44%;
  object-fit: contain;
  transition: scale 1s var(--ease), opacity 0.4s;
  opacity: 0.92;
}
.project__media:hover .project__brand { scale: 1.05; opacity: 1; }
.project__cue {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(14px, 1.8vw, 24px);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.3s;
}
.project__cue::after { content: " \2192"; }
.project__media:hover .project__cue { color: var(--gold); }

.contact .button {
  display: inline-block;
  margin-top: clamp(20px, 2.4vw, 32px);
  padding: 14px 26px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}
.contact .button::after { content: " \2197"; }
.contact .button:hover { background: var(--gold); color: #111; }

/* ---------- v1.8: client logos in their original colours, on their own background ---------- */

.project__media { background: var(--brand-bg, var(--ink-2)); }
.project__media .project__brand { opacity: 1; max-width: 56%; max-height: 62%; }
.project__media--light { border-color: transparent; }
.project__media--light .project__cue { color: #5f5f5b; }
.project__media--light:hover .project__cue { color: #121212; }

.case-head__logo {
  display: grid;
  place-items: center;
  width: clamp(140px, 14vw, 200px);
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 14px;
  background: var(--brand-bg, var(--ink-2));
  border: 1px solid var(--line);
}
.case-head__logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- v2.0 opening loader: DUO types itself over a filling underline ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--ink);
}
.loader__inner { width: 3.1em; font-size: clamp(56px, 10vw, 150px); }
.loader__word {
  display: flex;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.loader__word span { opacity: 0; }
.loader__track {
  position: relative;
  height: 1px;
  margin-top: 0.14em;
  background: var(--line);
}
.loader__fill {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- v2.0 work reel (curved 3D carousel) ---------- */

.reel { --cw: min(64vw, 980px); --ar: 0.4734; position: relative; }
.reel__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 80px) clamp(24px, 3vw, 40px);
}
.reel__card {
  position: relative;
  display: block;
  aspect-ratio: 1280 / 606;
  overflow: hidden;
  background: var(--brand-bg);
  border: 1px solid var(--line);
}
.reel__logo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: var(--brand-bg);
  transition: opacity 0.6s var(--ease);
}
.reel__logo img { width: auto; height: auto; max-width: 56%; max-height: 60%; object-fit: contain; }
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.reel__info { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.reel__num { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.2em; color: var(--muted); }
.reel__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.reel__name a { transition: color 0.3s; }
.reel__name a:hover { color: var(--gold); }
.reel__type { color: var(--gold); font-weight: 500; }
.reel__desc { color: var(--muted); max-width: 30em; }
.reel__info .project__status { margin: 4px 0 8px; }
.reel__controls { display: none; }

.reel.is-live {
  height: calc(var(--cw) * var(--ar) + clamp(300px, 24vw, 340px));
  perspective: 1800px;
  margin: 0 calc(var(--pad) * -1);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.reel.is-live .reel__list { display: block; position: absolute; inset: 0; transform-style: preserve-3d; }
.reel.is-live .reel__item { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; }
.reel.is-live .reel__card {
  position: absolute;
  top: 24px;
  left: 50%;
  width: var(--cw);
  margin-left: calc(var(--cw) / -2);
  border-radius: 6px;
  box-shadow: 0 40px 80px rgba(60, 45, 20, 0.18);
  pointer-events: auto;
  cursor: pointer;
  will-change: transform, opacity;
}
.reel.is-live .reel__card img { pointer-events: none; -webkit-user-drag: none; }
.reel.is-live .is-active .reel__logo { opacity: 0; }
.reel.is-live .reel__info {
  position: absolute;
  top: calc(24px + var(--cw) * var(--ar) + 76px);
  left: var(--pad);
  right: var(--pad);
  margin: 0;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
}
.reel.is-live .reel__info .project__links { justify-content: center; }
.reel.is-live .is-active .reel__info { pointer-events: auto; }
.reel__glow {
  position: absolute;
  left: 50%;
  top: calc(24px + var(--cw) * var(--ar) - 30px);
  width: calc(var(--cw) * 1.2);
  height: 140px;
  margin-left: calc(var(--cw) * -0.6);
  background: radial-gradient(closest-side, currentColor, transparent);
  opacity: 0.38;
  filter: blur(24px);
  transition: color 0.8s var(--ease);
  pointer-events: none;
}
.reel.is-live .reel__controls {
  position: absolute;
  top: calc(24px + var(--cw) * var(--ar) + 34px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.reel__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.reel__btn:hover { border-color: var(--gold); color: var(--gold); }
.reel__dots { display: flex; gap: 6px; }
.reel__dots span { width: 44px; height: 3px; background: var(--line); transition: background-color 0.5s; }

@media (max-width: 820px) {
  .reel { --cw: 80vw; }
  .reel__list { grid-template-columns: 1fr; }
  .reel.is-live { height: calc(var(--cw) * var(--ar) + 380px); }
}

/* ---------- v2.1: the hero reel is shown in its own colours ---------- */

.hero__media video { filter: none; }
/* On a tall phone screen, cover would cut the reel's words off at the sides. */
@media (max-aspect-ratio: 1/1) {
  .hero__media video { object-fit: contain; background: #000; }
}

/* ---------- v3.0: light cream theme (Keshav picked mockup B) ---------- */

/* Nav: links left, DUO in the centre, place and a pill button on the right. */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "links logo end";
}
.nav__links { grid-area: links; }
.nav__logo { grid-area: logo; position: relative; }
.nav__logo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 26px;
  height: 3px;
  margin-left: -13px;
  background: var(--gold);
}
.nav__end { grid-area: end; justify-self: end; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav__place { color: var(--muted); }
.nav__toggle { grid-area: end; justify-self: end; color: var(--paper); }
.nav.is-solid { background: var(--ink); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border: 1px solid var(--paper);
  border-radius: 99px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.pill:hover { background: var(--gold); border-color: var(--gold); color: #111; }
.pill--ghost { background: transparent; color: var(--paper); }

.hero__actions .link { padding: 0; }
.contact .button {
  border-radius: 99px;
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

/* Words shown over the hero video stay light. */
.hero__caption { color: #f3efe7; }
.hero__media::after { background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 45%); }

/* Rounded media, like the mockup. */
.reel.is-live .reel__card,
.reel__card { border-radius: 16px; border-color: var(--line); }
.case-media img,
.case-media video { border-radius: 16px; }
.case-head__logo { border-radius: 12px; }
.reel__glow { opacity: 0.28; }

/* Brands strip */
.brands {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: var(--gap);
  padding: clamp(32px, 4vw, 52px) var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brands .label { color: var(--muted); }
.brands ul { display: flex; align-items: center; gap: clamp(28px, 5vw, 80px); }
.brands img { width: auto; height: clamp(40px, 4vw, 58px); mix-blend-mode: multiply; }
.brands img.is-dark { mix-blend-mode: normal; border-radius: 8px; }

@media (max-width: 820px) {
  .nav { grid-template-columns: auto 1fr; grid-template-areas: "logo end"; }
  .nav__logo::after { left: 0; margin-left: 0; }
  .nav__end { display: none; }
  .brands { flex-direction: column; align-items: flex-start; }
  .brands ul { flex-wrap: wrap; gap: 24px 32px; }
}

/* ---------- v3.1: upcoming projects (names private until launch) ---------- */

.upcoming { margin-top: clamp(56px, 7vw, 96px); }
.upcoming > .label { margin-bottom: 20px; }
.upcoming__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.upcoming__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: clamp(200px, 18vw, 260px);
  padding: clamp(22px, 2.6vw, 36px);
  overflow: hidden;
  border: 1px dashed #c9c0ae;
  border-radius: 16px;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(185, 135, 74, 0.06) 14px 15px), var(--ink-2);
}
.upcoming__tag {
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid var(--gold);
  border-radius: 99px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
}
.upcoming__name {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.upcoming__text { color: var(--muted); max-width: 26em; }

@media (max-width: 820px) {
  .upcoming__list { grid-template-columns: 1fr; }
}

/* v3.2: every frame that holds a site recording has the recording's own shape (1280 × 606), so nothing is cropped. */
.case-media .project__media { aspect-ratio: 1280 / 606; }
.reel__video { object-position: center; }

/* ---------- v3.3: a calmer type scale (Keshav: text felt too big) ---------- */

body { font-size: clamp(15px, 0.2vw + 13.6px, 17px); }
.hero__mark { font-size: min(30vw, 44svh); }
.heading { font-size: clamp(34px, 5.4vw, 84px); }
.reel__name { font-size: clamp(24px, 2.4vw, 38px); }
.service__name { font-size: clamp(22px, 2.4vw, 36px); }
.studio__text { font-size: clamp(17px, 1.2vw, 21px); }
.founder__name { font-size: clamp(20px, 1.8vw, 28px); }
.upcoming__name { font-size: clamp(22px, 2.2vw, 32px); }
.case-head__title { font-size: clamp(40px, 7vw, 108px); }
.case-head__summary { font-size: clamp(17px, 1.2vw, 21px); }
.case-block__body { font-size: clamp(16px, 1.1vw, 19px); }
.next__name { font-size: clamp(32px, 5.4vw, 84px); }
.loader__inner { font-size: clamp(48px, 8vw, 120px); }

/* Contact: smaller and quieter. */
.contact { padding-bottom: clamp(48px, 7vw, 96px); }
.contact__title { font-size: clamp(40px, 6.4vw, 100px); }
.contact__rule { height: 2px; margin: clamp(20px, 3vw, 36px) 0; }
.contact__lead { font-size: 15px; margin-bottom: 10px; }
.contact__email { font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -0.02em; }
.contact .button { display: table; margin-top: 20px; padding: 11px 22px; font-size: 15px; }
.contact__list { gap: 12px; font-size: 15px; }
.contact__list li { grid-template-columns: 8em 1fr; }

@media (max-width: 820px) {
  .hero__mark { font-size: min(30vw, 46svh); }
  .contact__list li { grid-template-columns: 1fr; }
}

/* v3.4: the loader letters sit centred over the line, and the gold fills out from the middle. */
.loader__word { justify-content: center; }
.loader__fill { transform-origin: center center; }

/* ---------- v3.6: founders with photos ---------- */

.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); border: 0; }
.founder { display: block; padding: 0; border: 0; }
.founder__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  background: var(--ink-2);
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.6s ease;
}
.founder:hover .founder__photo { filter: grayscale(0) contrast(1); }
.founder__name { margin-top: 14px; }
.founder .label { margin-top: 4px; }

/* v3.6: side cards show their logo in the strip that is visible past the front card. */
.reel__item[data-side="l"] .reel__logo { justify-items: start; padding-left: 21%; }
.reel__item[data-side="r"] .reel__logo { justify-items: end; padding-right: 21%; }
.reel__item[data-side="l"] .reel__logo img,
.reel__item[data-side="r"] .reel__logo img { max-width: 22%; }
/* On a phone only a sliver of each side card shows, too thin for a logo. */
@media (max-width: 820px) {
  .reel__item[data-side="l"] .reel__logo img,
  .reel__item[data-side="r"] .reel__logo img { opacity: 0; }
}

/* v3.6: the brand strip uses copies of the logos on pure white, which disappears into the cream under multiply. */

/* v3.6: a way to start a project right after the work, not only at the bottom. */
.work-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(32px, 4vw, 56px);
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-top: 1px solid var(--line);
}
.work-cta__text { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 30px); letter-spacing: -0.02em; }

/* v3.6: the upcoming cards' stripes drift slowly, like work in progress. */
.upcoming__card { animation: upcoming-drift 6s linear infinite; }
.upcoming__tag { display: inline-flex; align-items: center; gap: 8px; }
.upcoming__tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: upcoming-pulse 1.6s ease-in-out infinite;
}
@keyframes upcoming-drift { to { background-position: 42.43px 0, 0 0; } }
@keyframes upcoming-pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
  .upcoming__card, .upcoming__tag::before { animation: none; }
}

/* v3.6: Mumbai clock in the nav. */
.clock { font-variant-numeric: tabular-nums; }
.clock:not(:empty)::before { content: "· "; }

/* v3.6: the recording that follows the cursor over the brand logos. */
.brands a { display: block; }
.brands img { transition: transform 0.4s var(--ease); }
.brands a:hover img { transform: translateY(-3px); }
.preview {
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
  width: clamp(260px, 24vw, 380px);
  aspect-ratio: 1280 / 606;
  margin: 24px 0 0 24px;
  pointer-events: none;
}
.preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(17, 17, 17, 0.45);
  opacity: 0;
  transform: scale(0.85) rotate(-3deg);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.preview.is-on video { opacity: 1; transform: none; }

/* v3.6: case pages show the second view in a browser frame, with the phone version beside it. */
.case-devices { position: relative; }
.case-devices.has-phone { padding-bottom: clamp(48px, 7vw, 110px); }
/* Room for the phone only once a real phone screenshot is added (class has-phone on the figure). */
.case-devices.has-phone .browser { margin-right: clamp(56px, 13vw, 220px); }
.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-2);
  box-shadow: 0 40px 80px -48px rgba(17, 17, 17, 0.4);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cdc5b6; }
.browser__bar span { margin: 0 auto; padding: 3px 16px; border-radius: 99px; background: var(--ink); }
.case-devices .browser .project__media,
.case-devices .browser img { border-radius: 0; }
.phone {
  position: absolute;
  right: var(--pad);
  bottom: 0;
  width: clamp(110px, 17vw, 250px);
  aspect-ratio: 780 / 1600;
  padding: clamp(5px, 0.6vw, 9px);
  border-radius: clamp(20px, 2.8vw, 40px);
  background: #111;
  box-shadow: 0 30px 60px -24px rgba(17, 17, 17, 0.5);
}
.case-media .phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: clamp(15px, 2.2vw, 32px); }
@media (max-width: 820px) {
  .case-devices.has-phone .browser { margin-right: 18vw; }
  .browser__bar { height: 26px; font-size: 10px; }
  .phone { width: 28vw; }
}
