/* TMN Flow: the studio pages (portfolio, studio, trevor) on top of tmn-home.css.
   Built by scripts/convert-pages-v2.mjs. Shared: the closing band and the footer. Then 1 block per page. */

/* ===== Shared: the closing band, the ask beside its actions on paper with Flow's gold radial ===== */
.pg-close {
  padding-block: clamp(3.5rem, 6.5vw, 6rem);
  background: radial-gradient(50% 70% at 85% 30%, rgb(201 164 76 / 0.09), transparent 70%), var(--paper);
}
.pg-close-inner { display: grid; gap: 1.5rem; }
.pg-close h2 { max-width: 16ch; font-size: clamp(2.1rem, 3.8vw, 3.4rem); }
.pg-close .pg-close-copy p { max-width: 32em; font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); }
.pg-close .pg-close-copy p a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }
.pg-close-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
@media (min-width: 900px) {
  .pg-close-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
}
@media (max-width: 430px) {
  .pg-close .button { width: 100%; white-space: normal; line-height: 1.25; text-align: center; }
}

/* ===== Shared: the footer, the home page's layout with this page's own groups ===== */
.pg-foot .foot-logo img { width: 74px; height: auto; }
.pg-foot .foot-links a { min-width: 44px; }
@media (min-width: 1180px) {
  .pg-foot-grid { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
  .pg-foot .foot-links a { min-height: 36px; padding-block: 4px; }
}
@media (max-width: 820px) {
  .pg-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-foot .foot-links { grid-template-columns: minmax(0, 1fr); }
  /* The brand line and the short groups take the full width, so the email address never squeezes into a half column */
  .pg-foot .foot-brand,
  .pg-foot .pg-foot-row { grid-column: 1 / -1; }
  .pg-foot .pg-foot-row .foot-links { display: flex; flex-wrap: wrap; column-gap: 1.75rem; }
}

/* ===== Portfolio: the work leads ===== */

/* Hero: the promise beside the 4 studio facts, compact so the first project shows in the first desktop screen */
.pf-hero { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4.25rem)); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.pf-hero-grid { position: relative; display: grid; gap: 2rem; }
.pf-hero .display { max-width: 12ch; }
.pf-hero .lead { margin-top: 1.4rem; max-width: 33em; text-wrap: pretty; }
.pf-hero .lead a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }
.pf-hero .lead a:hover { text-decoration-color: var(--ink); }
.pf-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; align-self: end; }
.pf-fact { padding: 0.95rem 0 1rem; border-top: 1px solid var(--line); }
.pf-fact .stat-k {
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  font-weight: 420;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pf-fact .u { margin-left: 0.04em; font-size: 0.7em; color: var(--ink-2); }
.pf-fact .stat-l { margin-top: 0.4rem; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-3); }
@media (min-width: 1000px) {
  .pf-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: end; }
}
@media (prefers-reduced-motion: no-preference) {
  .pf-facts { animation: stage-in 1.1s var(--ease-out) 0.15s both; }
}

/* Gallery head: 1 compact row, a hairline above */
.pf-gallery { padding-top: clamp(0.75rem, 1.5vw, 1.25rem); }
.pf-gallery-head { display: grid; gap: 0.75rem; margin-bottom: clamp(2rem, 3.5vw, 3rem); padding-top: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
.pf-gallery-head h2 { max-width: none; font-size: clamp(1.75rem, 2.6vw, 2.4rem); }
.pf-gallery .pf-gallery-head p { max-width: 34em; font-size: 1rem; line-height: 1.55; color: var(--ink-3); }
@media (min-width: 900px) {
  .pf-gallery-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: end; }
}

/* The grid: featured projects across the row, pairs, a wide closer for an odd run, then trios */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.75rem, 4.2vw, 4.25rem) clamp(1.25rem, 2.5vw, 2.5rem);
}
.pf-item {
  position: relative;
  grid-column: span 6;
  display: block;
  min-width: 0;
  border-radius: var(--r-lg);
  color: var(--ink);
  text-decoration: none;
}
.pf-item--sm { grid-column: span 4; }
.pf-item--wide,
.pf-feature { grid-column: 1 / -1; }
a.pf-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }

.pf-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  box-shadow: 0 0 0 1px rgb(15 27 47 / 0.08), 0 1px 2px rgb(15 27 47 / 0.05), 0 22px 40px -28px rgb(15 27 47 / 0.45);
}
.pf-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform-origin: 50% 0;
  transition: transform 0.9s var(--ease-out);
}
a.pf-item:hover .pf-shot img { transform: scale(1.025); }

.pf-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0.4rem 1.5rem; margin-top: 1.1rem; }
.pf-name { font-size: 1.1875rem; font-weight: 580; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
.pf-cat { margin-top: 0.3rem; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }
.pf-act {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.15rem;
  font-size: 0.9375rem;
  font-weight: 560;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
}
.pf-act .button-icon { width: 0.95rem; transition: transform 0.35s var(--ease-out); }
a.pf-item:hover .pf-act .button-icon { transform: translateX(3px); }
.pf-act--note { font-weight: 500; color: var(--ink-3); }
a.pf-item:hover .pf-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgb(15 27 47 / 0.35); }

.pf-item--sm .pf-meta { grid-template-columns: minmax(0, 1fr); margin-top: 0.9rem; }
.pf-item--sm .pf-name { font-size: 1.0625rem; }
.pf-item--sm .pf-act { margin-top: 0.3rem; }

@media (min-width: 700px) {
  .pf-item--wide { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
  .pf-item--wide .pf-meta { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .pf-item--wide .pf-name { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 460; font-stretch: 108%; letter-spacing: -0.025em; line-height: 1.15; }
  .pf-item--wide .pf-cat { margin-top: 0.5rem; font-size: 1rem; }
  .pf-item--wide .pf-act { margin-top: 1.1rem; }
}

/* Featured: Flow's dark stage with the site in a CSS MacBook and iPhone (the home page's own captures) */
.pf-feature {
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--r-xl);
  background: radial-gradient(55% 75% at 72% 45%, rgb(201 164 76 / 0.13), transparent 70%), var(--stage);
  color: var(--stage-ink);
  isolation: isolate;
  overflow: hidden;
}
.pf-feature:focus-visible { outline-offset: 4px; }
.pf-feature .pf-shot { aspect-ratio: auto; overflow: visible; border-radius: 0; background: none; box-shadow: none; container-type: inline-size; }
.pf-scene { position: relative; width: 70em; height: 46em; font-size: calc(100cqi / 70); }
.pf-scene .device-mac { left: 0; top: 0; width: 58em; }
.pf-scene .device-phone { left: 54.5em; top: 13em; width: 15em; z-index: 2; }
.pf-feature .mac-lid { box-shadow: 0 1px 0 rgb(255 255 255 / 0.06), 0 18px 30px -18px rgb(0 0 0 / 0.7); }
.pf-feature .phone-frame { box-shadow: inset 0 0 0 0.42cqi rgb(255 255 255 / 0.16), 0 0 0 1px rgb(238 242 247 / 0.1), 0 22px 34px -20px rgb(0 0 0 / 0.75); }
a.pf-feature:hover .pf-shot img { transform: none; }
/* The status bar's time as generated content, so it never joins the link's text (393 x 54pt bar, 17pt type centred at x 66) */
.pf-scene .phone-status { position: relative; }
.pf-scene .phone-status::before {
  content: "9:41";
  position: absolute;
  inset: 0 auto 0 0;
  width: 33.6%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.5cqi;
  font-size: 3.94cqi;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: var(--status-ink, #000);
}
.pf-feature .pf-meta { grid-template-columns: minmax(0, 1fr); align-content: center; margin-top: 0; }
.pf-feature .pf-name { font-size: clamp(1.75rem, 2.8vw, 2.6rem); font-weight: 420; font-stretch: 110%; letter-spacing: -0.032em; line-height: 1.05; color: #f4f7fb; }
a.pf-feature:hover .pf-name { text-decoration: none; }
.pf-feature .pf-cat { max-width: 26em; margin-top: 0.8rem; font-size: 1.0625rem; color: var(--stage-muted); }
.pf-feature .pf-act {
  justify-self: start;
  min-height: 48px;
  margin-top: 1.6rem;
  padding: 0 1.25rem;
  border: 1px solid rgb(238 242 247 / 0.32);
  border-radius: var(--r-md);
  background: rgb(245 247 250 / 0.06);
  font-size: 1rem;
  font-weight: 580;
  color: #f4f7fb;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
a.pf-feature:hover .pf-act { background: var(--paper); border-color: var(--paper); color: var(--ink); }
@media (min-width: 1000px) {
  .pf-feature { grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); align-items: center; column-gap: clamp(2.5rem, 4vw, 4.5rem); }
  .pf-feature .pf-meta { order: -1; }
  .pf-feature--flip { grid-template-columns: minmax(0, 7.8fr) minmax(0, 4.2fr); }
  .pf-feature--flip .pf-meta { order: 0; }
}

/* Phones: 1 column, the trio projects as compact rows so more of the list fits on a screen */
@media (max-width: 699px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .pf-item,
  .pf-item--sm,
  .pf-item--wide,
  .pf-feature { grid-column: 1 / -1; }
  .pf-meta { grid-template-columns: minmax(0, 1fr); }
  .pf-act { margin-top: 0.3rem; }
  .pf-item--sm { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 1rem; align-items: center; }
  .pf-item--sm .pf-shot { border-radius: var(--r-md); }
  .pf-item--sm .pf-meta { margin-top: 0; }
  .pf-item--sm .pf-name { font-size: 1rem; }
  .pf-item--sm .pf-cat { font-size: 0.875rem; }
  .pf-item--sm .pf-act { white-space: normal; }
}
@media (max-width: 400px) {
  .pf-item--sm { grid-template-columns: minmax(0, 7.25rem) minmax(0, 1fr); gap: 0.85rem; }
}

/* Standards: the 4 commitments as a hairline ledger beside the heading */
.pf-standards-grid { display: grid; gap: 2.25rem; }
.pf-standards h2 { max-width: 15ch; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.pf-standards .pf-standards-head p { margin-top: 1.2rem; max-width: 30em; font-size: 1.0625rem; color: var(--ink-2); }
.pf-standards-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.pf-std { padding: 1.4rem 0 1.5rem; border-top: 1px solid var(--line); }
.pf-std h3 { font-size: 1.1875rem; }
.pf-standards .pf-std p { margin-top: 0.55rem; max-width: 34em; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.pf-std a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }
@media (min-width: 700px) {
  .pf-standards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
}
@media (min-width: 1000px) {
  .pf-standards-grid { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .pf-standards-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ===== Studio: the 2 founders, the work, how an engagement runs, and the inquiry ===== */

/* Header: this page keeps its own 3 parts, so the action stays in the header at every width */
.page-studio .nav-actions { gap: clamp(1rem, 2vw, 1.75rem); }
.page-studio .nav-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: var(--ink-2); white-space: nowrap; }
.page-studio .nav-meta .dot { color: var(--gold-ink); }
.page-studio .site-header.is-on-dark .nav-meta { color: #cfd7e2; }
.page-studio .site-header.is-on-dark .nav-meta .dot { color: var(--gold-2); }
@media (max-width: 1140px) {
  .page-studio .nav-cta { display: inline-flex; }
}
@media (max-width: 760px) {
  .page-studio .nav-meta { display: none; }
}
@media (max-width: 420px) {
  .page-studio .nav-cta { min-height: 44px; padding-inline: 0.95rem; font-size: 0.9375rem; }
  .page-studio .nav-cta .button-icon { display: none; }
}

/* Hero: the promise and the "Built for" line beside the founders' photo */
.st-hero { padding-bottom: clamp(2.75rem, 5.5vw, 5rem); }
.st-hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.st-hero .display { max-width: 13ch; }
.st-hero .lead { margin-top: 1.5rem; max-width: 30em; text-wrap: pretty; }
/* Leading dots sit in the clipped margin, so a wrapped line never starts on a separator */
.st-segs { display: flex; flex-wrap: wrap; margin: 2rem 0 0 -1.15rem; clip-path: inset(0 0 0 1.15rem); font-size: 0.9375rem; line-height: 1.6; }
.st-segs > span { position: relative; padding-left: 1.15rem; color: var(--ink); white-space: nowrap; }
.st-segs > span::before { content: ""; position: absolute; left: 0.5rem; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--gold); }
.st-segs > .st-segs-lead { color: var(--ink-3); }
.st-segs > .st-segs-lead::before,
.st-segs > .st-segs-lead + span::before { display: none; }
.st-photo { position: relative; margin: 0; }
@media (max-width: 999px) {
  .st-photo { max-width: 34rem; }
}
.st-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
@media (min-width: 1000px) {
  .st-hero-grid { grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr); column-gap: clamp(3rem, 6vw, 6rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .st-photo { animation: stage-in 1.2s var(--ease-out) 0.12s both; }
}

/* The studio paragraph, set large, and the 3 outside profiles under it */
.st-studio { padding-top: clamp(1rem, 2vw, 1.5rem); }
.st-studio-grid { display: grid; gap: 1.5rem; padding-top: clamp(2rem, 3.5vw, 3rem); border-top: 1px solid var(--line); }
.st-manifesto { max-width: 33em; font-size: clamp(1.3rem, 2.05vw, 1.8rem); line-height: 1.45; letter-spacing: -0.014em; color: var(--ink); text-wrap: pretty; }
.st-manifesto a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgb(15 27 47 / 0.3); }
.st-manifesto a:hover { text-decoration-color: var(--ink); }
.st-creds { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.st-creds a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; font-size: 0.9375rem; font-weight: 560; color: var(--ink); text-decoration: none; }
.st-creds a .button-icon { width: 0.75rem; color: var(--ink-3); transition: transform 0.35s var(--ease-out), color 0.2s ease; }
.st-creds a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.st-creds a:hover .button-icon { transform: translate(2px, -2px); color: var(--ink); }

/* Work: the shared dark band with a "View" line on each row */
.st-work .sw-intro h2 { max-width: 18ch; }
.st-work .sw-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.st-work .sw-cta { font-size: 0.875rem; font-weight: 500; color: var(--stage-muted); white-space: nowrap; transition: color 0.3s ease; }
.st-work .sw-row:hover .sw-cta,
.st-work .sw-row.is-active .sw-cta { color: var(--gold-2); }
.st-work .sw-cta--note { font-weight: 400; }
@media (max-width: 899px) {
  .st-work .sw-row {
    grid-template-columns: min(36vw, 220px) minmax(0, 1fr) auto;
    grid-template-areas: "thumb text arrow" "thumb cta arrow";
    align-items: start;
    row-gap: 0.35rem;
  }
  .st-work .sw-thumb { grid-area: thumb; }
  .st-work .sw-text { grid-area: text; }
  .st-work .sw-cta { grid-area: cta; font-size: 0.8125rem; }
  .st-work .sw-arrow { grid-area: arrow; align-self: center; }
}
@media (max-width: 400px) {
  .st-work .sw-row { grid-template-columns: min(34vw, 220px) minmax(0, 1fr); grid-template-areas: "thumb text" "thumb cta"; }
}

/* The client's words, large, under a short gold rule */
.st-quote-inner { max-width: 60rem; }
.st-quote-inner::before { content: ""; display: block; width: 3rem; height: 2px; margin-bottom: 1.75rem; border-radius: 1px; background: linear-gradient(90deg, var(--gold-a), var(--gold-b)); }
.st-quote blockquote { font-size: clamp(1.45rem, 2.6vw, 2.2rem); line-height: 1.32; letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; }
.st-quote cite { display: block; margin-top: 1.5rem; font-size: 0.9375rem; font-style: normal; color: var(--ink-3); }
.st-quote cite strong { font-weight: 600; color: var(--ink); }

/* Process: the home page's plan card, without a duration column */
.st-process .proc-row { grid-template-columns: 1.35rem minmax(0, 1fr); }

/* Inquiry: the heading and line beside the form on the home page's white panel */
.st-contact-grid { display: grid; gap: 2.5rem; }
.st-contact h2 { max-width: 12ch; font-size: clamp(2.1rem, 3.8vw, 3.4rem); }
.st-contact .st-contact-lead { margin-top: 1.25rem; max-width: 30em; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
.st-form-card form { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1rem; }
.st-form-card .fg label span { font-weight: 400; color: var(--ink-3); }
.st-form-card .ai-prompt-help { line-height: 1.5; }
.st-form-card button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 0.35rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 580;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 1px 2px rgb(15 27 47 / 0.25), 0 10px 24px -10px rgb(15 27 47 / 0.55);
  transition: background-color 0.2s ease, box-shadow 0.3s var(--ease-out);
}
.st-form-card button[type="submit"]:hover { background: #1a2b47; }
.st-form-card button[type="submit"] span { display: inline-flex; align-items: center; gap: 0.6rem; }
.st-form-card button[type="submit"] svg { width: 1.05rem; height: auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease-out); }
.st-form-card button[type="submit"]:hover svg { transform: translateX(3px); }
.st-form-card .fine { margin-top: 1rem; font-size: 0.875rem; line-height: 1.7; color: var(--ink-3); }
.st-form-card .fine a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(51 65 90 / 0.35); }
@media (min-width: 600px) {
  .st-form-card form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-form-card form > * { grid-column: 1 / -1; }
  .st-form-card form > .fg--half { grid-column: auto; }
}
@media (min-width: 1000px) {
  .st-contact-grid { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .st-contact-copy { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Footer: the page's own line and legal row */
.st-foot { padding-top: clamp(2.5rem, 4vw, 3.5rem); }
.st-foot-row { display: grid; gap: 0.5rem; }
.st-foot-line { font-size: 1.25rem; font-weight: 460; letter-spacing: -0.015em; color: var(--ink); }
.st-foot-meta { font-size: 0.875rem; line-height: 1.6; color: var(--ink-3); }
.st-foot-meta a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(51 65 90 / 0.35); }
.st-foot-meta a:hover { color: var(--ink); text-decoration-color: var(--ink); }
@media (min-width: 900px) {
  .st-foot-row { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 3rem; }
  .st-foot-meta { text-align: right; }
}

/* ===== Trevor: the founder's profile ===== */

/* Hero: the portrait beside the H1; on phones and tablets a compact profile row so the H1 reaches the first screen */
.tv-hero { padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.tv-hero-grid { position: relative; display: grid; gap: 2rem; align-items: center; }
.tv-hero .display { max-width: 21ch; font-size: clamp(2.1rem, 3.4vw, 3.3rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.tv-hero .display em { display: inline; }
.tv-hero .hero-deck { margin-top: 1.6rem; max-width: 37em; font-size: 1.0625rem; line-height: 1.62; text-wrap: pretty; }
.tv-hero .hero-deck a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }
.tv-hero .hero-deck a:hover { text-decoration-color: var(--ink); }
.tv-hero .hero-ctas { margin-top: 1.6rem; }
.tv-text-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 0.35rem; font-size: 1rem; font-weight: 580; color: var(--ink); text-decoration: none; }
.tv-text-link .button-icon { width: 1rem; transition: transform 0.35s var(--ease-out); }
.tv-text-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tv-text-link:hover .button-icon { transform: translateX(3px); }
.tv-creds { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 1.5rem; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.tv-creds > * { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; color: var(--ink-2); }
.tv-creds a { font-weight: 560; color: var(--ink); text-decoration: none; }
.tv-creds a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tv-creds .button-icon { width: 0.75rem; color: var(--ink-3); }
.tv-photo { margin: 0; }
.tv-photo-frame { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-xl); background: var(--paper-2); box-shadow: var(--shadow-2); }
.tv-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.tv-photo-cap { display: grid; gap: 0.15rem; margin-top: 1rem; }
.tv-photo-cap strong { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.tv-photo-cap span { font-size: 0.9375rem; color: var(--ink-3); }
@media (min-width: 1000px) {
  .tv-hero-grid { grid-template-columns: minmax(0, 4.3fr) minmax(0, 7.7fr); column-gap: clamp(3rem, 6vw, 6rem); }
}
@media (max-width: 999px) {
  .tv-photo { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.1rem; align-items: center; }
  .tv-photo-frame { aspect-ratio: 1; border-radius: 18px; box-shadow: var(--shadow-1); }
  .tv-photo-cap { margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .tv-photo-frame { animation: stage-in 1.2s var(--ease-out) 0.12s both; }
}

/* Heading beside a reading column (story, why) */
.tv-split { display: grid; gap: 1.75rem; }
.tv-head h2 { max-width: 17ch; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.section .tv-head > p { margin-top: 1.1rem; max-width: 36em; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
.tv-prose { max-width: 38em; }
.section .tv-prose > p { font-size: 1.0625rem; line-height: 1.72; color: var(--ink-2); text-wrap: pretty; }
.tv-prose > * + * { margin-top: 1.15rem; }
.tv-prose strong { font-weight: 560; color: var(--ink); }
.tv-pull { padding-block: 0.85rem; }
.tv-pull::before { content: ""; display: block; width: 3rem; height: 2px; margin-bottom: 1.1rem; border-radius: 1px; background: linear-gradient(90deg, var(--gold-a), var(--gold-b)); }
.section .tv-pull .tv-pull-text { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); }
@media (min-width: 1000px) {
  .tv-split { grid-template-columns: minmax(0, 4.8fr) minmax(0, 7.2fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .tv-split .tv-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Background: 4 figures as a hairline ledger, then the operating company on a white panel */
.tv-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.tv-stat { padding: 1.2rem 0 1.4rem; border-top: 1px solid var(--line); }
.tv-stat .stat-label { font-size: 0.9375rem; font-weight: 560; color: var(--ink-2); }
.tv-stat .stat-num { margin-top: 0.4rem; font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight: 400; font-stretch: 110%; letter-spacing: -0.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tv-stat .unit { margin-left: 0.04em; font-size: 0.66em; color: var(--ink-2); }
.tv-stat .stat-body { margin-top: 0.7rem; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-3); }
@media (min-width: 1000px) {
  .tv-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
}
@media (max-width: 359px) {
  .tv-stats { grid-template-columns: minmax(0, 1fr); }
}
.tv-operator { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.5rem, 3.4vw, 2.75rem); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); }
.tv-operator h3 { max-width: 26ch; font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 460; font-stretch: 106%; letter-spacing: -0.02em; line-height: 1.2; }
.section .tv-operator p { margin-top: 0.9rem; max-width: 46em; font-size: 1rem; line-height: 1.65; color: var(--ink-2); }
.tv-operator p strong { font-weight: 560; color: var(--ink); }
.tv-operator-actions { margin-top: 1.5rem; }

/* Credentials: 3 entries in a hairline ledger */
.tv-cred-list { display: grid; gap: 0 clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 4vw, 3rem); }
.tv-cred { padding: 1.4rem 0 1.5rem; border-top: 1px solid var(--line); }
.tv-cred h3 { font-size: 1.1875rem; line-height: 1.3; }
.tv-cred .cred-source { margin-top: 0.35rem; font-size: 0.9375rem; font-weight: 560; color: var(--gold-ink); }
.tv-cred .cred-desc { margin-top: 0.6rem; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }
.tv-cred .cred-link { display: block; margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-3); }
@media (min-width: 900px) {
  .tv-cred-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Why: the page's single dark band */
.tv-why { background: var(--stage); color: var(--stage-ink); }
.tv-why h2 { color: #f4f7fb; }
.section.tv-why .tv-prose > p { color: var(--stage-muted); }
.tv-why .tv-prose strong { color: #f4f7fb; }
.tv-why :focus-visible { outline-color: var(--gold); }

/* Closing: the shared band with the contact line under the action */
.tv-close-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.75rem; margin-top: 1.1rem; font-size: 0.9375rem; color: var(--ink-3); }
.tv-close-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(51 65 90 / 0.35); }
.tv-close-meta a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* Footer: the brand line and proof, no link columns on this page */
.tv-foot .pg-foot-grid { grid-template-columns: minmax(0, 1fr); }
.tv-foot .foot-brand p { max-width: 34em; }

/* ===== Custom CMS: what the team publishes, how, and what it costs ===== */

/* Hero: the promise beside East West Diversified Ventures, the firm that publishes its own Insights */
.cms-hero { padding-bottom: clamp(2.75rem, 5.5vw, 5rem); }
.cms-hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.cms-hero .display { max-width: 12ch; }
.cms-hero .hero-deck { margin-top: 1.4rem; max-width: 33em; text-wrap: pretty; }
.cms-hero .hero-ctas { margin-top: 1.8rem; }
.cms-hero-figure { margin: 0; min-width: 0; }
.cms-mac { position: relative; width: 100%; }
.cms-mac .mac-screen picture { display: block; width: 100%; height: 100%; }
.cms-mac .mac-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cms-hero-cap { display: grid; gap: 0.2rem; margin-top: 1.1rem; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-3); }
.cms-hero-cap strong { font-weight: 600; color: var(--ink); }
.cms-hero-cap a,
.cms-demo-cap a { display: inline-flex; align-items: center; min-height: 44px; }
.cms-hero-cap a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }
@media (min-width: 1100px) {
  .cms-hero-grid { grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr); column-gap: clamp(3rem, 5vw, 4.75rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .cms-hero-figure { animation: stage-in 1.2s var(--ease-out) 0.12s both; }
}

/* The plan card beside what the team publishes */
.cms-plan-grid { display: grid; gap: 2rem; align-items: start; }
.cms-plan-card { padding: clamp(1.5rem, 3.2vw, 2.4rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-2); }
.cms-plan-card .plan-name { font-size: 1rem; font-weight: 600; color: var(--ink); }
.cms-plan-card .plan-price { margin-top: 0.35rem; font-size: clamp(2.2rem, 3.4vw, 2.9rem); font-weight: 400; font-stretch: 110%; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.cms-plan-card .tiers { margin-top: 1.35rem; padding: 0; list-style: none; }
.cms-plan-card .tiers li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line-2); font-size: 0.9375rem; font-weight: 560; color: var(--ink); }
.cms-plan-card .tiers li span { font-weight: 400; text-align: right; color: var(--ink-3); }
.section .cms-plan-card > p { margin-top: 1rem; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }
.cms-plan-details h2 { max-width: 18ch; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.section .cms-plan-details > p { margin-top: 1rem; max-width: 38em; font-size: 1.0625rem; line-height: 1.62; color: var(--ink-2); }
.cms-plan-list { gap: 0.7rem; margin-top: 1.4rem; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.section .cms-plan-details > .cms-plan-baseline { margin-top: 1.4rem; font-size: 0.9375rem; }
.cms-plan-baseline strong { font-weight: 600; color: var(--ink); }
.cms-plan-cta { margin-top: 1.6rem; }
@media (min-width: 1000px) {
  .cms-plan-grid { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); column-gap: clamp(3rem, 6vw, 6rem); }
  .cms-plan-card { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Section heads: the heading beside its line */
.cms-head { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.cms-head h2 { max-width: 20ch; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.section .cms-head p { max-width: 38em; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 1000px) {
  .cms-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: end; }
}
.cms-setup p a,
.cms-proof-line a,
.cms-plain a,
.cms-fit a,
.cms-demo-cap a,
.cms-answers a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }

/* The 2 publishing setups on white panels */
.cms-setups { display: grid; gap: 1.25rem; }
.cms-setup { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); }
.cms-setup h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); font-weight: 520; letter-spacing: -0.02em; }
.section .cms-setup p { margin-top: 0.75rem; font-size: 0.9875rem; line-height: 1.62; color: var(--ink-2); }
.cms-setup p strong { font-weight: 600; color: var(--ink); }
.section .cms-setup p.own { padding-top: 0.75rem; border-top: 1px solid var(--line-2); font-size: 0.9375rem; color: var(--ink-3); }
.cms-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 0.45rem; min-height: 44px; margin-top: auto; padding-top: 1rem; font-weight: 580; color: var(--ink); text-decoration: none; }
.cms-link .button-icon { width: 0.9rem; transition: transform 0.35s var(--ease-out); }
.cms-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cms-link:hover .button-icon { transform: translateX(3px); }
.section .cms-proof-line { margin-top: 1.6rem; max-width: 52em; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 800px) {
  .cms-setups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The editor walkthrough */
.cms-demo { margin: 0; }
.cms-demo-link { display: block; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-2); }
.cms-demo-link img { display: block; width: 100%; height: auto; }
.cms-demo-cap { margin-top: 1rem; max-width: 62em; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-3); }
.cms-notes { display: grid; gap: 0 clamp(1.5rem, 3vw, 3rem); margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.cms-note { padding: 1.3rem 0 1.4rem; border-top: 1px solid var(--line); }
.cms-note h3 { font-size: 1.1875rem; }
.section .cms-note p { margin-top: 0.5rem; font-size: 0.9875rem; line-height: 1.62; color: var(--ink-2); }
.cms-demo-cta { margin-top: 1.25rem; }
@media (min-width: 800px) {
  .cms-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Agency questions answered: a labelled ledger, the scoping split, what it is not, who it fits */
.cms-answers { padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.cms-answers li { display: grid; gap: 0.35rem 2rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.cms-answer-label { font-size: 1rem; font-weight: 600; color: var(--ink); }
.section .cms-answers li p { font-size: 0.9875rem; line-height: 1.62; color: var(--ink-2); }
.cms-answers li p strong { font-weight: 600; color: var(--ink); }
@media (min-width: 800px) {
  .cms-answers li { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
}
.cms-sub { margin-top: clamp(2.5rem, 5vw, 3.75rem); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 460; letter-spacing: -0.025em; }
.cms-panes { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.cms-pane { padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.cms-pane-label { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); }
.cms-pane ul { display: grid; gap: 0.5rem; margin-top: 0.75rem; padding-left: 1.1rem; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 800px) {
  .cms-panes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cms-plain { max-width: 48em; margin-top: clamp(2rem, 4vw, 3rem); }
.cms-plain h3 { font-size: 1.1875rem; }
.section .cms-plain p { margin-top: 0.55rem; font-size: 1rem; line-height: 1.62; color: var(--ink-2); }
.cms-fit { display: grid; gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.cms-fit h2 { max-width: 16ch; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.section .cms-fit p { max-width: 40em; font-size: 1.0625rem; line-height: 1.62; color: var(--ink-2); }
@media (min-width: 1000px) {
  .cms-fit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .cms-fit h2 { grid-row: span 2; }
}

/* ===== Monthly service pages (AI search, Content Care, RIA Site Care, Compliance Care, Publishing Portal) =====
   The custom CMS page's plan card, panes, ledger and FAQ, plus the founder's portrait and the blocks below. */

/* Hero: the promise beside Trevor's portrait, a small avatar row on phones */
.svc-hero { padding-bottom: clamp(2.75rem, 5.5vw, 5rem); }
.svc-hero-grid { position: relative; display: grid; gap: 2.25rem; align-items: center; }
.svc-hero .display { max-width: 14ch; }
.svc-hero .hero-deck { margin-top: 1.4rem; max-width: 34em; text-wrap: pretty; }
.svc-hero .hero-deck a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }
.svc-hero .hero-ctas { margin-top: 1.8rem; }
.svc-portrait { margin: 0; min-width: 0; }
.svc-portrait-frame { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-xl); background: var(--paper-2); box-shadow: var(--shadow-2); }
.svc-portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.svc-portrait-cap { display: grid; gap: 0.15rem; margin-top: 1rem; }
.svc-portrait-cap strong { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.svc-portrait-cap span { max-width: 26em; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-3); }
@media (min-width: 1000px) {
  .svc-hero-grid { grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); column-gap: clamp(3rem, 6vw, 6rem); }
  .svc-portrait { max-width: 360px; justify-self: end; }
}
@media (max-width: 999px) {
  .svc-portrait { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.1rem; align-items: center; }
  .svc-portrait-frame { aspect-ratio: 1; border-radius: 18px; box-shadow: var(--shadow-1); }
  .svc-portrait-cap { margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .svc-portrait-frame { animation: stage-in 1.2s var(--ease-out) 0.12s both; }
}

/* What the plan commits to: a 2-column ledger of hairline rows */
.svc-points { display: grid; gap: 0 clamp(2rem, 4vw, 3.5rem); }
.svc-point { padding: 1.35rem 0 1.5rem; border-top: 1px solid var(--line); }
.svc-point h3 { font-size: clamp(1.2rem, 1.6vw, 1.375rem); font-weight: 520; letter-spacing: -0.02em; }
.section .svc-point p { margin-top: 0.55rem; max-width: 36em; font-size: 0.9875rem; line-height: 1.62; color: var(--ink-2); }
.svc-point p a,
.svc-proof a,
.svc-client-copy p a,
.svc-sources p a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }
@media (min-width: 800px) {
  .svc-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The honest answers: proof first, then what is and is not promised */
.svc-aiv .shell > .cms-fit:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.svc-proof { display: grid; gap: 2rem; align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.svc-proof-copy h2 { max-width: 17ch; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.section .svc-proof-copy p { margin-top: 1rem; max-width: 36em; font-size: 1.0625rem; line-height: 1.62; color: var(--ink-2); }
.svc-proof-quote { margin: 0; padding: clamp(1.5rem, 3.2vw, 2.4rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-2); font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.svc-proof-quote::before { content: ""; display: block; width: 3rem; height: 2px; margin-bottom: 1.1rem; border-radius: 1px; background: linear-gradient(90deg, var(--gold-a), var(--gold-b)); }
.svc-proof-quote span { display: block; margin-top: 1rem; font-size: 0.9375rem; line-height: 1.55; letter-spacing: 0; color: var(--ink-3); }
.svc-proof-quote span a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1000px) {
  .svc-proof { grid-template-columns: minmax(0, 6.6fr) minmax(0, 5.4fr); column-gap: clamp(3rem, 6vw, 6rem); }
}

/* A client's own report: the live site, the founder's words, and the compliance line */
.svc-client { display: grid; gap: 2rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); }
.svc-client-media { display: grid; gap: 1.5rem; }
.svc-client-shot { margin: 0; }
.svc-client-shot a { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-lg); background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.svc-client-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.svc-client-shot figcaption { margin-top: 0.7rem; font-size: 0.875rem; color: var(--ink-3); }
.svc-client-quote { margin: 0; }
.svc-client-quote blockquote { margin: 0; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.svc-client-quote figcaption { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-3); }
.svc-client-copy h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); font-weight: 520; letter-spacing: -0.02em; }
.section .svc-client-copy p { margin-top: 0.75rem; max-width: 36em; font-size: 0.9875rem; line-height: 1.62; color: var(--ink-2); }
.section .svc-client-copy .svc-note { font-size: 0.9375rem; color: var(--ink-3); }
@media (min-width: 1000px) {
  .svc-client { grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .svc-client-copy { display: flex; flex-direction: column; padding-top: 0.5rem; }
}

/* The first-party sources behind the page's platform statements, with their review date */
.svc-sources { display: grid; gap: 1.25rem; }
.svc-sources h2 { max-width: 18ch; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section .svc-sources > p { max-width: 40em; font-size: 1rem; line-height: 1.62; color: var(--ink-2); }
.svc-sources ul { display: grid; gap: 0 clamp(2rem, 4vw, 3.5rem); margin-top: 0.5rem; padding: 0; list-style: none; }
.svc-sources li { border-top: 1px solid var(--line); }
.svc-sources li a { display: flex; align-items: center; min-height: 48px; padding: 0.6rem 0; font-size: 0.9375rem; line-height: 1.45; color: var(--ink); text-decoration: none; }
.svc-sources li a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 1000px) {
  .svc-sources { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .svc-sources h2,
  .svc-sources > p { grid-column: 1; }
  .svc-sources ul { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
@media (min-width: 1300px) {
  .svc-sources ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Site Care hub: the promise, 3 care plans, the one-off change row, the commitments ===== */
.care-hero { padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.care-hero-inner { position: relative; }
.care-hero .display { max-width: 15ch; }
.care-hero .display em,
.svc-hero .display em { display: inline; }
.care-hero .hero-deck { margin-top: 1.4rem; max-width: 36em; text-wrap: pretty; }
.care-plans-shell > h2 { max-width: 18ch; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); font-size: clamp(2rem, 3.4vw, 3.1rem); }
.care-plans { display: grid; gap: 1.25rem; }
.care-plan { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); }
.care-plan--lead { box-shadow: var(--shadow-2); }
.care-plan--lead::before { content: ""; display: block; width: 3rem; height: 2px; margin-bottom: 1.1rem; border-radius: 1px; background: linear-gradient(90deg, var(--gold-a), var(--gold-b)); }
.care-plan-name { font-size: 1rem; font-weight: 600; color: var(--ink); }
.care-plan h3 { margin-top: 0.35rem; font-size: clamp(1.25rem, 1.7vw, 1.45rem); font-weight: 460; letter-spacing: -0.02em; color: var(--ink-2); }
.care-plan-price { margin-top: 1.1rem; font-size: clamp(2.2rem, 3.2vw, 2.75rem); font-weight: 400; font-stretch: 110%; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.care-plan-price .care-plan-from { display: block; margin-bottom: 0.4rem; font-size: 0.9375rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--ink-3); }
.care-plan-price .unit { font-size: 1rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--ink-3); }
.section .care-plan-fit { margin-top: 1rem; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }
.care-plan-list { gap: 0.6rem; margin: 1.1rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line-2); font-size: 0.9375rem; line-height: 1.5; color: var(--ink); }
.care-plan-cta { align-self: flex-start; margin-top: auto; }
.care-plan-list + .care-plan-cta { margin-top: 1.5rem; }
.care-adhoc { display: grid; gap: 1rem; align-items: center; margin-top: 1.25rem; padding: clamp(1.25rem, 2.6vw, 1.75rem) clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.care-adhoc h4 { font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.section .care-adhoc p { margin-top: 0.35rem; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }
.care-adhoc-cta { justify-self: start; }
@media (min-width: 900px) {
  .care-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .care-adhoc { grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; }
}

/* ===== Free preview: the paid social landing page. The form is the page. ===== */

/* Header: this page keeps its own 2 parts, the logo and "Back to site", at every width */
.page-free-review .fr-back { display: inline-flex; align-items: center; gap: 0.45rem; }
.page-free-review .fr-back .button-icon { width: 0.95rem; }
@media (max-width: 1440px) {
  .page-free-review .nav-ghost { display: inline-flex; }
}

/* First screen: the promise and the Ramon Design Group slider beside the form panel. No .hero class on purpose. */
.fr-hero { position: relative; overflow: clip; padding: calc(var(--header-h) + clamp(1.75rem, 4vw, 3.5rem)) 0 clamp(3rem, 6vw, 5rem); }
.fr-grid { position: relative; display: grid; gap: 2rem; }
.fr-proof-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.9rem; font-size: 0.9375rem; color: var(--ink-3); }
.fr-proof-line a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; color: var(--ink); text-decoration: none; }
.fr-proof-line a strong { font-weight: 600; }
.fr-proof-line a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fr-proof-line svg { width: 0.75rem; height: 0.75rem; color: var(--ink-3); }
.fr-proof-line .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.fr-proof-line em { color: var(--ink-3); }
@media (max-width: 480px) {
  .fr-proof-line .sep { display: none; }
  .fr-proof-line { flex-direction: column; align-items: flex-start; gap: 0; }
  .fr-proof-line em { margin-top: -0.35rem; }
}
.fr-intro .display { max-width: 13ch; margin-top: 0.75rem; font-size: clamp(2.4rem, 4.4vw, 3.9rem); }
.fr-intro .display em { display: block; }
.fr-intro .lead { margin-top: 1.3rem; max-width: 33em; text-wrap: pretty; }
.fr-intro .lead strong { font-weight: 600; color: var(--ink); }
.fr-perks { display: grid; gap: 0.55rem; margin-top: 1.5rem; font-size: 1rem; color: var(--ink); }
.fr-perks .perk { display: flex; align-items: flex-start; gap: 0.7rem; }
.fr-perks .perk::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.12rem;
  background: var(--gold-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.4 8.4 3 3 6.2-6.8' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.4 8.4 3 3 6.2-6.8' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
@media (min-width: 1000px) {
  .fr-grid { grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); grid-template-areas: "intro form" "ba form"; column-gap: clamp(2.5rem, 5vw, 4.5rem); row-gap: 2.5rem; align-items: start; }
  .fr-intro { grid-area: intro; }
  .fr-grid > .form-card { grid-area: form; }
  .fr-ba--primary { grid-area: ba; }
}
@media (prefers-reduced-motion: no-preference) {
  .fr-grid > .form-card { animation: stage-in 1.1s var(--ease-out) 0.12s both; }
}

/* The form panel's own parts (the form element and its controls are untouched) */
.fr-grid .form-card form button.form-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 52px;
  margin-top: 0.35rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 580;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 1px 2px rgb(15 27 47 / 0.25), 0 10px 24px -10px rgb(15 27 47 / 0.55);
  transition: background-color 0.2s ease;
}
.fr-grid .form-card form button.form-sub:hover { background: #1a2b47; }
.fr-grid .form-card form button.form-sub svg { width: 1.05rem; height: auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fr-grid .form-card .fg label span { color: var(--ink-3); }
.fr-grid .form-card .new-business-context { margin: -0.25rem 0 1.15rem; border-bottom: 1px solid var(--line-2); }
.fr-grid .form-card .new-business-context summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; font-size: 0.95rem; font-weight: 560; color: var(--ink); cursor: pointer; list-style: none; }
.fr-grid .form-card .new-business-context summary::-webkit-details-marker { display: none; }
.fr-grid .form-card .new-business-context summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.fr-grid .form-card .new-business-context[open] summary::after { transform: rotate(180deg); }
.fr-grid .form-card .form-help { display: block; font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); }
.fr-grid .form-card .form-micro { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.875rem; color: var(--ink-3); text-align: center; }
.fr-grid .form-card .form-micro svg { flex: none; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fr-grid .form-card .form-alt { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 0.4rem; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--line-2); font-size: 0.9375rem; color: var(--ink-2); }
.fr-grid .form-card .form-alt a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 560; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }
/* Desktop density: name and email share a row so the submit button sits in the first screen, as it did on the old page */
@media (min-width: 1200px) {
  .fr-grid .form-card form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .fr-grid .form-card form > * { grid-column: 1 / -1; }
  .fr-grid .form-card form > .fg:has(#name),
  .fr-grid .form-card form > .fg:has(#email) { grid-column: auto; }
}

/* Before and after: the user moves the edge (range input or touch drag). At rest, and without JS, 50/50. */
.fr-ba { min-width: 0; }
.fr-ba .ba-block-head { margin-bottom: 0.75rem; font-size: 1rem; font-weight: 600; color: var(--ink); }
.fr-ba .ba-pair { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-2); box-shadow: 0 0 0 1px rgb(15 27 47 / 0.08), var(--shadow-2); touch-action: pan-y; }
.fr-ba .ba-pair img { display: block; width: 100%; height: auto; }
.fr-ba .ba-pair .ba-after { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: top center; clip-path: inset(0 0 0 50%); }
.fr-ba .ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(15 27 47 / 0.18); pointer-events: none; }
.fr-ba .ba-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%230f1b2f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 2px 10px rgb(15 27 47 / 0.25);
}
.fr-ba .ba-pair:focus-within .ba-line::after { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.fr-ba .ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.fr-ba .ba-lbl { position: absolute; top: 12px; padding: 0.3rem 0.6rem; border-radius: 6px; background: rgb(10 18 32 / 0.72); color: #fff; font-size: 0.8125rem; font-weight: 560; line-height: 1.2; pointer-events: none; transition: opacity 0.2s ease; }
.fr-ba .ba-lbl-b { left: 12px; }
.fr-ba .ba-lbl-a { right: 12px; }
.fr-ba .ba-cap { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-3); }
.fr-ba .ba-cap a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }

/* What the preview includes, who it fits, free versus paid */
.fr-head { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.fr-head h2 { max-width: 18ch; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.section .fr-head p { max-width: 38em; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
.fr-ledger { display: grid; gap: 0 clamp(1.5rem, 3vw, 3rem); }
.fr-item { padding: 1.3rem 0 1.4rem; border-top: 1px solid var(--line); }
.fr-item h3 { font-size: 1.1875rem; }
.section .fr-item p { margin-top: 0.5rem; font-size: 0.9875rem; line-height: 1.62; color: var(--ink-2); }
.fr-fit { display: grid; gap: 1.5rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.25rem, 4.5vw, 3.25rem); }
.fr-fit-col h3 { font-size: 1.1875rem; }
.fr-fit-col ul { display: grid; gap: 0.6rem; margin-top: 0.75rem; padding: 0; list-style: none; font-size: 0.9875rem; line-height: 1.55; color: var(--ink-2); }
.fr-fit-col li { position: relative; padding-left: 1.1rem; }
.fr-fit-col li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.fr-fit-col--not li::before { background: var(--ink-3); }
.fr-compare { display: grid; gap: 1.25rem; margin-top: clamp(2.25rem, 4.5vw, 3.25rem); padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); }
.fr-compare h3 { font-size: 1.1875rem; }
.section .fr-compare p { margin-top: 0.5rem; font-size: 0.9875rem; line-height: 1.62; color: var(--ink-2); }
.fr-compare .divider { height: 1px; background: var(--line-2); }
@media (min-width: 800px) {
  .fr-ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fr-fit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fr-compare { grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); column-gap: clamp(1.5rem, 3vw, 3rem); }
  .fr-compare .divider { width: 1px; height: auto; }
}
@media (min-width: 1000px) {
  .fr-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: end; }
}

/* Proof: the page's single dark band, the Crestone slider beside the 3 client quotes */
.fr-proof { background: var(--stage); color: var(--stage-ink); }
.fr-proof-grid { display: grid; gap: 2.5rem; align-items: center; }
.fr-proof .fr-ba .ba-cap { color: var(--stage-muted); }
.fr-proof .fr-ba .ba-pair { box-shadow: 0 0 0 1px rgb(238 242 247 / 0.12), 0 24px 48px -24px rgb(0 0 0 / 0.6); }
.fr-quotes { display: grid; }
.fr-quote { padding: 1.3rem 0 1.4rem; border-top: 1px solid rgb(238 242 247 / 0.14); }
.fr-quote:last-child { border-bottom: 1px solid rgb(238 242 247 / 0.14); }
.fr-quote-text { font-size: clamp(1.0625rem, 1.4vw, 1.2rem); line-height: 1.5; color: #f4f7fb; text-wrap: pretty; }
.fr-quote-attr { margin-top: 0.7rem; }
.fr-quote-name { display: flex; flex-wrap: wrap; gap: 0 0.6rem; font-size: 0.9375rem; font-weight: 600; color: #f4f7fb; }
.fr-quote-name span { font-weight: 400; color: var(--stage-muted); }
@media (min-width: 1000px) {
  .fr-proof-grid { grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr); column-gap: clamp(3rem, 6vw, 5.5rem); }
}

/* Close */
.fr-close .fr-close-line { max-width: 32em; font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); }
.fr-close .pg-close-actions { align-items: center; }
.fr-or { font-size: 0.9375rem; color: var(--ink-3); }

/* Footer: the logo and copyright line beside the legal links */
.fr-foot { padding-top: 0; }
.fr-foot .fr-foot-bar { margin-top: 0; justify-content: space-between; align-items: center; gap: 0.75rem 2rem; }
.fr-foot-brand { display: inline-flex; align-items: center; gap: 0.9rem; }
.fr-foot-logo { width: 64px; height: auto; }
.fr-foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.35rem; }

/* ===== Utility pages: privacy, terms, 404, success. The logo and a back link, then the page's own content ===== */
.util-hero { position: relative; overflow: clip; padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 4rem); }
.util-hero-inner { position: relative; }
.util-hero .display { max-width: 16ch; }
.util-updated { margin-top: 1.1rem; font-size: 0.9375rem; color: var(--ink-3); }
.util-doc { padding-top: clamp(1rem, 2vw, 1.5rem); }
.util-prose { max-width: 44em; font-size: 1.0625rem; line-height: 1.72; color: var(--ink-2); }
.util-prose > * + * { margin-top: 1rem; }
.util-prose h2 { margin-top: clamp(2.25rem, 4vw, 3rem); font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 520; letter-spacing: -0.02em; color: var(--ink); }
.util-prose h3 { margin-top: 1.75rem; font-size: 1.1875rem; font-weight: 600; color: var(--ink); }
.util-prose ul, .util-prose ol { display: grid; gap: 0.45rem; padding-left: 1.2rem; }
.util-prose strong { font-weight: 600; color: var(--ink); }
.util-prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }
.util-back { display: inline-flex; align-items: center; gap: 0.45rem; }
.util-back .button-icon { width: 0.95rem; }
@media (max-width: 1440px) {
  .util-hero ~ * .nav-ghost, .site-header .util-back { display: inline-flex; }
}
.util-foot .foot-bar { justify-content: flex-start; }
.util-foot .foot-copy a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }

/* 404 */
.util-404 { min-height: 72vh; display: flex; align-items: center; }
.util-code { font-size: clamp(3.5rem, 9vw, 6.5rem); font-weight: 400; font-stretch: 110%; letter-spacing: -0.04em; line-height: 1; color: var(--gold-ink); }
.util-404 .display { margin-top: 1rem; }
.util-404 .hero-deck { margin-top: 1.2rem; max-width: 34em; }
.util-404 .hero-ctas { margin-top: 1.8rem; }
.util-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 1.5rem; }
.util-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 560; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }

/* Success: the confirmation, then the next step on a white panel */
.util-success-inner { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem); max-width: 56rem; }
.util-check { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: linear-gradient(135deg, var(--gold-a), var(--gold-b)); }
.util-check svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.util-confirm .display { margin-top: 1.25rem; max-width: 14ch; }
.util-confirm .status { margin-top: 1.1rem; max-width: 36em; font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); }
.util-next { padding: clamp(1.5rem, 3.4vw, 2.6rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-2); }
.util-next-label { font-size: 1rem; font-weight: 600; color: var(--gold-ink); }
.util-next h2 { margin-top: 0.5rem; max-width: 18ch; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.util-next-pitch { margin-top: 0.9rem; max-width: 40em; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
.util-perks { gap: 0.6rem; margin-top: 1.3rem; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.util-perks .perk { display: flex; gap: 0.6rem; align-items: flex-start; }
.util-perks .perk svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; fill: none; stroke: var(--gold-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.util-book { margin-top: 1.6rem; }
.util-book svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.util-book-note { margin-top: 0.8rem; font-size: 0.9375rem; color: var(--ink-3); }
.util-home { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; justify-self: start; font-weight: 560; color: var(--ink); text-decoration: none; }
.util-home .button-icon { width: 0.95rem; }
.util-home:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.util-prose a[href^="mailto:"], .util-prose a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
.util-links a { min-width: 44px; justify-content: center; }

/* ===== /pay: the client portal. The page script toggles .state.show and #portal-card.show and writes the invoice rows. ===== */
.util-pay { min-height: 78vh; }
.util-pay .display em { display: inline; }
.util-pay-grid { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-areas: "intro" "panel" "help"; }
.util-pay-intro { grid-area: intro; }
.util-pay-intro .hero-deck { margin-top: 1.2rem; max-width: 30em; }
.util-pay-panel { grid-area: panel; display: grid; gap: 1rem; min-width: 0; }
.util-pay-help { grid-area: help; display: grid; gap: 0.9rem; justify-items: start; align-content: start; }
.util-pay-help p { max-width: 30em; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.util-pay-help strong { font-weight: 600; color: var(--ink); }
.util-pay-help-link svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 960px) {
  .util-pay-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "intro panel" "help panel"; column-gap: clamp(3rem, 6vw, 6rem); row-gap: 2.5rem; align-items: start; }
  .util-pay-intro { padding-top: 0.5rem; }
}

/* The lookup */
.util-pay-card { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-2); }
.util-pay-label-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.util-pay-label { font-size: 1rem; font-weight: 600; color: var(--ink); }
.util-pay-hint { font-size: 0.9375rem; color: var(--ink-3); }
.util-pay-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; margin-top: 0.75rem; }
.util-pay-input input { min-width: 0; height: 52px; padding: 0 1rem; border: 1px solid #c8d2de; border-radius: var(--r-md); background: var(--paper); font: inherit; font-size: 1.0625rem; color: var(--ink); -webkit-appearance: none; appearance: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.util-pay-input input::placeholder { color: var(--ink-3); opacity: 1; }
.util-pay-input input:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 3px rgb(201 164 76 / 0.4); }
.util-pay-go { min-height: 52px; }
.util-pay-go:disabled { opacity: 0.55; cursor: progress; }
.util-pay-secure { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; font-size: 0.9375rem; color: var(--ink-3); }
.util-pay-secure svg { flex: none; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
@media (max-width: 420px) {
  .util-pay-input { grid-template-columns: minmax(0, 1fr); }
}

/* The states: hidden until the script shows 1 */
.util-pay .state { display: none; }
.util-pay .state.show { display: block; }
.util-pay-loading { display: grid; gap: 0.75rem; padding: 0.5rem 0.25rem; font-size: 1rem; color: var(--ink-2); }
.util-pay-bar { display: block; height: 3px; overflow: hidden; border-radius: 3px; background: var(--line-2); }
.util-pay-bar span { display: block; height: 100%; background: var(--gold); transform-origin: left center; transform: scaleX(0.9); }
@media (prefers-reduced-motion: no-preference) {
  /* Fills once in 4 seconds and holds: nothing keeps moving while a slow request finishes */
  .util-pay .state.show .util-pay-bar span { animation: util-pay-fill 4s var(--ease-out) both; }
}
@keyframes util-pay-fill { from { transform: scaleX(0.06); } to { transform: scaleX(0.9); } }

.util-pay-manage { display: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: clamp(1.25rem, 2.6vw, 1.75rem); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.util-pay-manage.show { display: flex; }
.util-pay-manage-copy { flex: 1 1 18rem; }
.util-pay-manage h2 { font-size: 1.375rem; font-weight: 560; letter-spacing: -0.02em; color: var(--ink); }
.util-pay-manage p { margin-top: 0.35rem; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.util-pay-count { margin-top: 1.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); font-size: 0.9375rem; font-weight: 560; color: var(--ink-3); }
.util-pay .inv-item { display: grid; gap: 0.7rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.util-pay .inv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.util-pay .inv-number { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.util-pay .inv-desc { margin-top: 0.2rem; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.util-pay .inv-amount { flex: none; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.util-pay .inv-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.util-pay .inv-due { font-size: 0.9375rem; color: var(--ink-3); }
.util-pay .inv-right { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; }
/* Status as a dot and a word, no pill */
.util-pay .status-badge { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9375rem; font-weight: 560; }
.util-pay .status-paid { color: var(--ok); }
.util-pay .status-open { color: var(--gold-ink); }
.util-pay .status-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.util-pay .pay-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1.1rem; border-radius: var(--r-md); background: var(--ink); color: #fff; font-size: 0.9375rem; font-weight: 580; text-decoration: none; transition: background-color 0.2s ease; }
.util-pay .pay-link:hover { background: #1a2b47; }
.util-pay .pay-link svg { width: 0.75rem; height: 0.55rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.util-pay .paid-note { font-size: 0.9375rem; color: var(--ink-3); }

.util-pay-msg { display: grid; justify-items: start; gap: 0.6rem; padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.util-pay-msg-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--paper-2); }
.util-pay-msg-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.util-pay-msg-icon.is-warn { background: rgb(163 50 42 / 0.08); }
.util-pay-msg-icon.is-warn svg { stroke: var(--danger); }
.util-pay-msg h3 { margin-top: 0.4rem; font-size: 1.375rem; font-weight: 560; letter-spacing: -0.02em; color: var(--ink); }
.util-pay-msg p { max-width: 34em; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.util-pay-mail { display: inline-flex; align-items: center; min-height: 44px; font-weight: 560; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(15 27 47 / 0.35); }

/* Footer bar: the logo and line, then the 3 links */
.util-pay-foot { padding: 1.25rem 0 1.5rem; }
.util-pay-foot .foot-bar { justify-content: space-between; margin-top: 0; padding-top: 0; border-top: 0; }
.util-pay-foot-brand { display: inline-flex; align-items: center; gap: 0.85rem; }
.util-pay-foot-logo { width: 64px; height: auto; }
.util-pay-foot-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
