/* Phoenix Drywall & Insulation · the inner page system, v7 (6 Nov 2026). Loaded on every page except the home, after
   brand.css (tokens, buttons, the bar, the menu, the footer) and system.css (the home's system: grounds, caps heads,
   tiles, index rows, regions, reviews, questions, the copper close, the unveil, the phone dock).
   Kiarash, 6 Nov: "build all other pages with the new design philosophys", the home of 5 Nov: Tony Yachts' philosophy
   (one system repeated, little wasted space, the photos sell), the grounds from their own brand and material instead of
   one black, every section head in tracked caps over a hairline, names on the photos, copper only where you act, the
   copper close with the quote form's first question. The C version of this file is kept at lab/rollout/inner-c.css.
   Part 1 is that system for the inner pages, keeping the class names the page bodies already use (so their words and
   links never move); part 2 the shared media components; part 3 the older pieces still used (the quote form). */

/* ================================================================ 1. SYSTEM ==== */

/* ---------------------------------------------------------------- grounds ---- */
/* Every inner section is a .chap; the copper close (Close.astro, not a .chap) is always last. The sections alternate
   ember and primed counted UP from the close, so the one above the close is ember and no two neighbours ever share a
   ground, whatever a page's count. A page can pin one with .is-ember / .is-primed / .is-night (the alternation sits in
   :where(), so a pin always wins). Each ground re-binds the tokens the older page sheets read (--ivory, --mist, --rule,
   --line, --surface), so services.css, projects.css, areas.css and pages.css follow without edits; text on a photo
   reads --onph, which no ground touches. Contrast (measured for the home): ivory on ember 13.2, stone on ember 7.1,
   ink on primed 13.9, soft on primed 5.7. Never copper text or a copper fill on primed (2.35): there the main button
   is ink. */
.inner main .chap { position: relative; padding: 48px 0; border-top: 0; background: var(--bg); color: var(--fg); }
.inner main :where(.chap:nth-last-child(odd of .chap)), .inner main .chap.is-ember {
  --bg: #261E1A; --fg: #ECE6DA; --fg2: #B3A99C; --hair: #3D322B; --line2: #7A6A5E; --ring: var(--copper);
  --ivory: #ECE6DA; --mist: #B3A99C; --rule: #3D322B; --line: #7A6A5E; --surface: #30261F; color-scheme: dark;
}
.inner main :where(.chap:nth-last-child(even of .chap)), .inner main .chap.is-primed {
  --bg: #ECE6DA; --fg: #1C1B19; --fg2: #5A5853; --hair: #CFC7B8; --line2: #8E877C; --ring: #1C1B19;
  --ivory: #1C1B19; --mist: #5A5853; --rule: #CFC7B8; --line: #8E877C; --surface: #DDD6C8; color-scheme: light;
}
.inner main .chap.is-night {
  --bg: var(--night); --fg: #ECE6DA; --fg2: #9E9A92; --hair: #2A2A2A; --line2: #6D6B67; --ring: var(--copper);
  --ivory: #ECE6DA; --mist: #9E9A92; --rule: #2A2A2A; --line: #6D6B67; --surface: #14161A; color-scheme: dark;
}
.inner main .chap :focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.inner main .chap ::selection { background: var(--fg); color: var(--bg); }
/* buttons on a ground: copper stays the action on the darks; on primed the main button is ink, the outline is ink */
.inner main .chap .btn--line, .inner main .chap .btn--ghost { color: var(--fg); border-color: var(--line2); }
.inner main :where(.chap:nth-last-child(even of .chap):not(.is-ember, .is-night)) .btn:not(.btn--line):not(.btn--ghost),
.inner main .chap.is-primed .btn:not(.btn--line):not(.btn--ghost) { background: #1C1B19; border-color: #1C1B19; color: #ECE6DA; }
@media (hover: hover) { .inner main .chap .btn--line:hover { border-color: var(--fg); } .inner main .chap .btn:hover { outline-color: var(--fg); } }
/* the old reading band is now just a ground like the others */
.primed { color-scheme: light; }

/* ---------------------------------------------------------------- breadcrumb -- */
/* the first line of every page. Over the photo at the top of a page with a fold (on its shade), in the flow otherwise.
   Every link is a 44px-tall, at least 44px-wide hit area. */
.crumbs { padding-top: 4px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-start; font: 400 14px/1.3 var(--sans); color: var(--mist); }
.crumbs li { display: flex; align-items: center; min-height: 44px; }
.crumbs li:not(:last-child)::after { content: "/"; padding: 0 10px; color: var(--line); }
.crumbs li:first-child::after { padding-left: 4px; }
.crumbs li:last-child { display: block; flex: 1 1 10ch; min-width: 0; padding: 12.9px 0; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--mist); text-decoration: none; }
.crumbs [aria-current] { color: var(--onph); }
@media (hover: hover) { .crumbs a:hover { color: var(--onph); } }
.inner main { position: relative; }
.inner main:has(> .crumbs + [data-sc-act] > .ifold:first-child) > .crumbs { position: absolute; z-index: 4; top: var(--bar); left: 0; right: 0; }
.inner main:has(> .crumbs + [data-sc-act] > .ifold:first-child) > .crumbs :is(a, li, li::after) { color: rgba(236, 230, 218, .82); text-shadow: 0 1px 10px rgba(var(--scrim), .7); }
.inner main:has(> .crumbs + [data-sc-act] > .ifold:first-child) > .crumbs [aria-current] { color: var(--onph); }

/* ---------------------------------------------------------------- the fold ---- */
/* IFold.astro, round 8 (6 Nov 2026): one pattern on every page. The H1 is the big headline (Bitter); the display line
   (their words) sits under it as the tag, in the home's fold__tag style; Get a free quote + Call; the Google rating line
   under them (as the home). Phones: the page's best photo across the top of the screen, fading into night, then the
   words; at 375x667 the H1 and both buttons in the first screen. Desktop: the photo full bleed (two side by side for a
   pair), the words on its shaded foot, the buttons and rating on the right, as the home's fold.
   Photo focus: IFold's pos / posD set --op / --op-d on each photo (phones / from 1024px). */
.ifold { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(90svh - var(--bar)); overflow: hidden; background: var(--night); color: var(--onph); }
.ifold__media { position: absolute; inset: 0 0 auto 0; height: calc(62svh - var(--bar)); display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.ifold__media picture { display: contents; }
.ifold__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); animation: settle 2.4s var(--ease) both;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.ifold__media img + img, .ifold__media picture + img { display: none; } /* a pair shows its second photo from 1024px */
.ifold__media::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; background: linear-gradient(to bottom, rgba(var(--scrim), .6), rgba(var(--scrim), 0)); pointer-events: none; }
.ifold__copy { position: relative; z-index: 2; padding-top: 20px; padding-bottom: 12px; }
/* the words keep a soft shade behind them where the copy climbs over the photo's foot */
.ifold__copy::before { content: ""; position: absolute; z-index: -1; inset: -48px 0 0 0; background: linear-gradient(to top, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .7) 70%, rgba(var(--scrim), 0) 100%); pointer-events: none; }
.ifold__label { margin: 0 0 10px; color: var(--onph); opacity: .82; font-size: 12px; }
.ifold__label + .ifold__h1 { margin-top: 0; }
.ifold__h1 { margin: 0; max-width: 17ch; font: 300 38px/1.06 var(--display); letter-spacing: -.01em; text-transform: none; text-wrap: balance; color: var(--onph); }
.ifold__h1--long { max-width: 20ch; font-size: 31px; line-height: 1.1; }
.ifold__h1 em { font: inherit; font-style: normal; color: inherit; }
/* their words under the headline: the home's .fold__tag */
.ifold__tag { margin: 10px 0 0; max-width: 34ch; font: italic 300 18px/1.35 var(--display); color: var(--mist); text-wrap: pretty; }
.ifold__tag em { font: inherit; }
.ifold__act { margin-top: 20px; display: grid; gap: 6px; }
.ifold__btns { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ifold__btns .btn { min-height: 52px; }
.ifold__btns .btn--line { color: var(--onph); border-color: var(--line); padding: 0 20px; }
.ifold__btns .btn--line .num { display: none; }
.ifold__rate { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; justify-self: start; color: var(--onph); text-decoration: none; font-size: 12px; }
.ifold__rate .num { font-size: 13px; letter-spacing: .06em; }
.ifold__cred { min-height: 0; margin: -8px 0 0; } /* Andie 9 Nov: licensed and insured, under the rating */
@media (hover: hover) { .ifold__rate:hover { text-decoration: underline; text-underline-offset: .3em; } }
.js .ifold__copy { animation: rise 1.1s var(--ease) .25s both; }
/* short phones (an SE at 667): a smaller photo and lines, so the H1 and the buttons stay in the first screen */
/* round 8 review: the photo fills all the space the words leave (a grid: the photo row takes the rest of the screen and
   runs 72px under the words' shade), so no empty black band sits between the photo and the H1 */
@media (max-height: 740px) and (max-width: 1023px) {
  .ifold { min-height: calc(100svh - var(--bar)); display: grid; grid-template-rows: minmax(160px, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
  .ifold__media { position: relative; inset: auto; grid-row: 1; height: auto; min-height: 0; margin-bottom: -72px; contain: size; }
  .ifold__media img { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
  .ifold__copy { grid-row: 2; }
  .ifold__h1 { font-size: 32px; }
  .ifold__h1--long { font-size: 26px; }
  .ifold__tag { margin-top: 6px; font-size: 16px; }
  .ifold__copy { padding-bottom: 4px; }
  .ifold__act { margin-top: 14px; gap: 0; }
  .ifold__btns .btn { min-height: 48px; }
}
@media (min-width: 560px) and (max-width: 1023px) { .ifold__h1 { font-size: 48px; } .ifold__h1--long { font-size: 40px; } .ifold__btns { grid-template-columns: auto auto; justify-content: start; } .ifold__btns .btn--line .num { display: inline; } }
@media (prefers-reduced-motion: reduce) { .ifold__media img, .js .ifold__copy { animation: none; } }

/* ---------------------------------------------------------------- the intro ---- */
/* the lede and the page's facts right under the fold (Service, Project, Area): a .chap without a chapter name, on its
   ground like every section */
.chap--intro { padding-top: 40px; }
.chap--intro .lead { max-width: 34ch; }

/* ---------------------------------------------------------------- section heads -- */
/* the home's head (system.css .head: tracked caps over a hairline, a link on the right) opens every chapter; under it
   the page's own H2 (their words) in Bitter, the size of the home's lead line */
.chap .head { margin-bottom: 18px; }
.chap__head { margin-bottom: 22px; }
.chap .h2 { margin: 0; max-width: 22ch; font: 300 28px/1.14 var(--display); letter-spacing: -.008em; color: var(--fg); text-wrap: balance; }
.chap .h2.head__h { max-width: none; font: 300 20px/1.45 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.chap__head > .label + .h2, .label + .h2 { margin-top: 10px; }
.chap__lede { margin: 14px 0 0; max-width: 38ch; color: var(--fg2); text-wrap: pretty; }
.chap--tight { padding-top: 0; }
.after { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.split > * + * { margin-top: 28px; }
.split > .head + * { margin-top: 0; }   /* a chapter's caps head is the first child of its .split: full width */

/* ---------------------------------------------------------------- words ---- */
.lead { margin: 0; max-width: 30ch; font: 300 22px/1.32 var(--display); letter-spacing: -.004em; color: var(--fg); text-wrap: pretty; }
.txt { margin: 0; max-width: 60ch; color: var(--fg2); text-wrap: pretty; }
.lead + .txt, .txt + .txt, .statement + .txt, .h2 + .txt, .label + .txt, .h2 + .lead, .h2 + .statement { margin-top: 14px; }
.statement { margin: 0; max-width: 20ch; font: 300 26px/1.2 var(--display); letter-spacing: -.006em; color: var(--fg); text-wrap: balance; }
.label + .statement { margin-top: 12px; }
.label { color: var(--fg2); }
.spec { color: var(--fg2); }
.btn--wrap { white-space: normal; text-align: center; line-height: 1.35; padding-block: 12px; }
.block-gap, .block + .block { margin-top: 40px; }
.lead a, .txt a, .disc__p a, .statement a, .mrow__q a, .mrow__p a { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line2); text-underline-offset: .22em; padding: 13px 0; }
@media (hover: hover) { .lead a:hover, .txt a:hover, .disc__p a:hover, .mrow__q a:hover { text-decoration-color: currentColor; } }
.tlink { color: var(--fg); border-bottom-color: var(--line2); }
@media (hover: hover) { .tlink:hover { border-color: var(--fg); } }

/* ---------------------------------------------------------------- spec rows ---- */
.specrows { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.specrows > li, .specrows > div { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 17px; line-height: 1.4; color: var(--fg); }
.specrows dt { flex: 0 0 34%; margin: 0; font: 400 12px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--fg2); }
.specrows dd { margin: 0; min-width: 0; }
.specrows a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); }

/* ---------------------------------------------------------------- photo rows ---- */
/* .mrows: a photo, its name, their lines. Phones: the photo across the column at its own shape (the photos were redone
   for their frames on 6 Nov), the name and lines under it. Desktop: the photo beside the words (one column) or above
   them (a 2-up list). <ul class="mrows"><li class="mrow"><div class="mrow__in"> .frame.mrow__img + .mrow__body </div></li></ul>;
   the whole row can be the link (<a class="mrow__in">). Job rows (.mrows--job): the same with the town as the name. */
.mrows { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.mrow { min-width: 0; }
.mrow__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; color: var(--fg); text-decoration: none; }
.mrow__img { position: relative; display: block; overflow: hidden; background: var(--surface); }
.mrow__img img, .mrow__img video { display: block; width: 100%; height: auto; max-height: 72svh; object-fit: cover; transition: transform 1.6s var(--ease); }
.mrow__body { display: grid; gap: 6px; align-content: start; justify-items: start; min-width: 0; padding-top: 12px; }
.mrow__name { margin: 0; font: 300 24px/1.15 var(--display); letter-spacing: -.006em; text-wrap: balance; color: var(--fg); }
.mrow__h { margin: 0; display: grid; gap: 4px; font: inherit; }
.mrow__q { margin: 0; font: 300 19px/1.42 var(--display); color: var(--fg); text-wrap: pretty; }
.mrow__p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--fg2); text-wrap: pretty; }
.mrow__list { list-style: none; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.55; color: var(--fg2); }
.mrow__list li { display: inline; }
.mrow__list li + li::before { content: " · "; }
.mrow .spec { font-size: 12px; letter-spacing: .12em; }
.mrow .tlink { margin-top: 2px; }
.mrow__go { display: inline-block; min-height: 44px; padding: 12px 0; font-size: 16px; line-height: 1.35; color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line2); text-underline-offset: .22em; }
.mrow__go .arw { display: inline-block; margin-left: 8px; vertical-align: middle; color: var(--fg2); }
.nw { white-space: nowrap; }
@media (hover: hover) { .mrow__go:hover { text-decoration-color: currentColor; } a.mrow__in:hover .mrow__img img { transform: scale(1.03); } a.mrow__in:hover .mrow__name .arw { transform: translateX(4px); } }
.mrow__name .arw { display: inline-block; margin-left: 8px; vertical-align: middle; transition: transform .3s var(--ease); }
.mrow--bare .mrow__body { padding-top: 0; border-top: 1px solid var(--hair); padding-top: 16px; }

/* ---------------------------------------------------------------- 2-up tiles ---- */
/* .grid2 of .tile: a photo with its name on it (the home's tiles). <a class="tile"><div class="frame r45"><img></div>
   <span class="tile__body"><span class="tile__name">…</span><span class="spec">…</span></span></a> */
.grid2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid2 > li { min-width: 0; }
.tile { position: relative; display: block; margin: 0; color: var(--onph); text-decoration: none; }
.tile .frame img { transition: transform 1.6s var(--ease); }
.tile__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 48px 10px 10px; pointer-events: none;
  background: linear-gradient(to top, rgba(var(--scrim), .86) 0%, rgba(var(--scrim), .55) 50%, rgba(var(--scrim), 0) 100%); }
.inner .tile__name { display: block; font: 300 17px/1.15 var(--display); letter-spacing: -.004em; color: var(--onph); text-wrap: balance; }
.tile .spec, .tile__body .spec { color: var(--onph); opacity: .85; font-size: 11px; letter-spacing: .08em; }
a.tile { min-height: 44px; }
@media (hover: hover) { a.tile:hover .frame img { transform: scale(1.035); } }
.grid2 > .tile--pair { grid-column: span 2; }
.grid2--dense { grid-auto-flow: row dense; }
.tile__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* a photo frame on a ground: no surface band behind a loading photo that would read as a box */
.frame { background: var(--surface); }

/* ---------------------------------------------------------------- post lines, quotes -- */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.posts > li { display: grid; gap: 8px; justify-items: start; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.posts__q { margin: 0; font: 300 19px/1.42 var(--display); color: var(--fg); text-wrap: pretty; }
.posts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 15px; line-height: 1.5; color: var(--fg2); }
.voice { margin: 0; padding: 18px 0; border-top: 1px solid var(--hair); }
.voice p { margin: 0; max-width: 58ch; font: 300 20px/1.42 var(--display); color: var(--fg); text-wrap: pretty; }
.voice footer { margin-top: 10px; color: var(--fg2); }
.label + .voice { margin-top: 12px; }

/* ---------------------------------------------------------------- link rows ---- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; min-height: 56px; padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--fg); text-decoration: none; }
.rows__name { font: 300 22px/1.2 var(--display); letter-spacing: -.005em; }
.rows__line { grid-column: 1; color: var(--fg2); font-size: 15px; line-height: 1.5; }
.rows .arw { grid-column: 2; grid-row: 1; color: var(--fg2); transition: transform .3s var(--ease), color .3s var(--ease); }
@media (hover: hover) { .rows a:hover .arw { transform: translateX(4px); color: var(--fg); } }
.rows--pic a { grid-template-columns: 34% minmax(0, 1fr) auto; gap: 16px; padding: 10px 0; }
.rows--pic .frame { display: block; aspect-ratio: 3 / 2; }
.rows--pic .arw { grid-column: 3; }

/* ---------------------------------------------------------------- questions ---- */
/* .faq of .disc: the home's questions (system.css .q), on whatever ground the section has */
.faq { border-top: 1px solid var(--hair); }
/* round 8 (funnel.json spacing): a caps head's hairline is the list's top rule, never two lines 18px apart */
.head + .faq, .head + .posts, .head + .split__a > .posts:first-child, .head + .specrows, .head + .rows { border-top: 0; }
.head + .posts > li:first-child, .head + .split__a > .posts:first-child > li:first-child { padding-top: 0; }
.disc { border-bottom: 1px solid var(--hair); }
.disc > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 14px; gap: 16px; align-items: center; min-height: 56px; padding: 10px 0; font: 300 18px/1.38 var(--display); color: var(--fg); }
.disc > summary::-webkit-details-marker { display: none; }
.disc > summary i { position: relative; width: 14px; height: 14px; }
.disc > summary i::before, .disc > summary i::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.disc > summary i::after { transform: rotate(90deg); }
.disc[open] > summary i::after { transform: rotate(0); }
.disc__p { margin: 0; padding: 0 32px 18px 0; max-width: 60ch; color: var(--fg2); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.disc__p + .disc__p { margin-top: -6px; }
.disc__p a[href^="tel:"] { white-space: nowrap; }
.disc__h3 { display: inline; margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }
.disc::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
.disc[open]::details-content { block-size: auto; }

/* ---------------------------------------------------------------- a photo beside the lede -- */
.ledrow { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 16px; align-items: start; }
.ledrow > .frame { aspect-ratio: 4 / 5; }
.ledrow__p { margin: 0; font: 300 20px/1.36 var(--display); color: var(--fg); text-wrap: pretty; }

/* ---------------------------------------------------------------- more (before the close) -- */
/* the rest of what we do / more projects / other regions: one section above the close, built from the home's index
   rows (system.css .index/.row), tiles (.tiles/.tile) and regions (.regs/.reg) */
.chap--more .index { margin-top: 4px; }
.chap--more .tiles { margin-top: 0; }
.chap--more .regs + .head, .chap--more .index + .head, .chap--more .tiles + .head { margin-top: 40px; }

/* the copper close on an inner page (Close.astro): the home's close; an optional line under the headline, the page's
   own words around the number, and anything the page adds under the email (its Instagram posts) */
.close__note { margin: 12px 0 0; max-width: 40ch; color: var(--fg2); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.close__k { display: block; margin: 22px 0 -10px; color: var(--fg); font-size: 12px; }
.close__after { margin: 8px 0 0; max-width: 40ch; color: var(--fg2); font-size: 17px; line-height: 1.5; }
.close__extra { margin-top: 24px; color: var(--fg2); font-size: 15px; }
.close__extra a { color: var(--fg); }
.close .spec, .close .label { color: var(--fg2); }

/* Where we work on a service page: the page's own words, then the regions (system.css .regs) */
.svc-where__words { margin-bottom: 20px; }
.svc-where__words .h2 + .txt, .svc-where__words .txt + .txt { margin-top: 12px; }
.svc-where__words .txt { max-width: 60ch; }
.svc-where .regs + .after { margin-top: 20px; }
/* two regions (an area page's others): side by side, 4:5, on every width */
.regs--two li:first-child { grid-column: auto; }
.regs--two li:first-child .reg__media { aspect-ratio: 4 / 5; }

/* ---------------------------------------------------------------- tablet ---- */
@media (min-width: 768px) {
  .grid2 { gap: 12px; }
  .tile__two { gap: 12px; }
  .mrows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .mrows--one { grid-template-columns: minmax(0, 1fr); }
  .inner .tile__name { font-size: 20px; }
}

/* ---------------------------------------------------------------- desktop ---- */
@media (min-width: 1024px) {
  .crumbs { padding-top: 12px; }
  .ifold { min-height: calc(88svh - var(--bar)); }
  .ifold__media { inset: 0; height: auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
  .ifold__media img { object-position: var(--op-d, var(--op, 50% 50%)); -webkit-mask-image: none; mask-image: none; }
  .ifold__media img + img, .ifold__media picture + img { display: block; }
  .ifold__media::after { inset: 0; height: auto; background:
    linear-gradient(to top, rgba(var(--scrim), .92) 0%, rgba(var(--scrim), .64) 28%, rgba(var(--scrim), 0) 58%),
    linear-gradient(to bottom, rgba(var(--scrim), .62), rgba(var(--scrim), 0) 20%); }
  .ifold__copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; padding-bottom: 56px; }
  .ifold__copy::before { display: none; }
  .ifold__h1 { max-width: 18ch; font-size: clamp(52px, 4.6vw, 76px); line-height: 1.03; }
  .ifold__h1--long { max-width: 22ch; font-size: clamp(44px, 3.7vw, 60px); line-height: 1.06; }
  .ifold__label + .ifold__h1 { margin-top: 4px; }
  .ifold__tag { margin-top: 16px; font-size: 22px; color: var(--onph); opacity: .8; }
  .ifold__act { margin: 0; justify-items: end; gap: 14px; }
  .ifold__btns { grid-template-columns: auto auto; gap: 12px; }
  .ifold__btns .btn { min-height: 56px; padding: 0 30px; }
  .ifold__btns .btn--line .num { display: inline; }
  .ifold__rate { justify-self: end; }

  .inner main .chap { padding: 96px 0; }
  .chap--intro { padding-top: 72px; }
  .chap .head { margin-bottom: 36px; }
  .chap__head { margin-bottom: 40px; }
  .chap .h2 { font-size: 44px; line-height: 1.08; }
  .chap .h2.head__h { font-size: 30px; }
  .split { display: grid; grid-template-columns: 5fr 7fr; gap: 0 88px; align-items: start; }
  .split > * + * { margin-top: 0; }
  .split > .head { grid-column: 1 / -1; }
  .split__a { position: sticky; top: calc(var(--bar) + 40px); }
  .split__a .chap__head { margin-bottom: 0; }
  .lead { max-width: 28ch; font-size: 30px; line-height: 1.28; }
  .statement { font-size: 40px; line-height: 1.12; max-width: 17ch; }
  .txt { font-size: 18px; }
  .specrows { margin-top: 0; }
  .specrows > li, .specrows > div { min-height: 64px; font-size: 18px; }

  .mrows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
  .mrows--one { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .mrow__in { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 28px; }
  .mrows:not(.mrows--one) .mrow__in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mrow__img img, .mrow__img video { max-height: 78vh; }
  .mrow__body { padding-top: 0; }
  .mrows:not(.mrows--one) .mrow__body { padding-top: 16px; }
  .mrow__name { font-size: 28px; }
  .mrow__q { font-size: 22px; }
  .mrow__p { font-size: 17px; }

  .grid2 { gap: 24px; }
  .grid2--d3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid2--d4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile__two { gap: 24px; }
  .tile__body { padding: 80px 18px 16px; gap: 6px; }
  .inner .tile__name { font-size: 24px; }
  .tile .spec { font-size: 12px; letter-spacing: .12em; }

  .posts__q { font-size: 22px; }
  .voice p { font-size: 24px; }
  .rows--d2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 0; }
  .rows--d2 li { border-top: 1px solid var(--hair); }
  .rows--d2 a { border-bottom: 0; }
  .rows a { padding: 18px 0; }
  .rows--pic a { grid-template-columns: 200px minmax(0, 1fr) auto; gap: 24px; padding: 14px 0; }
  .rows__name { font-size: 26px; }
  .disc > summary { font-size: 22px; min-height: 76px; }
  .ledrow { gap: 32px; }
  .ledrow__p { font-size: 26px; line-height: 1.3; }
  .chap--more .regs + .head, .chap--more .index + .head, .chap--more .tiles + .head { margin-top: 72px; }
  /* Questions: the home's layout, the head on the left (no hairline), the list on the right */
  .chap--qs > .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 56px; align-items: start; }
  .chap--qs .head { border-bottom: 0; margin: 0; padding-bottom: 0; position: sticky; top: calc(var(--bar) + 24px); }
  .chap--qs .head + .faq { border-top: 1px solid var(--hair); }
  .regs--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regs--two .reg__media, .regs--two li:first-child .reg__media { aspect-ratio: 3 / 2; }
  .svc-where__words { margin-bottom: 36px; }
  /* every inner page's region tiles: 3:2 on desktop (a 4:5 row of three was taller than most pages' own proof) */
  .inner .regs .reg__media, .inner .regs li:first-child .reg__media { aspect-ratio: 3 / 2; }
  .inner .regs:not(.regs--small) .reg__name { padding: 72px 22px 20px; }
  .close__note, .close__after { font-size: 19px; }
}

/* ================================================== 2. MEDIA COMPONENTS (C) ==== */
/* Loop.astro, Walkthrough.astro, VideoCard.astro, Player.astro, Compare.astro and the lightbox: square corners, no
   drop shadows, controls 44px and up, the copper focus ring. Used by pages in every group. */
.lightbox {border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; display: none; place-items: center; }
.lightbox[open] {display: grid; }
.lightbox::backdrop {background: rgba(var(--scrim), .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox figure {margin: 0; display: grid; gap: 0.8rem; max-width: min(92vw, 70rem); }
.lightbox img {max-height: 82dvh; max-width: 92vw; width: auto; height: auto; object-fit: contain; margin-inline: auto; }
.lightbox figcaption {color: var(--brand-light-soft); font-size: var(--sc-t-sm); text-align: center; }
.lightbox__close {position: fixed; font: inherit; color: var(--brand-light); background: rgba(var(--scrim), .88); border: 1px solid var(--line); border-radius: 0; cursor: pointer; min-height: 44px; }
.lightbox__close {top: 1rem; right: 1rem; padding: 0.55em 1em; font-size: var(--sc-t-sm); }
.cmp {margin: 0; display: grid; gap: 0.75rem; }
.cmp__stage {--pos: 50%; position: relative; overflow: hidden; background: var(--brand-dark-surface); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.cmp__stage img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cmp__after {clip-path: inset(0 0 0 var(--pos)); }
.cmp__line {position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--brand-light); pointer-events: none; }
.cmp__line::after {content: ""; position: absolute; top: 50%; left: 50%; width: 2.75rem; height: 2.75rem; transform: translate(-50%, -50%); border-radius: 0; background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6' fill='none' stroke='%230A0B0D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1.35rem no-repeat; }
.cmp__tag {position: absolute; bottom: 0.75rem; font-size: var(--sc-t-xs); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; color: var(--ivory); background: rgba(var(--scrim), .88); padding: 0.45em 0.8em; border-radius: 0; pointer-events: none; }
.cmp__tag--b {left: 0.75rem; }
.cmp__tag--a {right: 0.75rem; }
.cmp__range {position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.cmp__stage:has(.cmp__range:focus-visible) {outline: 2px solid var(--copper); outline-offset: 3px; }
.cmp figcaption {font-size: var(--sc-t-sm); color: var(--sc-ink-soft); line-height: 1.45; }
.cmp figcaption b {display: block; font-weight: 500; color: var(--sc-ink); }
.loop {margin: 0; display: grid; gap: 0.6rem; }
.loop__frame {position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--brand-dark-surface); }
.loop--wide .loop__frame {aspect-ratio: 16 / 9; }
.loop__video {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.loop__toggle {position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid rgba(236, 230, 218, .4); border-radius: 0; background: rgba(var(--scrim), .88); color: var(--ivory); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (hover: hover) { .loop__toggle:hover {border-color: var(--ivory); } }
.loop__toggle:focus-visible {outline: 2px solid var(--copper); outline-offset: 3px; }
.loop__toggle[data-state="playing"] .loop__play, .loop__toggle[data-state="paused"] .loop__pause {display: none; }
.loop figcaption {font-size: var(--sc-t-sm); line-height: 1.45; color: var(--sc-ink-soft); }
.loop figcaption b {color: var(--sc-ink); font-weight: 500; }
.walkv {margin: 0; display: grid; gap: 0.6rem; }
.walkv__video {aspect-ratio: 9 / 16; background: var(--brand-dark-surface); overflow: hidden; }
.walkv__video video {width: 100%; height: 100%; object-fit: cover; display: block; }
.walkv__cap {display: grid; gap: 0.1rem; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.walkv__cap b {color: var(--sc-ink); font-weight: 500; }
.vcard {all: unset; box-sizing: border-box; display: grid; align-content: start; gap: 0.45rem; cursor: pointer; color: var(--sc-ink); }
.vcard__media {position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; background: var(--brand-dark-surface, #1b1815); }
.vcard--wide .vcard__media {aspect-ratio: 16 / 9; }
.vcard__media img {width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s var(--ease); }
.vcard__play {position: absolute; left: 0.7rem; bottom: 0.7rem; width: 2.4rem; height: 2.4rem; border-radius: 0; background: color-mix(in oklab, var(--brand-dark) 55%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line); }
.vcard__play::after {content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 0.45rem 0 0.45rem 0.72rem; border-color: transparent transparent transparent var(--brand-light); }
.vcard__dur {position: absolute; right: 0.6rem; bottom: 0.75rem; font-size: var(--sc-t-xs); font-variant-numeric: tabular-nums; color: var(--brand-light); background: color-mix(in oklab, var(--brand-dark) 60%, transparent); padding: 0.15em 0.5em; border-radius: 0; }
.vcard__t {font-size: var(--sc-t-sm); font-weight: 500; line-height: 1.3; }
.vcard__n {font-size: var(--sc-t-xs); color: var(--sc-ink-soft); line-height: 1.35; margin-top: -0.2rem; }
.vcard:focus-visible .vcard__media {outline: 2px solid var(--copper); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .vcard:hover .vcard__media img {transform: scale(1.03); }
}
.vplayer {padding: 0; border: 0; background: transparent; max-width: min(94vw, 30rem); width: 100%; color: var(--brand-light); }
.vplayer.is-wide {max-width: min(94vw, 60rem); }
.vplayer::backdrop {background: color-mix(in oklab, var(--brand-dark) 90%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vplayer__frame {background: var(--night); }
.vplayer__frame video {display: block; width: 100%; max-height: 82svh; aspect-ratio: 9 / 16; object-fit: contain; background: var(--night); }
.vplayer.is-wide .vplayer__frame video {aspect-ratio: 16 / 9; }
.vplayer__bar {display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; }
.vplayer__cap {margin: 0; display: grid; gap: 0.15rem; font-size: var(--sc-t-sm); }
.vplayer__cap span {color: color-mix(in oklab, var(--brand-light) 70%, transparent); font-size: var(--sc-t-xs); }
.vplayer__close {font: inherit; font-size: var(--sc-t-sm); color: var(--brand-light); background: transparent; border: 1px solid color-mix(in oklab, var(--brand-light) 40%, transparent); border-radius: 0; padding: 0 1.1em; min-height: 44px; cursor: pointer; }

/* ======================================== 3. COMPATIBILITY (old page bodies) ==== */
/* Only the rules of the old inner.css that a page not yet rebuilt in C still uses (checked class by class against
   src/ and public/js on 3 Nov 2026; 355 dead rules from an earlier project were dropped). Italic numerals are
   upright, pills are square. The quote page form (.opts, .bform, .book) belongs to the OTHER group: move it to
   pages.css in its C pass. The integrator deletes this section when no page uses it. */
.page-head {padding-block: clamp(3rem, 7vw, 6rem) var(--sc-7); display: grid; gap: var(--sc-5); max-width: 52rem; }
.page-head .body {color: var(--sc-ink-soft); }
.opts {display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--sc-2); }
.opts label {display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border: 1px solid var(--sc-hairline-strong); cursor: pointer; }
.opts label:has(input:checked) {border-color: var(--sc-ink); background: var(--brand-dark-surface); }
.opts input {position: absolute; opacity: 0; pointer-events: none; }
.opts b {font-weight: 500; line-height: 1.3; }
.opts span {font-size: var(--sc-t-xs); color: var(--sc-ink-soft); line-height: 1.4; }
.section {padding-block: var(--sc-7) var(--sc-9); }
.opts label {position: relative; }
.fade-up {animation: fadeUp 700ms var(--sc-ease-out) both; }
.fade-up > * {animation: fadeUp 700ms var(--sc-ease-out) both; }
.fade-up > :nth-child(2) {animation-delay: 80ms; }
.fade-up > :nth-child(3) {animation-delay: 160ms; }
.fade-up > :nth-child(4) {animation-delay: 240ms; }
@keyframes fadeUp {from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-up > * {animation: none; }
}
.jump {display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump a {display: inline-flex; align-items: center; min-height: 44px; font-size: var(--sc-t-sm); padding: 0 1em; border-radius: 0; border: 1px solid var(--sc-hairline-strong); text-decoration: none; color: var(--sc-ink-soft); }
@media (hover: hover) { .jump a:hover {color: var(--sc-ink); border-color: var(--sc-ink); } }
.next {list-style: none; margin: var(--sc-6) 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--sc-hairline-strong); }
.next li {display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--sc-hairline); counter-increment: step; }
.next li::before {content: counter(step, decimal-leading-zero); font: 400 12px/1.9 var(--sans); letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--sc-ink-soft); }
.next b {display: block; font-weight: 500; color: var(--sc-ink); }
.next span {font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.next li > span {grid-column: 2; }
.next li > b {grid-column: 2; }
.next li::before {grid-column: 1; grid-row: 1 / span 2; }
.page-head--tight {padding-block: clamp(2rem, 4vw, 3rem) var(--sc-5); gap: var(--sc-3); max-width: 60rem; }
.page-head--tight .body {max-width: 46rem; }
.opts label {border-radius: 0; transition: border-color var(--sc-d-fast), background var(--sc-d-fast); padding-right: 2.6rem; }
.opts label::after {content: ""; position: absolute; top: 1rem; right: 1rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--sc-ink) 40%, transparent); transition: background var(--sc-d-fast), border-color var(--sc-d-fast), box-shadow var(--sc-d-fast); }
.opts label:has(input:checked)::after {background-color: var(--sc-ink); border-color: var(--sc-ink); box-shadow: inset 0 0 0 3px var(--brand-dark-surface); }
@media (hover: hover) {
  .opts label:hover {border-color: var(--sc-ink-soft); }
}
.opts label:has(input:focus-visible) {outline: 2px solid var(--copper); outline-offset: 2px; }
.opts label:active {background: color-mix(in oklab, var(--sc-ink) 6%, transparent); }
.book {display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bform {display: grid; gap: var(--sc-7); min-width: 0; }
.bform fieldset {border: 0; padding: 0; margin: 0; display: grid; gap: var(--sc-3); min-width: 0; }
.bform legend {display: flex; align-items: baseline; gap: 0.7rem; padding: 0; margin-bottom: var(--sc-4); font-family: var(--sc-font-display); font-size: var(--sc-t-xl); letter-spacing: -0.015em; line-height: 1.15; }
.bform legend .n {font: 400 12px/1 var(--sans); letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--sc-ink-soft); }
.bform .hint {margin: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.bform legend + .hint {margin-top: calc(-1 * var(--sc-3)); }
.bform .hint.is-error {color: var(--sc-ink); }
.bform .hint.is-error::before {content: "! "; font-weight: 500; }
.opts--when {grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts--when label {padding-block: 1rem; }
.bfields {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sc-5) var(--sc-5); }
.bfields .wide {grid-column: 1 / -1; }
.bfield {display: grid; gap: 0.35rem; font-size: var(--sc-t-xs); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--sc-ink-soft); }
.bfield .opt {text-transform: none; letter-spacing: 0; font-weight: 400; }
.bfield input, .bfield textarea {font: inherit; font-size: var(--sc-t-base, 1rem); font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--sc-ink); background: transparent; border: 0; border-bottom: 1px solid var(--sc-hairline-strong); border-radius: 0; padding: 0.55em 0; min-height: 2.75rem; transition: border-color var(--sc-d-fast); }
.bfield textarea {resize: vertical; min-height: 7rem; line-height: 1.5; }
.bfield input::placeholder, .bfield textarea::placeholder {color: var(--sc-ink-soft); opacity: 0.55; }
.bfield input:focus-visible, .bfield textarea:focus-visible {outline: 2px solid var(--copper); outline-offset: 4px; border-bottom-color: var(--sc-ink); }
.bfield.is-invalid input {border-bottom: 2px solid var(--sc-ink); }
.bfield.is-invalid {color: var(--sc-ink); }
.bform__send {display: grid; gap: var(--sc-3); padding-top: var(--sc-5); border-top: 1px solid var(--sc-hairline-strong); }
.bform__send .btn {justify-self: start; }
.bform__note {margin: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); max-width: 54ch; line-height: 1.5; }
.bform__note.is-sent {color: var(--sc-ink); }
.book__side {position: sticky; top: 5.5rem; display: grid; gap: var(--sc-6); align-content: start; }
.book__photo {margin: 0; }
.book__photo img {width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--brand-dark-surface); }
.book__side .next {margin-top: var(--sc-3); }
.book__talk {display: grid; gap: var(--sc-3); justify-items: start; padding-top: var(--sc-5); border-top: 1px solid var(--sc-hairline-strong); }
.book__talk .book__meta {margin-top: 0; }
@media (max-width: 960px) {
  .book {grid-template-columns: minmax(0, 1fr); }
  .book__side {position: static; }
  .book__photo {display: none; }
}
@media (max-width: 560px) {
  .bfields {grid-template-columns: minmax(0, 1fr); }
  .bform__send .btn, .book__talk .btn {width: 100%; justify-content: center; }
}
