/* ==========================================================================
   Midlands Ads: site design system (Origin-inspired)
   Swiss / editorial minimalism: one grotesk family, cream / white / black
   sections, tiny uppercase labels, hairline rules, frosted pills, particle
   fields, and scroll-scrubbed motion (driven by js/origin.js + GSAP).
   Everything is scoped under body.o-page.
   ========================================================================== */

.o-page {
  --o-cream: #f6f4ee;
  --o-paper: #ffffff;
  --o-ink: #0b0b0c;
  --o-black: #000000;
  --o-grey: #c8c8c8;
  --o-mute: #8a8a86;
  --o-mute-dark: #9a9a96;
  --o-rule-light: rgba(0, 0, 0, 0.14);
  --o-rule-dark: rgba(246, 244, 238, 0.22);
  --o-card-light: rgba(0, 0, 0, 0.05);
  --o-card-dark: rgba(246, 244, 238, 0.08);
  --o-accent: #cc472c;            /* brand orange-red, used sparingly */
  --o-gutter: clamp(16px, 2.2vw, 32px);
  --o-radius: 6px;
  --o-ease: cubic-bezier(.22, 1, .36, 1);
  --o-font: 'Geist', 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;

  margin: 0;
  background: var(--o-cream);
  color: var(--o-ink);
  font-family: var(--o-font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.o-page *, .o-page *::before, .o-page *::after { box-sizing: border-box; }
::selection { background: #e25434; color: #faf6e1; }
.o-page img { max-width: 100%; }
/* style.css (still loaded for the audit modal tokens) sets headings to Quicksand. */
/* font-family only: beats style.css's Quicksand headings on the homepage */
.o-page :is(h1, h2, h3, h4, h5, h6, blockquote, button, input, select, textarea) { font-family: var(--o-font); }
:where(.o-page) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; }
:where(.o-page) :where(a) { color: inherit; }

/* Colour zones */
.o-dark  { background: var(--o-black); color: var(--o-cream); }
.o-white { background: var(--o-paper); color: var(--o-ink); }
.o-creamz { background: var(--o-cream); color: var(--o-ink); }

/* ---------- Type ---------- */
.o-label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
.o-mute { color: var(--o-mute); }
.o-dark .o-mute { color: var(--o-mute-dark); }
.o-display { font-weight: 500; letter-spacing: -0.04em; line-height: 0.92; }
.o-title { font-size: clamp(60px, 10.5vw, 180px); }
.o-h2 { font-size: clamp(34px, 3.8vw, 60px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
.o-h3 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.o-statement { font-size: clamp(28px, 3.3vw, 50px); font-weight: 500; letter-spacing: -0.028em; line-height: 1.05; }
.o-lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; letter-spacing: -0.01em; max-width: 46ch; }
.o-small { font-size: 13px; line-height: 1.55; }
.o-soft { opacity: .78; }

/* ---------- Pills / buttons ---------- */
.o-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 5px; border: 0;
  font: 500 10.5px/1 var(--o-font); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, opacity .2s ease, transform .2s ease;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.o-pill:active { transform: scale(0.97); }
.o-pill--light { background: rgba(0, 0, 0, 0.07); color: var(--o-ink); }
.o-pill--light:hover { background: var(--o-ink); color: var(--o-cream); }
.o-pill--dark { background: rgba(246, 244, 238, 0.1); color: var(--o-cream); }
.o-pill--dark:hover { background: var(--o-cream); color: var(--o-ink); }
.o-pill--solid { background: var(--o-cream); color: var(--o-ink); }
.o-pill--solid:hover { background: var(--o-paper); }
.o-pill--ink { background: var(--o-ink); color: var(--o-cream); }
.o-pill--ink:hover { background: #2a2a2a; }
.o-pill--lg { height: 44px; padding: 0 22px; font-size: 11px; }
.o-pill[disabled] { opacity: .5; cursor: progress; }
.o-page :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--o-accent); outline-offset: 3px; }
.o-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.o-link:hover { opacity: .6; }

/* ---------- Brand mark (SVG "M") ---------- */
.o-mark { display: block; width: 100%; height: 100%; overflow: visible; }
.o-mark .o-mark__l { fill: currentColor; }
.o-mark .o-mark__r { fill: var(--o-accent); }

/* ==========================================================================
   Fixed chrome
   ========================================================================== */

/* Top-right brand: mark + wordmark pills. On the homepage the giant hero
   wordmark and the small hero mark fly into these slots as you scroll. */
.o-nav {
  position: fixed; z-index: 70;
  top: calc(14px + env(safe-area-inset-top, 0px)); right: var(--o-gutter);
  display: flex; gap: 6px;
}
.o-nav__slot {
  position: relative; display: block; height: 42px; border-radius: 5px; text-decoration: none;
  background: rgba(0, 0, 0, 0.06); color: var(--o-ink);
  transition: background-color .3s ease, color .3s ease;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.o-nav__slot--mark { width: 55px; }
.o-nav__slot--type { width: 132px; }
.o-nav__in { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.o-nav__slot--mark .o-nav__in { padding: 11px 14px; }
.o-nav__word { font-size: 21px; font-weight: 600; letter-spacing: -0.06em; line-height: 1; white-space: nowrap; transform: translateY(-1px); }
.nav-on-dark .o-nav__slot, .menu-open .o-nav__slot { background: rgba(246, 244, 238, 0.1); color: var(--o-cream); }
/* Homepage: the slot backgrounds fade in while the hero art docks into them. */
.o-home .o-nav__slot { background: transparent !important; }
.o-home .o-nav__in { visibility: hidden; }
.o-home .o-nav__bg { position: absolute; inset: 0; border-radius: 5px; background: rgba(0, 0, 0, 0.06); opacity: 0; transition: background-color .3s ease; }
.o-home.nav-on-dark .o-nav__bg, .o-home.menu-open .o-nav__bg { background: rgba(246, 244, 238, 0.1); }

/* Breadcrumb (inner pages, top-left) */
.o-crumb { position: absolute; z-index: 5; top: calc(28px + env(safe-area-inset-top, 0px)); left: var(--o-gutter); }
.o-crumb a { text-decoration: none; }
.o-crumb a:hover { opacity: .6; }

/* Bottom-right dock */
.o-dock {
  position: fixed; z-index: 70;
  right: var(--o-gutter); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 6px;
}
.o-dock__hint { color: var(--o-mute); margin-right: 4px; }
.o-dock__extra { display: flex; align-items: center; gap: 6px; }
.menu-on-dark .o-dock .o-pill--light, .menu-open .o-dock .o-pill--light { background: rgba(246, 244, 238, 0.12); color: var(--o-cream); }
.menu-on-dark .o-dock .o-pill--light:hover { background: var(--o-cream); color: var(--o-ink); }
.menu-on-dark .o-dock__hint { color: var(--o-mute-dark); }
@media (max-width: 700px) {
  .o-dock__hint, .o-dock .o-hide-sm { display: none; }
  .o-nav__slot--type { width: 112px; }
  .o-nav__word { font-size: 18px; }
}

/* Full-screen menu */
.o-menu {
  position: fixed; inset: 0; z-index: 65; background: var(--o-black); color: var(--o-cream);
  padding: calc(90px + env(safe-area-inset-top, 0px)) var(--o-gutter) calc(80px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--o-gutter); align-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .7s;
  overflow-y: auto;
}
.o-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s cubic-bezier(.7, 0, .2, 1); }
.o-menu__links { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; }
.o-menu__links li { border-top: 1px solid var(--o-rule-dark); overflow: hidden; }
.o-menu__links li:last-child { border-bottom: 1px solid var(--o-rule-dark); }
.o-menu__links a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0 10px; color: var(--o-cream); text-decoration: none;
  font-size: clamp(38px, 6.4vw, 92px); font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  transform: translateY(105%); transition: transform .8s var(--o-ease), color .2s ease, padding-left .35s var(--o-ease);
}
.o-menu.is-open .o-menu__links a { transform: none; }
.o-menu.is-open li:nth-child(2) a { transition-delay: .04s, 0s, 0s; }
.o-menu.is-open li:nth-child(3) a { transition-delay: .08s, 0s, 0s; }
.o-menu.is-open li:nth-child(4) a { transition-delay: .12s, 0s, 0s; }
.o-menu.is-open li:nth-child(5) a { transition-delay: .16s, 0s, 0s; }
.o-menu.is-open li:nth-child(6) a { transition-delay: .2s, 0s, 0s; }
.o-menu__links a:hover { color: var(--o-mute-dark); padding-left: 14px; }
.o-menu__links a[aria-current="page"] { color: var(--o-mute-dark); }
.o-menu__links .o-label { color: var(--o-mute-dark); }
.o-menu__meta { color: var(--o-mute-dark); }
.o-menu__meta a { color: var(--o-cream); text-decoration: none; }
.o-menu__meta--right { text-align: right; }
.menu-open { overflow: hidden; }
@media (max-width: 700px) { .o-menu { grid-template-columns: 1fr; } .o-menu__meta--right { text-align: left; } }

/* ==========================================================================
   Loader (homepage): counts to 100%, then its mark + wordmark fly to their
   places in the hero while the black backdrop fades.
   ========================================================================== */
.o-loader { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 40px); color: var(--o-cream); pointer-events: none; }
.o-loader > * { position: relative; }
.o-loader > .o-loader__bg { position: absolute; inset: 0; background: var(--o-black); }
.o-loader__count { font-size: 52px; line-height: 60px; font-weight: 600; letter-spacing: 0.02em; min-width: 4ch; text-align: right; }
.o-loader__text { width: 124px; font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; white-space: pre-wrap; }
.o-loader__caret { display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: text-bottom; background: currentColor; animation: o-caret .7s step-end infinite; }
@keyframes o-caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.o-loader__mark { width: 66px; height: 50px; flex: none; color: var(--o-cream); }
.o-loader__type { font-size: 46px; line-height: .78; font-weight: 600; letter-spacing: -0.065em; white-space: nowrap; }
.o-loader.is-gone { display: none; }
.o-js .o-home:not(.o-static) .o-loader:not(.is-gone) ~ .o-fly { visibility: hidden; }
@media (max-width: 600px) { .o-loader { flex-wrap: wrap; padding: 24px; } .o-loader__count { font-size: 40px; } }

/* ==========================================================================
   Homepage hero + flying wordmark/mark
   ========================================================================== */
.o-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 12px var(--o-gutter) var(--o-gutter);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background: var(--o-paper); overflow: hidden;
}
/* Placeholders reserve the hero space; the real art is the fixed .o-fly. */
.o-hero__type { display: block; width: 100%; visibility: hidden; font-weight: 600; letter-spacing: -0.065em; line-height: .78; white-space: nowrap; }
.o-hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: var(--o-gutter); padding-bottom: 56px; }
.o-hero__markslot { display: block; width: 44px; height: 33px; margin-bottom: 16px; visibility: hidden; }
.o-hero h1 { color: var(--o-mute); font-size: clamp(30px, 3.5vw, 54px); font-weight: 500; letter-spacing: -0.032em; line-height: 1.04; }
.o-hero h1 .o-line { display: block; }
.o-hero h1 strong { color: var(--o-ink); font-weight: 500; }
@media (min-width: 900px) { .o-hero h1 .o-line { white-space: nowrap; } }
@media (max-width: 899px) { .o-hero h1 .o-line { display: inline; } .o-hero__foot { grid-template-columns: 1fr; } }

.o-fly { position: fixed; top: 0; left: 0; z-index: 72; transform-origin: 0 0; will-change: transform; text-decoration: none; }
.o-page .o-fly--type { --mix: 0; color: color-mix(in srgb, var(--o-ink) calc(var(--mix) * 100%), var(--o-grey)); font-size: 400px; font-weight: 600; letter-spacing: -0.065em; line-height: .78; white-space: nowrap; }
.o-page .o-fly--mark { color: var(--o-ink); width: 100px; height: 76px; }
.o-page.nav-on-dark .o-fly.is-docked, .o-page.menu-open .o-fly.is-docked { color: var(--o-cream) !important; }
.o-static .o-fly, .o-touch .o-fly { position: absolute; }
/* Touch: the nav pills fade in their own logo once you're past the hero. */
.o-home.o-touch .o-nav__in { visibility: visible; opacity: 0; transition: opacity .35s ease; }
.o-home.o-touch .o-nav__bg { transition: opacity .35s ease, background-color .3s ease; }
.o-home.o-touch.o-docked .o-nav__in, .o-home.o-touch.o-docked .o-nav__bg { opacity: 1; }
.o-fly:not(.is-docked) { pointer-events: none; }

.o-heroinfo { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.o-infocard {
  display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center;
  width: 100%; max-width: 300px; padding: 12px; border-radius: 10px;
  background: var(--o-card-light); color: var(--o-ink); text-decoration: none; font-size: 12px; line-height: 1.35;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .25s ease;
}
.o-infocard:hover { background: rgba(0, 0, 0, 0.09); }
.o-infocard__art { width: 76px; height: 76px; border-radius: 6px; background: #dcdcdc; overflow: hidden; }
.o-infocard__art canvas { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   Expanding media scene: a small media box sits inline in a sentence and,
   as you scroll, grows to fill the screen; the sentence is pushed off both
   sides, the intro line lifts away, then the next content fades in on top.
   ========================================================================== */
.o-expand { position: relative; height: 300vh; background: var(--o-paper); }
.o-expand__sticky { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.o-expand__intro { position: absolute; top: clamp(70px, 12vh, 120px); left: 0; right: 0; text-align: center; font-size: 13px; color: #444; z-index: 2; }
.o-expand__cluster {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(14px, 1.6vw, 26px);
  white-space: nowrap; font-size: clamp(24px, 3.1vw, 50px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05;
}
.o-expand__side { display: flex; min-width: 0; }
.o-expand__side--l { justify-content: flex-end; }
.o-expand__side--r { justify-content: flex-start; }
/* --p (0 to 1) is scrubbed by js/origin.js. Sizes are live viewport units, not
   pixels measured once, so the box always ends exactly full-screen. */
.o-expand__box {
  --p: 0; --w0: clamp(160px, 25vw, 400px); --h0: clamp(90px, 14.06vw, 225px);
  position: relative; flex: none; overflow: hidden; background: var(--o-black);
  width: calc(var(--w0) + (100vw - var(--w0)) * var(--p));
  height: calc(var(--h0) + (100vh - var(--h0)) * var(--p));
  height: calc(var(--h0) + (100lvh - var(--h0)) * var(--p));
  border-radius: calc(8px * (1 - var(--p)));
}
.o-expand__box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.o-expand__over { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 90px var(--o-gutter); color: var(--o-cream); opacity: 0; visibility: hidden; }
.o-expand__over-inner { width: min(860px, 100%); text-align: center; }
.o-expand__over .o-statement { color: #e9e7e1; margin-bottom: 34px; text-wrap: balance; }
@media (max-width: 760px) {
  .o-expand__cluster { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); justify-items: center; font-size: 26px; gap: 16px; }
  .o-expand__side--l { align-self: end; }
  .o-expand__side--r { align-self: start; }
  .o-expand__box { --w0: 220px; --h0: 124px; }
}
@media (max-width: 560px) { .o-crumb { display: none; } }
/* Static fallback (reduced motion / no GSAP): just a dark section. */
.o-static .o-expand { height: auto; }
.o-static .o-expand__sticky { position: relative; height: auto; min-height: 100vh; padding: 140px var(--o-gutter); background: var(--o-black); }
.o-static .o-expand__intro, .o-static .o-expand__side { display: none; }
.o-static .o-expand__cluster { display: block; }
.o-static .o-expand__box { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.o-static .o-expand__over { position: relative; opacity: 1; visibility: visible; padding: 0; }

/* Audit form */
.o-audit {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; max-width: 760px; margin: 0 auto; padding: 6px;
  border-radius: 10px; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--o-rule-dark);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: left;
}
.o-audit label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.o-audit input { width: 100%; height: 44px; padding: 0 14px; border-radius: 5px; border: 1px solid transparent; background: var(--o-card-dark); color: var(--o-cream); font-size: 14px; }
.o-audit input::placeholder { color: rgba(246, 244, 238, 0.45); }
.o-audit input:focus { outline: none; border-color: rgba(246, 244, 238, 0.5); box-shadow: none; }
.o-audit .o-pill { height: 44px; }
.o-audit__error { grid-column: 1 / -1; font-size: 12px; color: #ffb4a4; padding: 6px 8px 2px; }
.o-audit__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; color: var(--o-mute-dark); }
.o-audit__alt { margin-top: 24px; font-size: 13px; }
@media (max-width: 720px) { .o-audit { grid-template-columns: 1fr; } }

/* ==========================================================================
   Sections & layout
   ========================================================================== */
.o-section { position: relative; padding: clamp(90px, 12vw, 180px) var(--o-gutter); }
.o-section--tight { padding-block: clamp(60px, 7vw, 110px); }
.o-section--flush { padding-top: 0; }
.o-rule { border: 0; border-top: 1px solid var(--o-rule-light); margin: 0; }
.o-dark .o-rule { border-top-color: var(--o-rule-dark); }

/* Inner page head: breadcrumb + giant title + 4-col intro row */
.o-pagehead { position: relative; padding: calc(110px + env(safe-area-inset-top, 0px)) var(--o-gutter) 0; }
.o-pagehead__title { padding: 0 0 20px; }
.o-pagehead__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--o-gutter); padding: 16px 0 clamp(60px, 8vw, 110px); }
.o-pagehead__row > :nth-child(2) { grid-column: 2 / 4; }
.o-pagehead__row > :nth-child(3) { grid-column: 4 / 5; justify-self: end; align-self: start; }
@media (max-width: 760px) {
  .o-pagehead__row { grid-template-columns: 1fr; gap: 14px; }
  .o-pagehead__row > * { grid-column: auto !important; justify-self: start !important; }
}

.o-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--o-gutter); }
.o-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--o-gutter); }
.o-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--o-gutter); }
.o-c2 { grid-column: 2 / -1; }
.o-c2-3 { grid-column: 2 / 4; }
@media (max-width: 860px) {
  .o-grid2, .o-grid3, .o-grid4 { grid-template-columns: 1fr; }
  .o-c2, .o-c2-3 { grid-column: auto; }
}
.o-intro { padding: 14px 0 clamp(50px, 6vw, 80px); }
.o-intro p { max-width: 46ch; font-size: 13px; opacity: .8; }
.o-shead__title { padding: 22px 0 14px; font-size: clamp(56px, 9vw, 150px); }

/* ---------- Accordion (services, FAQ) ---------- */
.o-acc { border-top: 1px solid var(--o-rule-light); }
.o-dark .o-acc { border-top-color: var(--o-rule-dark); }
.o-acc__item { border-bottom: 1px solid var(--o-rule-light); }
.o-dark .o-acc__item { border-bottom-color: var(--o-rule-dark); }
.o-acc__btn {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 13px 0; background: none; border: 0; color: inherit; cursor: pointer; text-align: left;
  font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2;
  transition: opacity .25s;
}
.o-acc__btn:hover { opacity: .65; }
.o-plus { position: relative; width: 14px; height: 14px; flex: none; }
.o-plus::before, .o-plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: currentColor; transition: transform .35s ease, opacity .35s ease; }
.o-plus::after { transform: rotate(90deg); }
.o-acc__item.is-open .o-plus::after { transform: rotate(0deg); opacity: 0; }
.o-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.o-acc__item.is-open .o-acc__panel { grid-template-rows: 1fr; }
.o-acc__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .35s; }
.o-acc__item.is-open .o-acc__inner { visibility: visible; transition: visibility 0s; }
.o-acc__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--o-gutter); padding: 0 0 22px; }
.o-acc__body--single { grid-template-columns: 1fr; }
.o-acc__body p { font-size: 13.5px; line-height: 1.55; opacity: .82; max-width: 52ch; margin-bottom: 14px; }
@media (max-width: 760px) { .o-acc__body { grid-template-columns: 1fr; gap: 8px; } }

/* Programs: accordion left, big rounded scene right (crossfades per item) */
.o-programs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--o-gutter); align-items: start; }
.o-scene { position: sticky; top: 80px; aspect-ratio: 1 / 1; max-height: 80vh; width: 100%; border-radius: clamp(40px, 4.4vw, 66px); overflow: hidden; background: #0d0d0d; transform: translateZ(0); }
.o-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.o-scene__label { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; color: var(--o-mute-dark); transition: opacity .2s; }
@media (max-width: 860px) {
  .o-programs { grid-template-columns: 1fr; }
  .o-scene { position: relative; top: 0; order: -1; aspect-ratio: 4 / 3; border-radius: 28px; }
}

/* ---------- Work tiles: hover grows the radius, washes the image, shows tags; a "View" pill follows the cursor ---------- */
.o-work__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 40px; }
.o-tile { position: relative; display: block; margin: 0 0 clamp(60px, 8vw, 120px); text-decoration: none; color: inherit; }
.o-tile__img { position: relative; width: 100%; border-radius: var(--o-radius); overflow: hidden; background: #111; transition: border-radius .4s var(--o-ease); }
.o-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--o-ease); }
.o-tile__wash { position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, 0.22); opacity: 0; transition: opacity .2s; pointer-events: none; }
.o-tile:hover .o-tile__img { border-radius: 20px; }
.o-tile:hover .o-tile__img img { transform: scale(1.03); }
.o-tile:hover .o-tile__wash { opacity: 1; }
.o-tile__cap { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; }
.o-tile__cap strong { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.o-tile__tags { color: var(--o-mute); opacity: 0; transition: opacity .25s; }
.o-dark .o-tile__tags { color: var(--o-mute-dark); }
.o-tile:hover .o-tile__tags, .o-tile:focus-visible .o-tile__tags { opacity: 1; }
@media (hover: none) { .o-tile__tags { opacity: 1; } }
.o-tile--wide .o-tile__img { aspect-ratio: 21 / 9; }
.o-tile--sq .o-tile__img { aspect-ratio: 1 / 1; }
.o-tile--tall .o-tile__img { aspect-ratio: 4 / 5; }
.o-tile--land .o-tile__img { aspect-ratio: 16 / 10; }
.o-pair { display: grid; grid-template-columns: 7fr 5fr; gap: var(--o-gutter); align-items: end; }
@media (max-width: 760px) { .o-pair { grid-template-columns: 1fr; } .o-tile--wide .o-tile__img { aspect-ratio: 4 / 3; } }
.o-cursor { position: fixed; top: 0; left: 0; z-index: 80; pointer-events: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(26, 13, 5, 0.85); color: var(--o-cream); font-size: 11px; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.o-cursor.is-on { opacity: 1; }

/* ---------- Steps (hairline rows) ---------- */
.o-steps { list-style: none; margin: 0; padding: 0; }
.o-steps li { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: var(--o-gutter); padding: 22px 0 34px; border-top: 1px solid var(--o-rule-light); }
.o-steps li:last-child { border-bottom: 1px solid var(--o-rule-light); }
.o-dark .o-steps li { border-color: var(--o-rule-dark); }
.o-steps p { font-size: 14px; line-height: 1.55; opacity: .78; max-width: 52ch; }
@media (max-width: 760px) { .o-steps li { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Reviews ---------- */
.o-quote { font-size: clamp(26px, 3.2vw, 48px); font-weight: 500; letter-spacing: -0.026em; line-height: 1.08; max-width: 24ch; min-height: 4.4em; transition: opacity .35s ease; }
.o-quote.is-fading { opacity: 0; }
.o-reviews__foot { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.o-reviews__who strong { display: block; font-size: 16px; font-weight: 500; }
.o-reviews__nav { display: flex; align-items: center; gap: 6px; }
.o-reviews__count { min-width: 64px; text-align: center; color: var(--o-mute); }

/* ---------- CTA ---------- */
.o-cta__title { font-size: clamp(54px, 10vw, 170px); }
.o-cta__title em { font-style: normal; color: var(--o-mute-dark); }
.o-cta__row { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; margin-top: 50px; }
.o-cta__row p { max-width: 40ch; font-size: 14px; opacity: .8; }
.o-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Service rows (services page) ---------- */
.o-srv { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: var(--o-gutter); padding: 22px 0 clamp(70px, 8vw, 120px); border-top: 1px solid var(--o-rule-dark); scroll-margin-top: 30px; }
.o-white .o-srv, .o-creamz .o-srv { border-top-color: var(--o-rule-light); }
.o-srv__text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.o-srv__list { list-style: none; padding: 0; margin: 0; width: 100%; border-top: 1px solid var(--o-rule-dark); }
.o-srv__list li { padding: 9px 0; border-bottom: 1px solid var(--o-rule-dark); font-size: 13px; }
.o-srv .o-tile { margin: 0; }
@media (max-width: 860px) { .o-srv { grid-template-columns: 1fr; } }

/* ---------- Calculator ---------- */
.o-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--o-gutter); }
.o-calc__panel { padding: clamp(20px, 2.4vw, 34px); border-radius: 10px; background: var(--o-card-light); }
.o-field { display: grid; gap: 8px; margin-bottom: 26px; }
.o-field:last-child { margin-bottom: 0; }
.o-field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.o-select, .o-input, .o-textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.25); border-radius: 0;
  background-color: transparent; color: var(--o-ink); font-size: 15px; appearance: none; -webkit-appearance: none;
}
.o-select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.o-select:focus, .o-input:focus, .o-textarea:focus { outline: none; border-bottom-color: var(--o-ink); box-shadow: none; }
.o-textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.o-input::placeholder, .o-textarea::placeholder { color: rgba(0, 0, 0, 0.35); }
.o-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.o-seg button { height: 34px; padding: 0 14px; border-radius: 5px; border: 0; background: rgba(0, 0, 0, 0.06); color: var(--o-ink); font: 500 10.5px/1 var(--o-font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background-color .25s, color .25s; }
.o-seg button:hover { background: rgba(0, 0, 0, 0.12); }
.o-seg button.is-active { background: var(--o-ink); color: var(--o-cream); }
.o-range { width: 100%; appearance: none; -webkit-appearance: none; height: 1px; background: rgba(0, 0, 0, 0.3); margin: 14px 0 8px; }
.o-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--o-ink); cursor: pointer; }
.o-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--o-ink); cursor: pointer; }
.o-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--o-rule-light); }
.o-stats > div { padding: 16px 0 22px; border-bottom: 1px solid var(--o-rule-light); }
.o-stats > div:nth-child(odd) { padding-right: 16px; }
.o-stat__num { display: block; margin-top: 8px; font-size: clamp(40px, 4.4vw, 72px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .o-calc { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.o-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.o-plan { display: flex; flex-direction: column; gap: 22px; padding: clamp(20px, 2.2vw, 32px); border-radius: 10px; background: var(--o-card-light); transition: border-radius .4s var(--o-ease); }
.o-plan:hover { border-radius: 20px; }
.o-plan--feat { background: var(--o-black); color: var(--o-cream); }
.o-plan__price { font-size: clamp(56px, 6vw, 100px); font-weight: 500; letter-spacing: -0.05em; line-height: .9; }
.o-plan__price small { font-size: 14px; letter-spacing: 0; font-weight: 400; opacity: .6; margin-left: 4px; }
.o-plan ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--o-rule-light); flex: 1; }
.o-plan li { padding: 10px 0; border-bottom: 1px solid var(--o-rule-light); font-size: 13.5px; line-height: 1.45; }
.o-plan--feat ul, .o-plan--feat li { border-color: var(--o-rule-dark); }
.o-plan .o-pill { align-self: flex-start; }
@media (max-width: 960px) { .o-plans { grid-template-columns: 1fr; } }

/* ---------- People ---------- */
.o-person__img { aspect-ratio: 4 / 5; border-radius: var(--o-radius); overflow: hidden; background: #e8e6e0; transition: border-radius .4s var(--o-ease); }
.o-person__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s ease, transform .6s var(--o-ease); }
.o-person:hover .o-person__img { border-radius: 20px; }
.o-person:hover .o-person__img img { filter: none; transform: scale(1.02); }
.o-person__cap { display: grid; gap: 6px; padding-top: 14px; }
.o-person__cap p { font-size: 13.5px; line-height: 1.55; opacity: .8; max-width: 46ch; }

/* ---------- Contact ---------- */
.o-form { padding: clamp(18px, 2.2vw, 30px); border-radius: 10px; background: #ececea; }
.o-form .o-field { margin-bottom: 20px; }
.o-form .o-label { color: #555; }
.o-success { padding: clamp(18px, 2.2vw, 30px); border-radius: 10px; background: var(--o-black); color: var(--o-cream); display: grid; gap: 16px; justify-items: start; }
.o-details { display: grid; gap: 28px; align-content: start; }
.o-details a { text-decoration: none; }
.o-details a:hover { opacity: .6; }
.o-details__big { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }

/* ---------- Blog & prose ---------- */
.o-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 70px) var(--o-gutter); }
.o-posts .o-tile { margin: 0; }
.o-post-blank { display: flex; align-items: flex-end; padding: 22px; aspect-ratio: 16 / 10; background: var(--o-black); color: var(--o-cream); }
.o-post-blank span { font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; }
@media (max-width: 760px) { .o-posts { grid-template-columns: 1fr; } }

.o-article { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--o-gutter); align-items: start; }
.o-article__meta { display: grid; gap: 8px; align-content: start; position: sticky; top: 90px; }
@media (max-width: 960px) { .o-article { grid-template-columns: 1fr; } .o-article__meta { position: static; } }
.o-prose { font-size: 17px; line-height: 1.65; letter-spacing: -0.005em; }
.o-prose > * + * { margin-top: 1.05em; }
.o-prose h2 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; margin-top: 1.8em; padding-top: 18px; border-top: 1px solid var(--o-rule-light); }
.o-prose h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; margin-top: 1.5em; }
.o-prose ul, .o-prose ol { padding-left: 1.2em; }
.o-prose li + li { margin-top: .4em; }
.o-prose a { text-decoration: underline; text-underline-offset: 3px; }
.o-prose strong { font-weight: 600; }
.o-prose blockquote { padding-left: 18px; border-left: 2px solid var(--o-ink); font-size: 1.15em; }
.o-prose img { border-radius: var(--o-radius); }
.o-prose code { font-size: .9em; background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 4px; }
.o-cover { width: 100%; border-radius: var(--o-radius); overflow: hidden; margin-bottom: clamp(40px, 5vw, 70px); }
.o-cover img { display: block; width: 100%; height: auto; }

/* ---------- Legal ---------- */
.o-legal > div { border-top: 1px solid var(--o-rule-light); padding-top: 18px; margin-top: 44px; }
.o-legal > div:first-child { margin-top: 0; }
.o-legal h2 { border: 0 !important; padding: 0 !important; margin: 0 0 14px !important; font-size: clamp(22px, 2vw, 30px) !important; }
.o-legal p, .o-legal li { font-size: 15.5px; }
.o-legal p + p, .o-legal p + ul, .o-legal ul + p { margin-top: .9em; }

/* ---------- Values ---------- */
.o-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--o-gutter); }
.o-value { display: grid; gap: 14px; align-content: start; padding-top: 16px; border-top: 1px solid var(--o-rule-light); }
.o-dark .o-value { border-top-color: var(--o-rule-dark); }
.o-value p { font-size: 14px; line-height: 1.55; opacity: .78; max-width: 40ch; }
@media (max-width: 860px) { .o-values { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Footer: a crop-mark frame that unfolds when it enters view ---------- */
.o-footer { position: relative; background: var(--o-black); color: var(--o-cream); padding: var(--o-gutter); }
.o-footer__frame {
  position: relative; min-height: calc(92vh - 2 * var(--o-gutter));
  padding: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 44px) clamp(70px, 7vw, 90px);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; gap: var(--o-gutter); font-size: 12px;
}
.o-footer a { color: var(--o-cream); text-decoration: none; transition: opacity .2s; }
.o-footer a:hover { opacity: .6; }
.o-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.o-footer__cols { display: grid; grid-template-columns: repeat(3, auto); gap: 44px; justify-content: start; }
.o-footer__cols a { font-size: 15px; font-weight: 300; line-height: 1.55; }
.o-footer__cols .o-label { color: var(--o-mute-dark); margin-bottom: 10px; display: block; }
.o-footer__statement { align-self: end; color: var(--o-mute-dark); font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; letter-spacing: -0.026em; line-height: 1.1; max-width: 20ch; }
.o-footer__base { align-self: end; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--o-mute-dark); font-size: 13px; line-height: 1.5; }
.o-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--o-cream); }
.o-dot--tl { top: 0; left: 0; }
.o-dot--tc { top: 0; left: 50%; transform: translateX(-50%); }
.o-dot--tr { top: 0; right: 0; }
.o-dot--bl, .o-dot--bc, .o-dot--br { top: 100%; transform: translateY(-100%); transition: top 1.5s cubic-bezier(.16, 1, .3, 1), transform 1.5s cubic-bezier(.16, 1, .3, 1); }
.o-dot--bl { left: 0; }
.o-dot--br { right: 0; }
.o-dot--bc { left: 50%; transform: translate(-50%, -100%); }
.o-footer__frame > :not(.o-dot) { transition: opacity .65s ease .85s; }
.o-footer__frame[data-reveal="pending"] .o-dot--bl,
.o-footer__frame[data-reveal="pending"] .o-dot--br { top: 0; transform: translateY(0); transition: none; }
.o-footer__frame[data-reveal="pending"] .o-dot--bc { top: 0; transform: translate(-50%, 0); transition: none; }
.o-footer__frame[data-reveal="pending"] > :not(.o-dot) { opacity: 0; transition: none; }
@media (max-width: 760px) {
  .o-footer__frame { grid-template-columns: 1fr; }
  .o-footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ---------- Reveals ---------- */
.o-js .o-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s var(--o-ease); }
.o-js .o-reveal.is-in { opacity: 1; transform: none; }
.o-js .o-lines .o-ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.o-js .o-lines .o-ln > span { display: block; transform: translateY(108%); transition: transform 1.1s var(--o-ease); }
.o-js .o-lines.is-in .o-ln > span { transform: none; }
.o-js .o-lines.is-in .o-ln:nth-child(2) > span { transition-delay: .07s; }
.o-js .o-lines.is-in .o-ln:nth-child(3) > span { transition-delay: .14s; }
.o-js .o-lines.is-in .o-ln:nth-child(4) > span { transition-delay: .21s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .o-page *, .o-page *::before, .o-page *::after { transition-duration: 0s !important; animation-duration: 0s !important; transition-delay: 0s !important; }
  .o-js .o-reveal { opacity: 1; transform: none; }
  .o-js .o-lines .o-ln > span { transform: none; }
}

/* The expanding box reveals a viewport-sized dot field (so the dots don't
   stretch while the box grows). */
.o-expand__box canvas { inset: auto; left: 50%; top: 50%; width: 100vw; height: 100vh; transform: translate(-50%, -50%); }
.o-page [hidden] { display: none !important; }

/* ---------- Heat effects (js/heat.js) ---------- */
.o-heat-overlay { position: absolute; z-index: -1; pointer-events: none; }
.o-heat-screen { position: fixed; inset: 0; z-index: 60; width: 100vw; height: 100vh; pointer-events: none; will-change: contents; }
.o-heat-scroll { filter: blur(7px); }
@media (prefers-reduced-motion: reduce) { .o-heat-screen, .o-heat-overlay { display: none; } }

/* Homepage menu opened before the logo has docked: fade the giant hero art
   out (it sits above the menu so it can fly into the nav) and show the
   regular nav pills in its place. */
.o-home .o-fly { transition: opacity .3s ease; }
.o-home.menu-open:not(.o-docked) .o-fly { opacity: 0 !important; }
.o-home.menu-open:not(.o-docked) .o-nav__in { visibility: visible; }
.o-home.menu-open:not(.o-docked) .o-nav__bg { opacity: 1 !important; visibility: visible !important; }
.o-loading { overflow: hidden; }

/* ==========================================================================
   Floating audit button: the hero info card morphs into it (bottom-left)
   ========================================================================== */
.o-afab {
  position: fixed; z-index: 70;
  left: var(--o-gutter); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 8px 18px 8px 8px; overflow: hidden;
  border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap;
  background: rgba(0, 0, 0, 0.06); color: var(--o-ink); font-family: var(--o-font);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .3s ease, color .3s ease;
}
.o-afab[hidden] { display: none; }
.o-afab--simple { opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s ease, transform .5s var(--o-ease), background-color .3s ease, color .3s ease; }
.o-afab--simple.is-in { opacity: 1; transform: none; pointer-events: auto; }
.o-afab:hover { background: var(--o-ink); color: var(--o-cream); }
.o-afab__art { flex: none; height: 100%; aspect-ratio: 1; border-radius: 6px; background: #dcdcdc; overflow: hidden; }
.o-afab__art canvas { width: 100%; height: 100%; display: block; }
.o-afab__copy { position: relative; display: flex; align-items: center; height: 100%; }
.o-afab__label { font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
/* The hero card's sentence, faded out as the card shrinks into the button */
.o-afab__text { position: absolute; left: 0; top: 50%; width: 186px; transform: translateY(-50%); opacity: 0; white-space: normal; text-align: left; font-size: 12px; line-height: 1.35; pointer-events: none; }
.fab-on-dark .o-afab, .menu-open .o-afab { background: rgba(246, 244, 238, 0.1); color: var(--o-cream); }
.fab-on-dark .o-afab:hover { background: var(--o-cream); color: var(--o-ink); }
.fab-on-dark .o-afab__art { background: #1b1b1b; }
.menu-open .o-afab, .o-modal-open .o-afab { visibility: hidden; }
/* Phones: the button sits on the dock's line as an inverted pill (ink on
   light pages, cream on dark) so it stands out, and the floating chrome goes
   near-opaque so page text doesn't show through it. */
@media (max-width: 520px) {
  .o-dock .o-pill { height: 40px; padding: 0 12px; letter-spacing: .08em; }
  .o-afab__label { letter-spacing: .08em; }
  .o-afab { height: 40px; padding: 5px 14px 5px 5px; gap: 10px; border-radius: 6px; background: var(--o-ink); color: var(--o-cream); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
  .o-afab__art { border-radius: 4px; background: #1b1b1b; }
  .o-afab__long { display: none; }
  .o-afab__label::after { content: "\2192"; margin-left: 8px; letter-spacing: 0; }
  .fab-on-dark .o-afab { background: var(--o-cream); color: var(--o-ink); box-shadow: none; }
  .fab-on-dark .o-afab__art { background: #dcdcdc; }
  .o-afab:hover { background: var(--o-ink); color: var(--o-cream); }
  .fab-on-dark .o-afab:hover { background: var(--o-cream); color: var(--o-ink); }
  .o-dock .o-pill--light { background: rgba(236, 235, 231, 0.94); }
  .menu-on-dark .o-dock .o-pill--light, .menu-open .o-dock .o-pill--light { background: rgba(38, 38, 36, 0.94); }
  .o-dock .o-pill--light:hover { background: var(--o-ink); }
  .menu-on-dark .o-dock .o-pill--light:hover { background: var(--o-cream); }
}
/* Very narrow phones: shed the arrow, then the art, so it never meets the dock. */
@media (max-width: 359px) { .o-afab__label::after { display: none; } }
@media (max-width: 339px) { .o-afab { padding-left: 14px; } .o-afab__art { display: none; } }

/* Audit start dialog */
.o-adlg {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--o-gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--o-font); animation: o-fade .3s ease both; overflow-y: auto;
}
.o-adlg[hidden] { display: none; }
.o-adlg__panel { width: min(560px, 100%); border-radius: 10px; overflow: hidden; background: var(--o-black); color: var(--o-cream); animation: o-rise .5s var(--o-ease) both; }
.o-adlg__art { position: relative; height: 150px; background: #050505; }
.o-adlg__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.o-adlg__art .o-label { position: absolute; left: 22px; top: 22px; }
.o-adlg__art .o-pill { position: absolute; right: 14px; top: 14px; }
.o-adlg__body { padding: 24px 22px 22px; }
.o-adlg__title { margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; }
.o-adlg__form { display: grid; gap: 6px; margin-top: 22px; }
.o-adlg__form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.o-adlg__form input { width: 100%; height: 46px; padding: 0 14px; border-radius: 5px; border: 1px solid transparent; background: var(--o-card-dark); color: var(--o-cream); font: 15px var(--o-font); }
.o-adlg__form input::placeholder { color: rgba(246, 244, 238, 0.45); }
.o-adlg__form input:focus { outline: none; border-color: rgba(246, 244, 238, 0.5); box-shadow: none; }
.o-adlg__form .o-pill { width: 100%; margin-top: 4px; }
.o-adlg__error { margin: 4px 0 0; font-size: 12px; color: #ffb4a4; }
.o-adlg__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
@keyframes o-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .o-adlg, .o-adlg__panel { animation: none; } }

/* ==========================================================================
   Website audit: scanning overlay + report (js/audit.js)
   Same language as the loader and menu: black ground, cream type, hairlines.
   The accent marks only what needs fixing (.is-weak).
   ========================================================================== */
.o-modal-open, .o-modal-open body { overflow: hidden; }

.o-scan, .o-rep {
  position: fixed; inset: 0; z-index: 300;
  background: var(--o-black); color: var(--o-cream);
  font-family: var(--o-font); -webkit-font-smoothing: antialiased;
}
.o-scan[hidden], .o-rep[hidden] { display: none; }
.o-scan *, .o-rep * { box-sizing: border-box; }
.o-scan :is(h2, h3, h4, p, ol, ul), .o-rep :is(h2, h3, h4, p, ol, ul) { margin: 0; padding: 0; }
.o-scan .o-mark__l, .o-rep .o-mark__l { fill: var(--o-cream); }
.o-scan .o-mute, .o-rep .o-mute { color: var(--o-mute-dark); }

/* Scanning */
.o-scan { display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top, 0px)) var(--o-gutter) calc(24px + env(safe-area-inset-bottom, 0px)); animation: o-fade .4s ease both; }
.o-scan__inner { width: min(560px, 100%); }
.o-scan__head { display: flex; align-items: center; gap: 12px; }
.o-scan__mark { width: 30px; height: 23px; flex: none; }
.o-scan__count { margin-top: 28px; font-size: clamp(88px, 16vw, 168px); font-weight: 500; letter-spacing: -0.06em; line-height: .85; font-variant-numeric: tabular-nums; }
.o-scan__bar { position: relative; height: 1px; margin-top: 28px; background: var(--o-rule-dark); overflow: hidden; }
.o-scan__bar span { position: absolute; inset: 0; background: var(--o-cream); transform: scaleX(0); transform-origin: 0 50%; }
.o-scan__now { margin-top: 16px; font-size: 15px; letter-spacing: -0.01em; }
.o-scan__steps { list-style: none; margin-top: 36px !important; border-top: 1px solid var(--o-rule-dark); }
.o-scan__steps li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--o-rule-dark); font-size: 13px; color: var(--o-mute-dark); transition: color .3s ease; }
.o-scan__steps li.is-done, .o-scan__steps li.is-now { color: var(--o-cream); }
.o-scan__n, .o-scan__state { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--o-mute-dark); }
.o-scan__steps li.is-now .o-scan__state { color: var(--o-accent); }
.o-scan__steps li.is-now .o-scan__state::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: o-blink 1s ease-in-out infinite; }
.o-scan__foot { margin-top: 20px !important; }
@keyframes o-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes o-blink { 50% { opacity: .2; } }

/* Report */
.o-rep { display: flex; flex-direction: column; animation: o-fade .4s ease both; }
.o-rep__panel { display: flex; flex-direction: column; height: 100%; }
.o-rep__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--o-gutter) 14px;
  border-bottom: 1px solid var(--o-rule-dark);
}
.o-rep__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.o-rep__mark { width: 30px; height: 23px; flex: none; }
.o-rep__actions { display: flex; gap: 6px; }
.o-rep__scroll {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(40px, 6vw, 88px) var(--o-gutter) calc(80px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
}
.o-rep__scroll::-webkit-scrollbar { display: none; }
.o-rep__scroll > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.o-rep .print-only-header, .o-rep__print-contact { display: none; }

.o-rep__title { margin-top: 18px !important; font-size: clamp(40px, 8vw, 132px); overflow-wrap: anywhere; font-weight: 500; letter-spacing: -0.045em; line-height: .9; }
.o-rep__url { margin-top: 20px !important; font-size: 15px; }
.o-rep__url a { color: var(--o-cream); }
#reportEmailNotification { margin-top: 10px; }

.o-rep__hero { display: grid; grid-template-columns: 5fr 7fr; gap: var(--o-gutter); margin-top: clamp(56px, 8vw, 120px); padding-top: 18px; border-top: 1px solid var(--o-rule-dark); }
.o-rep__num { margin: 14px 0 12px; font-size: clamp(110px, 17vw, 240px); font-weight: 500; letter-spacing: -0.06em; line-height: .8; font-variant-numeric: tabular-nums; }
.o-rep__num small { font-size: .18em; letter-spacing: -0.02em; color: var(--o-mute-dark); margin-left: .25em; }
.o-rep__num .is-weak { color: var(--o-accent); }
.o-rep__lede { margin-top: 14px !important; overflow-wrap: anywhere; font-size: clamp(24px, 2.7vw, 40px); font-weight: 500; letter-spacing: -0.028em; line-height: 1.08; max-width: 22ch; }

.o-rep__sec { margin-top: clamp(64px, 9vw, 128px); }
.o-rep__sh { display: grid; grid-template-columns: 1fr 3fr; gap: 6px var(--o-gutter); align-items: baseline; padding: 14px 0 22px; border-top: 1px solid var(--o-rule-dark); }
.o-rep__sh h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
.o-rep__sh p { grid-column: 2; max-width: 52ch; }
.o-rep__split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--o-gutter); }
.o-rep__split .o-rep__sh { grid-template-columns: 1fr 2fr; }

.o-rep__rows { list-style: none; border-top: 1px solid var(--o-rule-dark); }
.o-rep__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) 3.5ch; gap: var(--o-gutter); align-items: center; padding: 14px 0; border-bottom: 1px solid var(--o-rule-dark); font-size: 15px; }
.o-rep__row > strong { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; text-align: right; font-variant-numeric: tabular-nums; }
.o-rep__meter { position: relative; height: 1px; background: var(--o-rule-dark); }
.o-rep__meter span { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--o-cream); transform-origin: 0 50%; }
.o-rep__row.is-weak .o-rep__meter span { background: var(--o-accent); }
.o-rep__row.is-weak > strong, .o-rep__row.is-weak > .o-label { color: var(--o-accent); }
.o-rep__row--text { grid-template-columns: minmax(0, 1fr) auto; }
.o-rep__row--text strong { display: block; font-weight: 500; }
.o-rep__row--text small { display: block; margin-top: 3px; font-size: 13px; color: var(--o-mute-dark); }
.o-rep__row--text > .o-label { color: var(--o-mute-dark); }
.o-rep__rows--tight .o-rep__row { padding: 10px 0; font-size: 14px; }

.o-rep__list { list-style: none; border-top: 1px solid var(--o-rule-dark); }
.o-rep__list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--o-rule-dark); font-size: 15px; line-height: 1.4; }

.o-rep__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--o-gutter); }
.o-rep__stats > div { padding-top: 14px; border-top: 1px solid var(--o-rule-dark); }
.o-rep__stats strong { display: block; margin: 18px 0 6px; font-size: clamp(40px, 4.6vw, 72px); font-weight: 500; letter-spacing: -0.05em; line-height: .9; }
.o-rep__stats small { font-size: 12px; color: var(--o-mute-dark); }

.o-rep__tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; border-top: 1px solid var(--o-rule-dark); }
.o-rep__tags .o-label { padding: 9px 12px; border-radius: 5px; background: var(--o-card-dark); }

.o-rep__plan { list-style: none; }
.o-rep__fix { display: grid; grid-template-columns: 1fr 3fr; gap: var(--o-gutter); padding: 22px 0 30px; border-top: 1px solid var(--o-rule-dark); }
.o-rep__fix-n { font-size: clamp(40px, 4.6vw, 72px); font-weight: 500; letter-spacing: -0.05em; line-height: .85; color: var(--o-mute-dark); }
.o-rep__fix.is-weak .o-rep__fix-n, .o-rep__fix.is-weak .o-rep__sev { color: var(--o-accent); }
.o-rep__fix-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.o-rep__fix h4 { margin: 12px 0 10px; font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; max-width: 32ch; }
.o-rep__fix-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--o-gutter); margin-top: 20px; }
.o-rep__fix-cols > div { padding-top: 12px; border-top: 1px solid var(--o-rule-dark); }
.o-rep__fix-cols p { margin-top: 8px; color: rgba(246, 244, 238, 0.82); }

.o-rep__cta { margin-top: clamp(80px, 11vw, 160px); padding-top: 18px; border-top: 1px solid var(--o-rule-dark); }
.o-rep__cta .o-statement { max-width: 20ch; }
.o-rep__cta .o-small { margin-top: 18px; max-width: 52ch; }
.o-rep__cta-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

@media (max-width: 860px) {
  .o-rep__hero, .o-rep__split, .o-rep__fix, .o-rep__fix-cols { grid-template-columns: 1fr; }
  .o-rep__split { gap: clamp(64px, 9vw, 128px); }
  .o-rep__hero { row-gap: 48px; }
  .o-rep__sh, .o-rep__split .o-rep__sh { grid-template-columns: 1fr; }
  .o-rep__sh p { grid-column: 1; }
  .o-rep__stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .o-rep__row { grid-template-columns: minmax(0, 1fr) 3.5ch; row-gap: 10px; }
  .o-rep__row:not(.o-rep__row--text) .o-rep__meter { grid-column: 1 / -1; grid-row: 2; }
  .o-rep__row--text { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 700px) { .o-rep .o-hide-sm { display: none; } }
@media (prefers-reduced-motion: reduce) { .o-scan, .o-rep { animation: none; } }

/* Report as PDF: only the report, ink on white, laid out for A4.
   The page is ~720px wide, which would trip the phone layout, so print
   restates the two-column grids at a document scale. */
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  html, body { background: #fff !important; }
  .o-modal-open body > *:not(#auditReportModal) { display: none !important; }
  .o-rep { position: static !important; display: block !important; animation: none !important; background: #fff !important; color: #0b0b0c !important; font-size: 9.5pt; line-height: 1.4; }
  .o-rep__panel, .o-rep__scroll { display: block !important; height: auto !important; overflow: visible !important; padding: 0 !important; }
  .o-rep__scroll > * { max-width: none; }
  .o-rep, .o-rep * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

  .o-rep .o-mute, .o-rep__row--text small, .o-rep__stats small, .o-rep__num small, .o-rep__fix-n, .o-rep__row--text > .o-label { color: #6b6b67 !important; }
  .o-rep__url a, .o-rep__fix-cols p, .o-rep .o-soft { color: #0b0b0c !important; opacity: 1; }
  .o-rep :is(.o-rep__sh, .o-rep__rows, .o-rep__row, .o-rep__list, .o-rep__list li, .o-rep__stats > div, .o-rep__tags, .o-rep__fix, .o-rep__fix-cols > div, .o-rep__hero, .o-rep__cta) { border-color: rgba(0, 0, 0, 0.16) !important; }
  .o-rep .o-label { font-size: 7pt; }

  .o-rep .print-only-header { display: block !important; margin: 0 0 18px !important; padding: 0 0 8px !important; border-bottom: 1px solid #0b0b0c !important; font-size: 8pt; }
  .o-rep .print-only-header span { float: right; color: #6b6b67; }

  .o-rep__head { break-after: avoid; }
  .o-rep__title { margin-top: 6px !important; font-size: 30pt; }
  .o-rep__url { margin-top: 6px !important; font-size: 9pt; }

  .o-rep__hero { grid-template-columns: 2fr 3fr !important; gap: 24px !important; margin-top: 18px; padding-top: 10px; break-inside: avoid; }
  .o-rep__num { margin: 6px 0; font-size: 64pt; }
  .o-rep__lede { margin-top: 6px !important; font-size: 15pt; max-width: none; }

  .o-rep__sec { margin-top: 22px; }
  .o-rep__sh, .o-rep__split .o-rep__sh { grid-template-columns: 32px 1fr !important; column-gap: 10px !important; padding: 8px 0 10px; break-after: avoid; }
  .o-rep__sh p { grid-column: 2 !important; }
  .o-rep__sh h3 { font-size: 14pt; }
  .o-rep__split { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }

  .o-rep__row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) 3ch !important; gap: 16px; padding: 6px 0; font-size: 9.5pt; break-inside: avoid; }
  .o-rep__row:not(.o-rep__row--text) .o-rep__meter { grid-column: auto !important; grid-row: auto !important; }
  .o-rep__row--text { grid-template-columns: minmax(0, 1fr) auto !important; }
  .o-rep__row--text small { font-size: 8pt; margin-top: 1px; }
  .o-rep__rows--tight .o-rep__row { padding: 5px 0; font-size: 9.5pt; }
  .o-rep__row.is-weak > .o-label, .o-rep__row.is-weak > strong { color: var(--o-accent) !important; }
  .o-rep__row > strong { font-size: 12pt; }
  .o-rep__meter { background: rgba(0, 0, 0, 0.12) !important; }
  .o-rep__meter span { background: #0b0b0c !important; }
  .o-rep__row.is-weak .o-rep__meter span { background: var(--o-accent) !important; }

  .o-rep__list li { padding: 6px 0; font-size: 9pt; grid-template-columns: 24px 1fr; break-inside: avoid; }

  .o-rep__stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; break-inside: avoid; }
  .o-rep__stats > div { padding-top: 8px; }
  .o-rep__stats strong { margin: 8px 0 2px; font-size: 20pt; }
  .o-rep__stats small { font-size: 7.5pt; }

  .o-rep__tags { padding-top: 8px; gap: 4px; }
  .o-rep__tags .o-label { padding: 4px 7px; background: rgba(0, 0, 0, 0.06) !important; }

  .o-rep__fix { grid-template-columns: 1fr 9fr !important; gap: 16px !important; padding: 10px 0 12px; break-inside: avoid; }
  .o-rep__fix-n { font-size: 20pt; }
  .o-rep__fix.is-weak .o-rep__fix-n { color: var(--o-accent) !important; }
  .o-rep__fix h4 { margin: 4px 0; font-size: 12pt; max-width: none; }
  .o-rep__fix-cols { grid-template-columns: 1fr 1fr !important; gap: 16px !important; margin-top: 8px; }
  .o-rep__fix-cols > div { padding-top: 6px; }
  .o-rep__fix-cols p { margin-top: 3px; font-size: 8.5pt; }
  .o-rep .o-small { font-size: 8.5pt; }

  .o-rep__cta { margin-top: 22px; padding-top: 10px; break-inside: avoid; }
  .o-rep__cta .o-statement { font-size: 15pt; max-width: none; }
  .o-rep__cta .o-small { margin-top: 6px; max-width: none; }
  .o-rep__cta .o-rep__print-contact { display: block; margin-top: 8px; font-size: 9pt; }
}
