/* ==========================================================================
   VOLUME — image-led design
   Layout concept: a calm linen ground with soft paper cards, floating pill
   navigation, and the work itself (ad creatives in every format) carrying
   the page. Short headlines, one line beneath each.
   Single light theme by design: the brand palette is fixed.
   ========================================================================== */

@font-face { font-family: "Jost"; src: url("fonts/jost-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --blue: #1664B0;
  --linen: #EFE8DE;
  --scarlet: #D21624;
  /* derived surfaces */
  --paper: #F8F4EE;
  --linen-deep: #E4DBCD;
  --rule: rgba(22, 100, 176, 0.18);
  --shadow: 0 1px 2px rgba(22, 50, 90, 0.06), 0 12px 32px -12px rgba(22, 50, 90, 0.22);
  --shadow-lg: 0 2px 4px rgba(22, 50, 90, 0.06), 0 28px 60px -20px rgba(22, 50, 90, 0.35);

  --font-display: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  --fs-h1: clamp(2.75rem, 1.6rem + 4.6vw, 5.4rem);
  --fs-mega: clamp(4.5rem, 1.6rem + 11vw, 11rem);

  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 24px);
  --section-y: clamp(72px, 9vw, 128px);
  --max: 1240px;
  --r-lg: clamp(20px, 2.4vw, 32px);
  --r-md: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; background: var(--linen); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--linen); color: var(--blue);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--blue); color: var(--linen); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; display: grid; justify-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--blue); color: var(--linen); padding: 12px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.dot { display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--scarlet); flex: none; }

/* ---------- type ---------- */
.kicker { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 36em; margin-top: 20px; }
.center .lead { margin-inline: auto; }
.fine { font-size: var(--fs-s); margin-top: 28px; }
.coreline { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase; }
.coreline span { white-space: nowrap; }

/* ---------- pills, links ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem; text-decoration: none;
  border: 1px solid transparent; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.pill-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.pill-blue { background: var(--blue); color: var(--linen); }
.pill-blue:hover { background: var(--scarlet); }
.pill-ghost { background: var(--paper); color: var(--blue); border-color: var(--rule); }
.pill-ghost:hover { border-color: var(--blue); }
.pill-linen { background: var(--linen); color: var(--blue); }
.pill-linen:hover { background: var(--paper); transform: translateY(-1px); }
.text-link { font-family: var(--font-display); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; display: inline-flex; min-height: 44px; align-items: center; gap: 6px; }
.text-link:hover { text-decoration-color: transparent; }

/* ---------- wordmark fallback ---------- */
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1; letter-spacing: -0.035em; display: inline-flex; align-items: baseline; color: var(--blue); }
.wordmark-dot { width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--scarlet); margin-left: 0.06em; }

/* ---------- floating pill nav ---------- */
.site-header { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 50; padding-inline: var(--gutter); margin-top: 12px; }
.nav-pill {
  max-width: var(--max); margin-inline: auto; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 8px 8px 8px 22px;
  background: rgba(248, 244, 238, 0.86); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.pill) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem; text-decoration: none; transition: background-color .2s; }
.site-nav a:not(.pill):hover, .site-nav a[aria-current="true"] { background: var(--linen-deep); }
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .no-js .nav-pill { flex-wrap: wrap; border-radius: 28px; }
  .no-js .site-nav ul { flex-wrap: wrap; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--blue); color: var(--linen); font: 500 0.9375rem var(--font-display); cursor: pointer; }
  .menu-toggle-icon { width: 14px; height: 8px; position: relative; }
  .menu-toggle-icon::before, .menu-toggle-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
  .menu-toggle-icon::before { top: 0; } .menu-toggle-icon::after { top: 6.5px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { top: 3.25px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { top: 3.25px; transform: rotate(-45deg); }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: 24px; box-shadow: var(--shadow-lg); }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .site-nav a { width: 100%; min-height: 52px; font-size: 1.125rem; justify-content: flex-start; padding: 0 16px; }
  .js .site-nav .pill { justify-content: center; margin-top: 6px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.hero-copy { min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); font-family: var(--font-display); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h1); line-height: 0.98; letter-spacing: -0.035em; margin-top: 26px; }
.hero-sub { font-size: var(--fs-lead); max-width: 30em; margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: var(--fs-s); font-weight: 500; }

.hero-visual { position: relative; min-width: 0; padding: 0 0 56px 0; }
.hero-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 9 / 11; max-width: 100%; margin-left: auto; width: min(100%, 560px); box-shadow: var(--shadow); background: var(--linen-deep); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; display: grid; gap: 8px; justify-items: start; }
.float-phone { left: 0; bottom: 8px; width: clamp(112px, 24%, 168px); }
.float-post { right: -8px; top: 9%; width: clamp(120px, 28%, 190px); }
.float .ad { box-shadow: var(--shadow-lg); }
.float > :first-child { width: 100%; }
.tag { font-family: var(--font-display); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-caption { position: absolute; right: 0; bottom: 18px; font-size: 0.75rem; letter-spacing: 0.06em; }
@media (min-width: 1024px) { .float-phone { left: -6%; } }
@media (max-width: 520px) { .float-post { right: -4px; } .hero-photo { width: 88%; } }

/* phone */
.phone { background: #10131a; border-radius: 30px; padding: 6px; box-shadow: var(--shadow-lg); aspect-ratio: 9 / 19; max-width: 100%; }
.screen { position: relative; height: 100%; border-radius: 25px; overflow: hidden; background: var(--linen-deep); }
.screen-img { width: 100%; height: 100%; object-fit: cover; }
.story-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 1; }
.story-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.55); }
.story-bars i:first-child { background: #fff; }
.story-panel { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; border-radius: 16px; background: var(--blue); color: var(--linen); display: grid; gap: 8px; }
.story-panel p { font-family: var(--font-display); font-weight: 500; font-size: 0.8125rem; line-height: 1.15; }
.story-panel span { justify-self: start; font-size: 0.625rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--linen); color: var(--blue); }

/* ad creative: photo above, brand panel below */
.ad { container-type: inline-size; aspect-ratio: var(--r); max-width: 100%; width: 100%; border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: 72% 1fr; background: var(--paper); }
.ad-photo { min-height: 0; background: var(--linen-deep); }
.ad-photo img { width: 100%; height: 100%; object-fit: cover; }
.ad-panel { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 7%; min-height: 0; }
.ad-line { font-family: var(--font-display); font-weight: 500; font-size: clamp(6px, 7.2cqi, 22px); line-height: 1.1; letter-spacing: -0.01em; }
.ad-cta { flex: none; font-size: clamp(5px, 4.6cqi, 13px); font-weight: 600; padding: 0.35em 0.8em; border-radius: 999px; white-space: nowrap; }
.ad-blue .ad-panel { background: var(--blue); color: var(--linen); } .ad-blue .ad-cta { background: var(--linen); color: var(--blue); }
.ad-linen .ad-panel { background: var(--paper); color: var(--blue); } .ad-linen .ad-cta { background: var(--blue); color: var(--linen); }
.ad-scarlet .ad-panel { background: var(--scarlet); color: var(--linen); } .ad-scarlet .ad-cta { background: var(--linen); color: var(--scarlet); }
/* wide formats put the panel beside the photo */
.ad[style*="16/9"] { grid-template-rows: none; grid-template-columns: 62% 1fr; }
.ad[style*="16/9"] .ad-line { font-size: clamp(6px, 4.6cqi, 20px); }
.ad[style*="16/9"] .ad-cta { font-size: clamp(5px, 3cqi, 12px); }
.ad[style*="16/9"] .ad-panel { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
.ad[style*="9/16"] { grid-template-rows: 78% 1fr; }
.ad[style*="9/16"] .ad-panel { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }

/* ---------- formats marquee ---------- */
.formats-strip { padding-block: 8px clamp(40px, 6vw, 72px); text-align: center; }
.strip-label { font-size: var(--fs-s); margin-bottom: 20px; }
.marquee { display: flex; overflow: hidden; gap: 10px; -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; gap: 10px; flex: none; }
.marquee li { padding: 12px 22px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); font-family: var(--font-display); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.marquee li:nth-child(3n+1)::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--scarlet); margin-right: 10px; vertical-align: 2px; }

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }

/* the wall */
.wall { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: 14px; overflow: hidden; }
.wall-row { display: flex; gap: 14px; }
.wall-track { display: flex; gap: 14px; flex: none; align-items: center; }
.wall-tile { --th: clamp(170px, 18vw, 250px); flex: none; height: var(--th); width: calc(var(--th) * var(--a)); }
.wall-tile .ad { height: 100%; box-shadow: var(--shadow); }
.wall-caption { text-align: center; font-size: 0.75rem; letter-spacing: 0.06em; margin-top: 18px; }

/* services */
.services .h2 { margin-bottom: clamp(40px, 5vw, 64px); }
.svc-grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-card { background: var(--paper); border-radius: var(--r-lg); padding: 24px 22px 26px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; text-align: center; min-width: 0; box-shadow: 0 1px 0 rgba(22,50,90,.04); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-label { font-family: var(--font-display); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.svc-title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); letter-spacing: -0.01em; }
.svc-visual { position: relative; height: 260px; margin-block: 18px 14px; display: grid; place-items: center; }
.svc-line { font-size: var(--fs-s); max-width: 22em; margin-inline: auto; }

.v-static .ad { position: absolute; width: 46%; box-shadow: var(--shadow); }
.v-static .ad:first-child { left: 8%; top: 8%; transform: rotate(-4deg); }
.v-static .ad:last-child { right: 8%; bottom: 6%; transform: rotate(3deg); }

.v-gif .gif-stack { position: relative; width: 74%; aspect-ratio: 1; }
.gif-frame { position: absolute; inset: 0; }
.gif-frame .ad { height: 100%; box-shadow: var(--shadow); }
.gif-frame:nth-child(2), .gif-frame:nth-child(3) { opacity: 0; }

.v-video .phone-sm { height: 100%; aspect-ratio: 9 / 19; width: auto; border-radius: 26px; }
.v-video .screen { border-radius: 21px; }
.kb { position: absolute; inset: 0; }
.kb img { width: 100%; height: 100%; object-fit: cover; }
.video-ui { position: absolute; left: 10px; right: 10px; bottom: 12px; display: flex; align-items: center; gap: 8px; }
.play { width: 22px; height: 22px; border-radius: 50%; background: var(--linen); position: relative; flex: none; }
.play::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid var(--blue); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.scrub { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.5); overflow: hidden; }
.scrub i { display: block; width: 38%; height: 100%; background: var(--linen); }

.v-versions .vv { position: absolute; }
.v-versions .ad { box-shadow: var(--shadow); }
.vv-916 { width: 26%; left: 6%; top: 4%; }
.vv-11 { width: 40%; left: 34%; top: 10%; }
.vv-169 { width: 64%; right: 4%; bottom: 4%; }

/* process */
.process-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); overflow: hidden; }
.process-head { display: grid; gap: 4px; margin-bottom: clamp(32px, 4vw, 48px); }
.process-head .h2 { max-width: 14em; }
.steps { display: grid; gap: 12px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps li { padding: 18px; border-radius: var(--r-md); background: var(--linen); display: grid; gap: 4px; }
.steps span { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); color: var(--scarlet); font-variant-numeric: tabular-nums; }
.steps h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; }
.steps p { font-size: var(--fs-s); }
.steps li:last-child { background: var(--blue); color: var(--linen); }
.steps li:last-child span { color: var(--linen); }
.process-photo { margin-top: var(--gap); border-radius: var(--r-md); overflow: hidden; aspect-ratio: 12 / 5; max-width: 100%; background: var(--linen-deep); }
.process-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .process-photo { aspect-ratio: 4 / 3; } }

/* engagement */
.engagement { padding-top: 0; }
.eng-card { background: var(--blue); color: var(--linen); border-radius: var(--r-lg); padding: clamp(32px, 6vw, 72px); display: grid; gap: 40px; align-items: end; overflow: hidden; }
.eng-card ::selection { background: var(--linen); color: var(--blue); }
@media (min-width: 960px) { .eng-card { grid-template-columns: 1.15fr 1fr; } }
.eng-number { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-mega); line-height: 0.82; letter-spacing: -0.05em; font-variant-numeric: lining-nums; white-space: nowrap; }
.eng-number span { font-weight: 300; }
.eng-label { margin-top: 20px; font-size: var(--fs-s); max-width: 22em; }
.eng-right p { margin-block: 18px 28px; max-width: 30em; }

/* story */
.story-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); } }
.story-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--linen-deep); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.byline { margin-top: 28px; display: grid; gap: 2px; font-size: var(--fs-s); padding-top: 16px; border-top: 1px solid var(--rule); }
.byline b { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }

/* family */
.family-grid { display: grid; gap: var(--gap); margin-top: clamp(36px, 5vw, 56px); }
@media (min-width: 760px) { .family-grid { grid-template-columns: 1fr 1fr; } }
.fam-card { border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 40px); display: grid; align-content: start; gap: 18px; min-width: 0; }
.fam-volume { background: var(--paper); box-shadow: var(--shadow); }
.fam-yellow { background: transparent; border: 1px solid var(--rule); }
.fam-name { font-family: var(--font-display); font-weight: 600; font-size: 2rem; letter-spacing: -0.03em; display: flex; align-items: baseline; }
.fam-name .dot { width: 0.2em; height: 0.2em; margin-left: 0.05em; }
.fam-yellow .fam-name { font-weight: 400; }
.fam-card li { padding-block: 12px; border-top: 1px solid var(--rule); }
.fam-volume li { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; }

/* faq */
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 2fr; } }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--paper); border-radius: var(--r-md); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 22px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; line-height: 1.3; }
.faq-list summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--linen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%231664B0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 22px; max-width: 40em; }

/* contact */
.contact { padding-bottom: var(--section-y); }
.contact-card { background: var(--scarlet); color: var(--linen); border-radius: var(--r-lg); padding: clamp(40px, 8vw, 104px) clamp(24px, 6vw, 80px); text-align: center; display: grid; justify-items: center; gap: 18px; }
.contact-card ::selection { background: var(--linen); color: var(--scarlet); }
.contact-title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.035em; max-width: 12em; text-wrap: balance; }
.contact-sub { font-size: var(--fs-lead); max-width: 30em; }
.contact-address span { font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.contact-pending { padding: 14px 24px; border-radius: 999px; background: rgba(239, 232, 222, 0.16); border: 1px solid rgba(239, 232, 222, 0.4); }
.contact-pending-title { font-family: var(--font-display); font-weight: 600; }
.contact-pending p + p { font-size: var(--fs-s); }
.contact-small { font-size: var(--fs-s); font-weight: 500; }
/* build.mjs writes .btn.btn-linen when an email is set */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 500 1rem var(--font-display); text-decoration: none; }
.btn-linen { background: var(--linen); color: var(--scarlet); }

/* footer */
.site-footer { padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); }
.footer-grid { display: grid; gap: 24px; align-items: end; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr auto; } }
.footer-brand .wordmark { font-size: 2.5rem; }
.footer-brand .coreline { margin-top: 12px; }
.footer-meta { font-size: var(--fs-s); display: grid; gap: 4px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.back-top { justify-self: start; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 38s linear infinite; }
  .wall-row[data-dir="fwd"] .wall-track { animation: slide 70s linear infinite; }
  .wall-row[data-dir="rev"] .wall-track { animation: slide 80s linear infinite reverse; }
  .wall:hover .wall-track, .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(calc(-100% - 14px)); } }

  .gif-frame:nth-child(1) { animation: gif1 6s steps(1) infinite; }
  .gif-frame:nth-child(2) { animation: gif2 6s steps(1) infinite; }
  .gif-frame:nth-child(3) { animation: gif3 6s steps(1) infinite; }
  @keyframes gif1 { 0% { opacity: 1; } 33.33% { opacity: 0; } }
  @keyframes gif2 { 0% { opacity: 0; } 33.33% { opacity: 1; } 66.66% { opacity: 0; } }
  @keyframes gif3 { 0% { opacity: 0; } 66.66% { opacity: 1; } }

  .kb img { animation: kb 12s ease-in-out infinite alternate; }
  @keyframes kb { from { transform: scale(1); } to { transform: scale(1.14) translate(-3%, -2%); } }
  .scrub i { animation: scrub 12s linear infinite; }
  @keyframes scrub { from { width: 0; } to { width: 100%; } }

  .float-post { animation: bob 7s ease-in-out infinite; }
  .float-phone { animation: bob 8s ease-in-out -2s infinite; }
  @keyframes bob { 50% { transform: translateY(-8px); } }

  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; } .hero-copy > :nth-child(5) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }

  .rv { transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .rv.pre { opacity: 0; transform: translateY(24px); }
}
@media (prefers-reduced-motion: reduce) {
  .wall-row, .marquee { overflow-x: auto; }
  .wall-track[aria-hidden], .marquee-track[aria-hidden] { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
