/* ==========================================================================
   Darth Cosmos v2 - inner pages (services, about, contact, legal, 404)
   ========================================================================== */

/* ---------- Page hero: copy left, rounded media card right ---------- */
.page-hero { position: relative; padding: clamp(1.75rem, 1rem + 2vw, 2.75rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: min(1000px, 90vw); aspect-ratio: 1; right: -20vw; top: -10%; border-radius: 50%; border: 1px solid rgb(215 252 112 / .07); }
.page-hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; }
.page-hero__grid { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4rem); align-items: center; margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
@media (min-width: 1040px) { .page-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 4rem; } }
.page-hero h1 { font-size: clamp(3rem, 1.6rem + 5.2vw, 6.1rem); line-height: 1; letter-spacing: -.072em; }
.page-hero .lead { margin-top: clamp(1.4rem, 1rem + 1vw, 2rem); max-width: 540px; }
.page-hero .btn-row { margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }
.page-hero__visual { position: relative; }
.page-hero__media { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--sh-4); }
.page-hero__media video, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(18 19 16 / .5)); }
.page-hero__stats { position: relative; z-index: 2; display: grid; gap: .6rem; margin-top: -3.5rem; padding-inline: 1rem; }
@media (min-width: 560px) { .page-hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero-stat { padding: 1rem 1.05rem; border-radius: var(--r-md); background: rgb(27 29 23 / .94); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; gap: .2rem; box-shadow: var(--sh-3); }
.hero-stat:first-child { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.hero-stat:first-child b, .hero-stat:first-child small, .hero-stat:first-child span { color: var(--lime-ink); }
.hero-stat b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.55rem); letter-spacing: -.045em; color: var(--text); line-height: 1.15; }
.hero-stat span { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.hero-stat small { font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.page-hero--short .page-hero__media { aspect-ratio: 4 / 3; }

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; list-style: none; margin: 0; padding: 0; font-size: .72rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; opacity: .6; }
.breadcrumb a { color: var(--text-2); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current] { color: var(--lime); }

/* ---------- Overview / who it's for ---------- */
.overview { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1000px) { .overview { grid-template-columns: 1.1fr .9fr; gap: 5rem; } .overview--flip > :first-child { order: 2; } }
.overview__text > * + * { margin-top: 1.2rem; }
.overview__text h2 { margin-top: 1.4rem; }
.overview__text p { color: var(--text-2); font-size: 1.02rem; line-height: 1.7; }
.overview__text p strong { color: var(--text); font-weight: 600; }
.fit { display: grid; border-top: 1px solid var(--line); }
.fit__card { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); transition: padding-left var(--t-med) var(--ease-out); }
.fit__card:hover { padding-left: .4rem; }
.fit__card h3 { font-size: 1.25rem; letter-spacing: -.04em; }
.fit__card p { font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.fit__label { font-size: .72rem; font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--lime); margin-bottom: 1rem; }
.fit__no { margin-top: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--r-xs); border: 1px dashed var(--line-2); font-size: .88rem; color: var(--muted); }
.fit__no b { color: var(--text); }
.fit-grid { display: grid; gap: 0 2.5rem; margin-top: 3rem; border-top: 0; }
@media (min-width: 760px) { .fit-grid { grid-template-columns: repeat(3, 1fr); } }
.fit-grid .fit__card { grid-template-columns: 1fr; align-content: start; border-top: 1px solid var(--line); border-bottom: 0; padding-top: 1.5rem; }
.overview__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.overview__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.overview__media .chip { position: absolute; left: 1rem; bottom: 1rem; }

.icon-tile { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--lime); flex: none; }
.icon-tile .icon { width: 19px; height: 19px; }
.icon-tile--wa, .icon-tile--mint { color: var(--lime); }

/* ---------- Large service dashboard section ---------- */
.dash-section .section-head--split { margin-bottom: 2.5rem; }
.dash-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; font-size: .85rem; color: var(--muted); }
.dash-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.funnel { display: grid; gap: .9rem; }
.funnel .meter__row span:last-child { color: var(--text); font-weight: 600; }
.rating-bars { display: grid; gap: .45rem; }
.rating-bars .meter__row { font-size: .75rem; }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.pipeline div { padding: .9rem .75rem; border-radius: var(--r-sm); background: rgb(255 255 255 / .025); border: 1px solid var(--dash-line); display: grid; gap: .2rem; text-align: center; }
.pipeline b { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.04em; color: var(--text); }
.pipeline span { font-size: .7rem; color: var(--dash-muted); line-height: 1.3; }
.pipeline div:last-child { background: var(--lime); border-color: var(--lime); }
.pipeline div:last-child b, .pipeline div:last-child span { color: var(--lime-ink); }
@media (max-width: 479px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
.split-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.split-figs div { padding: .8rem .9rem; border-radius: var(--r-sm); background: rgb(255 255 255 / .025); border: 1px solid var(--dash-line); }
.split-figs small { display: block; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dash-muted); }
.split-figs b { font-weight: 600; font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Deliverables (hairline grid) ---------- */
.deliverables { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .deliverables { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .deliverables { grid-template-columns: repeat(3, 1fr); } }
.deliverable { padding: clamp(1.5rem, 1.1rem + 1vw, 2.1rem) clamp(0rem, 1.5vw, 1.75rem) clamp(1.5rem, 1.1rem + 1vw, 2.1rem) 0; border-bottom: 1px solid var(--line); display: grid; gap: .8rem; align-content: start; transition: background-color var(--t-med); }
@media (min-width: 640px) { .deliverable { padding-left: clamp(1rem, 1.5vw, 1.75rem); border-right: 1px solid var(--line); } }
@media (min-width: 640px) and (max-width: 1039px) { .deliverable:nth-child(2n) { border-right: 0; } .deliverable:nth-child(2n+1) { padding-left: 0; } }
@media (min-width: 1040px) { .deliverable:nth-child(3n) { border-right: 0; } .deliverable:nth-child(3n+1) { padding-left: 0; } }
.deliverable__top { display: flex; justify-content: space-between; align-items: center; }
.deliverable__num { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.deliverable h3 { font-size: clamp(1.3rem, 1.15rem + .4vw, 1.55rem); letter-spacing: -.045em; }
.deliverable p { font-size: .91rem; color: var(--muted); line-height: 1.6; }
.deliverable:hover h3 { color: var(--lime); }

/* ---------- Detailed process ---------- */
.process-detail { display: grid; gap: 3rem; }
@media (min-width: 1000px) {
  .process-detail { grid-template-columns: .75fr 1.25fr; gap: 5rem; }
  .process-detail__aside { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
}
@media (min-width: 1000px) { .process-detail--flip { grid-template-columns: 1.25fr .75fr; } .process-detail--flip .process-detail__aside { order: 2; } }
.step-nav { display: none; margin-top: 2.25rem; border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .step-nav { display: grid; } }
.step-nav a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--muted); transition: color var(--t-fast), padding-left var(--t-med) var(--ease-out); }
.step-nav a span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.step-nav a:hover { color: var(--text); }
.step-nav a.is-current { color: var(--lime); padding-left: .5rem; }
.step-nav a.is-current span { color: var(--lime); }
.step-progress { margin-top: 1.5rem; display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.step-progress__bar { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.step-progress__bar span { display: block; height: 100%; width: calc(var(--progress, 0) * 100%); background: var(--lime); }
.step__card ul { margin: .75rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; display: grid; gap: .3rem; }

/* ---------- Before / after case study ---------- */
.case-ba { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1000px) { .case-ba { grid-template-columns: .95fr 1.05fr; gap: 4.5rem; } }
.case-ba__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.case-ba__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.case-ba__media .case-card__tag { top: 1rem; left: 1rem; }
.case-ba__story > * + * { margin-top: 1.1rem; }
.case-ba__story h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); }
.case-ba__story p { color: var(--text-2); }
.ba-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.ba-table th, .ba-table td { padding: 1rem .9rem; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ba-table th { font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ba-table th:first-child, .ba-table td:first-child { text-align: left; padding-left: 0; }
.ba-table td { font-size: .98rem; }
.ba-table td:first-child { font-weight: 500; font-size: .93rem; color: var(--text-2); }
.ba-table td.before { color: var(--muted); }
.ba-table td.after { color: var(--text); font-weight: 600; }
.ba-table .delta { margin-left: .5rem; }
@media (max-width: 559px) { .ba-table th, .ba-table td { padding: .75rem .5rem; font-size: .82rem; } .ba-table .delta { display: none; } }
.ba-cards { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .ba-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ba-card { padding: 1.2rem; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); display: grid; gap: .5rem; }
.ba-card small { font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ba-card__vals { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.ba-card__vals s { font-size: .9rem; color: var(--muted); text-decoration-color: rgb(229 115 95 / .8); }
.ba-card__vals b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 1.1rem + .6vw, 1.75rem); color: var(--lime); letter-spacing: -.045em; }
.ba-bars { display: grid; gap: 1.1rem; }
.ba-bar__label { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .45rem; color: var(--text-2); }
.ba-bar__label b { font-weight: 600; color: var(--text); }
.ba-bar__track { display: grid; gap: 4px; }
.ba-bar__track i { display: block; height: 8px; border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out); }
.ba-bar__track i:first-child { width: var(--b); background: var(--line-2); }
.ba-bar__track i:last-child { width: var(--a); background: var(--lime); transition-delay: .2s; }
.ba-bars.is-drawn i { transform: none; }
.ba-legend { display: flex; gap: 1.25rem; font-size: .8rem; color: var(--muted); margin-bottom: 1.25rem; }
.ba-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.ba-legend i { width: 14px; height: 6px; border-radius: 3px; background: var(--line-2); }
.ba-legend span:last-child i { background: var(--lime); }

/* ---------- Tools & platforms ---------- */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 760px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tool { display: grid; gap: .4rem; align-content: start; padding: 1.3rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color var(--t-fast); }
.tool:hover { background: var(--panel); }
.tool b { font-weight: 600; font-size: .98rem; display: flex; align-items: center; gap: .55rem; }
.tool b svg { width: 18px; height: 18px; color: var(--lime); }
.tool span { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ---------- Related services ---------- */
.related { display: grid; gap: 1rem; }
@media (min-width: 760px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-md); overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.related-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.related-card img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; filter: saturate(.85); }
.related-card > div { padding: 1.3rem 1.3rem 1.4rem; display: grid; gap: .5rem; align-content: start; }
.related-card h3 { font-size: 1.45rem; letter-spacing: -.045em; }
.related-card h3 a::after { content: ""; position: absolute; inset: 0; }
.related-card p { font-size: .88rem; color: var(--muted); }
.related-card .link-arrow { margin-top: .6rem; font-size: .88rem; }

/* ---------- About ---------- */
.story { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .story { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.story__text > * + * { margin-top: 1.2rem; }
.story__text p { color: var(--text-2); font-size: 1.02rem; line-height: 1.7; }
.story__media { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.story__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.story__media figure:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
.story__media figure { overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); }
.mission { max-width: 1100px; }
.mission blockquote { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.065em; color: var(--lime-ink); text-wrap: balance; }
.mission blockquote em { font-style: normal; color: var(--olive); }
.mission p { margin-top: 1.75rem; color: rgb(18 19 16 / .75); max-width: 640px; }
.section--lime { background: var(--lime); color: var(--lime-ink); }
.section--lime .eyebrow { color: var(--lime-ink); }
.section--lime :focus-visible { outline-color: var(--lime-ink); }
.values { display: grid; gap: 0 2.5rem; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 1.6rem 0 1.8rem; border-top: 1px solid var(--line); display: grid; gap: .9rem; align-content: start; }
.value__num { font-size: .75rem; letter-spacing: .14em; color: var(--lime); }
.value h3 { font-size: 1.55rem; letter-spacing: -.045em; }
.value p { font-size: .92rem; color: var(--muted); }
.how { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .how { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
.how__item { padding: 1.6rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; }
.how__item h3 { font-size: 1.35rem; letter-spacing: -.04em; }
.how__item p { font-size: .92rem; color: var(--muted); margin-top: .35rem; }
.uk-base { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1000px) { .uk-base { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.uk-base__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.uk-base__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.facts { display: grid; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts b { display: block; font-weight: 600; }
.facts span { font-size: .88rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-hero { padding: clamp(1.75rem, 1rem + 2vw, 2.75rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); }
.contact-hero h1 { margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); max-width: 1000px; font-size: clamp(3rem, 1.6rem + 5.2vw, 6.1rem); }
.contact-hero .lead { margin-top: 1.5rem; max-width: 600px; }
.contact-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1040px) { .contact-layout { grid-template-columns: 1.3fr .9fr; gap: 4rem; } .contact-layout__aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
.contact-cards { display: grid; border-top: 1px solid var(--line); }
.contact-card { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); transition: color var(--t-fast); }
a.contact-card:hover b { color: var(--lime); }
.contact-card small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.contact-card b { font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; transition: color var(--t-fast); }
.contact-card span.sub { display: block; font-size: .84rem; color: var(--muted); }
.next-steps { margin-top: 1.75rem; padding: 1.5rem; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); }
.next-steps h2 { font-size: 1.4rem; letter-spacing: -.04em; margin-bottom: 1.1rem; }
.next-steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 28px 1fr; gap: .75rem; font-size: .9rem; color: var(--muted); counter-increment: ns; }
.next-steps li::before { content: "0" counter(ns); font-size: .78rem; color: var(--lime); padding-top: .1rem; font-variant-numeric: tabular-nums; }
.next-steps li b { color: var(--text); display: block; font-weight: 600; }
.form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.form-card > h2 { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); }
.form-card > p { color: var(--muted); margin-top: .6rem; }
.contact-split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1040px) { .contact-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- Legal prose ---------- */
.legal-hero { padding: clamp(1.75rem, 1rem + 2vw, 2.75rem) 0 3rem; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin-top: clamp(1.75rem, 1rem + 2vw, 3rem); font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.8rem); }
.draft-notice { margin-top: 1.75rem; display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--r-xs); background: rgb(230 180 80 / .1); border: 1px solid rgb(230 180 80 / .4); color: #f1d9a3; font-size: .93rem; max-width: 760px; }
.draft-notice b { color: var(--warn); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + .9vw, 2.1rem); margin-top: 3rem; letter-spacing: -.045em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--text-2); }
.prose p { margin-top: 1rem; }
.prose ul { margin: 1rem 0 0; padding-left: 1.25rem; display: grid; gap: .45rem; }
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
.prose table { margin-top: 1.25rem; font-size: .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--panel); font-weight: 500; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose td { color: var(--text-2); }
.prose td:first-child { color: var(--text); font-size: .85rem; white-space: nowrap; }
.prose .updated { font-size: .78rem; color: var(--muted); margin-top: 0; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding: 3rem 0 4rem; position: relative; overflow: hidden; }
.nf__code { font-family: var(--font-display); font-weight: 500; font-size: clamp(7rem, 4rem + 14vw, 16rem); line-height: .85; letter-spacing: -.08em; color: var(--lime); }
.nf h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); margin-top: 1.25rem; }
.nf .lead { margin-top: 1.1rem; max-width: 560px; }
.nf__links { display: grid; margin-top: 2.5rem; max-width: 760px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .nf__links { grid-template-columns: repeat(3, 1fr); column-gap: 2rem; } }
.nf__links a { padding: 1.1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .25rem; transition: color var(--t-fast); }
.nf__links a:hover b { color: var(--lime); }
.nf__links b { font-weight: 600; color: var(--text); transition: color var(--t-fast); }
.nf__links span { font-size: .85rem; color: var(--muted); }

.section-intro-gap { margin-top: 3rem; }

/* Contact: meeting request card + details row */
.form-card--meet .meet { padding: 0; border: 0; background: none; margin-top: 1.5rem; }
.form-card--meet #meet-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-card--meet { border-color: rgb(215 252 112 / .35); }
@media (min-width: 1040px) { .contact-layout--details { grid-template-columns: 1fr 1fr; } .contact-layout--details .next-steps { margin-top: 0; } }
@media (min-width: 640px) { .nf__links { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Amazon hub: two large sub-service cards ---------- */
.models { display: grid; gap: clamp(1rem, .6rem + 1vw, 1.5rem); }
@media (min-width: 860px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.model-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.model-card:hover { border-color: var(--lime); transform: translateY(-4px); }
.model-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.model-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.2s var(--ease-out); }
.model-card:hover .model-card__media img { transform: scale(1.04); }
.model-card__num { position: absolute; top: 1rem; left: 1rem; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 4px; background: rgb(18 19 16 / .78); color: var(--text); }
.model-card__body { padding: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); display: grid; gap: 1rem; align-content: start; }
.model-card__body h3 { font-size: clamp(2rem, 1.3rem + 2.2vw, 2.9rem); letter-spacing: -.06em; line-height: 1.02; }
.model-card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.model-card__body h3 a:focus-visible { outline: none; }
.model-card:focus-within { outline: 2px solid var(--lime); outline-offset: 3px; }
.model-card__body > p:not(.eyebrow) { color: var(--text-2); line-height: 1.65; max-width: 520px; }
.model-card__list { border-top: 1px solid var(--line); }
.model-card__list li { padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .76rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.model-card__body .model-card__fit { font-size: .9rem; color: var(--muted); }
.model-card__fit b { color: var(--text); font-weight: 600; }

/* Three-up models grid (eBay page) */
@media (min-width: 1040px) { .models--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.models--3 .model-card__body h3 { font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.2rem); }

/* Case study pages */
.glance { display: grid; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .glance { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.glance > div { padding: 1.1rem 1.25rem 1.2rem 0; border-bottom: 1px solid var(--line); }
.glance small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.glance b { font-weight: 500; font-size: 1rem; color: var(--text); }
.case-quote blockquote { font-size: clamp(1.7rem, 1.1rem + 2vw, 3rem); line-height: 1.12; letter-spacing: -.045em; }
.related-card .eyebrow { margin-bottom: .1rem; }
@media (min-width: 1040px) { .case-ba--even { grid-template-columns: 1fr 1fr; } }
