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

:root {
  --bg: #FFFAF8;
  --ink: #2A181C;
  --soft: #9A8188;
  --line: rgba(42, 24, 28, 0.10);
  --accent: #D62F4E;
  --accent-deep: #B81C3C;
  --amber: #E8903F;
  --pink: #F7A8B4;

  --serif: 'Newsreader', Georgia, serif;
  --script: 'Alex Brush', cursive;
  --hand: 'Homemade Apple', cursive;
  --sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* grain lifted from the palette artwork */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ════════ NAV (pill chips) ════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(16px, 3.5vw, 42px);
  pointer-events: none;
}
nav > * { pointer-events: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(42, 24, 28, 0.06);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(42, 24, 28, 0.1); }
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
/* ════════ ICONS (inline SVG sprite, never emoji) ════════ */
.icon-sprite { display: none; }

svg.ic {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.ic.solid { fill: currentColor; stroke: none; }
svg.ic.sm { width: 12px; height: 12px; }

.pill svg.ic { margin-right: -1px; }

.nav-logo { font-size: 16px; letter-spacing: 0.01em; padding: 8px 20px; }
.nav-sep { color: var(--soft); opacity: 0.55; margin: 0 4px; font-weight: 400; }
.nav-group { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* the round menu button only exists on narrow screens */
.nav-toggle { display: none; }

/* ════════ HERO ════════ */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(112px, 17vh, 168px) 24px clamp(30px, 6vh, 60px);
  text-align: center;
}
.statement-wrap {
  position: relative;
  padding: clamp(36px, 6vw, 70px) 0 clamp(44px, 7vw, 80px);
}
.hero-statement {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0.005em;
}
.hero-statement .u {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 92%;
}

.script {
  font-family: var(--hand);
  color: var(--accent);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}
.statement-wrap .script { position: absolute; z-index: 2; }
.statement-wrap .script-1 {
  font-size: clamp(34px, 5vw, 64px);
  top: clamp(-14px, -0.8vw, -4px);
  left: clamp(-14px, -1vw, 0px);
  transform: rotate(-9deg);
}
.statement-wrap .script-2 {
  font-size: clamp(27px, 3.9vw, 50px);
  bottom: clamp(-4px, 0vw, 4px);
  right: clamp(-14px, -1vw, 0px);
  transform: rotate(-5deg);
}

.scroll-hint {
  margin: clamp(40px, 7vh, 80px) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  text-align: center;
}
.mouse {
  width: 20px; height: 32px;
  border: 1.5px solid var(--soft);
  border-radius: 12px;
  position: relative;
}
.mouse::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 6px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--soft);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(9px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ════════ WORK FEED ════════ */
.feed {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 90px) 20px 0;
  display: flex;
  flex-direction: column;
  gap: clamp(90px, 14vh, 150px);
}

.feed-label {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--soft);
}
.feed-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.feed-label svg.ic { color: var(--accent); }
/* phrases stay whole; the row wraps between them instead of mid-phrase */
.feed-label .fl-t { white-space: nowrap; }

.work-item { cursor: pointer; }

.panel {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  padding: clamp(40px, 6.4vw, 88px) clamp(26px, 5.8vw, 78px) 0;
  transition: transform 0.5s var(--ease);
}
.work-item:hover .panel { transform: translateY(-4px); }

/* grain + white sparkles echo the palette artwork */
.panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}
.panel::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--bg) 88%);
  pointer-events: none;
  z-index: 2;
}
.sparkle {
  position: absolute;
  z-index: 3;
  width: var(--s, 26px);
  height: var(--s, 26px);
  fill: #fff;
  stroke: none;
  opacity: 0.9;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.5));
  animation: twinkle 4.5s ease-in-out infinite;
  animation-delay: var(--sd, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.6; transform: scale(0.9) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1.1) rotate(8deg); }
}

/* warm palette panel tints */
.tint-blush      { background: linear-gradient(180deg, #F7B0BD 0%, #FBDBE1 55%, var(--bg) 100%); }
.tint-coral      { background: linear-gradient(180deg, #F49F8B 0%, #FBD9CE 55%, var(--bg) 100%); }
.tint-rose       { background: linear-gradient(180deg, #EE7F94 0%, #F8C6D0 55%, var(--bg) 100%); }
.tint-apricot    { background: linear-gradient(180deg, #F0B87C 0%, #FAE3C8 55%, var(--bg) 100%); }
.tint-amber      { background: linear-gradient(180deg, #E8A75C 0%, #F7DDBC 55%, var(--bg) 100%); }
.tint-crimson    { background: linear-gradient(180deg, #DE6B81 0%, #F3C0CA 55%, var(--bg) 100%); }
.tint-peach      { background: linear-gradient(180deg, #F5BFA6 0%, #FCE5DA 55%, var(--bg) 100%); }
.tint-sand       { background: linear-gradient(180deg, #E9CBA8 0%, #F7E9D9 55%, var(--bg) 100%); }
.tint-mauve      { background: linear-gradient(180deg, #DCA5B8 0%, #F2D8E1 55%, var(--bg) 100%); }
.tint-terracotta { background: linear-gradient(180deg, #E0906F 0%, #F6D1C0 55%, var(--bg) 100%); }

.shot { position: relative; max-width: 620px; margin: 0 auto; }
.shot .main {
  border-radius: 10px 10px 0 0;
  box-shadow: 0 18px 44px rgba(42, 24, 28, 0.2);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  transition: transform 0.6s var(--ease);
}
/* complete artwork, shown whole: no fade into the panel and no reflection,
   because the data sits right at the bottom edge of these compositions */
.panel.solid-art { padding-bottom: clamp(28px, 5vw, 56px); }
.panel.solid-art::after { display: none; }
.shot.square { max-width: 500px; }
.shot.wide-art { max-width: 660px; }
.shot.wide-art .main {
  -webkit-mask-image: none;
  mask-image: none;
  border-radius: 12px;
  box-shadow: 0 22px 54px rgba(42, 24, 28, 0.26);
}
.shot.wide-art .mirror { display: none; }
.shot.square .main {
  -webkit-mask-image: none;
  mask-image: none;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(42, 24, 28, 0.2);
}
.shot.square .mirror { display: none; }

/* mobile-flow variant: a few phone screens standing side by side */
.shot.phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 24px);
  max-width: 640px;
  /* the lifted phone translates up into the panel's own top padding, so phone
     shots carry extra headroom of their own or they crowd the tinted edge */
  padding-top: clamp(18px, 2.6vw, 38px);
}
.shot.phones .phone {
  width: clamp(112px, 30%, 196px);
  /* every screen reads as the same device, so long pages show their top
     rather than making one phone tower over its neighbours */
  aspect-ratio: 430 / 932;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(42, 24, 28, 0.22);
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
  transition: transform 0.6s var(--ease);
}
.shot.phones .phone.lift { transform: translateY(-28px); }
.work-item:hover .shot.phones .phone { transform: translateY(-7px); }
.work-item:hover .shot.phones .phone.lift { transform: translateY(-35px); }
.reveal-img .shot.phones .phone { transform: none; }

.shot .mirror {
  position: absolute;
  top: 100%; left: 0; right: 0;
  transform: scaleY(-1);
  opacity: 0.25;
  filter: blur(3px);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(0deg, #000 0%, transparent 55%);
  pointer-events: none;
}

/* Full-page screenshots run several times taller than the rest of the artwork,
   which stretches the card out of proportion with the feed and drops the
   centred coming-soon badge halfway down someone else's page. Crop to the top
   of the page instead, at the same ratio the other cards sit at. */
.shot.tall-art {
  aspect-ratio: 62 / 42;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.shot.tall-art .main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.shot.tall-art .mirror { display: none; }

/* floating rotated tags (appear on hover) */
.tag {
  position: absolute;
  z-index: 4;
  font-family: var(--serif);
  font-size: clamp(12px, 1.4vw, 16px);
  font-weight: 500;
  color: #fff;
  background: rgba(88, 30, 42, 0.8);
  border-radius: 10px;
  padding: 8px 18px;
  box-shadow: 0 6px 18px rgba(42, 24, 28, 0.18);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.tag.tl { top: 12%; left: 4%; --r: -10deg; }
.tag.tr { top: 10%; right: 4%; --r: 9deg; --td: 0.05s; }
.tag.bl { bottom: 26%; left: 6%; --r: 7deg; --td: 0.1s; }
.tag.br { bottom: 30%; right: 5%; --r: -8deg; --td: 0.15s; }

/* caption under panel */
.caption {
  max-width: 620px;
  margin: 26px auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.5vw, 25px);
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}
.meta {
  max-width: 620px;
  margin: 10px auto 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--soft);
  text-align: left;
}
.meta b { font-weight: 600; color: var(--accent); }

/* cursor-follow CTA */
.follow-cta {
  position: fixed;
  top: 0; left: 0;
  z-index: 150;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  border-radius: 100px;
  padding: 10px 22px;
  box-shadow: 0 8px 24px rgba(214, 47, 78, 0.4);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -130%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
  white-space: nowrap;
}
.follow-cta.show { opacity: 1; transform: translate(-50%, -130%) scale(1); }
@media (pointer: coarse) { .follow-cta { display: none; } }

/* handwritten interludes */
.interlude {
  font-family: var(--hand);
  font-size: clamp(15px, 2.4vw, 23px);
  line-height: 2;
  color: var(--ink);
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px;
  transform: rotate(-2deg);
}

/* ════════ TRUSTED BY ════════ */
.trusted {
  max-width: 860px;
  margin: clamp(40px, 7vh, 80px) auto 0;
  padding: 0 20px;
}
.trusted .feed-label { margin-bottom: clamp(26px, 4.5vh, 42px); }

/* the real brand marks, exported from the Figma file as vectors: a plain row,
   no rules or dividers, each logo at the width it holds in the design.
   Wide screens show one static row; narrow ones scroll it as a marquee, so the
   logos never stack into a grid. The second row is the marquee's seam copy. */
.logo-marquee { --mgap: clamp(16px, 2.6vw, 34px); }
.logo-marquee .logo-row + .logo-row { display: none; }
.logo-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 3.5vw, 44px) clamp(16px, 2.6vw, 34px);
  padding: clamp(20px, 3.5vh, 34px) 0;
}
.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
}
.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  opacity: 0.78;
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
/* only the drawing paths take the ink: the LALINE mark carries a mask whose
   own fill="white" must survive, so anything already carrying a fill is left be */
.brand-logo [fill=""], .brand-logo path:not([fill]) {
  fill: var(--soft);
  stroke: none;
  transition: fill 0.35s var(--ease);
}
.logo-slot:hover .brand-logo { opacity: 1; transform: translateY(-2px); }
.logo-slot:hover .brand-logo path:not([fill]) { fill: var(--ink); }

.wm-heavy { font-weight: 600; font-size: clamp(16px, 1.6vw, 21px); letter-spacing: 0.05em; }
.wm-airy  { font-weight: 400; font-size: clamp(11px, 1.1vw, 14px); letter-spacing: 0.32em; }
.wm-tight { font-weight: 600; font-size: clamp(13px, 1.35vw, 17px); letter-spacing: -0.012em; }
.wm-serif { font-family: var(--serif); font-size: clamp(16px, 1.8vw, 23px); line-height: 1.15; }
.wm-stack { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.wm-stack small {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* cross-page invitation card */
.next-page {
  max-width: 860px;
  margin: clamp(90px, 14vh, 150px) auto 0;
  padding: 0 20px;
}
.next-page a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  text-decoration: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 5vh, 48px) clamp(8px, 2vw, 24px);
  transition: border-color 0.4s, padding 0.4s var(--ease);
}
.next-page a:hover { border-color: var(--accent); }
.next-page .np-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
  transition: color 0.3s;
}
.next-page a:hover .np-label { color: var(--accent); }
.next-page .np-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.15;
}
.next-page .np-arrow {
  width: clamp(30px, 3.4vw, 42px);
  height: clamp(30px, 3.4vw, 42px);
  color: var(--accent);
  stroke-width: 1.4;
  transition: transform 0.45s var(--ease);
}
.next-page a:hover .np-arrow { transform: translateX(12px); }
.next-page a:hover .np-arrow.back { transform: translateX(-12px); }

/* ════════ CASE STUDY PAGE ════════ */
.case-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(96px, 15vh, 140px) 24px clamp(30px, 5vh, 56px);
  text-align: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.3s, transform 0.35s var(--ease);
}
.back-link:hover { color: var(--accent); transform: translateX(-4px); }
.back-link svg.ic { width: 13px; height: 13px; }

.case-kicker {
  margin-top: 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.case-kicker .fl-t { white-space: nowrap; }
.case-kicker svg.ic { width: 11px; height: 11px; }

.case-title {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.case-title em { font-style: italic; color: var(--accent); }

.case-lede {
  max-width: 680px;
  margin: 22px auto 0;
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--soft);
}

.case-panel {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.case-panel .panel { padding-bottom: 0; }
.case-panel .shot.phones { max-width: 760px; }

/* meta strip */
.case-meta {
  max-width: 1080px;
  margin: clamp(30px, 5vh, 56px) auto 0;
  padding: 0 20px;
}
.case-meta-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-meta-col { padding: clamp(24px, 4vh, 38px) clamp(14px, 2vw, 28px); }
.case-meta-col + .case-meta-col { border-left: 1px solid var(--line); }
/* headline numbers: figure first, label under it */
.case-figures { grid-template-columns: repeat(3, 1fr); }
.case-figures .case-meta-col { text-align: center; }
/* a centred label above a triad, for the rows that are not self-explanatory
   the way a number is */
.case-figures-label {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 14px;
}
/* same triad, but carrying phrases instead of numbers */
.case-figures.case-persona .fig {
  font-size: clamp(21px, 2.5vw, 29px);
  margin-bottom: 14px;
}
.case-figures.case-persona dt {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 12.5px;
  line-height: 1.55;
}
.case-figures .fig {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  color: var(--accent);
  margin-bottom: 12px;
}
.case-figures .fig span {
  font-size: 0.42em;
  font-style: italic;
  color: var(--soft);
}
.case-figures dt {
  margin-bottom: 0;
  font-size: 10px;
  line-height: 1.6;
}

.case-meta-col dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 12px;
}
.case-meta-col dd { font-size: 14px; line-height: 1.6; }

/* narrative sections */
.case-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(44px, 7vh, 62px) 20px;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.case-section + .case-section { border-top: 1px solid var(--line); }
.case-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 16px;
}
.case-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 33px);
  line-height: 1.22;
}
.case-heading em { font-style: italic; color: var(--accent); }
.case-body { color: var(--soft); font-size: 15px; line-height: 1.8; }
.case-body p + p { margin-top: 1.15em; }
.case-body strong { color: var(--ink); font-weight: 500; }
.case-body ul { list-style: none; margin-top: 1.1em; }
.case-body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 0.7em;
}
.case-body li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.72em;
  width: 7px; height: 1px;
  background: var(--accent);
}

/* screen-by-screen walkthrough */
.screens {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 64px) 20px 0;
}
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(26px, 4vh, 40px);
}
.screen-card { display: flex; flex-direction: column; gap: 14px; }
.screen-shot {
  border-radius: 18px;
  overflow: hidden;
  background: #F6EEF0;
  border: 1px solid var(--line);
}
.screen-shot img {
  width: 100%;
  aspect-ratio: 393 / 852;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease);
}
.screen-card:hover .screen-shot img { transform: scale(1.03); }
.screen-step {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.screen-name {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  margin-top: 3px;
}
.screen-note { font-size: 12.5px; line-height: 1.65; color: var(--soft); }

/* wide screens, for desktop work rather than phone screens */
.screens-grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* mixed-shape assets, so show the whole frame rather than cropping into it */
.screen-shot.wide img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
}

/* live link */
.case-live {
  max-width: 1080px;
  margin: clamp(48px, 8vh, 80px) auto 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.case-live .pill.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 18px;
  padding: 14px 30px;
}
.case-live .pill.solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.case-live small { font-size: 12px; color: var(--soft); letter-spacing: 0.02em; }

/* what-was-tested grid */
.test-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(10px, 2vh, 22px) 20px clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
}
.test-card {
  background: var(--bg);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.35s;
}
.test-card:hover { background: #FFF4F1; }
.test-card .t-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.test-card .t-name {
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.2;
}
.test-card .t-note { font-size: 13px; line-height: 1.6; color: var(--soft); }
.test-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px clamp(40px, 6vh, 64px); }

/* pull quote */
.case-quote {
  max-width: 820px;
  margin: clamp(56px, 9vh, 96px) auto 0;
  padding: 0 24px;
  text-align: center;
}
.case-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.4;
}
.case-quote cite {
  display: block;
  margin-top: 20px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
}

@media (max-width: 900px) {
  .case-meta-inner { grid-template-columns: repeat(2, 1fr); }
  .case-meta-col:nth-child(3) { border-left: none; }
  .case-meta-col:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .case-section { grid-template-columns: 1fr; gap: 18px; }
}

/* ════════ ABOUT PAGE ════════ */
.about-page {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(112px, 17vh, 168px) 24px 0;
  text-align: center;
}
.script-about {
  display: block;
  font-family: var(--hand);
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--accent);
  margin-bottom: clamp(32px, 5.5vh, 60px);
}
.about-portrait {
  width: min(382px, 100%);
  aspect-ratio: 382 / 510;
  margin: 0 auto clamp(34px, 6vh, 60px);
  border-radius: 18px;
  overflow: hidden;
  background: #F6E7E4;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.about-copy {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.62;
  text-align: left;
}
.about-copy p + p { margin-top: 1.15em; }
.about-copy em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

.about-cta {
  margin-top: clamp(34px, 6vh, 58px);
  display: flex;
  justify-content: center;
}
.about-cta .pill { font-size: 18px; padding: 11px 24px; }

/* ════════ CONTACT / FOOTER ════════ */
.contact {
  text-align: center;
  padding: clamp(100px, 15vh, 170px) 24px 0;
  max-width: 760px;
  margin: 0 auto;
}
.contact .interlude { margin-bottom: clamp(30px, 5vh, 50px); }
.contact-statement {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.35;
  margin-bottom: clamp(30px, 5vh, 48px);
}
.contact-statement em { font-style: italic; color: var(--accent); }
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Laid out the way the Figma footer is: the signature is a backdrop filling the
   block, the contact pills sit centred on top of it, and the credit line is
   pinned to the bottom edge. */
footer {
  position: relative;
  margin-top: clamp(40px, 6vh, 70px);
  min-height: clamp(250px, 25vw, 350px);
  padding: clamp(32px, 4vw, 52px) 20px clamp(20px, 2.6vh, 27px);
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  overflow: hidden;
}
/* The signature carries the footer, but it must not run under the contact
   pills: their opaque backgrounds punch holes through the handwriting. So it
   is anchored to the bottom edge, below the pills' band, and its descender
   runs off the page the way a real signature would. */
.watermark {
  position: absolute;
  left: 50%;
  bottom: -0.18em;
  transform: translateX(-50%);
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(90px, 17vw, 240px);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #F3DED9;
  filter: blur(0.6px);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
footer .contact-pills {
  position: relative;
  z-index: 2;
}
.footer-line {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: clamp(20px, 2.6vh, 27px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--soft);
}
.footer-line svg.ic { color: var(--accent); }

/* ════════ MODAL ════════ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 48px);
  visibility: hidden;
  pointer-events: none;
}
.modal.open { visibility: visible; pointer-events: auto; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(52, 20, 28, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-box {
  position: relative;
  background: var(--bg);
  border-radius: 24px;
  width: min(1100px, 100%);
  /* a definite height is what lets the gallery resolve height:100% and letterbox
     tall screens with object-fit: contain instead of stretching the modal */
  height: min(780px, 90svh);
  max-height: 90svh;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  overflow: hidden;
  transform: translateY(36px) scale(0.98);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s ease;
}
.modal.open .modal-box { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(42, 24, 28, 0.1);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close svg.ic { width: 15px; height: 15px; stroke-width: 1.9; }
.modal-close:hover { background: var(--accent); color: #fff; transform: rotate(90deg); }

.modal-gallery {
  position: relative;
  background: #FBF0ED;
  overflow: hidden;
  min-height: 320px;
  padding: 22px 0 40px;
}
.gallery-slides {
  display: flex;
  height: 100%;
  transition: transform 0.55s var(--ease);
}
.gallery-slides img {
  width: 100%; height: 100%;
  flex-shrink: 0;
  object-fit: contain;
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(42, 24, 28, 0.14);
  transition: background 0.3s, color 0.3s;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-btn svg.ic { width: 17px; height: 17px; stroke-width: 1.9; }
.gallery-btn:hover { background: var(--accent); color: #fff; }
.gallery-btn.prev { left: 14px; }
.gallery-btn.next { right: 14px; }
.gallery-btn.hidden { display: none; }
.gallery-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 7px;
  z-index: 4;
}
.gallery-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(42, 24, 28, 0.22);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.gallery-dot.active { background: var(--accent); transform: scale(1.35); }

.modal-info {
  padding: clamp(28px, 4vw, 52px) clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.modal-cat-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(214, 47, 78, 0.1);
  border-radius: 100px;
  padding: 6px 15px;
}
.modal-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 500;
  line-height: 1.15;
}
.modal-desc { color: #6E5A5E; font-size: 14px; }
.gallery-counter {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--soft);
  margin-top: auto;
}
.modal-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}
.modal-link.hidden { display: none; }

/* ════════ REVEALS ════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s ease, transform 0.95s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.work-item.reveal { transform: translateY(52px) scale(0.975); }
.work-item.reveal.in { transform: translateY(0) scale(1); }
.work-item .caption, .work-item .meta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease 0.25s, transform 0.8s var(--ease) 0.25s;
}
.work-item.in .caption, .work-item.in .meta { opacity: 1; transform: translateY(0); }

/* ════════ LOAD INTRO ════════ */
nav .pill {
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.6s ease, transform 0.7s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
}
nav .nav-group .pill:nth-child(1) { transition-delay: 0.08s; }
nav .nav-group .pill:nth-child(2) { transition-delay: 0.16s; }
nav .nav-group .pill:nth-child(3) { transition-delay: 0.24s; }
nav .nav-group .pill:nth-child(4) { transition-delay: 0.32s; }
body.loaded nav .pill { opacity: 1; transform: translateY(0); }
body.loaded nav .pill:hover { transform: translateY(-2px); }

.hero-statement {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease 0.2s, transform 1s var(--ease) 0.2s;
}
body.loaded .hero-statement { opacity: 1; transform: translateY(0); }

.statement-wrap .script {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.9s ease, filter 1.1s ease;
}
.statement-wrap .script-1 { transition-delay: 0.55s; }
.statement-wrap .script-2 { transition-delay: 0.85s; }
body.loaded .statement-wrap .script { opacity: 1; filter: blur(0); }
body.intro-done .statement-wrap .script { transition: none; }

.scroll-hint { opacity: 0; transition: opacity 0.8s ease 1.3s; }
body.loaded .scroll-hint { opacity: 1; }

/* ════════ SCROLL PARALLAX HOOKS ════════ */
.shot { transform: translateY(var(--py, 0px)); will-change: transform; }
.statement-wrap .script-1 { transform: rotate(-9deg) translateY(var(--hy1, 0px)); }
.statement-wrap .script-2 { transform: rotate(-5deg) translateY(var(--hy2, 0px)); }

/* ════════ CARD HOVER MOTION ════════
   Three things move together on hover: the tags fly out of the middle of the
   panel to their corners and then keep breathing, the artwork lifts and drifts
   with the pointer, and the sparkles speed up. --fx/--fy come from app.js. */

/* springy tag pop: they travel out from the centre, staggered, then float */
.tag {
  transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--td, 0s);
  transform: rotate(var(--r, 8deg)) scale(0.62) translate(var(--ix, 0px), var(--iy, 0px));
}
.tag.tl { --ix: 30px;  --iy: 22px; }
.tag.tr { --ix: -30px; --iy: 22px; }
.tag.bl { --ix: 30px;  --iy: -22px; }
.tag.br { --ix: -30px; --iy: -22px; }
.work-item:hover .tag {
  opacity: 1;
  transform: rotate(var(--r, 8deg)) scale(1) translate(0, 0);
  animation: tag-breathe 3.6s ease-in-out infinite;
  /* start breathing only once the tag has arrived */
  animation-delay: calc(var(--td, 0s) + 0.55s);
}
@keyframes tag-breathe {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

/* artwork: lifts on hover and trails the pointer for a little depth */
.shot .main {
  transform: translate(var(--fx, 0px), var(--fy, 0px))
             scale(var(--fs, 1))
             translateY(var(--flift, 0px));
}
.work-item:hover .shot .main { --fs: 1.03; --flift: -8px; }
.work-item:hover .panel { transform: translateY(-6px); }
.work-item:hover .sparkle { animation-duration: 2.4s; }

/* ════════ COMING SOON ════════ */
.work-item.soon { cursor: default; }
/* these tiles still load their teaser from the old site's CDN, so the panel keeps
   a floor: if the image never arrives the card holds its shape and its badge
   instead of collapsing to a strip */
.work-item.soon .panel { min-height: clamp(240px, 32vw, 400px); }
.work-item.soon .shot .main { min-height: 1px; }
.work-item.soon .panel::before { opacity: 0.22; }
.work-item.soon .shot .main { opacity: 0.72; filter: saturate(0.7); }
.work-item.soon:hover .shot .main { opacity: 0.85; filter: saturate(0.85); }
.soon-badge {
  position: absolute;
  z-index: 4;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 250, 248, 0.9);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(42, 24, 28, 0.14);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.soon-badge .ic { width: 13px; height: 13px; }
.work-item.soon:hover .soon-badge { transform: translate(-50%, -50%) rotate(-3deg) scale(1.05); }
.work-item.soon .meta b { color: var(--soft); }

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

/* ════════ RESPONSIVE ════════ */
@media (max-width: 900px) {
  /* Nav: the full wordmark plus four pills cannot share one row on a phone.
     The descriptor drops, and the links move into a panel behind a round
     toggle instead of wrapping into a stack that shoves the logo down. */
  nav { align-items: flex-start; }
  .nav-sep, .nav-tag { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 250, 248, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(42, 24, 28, 0.06);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
  }
  .nav-toggle svg.ic { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
  .nav-toggle[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
  .nav-toggle[aria-expanded="true"] svg.ic { transform: rotate(180deg); }

  .nav-group {
    position: absolute;
    top: calc(100% - 6px);
    right: clamp(12px, 3.5vw, 42px);
    width: min(272px, calc(100vw - 28px));
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    border-radius: 26px;
    background: var(--accent);
    box-shadow: 0 20px 46px rgba(42, 24, 28, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.28s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
  }
  .nav-group.open { opacity: 1; visibility: visible; transform: none; }
  .nav-group .pill {
    justify-content: center;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: none;
    padding: 11px 18px;
  }
  .nav-group .pill:hover { transform: none; box-shadow: none; background: rgba(255, 255, 255, 0.14); }
  .nav-group .pill.active { background: #fff; border-color: #fff; color: var(--accent); }

  /* Logos: one continuous marquee rather than a stacked grid */
  .logo-marquee {
    display: flex;
    gap: var(--mgap);
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  .logo-marquee .logo-row,
  .logo-marquee .logo-row + .logo-row {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    gap: var(--mgap);
    animation: logo-marquee 30s linear infinite;
  }
  .logo-slot { flex: 0 0 auto; }
}

@keyframes logo-marquee {
  to { transform: translateX(calc(-100% - var(--mgap))); }
}

@media (max-width: 720px) {
  nav { padding: 12px 12px; }
  .nav-logo { padding: 7px 15px; }
  /* a phone-width footer is too short for the signature to read at its
     viewport size, so pin both to values that keep the same proportions */
  footer { min-height: 212px; }
  .watermark { font-size: 128px; bottom: -0.16em; }
  /* the scripts sit outside the statement rather than on top of it */
  .statement-wrap { padding-top: 56px; padding-bottom: 60px; }
  .statement-wrap .script-1 { top: 0; left: 0; }
  .statement-wrap .script-2 { bottom: 4px; right: 0; }
  .tag.bl, .tag.br { display: none; }
  .next-page a { flex-direction: column; align-items: flex-start; gap: 10px; }
  .modal-box { grid-template-columns: 1fr; height: auto; max-height: 94svh; overflow-y: auto; border-radius: 18px; }
  .modal-gallery { min-height: 220px; aspect-ratio: 1 / 1; }
}

/* a marquee that cannot be stopped is worse than no marquee */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .logo-marquee .logo-row { animation: none !important; }
  .logo-marquee .logo-row + .logo-row { display: none; }
}
