/* Shared by every page: header, footer, older page components, extras. Builds on design.css. */
:root { --font-sans: var(--font-body); }
html { background: var(--ink-950); }
body.ds { overflow-x: clip; }
.ds .container, .ds .page { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 40px; }
@media (max-width: 800px) { .ds .container, .ds .page { padding-inline: 22px; } }
.ds img { max-width: 100%; }
.ds .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 100; top: -4rem; left: 1rem; padding: 0.75rem 1rem; background: var(--accent); color: var(--on-accent); font-weight: 700; border-radius: var(--radius-sm); }
.ds a.skip-link { color: var(--on-accent); }
.skip-link:focus { top: 1rem; }
[id] { scroll-margin-top: 5rem; }

/* HEADER */
.site-header.ds { background: var(--bg); }
.site-header.ds.is-scrolled { background: rgba(9, 14, 26, 0.9); }
.ds .topstrip-nav a.btn { min-height: 3rem; padding: var(--space-3) var(--space-5); background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--radius-pill); font-weight: 700; }
.ds .topstrip-nav a.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.ds .topstrip-nav a:not(.btn)[aria-current],
.ds .topstrip-nav a:not(.btn)[style*="color-primary"] { color: var(--accent) !important; font-weight: 700; }
.ds .topstrip-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 900px) {
  .ds .has-menu.has-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .ds .has-menu .menu-toggle { margin-left: auto; }
  .ds .has-menu .topstrip-nav.site-menu.site-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .ds .has-menu .topstrip-nav.site-menu.site-menu.is-open { display: flex; }
  .ds .has-menu .topstrip-nav.site-menu.site-menu a { display: flex; align-items: center; min-height: 3rem; border-top: 1px solid var(--line); color: var(--text); font-size: var(--text-base); }
  .ds .has-menu .topstrip-nav.site-menu.site-menu a.btn { justify-content: center; margin-top: var(--space-3); border: 0; color: var(--on-accent); }
}

/* Phone menu starts closed, so nothing jumps when nav.js adds its button. */
@media (max-width: 900px) {
  .js .ds .topstrip-nav:not(.is-open), .js .site-header .topstrip-nav:not(.is-open) { display: none; }
  .site-header-inner { min-height: 5.5rem; }
  .is-scrolled .site-header-inner { min-height: 4.5rem; }
}

/* FOOTER */
.site-footer { padding: var(--space-8) 0 7rem; background: var(--ink-950); border-top: 1px solid var(--line); font-size: var(--text-sm); }
.ftr-grid { display: grid; gap: var(--space-7); }
.ftr-grid p { color: var(--text-muted); }
.ftr-h { margin-bottom: var(--space-2); color: var(--accent); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ds .ftr-h { color: var(--accent); }
.ftr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.site-footer a:not(.logo) { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: 4px; }
.ftr-list a { text-decoration: none; }
.ftr-list a:hover { text-decoration: underline; }
.ftr-bottom { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); align-items: center; justify-content: space-between; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--text-muted); }
.ftr-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
@media (min-width: 56.25rem) { .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* BUTTONS AND LINKS used by older pages */
.ds .btn, .ds .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: var(--space-3) var(--space-5); border: 1px solid transparent; border-radius: var(--radius-pill); font: 700 var(--text-sm) var(--font-body); text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.ds .btn { background: var(--accent); color: var(--on-accent); }
.ds .btn:hover { background: var(--accent-hover); }
.ds .btn-ghost { border-color: var(--line-strong); color: var(--text); }
.ds .btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.ds .link-arrow, .ds .case-link, .ds .site-link, .ds .summary-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.ds .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
@media (max-width: 30rem) { .ds .hero-actions .btn, .ds .hero-actions .btn-ghost { flex: 1 1 100%; } }

/* PAGE TOP */
.ds .detail-hero, .ds main > .hero { padding: var(--space-7) 0 var(--space-6); text-align: left; }
.ds .detail-hero h1, .ds main > .hero h1 { max-width: 20ch; margin-top: var(--space-4); font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem); }
.ds h1 em, .ds h2 em { color: var(--accent); font-style: normal; }
.ds .hero-copy, .ds .hero-sub, .ds .intro, .ds .blog-intro { max-width: 40rem; margin-top: var(--space-4); color: var(--text-muted); font-size: var(--text-lg); }
.ds div.hero-copy { font-size: inherit; color: inherit; max-width: none; margin-top: 0; }
.ds .hero-eyebrow { display: flex; }
.ds .hero-eyebrow .ticker { display: none; }
.ds .hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.ds .hero-meta span { padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--text-muted); font-size: var(--text-xs); }

/* SECTIONS */
:where(.ds main > section) { padding-block: var(--space-7); }
.ds main > .detail-section { padding-top: var(--space-4); }
.ds .section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); max-width: 46rem; }
.ds .section-head .num { display: flex; align-items: center; gap: var(--space-3); color: var(--accent); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ds .section-head .num::before { content: ""; width: 2rem; height: 2px; background: currentColor; }

/* ARTICLES AND SIDE CARDS */
.ds .detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: start; }
@media (min-width: 64rem) { .ds .detail-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr); } }
.ds .content-panel, .ds .evidence-card, .ds .mini-card, .ds .quote-card, .ds .hero-panel, .ds .estimate, .ds .contact-aside, .ds .get-grid article, .ds .story-grid > .story-copy, .ds .grid > .card, .ds .toc, .ds .note, .ds .proof-box { background: linear-gradient(180deg, var(--surface-raised), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ds .content-panel { min-width: 0; padding: var(--space-6) var(--space-5); }
.ds .content-panel h2 { margin: var(--space-7) 0 var(--space-3); font-size: var(--text-xl); line-height: 1.2; }
.ds .content-panel h3 { margin: var(--space-5) 0 var(--space-2); font-size: var(--text-lg); }
.ds .content-panel p { margin: 0 0 var(--space-4); color: var(--text-muted); }
.ds .content-panel ul, .ds .content-panel ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; color: var(--text-muted); }
.ds .content-panel li { margin-bottom: var(--space-2); }
.ds .content-panel a:not(.btn):not(.btn-ghost) { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.ds .content-panel .tick-list { padding-left: 0; list-style: none; }
.ds .tick-list li { position: relative; padding-left: 1.75rem; }
.ds .tick-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.ds .section-label { display: inline-block; margin: var(--space-2) 0 var(--space-3); padding: 4px 12px; background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ds .content-panel table { display: block; width: 100%; margin-bottom: var(--space-4); overflow-x: auto; border-collapse: collapse; font-size: var(--text-sm); }
.ds .content-panel th, .ds .content-panel td { padding: 10px 14px; border: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.ds .side-panel { display: grid; gap: var(--space-4); }
.ds .evidence-card, .ds .mini-card { padding: var(--space-5); }
.ds .evidence-card h3, .ds .mini-card h3 { margin-bottom: var(--space-3); font-size: var(--text-lg); }
.ds .meta-list { margin: 0 0 var(--space-4); padding-left: 1.1rem; color: var(--text-muted); }
.ds .meta-list li { margin-bottom: var(--space-2); }
.ds .mini-card p { color: var(--text-muted); }
.ds .related-strip, .ds .mini-links { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.ds .related-item { display: grid; gap: 2px; min-height: 2.75rem; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; }
.ds .related-item:hover { border-color: var(--accent); }
.ds .related-item span { color: var(--text-muted); font-size: var(--text-sm); }
.ds .mini-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ds .shot-frame { margin: 0 0 var(--space-5); }
.ds .shot-frame img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.ds .proof-grid, .ds .proof-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space-3); margin-top: var(--space-5); }
.ds .proof-box, .ds .proof-strip > * { padding: var(--space-4); }

/* BLOG LIST */
.ds .article-list { max-width: 48rem; margin: 0; padding: 0; list-style: none; }
.ds .article-list li { border-top: 1px solid var(--line-strong); }
.ds .article-list a { display: flex; align-items: center; min-height: 3.5rem; padding: var(--space-2) 0; font-weight: 700; text-decoration: none; }
.ds .article-list a:hover { color: var(--accent); }

/* ABOUT AND PORTFOLIO */
.ds .hero-grid, .ds .story-grid, .ds .contact-grid, .ds .estimate-wrap { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 62rem) { .ds .hero-grid, .ds .story-grid, .ds .contact-grid, .ds .estimate-wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.ds .hero-panel, .ds .quote-card, .ds .contact-aside, .ds .estimate { padding: var(--space-5); }
.ds .founder-photo { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.ds .founder-caption, .ds .label { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--text-sm); }
.ds .hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: var(--space-3); margin-top: var(--space-4); }
.ds .story-copy { padding: var(--space-5); }
.ds .story-copy p { margin-bottom: var(--space-4); color: var(--text-muted); }
.ds .quote-card blockquote { margin: var(--space-3) 0 0; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.3; }
.ds .cta-band { border-block: 1px solid var(--line); background: var(--surface); }
.ds .cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); font-size: var(--text-lg); }
.ds .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--space-4); }
.ds .grid > .card { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-4); overflow: hidden; }
.ds .grid > .card img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.ds .grid .meta { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-muted); }
.ds .grid .meta span { padding: 2px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.ds .grid .card-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* SERVICES, PROCESS, PRICING */
.ds .get-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--space-4); }
.ds .get-grid article { padding: var(--space-5); }
.ds .get-grid p { margin-top: var(--space-3); color: var(--text-muted); }
.ds .process { display: grid; }
.ds .proc-row { display: grid; gap: var(--space-2) var(--space-5); padding: var(--space-5) 0; border-top: 1px solid var(--line-strong); }
.ds .proc-row .pn { color: var(--accent); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; }
.ds .proc-row .pt { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; line-height: 1.2; }
.ds .proc-row .pt em { font-style: normal; color: var(--accent); }
.ds .proc-row .pd, .ds .proc-row .pw { color: var(--text-muted); }
.ds .proc-row .pw strong { margin-right: var(--space-2); color: var(--text); }
@media (min-width: 56.25rem) { .ds .proc-row { grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.1fr) 9rem; align-items: baseline; } }
.ds .estimate-intro p { margin-bottom: var(--space-4); color: var(--text-muted); font-size: var(--text-lg); }
.ds .tier-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: baseline; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.ds .tier-name { font-weight: 700; }
.ds .tier-name small { display: block; color: var(--text-muted); font-weight: 400; }
.ds .tier-row .price { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; }
.ds .faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--space-5); }
.ds .faq .q { padding-top: var(--space-4); border-top: 1px solid var(--line-strong); }
.ds .faq .q h3 { margin-bottom: var(--space-2); font-size: var(--text-lg); }
.ds .faq .q p { color: var(--text-muted); }

/* CONTACT AND FORMS */
.ds .contact h2 { margin-bottom: var(--space-4); }
.ds .contact-intro { max-width: 36rem; margin-bottom: var(--space-5); color: var(--text-muted); font-size: var(--text-lg); }
.ds .form { display: grid; gap: var(--space-5); }
.ds .form-row { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.ds .form label { display: grid; gap: var(--space-2); font-weight: 700; font-size: var(--text-sm); }
.ds .form input:not([tabindex="-1"]), .ds .form textarea { width: 100%; min-height: 3rem; padding: var(--space-3) var(--space-4); background: var(--ink-950); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: 400 1rem var(--font-body); }
.ds .form textarea { min-height: 8rem; resize: vertical; }
.ds .form .btn { justify-self: start; }
.ds .form-status { padding: var(--space-3) var(--space-4); border: 1px solid var(--accent); border-radius: var(--radius-sm); }
.ds .form-status[hidden] { display: none; }
.ds .contact-aside .big { margin: var(--space-2) 0 var(--space-5); font-size: clamp(1rem, 4.2vw, 1.5rem); font-weight: 700; overflow-wrap: anywhere; }
.ds .contact-aside .big a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ds .contact-aside .schedule { margin-bottom: var(--space-4); }
.ds .contact-aside .schedule strong { display: block; color: var(--text-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; }

/* HOMEPAGE ENDING */
.ds .contact:not(.contact-page) .contact-grid { align-items: start; }
.ds .home-end { padding-block: var(--section-y); text-align: left; border-top: 1px solid var(--line); background: radial-gradient(60% 80% at 15% 100%, var(--accent-soft), transparent); }
.ds .areas { padding-block: var(--space-6); border-top: 1px solid var(--line); color: var(--text-muted); }
.ds .areas a { color: var(--text); text-underline-offset: 4px; }

/* PRIVACY AND TERMS */
.ds section.wrap { width: 100%; max-width: 52rem; margin-inline: auto; padding-inline: 22px; }
.ds section.wrap p, .ds section.wrap li { color: var(--text-muted); }
.ds section.wrap p { margin-bottom: var(--space-4); }
.ds section.wrap h2 { margin: var(--space-6) 0 var(--space-3); font-size: var(--text-xl); }
.ds section.wrap a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.ds .toc, .ds .note { margin-block: var(--space-5); padding: var(--space-4) var(--space-5); }
.ds .toc a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ds main > .hero.legal-hero { text-align: left; }
.ds .legal-hero > * { max-width: 52rem; margin-inline: auto; padding-inline: 22px; }

/* REVIEW FORM */
.ds .review-page > * { max-width: 700px; }
.ds .review-form { display: grid; gap: var(--space-2); }
.ds .review-form[hidden], .ds .review-thanks[hidden], .ds .review-status[hidden] { display: none; }
.ds .review-form > label, .ds .review-form legend { margin-top: var(--space-4); padding: 0; font-weight: 700; }
.ds .req, .ds .hint { color: var(--text-muted); font-weight: 400; }
.ds .hint { display: block; font-size: var(--text-sm); }
.ds .review-form input[type="text"], .ds .review-form textarea { width: 100%; min-height: 3rem; padding: var(--space-3); background: var(--ink-950); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: 400 1rem var(--font-body); }
.ds .stars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; border: 0; }
.ds .stars legend { margin-bottom: var(--space-2); }
.ds .stars label { position: relative; }
.ds .stars input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ds .stars label > span { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 3rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 700; pointer-events: none; }
.ds .stars b { color: var(--accent); }
.ds .stars input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ds .stars input:checked + span b { color: var(--on-accent); }
.ds .stars input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.ds .review-form > label.tick { display: flex; align-items: flex-start; gap: var(--space-3); min-height: 2.75rem; font-weight: 400; cursor: pointer; }
.ds .tick input { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.ds .trap { position: absolute; left: -9999px; opacity: 0; }
.ds .review-form .btn { justify-self: start; margin-top: var(--space-4); }
.ds .review-status { padding: var(--space-3) var(--space-4); border: 1px solid #ff8a80; border-radius: var(--radius-sm); color: #ffb4ab; }
.ds .review-thanks { padding: var(--space-6) var(--space-5); }

/* FLOATING BUTTONS */
.qa-open { background: var(--surface-raised) !important; border: 1px solid var(--line-strong) !important; border-radius: var(--radius-pill); }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 89; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; background: #25d366; color: #05240f; border-radius: 50%; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); }
.ds a.wa-float { color: #05240f; }
.wa-float svg { width: 1.9rem; height: 1.9rem; }
.has-wa .qa-open, .has-wa .qa-panel { bottom: 84px; }
.has-wa .qa-panel { height: min(520px, calc(100dvh - 100px)); }

/* CURSOR FOLLOWER: desktop pointers only, added by site.js */
.cursor { position: fixed; top: 0; left: 0; z-index: 200; width: 2rem; height: 2rem; margin: -1rem 0 0 -1rem; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity var(--dur), width var(--dur), height var(--dur), margin var(--dur), background-color var(--dur); }
.cursor.is-on { opacity: 0.8; }
.cursor.is-over { width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; background: var(--accent-soft); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* FIRST VISIT INTRO: under a second, never blocks taps */
html.intro::after { content: ""; position: fixed; inset: 0; z-index: 300; background: var(--ink-950) url("logo-mark.svg") center / 7rem no-repeat; pointer-events: none; animation: intro-out 750ms var(--ease) forwards; }
@keyframes intro-out { 0%, 45% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { html.intro::after, .cursor { display: none; } }

/* Portfolio page */
.ds .hero-panel h2 { margin: var(--space-3) 0; font-size: var(--text-xl); line-height: 1.2; }
.ds .proof-strip > * { border: 1px solid var(--line); border-radius: var(--radius-md); }
.ds .hero-stats strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); }
