/* Rondary site styles. Tokens mirror the Rondary design system tokens.json. */

/* Site-only variables. Brand tokens live in tokens.css (generated from the design system). */
:root { --font: var(--font-sans); --band-ring: #7C9BFF; --blob-op: .75; --max: 1160px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --blob-op: .6; } }
:root[data-theme="dark"] { --blob-op: .6; }
/* Backdrop blob opacity, per blob. Text sits on the blobs, so each is capped where ink, ink-muted and
   accent-text keep 4.5:1 at the blob's centre, with or without glass on top (A07 QA, 2026-11-11).
   Light: only blob-1 needed lowering. Dark: glass lightens the ground, so all three come down.
   --blob-op stays for the softer .hero-visual / .svc-visual glows, which pass as they are. */
:root { --blob-1-op: .42; --blob-2-op: .75; --blob-3-op: .75; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --blob-1-op: .46; --blob-2-op: .28; --blob-3-op: .48; } }
:root[data-theme="dark"] { --blob-1-op: .46; --blob-2-op: .28; --blob-3-op: .48; }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* draft strip: remove at launch */
.draft-strip { position: relative; z-index: 30; background: var(--signal); color: var(--on-signal); font-size: 13px; font-weight: 700; text-align: center; padding: 6px 16px; }

/* backdrop */
.backdrop { position: relative; overflow: hidden; isolation: isolate; }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(var(--blur-blob)); animation: drift 22s ease-in-out infinite; pointer-events: none; }
.blob-1 { width: 620px; height: 620px; left: -180px; top: -160px; background: var(--blob-1); opacity: var(--blob-1-op); }
.blob-2 { width: 480px; height: 480px; right: -160px; top: 30%; background: var(--blob-2); opacity: var(--blob-2-op); animation-delay: -8s; }
.blob-3 { width: 560px; height: 560px; left: 25%; bottom: -260px; background: var(--blob-3); opacity: var(--blob-3-op); animation-delay: -14s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(48px, -36px); } }

/* layout */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: var(--space-9) 0; }
@media (max-width: 700px) { .section { padding-block: var(--space-8) 0; } }
.section-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); max-width: 760px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.h2 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.lede { font-size: 19px; color: var(--ink-muted); max-width: 640px; }
.muted { color: var(--ink-muted); }

/* glass */
.glass { background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(170%); backdrop-filter: blur(var(--blur-glass)) saturate(170%); box-shadow: var(--shadow-glass); border-radius: var(--radius-lg); }
.glass-strong { background: var(--glass-strong); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--surface); } }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -.035em; line-height: 1; }
.logo svg { width: 28px; height: 28px; flex: none; }
.ring { fill: none; stroke: var(--accent); }
.dot { fill: var(--signal); }
.orbit { transform-box: view-box; transform-origin: 24px 24px; animation: orbit 1.8s cubic-bezier(.45,0,.2,1) .4s both; }
@keyframes orbit { from { transform: rotate(-360deg); } to { transform: rotate(0deg); } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font: inherit; font-size: 16px; font-weight: 700; line-height: 1; min-height: 48px; padding: 0 var(--space-5); border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px rgba(61,107,255,.28); }
.btn-glass { background: var(--glass); color: var(--ink); border-color: var(--glass-edge); -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(170%); backdrop-filter: blur(var(--blur-glass)) saturate(170%); box-shadow: var(--shadow-glass); }
.btn-sm { min-height: 40px; font-size: 15px; padding: 0 var(--space-4); border-radius: var(--radius-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; padding-top: var(--space-4); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5); }
.nav { display: flex; align-items: center; gap: var(--space-5); font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink-muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }
.menu-btn { display: none; }
.mobile-menu { margin-top: var(--space-2); padding: var(--space-3); display: flex; flex-direction: column; }
.mobile-menu a { padding: 12px var(--space-3); color: var(--ink); text-decoration: none; font-weight: 600; border-radius: var(--radius-sm); }
@media (max-width: 900px) { .nav a:not(.btn) { display: none; } .menu-btn { display: inline-flex; } }
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* hero */
.hero { padding-block: var(--space-8) 0; display: flex; flex-direction: column; gap: var(--space-5); max-width: 880px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.0; font-weight: 800; letter-spacing: -.045em; }
.hero .lede { margin-top: -4px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.chips-label { font-size: 14px; color: var(--ink-muted); margin-right: var(--space-1); }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-pill); font-size: 15px; font-weight: 600; }

/* rounds diagram */
.steps-row { display: flex; flex-wrap: wrap; align-items: center; row-gap: var(--space-4); }
.thread { flex: 1 1 16px; min-width: 16px; height: 1.5px; background: var(--thread); transform-origin: left center; animation: draw .6s ease both; }
.node { flex: 0 0 136px; width: 136px; height: 136px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: var(--space-3); font: inherit; color: var(--ink); text-align: center; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.node:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-lift); }
.node[aria-expanded="true"] { box-shadow: var(--shadow-lift), 0 0 0 3px var(--accent); }
.node-out { background: var(--signal); color: var(--on-signal); border-color: transparent; }
.node-step { font-size: 12px; font-weight: 700; opacity: .75; }
.node-label { font-size: 16px; font-weight: 800; line-height: 1.15; }
.detail { margin-top: var(--space-5); padding: var(--space-5) var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.detail strong { display: block; font-size: 20px; margin-bottom: 4px; }
.detail a { font-weight: 700; text-decoration: none; }
.inputs { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: 14px; color: var(--ink-muted); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports (animation-timeline: view()) { .node, .thread { animation-timeline: view(); animation-range: entry 5% cover 30%; animation-duration: auto; } }
@media (max-width: 760px) { .node { flex-basis: 112px; width: 112px; height: 112px; } .node-label { font-size: 14px; } }

/* services */
.services { display: flex; flex-direction: column; }
.service { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--glass-edge); text-decoration: none; color: var(--ink); }
.service:first-child { border-top: 0; }
.service:hover .go { color: var(--accent-text); }
.icon-tile { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.icon-tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-name { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.service-line { display: block; font-size: 15px; color: var(--ink-muted); margin-top: 2px; }
.go { font-size: 15px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
@media (max-width: 560px) { .go { display: none; } .service { grid-template-columns: 48px minmax(0, 1fr); } }

/* grids and cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--space-5); align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--space-5); }
.card { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.card h3 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.card .link { font-weight: 700; text-decoration: none; margin-top: auto; }
.result { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; }
.result::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 2px var(--on-signal); flex: none; }
.placeholder { display: inline-block; padding: 2px 8px; border-radius: 6px; border: 1px dashed var(--ink-muted); color: var(--ink-muted); font-size: .9em; font-weight: 600; }

/* steps */
.step { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 800; margin-bottom: var(--space-2); }
.step h3 { font-size: 18px; font-weight: 800; }
.step p { font-size: 15px; color: var(--ink-muted); line-height: 1.5; }
ol.grid-4 { list-style: none; margin: 0; padding: 0; }

/* pricing */
.price-card { position: relative; }
.price-card.is-rec { border: 2px solid var(--accent); }
.flag { position: absolute; top: -14px; right: var(--space-5); background: var(--signal); color: var(--on-signal); font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: var(--radius-pill); }
.price { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price small { font-size: 17px; font-weight: 600; color: var(--ink-muted); letter-spacing: 0; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); font-size: 15px; }
.list li { display: flex; gap: var(--space-2); }
.list li::before { content: ""; width: 14px; height: 14px; margin-top: 4px; flex: none; border-radius: 50%; border: 2.5px solid var(--accent); }
.terms { margin-top: var(--space-5); font-size: 14px; color: var(--ink-muted); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-7); align-items: center; padding: var(--space-6); }
.headshot { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); border: 1px dashed var(--ink-muted); display: flex; align-items: center; justify-content: center; color: var(--ink-muted); font-weight: 700; font-size: 14px; }
.about-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.about-copy p { max-width: 62ch; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .headshot { max-width: 280px; } }

/* form */
.form { padding: var(--space-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 104px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--status-problem); }
.error { font-size: 14px; font-weight: 600; color: var(--status-problem); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.success { grid-column: 1 / -1; font-weight: 700; color: var(--status-good); }
.review-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: var(--space-7); align-items: start; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* cta band + footer */
.cta { background: var(--band); color: var(--on-band); border-radius: var(--radius-xl); padding: var(--space-7) var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; max-width: 560px; }
.cta p { margin-top: var(--space-2); color: var(--on-band-muted); max-width: 560px; }
.site-footer { background: var(--band); color: var(--on-band); margin-top: var(--space-9); padding-block: var(--space-8) var(--space-6); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: var(--space-6); }
.site-footer h4 { margin: 0 0 var(--space-3); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-band-muted); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); font-size: 15px; }
.site-footer a { color: var(--on-band); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logo { color: var(--on-band); }
.site-footer .ring { stroke: var(--band-ring); }
.site-footer .placeholder { border-color: var(--on-band-muted); color: var(--on-band-muted); }
.footer-base { margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid rgba(238,242,250,.14); font-size: 14px; color: var(--on-band-muted); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { .blob, .node, .thread, .orbit { animation: none; } .btn:hover, .node:hover { transform: none; } }

/* fixes */
[hidden] { display: none !important; }
.about { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .nav .btn-primary { display: none; } }
@media (max-width: 760px) {
  .steps-row { flex-direction: column; align-items: stretch; row-gap: 0; }
  .node { flex: none; width: 100%; height: auto; min-height: 60px; border-radius: var(--radius-pill); flex-direction: row; justify-content: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-5); text-align: left; }
  .node-label { font-size: 17px; }
  .thread { flex: none; width: 1.5px; min-width: 0; height: 18px; margin-left: 40px; transform-origin: top center; animation-name: draw-v; }
}
@keyframes draw-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* inner pages */
.crumbs { padding-top: var(--space-6); font-size: 14px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.hero-sub { padding-block: var(--space-5) 0; }
.hero-sub h1 { font-size: clamp(36px, 5.2vw, 56px); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-7); align-items: start; }
.two-col .section-head { margin-bottom: 0; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: var(--space-5); } }
.price-rows { gap: var(--space-4); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.price-row strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.faq { display: flex; flex-direction: column; gap: var(--space-3); max-width: 820px; }
.faq-item { padding: 0; }
.faq-item summary { cursor: pointer; list-style: none; padding: var(--space-4) var(--space-5); font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-text); font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 var(--space-5) var(--space-5); color: var(--ink-muted); max-width: 65ch; }
.sample { gap: var(--space-3); }
.sample-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--space-3); align-items: baseline; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); font-size: 15px; }
.sample-row:last-child { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-good { color: var(--status-good); } .status-warn { color: var(--status-warn); } .status-problem { color: var(--status-problem); }
a.chip { color: var(--ink); text-decoration: none; }
a.chip:hover { color: var(--accent-text); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
a.svc-link { color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.svc-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
a.svc-link .link, .card .link { color: var(--accent-text); font-weight: 700; text-decoration: none; }
.story { display: flex; flex-direction: column; gap: var(--space-4); max-width: 65ch; }
.card .status { margin-bottom: var(--space-1); }
@media (prefers-reduced-motion: reduce) { a.svc-link:hover { transform: none; } }
.case-result { padding: var(--space-7) var(--space-6); }
.quote { margin: 0; padding: var(--space-6); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-4); max-width: 860px; }
.quote-mark { width: 40px; height: 40px; }
.quote blockquote { margin: 0; font-size: 24px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.quote figcaption { margin-top: var(--space-3); font-size: 15px; color: var(--ink-muted); }
.shot { min-height: 280px; align-items: center; justify-content: center; }
.row-name { display: block; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.row-note { display: block; font-size: 14px; }
.price-row strong.row-name { font-size: 16px; white-space: normal; }
.legal { max-width: 820px; gap: var(--space-6); }
.legal-sec h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: var(--space-2); }
.legal-sec p { color: var(--ink-muted); max-width: 65ch; }
.legal-sec p + p { margin-top: var(--space-2); }
.legal-note { font-size: 14px; color: var(--ink-muted); }
.section-head .link { margin-top: var(--space-2); }
.terms a { font-weight: 700; text-decoration: none; margin-right: 6px; }

/* review form states */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-error { grid-column: 1 / -1; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--status-problem); color: var(--status-problem); background: var(--surface); font-weight: 600; font-size: 15px; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* Home hero visual: a lead making the rounds. Decorative; the real content is the steps diagram below. */
.hero-home { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-5); max-width: 760px; }
@media (min-width: 1040px) { .hero-home { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hero-visual { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: center; }
@media (max-width: 1039px) { .hero-visual { max-width: 400px; } }
.hv-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hv-track { fill: none; stroke: var(--thread); stroke-width: 1.25; stroke-dasharray: 2 7; stroke-linecap: round; }
.hv-trail { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 22 78; transform-origin: 240px 240px; transform: rotate(-90deg); animation: hv-trail 9s linear infinite; opacity: .9; }
.hv-spin { transform-origin: 240px 240px; animation: hv-spin 9s linear infinite; }
.hv-dot { fill: var(--signal); stroke: var(--ink); stroke-width: 2; }
.hv-dot-halo { fill: var(--signal); opacity: .35; }
@keyframes hv-spin { to { transform: rotate(360deg); } }
@keyframes hv-trail { from { stroke-dashoffset: 22; } to { stroke-dashoffset: -78; } }
.hv-node { position: absolute; display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-pill); font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; transform: translate(-50%, -50%); }
.hv-n1 { left: 50%; top: 9%; } .hv-n2 { left: 91%; top: 50%; } .hv-n3 { left: 50%; top: 91%; } .hv-n4 { left: 9%; top: 50%; }
.hv-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56%; padding: var(--space-5); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--space-3); }
.hv-card-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.hv-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.hv-steps li { position: relative; padding-left: 26px; font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.hv-steps li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); }
.hv-steps li.is-done { color: var(--ink); }
.hv-steps li.is-done::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.hv-steps li.is-now { color: var(--ink); }
.hv-steps li.is-now::before { border-color: var(--ink); background: var(--signal); }
.hv-pill { align-self: flex-start; background: var(--signal); color: var(--on-signal); font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: var(--radius-pill); }
@media (prefers-reduced-motion: reduce) { .hv-spin, .hv-trail { animation: none; } }
.hero-visual::before { content: ""; position: absolute; inset: 14%; z-index: -1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--blob-2), transparent 62%), radial-gradient(circle at 70% 70%, var(--blob-1), transparent 60%); filter: blur(40px); opacity: var(--blob-op); }
.hero-home h1 { font-size: clamp(42px, 5.6vw, 72px); }
@media (max-width: 520px) { .hero-visual { max-width: 320px; } .hv-node { display: none; } .hv-card { width: 74%; padding: var(--space-4); gap: var(--space-2); } .hv-steps li { font-size: 14px; } }

/* Service hero visuals: glass mockups, skeleton bars, no claims. */
.hero-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); align-items: center; }
@media (min-width: 1040px) { .hero-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.svc-visual { position: relative; width: 100%; max-width: 440px; min-height: 380px; justify-self: center; display: flex; align-items: center; justify-content: center; }
.svc-visual::before { content: ""; position: absolute; inset: 10%; z-index: -1; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--blob-2), transparent 60%), radial-gradient(circle at 70% 70%, var(--blob-1), transparent 60%); filter: blur(40px); opacity: var(--blob-op); }
.sk { display: block; height: 9px; border-radius: 6px; background: var(--line); }
.sv-k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.sv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 800; white-space: nowrap; }
.sv-btn-accent { background: var(--accent); color: var(--on-accent); }
.sv-btn-signal { background: var(--signal); color: var(--on-signal); }
.sv-btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.sv-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.sv-tag { position: absolute; display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sv-tag-a { left: 0; top: 14%; } .sv-tag-b { right: 0; bottom: 12%; }
/* websites */
.sv-phone { width: 230px; height: 400px; border-radius: 36px; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.sv-phone-top { display: flex; align-items: center; gap: var(--space-2); } .sv-phone-top .sk { flex: none; }
.sv-logo { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--accent); flex: none; }
.sv-phone-body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; } .sv-gap { height: var(--space-2); }
.sv-tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-2); }
.sv-tile { height: 64px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.sv-phone-cta { display: grid; gap: var(--space-2); } .sv-phone-cta .sv-btn { min-height: 42px; font-size: 14px; }
/* seo */
.sv-search { width: 320px; padding: var(--space-4); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--space-3); }
.sv-query { display: flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.sv-q-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink-muted); }
.sv-map { position: relative; height: 120px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; background-color: var(--accent-soft); }
.sv-pin { position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink-muted); }
.sv-pin-1 { left: 22%; top: 30%; } .sv-pin-2 { left: 70%; top: 58%; } .sv-pin-me { left: 48%; top: 40%; width: 20px; height: 20px; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--signal) 55%, transparent); }
.sv-listing { display: flex; flex-direction: column; gap: var(--space-2); } .sv-l-name { font-size: 16px; font-weight: 800; color: var(--ink); }
/* ads */
.sv-ad { position: relative; z-index: 2; width: 300px; padding: var(--space-5); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--space-2); transform: translate(-30px, -40px); }
.sv-ad-h { font-size: 17px; font-weight: 800; color: var(--accent-text); line-height: 1.25; }
.sv-form { position: absolute; z-index: 1; right: 4%; bottom: 14%; width: 200px; padding: var(--space-4); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--space-2); }
.sv-field { display: block; height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.svc-ads .sv-tag-b { bottom: 2%; right: auto; left: 6%; }
/* crm */
.sv-board { width: 360px; padding: var(--space-4); border-radius: var(--radius-lg); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.sv-col { display: flex; flex-direction: column; gap: var(--space-2); min-height: 180px; }
.sv-card { display: flex; flex-direction: column; gap: 6px; padding: var(--space-3); border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.sv-card-live { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sv-card-done { border-color: var(--signal); box-shadow: inset 4px 0 0 var(--signal); }
.sv-toast { position: absolute; right: 0; bottom: 8%; display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 13px; color: var(--ink); line-height: 1.4; max-width: 240px; }
.sv-toast-dot { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--ink); }
/* operations */
.sv-list { width: 300px; padding: var(--space-5); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--space-3); }
.sv-check li { font-size: 15px; }
@media (max-width: 1039px) { .svc-visual { max-width: 400px; } }
@media (max-width: 520px) { .svc-visual { min-height: 320px; transform: scale(.86); margin-block: -24px; } .sv-tag { display: none; } .sv-ad { transform: translate(-10px, -40px); } }
.svc-visual { min-height: 480px; }
.sv-tag-a { top: 2%; left: 2%; } .sv-tag-b { bottom: 2%; right: 2%; }
.svc-websites .sv-tag-a { top: 18%; left: 0; } .svc-websites .sv-tag-b { bottom: 14%; right: 0; }
@media (max-width: 520px) { .svc-visual { min-height: 400px; } }

/* Industry hero visuals: one lead's path, three glass steps on a thread. */
.ij { position: relative; list-style: none; margin: 0; padding: 0; width: 340px; display: flex; flex-direction: column; gap: var(--space-5); }
.ij::before { content: ""; position: absolute; left: 39px; top: 30px; bottom: 30px; border-left: 2px dashed var(--thread); z-index: -1; }
.ij-card { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-lg); }
.ij-1 { margin-left: 28px; } .ij-2 { margin-left: 8px; }
.ij-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); }
.ij-done .ij-ic { background: var(--signal); color: var(--on-signal); }
.ij-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ij-t { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.ij-s { font-size: 14px; color: var(--ink-muted); line-height: 1.4; } .ij-s:empty { display: none; }
.ij-bubble { margin-top: 4px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; line-height: 1.4; }
.ij-done .hv-pill { margin-top: 6px; }
.ind-visual .sv-tag-a { top: 0; left: auto; right: 0; } .ind-visual .sv-tag-b { bottom: 0; right: auto; left: 0; }
@media (max-width: 520px) { .ij { width: 300px; } .ij-1 { margin-left: 16px; } }

/* Case study showcase: live client site in a glass browser frame plus a phone. */
.showcase { position: relative; margin: 0; padding-bottom: var(--space-8); }
.browser { border-radius: var(--radius-lg); overflow: hidden; padding: 0; width: calc(100% - 140px); }
.browser-bar { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--glass-edge); }
.browser-dots { display: flex; gap: 6px; } .browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.browser-url { flex: 1; max-width: 360px; margin-inline: auto; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 6px 14px; }
.browser img { display: block; width: 100%; height: auto; }
.device-phone { position: absolute; right: 0; bottom: 0; width: 240px; padding: 9px; border-radius: 40px; background: var(--band); box-shadow: var(--shadow-lift); }
.device-phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.showcase figcaption { margin-top: var(--space-5); }
@media (max-width: 760px) { .browser { width: 100%; } .device-phone { position: relative; width: 200px; margin: calc(-1 * var(--space-8)) var(--space-4) 0 auto; } .showcase { padding-bottom: 0; } }

/* Work grid thumbnails */
.work-card { padding-top: var(--space-3); }
.thumb { position: relative; margin: 0 calc(-1 * var(--space-3)) var(--space-3); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--glass-edge); background: var(--surface); aspect-ratio: 16 / 11; display: flex; flex-direction: column; }
.thumb-bar { display: flex; gap: 5px; padding: 8px 10px; background: var(--glass-strong); border-bottom: 1px solid var(--line); flex: none; }
.thumb-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.thumb img { display: block; width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top; transition: transform .4s ease; }
.work-card:hover .thumb img { transform: scale(1.03); }
.thumb-empty { align-items: center; justify-content: flex-start; color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.thumb-empty svg { margin: auto; }
@media (prefers-reduced-motion: reduce) { .work-card:hover .thumb img { transform: none; } }
.thumb-empty .thumb-bar { align-self: stretch; }

/* Review page: sample report */
.rv-visual { min-height: 0; }
.rv-report { margin: 0; width: 100%; max-width: 420px; padding: var(--space-5); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--space-4); }
.rv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.rv-site { font-size: 17px; font-weight: 800; color: var(--ink); }
.rv-sample { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-signal); background: var(--signal); padding: 5px 10px; border-radius: var(--radius-pill); }
.rv-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.rv-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "area tag" "find tag"; column-gap: var(--space-3); row-gap: 2px; align-items: center; padding: var(--space-3); border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.rv-area { grid-area: area; font-size: 12px; font-weight: 800; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.rv-find { grid-area: find; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.rv-tag { grid-area: tag; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.rv-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rv-problem { color: var(--status-problem); } .rv-warn { color: var(--status-warn); } .rv-good { color: var(--status-good); }
.rv-fix ol { margin: var(--space-2) 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.rv-fix li::marker { color: var(--accent-text); font-weight: 800; }
.rv-cap { font-size: 13px; color: var(--ink-muted); }
@media (max-width: 520px) { .rv-visual { transform: none; margin-block: 0; } }

/* About headshot */
.headshot-frame { position: relative; margin: 0; padding: var(--space-2); border-radius: var(--radius-xl); align-self: start; }
.headshot-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: calc(var(--radius-xl) - var(--space-2)); }
.headshot-frame figcaption { position: absolute; left: var(--space-5); bottom: var(--space-5); display: inline-flex; align-items: center; gap: var(--space-2); padding: 8px 14px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--band) 80%, transparent); border: 1px solid color-mix(in srgb, var(--on-band) 20%, transparent); -webkit-backdrop-filter: blur(var(--blur-glass)); backdrop-filter: blur(var(--blur-glass)); font-size: 14px; font-weight: 700; color: var(--on-band); }
.hs-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
@media (max-width: 760px) { .headshot-frame { max-width: 320px; } }

/* Home hero in 3D (assets/js/hero3d.js). Everything here applies only once the script adds .has-3d; without it the CSS hero above stands. */
.hero-home { position: relative; }
.hero-home .hero-copy { position: relative; z-index: 2; }
.h3d { position: absolute; top: -120px; bottom: -90px; left: 50%; width: 100vw; transform: translateX(-50%); z-index: 1; pointer-events: none; overflow: hidden; }
.h3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent); }
.has-3d .hero-visual > * { visibility: hidden; }
.has-3d .hero-visual { touch-action: pan-y; }
.has-3d .hero-visual::before { translate: var(--h3d-x, 0) var(--h3d-y, 0); }
.h3d-chip { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-pill); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; cursor: pointer; pointer-events: auto; transition: background .35s ease, color .35s ease, box-shadow .35s ease, scale .25s ease; }
.h3d-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-muted); transition: background .3s ease, border-color .3s ease; }
.h3d-chip.is-done::before { background: var(--accent); border-color: var(--accent); }
.h3d-chip.is-on { background: var(--signal); color: var(--on-signal); border-color: transparent; scale: 1.06; }
.h3d-chip.is-on::before { background: var(--on-signal); border-color: var(--on-signal); }
.h3d-chip:hover, .h3d-chip.is-open { scale: 1.1; box-shadow: var(--shadow-lift), 0 0 0 3px var(--accent-soft); }
.h3d-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.h3d-card { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 190px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.h3d-k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.h3d-v { font-size: clamp(20px, 2.4vw, 27px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; padding: 4px 14px; border-radius: var(--radius-pill); color: var(--ink); transition: background .3s ease, color .3s ease; }
.h3d-v.is-booked { background: var(--signal); color: var(--on-signal); }
.h3d-pop { position: absolute; left: 0; top: 0; z-index: 4; width: 248px; padding: var(--space-4); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(.94); transition: opacity .18s ease, transform .18s ease, visibility 0s .18s; pointer-events: none; }
.h3d-pop.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); transition: opacity .18s ease, transform .18s ease; pointer-events: auto; }
.h3d-pt { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.h3d-d { font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.h3d-a { font-size: 14px; font-weight: 700; }
.h3d-tip { position: absolute; left: 0; top: 0; z-index: 3; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; opacity: 0; translate: 0 4px; transition: opacity .15s ease, translate .15s ease; pointer-events: none; }
.h3d-tip.is-on { opacity: 1; translate: 0 0; }
@media (min-width: 560px) { .has-3d .hero-visual { margin-block: calc(var(--space-8) * 2) var(--space-8); } }
@media (max-width: 559px) { .has-3d .hero-visual { max-width: 360px; margin-bottom: 120px; transition: margin-bottom .25s ease; } .has-3d.h3d-open .hero-visual { margin-bottom: 300px; } .h3d-card { width: 150px; } .h3d-pop { width: calc(100vw - 32px); max-width: 360px; } .h3d-chip { font-size: 14px; min-height: 38px; } }
.h3d-v, .h3d-k { white-space: nowrap; }
.hero-visual { --h3d-x: 0px; --h3d-y: 0px; }
