/* ==========================================================================
   josealv.com - studio ledger edition
   Light editorial-engineering system: bone paper, a single deep forest-green
   accent, Bricolage Grotesque display over Instrument Sans, and a dark green
   "basement" that closes every page (final CTA + footer).

   Shape rule (applies everywhere):
   - buttons + pills: full radius
   - cards, panels, media: 16px
   - inputs: 10px
   ========================================================================== */

:root {
    --bg: #f4f4ee;
    --surface: #fdfdfa;
    --surface-2: #eaece2;
    --ink: #191d19;
    --ink-2: #39413a;
    --muted: #5c655d;
    --muted-2: #8a938b;
    --line: #dcdfd2;
    --line-2: #c4c9b8;

    --accent: #23634a;
    --accent-deep: #184b37;
    --accent-ink: #1d5740;
    --accent-tint: #e3ece4;
    --accent-tint-2: #d3e2d6;

    --basement: #12241b;
    --basement-2: #1a2f24;
    --bone: #eef0e6;
    --bone-muted: rgba(238, 240, 230, 0.66);
    --bone-line: rgba(238, 240, 230, 0.16);

    --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
    --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --fs-hero: clamp(2.4rem, 4vw, 3.35rem);
    --fs-h2: clamp(1.7rem, 2.9vw, 2.45rem);
    --fs-h3: 1.16rem;
    --fs-lead: 1.19rem;

    --r-pill: 999px;
    --r-card: 16px;
    --r-input: 10px;

    --maxw: 1180px;
    --gutter: clamp(22px, 5vw, 44px);
    --bleed-pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 1px 0 rgba(25, 29, 25, 0.05), 0 14px 28px -24px rgba(25, 29, 25, 0.35);
    --shadow: 0 2px 0 rgba(25, 29, 25, 0.05), 0 30px 60px -38px rgba(24, 43, 32, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; overflow-x: clip; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.page-shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.content { display: block; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--bone); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 6px; }

/* -------------------------------------------------------------- typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { text-wrap: pretty; }

/* Former mono-caps kickers become quiet green labels, sentence case. */
.eyebrow, .section-kicker, .card-label, .price-kicker, .contrast-eyebrow, .package-label, .wide-kicker, .recent-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--accent-ink);
}
.cap-name { display: block; font-weight: 600; color: var(--ink); }

.mark { color: var(--accent-ink); }

/* ------------------------------------------------------------- header/nav */
.site-header {
    position: sticky; top: 0; z-index: 50;
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 15px var(--bleed-pad);
    background: rgba(244, 244, 238, 0.92);
    -webkit-backdrop-filter: saturate(130%) blur(10px);
    backdrop-filter: saturate(130%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); padding-top: 11px; padding-bottom: 11px; }

.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--accent-ink); }

.site-nav-panel { display: flex; align-items: center; justify-content: flex-end; gap: 28px; min-width: 0; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { position: relative; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); transition: color 0.2s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-out); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

.header-cta {
    flex-shrink: 0;
    font-size: 0.92rem; font-weight: 600; color: var(--bone); background: var(--accent);
    padding: 10px 22px; border-radius: var(--r-pill); border: 1px solid var(--accent);
    transition: transform 0.2s var(--ease-out), background-color 0.2s ease, box-shadow 0.2s ease;
}
.header-cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.header-cta:active { transform: translateY(0); }

/* nav quetzal (injected by script.js): flies across the nav bar, stops in
   the middle, looks around, then carries on. Sits behind the nav content;
   reduced motion keeps it hidden. */
.site-header > *:not(.sky-bird) { position: relative; z-index: 1; }
.sky-bird { --perch-x: calc(38vw - 20px); position: absolute; top: 50%; left: 0; width: 40px; height: 16px; margin-top: -8px; z-index: 0; pointer-events: none; opacity: 0; animation: bird-fly 44s linear 4s infinite; will-change: transform; }
.sky-bird svg { display: block; }
.sky-bird .q-head { transform-box: fill-box; transform-origin: 40% 55%; animation: bird-head 44s linear 4s infinite; }
/* flight path: one smooth glide in, calm perch, smooth accelerating exit */
@keyframes bird-fly {
    0%    { transform: translate(-6vw, 1px); opacity: 0; animation-timing-function: cubic-bezier(0.3, 0, 0.55, 1); }
    1.2%  { opacity: 1; }
    7%    { transform: translate(24vw, -1.5px); animation-timing-function: cubic-bezier(0.3, 0.5, 0.3, 1); }
    12%   { transform: translate(var(--perch-x), 0); animation-timing-function: ease-in-out; }
    18%   { transform: translate(var(--perch-x), -0.8px); animation-timing-function: ease-in-out; }
    24%   { transform: translate(var(--perch-x), 0.4px); animation-timing-function: ease-in-out; }
    30%   { transform: translate(var(--perch-x), 0); animation-timing-function: cubic-bezier(0.55, 0, 0.8, 0.45); }
    34%   { transform: translate(58vw, -2px); animation-timing-function: cubic-bezier(0.35, 0.45, 0.65, 1); }
    37.5% { transform: translate(108vw, 0); opacity: 1; }
    38.5% { opacity: 0; }
    100%  { transform: translate(108vw, 0); opacity: 0; }
}
/* looking around is head-only: two quick glances back, one peer up;
   the body never turns */
@keyframes bird-head {
    0%, 13.4% { transform: scaleX(1) rotate(0deg); animation-timing-function: ease-in-out; }
    14%       { transform: scaleX(-1) rotate(0deg); animation-timing-function: ease-in-out; }
    17.4%     { transform: scaleX(-1) rotate(0deg); animation-timing-function: ease-in-out; }
    18%       { transform: scaleX(1) rotate(0deg); animation-timing-function: ease-in-out; }
    21.4%     { transform: scaleX(1) rotate(0deg); animation-timing-function: ease-in-out; }
    22%       { transform: scaleX(-1) rotate(0deg); animation-timing-function: ease-in-out; }
    24.4%     { transform: scaleX(-1) rotate(0deg); animation-timing-function: ease-in-out; }
    25%       { transform: scaleX(1) rotate(0deg); animation-timing-function: ease-in-out; }
    27%       { transform: scaleX(1) rotate(-12deg); animation-timing-function: ease-in-out; }
    28.6%     { transform: scaleX(1) rotate(-12deg); animation-timing-function: ease-in-out; }
    30%, 100% { transform: scaleX(1) rotate(0deg); }
}
/* on narrow headers 38vw lands behind the brand; perch further right */
@media (max-width: 560px) {
    .sky-bird { --perch-x: calc(56vw - 22px); }
}

/* mobile nav toggle (injected by script.js) */
.nav-toggle { display: none; align-items: center; gap: 9px; justify-self: end; border: none; background: transparent; color: var(--ink); cursor: pointer; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; padding: 10px 0; min-height: 44px; }
.nav-toggle-icon { display: grid; gap: 5px; }
.nav-toggle-icon span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.site-header.nav-open .nav-toggle-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
    padding: 13px 28px; border-radius: var(--r-pill); cursor: pointer; text-align: center;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--bone); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-full { width: 100%; }

/* ===================================================================== HERO
   Homepage: asymmetric split, light theme, photo right. */
.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding: clamp(40px, 6vw, 84px) 0 clamp(28px, 4vw, 56px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 2.4vw, 28px); }
.hero-copy h1 { font-size: var(--fs-hero); line-height: 1.05; font-weight: 700; max-width: 22ch; }
.hero-copy .lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 44ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-link { font-weight: 600; font-size: 0.98rem; color: var(--ink); padding: 13px 6px; }
.hero-link::after { content: "\2192"; display: inline-block; margin-left: 8px; transition: transform 0.25s var(--ease-out); }
.hero-link:hover { color: var(--accent-ink); }
.hero-link:hover::after { transform: translateX(4px); }

.hero-media { position: relative; margin: 0; }
.hero-media img {
    width: 100%; height: clamp(320px, 34vw, 480px); object-fit: cover;
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
}
.hero-media figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }

/* thin facts strip under the hero */
.facts-strip {
    list-style: none;
    position: relative;
    display: flex; flex-wrap: wrap; gap: 10px 0;
    margin-top: clamp(20px, 3vw, 36px);
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.facts-strip::before, .facts-strip::after {
    content: ""; position: absolute; top: -4px; bottom: -4px; width: 9px; pointer-events: none;
    background:
        linear-gradient(var(--line-2), var(--line-2)) 50% 0 / 1px 9px no-repeat,
        linear-gradient(var(--line-2), var(--line-2)) 50% 4px / 9px 1px no-repeat,
        linear-gradient(var(--line-2), var(--line-2)) 50% 100% / 1px 9px no-repeat,
        linear-gradient(var(--line-2), var(--line-2)) 50% calc(100% - 4px) / 9px 1px no-repeat;
}
.facts-strip::before { left: -4px; }
.facts-strip::after { right: -4px; }
.facts-strip li { flex: 1 1 200px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-2); padding-right: 22px; }
.facts-strip li + li { border-left: 1px solid var(--line); padding-left: 22px; }

/* ===================================================================== SECTIONS */
.section { padding: clamp(72px, 9.5vw, 148px) 0 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 62ch; }
.section-head h2 { margin-top: 10px; }
.section-head .section-kicker + h2 { margin-top: 10px; }
.section-head .section-intro { margin-top: 14px; color: var(--muted); font-size: var(--fs-lead); max-width: 54ch; line-height: 1.5; }
.section-head::before { content: ""; display: block; width: 22px; height: 2px; border-radius: 1px; background: var(--accent); margin-bottom: 18px; }

.grid { display: grid; gap: clamp(18px, 2.2vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: clamp(24px, 2.6vw, 34px);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.card h3 { margin-bottom: 9px; }
.card p, .cap-detail, .portfolio-summary, .process-card p { color: var(--muted); line-height: 1.55; }
.card .card-label { margin-bottom: 12px; }

/* ---------- about (editorial, no card) ---------- */
.about-block { max-width: 70ch; }
.about-lede {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.3vw, 1.85rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: clamp(20px, 2.6vw, 30px);
    text-wrap: balance;
}
.about-body { display: grid; gap: 16px; }
.about-body p { color: var(--ink-2); max-width: 62ch; }
.about-body a, .section-intro a, .pricing-note a, .faq-list details > p a, .timeline-content a, .risk-result a, .card p a:not(.btn) {
    color: var(--accent-ink);
    text-decoration: underline dotted 1px;
    text-underline-offset: 4px;
    text-decoration-color: var(--line-2);
    transition: text-decoration-color 0.2s ease;
}
.about-body a:hover, .section-intro a:hover, .pricing-note a:hover, .faq-list details > p a:hover, .timeline-content a:hover, .risk-result a:hover, .card p a:not(.btn):hover { text-decoration-color: var(--accent); }

/* legacy about card (kept for any page still using it) */
.about-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(24px, 3vw, 44px); }
.about-portrait { flex: 0 0 auto; width: 104px; height: 104px; object-fit: cover; border-radius: var(--r-card); }
.about-card-body { flex: 1 1 360px; min-width: 0; }
.about-card-body h3 { font-size: 1.28rem; margin: 0 0 16px; }
.about-card-body p { color: var(--ink-2); margin-bottom: 14px; max-width: 60ch; }
.about-card-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- capabilities bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 22px); }
.bento-cell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: clamp(24px, 2.4vw, 32px);
    display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
    min-height: 190px;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.bento-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.bento-cell .cap-name { font-family: var(--font-display); font-size: 1.14rem; font-weight: 600; color: var(--ink); }
.bento-cell .cap-detail { font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
.bento-cell--feature { grid-column: span 2; background: var(--accent-tint); border-color: var(--accent-tint-2); }
.bento-cell--feature .cap-name { font-size: 1.3rem; }
.bento-cell--feature .cap-detail { color: var(--ink-2); max-width: 52ch; }
.bento-cell--tint { background: var(--accent-tint); border-color: var(--accent-tint-2); }
.bento-cell--tint .cap-detail { color: var(--ink-2); }
.bento-cell--photo { position: relative; padding: 0; overflow: hidden; border: none; min-height: 230px; }
.bento-cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-cell--photo figcaption {
    position: relative; z-index: 1; margin-top: auto;
    padding: clamp(20px, 2.2vw, 28px);
    color: #fff; font-weight: 500; font-size: 0.96rem;
    background: linear-gradient(to top, rgba(18, 36, 27, 0.72), rgba(18, 36, 27, 0.05) 70%, transparent);
}
/* variant for the flat in-palette LA illustrations: quiet mono caption, no
   gradient scrim */
.bento-cell--art { border: 1px solid var(--accent-tint-2); }
.bento-cell--art figcaption {
    width: fit-content; margin: auto 0 16px 16px; padding: 6px 13px;
    color: var(--accent-ink); background: rgba(253, 253, 250, 0.88);
    border: 1px solid var(--accent-tint-2); border-radius: var(--r-pill);
    font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500;
}

/* wide minimal LA illustration band (skyline divider) */
.art-band { margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.art-band img { display: block; width: 100%; height: clamp(120px, 16vw, 200px); object-fit: cover; object-position: center bottom; }
.section-head + .art-band { margin-bottom: clamp(18px, 2.2vw, 26px); }

/* legacy cap-toggles (still referenced on some pages) */
.cap-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 22px); }
.cap-toggle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(22px, 2.2vw, 30px); transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease; }
.cap-toggle:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.cap-toggle .cap-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); margin-bottom: 8px; }
.cap-detail { font-size: 0.95rem; }

/* ---------- difference (plain, hairline grid) ---------- */
.contrast-spine { margin-top: clamp(72px, 9.5vw, 148px); }
.contrast-spine-inner { display: grid; gap: clamp(28px, 3.4vw, 44px); }
.contrast-copy h2 { margin: 10px 0 14px; max-width: 22ch; }
.contrast-copy h2 em { font-style: italic; color: var(--accent-ink); }
.contrast-lead { color: var(--muted); font-size: var(--fs-lead); max-width: 54ch; line-height: 1.5; }
.contrast-spine-bullets { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 48px; }
.contrast-spine-bullets li { border-top: 1px solid var(--line); padding-top: 18px; }
.contrast-spine-bullets strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; margin-bottom: 6px; }
.contrast-spine-bullets span { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

/* ===================================================================== WORK
   Full-bleed tinted band. */
#work {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: clamp(72px, 9.5vw, 148px);
    padding: clamp(64px, 8vw, 120px) var(--bleed-pad);
    background: var(--surface-2);
    border-block: 1px solid var(--line);
    box-shadow: inset 0 6px 0 -5px var(--line), inset 0 -6px 0 -5px var(--line);
}
#work .section-head { margin-top: 0; }
.portfolio-grid { gap: clamp(18px, 2.2vw, 26px); }
.portfolio-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.portfolio-browser-bar { display: none; }
.portfolio-notes { display: none; }
.portfolio-browser-screen { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent-tint); border-bottom: 1px solid var(--line); }
.portfolio-browser-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease-out); }
.portfolio-card:hover .portfolio-browser-screen img { transform: scale(1.03); }
.portfolio-card .card-label, .portfolio-card h3, .portfolio-summary, .portfolio-link-row { padding-left: clamp(20px, 2vw, 26px); padding-right: clamp(20px, 2vw, 26px); }
.portfolio-card .card-label { margin-top: 20px; font-size: 0.86rem; }
.portfolio-card h3 { margin: 6px 0 8px; font-size: 1.16rem; }
.portfolio-summary { font-size: 0.94rem; }
.portfolio-link-row { margin-top: auto; padding-top: 16px; padding-bottom: 22px; }
.portfolio-link { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; color: var(--ink-2); transition: color 0.2s ease; }
.portfolio-link::after { content: " \2197"; color: var(--muted-2); transition: color 0.2s ease, transform 0.25s var(--ease-out); display: inline-block; }
.portfolio-card:hover .portfolio-link { color: var(--accent-ink); }
.portfolio-card:hover .portfolio-link::after { color: var(--accent-ink); transform: translate(1px, -1px); }

/* ===================================================================== SERVICES
   Homepage: wide linked rows. Inner pages: service cards. */
.service-rows { display: grid; border-top: 1px solid var(--line); }
.service-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
    align-items: center;
    gap: clamp(18px, 3vw, 44px);
    padding: clamp(22px, 2.6vw, 32px) 4px;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.25s ease, padding 0.25s var(--ease-out);
}
.service-row h3 { font-size: clamp(1.15rem, 1.7vw, 1.42rem); }
.service-row p { color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
.service-row .row-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--r-pill);
    border: 1px solid var(--line-2); color: var(--ink);
    font-size: 1.1rem;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}
.service-row:hover { background: var(--surface); }
.service-row:hover .row-arrow { background: var(--accent); border-color: var(--accent); color: var(--bone); transform: translateX(3px); }

.service-grid { gap: clamp(16px, 1.8vw, 22px); }
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(26px, 2.6vw, 36px); transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.service-card .card-label { margin-bottom: 12px; font-size: 0.88rem; }
.service-card h3 { margin-bottom: 10px; font-size: 1.18rem; }

/* ===================================================================== PRICING */
.pricing-grid { gap: clamp(16px, 1.8vw, 22px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricing-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 2.4vw, 32px); transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease; }
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.pricing-card .price-kicker { margin-bottom: 16px; font-size: 0.88rem; }
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.price-line { font-size: 0.92rem; color: var(--muted); }
.price-line strong { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 2.3vw, 2.15rem); font-weight: 650; color: var(--ink); letter-spacing: -0.02em; line-height: 1; margin-top: 6px; }
.price-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); margin: 12px 0 16px; }
.price-line strong, .price-meta { font-variant-numeric: tabular-nums; }
.list-check { list-style: none; display: grid; gap: 9px; margin-top: auto; }
.list-check li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--muted); }
.list-check li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-ink); font-size: 0.85rem; }
.service-card .list-check, .package-card .list-check { margin-top: 14px; }
.pricing-card--featured { background: var(--accent-tint); border-color: var(--accent-tint-2); }
.pricing-card--featured .price-kicker::after { content: " (recommended)"; font-weight: 500; color: var(--muted); }
.pricing-note { margin-top: 26px; font-size: 0.94rem; color: var(--muted); max-width: 70ch; line-height: 1.6; }

/* ===================================================================== CTA PANEL
   Mid-page CTA: light green panel. */
.cta-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
    margin-top: clamp(44px, 5.5vw, 72px);
    padding: clamp(34px, 4.6vw, 56px);
    background: var(--accent-tint);
    border: 1px solid var(--accent-tint-2);
    border-radius: var(--r-card);
}
.cta-band h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); max-width: 22ch; }
.cta-band p { color: var(--ink-2); max-width: 46ch; margin-top: 10px; font-size: 1rem; line-height: 1.55; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band--warm { background: var(--accent-tint); }
.cta-band .btn-secondary { border-color: var(--accent-tint-2); background: var(--surface); }
.cta-band .btn-secondary:hover { border-color: var(--accent); }

/* ===================================================================== PROCESS */
.process-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); }
.process-col { border-top: 2px solid var(--accent); padding-top: 20px; }
.process-col h3 { font-size: 1.12rem; margin-bottom: 8px; }
.process-col p { color: var(--muted); font-size: 0.96rem; line-height: 1.55; }

.process-grid { gap: clamp(16px, 1.8vw, 22px); }
.process-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 2.4vw, 32px); }
.step-chip { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r-pill); background: var(--accent-tint); color: var(--accent-ink); font-family: var(--font-mono); font-weight: 500; font-size: 0.82rem; margin-bottom: 16px; }
.process-card h3 { font-size: 1.1rem; margin-bottom: 9px; }

/* ===================================================================== BASEMENT
   The one deliberate dark moment: final CTA + footer, deep green. */
.end-cta {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: clamp(84px, 11vw, 168px);
    padding: clamp(72px, 9vw, 128px) var(--bleed-pad) clamp(56px, 7vw, 96px);
    background: var(--basement);
    color: var(--bone);
}
.end-cta-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 26px; justify-items: start; }
.end-cta h2 { color: var(--bone); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 650; max-width: 18ch; }
.end-cta p { color: var(--bone-muted); font-size: var(--fs-lead); max-width: 48ch; line-height: 1.55; }
.end-cta .btn-primary { background: var(--bone); color: var(--basement); border-color: var(--bone); }
.end-cta .btn-primary:hover { background: #fff; border-color: #fff; }
.end-cta .btn-secondary { color: var(--bone); border-color: var(--bone-line); }
.end-cta .btn-secondary:hover { border-color: var(--bone-muted); }
.end-cta :focus-visible { outline-color: var(--bone); }
.end-cta .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.site-footer {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: clamp(84px, 11vw, 168px);
    padding: clamp(48px, 6vw, 72px) var(--bleed-pad) clamp(40px, 5vw, 56px);
    background: var(--basement);
    color: var(--bone);
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.4fr;
    gap: 32px;
}
/* when the end-cta sits right above the footer, they merge into one block */
.end-cta + .site-footer { margin-top: 0; padding-top: clamp(40px, 5vw, 56px); }
.end-cta + .site-footer::before {
    content: ""; position: absolute; top: 0; left: var(--bleed-pad); right: var(--bleed-pad);
    height: 1px; background: var(--bone-line);
}
.site-footer::before { pointer-events: none; }
.footer-title { font-family: var(--font-display); font-weight: 650; font-size: 1.08rem; margin-bottom: 12px; color: var(--bone); }
.site-footer > div p { color: var(--bone-muted); font-size: 0.93rem; max-width: 36ch; line-height: 1.6; }
.footer-links { list-style: none; display: grid; gap: 11px; }
.footer-links a, .footer-meta a { color: var(--bone-muted); transition: color 0.2s ease; }
.footer-links a { font-size: 0.93rem; }
.footer-links a:hover, .footer-meta a:hover { color: var(--bone); }
.footer-meta { display: grid; gap: 9px; align-content: start; font-family: var(--font-mono); font-size: 0.82rem; color: var(--bone-muted); }
.footer-meta p { margin-top: 8px; font-size: 0.85rem; }
.site-footer :focus-visible { outline-color: var(--bone); }

/* ===================================================================== MOTION */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy > * { opacity: 0; animation: fadeUp 0.7s var(--ease-out) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.23s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-media { opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.2s forwards; }

.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-visible { opacity: 1; transform: none; }
.section.reveal-on-scroll, .site-footer.reveal-on-scroll { opacity: 1 !important; transform: none !important; }
.grid > *:nth-child(2), .bento > *:nth-child(2) { transition-delay: 0.06s; }
.grid > *:nth-child(3), .bento > *:nth-child(3) { transition-delay: 0.12s; }
.grid > *:nth-child(4), .bento > *:nth-child(4) { transition-delay: 0.18s; }
.grid > *:nth-child(5), .bento > *:nth-child(5) { transition-delay: 0.24s; }
.grid > *:nth-child(6), .bento > *:nth-child(6) { transition-delay: 0.3s; }

/* ============================================================ LAUNCHER (injected by script.js) */
.launcher { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.launcher-btn { display: inline-flex; align-items: center; gap: 9px; background: var(--basement); color: var(--bone); border: 1px solid transparent; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; padding: 11px 18px; border-radius: var(--r-pill); cursor: pointer; box-shadow: var(--shadow); }
.launcher-dot { width: 7px; height: 7px; border-radius: 50%; background: #6fbf94; }
.launcher-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 14px; width: min(280px, 80vw); display: grid; gap: 10px; }
.launcher-k { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.launcher-row, .preview-link { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-input); font-size: 0.88rem; transition: border-color 0.2s ease, background-color 0.2s ease; }
.launcher-row:hover, .preview-link:hover { border-color: var(--line-2); background: var(--surface-2); }
.launcher-div { height: 1px; background: var(--line); }
.preview-gate { display: grid; gap: 8px; }
.preview-code { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-input); font-family: var(--font-mono); font-size: 0.82rem; background: var(--surface); color: var(--ink); }
.preview-unlock { padding: 10px; border: none; border-radius: var(--r-pill); background: var(--accent); color: var(--bone); font-family: var(--font-body); font-weight: 600; cursor: pointer; }
.preview-error { color: #a03325; font-size: 0.78rem; }
.preview-note { font-size: 0.74rem; color: var(--muted); }
.preview-links { display: grid; gap: 8px; }
.preview-enter { color: var(--accent-ink); }
@keyframes launcher-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.preview-gate.shake { animation: launcher-shake 0.3s ease; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =====================================================================
   SHARED INNER-PAGE COMPONENTS (services / contact / faq / pentesting /
   checklists / cost-guide / locations) - same system, rolled out site-wide
   ===================================================================== */

/* secondary two-column hero (inner pages put .hero directly under .content) */
.content > .hero:not(.hero-split) { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: flex-start; padding: clamp(52px, 8vw, 108px) 0 clamp(8px, 2vw, 28px); }
.content > .hero:not(.hero-split) .hero-copy { flex: 1 1 460px; min-width: 0; gap: 18px; }
.content > .hero:not(.hero-split) .hero-copy h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.06; max-width: 20ch; font-weight: 650; }
.content > .hero:not(.hero-split) .lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 52ch; }
.hero-punch { font-weight: 600; font-size: 0.95rem; color: var(--accent-ink); }
.hero-proof-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); padding: 16px 0 0; margin-top: 4px; border-top: 1px solid var(--line); width: 100%; max-width: 720px; }
.hero-side { flex: 0 1 360px; align-self: start; }
.hero-summary-card, .quick-facts {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: clamp(22px, 2.4vw, 30px); box-shadow: var(--shadow-sm); display: grid; gap: 18px; list-style: none;
}
.hero-summary-grid { display: grid; gap: 16px; }
.hero-summary-grid article, .quick-facts li { display: grid; gap: 3px; }
.hero-summary-grid strong, .quick-facts strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.hero-summary-grid span, .quick-facts span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.inline-pill { display: inline-flex; align-items: center; align-self: start; width: fit-content; font-size: 0.82rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-tint); border: 1px solid var(--accent-tint-2); border-radius: var(--r-pill); padding: 6px 14px; }
.inline-pill--compact { white-space: nowrap; }

/* alternating soft section */
.section.section-soft { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(40px, 5vw, 72px); margin-top: clamp(72px, 9vw, 140px); }
.section-soft .section-head { margin-top: 0; }

/* trust + example + generic inner cards */
.trust-grid, .example-grid { gap: clamp(16px, 1.8vw, 22px); }
.example-card a, .trust-card a { color: var(--accent-ink); font-weight: 600; }
.example-card a:hover, .trust-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.compact-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; max-width: 760px; }
.compact-list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 0.97rem; }
.compact-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-ink); font-size: 0.85rem; }

/* FAQ accordion */
.faq-list { display: grid; gap: 12px; max-width: 760px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 2px 24px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.faq-list details[open] { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--accent-ink); font-size: 1.4rem; font-weight: 300; line-height: 1; transition: transform 0.25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > p { padding: 0 0 20px; color: var(--muted); line-height: 1.6; max-width: 64ch; }

/* contact layout + cards + intake form */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-details { display: grid; gap: 12px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 22px; }
.contact-card h3 { font-family: var(--font-body); font-size: 0.86rem; font-weight: 600; color: var(--accent-ink); margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--ink); font-size: 0.97rem; }
.contact-card a:hover { color: var(--accent-ink); }
.contact-id { display: flex; align-items: center; gap: 13px; }
.contact-id .about-portrait--sm { width: 60px; height: 60px; border-radius: var(--r-card); }
.contact-id-name { display: flex; flex-direction: column; }
.contact-id-name strong { font-family: var(--font-display); font-weight: 600; }
.contact-id-name span { color: var(--muted); font-size: 0.86rem; }

.intake-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-input); padding: 12px 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field textarea { min-height: 130px; resize: vertical; }
.field input, .field textarea { caret-color: var(--accent); }
.field input[type="url"], .field input[type="email"], .field input[type="tel"] { font-family: var(--font-mono); font-size: 0.92rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-2); outline: 2px solid transparent; outline-offset: 1px; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.form-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); line-height: 1.6; }

/* risk self-check */
.checklist { display: grid; gap: 10px; max-width: 760px; }
.risk-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color 0.2s ease; }
.risk-item:hover { border-color: var(--line-2); }
.risk-item label { display: flex; align-items: flex-start; gap: 13px; padding: 15px 18px; cursor: pointer; font-size: 0.98rem; line-height: 1.5; }
.risk-item input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.checklist .btn-full { margin-top: 14px; }
.risk-result { margin-top: 22px; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.risk-result h3 { font-size: 1.3rem; }
.risk-result p { color: var(--ink-2); line-height: 1.55; }
.risk-result .btn { margin-top: 6px; justify-self: start; white-space: normal; max-width: 100%; }
.risk-result.low { border-color: var(--accent-tint-2); background: var(--accent-tint); }
.risk-result.medium { border-color: #e3d6ae; background: #f7f1dd; }
.risk-result.high { border-color: #e5c0b0; background: #f9ece4; }

/* timeline (checklists / readiness) */
.timeline { display: grid; gap: 0; max-width: 760px; }
.timeline-step { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding-bottom: 30px; position: relative; }
.timeline-step::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: -2px; width: 1px; background: var(--line-2); }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step:last-child::before { display: none; }
.timeline-index { width: 35px; height: 35px; border-radius: var(--r-pill); background: var(--accent-tint); border: 1px solid var(--accent-tint-2); color: var(--accent-ink); font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; display: inline-flex; align-items: center; justify-content: center; z-index: 1; }
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline-content p { color: var(--muted); line-height: 1.55; max-width: 60ch; }

/* package cards (cost guide) */
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 22px); align-items: start; }
.package-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(26px, 2.6vw, 36px); display: grid; gap: 6px; align-content: start; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease; }
.package-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.package-card.featured { background: var(--accent-tint); border-color: var(--accent-tint-2); }
.package-label { font-size: 0.88rem; }
.package-card h3 { font-size: 1.18rem; margin: 6px 0 2px; }
.package-price { font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 650; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.package-price span { font-size: 0.5em; color: var(--muted); font-weight: 500; }

/* legacy homepage helpers kept harmless for any straggler pages */
.ticker, .wide-band, .slab-overlay, .signal-stack { display: none; }

/* ===================================================================== RESPONSIVE */
@media (max-width: 1020px) {
    .nav-toggle { display: inline-flex; }
    .site-header { grid-template-columns: minmax(0,1fr) auto; }
    .site-nav-panel { display: none; grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 2px; margin-top: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
    .site-header.nav-open .site-nav-panel { display: flex; }
    .site-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav a { padding: 13px 12px; font-size: 1rem; border-radius: var(--r-input); }
    .site-nav a::after { content: none; }
    .site-nav a:hover { background: var(--surface-2); }
    .header-cta { width: 100%; justify-content: center; text-align: center; display: inline-flex; margin-top: 8px; }
    .grid-3, .portfolio-grid, .package-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento-cell--feature { grid-column: span 2; }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .process-cols { grid-template-columns: 1fr; gap: 20px; }
    .service-row { grid-template-columns: minmax(0, 1fr) auto; }
    .service-row p { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .hero-split { grid-template-columns: 1fr; gap: 28px; }
    .hero-media img { height: clamp(240px, 48vw, 360px); }
    .content > .hero:not(.hero-split) .hero-copy, .content > .hero:not(.hero-split) .hero-side { flex: 1 1 100%; }
    .contact-layout { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; line-height: 1.56; }
    .page-shell { padding-inline: clamp(18px, 5vw, 24px); }

    .hero-split { padding: 32px 0 8px; }
    .hero-copy { gap: 16px; }
    .hero-copy h1 { max-width: none; }
    .hero-actions { gap: 10px; }
    .btn { padding: 12px 22px; font-size: 0.95rem; }
    .facts-strip li { flex: 1 1 100%; padding: 4px 0; }
    .facts-strip li + li { border-left: none; padding-left: 0; }

    .section { padding-top: 56px; }
    .section-head { margin-bottom: 24px; }
    .section-head h2 { margin-top: 8px; }
    .section-head .section-intro { margin-top: 10px; line-height: 1.45; }

    .grid, .grid-2, .grid-3, .portfolio-grid, .service-grid, .pricing-grid, .process-grid, .package-grid, .cap-toggles, .trust-grid, .example-grid, .contrast-spine-bullets { grid-template-columns: 1fr; gap: 14px; }
    .bento { grid-template-columns: 1fr; gap: 14px; }
    .bento-cell { min-height: 0; }
    .bento-cell--feature { grid-column: auto; }
    .bento-cell--photo { min-height: 200px; }
    .card, .cap-toggle, .service-card, .pricing-card, .process-card, .package-card, .bento-cell { padding: 20px; }
    .compact-list { grid-template-columns: 1fr; }

    .service-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; padding: 18px 2px; }
    .service-row h3 { font-size: 1.08rem; }

    #work { margin-top: 56px; padding-top: 48px; padding-bottom: 48px; }
    .portfolio-card .card-label { margin-top: 14px; }
    .portfolio-link-row { padding-bottom: 18px; }

    .contrast-spine { margin-top: 56px; }
    .cta-band { margin-top: 36px; padding: 26px 20px; flex-direction: column; align-items: flex-start; }

    .content > .hero:not(.hero-split) { gap: 22px; padding: 40px 0 0; }
    .content > .hero:not(.hero-split) .hero-copy { gap: 14px; }
    .hero-summary-card, .quick-facts { padding: 18px; gap: 12px; }
    .hero-summary-grid { gap: 12px; }
    .section.section-soft { margin-top: 48px; padding: 26px 20px; }

    .faq-list { gap: 9px; }
    .faq-list details { padding-inline: 18px; }
    .faq-list summary { padding: 14px 0; font-size: 1rem; }
    .faq-list details > p { padding-bottom: 16px; line-height: 1.5; }
    .contact-layout { gap: 22px; }
    .contact-card { padding: 16px 18px; }
    .intake-form { padding: 20px; }
    .form-grid { grid-template-columns: 1fr; gap: 14px; }
    .field textarea { min-height: 110px; }
    .risk-item label { padding: 13px 16px; line-height: 1.45; }
    .timeline-step { gap: 16px; padding-bottom: 22px; }

    .end-cta { margin-top: 56px; padding-top: 56px; padding-bottom: 44px; }
    .site-footer { margin-top: 56px; padding-top: 40px; padding-bottom: 36px; grid-template-columns: 1fr; gap: 24px; }
    .end-cta + .site-footer { margin-top: 0; }
    .footer-title { margin-bottom: 8px; }
    .footer-links { gap: 8px; }
    .footer-meta { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
    .hero-copy > *, .hero-media { opacity: 1; }
    .reveal-on-scroll { opacity: 1; transform: none; }
}
