/* ============================================================
   Frillian — Rate Card
   Ink + Brass. Light / dark. System type, no web fonts.
   ============================================================ */

/* ---------- Tokens: light is the base definition ---------- */
:root {
  --bg:          #faf9f6;
  --bg-sunk:     #f2f0ea;
  --surface:     #ffffff;
  --text:        #1a1814;
  --text-2:      #56534b;
  --text-3:      #747167;
  --line:        rgba(26, 24, 20, 0.10);
  --line-strong: rgba(26, 24, 20, 0.17);
  --brass:       #8a6a3c;
  --brass-hi:    #a3804c;
  --brass-tint:  rgba(138, 106, 60, 0.09);
  --chrome-bg:   rgba(250, 249, 246, 0.72);
  --shadow:      0 1px 2px rgba(26, 24, 20, 0.04), 0 8px 28px -12px rgba(26, 24, 20, 0.14);
  --btn-fg:      #faf9f6;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io:  cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 960px;
  --gutter: clamp(20px, 5vw, 40px);
}

/* Dark: system preference, unless the user explicitly chose light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0c0c0a;
    --bg-sunk:     #121110;
    --surface:     #141312;
    --text:        #f2efe8;
    --text-2:      #a5a197;
    --text-3:      #837f75;
    --line:        rgba(242, 239, 232, 0.10);
    --line-strong: rgba(242, 239, 232, 0.19);
    --brass:       #c9a26a;
    --brass-hi:    #dcb884;
    --brass-tint:  rgba(201, 162, 106, 0.11);
    --chrome-bg:   rgba(12, 12, 10, 0.68);
    --shadow:      0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 32px -14px rgba(0, 0, 0, 0.8);
    --btn-fg:      #14120e;
  }
}

/* Dark: explicit choice wins in both directions */
:root[data-theme="dark"] {
  --bg:          #0c0c0a;
  --bg-sunk:     #121110;
  --surface:     #141312;
  --text:        #f2efe8;
  --text-2:      #a5a197;
  --text-3:      #837f75;
  --line:        rgba(242, 239, 232, 0.10);
  --line-strong: rgba(242, 239, 232, 0.19);
  --brass:       #c9a26a;
  --brass-hi:    #dcb884;
  --brass-tint:  rgba(201, 162, 106, 0.11);
  --chrome-bg:   rgba(12, 12, 10, 0.68);
  --shadow:      0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 32px -14px rgba(0, 0, 0, 0.8);
  --btn-fg:      #14120e;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Theme swap eases in only after first paint (set by app.js) */
body.ready,
body.ready .chrome,
body.ready .card,
body.ready .rate-group--feature,
body.ready .btn {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: 260ms;
  transition-timing-function: ease;
}

h1, h2, h3 { margin: 0; font-weight: 500; }
p, ul, dl { margin: 0; }
ul { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--brass-tint); color: var(--text); }

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

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

.nw { white-space: nowrap; }

/* Read by screen readers, invisible on screen. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
}
.skip:focus { left: 16px; }

/* ---------- Chrome (translucent, content scrolls under) ---------- */
.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--chrome-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
}
.chrome.is-scrolled { border-bottom-color: var(--line); }

.chrome-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 11px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.mark { display: flex; align-items: center; gap: 10px; min-width: 0; }

.mark-avatar {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-sunk);
  box-shadow: 0 0 0 1px var(--line-strong);   /* hairline ring, reads on both themes */
}

.mark-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mark-text strong { font-size: 0.875rem; font-weight: 550; letter-spacing: -0.005em; }
.mark-text span {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.chrome-right { display: flex; align-items: center; gap: 10px; flex: none; }

/* ---------- Segmented theme control ---------- */
.seg {
  position: relative;
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-sunk);
}

.seg-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 30px; height: 26px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transform: translateX(var(--seg-x, 0px));
  transition: transform 320ms var(--ease-out);
}

.seg-btn {
  position: relative;
  z-index: 1;
  width: 30px; height: 26px;
  display: grid; place-items: center;
  border: 0; padding: 0; margin: 0;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 999px;
  transition: color 160ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.seg-btn[aria-checked="true"] { color: var(--text); }
.seg-btn:active { transform: scale(0.92); }

@media (hover: hover) and (pointer: fine) {
  .seg-btn:hover { color: var(--text-2); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.004em;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 180ms ease,
              border-color 180ms ease, color 180ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--text);
  color: var(--btn-fg);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--line-strong);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brass); color: var(--btn-fg); }
  .btn-ghost:hover { color: var(--text); border-color: var(--text-3); }
}

.btn-label {
  display: inline-block;
  transition: filter 200ms ease, opacity 200ms ease;
}
.btn.is-copying .btn-label { filter: blur(3px); opacity: 0.35; }

.chrome-cta { padding: 8px 15px; font-size: 0.875rem; }
@media (max-width: 620px) { .chrome-cta { display: none; } }

/* ---------- Type scale ---------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.028em;
  margin-top: 0.18em;
  font-optical-sizing: auto;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.1875rem);
  line-height: 1.62;
  color: var(--text-2);
  max-width: 34em;
  letter-spacing: -0.006em;
}

.section-note {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 44ch;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(44px, 9vw, 96px) clamp(48px, 9vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.hero-figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keeps the head high and the feet in frame once the 2:3 source is cropped. */
  object-position: 50% 36%;
}

.hero-role {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--text-2);
  letter-spacing: 0.002em;
}

.hero .lede { margin-top: 22px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(38px, 6vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats li {
  padding: 20px 18px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats li + li {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.stat-n {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 3.2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-l {
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.012em;
}

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(3), .stats li:nth-child(4) { border-top: 1px solid var(--line); }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

/* Stacked hero: the portrait slots in after the pitch, CTA lands last, so the
   photo is on screen without pushing the buttons off it. */
@media (max-width: 820px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero-copy { display: contents; }

  .eyebrow      { order: 1; }
  .display      { order: 2; }
  .hero-role    { order: 3; }
  .lede         { order: 4; }
  .hero-figure  { order: 5; }
  .cta-row      { order: 6; }

  .hero-figure {
    width: 100%;
    max-width: 420px;
    margin: clamp(28px, 6vw, 38px) auto 0;
  }
  .stats { margin-top: clamp(30px, 5vw, 44px); }
}

@media (max-width: 460px) {
  .cta-row .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 8vw, 78px); border-top: 1px solid var(--line); }
.section--last { border-top: 0; }

.section-head { margin-bottom: clamp(26px, 4vw, 36px); }
.section-head .section-note { margin-top: 10px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(14px, 2.4vw, 20px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(208px, 1fr));
  gap: clamp(14px, 2.4vw, 20px);
}

/* ---------- Audience cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 26px);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.card-title {
  font-family: var(--serif);
  font-size: 1.3125rem;
  letter-spacing: -0.014em;
}
.handle { font-size: 0.75rem; color: var(--text-3); }

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  padding-top: 18px;
}
.metrics dt {
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.012em;
  margin-bottom: 3px;
}
.metrics dd { margin: 0; }
.num {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-variant-numeric: tabular-nums;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-2);
}
.card-foot strong {
  font-weight: 550;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}

/* ---------- Rates ---------- */
.rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.rate-group { padding: 2px 0; }

/* The package deal leads — full width, above the à-la-carte lists. */
.rate-group--feature {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--brass-tint);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 26px) clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
  position: relative;
  margin-bottom: clamp(6px, 1.5vw, 14px);
}

.rate-group--feature .rate-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.rate-group--feature .rate {
  border-bottom: 0;
  padding: 18px clamp(18px, 2.6vw, 28px) 2px 0;
  align-items: flex-start;
}
.rate-group--feature .rate + .rate {
  border-left: 1px solid var(--line);
  padding-left: clamp(18px, 2.6vw, 28px);
  padding-right: 0;
}
.rate-group--feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  border: 1px solid var(--brass);
  opacity: 0.32;
  pointer-events: none;
}

.rate-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.rate-group--feature .rate-group-title { color: var(--text-2); }

.tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  color: var(--text-2);
  background: var(--bg-sunk);
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}

.rate {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.rate:last-child { border-bottom: 0; padding-bottom: 2px; }

.rate-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
}
.rate-sub {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.004em;
}

.rate-price {
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rate-group--feature .rate-price { color: var(--brass); }

/* Package price block: what it would cost à la carte, the price, the saving. */
.rate-offer {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.rate-was {
  font-size: 0.8125rem;
  color: var(--text-3);
  text-decoration-line: line-through;
  text-decoration-thickness: 1px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rate-save {
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brass-tint);
  color: var(--brass);
  /* Nudge toward the text colour: darker in light, lighter in dark, so the
     small label clears 4.5:1 on its tinted pill in both themes. */
  color: color-mix(in srgb, var(--brass) 88%, var(--text));
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .rates { grid-template-columns: 1fr; }
  .rate-group--feature { grid-column: 1; }
  .rate-group--feature .rate-list { grid-template-columns: 1fr; }
  .rate-group--feature .rate { padding-right: 0; }
  .rate-group--feature .rate + .rate {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    margin-top: 14px;
  }
}

/* ---------- Booking, right under the prices ---------- */
.rates-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(22px, 3vw, 28px);
  border-top: 1px solid var(--line);
}
.rates-cta-copy {
  flex: 1 1 300px;
  max-width: 46ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-2);
}
.rates-cta-copy strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--text);
}
.rates-cta .cta-row { margin-top: 0; }

/* ---------- Ongoing partnerships ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(14px, 2.4vw, 20px);
}

.work {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 26px);
  box-shadow: var(--shadow);
}

.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.work-name {
  font-family: var(--serif);
  font-size: 1.3125rem;
  letter-spacing: -0.014em;
}

.work-count {
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.work-desc {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--text-2);
}

/* margin-top:auto pins the links to the bottom so cards of different
   description lengths still line up. */
.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 12px;
  margin-top: auto;
  padding-top: 18px;
}

/* One video = cover, then its view count, then its own link. */
.work-video {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  flex: 1 1 132px;     /* two covers sit side by side down to a 360px phone */
  max-width: 168px;
  min-width: 0;
}

/* Cover, cropped 3:4 — the same crop TikTok's profile grid uses, so text a
   creator places on a cover survives it. */
.work-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: 5px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-sunk);
  isolation: isolate;               /* keeps the radius clip in Safari while the image scales */
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out);
}
.work-thumb:active { transform: scale(0.98); }

.work-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}

/* Hairline on top of the photo so light covers don't bleed into the card. */
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}

/* Frosted play button. Centred on purpose: Instagram bakes its own play icon
   into the middle of reel covers, and this sits exactly over it. */
.work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 12, 10, 0.46);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 200ms var(--ease-out);
}
.work-play svg { margin-left: 2px; }   /* optical centre of a triangle sits right of its box */

@media (hover: hover) and (pointer: fine) {
  .work-thumb:hover img { transform: scale(1.04); }
  .work-thumb:hover .work-play { transform: scale(1.06); }
}

@media (prefers-reduced-transparency: reduce) {
  .work-play {
    background: rgba(12, 12, 10, 0.82);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-thumb, .work-thumb img, .work-play { transition: none; }
  .work-thumb:active { transform: none; }
  .work-thumb:hover img, .work-thumb:hover .work-play { transform: none; }
}

.work-views {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.1;
  letter-spacing: -0.016em;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  padding-left: 2px;
}

.work-link {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-2);
  letter-spacing: -0.003em;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), color 180ms ease, border-color 180ms ease;
}
.work-link:active { transform: scale(0.97); }
.work-video .work-link { padding-inline: 11px; }

.work-link svg {
  opacity: 0.6;
  transition: transform 200ms var(--ease-out), opacity 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .work-link:hover { color: var(--brass); border-color: var(--brass); }
  .work-link:hover svg { opacity: 1; transform: translate(1px, -1px); }
}

@media (prefers-reduced-motion: reduce) {
  .work-link:active { transform: none; }
  .work-link svg, .work-link:hover svg { transition: none; transform: none; }
}

/* ---------- Proof ---------- */
.proof {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
}
.proof-n {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  line-height: 1.05;
  letter-spacing: -0.026em;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

/* A worded headline wraps, so it needs looser leading than a single number. */
.proof-n--words {
  font-size: clamp(1.5rem, 3.2vw, 1.875rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.proof-t {
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.proof-b {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--text-2);
}

/* ---------- Featured logo strip ---------- */
/* Wrapping flex rather than grid so an incomplete last row sits centred
   (13 logos = 6 + 6 + 1) instead of stranded in the left column. */
.logos {
  --cols: 6;
  --gap-x: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: clamp(20px, 3vw, 30px);
  column-gap: var(--gap-x);
  margin-bottom: clamp(30px, 4.5vw, 44px);
}
.logos li {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols));
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 44px;
}

/* Each mark is painted in one ink colour through its SVG as a mask, so logos
   from different sources read as one set and follow the theme. Sizes are set
   inline per logo (equal visual area, not equal height). */
.logo {
  display: block;
  flex: none;
  max-width: 100%;
  background-color: var(--text-2);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  /* Browsers drop background colours when printing by default; keep these. */
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
}

/* Windows high-contrast mode replaces background colours; paint with the
   system text colour instead so the logos don't vanish. */
@media (forced-colors: active) {
  .logo { forced-color-adjust: none; background-color: CanvasText; }
}

@media (max-width: 760px) {
  .logos { --cols: 4; }
}
@media (max-width: 460px) {
  .logos { --cols: 3; }
}

/* ---------- Brands, grouped by category ---------- */
.section-note.wide { max-width: 62ch; }

.cats {
  margin: 0;
  border-top: 1px solid var(--line);
}

.cat {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(14px, 3vw, 32px);
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.cat-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 7px;
  font-size: 0.6875rem;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.cat-n {
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}

.cat-items { margin: 0; }
.cat-items ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-2);
  letter-spacing: -0.003em;
  transition: color 180ms ease, border-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .chip:hover { color: var(--text); border-color: var(--text-3); }
}

@media (max-width: 720px) {
  .cat {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
  }
  .cat-label { padding-top: 0; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 4.5vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.contact-copy { min-width: 260px; flex: 1 1 320px; }
.contact-copy .section-note { margin-top: 10px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------- Footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-block: 28px 44px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
  margin-top: clamp(30px, 5vw, 48px);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--btn-fg);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.003em;
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translate(-50%, 12px) scale(0.96);
  pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    transform: none;
    transition: opacity 260ms ease;
  }
  .seg-thumb { transition: none; }
  .btn:active, .seg-btn:active { transform: none; }
  .toast {
    transform: translate(-50%, 0);
    transition: opacity 200ms ease;
  }
  .toast.is-on { transform: translate(-50%, 0); }
}

@media (prefers-reduced-transparency: reduce) {
  .chrome {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: var(--line);
  }
}

@media (prefers-contrast: more) {
  :root { --line: var(--line-strong); --text-2: var(--text); }
  .card, .rate-group--feature, .contact { border-color: var(--text-3); }
}

/* ---------- Print: client can Save as PDF ---------- */
@media print {
  .chrome, .toast, .skip, .cta-row, .contact-actions, .rates-cta { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero { padding-block: 18px; break-inside: avoid; }
  .card, .rate-group--feature, .proof, .contact, .work {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  /* On paper a URL pill is useless, but the view counts are the point. */
  .work-link { display: none; }
  .cat { break-inside: avoid; }
  .rates { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
  .hero-figure { max-height: 190px; aspect-ratio: auto; }
  a[href^="http"]::after { content: ""; }
}
