/* CVO Atlas website styles. Ported from the approved homepage prototype (planning/prototype). */

@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/CormorantGaramond.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/CormorantGaramond-Italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0B1F33;
  --navy-2: #102A44;     /* interaction / layering tint of navy */
  --ivory: #F7F3E9;
  --paper: #FDFBF7;      /* warm white for content cards on ivory; tables, form fields and mock-ups stay pure white */
  --gold: #C9A96B;
  --blue: #7B8FA6;
  --gold-ink: #7a6338;   /* deeper gold for numerals on light backgrounds (4.5:1 on ivory) */
  --muted: #4a5b6e;      /* small print on light backgrounds (6.4:1 on ivory) */
  --error: #9b2c1f;
  --line-ivory: rgba(11, 31, 51, 0.16);
  --line-navy: rgba(247, 243, 233, 0.18);
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 75rem;
  --wide: 90rem;
  --pad: clamp(4rem, 9vw, 8rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 5.625rem;
}
@media (max-width: 26em) { :root { --header-h: 4.75rem; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--navy); font: 400 1.0625rem/1.65 var(--sans); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.section--navy :focus-visible, .hero :focus-visible, .page-head :focus-visible, .message :focus-visible, .statement :focus-visible, .site-footer :focus-visible { outline-color: var(--ivory); }
/* Light panels inside dark sections keep a navy focus ring (visible on ivory). */
.section--navy .chat :focus-visible, .section--navy .contact-card :focus-visible, .hero .inst :focus-visible { outline-color: var(--navy); }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; top: -10rem; left: 1rem; z-index: 200; background: var(--ivory); color: var(--navy); padding: .75rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.in-frame .cw, .in-frame .device, .in-frame .motion-toggle { display: none !important; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; text-wrap: balance; font-variant-numeric: lining-nums; }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.04; }
h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.15; font-weight: 500; }
h1 em, h2 em, h3 em, .statement em { font-style: italic; }
p { margin: 0; }
.eyebrow { font: 600 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.25rem; }
.eyebrow--gold { color: var(--gold); }
@media (max-width: 22.5em) { .eyebrow { letter-spacing: .1em; font-size: .6875rem; } }
.num, .price__num, .service__num, .stop__num { font-family: var(--serif); font-variant-numeric: lining-nums; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 2.25rem; }
.actions--center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .85rem 1.5rem; font: 500 .9375rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn--ivory { background: var(--ivory); color: var(--navy); }
.btn--ivory:hover { background: var(--gold); }
.btn--gold { background: transparent; color: inherit; border-color: var(--gold); }
.btn--gold:hover, .btn--gold[aria-current="page"] { background: var(--gold); color: var(--navy); }
.btn--line-light { color: var(--ivory); border-color: rgba(247, 243, 233, .6); }
.btn--line-light:hover { border-color: var(--ivory); background: rgba(247, 243, 233, .08); }
.btn--navy { background: var(--navy); color: var(--ivory); border-color: var(--gold); }
.btn--navy:hover { background: var(--navy-2); }
.btn--line-dark { color: var(--navy); border-color: var(--navy); }
.btn--line-dark:hover { background: rgba(11, 31, 51, .06); }
.text-link { display: inline-flex; gap: .5rem; margin-top: 1.5rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: .2rem; }
.text-link span { transition: transform .2s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; color: var(--ivory); background: transparent; transition: background-color .3s, color .3s, box-shadow .3s; }
.site-header__inner { max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { position: relative; display: block; }
.logo img { width: 220px; height: auto; }
.logo__light { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.logo__dark { transition: opacity .3s; }
.site-header.is-solid { background: rgba(247, 243, 233, .97); color: var(--navy); box-shadow: 0 1px 0 var(--line-ivory); }
.site-header.is-solid .logo__dark { opacity: 0; }
.site-header.is-solid .logo__light { opacity: 1; }
.site-header.is-solid :focus-visible { outline-color: var(--navy); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { text-decoration: none; font: 500 .9375rem/1 var(--sans); position: relative; padding: .5rem 0; white-space: nowrap; }
.site-nav .btn { white-space: nowrap; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .9rem; background: none; color: inherit; border: 1px solid currentColor; font: 500 .9rem/1 var(--sans); cursor: pointer; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { top: -6px; } .menu-toggle__icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100svh - var(--header-h)); overflow-y: auto; background: var(--navy); color: var(--ivory); padding: 1rem var(--gutter) 1.5rem; border-top: 1px solid var(--line-navy); }
.site-nav.is-open :focus-visible { outline-color: var(--ivory); }
.site-nav.is-open li { border-bottom: 1px solid var(--line-navy); }
.site-nav.is-open a:not(.btn) { display: block; padding: 1rem 0; font-size: 1.05rem; }
.site-nav.is-open .btn { margin-top: 1.25rem; width: 100%; color: var(--ivory); }
/* Seven links plus the button fit on one line from 72em (1152 px); below that, the menu button. */
@media (min-width: 72em) {
  .menu-toggle { display: none; }
  .js .site-nav, .site-nav { display: flex !important; align-items: center; gap: 2.25rem; position: static; background: none; padding: 0; border: 0; }
  .site-nav ul { display: flex; gap: 1.75rem; }
}
@media (max-width: 26em) { .logo img { width: 176px; } .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .menu-toggle { padding: 0; width: 2.75rem; justify-content: center; } }

/* HERO */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--ivory); margin-top: calc(-1 * var(--header-h)); padding: 8.5rem 0 5rem; min-height: min(100svh, 62rem); display: flex; align-items: center; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60rem 40rem at 78% 30%, rgba(123, 143, 166, .16), transparent 70%); }
.hero__star { position: absolute; z-index: -1; width: min(78vw, 64rem); right: -16%; top: 50%; translate: 0 -50%; animation: turn 180s linear infinite; }
@keyframes turn { to { rotate: 360deg; } }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__lines path, .hero__lines line, .page-head__lines path, .page-head__lines line { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .5; }
.hero__lines .ticks circle { fill: var(--gold); opacity: .8; }
.js .hero__lines .draw, .js .page-head__lines .draw { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 2.4s var(--ease) .2s forwards; }
.js .draw--2 { animation-delay: .6s !important; } .js .draw--4 { animation-delay: 1s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__inner { display: grid; gap: 3rem; align-items: center; max-width: calc(var(--wide) + 2 * var(--gutter)); }
@media (min-width: 64em) { .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.hero__title { font-size: clamp(2.9rem, 8.2vw, 6.6rem); line-height: .96; letter-spacing: -0.02em; font-weight: 400; max-width: 11ch; }
.hero__title em { color: var(--gold); }
.hero__lede { margin-top: 1.75rem; max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(247, 243, 233, .88); }
.hero__price { margin-top: 1.75rem; font-size: .9375rem; color: rgba(247, 243, 233, .8); }
.hero__price .num { font-size: 1.35rem; color: var(--ivory); }

/* Pause / play for ongoing motion (shown only when motion is allowed) */
.motion-toggle { position: absolute; left: var(--gutter); bottom: 1.25rem; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 .85rem; background: rgba(11, 31, 51, .6); color: var(--ivory); border: 1px solid var(--line-navy); font: 500 .8125rem/1 var(--sans); cursor: pointer; }
.motion-toggle:hover { border-color: var(--gold); }
.motion-toggle__icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-toggle[data-state="paused"] .motion-toggle__icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.motion-paused .hero__star, .motion-paused .pin, .motion-paused .typing i { animation-play-state: paused !important; }
.motion-paused .browser { transition: none; }

/* Instruments */
.instruments { position: relative; display: grid; gap: 1rem; }
.inst { margin: 0; background: rgba(247, 243, 233, .04); border: 1px solid var(--line-navy); padding: 1rem; }
.inst figcaption { margin-top: .85rem; font-size: .8125rem; color: rgba(247, 243, 233, .82); display: flex; gap: .6rem; align-items: baseline; }
.inst__n { font-family: var(--serif); color: var(--gold); font-size: 1rem; }
.js .inst { opacity: 0; transform: translateY(18px); animation: settle .9s var(--ease) forwards; }
.js .inst--site { animation-delay: .5s; } .js .inst--chat { animation-delay: .75s; } .js .inst--search { animation-delay: 1s; }
@keyframes settle { to { opacity: 1; transform: none; } }
@media (min-width: 64em) {
  .instruments { display: block; height: 38rem; }
  .browser--layers { height: 15.5rem; }
  .inst { position: absolute; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); background: rgba(16, 42, 68, .92); }
  .inst--site { top: 0; left: 0; width: 68%; z-index: 1; }
  .inst--chat { right: 0; top: 24%; width: 40%; z-index: 3; }
  .inst--search { left: 14%; bottom: 0; width: 44%; z-index: 2; }
  .browser { height: 15.5rem; }
}
/* Below desktop: only the website demo, so the hero doesn't repeat what the next sections show. */
@media (max-width: 63.99em) {
  .inst--chat, .inst--search { display: none; }
  .instruments { max-width: 34rem; }
  .hero__lines { display: none; }
  .hero__star { width: 34rem; right: -14rem; top: 72%; opacity: .7; }
  .hero { padding-bottom: 5.5rem; }
}

/* Browser instrument: a mini site that switches between desktop and phone widths */
.browser { background: var(--ivory); color: var(--navy); overflow: hidden; margin-inline: auto; width: 100%; transition: width 1.1s var(--ease); container-type: inline-size; }
.browser.is-phone { width: 42%; min-width: 9.5rem; }
/* Hero demo: fixed-size frame with a desktop layer and a phone layer (no layout shift). */
.browser--layers { position: relative; height: 15.5rem; background: transparent; overflow: visible; container-type: normal; transition: none; }
.browser--layers.is-phone { width: 100%; }
.browser__layer { position: absolute; top: 0; bottom: 0; overflow: hidden; background: var(--ivory); container-type: inline-size; }
.browser__layer--desk { left: 0; right: 0; clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease), opacity .35s .1s; }
.browser__layer--phone { left: 50%; width: max(42%, 9.5rem); transform: translateX(-50%); opacity: 0; transition: opacity .35s; }
.browser--layers.is-phone .browser__layer--desk { clip-path: inset(0 calc(50% - max(21%, 4.75rem))); opacity: 0; transition: clip-path 1.1s var(--ease), opacity .35s .8s; }
.browser--layers.is-phone .browser__layer--phone { opacity: 1; transition: opacity .45s .75s; }
.browser__bar { display: flex; align-items: center; gap: 5px; padding: 7px 9px; background: #e9e3d4; font: 500 10px var(--sans); white-space: nowrap; overflow: hidden; }
.browser__bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(11, 31, 51, .25); flex: none; }
.browser__bar b { margin-left: 8px; font-weight: 500; background: var(--ivory); padding: 2px 10px; flex: 1; opacity: .7; overflow: hidden; text-overflow: ellipsis; }
.mini { padding: 10px 12px 14px; }
.mini i { display: block; background: rgba(11, 31, 51, .14); height: 6px; }
.mini__nav { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.mini__nav i { width: 22px; }
.mini__nav .mini__logo { width: 34px; height: 8px; background: var(--navy); margin-right: auto; }
.mini__nav .mini__btn { width: 30px; height: 12px; background: var(--gold); }
.mini__hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: center; }
.mini__text b { display: block; font: 500 20px/1 var(--serif); margin-bottom: 8px; }
.mini__text i { margin-bottom: 6px; } .mini__text .short { width: 60%; }
.mini__text .mini__cta { width: 52px; height: 14px; background: var(--navy); margin-top: 10px; }
.mini__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mini__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mini__cards i { height: 34px; background: rgba(11, 31, 51, .07); border: 1px solid rgba(11, 31, 51, .12); }
@container (max-width: 15rem) {
  .mini__nav i:not(.mini__logo) { display: none; }
  .mini__hero { grid-template-columns: 1fr; }
  .mini__img { order: -1; aspect-ratio: 16 / 9; }
  .mini__cards { grid-template-columns: 1fr; }
  .mini__cards i { height: 18px; }
}

/* Chat instrument */
.chatmini { background: var(--ivory); color: var(--navy); }
.chatmini__head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font: 600 12px var(--sans); border-bottom: 1px solid var(--line-ivory); }
.chatmini__head img { width: 20px; }
.chatmini__body { padding: 10px; display: grid; gap: 8px; min-height: 7.5rem; align-content: start; }
.b { font-size: 12.5px; line-height: 1.4; padding: 7px 10px; max-width: 88%; }
.b--user { justify-self: end; background: var(--navy); color: var(--ivory); }
.b--bot { background: #fff; border: 1px solid var(--line-ivory); }
.js .chatmini .b { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.js .chatmini .b.is-in { opacity: 1; transform: none; }
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; background: #fff; border: 1px solid var(--line-ivory); width: max-content; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* Search result instrument (no ratings or rankings shown) */
.result { display: grid; grid-template-columns: 6.5rem 1fr; background: var(--ivory); color: var(--navy); }
.result__map { position: relative; overflow: hidden; background:
  linear-gradient(90deg, rgba(123, 143, 166, .25) 1px, transparent 1px) 0 0 / 18px 18px,
  linear-gradient(rgba(123, 143, 166, .25) 1px, transparent 1px) 0 0 / 18px 18px, #e6e4dc; }
.result__map::before { content: ""; position: absolute; left: -10%; right: -10%; top: 58%; height: 6px; background: #fff; rotate: -14deg; }
.pin { position: absolute; left: 50%; top: 44%; width: 18px; height: 18px; translate: -50% -50%; background: var(--navy); border-radius: 50% 50% 50% 0; rotate: -45deg; box-shadow: 0 0 0 4px rgba(201, 169, 107, .45); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(201, 169, 107, 0); } }
.result__body { padding: 10px 12px; display: grid; gap: 2px; font-size: 12px; }
.result__body b { font: 600 15px/1.2 var(--sans); }
.result__body .open { color: #2b5f3f; font-weight: 600; }
.result__btns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.result__btns i { font-style: normal; font-size: 11px; border: 1px solid rgba(11, 31, 51, .3); padding: 3px 8px; border-radius: 999px; }

/* Sections */
.section { position: relative; padding-block: var(--pad); overflow: hidden; }
.section--navy { background: var(--navy); color: var(--ivory); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.split { display: grid; gap: 1.5rem; }
@media (min-width: 56em) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.split__body p + p { margin-top: 1rem; }
.split__body p:last-child { font-weight: 600; }
.watermark { position: absolute; width: min(70vw, 48rem); height: auto; pointer-events: none; }
.watermark--right { right: -18%; top: -10%; }
.watermark--left { left: -20%; bottom: -25%; opacity: .9; }

/* Moments */
.moments { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: grid; gap: 1rem 1.5rem; }
@media (min-width: 48em) { .moments { grid-template-columns: repeat(3, 1fr); } }
.moment { border-top: 1px solid var(--gold); padding-top: 1.5rem; }
.moment svg { width: 44px; height: 44px; fill: none; stroke: var(--navy); stroke-width: 1.25; margin-bottom: 1rem; }
.moment h3 { margin-bottom: .4rem; }
.moment p { color: rgba(11, 31, 51, .82); }
@media (max-width: 47.99em) {
  .moment { display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 1rem; padding-top: 1.1rem; }
  .moment svg { grid-row: span 2; width: 36px; height: 36px; margin: 0; }
}

/* Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; position: relative; }
@media (min-width: 40em) and (max-width: 59.99em) { .services { grid-template-columns: 1fr 1fr; } .service:last-child { grid-column: 1 / -1; } }
@media (min-width: 60em) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { position: relative; background: var(--paper); border: 1px solid var(--line-ivory); display: flex; flex-direction: column; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s; }
.service:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 24px 50px -32px rgba(11, 31, 51, .5); }
.service:focus-within { outline: 2px solid var(--navy); outline-offset: 4px; }
.service__art { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line-ivory); }
.service__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service__img { transform: scale(1.06); }
.service__body { padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.service__num { font-size: 2.6rem; line-height: 1; color: var(--gold-ink); }
.service h3 a { text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; }
.service h3 a:focus-visible { outline: none; }
.service h3 em { display: block; }
.service p { color: rgba(11, 31, 51, .82); font-size: 1rem; }
.service__more { margin-top: auto; font-weight: 600; font-size: .9375rem; border-bottom: 1px solid var(--gold); align-self: flex-start; padding-bottom: .15rem; transition: padding-right .25s var(--ease); }
.service:hover .service__more { padding-right: .4rem; }

/* Statement band */
.statement { position: relative; background: var(--navy); color: var(--ivory); text-align: center; padding: clamp(5rem, 11vw, 9rem) var(--gutter); overflow: hidden; }
.statement::before, .statement::after { content: ""; position: absolute; left: 50%; width: 1px; height: clamp(2rem, 5vw, 3.5rem); background: var(--gold); opacity: .6; }
.statement::before { top: 0; } .statement::after { bottom: 0; }
.statement__star { width: 64px; margin: 0 auto 2rem; }
.statement__text { font-family: var(--serif); font-size: clamp(3rem, 11vw, 8.5rem); line-height: .95; letter-spacing: -0.02em; }
.statement__text em { color: var(--gold); }
.statement__sub { margin-top: 1.5rem; color: rgba(247, 243, 233, .82); font-size: 1.0625rem; }

/* Assistant */
.section--assistant { border-top: 1px solid var(--line-navy); }
.assistant { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60em) { .assistant { grid-template-columns: 1fr 1.05fr; gap: 5rem; } }
.assistant__copy > p { margin-top: 1.25rem; color: rgba(247, 243, 233, .86); max-width: 32rem; }
.demo-note { margin-top: 2rem; padding: 1rem 1.25rem; border-left: 2px solid var(--gold); background: rgba(247, 243, 233, .05); font-size: .9375rem; color: rgba(247, 243, 233, .9); max-width: 32rem; }
.chat { background: var(--ivory); color: var(--navy); display: flex; flex-direction: column; min-height: 33rem; max-height: 40rem; min-width: 0; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.chat__head { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line-ivory); }
.chat__head img { width: 36px; }
.chat__head b { display: block; font-weight: 600; }
.chat__head span { font-size: .8125rem; color: var(--muted); }
.chat__log { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .85rem; }
.chat__log:focus-visible { outline-offset: -3px; }
.msg { max-width: 86%; font-size: .9688rem; line-height: 1.5; }
.msg p { padding: .75rem 1rem; }
.msg--user { align-self: flex-end; }
.msg--user p { background: var(--navy); color: var(--ivory); }
.msg--bot p { background: #fff; border: 1px solid var(--line-ivory); }
.msg__tag { display: block; margin-top: .3rem; font-size: .75rem; color: var(--muted); }
.msg__link { margin-top: .5rem; min-height: 2.75rem; padding: .6rem 1rem; }
.js .msg { animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.chat__chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.25rem 1rem; }
.chip { min-height: 2.75rem; padding: .45rem .9rem; border: 1px solid rgba(11, 31, 51, .35); background: transparent; color: var(--navy); font: 500 .875rem/1.3 var(--sans); cursor: pointer; text-align: left; transition: background .18s, border-color .18s; }
.chip:hover { background: rgba(201, 169, 107, .18); border-color: var(--gold); }
.chat__form { display: flex; border-top: 1px solid var(--line-ivory); }
.chat__form input { flex: 1; min-width: 0; min-height: 3.25rem; border: 0; background: #fff; padding: 0 1.25rem; font: 400 1rem var(--sans); color: var(--navy); }
.chat__form input:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.chat__send { width: 3.5rem; border: 0; background: var(--navy); color: var(--ivory); cursor: pointer; }
.section--navy .chat .chat__send:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: inset 0 0 0 2px var(--gold); }
.chat__send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; margin: auto; }
.chat__privacy { padding: .75rem 1.25rem 1rem; font-size: .75rem; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--line-ivory); }
@media (max-width: 30em) { .chat { min-height: 30rem; max-height: none; } .chat__log { min-height: 11rem; max-height: 22rem; } .chat__log, .chat__head { padding-inline: 1rem; } .chat__chips { padding-inline: 1rem; } .msg { max-width: 94%; } }

/* Craft: live demo */
.craft { display: grid; gap: 3rem; align-items: center; }
.craft > * { min-width: 0; }
@media (min-width: 60em) { .craft { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; } }
.craft__copy > p { margin-top: 1.25rem; max-width: 30rem; }
.metrics { margin: 2rem 0 0; display: grid; border-top: 1px solid var(--line-ivory); }
.metrics div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line-ivory); }
.metrics dt { font-size: .9375rem; }
.metrics dd { margin: 0; font: 400 1.75rem/1 var(--serif); font-variant-numeric: lining-nums; white-space: nowrap; }
.metrics__note { margin-top: .75rem; font-size: .8125rem; color: var(--muted); }
.device__switch { display: inline-flex; border: 1px solid var(--navy); margin-bottom: 1.25rem; max-width: 100%; }
.seg { min-height: 2.75rem; padding: 0 1.1rem; background: none; border: 0; color: var(--navy); font: 500 .875rem var(--sans); cursor: pointer; }
.seg + .seg { border-left: 1px solid var(--navy); }
.seg[aria-pressed="true"] { background: var(--navy); color: var(--ivory); }
.seg:focus-visible { outline-offset: 2px; }
.device__stage { display: grid; place-items: center; min-height: 35rem; background:
  linear-gradient(90deg, var(--line-ivory) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(var(--line-ivory) 1px, transparent 1px) 0 0 / 40px 40px; border: 1px solid var(--line-ivory); padding: 1.5rem; overflow: hidden; }
/* Each size scales with the space available (so it never clips at 320 px), stays visibly different
   from the others, and both width and height animate when the visitor switches. */
.device__stage { container-type: inline-size; }
.device__frame { position: relative; background: var(--navy); padding: 10px; border-radius: 26px; transition: width .45s var(--ease), height .45s var(--ease), border-radius .45s; box-shadow: 0 30px 60px -30px rgba(11, 31, 51, .6); overflow: hidden; }
.device__frame[data-size="phone"] { width: min(250px, 60cqi); height: min(500px, 120cqi); }
.device__frame[data-size="tablet"] { width: min(360px, 82cqi); height: min(480px, 109cqi); border-radius: 18px; }
.device__frame[data-size="desktop"] { width: min(560px, 100cqi); height: min(360px, 64cqi); border-radius: 8px; }
.device__frame iframe { border: 0; background: var(--ivory); transform-origin: 0 0; display: block; }
.device__placeholder { position: absolute; inset: 10px; background: var(--ivory); display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 1rem; border-radius: 16px; }
.device__frame[data-size="desktop"] .device__placeholder { border-radius: 2px; }
.device__placeholder img { width: 48px; }
.device__placeholder p { font-size: .9375rem; }
/* Small screens: the stage is always tall enough for the tallest (phone) size, so switching never moves the page. */
@media (max-width: 30em) { .device__stage { padding: .75rem; min-height: 0; aspect-ratio: 1 / 1.25; } .seg { padding: 0 .8rem; } }

/* How it works */
.artband { margin: 0; }
.artband img { width: 100%; height: auto; max-height: 32rem; object-fit: cover; object-position: 50% 45%; }
.route { position: relative; list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; }
.route__line { display: none; }
@media (min-width: 56em) {
  .route { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .route__line { display: block; position: absolute; left: 0; top: 15px; width: 88%; height: 40px; overflow: visible; }
  .route__line path { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
}
.stop { position: relative; padding: 1.75rem 1.25rem 0 0; }
.stop__dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--gold); margin-bottom: 1.25rem; }
.stop__num { display: block; color: var(--gold-ink); font-size: 1.1rem; }
.stop h3 { margin: .2rem 0 .5rem; font-size: 1.75rem; }
.stop p { color: rgba(11, 31, 51, .82); font-size: 1rem; }

/* Pricing */
.section--pricing { background: radial-gradient(50rem 30rem at 50% 0%, rgba(123, 143, 166, .14), transparent 70%), var(--navy); }
.price { position: relative; max-width: 62rem; margin-inline: auto; border: 1px solid rgba(201, 169, 107, .55); padding: clamp(1.5rem, 5vw, 4rem); }
.price::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(201, 169, 107, .18); pointer-events: none; }
.price__figures { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2.5rem; text-align: center; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-navy); }
.price__num { display: block; font-size: clamp(3.25rem, 8vw, 6rem); line-height: 1; color: var(--ivory); }
.price__label { display: block; margin-top: .5rem; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.price__plus { font: 300 3rem/1 var(--serif); color: var(--gold); }
.price__lists { display: grid; gap: 2rem; padding-top: 2.5rem; }
@media (min-width: 48em) { .price__lists { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.price__lists h3 { margin-bottom: 1rem; }
.stars { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.stars li { position: relative; padding-left: 1.75rem; color: rgba(247, 243, 233, .9); }
.stars li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; background: url("/assets/core/marks-watermarks/star-gold_240w.png") center / contain no-repeat; }
.stars--dark li { color: var(--navy); }
@media (max-width: 36em) { .price__figures { flex-direction: column; gap: .5rem; } }

/* Open owner decisions, visible only while the site is in review */
.pending { margin-top: 1.5rem; padding: .75rem 1rem; border-left: 2px solid var(--gold); background: rgba(201, 169, 107, .12); font-size: .875rem; color: inherit; }
.section--navy .pending { color: rgba(247, 243, 233, .9); text-align: left; }

/* Scope */
.scope { display: grid; gap: 1.25rem; }
@media (min-width: 48em) { .scope { grid-template-columns: 1fr 1fr; } }
.scope__col { padding: clamp(1.5rem, 4vw, 2rem); border: 1px solid var(--line-ivory); background: var(--paper); }
.scope__col--no { background: transparent; }
.scope__col h3 { margin-bottom: 1.25rem; }
.scope__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.scope__col li { position: relative; padding-left: 2rem; }
.scope__col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 7px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); rotate: -45deg; }
.scope__col--no li::before { width: 14px; height: 2px; border: 0; background: var(--navy); rotate: 0deg; top: .75em; }
.scope__close { margin-top: 2rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-style: italic; }

/* About */
.about { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60em) { .about { grid-template-columns: 1.2fr 1fr; gap: 4.5rem; } }
.about__art { margin: 0; position: relative; padding: 12px; border: 1px solid var(--gold); }
.about__art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.about__copy p { margin-top: 1.25rem; }

/* FAQ */
.faq__list { border-top: 1px solid var(--navy); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line-ivory); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font: 500 clamp(1.25rem, 2vw, 1.5rem)/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--navy), var(--navy)) center / 100% 1.5px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 1.5px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 1.5rem; max-width: 44rem; }
.faq__a .text-link { margin-top: .75rem; }

/* Final CTA */
.final { position: relative; display: grid; place-items: center; padding: clamp(5rem, 12vw, 10rem) var(--gutter); overflow: hidden; background: var(--ivory); border-top: 1px solid var(--line-ivory); }
.final__art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.final__panel { position: relative; text-align: center; max-width: 40rem; background: rgba(247, 243, 233, .94); padding: clamp(2rem, 5vw, 3.5rem); }
.final__panel img { width: 48px; margin: 0 auto 1.25rem; }
.final__panel p { margin-top: 1rem; }

/* Inner pages: text with optional artwork */
.section__lede { margin-top: 1.25rem; max-width: 40rem; font-size: 1.125rem; color: rgba(11, 31, 51, .86); }
.section__lede p + p { margin-top: .5rem; }
.isplit { display: grid; gap: 2.5rem; align-items: center; }
.isplit > * { min-width: 0; }
.isplit__copy { max-width: 42rem; }
@media (min-width: 60em) { .isplit--art { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.isplit__body { margin-top: 1.5rem; }
.isplit__body p + p { margin-top: 1rem; }
.isplit .stars { margin-top: 1.75rem; }
.split-art { margin: 0; }
.split-art img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.split-art--framed { padding: 12px; border: 1px solid var(--gold); }
.split-art--framed img { aspect-ratio: 4 / 3; }
.isplit--callout { border: 1px solid var(--gold); background: var(--paper); padding: clamp(1.75rem, 4vw, 3rem); max-width: calc(var(--max) - 0px); }
@media (min-width: 60em) { .isplit--callout { grid-template-columns: 1.3fr 1fr; } }
.isplit--callout .isplit__aside img { width: min(100%, 16rem); height: auto; margin-inline: auto; }
.link-row { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.section--ivory + .section--ivory { border-top: 1px solid var(--line-ivory); }

/* Cards (static) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .cards--2, .cards--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60em) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line-ivory); border-top: 2px solid var(--gold); padding: clamp(1.5rem, 3vw, 2rem); }
.card h3 { margin-bottom: .6rem; }
.card p { color: rgba(11, 31, 51, .84); font-size: 1rem; }

/* Steps on inner pages: same route as the homepage */
@media (min-width: 56em) { .route--3 { grid-template-columns: repeat(3, 1fr); } .route--5 { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; } .route--5 .route__line { width: 92%; } }
.section--how .section__head { margin-bottom: 0; }
.steps__note { margin-top: 2.5rem; max-width: 44rem; padding-left: 1rem; border-left: 2px solid var(--gold); font-size: .9375rem; color: rgba(11, 31, 51, .84); }

/* Website Design: responsive demo, changed by the visitor */
.demo { display: grid; gap: 3rem; align-items: center; }
.demo > * { min-width: 0; }
@media (min-width: 60em) { .demo { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; } }
.demo__body { margin-top: 1.5rem; color: rgba(247, 243, 233, .88); max-width: 32rem; }
.demo__body p + p { margin-top: 1rem; }
.device__switch--light { margin-top: 2rem; margin-bottom: 0; border-color: rgba(247, 243, 233, .6); }
.device__switch--light .seg { color: var(--ivory); }
.device__switch--light .seg + .seg { border-left-color: rgba(247, 243, 233, .6); }
.device__switch--light .seg[aria-pressed="true"] { background: var(--ivory); color: var(--navy); }
.demo__stage { display: grid; place-items: center; min-height: 22rem; padding: 1.5rem; border: 1px solid var(--line-navy);
  background: linear-gradient(90deg, var(--line-navy) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(var(--line-navy) 1px, transparent 1px) 0 0 / 40px 40px; }
.browser--demo { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); max-width: 34rem; height: 17rem; transition: width .45s var(--ease); }
.browser--demo[data-size="tablet"] { width: 66%; }
.browser--demo[data-size="phone"] { width: 40%; min-width: 9.5rem; }
@media (max-width: 30em) { .demo__stage { padding: .75rem; min-height: 18rem; } }
@container (min-width: 15.01rem) and (max-width: 22rem) {
  .mini__nav i:not(.mini__logo):not(.mini__btn) { display: none; }
  .mini__cards { grid-template-columns: 1fr 1fr; }
  .mini__cards i:last-child { grid-column: 1 / -1; }
}

/* Branding packages */
.section--branding { background: linear-gradient(var(--ivory), var(--paper) 70%); }
.pkgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 60em) { .pkgs { grid-template-columns: repeat(3, 1fr); } }
.pkg { background: var(--paper); border: 1px solid var(--line-ivory); padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .85rem; }
.pkg--included { background: var(--ivory); }
.pkg h3 { font-size: clamp(1.6rem, 2.2vw, 1.9rem); }
@media (min-width: 60em) { .pkg h3 { min-height: 2.3em; } }
.pkg__price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; border-bottom: 1px solid var(--line-ivory); padding-bottom: .85rem; }
.pkg__price .num { font-size: 2.4rem; line-height: 1; color: var(--navy); }
.pkg__price > span:last-child { font-size: .875rem; color: var(--muted); }
.pkg__summary { font-size: 1rem; color: rgba(11, 31, 51, .86); }
.pkg__details summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding: .5rem 0; font-weight: 600; border-top: 1px solid var(--line-ivory); list-style: none; }
.pkg__details summary::-webkit-details-marker { display: none; }
.pkg__details summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--navy), var(--navy)) center / 100% 1.5px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 1.5px 100% no-repeat; transition: transform .3s var(--ease); }
.pkg__details[open] summary::after { transform: rotate(45deg); }
.pkg__count { font-weight: 400; color: var(--muted); margin-right: auto; }
.pkg__list { padding-top: .5rem; font-size: .9375rem; }
.pkg__list h4 { font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 1.25rem 0 .6rem; }
.pkg__list h4:first-child { margin-top: .25rem; }
.pkg__no { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pkg__no li { position: relative; padding-left: 1.5rem; color: rgba(11, 31, 51, .84); }
.pkg__no li::before { content: ""; position: absolute; left: 0; top: .75em; width: 12px; height: 2px; background: var(--navy); }
.pkgs__foot { margin-top: 2rem; font-size: .9375rem; color: var(--muted); }

/* Pricing page: branding summary */
.bsum { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid var(--navy); max-width: 56rem; }
.bsum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line-ivory); }
.bsum__row p { margin-top: .3rem; color: rgba(11, 31, 51, .84); font-size: 1rem; }
.bsum__row .bsum__price { margin: 0; font-size: 2rem; line-height: 1; white-space: nowrap; color: var(--navy); }
@media (max-width: 30em) { .bsum__row { flex-direction: column; gap: .5rem; } }
.price__addon { margin-top: 2rem; text-align: center; color: rgba(247, 243, 233, .9); }
.price__addon a { color: var(--ivory); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: .25em; white-space: nowrap; }

/* Google SEO: illustrated search result (static) */
.serp { margin: 0; }
.serp__card { position: relative; background: #fff; border: 1px solid var(--line-ivory); padding: clamp(1.25rem, 4vw, 2rem); box-shadow: 0 24px 50px -32px rgba(11, 31, 51, .45); font-family: Arial, var(--sans); }
.serp__card p { position: relative; padding-right: 2rem; }
.serp__site { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: #202124; }
.serp__site b { font-weight: 500; }
.serp__url { display: block; color: #4d5156; font-size: .8125rem; }
.serp__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ivory) url("/assets/core/marks-watermarks/star-gold_240w.png") center / 18px no-repeat; border: 1px solid var(--line-ivory); }
.serp__title { margin-top: .6rem; font-size: 1.25rem; line-height: 1.3; color: #1a0dab; }
.serp__desc { margin-top: .35rem; font-size: .9375rem; line-height: 1.55; color: #474747; }
.serp__key { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--navy); color: var(--ivory); font: 600 .75rem/1 var(--sans); }
.serp__card .serp__key { position: absolute; right: 0; top: 0; }
.serp__labels { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9375rem; }
.serp__labels li { display: inline-flex; align-items: center; gap: .5rem; }
.serp figcaption { margin-top: .75rem; font-size: .8125rem; color: var(--muted); }

/* Branding & Identity: example identity board (CVO Atlas's own brand; static) */
.idb { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 60em) { .idb { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(11rem, auto); } }
.idb__tile { position: relative; margin: 0; padding: 1.25rem 1.25rem 2.5rem; background: #fff; border: 1px solid var(--line-ivory); display: grid; place-items: center; min-width: 0; }
.idb__label { position: absolute; left: 1.25rem; bottom: .9rem; font: 600 .6875rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.idb__logo img { width: min(100%, 15rem); height: auto; }
.idb__logo--dark { background: var(--navy); border-color: var(--navy); }
.idb__logo--dark .idb__label { color: rgba(247, 243, 233, .78); }
.idb__mark img { width: 6.5rem; height: auto; }
.idb__palette { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; place-items: stretch; align-content: center; }
@media (min-width: 60em) {
  .idb:not(.idb--compact) { grid-template-areas: "logo logo dark mark" "palette palette type type" "card card letter social"; }
  .idb:not(.idb--compact) > .idb__logo { grid-area: logo; } .idb:not(.idb--compact) > .idb__logo--dark { grid-area: dark; }
  .idb:not(.idb--compact) > .idb__mark { grid-area: mark; } .idb:not(.idb--compact) > .idb__palette { grid-area: palette; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .idb:not(.idb--compact) > .idb__type { grid-area: type; } .idb:not(.idb--compact) > .idb__card { grid-area: card; }
  .idb:not(.idb--compact) > .idb__letter { grid-area: letter; } .idb:not(.idb--compact) > .idb__social { grid-area: social; }
  .idb:not(.idb--compact) > .idb__card .bcard { max-width: 15rem; justify-self: center; }
}
.swatch { display: grid; gap: .15rem; font-size: .75rem; min-width: 0; }
.swatch__chip { display: block; height: 3rem; border: 1px solid var(--line-ivory); }
.swatch--0 .swatch__chip { background: #0B1F33; } .swatch--1 .swatch__chip { background: #F7F3E9; }
.swatch--2 .swatch__chip { background: #C9A96B; } .swatch--3 .swatch__chip { background: #7B8FA6; }
.swatch__name { font-weight: 600; margin-top: .35rem; }
.swatch__val { color: var(--muted); font-variant-numeric: tabular-nums; }
.idb__type { grid-template-columns: auto 1fr; gap: 1.5rem; justify-items: start; }
.idb__specimen { font: 400 clamp(4rem, 8vw, 6rem)/1 var(--serif); color: var(--navy); }
.idb__fonts { font: 400 1.5rem/1.35 var(--serif); }
.idb__fonts span { font: 400 .8125rem/1.5 var(--sans); color: var(--muted); }
.idb__fonts .idb__inter { font: 600 1.15rem/1.35 var(--sans); color: var(--navy); }
.idb__card { grid-template-columns: 1fr 1fr; gap: .75rem; background: var(--ivory); }
.bcard { aspect-ratio: 85 / 55; width: 100%; padding: .45rem .6rem; display: grid; align-content: center; gap: .2rem; box-shadow: 0 12px 24px -16px rgba(11, 31, 51, .6); font-size: .5625rem; line-height: 1.35; min-width: 0; overflow: hidden; }
.bcard--front { background: var(--navy); color: var(--ivory); justify-items: center; text-align: center; }
.bcard--front img { width: 1.2rem; height: auto; }
.bcard--front b { font: 500 .8125rem/1 var(--serif); letter-spacing: .12em; }
.bcard--front span { font: italic .6875rem var(--serif); color: var(--gold); }
.bcard--back { position: relative; background: #fff; color: var(--navy); }
.bcard--back b { font: 600 .625rem/1.2 var(--sans); }
.bcard--back i { position: absolute; left: .7rem; right: .7rem; bottom: .55rem; height: 1px; background: var(--gold); }
.idb__letter, .idb__social { background: var(--ivory); }
.letter { width: 62%; aspect-ratio: 210 / 297; background: #fff; padding: .7rem .65rem; display: grid; align-content: start; gap: .35rem; box-shadow: 0 12px 24px -16px rgba(11, 31, 51, .6); position: relative; }
.letter img { width: 70%; height: auto; margin-bottom: .4rem; }
.letter i { display: block; height: 3px; background: rgba(11, 31, 51, .14); }
.letter i.short { width: 60%; }
.letter__rule { position: absolute; left: .65rem; right: .65rem; bottom: .6rem; height: 1px; background: var(--gold); }
.social { width: 80%; background: #fff; box-shadow: 0 12px 24px -16px rgba(11, 31, 51, .6); padding-bottom: .6rem; display: grid; gap: .3rem; }
.social__cover { display: block; height: 3rem; background: linear-gradient(120deg, var(--navy) 55%, #102A44); border-bottom: 2px solid var(--gold); }
.social__avatar { width: 2.6rem; height: 2.6rem; margin: -1.4rem 0 0 .6rem; border-radius: 50%; background: var(--navy); border: 2px solid #fff; display: grid; place-items: center; }
.social__avatar img { width: 1.5rem; height: auto; }
.social i { display: block; height: 4px; margin: 0 .6rem; background: rgba(11, 31, 51, .14); }
.social i.short { width: 45%; }
.idb-figure, .hb__board { margin: 0; }
.idb-figure figcaption, .hb__board figcaption { margin-top: 1rem; font-size: .8125rem; color: var(--muted); }
.idb--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
.idb--compact .idb__tile { min-height: 9.5rem; }
.idb--compact .idb__palette { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.idb--compact .idb__type { grid-template-columns: auto 1fr; gap: 1rem; }
.idb--compact .idb__specimen { font-size: 3.5rem; }
.idb--compact .idb__fonts { font-size: 1.15rem; }
.idb--compact .idb__mark img { width: 4.5rem; }
@media (max-width: 30em) {
  .idb { grid-template-columns: 1fr; } .idb__palette, .idb--compact .idb__palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Homepage: keep the example short on phones. */
  .idb--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idb--compact .idb__mark { display: none; }
  .idb--compact .idb__card { grid-column: 1 / -1; }
  .idb--compact .idb__tile { min-height: 8rem; padding: 1rem 1rem 2.25rem; }
  .idb--compact .idb__label { left: 1rem; }
  .idb--compact .idb__type { grid-template-columns: 1fr; gap: .25rem; }
  .idb--compact .idb__specimen { font-size: 2.75rem; }
  .idb--compact .idb__fonts { font-size: 1rem; }
}

/* Homepage: Branding & Identity */
.section--home-branding { border-top: 1px solid var(--line-ivory); }
.hb { display: grid; gap: 3rem; align-items: center; }
.hb > * { min-width: 0; }
@media (min-width: 60em) { .hb { grid-template-columns: 1fr 1.05fr; gap: 4.5rem; } }
.hb__pkgs { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--navy); }
.hb__pkg a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-ivory); text-decoration: none; }
.hb__pkg a:hover .hb__name { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .2em; }
.hb__name { font: 500 1.5rem/1.2 var(--serif); }
.hb__price { grid-row: span 2; align-self: center; text-align: right; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.hb__price .num { display: block; font-size: 1.9rem; line-height: 1; color: var(--navy); }
.hb__sum { font-size: .9375rem; color: rgba(11, 31, 51, .84); }
.hb__note { margin-top: 1.25rem; font-size: .9375rem; color: rgba(11, 31, 51, .84); }

/* Branding page */
.page-head--brand { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.brand-hero { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 60em) { .brand-hero { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.page-head--brand .page-head__title { max-width: 14ch; }
.page-head--brand .page-head__lede { max-width: 40rem; }
.brand-hero__prices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-navy); }
.brand-hero__prices a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .1rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-navy); text-decoration: none; }
.brand-hero__prices a > span { font: 500 1.35rem/1.2 var(--serif); }
.brand-hero__prices b { font-size: 2rem; font-weight: 400; line-height: 1; color: var(--gold); grid-row: span 2; }
.brand-hero__prices small { font-size: .8125rem; color: rgba(247, 243, 233, .78); }
.brand-hero__prices a:hover > span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .2em; }
.pd { display: grid; gap: 2.5rem; align-items: start; }
.pd > * { min-width: 0; }
@media (min-width: 60em) { .pd { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; } }
.pd__price { margin-top: 1rem; font-size: .9375rem; }
.pd__price .num { font-size: clamp(2.75rem, 5vw, 3.75rem); line-height: 1; margin-right: .35rem; }
.section--navy .pd__price .num { color: var(--ivory); }
.pd__for { margin-top: 1.25rem; font: 400 clamp(1.3rem, 2vw, 1.55rem)/1.35 var(--serif); }
.pd__intro > p.reveal:not(.pd__price):not(.pd__for) { margin-top: 1rem; }
.pd__card { background: var(--paper); color: var(--navy); border: 1px solid var(--line-ivory); border-top: 2px solid var(--gold); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.5rem; }
@media (min-width: 40em) { .pd__card { grid-template-columns: 1fr 1fr; } }
.pd__group h3 { font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .75rem; }
.pd__group .stars { gap: .5rem; font-size: .9375rem; }
.pd__group--no { border-top: 1px solid var(--line-ivory); padding-top: 1.25rem; grid-column: 1 / -1; }
.pd__group--no .pkg__no { font-size: .9375rem; gap: .45rem; }
.pd__card--single { grid-template-columns: 1fr !important; }
.pd__card--single .pd__group:first-child .stars { columns: 2 16rem; column-gap: 2rem; display: block; }
.pd__card--single .pd__group:first-child .stars li { break-inside: avoid; margin-bottom: .5rem; }
.section--navy .pd__card :focus-visible { outline-color: var(--navy); }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line-ivory); background: #fff; }
.cmp-wrap:focus-visible { outline-offset: 3px; }
.cmp { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9375rem; }
.cmp th, .cmp td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-ivory); }
.cmp thead th { font: 500 1.25rem/1.2 var(--serif); vertical-align: bottom; border-bottom: 1px solid var(--navy); width: 32%; }
.cmp thead th a { text-decoration: none; }
.cmp thead .num { display: block; margin-top: .3rem; font-size: 1.6rem; color: var(--gold-ink); }
.cmp tbody th { font-weight: 600; width: 36%; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp__yes { display: inline-block; width: 14px; height: 7px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); rotate: -45deg; margin: .3em 0 0 .1em; }
.cmp__no { display: inline-block; width: 14px; height: 2px; background: rgba(11, 31, 51, .45); margin-top: .7em; }
/* Phones: one row per feature, with both packages' values labelled underneath (no sideways scrolling). */
@media (max-width: 40em) {
  .cmp-wrap { overflow: visible; }
  .cmp { min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tbody tr { padding: .9rem 1rem; border-bottom: 1px solid var(--line-ivory); }
  .cmp tbody th, .cmp tbody td { padding: 0; border: 0; }
  .cmp tbody th { margin-bottom: .4rem; width: auto; }
  .cmp tbody td { display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; padding: .2rem 0; }
  .cmp tbody td::before { content: attr(data-label); color: var(--muted); font-size: .8125rem; }
}
.cmp__note { margin-top: 1.25rem; font-size: .9375rem; color: var(--muted); }
.pkg__more { margin-top: .25rem; align-self: flex-start; }
.pkgs__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.pkgs__foot p { max-width: 46rem; }

/* Navigation: current page */
.site-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.site-nav a[aria-current="page"]:not(.btn) { font-weight: 600; }

/* Currency selector (seven fixed price lists): one control, in the footer. A native <select> (keyboard,
   screen readers and phone pickers work as usual), dressed in the footer's navy, ivory and gold. */
.currency { display: inline-flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: .8125rem; }
.currency label { font-weight: 500; letter-spacing: .02em; color: rgba(247, 243, 233, .82); }
.currency select {
  appearance: none; -webkit-appearance: none; min-height: 2.75rem; padding: .45rem 2.5rem .45rem .9rem;
  font: 500 .875rem var(--sans); color: var(--ivory); cursor: pointer;
  background: var(--navy-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C9A96B' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .9rem center;
  border: 1px solid rgba(201, 169, 107, .55); border-radius: 0; transition: border-color .2s var(--ease);
}
.currency select:hover { border-color: var(--gold); }
.currency select option { color: var(--navy); background: var(--ivory); }
.site-footer .currency select:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; }
.price__meta { margin-top: 2rem; text-align: center; display: grid; justify-items: center; gap: .6rem; }
.price__note { max-width: 44rem; font-size: .875rem; color: rgba(247, 243, 233, .82); }
.site-footer .currency { margin-top: 1.5rem; }
.legal__intro { font-size: 1.125rem; margin-bottom: 2rem; max-width: 44rem; }
.table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line-ivory); background: #fff; }
.table-wrap:focus-visible { outline-offset: 3px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal-table th, .legal-table td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-ivory); }
.legal-table thead th { font-weight: 600; background: rgba(201, 169, 107, .12); }
.legal-table tbody tr:last-child td { border-bottom: 0; }

/* Vesper House case study: the artwork is Vesper House; everything around it is CVO Atlas */
.section--vesper { padding-bottom: clamp(3rem, 7vw, 6rem); }
.vh-intro { max-width: calc(52rem + 2 * var(--gutter)); margin-inline: 0 auto; }
.vh-intro h2 { font-size: clamp(2.75rem, 6vw, 4.75rem); }
.vh-intro__body { margin-top: 1rem; max-width: 42rem; }
.vh-disclosure { margin-top: 1.5rem; max-width: 46rem; padding: .9rem 1.1rem; border-left: 2px solid var(--gold); background: var(--paper); font-size: .9375rem; }
.vh-hero { margin: clamp(2rem, 5vw, 3.5rem) auto 0; max-width: 90rem; }
.vh-hero img, .vh-fig img { width: 100%; height: auto; display: block; }
.vh-hero figcaption { margin-top: .75rem; font-size: .8125rem; color: var(--muted); }
.vh-two-col { display: grid; gap: 2rem 4rem; margin-top: clamp(3rem, 7vw, 5.5rem); }
@media (min-width: 60em) { .vh-two-col { grid-template-columns: 1fr 1fr; } }
.vh-h { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; margin-top: clamp(3rem, 7vw, 5rem); }
.vh-two-col .vh-h { margin-top: 0; }
.vh-copy { margin-top: 1rem; max-width: 40rem; }
.vh-copy p + p { margin-top: .9rem; }
.vh-copy--wide { max-width: 46rem; }
.vh-hours { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.vh-hours li { padding: .7rem .4rem 0 0; font-size: .8125rem; line-height: 1.3; }
.vh-hours .num { display: block; font-size: 1.35rem; color: var(--gold-ink); }
@media (max-width: 30em) { .vh-hours { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: .75rem; } }
.vh-fig { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.vh-fig figcaption { margin-top: .6rem; font-size: .8125rem; color: var(--muted); }
.vh-fig--wide { max-width: 90rem; margin-inline: auto; }
.vh-fig--wide figcaption { padding-inline: var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.vh-pair { display: grid; gap: 1.5rem; }
.vh-pair .vh-fig { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 60em) { .vh-pair { grid-template-columns: 1fr 1fr; align-items: start; } .vh-pair--portrait { grid-template-columns: 2fr 1fr; } }
.vh-outro { margin-top: 2rem; }
.vh-credits { margin-top: 2rem; max-width: 52rem; border-top: 1px solid var(--line-ivory); padding-top: 1rem; font-size: .875rem; color: var(--muted); }
.vh-credits summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; font-weight: 600; color: var(--navy); }
.vh-credits p { margin-top: .5rem; }

/* Homepage: Vesper House portfolio preview */
.hb__portfolio { margin: 0; }
.hb__portfolio-link { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line-ivory); box-shadow: 0 30px 60px -36px rgba(11, 31, 51, .45); transition: border-color .25s, transform .35s var(--ease); }
.hb__portfolio-link:hover { border-color: var(--gold); transform: translateY(-3px); }
.hb__portfolio-link img { width: 100%; height: auto; display: block; }
.hb__portfolio-meta { display: grid; gap: .35rem; padding: 1.25rem 1.5rem 1.5rem; }
.hb__portfolio-meta .eyebrow { margin: 0; }
.hb__portfolio-title { font: 400 clamp(1.8rem, 3vw, 2.3rem)/1.05 var(--serif); }
.hb__portfolio-sum { font-size: .9375rem; color: rgba(11, 31, 51, .84); }
.hb__portfolio-meta .text-link { margin-top: .5rem; align-self: start; justify-self: start; }

/* Inner pages: navy heading band */
.page-head { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--ivory); margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5rem); }
.page-head__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.page-head__title { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1; max-width: 18ch; }
.page-head__lede { margin-top: 1.25rem; max-width: 36rem; font-size: 1.125rem; color: rgba(247, 243, 233, .88); }
@media (max-width: 47.99em) { .page-head__lines { display: none; } }

/* Message pages (thank you, 404) */
.message { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--ivory); margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(4rem, 10vw, 8rem)) 0 clamp(4rem, 10vw, 8rem); min-height: min(80svh, 48rem); display: flex; align-items: center; }
.message__star { position: absolute; z-index: -1; width: min(70vw, 40rem); right: -10%; top: 50%; translate: 0 -50%; }
.message h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1; max-width: 16ch; }
.message__body { margin-top: 1.5rem; max-width: 36rem; color: rgba(247, 243, 233, .88); }
.message__body p + p { margin-top: .75rem; }
.message__ref { margin-top: 1.25rem; font-size: 1.0625rem; }
.message__ref strong { font: 600 1.125rem/1 var(--sans); letter-spacing: .06em; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.message .contact-list { margin-top: 1.25rem; }

/* Contact details */
.contact-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .4rem; }
.contact-list a { font-weight: 600; text-underline-offset: .2em; }
.contact-card { background: var(--ivory); color: var(--navy); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--gold); }
.contact-card h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: .75rem; }

/* Legal and policy pages */
.legal__inner { max-width: 50rem; }
.legal__draft { padding: .85rem 1rem; border: 1px solid var(--gold); background: rgba(201, 169, 107, .14); font-size: .9375rem; font-weight: 600; margin-bottom: 2.5rem; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: .9rem; }
.prose .stars { margin-top: .9rem; }

/* Enquiry form */
.form-layout { display: grid; gap: 3rem; align-items: start; }
.form-layout > * { min-width: 0; }
@media (min-width: 60em) { .form-layout { grid-template-columns: 1.6fr 1fr; gap: 4.5rem; } }
.form-required-note { font-size: .875rem; color: var(--muted); margin-bottom: 1.5rem; }
.form-grid { display: grid; gap: 1.5rem; }
@media (min-width: 40em) { .form-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; } }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { display: block; font-weight: 600; margin-bottom: .4rem; padding: 0; }
.req { color: var(--gold-ink); margin-left: .2rem; }
.field__help { font-size: .875rem; color: var(--muted); margin: -.15rem 0 .5rem; }
.field--consent .field__help { margin: .6rem 0 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; min-height: 3rem; padding: .7rem .9rem; border: 1px solid rgba(11, 31, 51, .62); border-radius: 0; background: #fff; color: var(--navy); font: 400 1rem/1.5 var(--sans); }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
.choices { display: grid; gap: .5rem; }
.choices--inline { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.choice { display: inline-flex; align-items: flex-start; gap: .65rem; min-height: 2.75rem; padding-block: .55rem; cursor: pointer; }
.choice input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--navy); flex: none; }
.choice input:focus-visible { outline-offset: 3px; }
.field--invalid input[type="text"], .field--invalid input[type="email"], .field--invalid input[type="tel"], .field--invalid textarea { border-color: var(--error); border-width: 2px; }
.field__error { color: var(--error); font-weight: 600; font-size: .9375rem; margin-top: .4rem; }
.field__error::before { content: "! "; }
.error-summary { border: 2px solid var(--error); background: #fff; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.error-summary h2 { font: 600 1.0625rem/1.4 var(--sans); margin-bottom: .5rem; }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--error); font-weight: 600; }
.error-summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.form-submit { margin-top: 2rem; }
.form-failure { margin-top: 2rem; padding: 1.5rem; border: 2px solid var(--error); background: #fff; }
.form-failure__title { font-size: 1.9rem; margin-bottom: .5rem; }
.form-failure p + p { margin-top: .5rem; }
.form-failure .btn { margin-top: 1.25rem; }
.form-failure__note { font-size: .875rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-aside { border-top: 1px solid var(--gold); padding-top: 1.5rem; }
.form-aside h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.form-aside__steps { list-style: none; counter-reset: s; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .85rem; }
.form-aside__steps li { counter-increment: s; position: relative; padding-left: 2.25rem; }
.form-aside__steps li::before { content: "0" counter(s); position: absolute; left: 0; top: -.1rem; font: 400 1.2rem/1.4 var(--serif); color: var(--gold-ink); }
.form-aside__price { margin-bottom: 1.25rem; padding: 1rem 0; border-block: 1px solid var(--line-ivory); }
.form-aside__price .num { font-size: 1.4rem; }

/* Footer */
.site-footer { background: var(--navy); color: var(--ivory); padding-top: clamp(3.5rem, 7vw, 5rem); }
.footer { display: grid; gap: 2.5rem; }
@media (min-width: 40em) { .footer { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 64em) { .footer { grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; } .footer__brand { grid-column: auto; } }
.footer__brand img { width: 220px; height: auto; }
.footer__tagline { margin-top: 1rem; font: italic 400 1.75rem/1.2 var(--serif); color: var(--gold); }
.footer__desc { margin-top: .5rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.footer__col h2 { font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .9375rem; }
.footer__col a { display: inline-block; padding-block: .3rem; text-decoration: none; border-bottom: 1px solid transparent; }
.footer__col a:hover { border-bottom-color: var(--gold); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--line-navy); font-size: .8125rem; color: rgba(247, 243, 233, .78); }
.footer__legal a { display: inline-block; padding-block: .4rem; }
.page-home .site-footer { padding-bottom: 4.5rem; }

/* Floating "Ask" link */
/* Floating assistant: one shared component on every page. Navy launcher with a gold edge; the panel reuses the
   on-page chat styles (ivory, navy, gold). Phones: a full-screen sheet sized to the visible area (site.js keeps it
   above the keyboard), respecting safe areas. */
.cw__launcher { position: fixed; right: calc(1.25rem + env(safe-area-inset-right)); bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: .5rem; min-height: 3.25rem; padding: 0 1.15rem 0 .85rem; background: var(--navy); color: var(--ivory); border: 1px solid var(--gold); font: 600 .9375rem var(--sans); cursor: pointer; box-shadow: 0 16px 30px -14px rgba(11, 31, 51, .6); transition: transform .2s var(--ease); }
.cw__launcher img { width: 28px; }
.cw__launcher:hover { transform: translateY(-2px); }
.cw__launcher:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cw.is-open .cw__launcher { display: none; }
.site-header.is-menu ~ .cw { display: none; }
.cw__panel { position: fixed; right: calc(1.25rem + env(safe-area-inset-right)); bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 70; width: min(25rem, calc(100vw - 2.5rem)); height: min(38rem, calc(100dvh - 7rem)); display: flex; flex-direction: column; background: var(--ivory); color: var(--navy); border: 1px solid rgba(201, 169, 107, .55); box-shadow: 0 40px 80px -30px rgba(11, 31, 51, .55); }
.cw__panel[hidden] { display: none; }
.js .cw__panel:not([hidden]) { animation: msgIn .3s var(--ease); }
.cw__head { display: flex; align-items: center; gap: .75rem; padding: .85rem .75rem .85rem 1.1rem; background: var(--navy); color: var(--ivory); border-bottom: 1px solid var(--gold); }
.cw__head > img { width: 30px; flex: none; }
.cw__title { flex: 1; min-width: 0; }
.cw__title b { display: block; font: 500 1.2rem/1.2 var(--serif); }
.cw__title span { font-size: .75rem; color: rgba(247, 243, 233, .78); }
.cw__icon { width: 2.75rem; height: 2.75rem; flex: none; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--ivory); cursor: pointer; }
.cw__icon:hover { border-color: rgba(201, 169, 107, .6); }
.cw__icon:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.cw__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.cw .cw__log { flex: 1; min-height: 0; max-height: none; overscroll-behavior: contain; padding: 1rem 1.1rem; }
.cw__log .msg { max-width: 92%; font-size: .9375rem; }
.cw__chips { padding: .1rem 1.1rem .8rem; gap: .4rem; }
.cw__chips .chip { min-height: 2.5rem; padding: .35rem .75rem; font-size: .8125rem; }
.cw__form input { font-size: 1rem; } /* 16px: phones don't zoom into the field */
.cw__privacy { padding: .55rem 1.1rem .7rem; font-size: .6875rem; line-height: 1.4; color: var(--muted); border-top: 1px solid var(--line-ivory); }
.msg__retry { display: inline-block; margin: .5rem .5rem 0 0; min-height: 2.75rem; padding: .5rem 1rem; border: 1px solid var(--navy); background: transparent; color: var(--navy); font: 600 .875rem var(--sans); cursor: pointer; }
.msg__retry:hover { background: rgba(201, 169, 107, .18); }
.typing[role="status"] { align-self: flex-start; }
/* Short on space (landscape, keyboard open): suggestions in one sideways row, slimmer header; when very short,
   the suggestions and privacy line step aside while typing and return when the keyboard closes. */
.cw__panel.is-tight .cw__head { padding-block: .5rem; }
.cw__panel.is-tight .cw__title span { display: none; }
.cw__panel.is-tight .cw__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.cw__panel.is-tight .cw__chips::-webkit-scrollbar { display: none; }
.cw__panel.is-tight .cw__chips .chip { flex: none; white-space: nowrap; }
.cw__panel.is-tiny .cw__chips, .cw__panel.is-tiny .cw__privacy { display: none; }
.cw__panel.is-tiny .cw__log { padding-block: .5rem; }
/* Phones in portrait, and short landscape screens (phones turned sideways): a full-screen sheet. site.js sizes
   it to the visual viewport, so it stays above the on-screen keyboard. */
@media (max-width: 39.99em), (max-height: 31.24em) {
  .cw__launcher { right: calc(1rem + env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .cw__panel { inset: 0 0 auto 0; width: 100%; height: 100dvh; border: 0; padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
  .cw__head { padding: calc(.6rem + env(safe-area-inset-top)) .5rem .6rem .9rem; gap: .6rem; }
  .cw__head > img { width: 26px; }
  .cw__title b { font-size: 1.1rem; }
  .cw .cw__log { padding: .75rem .85rem; gap: .6rem; }
  .cw__log .msg { max-width: 94%; font-size: .90625rem; line-height: 1.45; }
  .cw__log .msg p { padding: .55rem .8rem; }
  .cw__log .msg__link { margin-top: .4rem; }
  /* Suggested questions: one row that scrolls sideways, so the conversation keeps the space */
  .cw__chips { flex-wrap: nowrap; overflow-x: auto; padding: .1rem .85rem .6rem; scrollbar-width: none; overscroll-behavior-x: contain; }
  .cw__chips::-webkit-scrollbar { display: none; }
  .cw__chips .chip { flex: none; white-space: nowrap; min-height: 2.5rem; }
  .cw__privacy { padding: .45rem .85rem calc(.55rem + env(safe-area-inset-bottom)); }
}

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Headings bands never wait for scrolling: they fade in on load with CSS alone. */
.js .hero .reveal, .js .page-head .reveal, .js .message .reveal { opacity: 1; transform: none; transition: none; animation: heroIn .9s var(--ease) both; }
.js .hero__copy > :nth-child(2), .js .page-head .container > :nth-child(2), .js .message__inner > :nth-child(2) { animation-delay: .08s; }
.js .hero__copy > :nth-child(3), .js .page-head .container > :nth-child(3), .js .message__inner > :nth-child(3) { animation-delay: .16s; }
.js .hero__copy > :nth-child(4), .js .message__inner > :nth-child(4) { animation-delay: .24s; }
.js .hero__copy > :nth-child(5), .js .message__inner > :nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .inst, .js .chatmini .b { opacity: 1 !important; transform: none !important; }
  .js .hero__lines .draw, .js .page-head__lines .draw { stroke-dashoffset: 0 !important; }
}

@media print {
  .site-header, .cw, .motion-toggle, .hero__star, .hero__lines, .watermark, .device, .chat__form, .chat__chips { display: none !important; }
  .hero, .page-head, .message, .section--navy, .statement, .site-footer { background: #fff !important; color: #000 !important; margin-top: 0; }
  .js .reveal, .js .inst { opacity: 1 !important; transform: none !important; }
}
