/* ==========================================================
   Uttam Shankar portfolio
   Cream white, black, and one tech blue. Geist only.
   ========================================================== */

:root {
  --bg: #faf8f3;
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #5f5d58;
  --ink-3: #aba79e;
  --line: #e6e2d9;
  --surface: #f1eee7;
  --dot: #d8d3c8;
  --blue: #0a5cff;
  --blue-deep: #0042c7;
  --blue-tint: #ebf1ff;

  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(56px, 7vw, 96px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body { font-size: 1.125rem; }
}

img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9375rem;
}
.skip:focus { top: 16px; }

/* Placeholder text: find and replace these before launch */
.ph {
  color: var(--ink-2);
  background: var(--surface);
  border-radius: 4px;
  padding: 0 0.25em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  pointer-events: none;
  animation: intro-out 0s linear 1s forwards;
}
.no-intro .intro { display: none; }
.intro__half {
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
  background-color: var(--blue);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.16) 1px, transparent 1.3px);
  background-size: 22px 22px;
  animation: 0.46s cubic-bezier(0.76, 0, 0.24, 1) 0.52s forwards;
}
.intro__half--l { animation-name: split-l; background-position: right top; }
.intro__half--r { animation-name: split-r; background-position: left top; }
.intro__half img {
  --s: clamp(132px, 24vw, 220px);
  position: absolute;
  top: 50%;
  width: var(--s);
  height: var(--s);
  max-width: none;
  margin-top: calc(var(--s) / -2);
  animation: pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) 0.04s both;
}
.intro__half--l img { right: calc(var(--s) / -2); }
.intro__half--r img { left: calc(var(--s) / -2); }
@keyframes pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes split-l { to { transform: translateX(-100%); } }
@keyframes split-r { to { transform: translateX(100%); } }
@keyframes intro-out { to { visibility: hidden; } }

/* Hero waits for the doors to open */
.intro-on.anim .hero__title .w { animation-delay: calc(0.66s + var(--i) * 70ms); }
.intro-on.anim .hero__sub { animation-delay: 1.06s; }
.intro-on.anim .hero__actions { animation-delay: 1.16s; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.nav.is-scrolled {
  background: rgba(250, 248, 243, 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.avatar {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-tint);
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.18);
}
.avatar--lg {
  width: 120px;
  height: 120px;
  font-size: 2rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 32px);
  font-size: 0.9375rem;
}
.nav__links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(10, 92, 255, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(10, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 92, 255, 0); }
}
@media (max-width: 759px) {
  .nav__status { display: none; }
}
@media (max-width: 480px) {
  .nav__links { gap: 14px; font-size: 0.875rem; }
  .brand { gap: 8px; font-size: 0.9375rem; }
  .avatar { width: 28px; height: 28px; font-size: 0.6875rem; }
}
@media (max-width: 420px) {
  .brand__name { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.96875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 880px);
  padding: 140px 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.12) 82%);
  mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.12) 82%);
}
@media (min-width: 900px) {
  .hero__field {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.4) 35%, #000 68%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.4) 35%, #000 68%);
  }
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__title {
  max-width: 13ch;
  font-size: clamp(2.875rem, 7.6vw, 6.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.048em;
}
.hero__sub {
  max-width: 36ch;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: none; }
}
.anim .hero__title .w {
  display: inline-block;
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms);
}
.anim .hero__sub { animation: rise 0.8s var(--ease) 0.42s both; }
.anim .hero__actions { animation: rise 0.8s var(--ease) 0.52s both; }

/* ---------- Stats ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stat {
  padding: 28px 16px 32px 0;
}
.stat:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
.stats__grid--3 .stat:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }

@media (min-width: 900px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat,
  .stat:nth-child(even),
  .stat:nth-child(n + 3),
  .stats__grid--3 .stat:last-child {
    grid-column: auto;
    padding: 36px 24px 40px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .stat:first-child { padding-left: 0; border-left: 0; }
}
.stat__num {
  font-size: clamp(2.5rem, 4.8vw, 3.875rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat__num--text { font-size: clamp(2rem, 3.6vw, 2.875rem); letter-spacing: -0.035em; }
.stat__label {
  max-width: 22ch;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* ---------- Brands ---------- */

.brands { padding-block: clamp(56px, 7vw, 96px) 0; }
.brands__title {
  margin-bottom: 24px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 400;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--speed, 40s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__list {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
  padding-right: clamp(40px, 6vw, 72px);
}
.marquee__list li {
  display: flex;
  align-items: center;
  height: 48px;
  white-space: nowrap;
}
.logo {
  height: 30px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.25s, filter 0.25s;
}
.logo:hover { opacity: 1; filter: none; }
.wordmark {
  color: var(--ink-3);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  transition: color 0.25s;
}
.wordmark:hover { color: var(--ink); }

/* ---------- Tags ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ---------- Media with placeholders ---------- */

.media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--surface);
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.3px);
  background-size: 18px 18px;
}
.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media.is-empty img,
.media.is-empty video { display: none; }
.media.is-empty::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 12px;
  max-width: calc(100% - 28px);
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink-2);
  font-size: 0.75rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ar-43 { aspect-ratio: 4 / 3; }
.ar-169 { aspect-ratio: 16 / 9; }
.ar-11 { aspect-ratio: 1 / 1; }
.ar-1610 { aspect-ratio: 16 / 10; }
.ar-916 { aspect-ratio: 9 / 16; }

/* ---------- Work ---------- */

/* Three case studies: one row on desktop, image beside text on tablet, stacked on mobile */
.work-grid {
  display: grid;
  gap: 48px;
}
.card { display: block; color: inherit; text-decoration: none; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
}
.card__media > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  transition: transform 0.8s var(--ease);
}
.card:hover .card__media > * { transform: scale(1.035); }
.card__title {
  margin-top: 20px;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}
.card:hover .card__title { color: var(--blue); }
.card__text {
  max-width: 46ch;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
}
.card .tags { margin-top: 14px; }

/* Tablet: image beside text */
@media (min-width: 640px) and (max-width: 1023px) {
  .work-grid { gap: 40px; }
  .card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 28px;
  }
  .card__media { grid-row: 1 / -1; }
  .card > :not(.card__media) { grid-column: 2; }
  .card__title { margin-top: 0; }
  .card .tags { align-self: start; }
}

/* Desktop: three across, middle card set lower for an editorial rhythm */
@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
  }
  .card__title { font-size: 1.5rem; }
}

/* Cursor label over case study cards */
.cursor-pill {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0);
}
.cursor-pill span {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.cursor-pill.is-on span { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Results ---------- */

/* ---------- Results: flip tiles ---------- */

.section-lede {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.5;
}
.tag--channel { background: var(--blue-tint); color: var(--blue-deep); }

.flips { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .flips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
.flip { perspective: 1800px; }
.flip__inner {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s var(--ease);
}
.flip__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 360px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 22px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flip__face--front {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.flip__face--back {
  background-color: var(--blue);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.16) 1px, transparent 1.3px);
  background-size: 22px 22px;
  color: #fff;
  transform: rotateY(180deg);
  pointer-events: none;
}

/* Flipped: by tap or button, by keyboard focus on the back, or by hover */
.flip.is-flipped .flip__inner,
.flip:has(.flip__face--back :focus-visible) .flip__inner { transform: rotateY(180deg); }
.flip.is-flipped .flip__face--front,
.flip:has(.flip__face--back :focus-visible) .flip__face--front { pointer-events: none; }
.flip.is-flipped .flip__face--back,
.flip:has(.flip__face--back :focus-visible) .flip__face--back { pointer-events: auto; }
@media (hover: hover) {
  .flip:hover .flip__inner { transform: rotateY(180deg); }
  .flip:hover .flip__face--front { pointer-events: none; }
  .flip:hover .flip__face--back { pointer-events: auto; }
}

/* Front */
.flip__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.flip__hint {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8125rem;
  white-space: nowrap;
  cursor: pointer;
}
.flip__hint-tap { display: none; }
@media (hover: none) {
  .flip__hint-hover { display: none; }
  .flip__hint-tap { display: inline; }
}
.flip__num {
  color: var(--blue);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.flip__numlabel {
  margin-top: 10px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.flip__brand {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.flip__goal {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.96875rem;
  line-height: 1.45;
}

/* Back */
.flip__backtitle {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.flip__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.flip__close:hover { background: rgba(255, 255, 255, 0.26); }
.flip__desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96875rem;
  line-height: 1.5;
}
.flip__stats li {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.flip__stats li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.flip__stats b {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.flip__stats span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.flip__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}
.flip__link {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 0.96875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.flip__link:hover { text-decoration-thickness: 2px; }
.flip__note {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-style: italic;
}
.flip__face--back :focus-visible { outline-color: #fff; }

/* Reels inside the proof dialog */
.reel-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 540px;
  margin: 24px auto 0;
}
.proof .reel-pair figure,
.proof .reel-pair figure:first-of-type { margin: 0; }
.rreel { aspect-ratio: 9 / 16; border-radius: 14px; }
.rreel img,
.rreel video { position: absolute; inset: 0; }
.proof .rreel img { border: 0; border-radius: 0; }

.results__note { margin-top: 28px; color: var(--ink-2); font-size: 0.8125rem; }


/* Footer: live distance from Earth */
.footer__inner { flex-wrap: wrap; align-items: center; }
.cosmos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  color: var(--blue);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
}
.cosmos b {
  color: inherit;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cosmos__live { display: inline-flex; align-items: center; gap: 8px; }
.cosmos__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.4s infinite;
}


/* ---------- Section bands ----------
   Swap band--dark, band--warm, or band--blue on any section to recolour it. */

.band--dark { background: var(--ink); color: #fff; }
.band--warm { background: var(--surface); }
.band--blue { background: var(--blue); color: #fff; border-top: 0; }

/* Breathing room before the first band */
.brands { padding-bottom: clamp(48px, 6vw, 88px); }

/* Dark band */
.band--dark .section-lede,
.band--dark .results__note { color: rgba(255, 255, 255, 0.62); }
.band--dark .flip__face--front { box-shadow: none; color: var(--ink); }
.band--dark .flip__hint:focus-visible { outline-color: var(--blue); }

/* Warm band: the tools panel turns white so it still stands apart */
.band--warm .toolkit { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.band--warm .filters { background: var(--surface); box-shadow: none; }

/* Blue band */
.band--blue .contact__sub { color: rgba(255, 255, 255, 0.82); }
.band--blue .contact__links a { color: #fff; }
.band--blue .contact__links a:hover { color: #fff; opacity: 0.75; }
.band--blue .ph { background: rgba(255, 255, 255, 0.16); color: #fff; }
.band--blue :focus-visible { outline-color: #fff; }




/* Reduced motion: crossfade instead of flipping */
@media (prefers-reduced-motion: reduce) {
  .flip .flip__inner,
  .flip:hover .flip__inner,
  .flip.is-flipped .flip__inner { transform: none; }
  .flip__face--back { transform: none; opacity: 0; }
  .flip.is-flipped .flip__face--back { opacity: 1; }
  .flip.is-flipped .flip__face--front { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) {
  .flip:hover .flip__face--back { opacity: 1; }
  .flip:hover .flip__face--front { opacity: 0; }
}

/* ---------- What I do ---------- */

.pillars {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}
.pillar {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.pillar h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.pillar p { margin-top: 10px; color: var(--ink-2); }
.also { margin-top: 48px; color: var(--ink-2); }
.also strong { color: var(--ink); font-weight: 500; }

.toolkit {
  margin-top: clamp(64px, 8vw, 96px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 24px;
  background: var(--surface);
}
.toolkit__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.toolkit__title { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.025em; }
.filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.filter {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.tool {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.96875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.tools[data-active] .tool { opacity: 0.32; }
.tools[data-active] .tool.is-match {
  opacity: 1;
  background: var(--blue-tint);
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1px rgba(10, 92, 255, 0.25);
  transform: translateY(-2px);
}

/* Tool logos: one size, greyscale until hovered or filtered
.tool { display: inline-flex; align-items: center; gap: 10px; }
.tool__icon {
  flex: none;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.3s, opacity 0.3s;
}
.tool:hover .tool__icon,
.tools[data-active] .tool.is-match .tool__icon { filter: none; opacity: 1; }

.pillar { transition: border-color 0.25s; }
.pillar.is-hot { border-top-color: var(--blue); }
.pillar.is-hot h3 { color: var(--blue); }
.pillar h3 { transition: color 0.25s; } */

/* Tool logos: full colour, one size */
.tool { display: inline-flex; align-items: center; gap: 10px; }
.tool__icon {
  flex: none;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ---------- About ---------- */

.about {
  display: grid;
  gap: 32px;
  align-items: center;
}
.about__title { grid-column: 1 / -1; }
.about__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 56px; }
}

.about__text { max-width: 62ch; }
.about__text p { color: var(--ink-2); }
.about__text p + p { margin-top: 1.1em; }
.about__text .lead {
  color: var(--ink);
  font-size: clamp(1.375rem, 2.3vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

/* Highlighted words */
.hl { color: var(--blue); }

/* ---------- Contact and footer ---------- */

.contact {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}
.contact__title {
  max-width: 13ch;
  font-size: clamp(2.5rem, 6.6vw, 5.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.048em;
}
.contact__sub { margin-top: 20px; color: var(--ink-2); }
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 36px;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 500;
}
.contact__links a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact__links a:hover { color: var(--blue); }

.footer { border-top: 1px solid var(--line); }
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ==========================================================
   Case study pages
   ========================================================== */

.case-hero { padding: 132px 0 clamp(40px, 6vw, 64px); }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}
.back:hover { color: var(--ink); }
.back svg { transition: transform 0.25s var(--ease); }
.back:hover svg { transform: translateX(-3px); }
.case-hero .tags { margin-top: 36px; }
.case-title {
  max-width: 16ch;
  margin-top: 18px;
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.048em;
}
.case-lede {
  max-width: 44ch;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.45;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-top: 36px;
}
.case-meta dt { color: var(--ink-2); font-size: 0.875rem; }
.case-meta dd { margin-top: 2px; font-size: 1rem; }
.case-cover { margin-top: clamp(40px, 6vw, 64px); border-radius: 22px; }

.block {
  display: grid;
  gap: 14px 48px;
  padding-block: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .block { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .block__label { position: sticky; top: 96px; align-self: start; }
}
.block__label {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.prose { max-width: 680px; }
.prose p + p,
.prose p + ul,
.prose ul + p { margin-top: 1em; }
.prose ul { padding-left: 1.15em; list-style: disc; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--ink-3); }
.prose strong { font-weight: 600; }
.prose .muted { color: var(--ink-2); }

.part {
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(20px, 3vw, 32px);
}
.part__num { color: var(--blue); font-size: 0.9375rem; font-weight: 500; }
.part__title {
  margin-top: 8px;
  font-size: clamp(2.25rem, 4.8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.block-media { padding-bottom: clamp(44px, 6vw, 72px); }

/* Mini results grid */
.minis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}
.mini { padding: 18px 20px; background: var(--paper); }
.mini b {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.mini span {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Funnel in thirds */
.funnel {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.funnel__band {
  display: grid;
  gap: 4px 20px;
  padding: 18px 20px;
}
@media (min-width: 600px) {
  .funnel__band { grid-template-columns: 7.5em 1fr; align-items: baseline; }
}
.funnel__band b { font-weight: 600; }
.funnel__band span { font-size: 0.96875rem; }
.funnel__band:nth-child(1) { background: var(--blue-tint); }
.funnel__band:nth-child(1) b { color: var(--blue-deep); }
.funnel__band:nth-child(2) { background: var(--blue-tint); }
.funnel__band:nth-child(2) b { color: var(--blue-deep); }
.funnel__band:nth-child(3) { background: var(--blue-tint);}
.funnel__band:nth-child(3) b { color: var(--blue-deep); }
.funnel__note { margin-top: 12px; color: var(--ink-2); font-size: 0.875rem; }

/* Before and after */
.compare {
  margin-block: clamp(24px, 4vw, 40px) clamp(56px, 8vw, 96px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: 28px;
  background: var(--surface);
}
.compare__title {
  max-width: 20ch;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.compare__grid {
  display: grid;
  gap: 48px;
  margin-top: clamp(36px, 5vw, 56px);
}
@media (min-width: 960px) {
  .compare__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}
.bars-group + .bars-group { margin-top: 32px; }
.bars-group h3 { font-size: 1rem; font-weight: 600; }
.bars { display: grid; gap: 12px; margin-top: 14px; }
.bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  font-size: 0.9375rem;
}
.bar__label { color: var(--ink-2); }
.bar__value { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar__track {
  grid-column: 1 / -1;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper);
}
.bar__fill {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: #c9c3b7;
  transform-origin: left center;
  transition: transform 1.2s var(--ease);
}
.bar__fill--blue { background: var(--blue); }
.bar--new .bar__value { color: var(--blue); }
.anim .bars:not(.is-in) .bar__fill { transform: scaleX(0); }

.table-scroll { overflow-x: auto; }
.ctable {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.ctable th,
.ctable td {
  padding: 14px 0;
  border-bottom: 1px solid #ddd8ce;
  text-align: left;
}
.ctable th { color: var(--ink-2); font-size: 0.875rem; font-weight: 500; }
.ctable th + th,
.ctable td + td { padding-left: 16px; text-align: right; }
.ctable .is-new { color: var(--blue); font-weight: 600; }
.fineprint { margin-top: 16px; color: var(--ink-2); font-size: 0.8125rem; line-height: 1.5; }
.compare__actions { margin-top: 28px; }

/* Proof dialog */
.proof {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
}
.proof::backdrop {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.proof__inner { padding: clamp(20px, 4vw, 36px); }
.proof__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.proof__head h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.025em; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s;
}
.icon-btn:hover { background: var(--line); }
.proof figure + figure { margin-top: 28px; }
.proof figure:first-of-type { margin-top: 24px; }
.proof img { width: 100%; border: 1px solid var(--line); border-radius: 12px; }
.proof figcaption { margin-top: 10px; color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; }

/* Galleries */
.gallery { display: grid; gap: clamp(10px, 1.4vw, 16px); }
.g-row { display: grid; gap: clamp(10px, 1.4vw, 16px); }
.g-row .media { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .g-row {
    grid-template-columns: var(--cols, 1fr);
    grid-template-rows: 100%;
    aspect-ratio: var(--ar, 16 / 9);
  }
  .g-row .media { aspect-ratio: auto; height: 100%; }
}

/* Next case */
.next {
  display: block;
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.next__label { color: var(--ink-2); font-size: 0.9375rem; }
.next__title {
  margin-top: 10px;
  font-size: clamp(2.25rem, 5.8vw, 4.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.048em;
  transition: color 0.25s;
}
.next:hover .next__title { color: var(--blue); }

/* 404 */
.notfound {
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding-block: 120px;
}
.notfound p { margin-top: 16px; color: var(--ink-2); }
.notfound .btn { margin-top: 32px; justify-self: start; }


/* ---------- Gallery: video row, photo mosaic, and viewer ---------- */

.reels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}
@media (min-width: 760px) {
  .reels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.reel { aspect-ratio: 9 / 16; cursor: pointer; }
.reel__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.reel__play svg { margin-left: 3px; }
.reel:hover .reel__play { transform: scale(1.08); background: #fff; }
.media.is-empty .reel__play { display: none; }

/* Photo rows: 3 horizontals, then 4 verticals per row */
.shots {
  display: grid;
  gap: clamp(10px, 1.4vw, 16px);
  margin-top: clamp(10px, 1.4vw, 16px);
}
.shots--h { grid-template-columns: 1fr; }
.shots--v { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) {
  .shots--h { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shots--v { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.shots--h .shot { aspect-ratio: 3 / 2; }
.shots--v .shot { aspect-ratio: 3 / 4; }
.shot { cursor: zoom-in; }
.shot img { transition: transform 0.7s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.media.is-empty { cursor: default; }


/* Wispr Flow: row 1 = 2 verticals + 1 horizontal, then 3 verticals per row */
.shots--top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots--top .shot { aspect-ratio: 3 / 4; }
.shots--top .shot img { position: absolute; inset: 0; }
.shots--top .shot--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
@media (min-width: 760px) {
  .shots--top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shots--top .shot--wide { aspect-ratio: auto; }
}
.shots--v3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots--v3 .shot { aspect-ratio: 3 / 4; }

/* Horizontal video below the photos */
.reels--wide {
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(10px, 1.4vw, 16px);
}
.reels--wide .reel { aspect-ratio: 16 / 9; }
.reels--wide .reel__play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }



html.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 8, 8, 0.94);
  color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: block; animation: lb-in 0.25s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 72px clamp(16px, 7vw, 96px);
  box-sizing: border-box;
}
.lightbox__stage img,
.lightbox__stage video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  background: #000;
}
.lightbox__btn {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__btn:focus-visible { outline-color: #fff; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev,
.lightbox__next { top: 50%; margin-top: -22px; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
@media (max-width: 640px) {
  .lightbox__stage { padding: 72px 12px 84px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 20px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
}



/* ---------- What I do: spotlight with floating skills ---------- */
.spot { display: grid; gap: 24px; }
@media (min-width: 820px) { .spot { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; } }
.spot__tabs { display: grid; gap: 2px; }
.spot__tab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: inherit; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.05;
  color: var(--ink-3); transition: color 0.3s;
}
.spot__tab::after { content: "→"; font-size: 0.5em; color: var(--blue); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.spot__tab:hover { color: var(--ink-2); }
.spot__tab[aria-selected="true"] { color: var(--ink); }
.spot__tab[aria-selected="true"]::after { opacity: 1; transform: none; }
.field {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 12px 10px;
  min-width: 0; min-height: 300px; padding: clamp(24px, 4vw, 44px) clamp(16px, 3vw, 32px);
  border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  touch-action: pan-y;
}
.float {
  translate: 0 0;
  transition: translate 0.5s var(--ease);
  animation: chip-pop 0.55s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 28ms);
}
.fchip {
  display: inline-block;
  padding: 8px 14px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 2px 8px rgba(10, 10, 10, 0.04);
  font-size: 0.875rem; font-weight: 500; white-space: nowrap; cursor: default;
  rotate: var(--r, 0deg);
  animation: chip-bob var(--d, 5s) ease-in-out var(--delay, 0s) infinite alternate;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, scale 0.3s var(--ease);
}
.float--key .fchip { padding: 10px 18px; font-size: 1rem; font-weight: 600; background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(10, 10, 10, 0.12); }
.fchip:hover { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(10, 92, 255, 0.28); scale: 1.08; }
@keyframes chip-bob {
  from { transform: translateY(calc(var(--a, 4px) * -1)); }
  to { transform: translateY(var(--a, 4px)); }
}
@keyframes chip-pop {
  from { opacity: 0; scale: 0.6; }
  to { opacity: 1; scale: 1; }
}
@media (max-width: 640px) {
  .field { gap: 10px 8px; }
  .fchip { padding: 7px 12px; font-size: 0.8125rem; }
  .float--key .fchip { padding: 8px 14px; font-size: 0.9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  .float, .fchip { animation: none; transition: none; }
}

/* Brand guide slides: shown whole, never cropped, click to enlarge */
.slides { display: grid; gap: clamp(10px, 1.4vw, 16px); }
@media (min-width: 760px) {
  .slides { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}
.slide {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: zoom-in;
}
.slide img { display: block; width: 100%; height: auto; transition: transform 0.7s var(--ease); }
.slide:hover img { transform: scale(1.02); }
.slide.is-empty { display: none; }



/* ---------- Website showcase: browser + phone, scroll inside each screen ---------- */
.showcase { padding: clamp(20px, 5vw, 64px); border-radius: 24px; background: var(--surface); }
.duo { position: relative; padding-bottom: 6%; }
.duo .browser { width: 84%; }
.duo .phone { position: absolute; right: 0; bottom: 0; width: 22%; }
@media (max-width: 640px) {
  .duo .browser { width: 92%; }
  .duo .phone { width: 30%; }
}
.browser { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 24px 60px rgba(40, 20, 40, 0.1); }
.browser__bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfafa; }
.browser__dots { display: flex; gap: 6px; }
.browser__dots span { width: 9px; height: 9px; border-radius: 50%; background: #e2dcd6; }
.browser__url { flex: 1; max-width: 300px; height: 20px; margin: 0 auto; overflow: hidden; border-radius: 6px; background: #f1edea; color: var(--ink-2); font-size: 11px; line-height: 20px; text-align: center; white-space: nowrap; }
.phone { padding: 2px; border-radius: 12% / 5.6%; background: #141214; box-shadow: 0 24px 50px rgba(40, 20, 40, 0.18); }
.screen {
  position: relative;
  overflow-y: auto;
  overscroll-behavior: auto;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 10, 10, 0.25) transparent;
  -webkit-overflow-scrolling: touch;
}
.screen::-webkit-scrollbar { width: 6px; }
.screen::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(10, 10, 10, 0.25); }
.screen::-webkit-scrollbar-track { background: transparent; }
.browser .screen { aspect-ratio: 16 / 10; }
.phone .screen { aspect-ratio: 9 / 19.5; border-radius: calc(12% - 1px) / calc(5.6% - 1px); scrollbar-width: none; }
.phone .screen::-webkit-scrollbar { display: none; }
.screen img { display: block; width: 100%; height: auto; }


/* ---------- Reveal: the next-case link and footer sit behind the page ----------
   The page scrolls up like a sheet, uncovering this layer underneath. */
main {
  position: relative;
  z-index: 1;
  display: flow-root;
  overflow: clip;
  background: var(--bg);
  border-radius: 0 0 clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px);
  box-shadow: 0 28px 50px -24px rgba(10, 10, 10, 0.28);
}
.reveal { position: sticky; bottom: 0; z-index: 0; background: var(--surface); }
.reveal .next { border-top: 0; }

/* ---------- Gumlet embeds ----------
   Tiles play a silent preview; clicks pass through to the tile, which opens the viewer. */
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.reel__play { z-index: 1; }
.lightbox__stage iframe { display: block; width: auto; height: 100%; max-width: 100%; border: 0; border-radius: 12px; background: #000; }


/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim .hero__title .w,
  .anim .hero__sub,
  .anim .hero__actions { animation: none; }
  .anim .bars:not(.is-in) .bar__fill { transform: none; }
  .intro { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; }
  .marquee__list { flex-wrap: wrap; gap: 8px 40px; padding-right: 0; }
  .marquee__list[aria-hidden="true"], .marquee__list .dup { display: none; }
}
