/* Self-hosted fonts (Google Fonts build, latin + latin-ext). Served from our own domain: no extra DNS/TLS round trip. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/Geist-400-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/Geist-400-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/Geist-500-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/Geist-500-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/Geist-600-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/Geist-600-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/InstrumentSerif-400-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/InstrumentSerif-400-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/InstrumentSerif-400-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/InstrumentSerif-400-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* The Dial Agency: design system and site styles */
:root {
  --blue: #2947f5;
  --blue-deep: #1a2fc4;
  --ink: #070b2e;
  --ink-2: #0e1445;
  --paper: #ffffff;
  --mist: #eef1ff;
  --periwinkle: #c9d1ff;
  --muted: #5b6190;
  --line-dark: rgba(7, 11, 46, 0.12);
  --line-light: rgba(255, 255, 255, 0.2);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, p { margin: 0; }
em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; opacity: 0.7; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.h-xl { font-size: clamp(42px, 7.2vw, 104px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 500; }
.h-lg { font-size: clamp(32px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.035em; font-weight: 500; }
.h-md { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 36em; opacity: 0.82; }
.section { padding-block: clamp(64px, 8.4vw, 120px); position: relative; }
.on-blue { background: var(--blue); color: #fff; }
.on-ink { background: var(--ink); color: #fff; }
.on-mist { background: var(--mist); }

/* Buttons — pressable, never animate from nothing */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 500; font-size: 16px; letter-spacing: -0.01em;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  will-change: transform; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn .arr { transition: transform 240ms var(--ease-out); }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-blue { --bg: var(--blue); --fg: #fff; }
.btn-ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .arr { transform: translateX(4px); }
  .btn-light:hover { --bg: var(--periwinkle); }
  .btn-blue:hover { --bg: var(--blue-deep); }
  .btn:not(.btn-light):not(.btn-blue):not(.btn-ghost):hover { --bg: var(--blue); }
  .btn-ghost:hover { --bg: rgba(255,255,255,0.1); }
}

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease; border-bottom: 1px solid transparent; color: #fff; }
.site-header.scrolled { background: rgba(41, 71, 245, 0.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line-light); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: -0.02em; font-size: 19px; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 34px; font-size: 15px; }
.nav-links a { opacity: 0.8; transition: opacity 160ms ease; position: relative; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { opacity: 1; } }
.nav .btn { padding: 11px 20px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-light); place-items: center; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: #fff; position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: #fff; transition: transform 240ms var(--ease-out); }
.menu-btn span::before { top: -5px; } .menu-btn span::after { top: 5px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { display: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; padding-top: 120px; padding-bottom: 64px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: -2; mix-blend-mode: lighten; transition: opacity 1.2s ease; }
.hero-video.ready { opacity: 0.38; }
.hero-dial { position: absolute; right: -16vw; top: 48%; width: min(72vw, 880px); aspect-ratio: 1; transform: translateY(-50%) perspective(1500px) rotateX(var(--hx, 0deg)) rotateY(var(--hy, 0deg)); z-index: -1; opacity: 0.9; pointer-events: none; }
.hero-grid { display: grid; gap: 36px; position: relative; }
.hero h1 { max-width: 11ch; }
.hero .lead { max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: 14px; opacity: 0.7; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line-light); padding-top: 24px; margin-top: 56px; }

/* Trust bar: real commitments surfaced right under the hero */
.trust-bar { background: var(--paper); border-bottom: 1px solid var(--line-dark); }
.trust-row { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 30px; padding-top: 22px; padding-bottom: 22px; }
.trust-row li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.35; font-weight: 500; color: var(--ink); }
.trust-row .tick { flex: none; width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; }
@media (max-width: 760px) { .trust-row { grid-template-columns: 1fr 1fr; gap: 16px 22px; } }
@media (max-width: 460px) { .trust-row { grid-template-columns: 1fr; gap: 14px; } }
.study-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .study-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat b { display: block; font-size: clamp(30px, 4vw, 54px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.stat span { font-size: 14px; opacity: 0.75; display: block; margin-top: 8px; max-width: 18em; }

/* Headline line mask reveal */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; transform: translateY(105%); transition: transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms + 60ms); }
.ready .line > span { transform: none; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line-dark); background: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { padding: 22px 34px; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -0.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 34px; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section head */
.sec-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 7vw, 96px); max-width: 880px; }

/* System (interactive dial) */
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.system-dial { aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.tabs { display: grid; gap: 4px; margin-top: 8px; }
.tab { text-align: left; padding: 22px 0; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; align-items: baseline; opacity: 0.8; transition: opacity 200ms ease; }
.tab:last-child { border-bottom: 1px solid var(--line-light); }
.tab .n { font-size: 14px; letter-spacing: 0.1em; }
.tab h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; font-weight: 500; }
.tab p { grid-column: 2; max-height: 0; overflow: hidden; opacity: 0; font-size: 16px; transition: max-height 380ms var(--ease-out), opacity 300ms ease; max-width: 32em; }
.tab[aria-selected="true"] { opacity: 1; }
.tab[aria-selected="true"] p { max-height: 160px; opacity: 0.8; margin-top: 8px; }
@media (hover: hover) and (pointer: fine) { .tab:hover { opacity: 1; } }

/* Services */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); background: var(--mist); display: grid; gap: 18px; align-content: space-between; min-height: 340px; position: relative; overflow: hidden; transition: transform 300ms var(--ease-out), background-color 300ms ease, color 300ms ease; }
.card .tag { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 500; transition: color 300ms ease; }
.card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card li { font-size: 14px; padding: 7px 14px; border-radius: 999px; background: #fff; transition: background-color 200ms ease, color 200ms ease; }
.card p { max-width: 28em; opacity: 0.78; margin-top: 12px; }
.card-icon { position: absolute; right: -60px; top: -60px; width: 220px; opacity: 0.12; transition: transform 600ms var(--ease-out), opacity 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { background: var(--blue); color: #fff; transform: translateY(-4px); }
  .card:hover .tag { color: var(--periwinkle); }
  .card:hover li { background: rgba(255,255,255,0.14); color: #fff; }
  .card:hover .card-icon { transform: rotate(40deg) scale(1.1); opacity: 0.25; }
}

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-light); }
.step { padding: 32px 28px 8px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line-light); }
.step .when { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.step h3 { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -0.03em; font-weight: 500; margin: 18px 0 12px; }
.step p { opacity: 0.75; font-size: 16px; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.step + .step::before { left: 28px; }

/* Promise */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise { padding: 32px; border-radius: var(--radius); background: var(--ink-2); display: grid; gap: 14px; align-content: start; }
.promise .big { font-size: 56px; letter-spacing: -0.05em; line-height: 1; color: var(--periwinkle); }
.promise h3 { font-size: 24px; letter-spacing: -0.02em; font-weight: 500; }
.promise p { opacity: 0.72; font-size: 16px; }

/* FAQ */
.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line-dark); }
.faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-dark); position: relative; transition: transform 300ms var(--ease-out), background-color 200ms ease; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 1.5px; background: var(--ink); transition: background-color 200ms ease; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq .ans { padding: 0 0 28px; max-width: 40em; opacity: 0.8; animation: fadeUp 360ms var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

footer { background: var(--ink); color: #fff; padding: 56px 0 40px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; font-size: 14px; opacity: 0.8; }
.foot-links { display: flex; gap: 24px; }

/* Sticky mobile CTA */
.sticky-cta { display: none; }

@media (max-width: 960px) {
  .nav-links, .nav > .btn { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu { position: fixed; inset: 72px 0 0 0; background: var(--blue); z-index: 49; padding: 32px var(--gutter); display: flex; flex-direction: column; gap: 6px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
  .menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-menu a { font-size: 34px; letter-spacing: -0.03em; padding: 12px 0; border-bottom: 1px solid var(--line-light); color: #fff; }
  .mobile-menu .btn { margin-top: 24px; justify-content: center; font-size: 18px; border: 0; }
  .hero-dial { right: -30vw; width: 110vw; opacity: 0.55; top: 55%; }
  /* Mobile hero: content-led so the value prop and primary CTA sit near the top,
     not spread across a full-height hero that buries them below the fold. */
  .hero { justify-content: flex-start; min-height: auto; padding-top: 96px; padding-bottom: 48px; gap: 36px; }
  .hero-grid { gap: 22px; }
  .hero-stats { margin-top: 8px; }
  .system-grid { grid-template-columns: 1fr; }
  .cards, .plans, .promise-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(3)::before { left: 0; }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }
  .sticky-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; transform: translateY(140%); transition: transform 360ms var(--ease-out); }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; justify-content: center; box-shadow: 0 10px 40px rgba(7, 11, 46, 0.35); }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step + .step { padding-left: 0; border-left: 0; } .step + .step::before { left: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .line > span { transform: none; transition: none; }
  [data-reveal] { transform: none; filter: none; transition: opacity 300ms ease; }
  .btn, .card, .plan, .sticky-cta { transition-property: background-color, color, opacity; }
}

/* ===== Multi-page additions ===== */
.center { text-align: center; display: grid; justify-items: center; gap: 24px; }
.center .lead { margin-inline: auto; }
.nav-links { gap: 28px; align-items: center; }
.nav-links a[aria-current="page"] { opacity: 1; }
.has-menu { position: relative; }
.has-menu .menu { position: absolute; top: calc(100% + 14px); left: -16px; min-width: 220px; padding: 8px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 20px 60px rgba(7, 11, 46, 0.25); opacity: 0; transform: translateY(-6px) scale(0.97); transform-origin: top left; pointer-events: none; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); display: grid; }
.has-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.has-menu .menu a { padding: 11px 14px; border-radius: 10px; opacity: 1; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .has-menu .menu a:hover { background: var(--mist); } }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; transform: none; pointer-events: auto; }

/* Page hero */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 150px 0 clamp(64px, 9vw, 120px); }
.page-hero .wrap { display: grid; gap: 26px; position: relative; }
.page-hero .hero-dial { right: -14vw; top: 50%; width: min(52vw, 640px); opacity: 0.55; }
.page-h1 { max-width: 14ch; }
.page-hero .lead { max-width: 34em; }
.crumbs { font-size: 14px; opacity: 0.75; } .crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.hero-cta .hero-note { margin-left: 4px; }

.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.link-arrow { font-weight: 500; transition: transform 240ms var(--ease-out); display: inline-block; align-self: end; }
@media (hover: hover) and (pointer: fine) { a:hover > .link-arrow { transform: translateX(4px); } }
a.card { color: inherit; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: #fff; border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; box-shadow: inset 0 0 0 1px var(--line-dark); }
.feat .n { font-size: 13px; letter-spacing: 0.1em; color: var(--blue); font-weight: 600; }
.feat h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; }
.feat p { opacity: 0.75; font-size: 16px; }
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.j-step { border-radius: var(--radius); padding: 28px; background: var(--ink-2); display: grid; gap: 10px; align-content: start; }
.j-step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.j-step h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; }
.j-step p { opacity: 0.75; font-size: 16px; }
.note { margin-top: 32px; padding: 22px 26px; border-radius: 16px; background: var(--mist); font-size: 15px; line-height: 1.55; }
.on-mist .note { background: #fff; }
.steps.three { grid-template-columns: repeat(3, 1fr); }

/* Value stack and objection cards (landing-page sections) */
.stack { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.stack-title { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-bottom: 10px; }
.stack ul { list-style: none; margin: 0; padding: 0; }
.stack li, .stack-total, .stack-price { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.stack li b { display: block; font-weight: 500; } .stack li span { font-size: 14px; opacity: 0.7; display: block; margin-top: 4px; max-width: 34em; }
.stack em { font-style: normal; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0.85; }
.stack-total { opacity: 0.8; } .stack-price { border: 0; padding-top: 22px; } .stack-price em { font-size: clamp(26px, 3.2vw, 42px); letter-spacing: -0.03em; color: var(--periwinkle); opacity: 1; }
.stack .fine { opacity: 0.6; font-size: 13px; margin-top: 12px; }
.objections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.objection { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: inset 0 0 0 1px var(--line-dark); }
.objection h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; } .objection p { opacity: 0.8; font-size: 16px; line-height: 1.55; }
@media (max-width: 760px) { .objections { grid-template-columns: 1fr; } .stack li, .stack-price, .stack-total { flex-direction: column; gap: 6px; } }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare .col { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: inset 0 0 0 1px var(--line-dark); }
.compare .col.strong { background: var(--blue); color: #fff; box-shadow: none; }
.compare h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; margin-bottom: 16px; }
.compare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.compare li { padding-left: 26px; position: relative; } .compare li::before { content: "–"; position: absolute; left: 4px; opacity: 0.5; }
.compare .strong li::before { content: "✓"; opacity: 1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ind-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); padding: clamp(28px, 3.4vw, 48px); min-height: 380px; display: grid; align-content: space-between; gap: 18px; color: #fff; transition: transform 300ms var(--ease-out); }
.ind-solar { background: var(--blue); } .ind-health { background: var(--ink); }
.ind-card h3 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.035em; font-weight: 500; line-height: 1.05; margin: 10px 0; }
.ind-card p { opacity: 0.8; max-width: 22em; }
.ind-dial { position: absolute; right: -90px; top: -60px; width: 420px; opacity: 0.35; z-index: -1; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ind-card:hover { transform: translateY(-4px); } .ind-card:hover .ind-dial { transform: rotate(25deg) scale(1.05); } }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.calc-form { display: grid; gap: 18px; }
.calc-form label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.calc-form input[type=number], .calc-form select { width: 100%; padding: 14px 16px; border-radius: 12px; border: 0; background: var(--mist); font: inherit; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-dark); }
.calc-form select { width: auto; }
.cur-row { display: flex; gap: 8px; }
.calc-form input[type=range] { width: 100%; accent-color: var(--blue); }
.calc-out { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.calc-out .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-light); }
.calc-out .row b { font-size: 28px; letter-spacing: -0.03em; font-weight: 500; font-variant-numeric: tabular-nums; }
.calc-out .row.big b { font-size: clamp(36px, 4.4vw, 56px); color: var(--periwinkle); }
.calc-out .btn { justify-content: center; }

/* Contact */
.contact-grid { grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.next { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; }
.next li { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line-light); }
.next li span { opacity: 0.75; font-size: 15px; }
.next.dark li { border-color: var(--line-dark); }
.form { display: grid; gap: 12px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 28px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-light); }
.form label { font-size: 14px; opacity: 0.85; display: block; margin-bottom: 6px; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 0; background: #fff; color: var(--ink); font: inherit; }
.form textarea { resize: vertical; }
.form .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13px; opacity: 0.9; align-items: start; margin: 4px 0; }
.form .btn { justify-content: center; }
.form-msg { font-size: 14px; min-height: 1.4em; }
.order-banner { padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,0.18); font-size: 14px; }

/* CTA band + footer */
.cta-band { overflow: hidden; isolation: isolate; }
.cta-band .center { position: relative; }
.cta-dial { position: absolute; left: 50%; top: 50%; width: min(120vw, 1100px); transform: translate(-50%, -50%); opacity: 0.3; z-index: -1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.foot-grid .foot-h { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; font-weight: 500; }
.foot-grid a:not(.brand) { display: block; padding: 5px 0; opacity: 0.85; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .foot-grid a:not(.brand):hover { opacity: 1; text-decoration: underline; } }
.foot-note { margin-top: 16px; opacity: 0.7; font-size: 15px; max-width: 24em; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 14px; opacity: 0.75; }

/* Shop */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { padding: 10px 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-dark); font-weight: 500; font-size: 15px; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-dark); transition: transform 300ms var(--ease-out), box-shadow 300ms ease, opacity 220ms ease; }
.on-mist .prod { box-shadow: none; }
.prod[hidden] { display: none; }
.prod-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--blue); overflow: hidden; }
.prod-media svg { position: absolute; width: 130%; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.8; transition: transform 700ms var(--ease-out); }
.prod-media .badge { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--blue); }
.prod-body { padding: 24px; display: grid; gap: 10px; align-content: start; flex: 1; }
.prod-body h3 { font-size: 24px; letter-spacing: -0.03em; font-weight: 500; }
.prod-body p { opacity: 0.75; font-size: 16px; }
.prod-body .tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.prod-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 8px 0 4px; }
.price-tag { font-size: 30px; letter-spacing: -0.04em; font-weight: 500; font-variant-numeric: tabular-nums; }
.days { font-size: 13px; opacity: 0.6; text-align: right; }
.prod-body .btn { justify-content: center; margin-top: auto; }
@media (hover: hover) and (pointer: fine) { .prod:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(7,11,46,0.14); } .prod:hover .prod-media svg { transform: translate(-50%, -50%) rotate(14deg) scale(1.04); } }
.upgrade { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.on-ink .upgrade .lead { opacity: 0.8; }

/* Prose (legal) */
.prose { max-width: 760px; } .prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 36px 0 10px; font-weight: 500; } .prose p { opacity: 0.85; }

@media (max-width: 960px) {
  .two-col, .calc, .contact-grid, .upgrade, .split, .compare { grid-template-columns: 1fr; }
  .feat-grid, .journey, .prod-grid, .steps.three { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding-top: 120px; } .page-hero .hero-dial { right: -35vw; width: 100vw; opacity: 0.35; }
  .form .f-row { grid-template-columns: 1fr; }
}

/* Shared: badge + check lists */
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; background: var(--blue); color: #fff; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 17px; line-height: 1.4; }
.checks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l3 3 5-6'/%3E%3C/svg%3E") center/20px no-repeat; margin-top: 1px; }
.on-blue .checks li::before { background-color: rgba(255,255,255,0.22); }

/* Golden circle (Why, How, What) */
.golden { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.golden-svg { width: 100%; max-width: 540px; justify-self: center; overflow: visible; }
.golden .ring { fill: transparent; stroke: currentColor; stroke-opacity: 0.45; stroke-width: 1.5; transition: fill 420ms var(--ease-out), stroke-opacity 300ms ease; }
.golden .lab { fill: currentColor; font: 600 14px var(--font-sans); letter-spacing: 0.22em; opacity: 0.65; transition: fill 300ms ease, opacity 300ms ease; }
.golden[data-active="why"] .ring-why { fill: var(--blue); stroke-opacity: 1; }
.golden[data-active="how"] .ring-how { fill: var(--blue); stroke-opacity: 1; }
.golden[data-active="what"] .ring-what { fill: var(--blue); stroke-opacity: 1; }
.golden[data-active="why"] .lab-why, .golden[data-active="how"] .lab-how, .golden[data-active="what"] .lab-what { fill: #fff; opacity: 1; }
.g-list { display: grid; }
.g-item { text-align: left; padding: 24px 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); display: grid; gap: 8px; opacity: 0.82; transition: opacity 200ms ease; }
.g-item:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.g-item[aria-pressed="true"] { opacity: 1; }
.g-k { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--periwinkle); }
.bb .g-k, .on-mist .g-k { color: var(--blue); }
.g-item h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; font-weight: 500; line-height: 1.12; }
.g-item p { font-size: 16px; opacity: 0.8; max-width: 34em; }
@media (hover: hover) and (pointer: fine) { .g-item:hover { opacity: 1; } }

.other-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other { background: #fff; border-radius: var(--radius); padding: 26px; display: grid; gap: 8px; align-content: start; }
.other h3 { font-size: 21px; letter-spacing: -0.02em; font-weight: 500; } .other p { opacity: 0.72; font-size: 16px; }
.promise { color: #fff; }
.promise-grid.light .promise { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-dark); }
.promise-grid.light .big { color: var(--blue); }
@media (max-width: 960px) { .golden, .other-grid { grid-template-columns: 1fr; } }

/* Industry grid */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind-link { background: var(--mist); border-radius: var(--radius); padding: 26px; min-height: 250px; display: grid; gap: 10px; align-content: space-between; transition: transform 300ms var(--ease-out), background-color 300ms ease, color 300ms ease; }
.on-mist .ind-link { background: #fff; }
.ind-link .tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 600; transition: color 300ms ease; }
.ind-link h3 { font-size: 24px; letter-spacing: -0.03em; font-weight: 500; line-height: 1.1; margin-top: 12px; }
.ind-link p { opacity: 0.75; font-size: 16px; margin-top: 8px; }
@media (hover: hover) and (pointer: fine) { .ind-link:hover { background: var(--blue); color: #fff; transform: translateY(-4px); } .ind-link:hover .tag { color: var(--periwinkle); } }
@media (max-width: 1100px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; } }

/* Product imagery */
.prod-media.has-img { aspect-ratio: 4 / 3; background: var(--mist); }
.prod-media.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.prod-media.has-img svg { display: none; }
@media (hover: hover) and (pointer: fine) { .prod:hover .prod-media.has-img img { transform: scale(1.04); } }
.prod-media.has-img .badge { z-index: 2; }
.prod-body .tag { font-size: 12px; }
.page-hero.has-media .wrap { grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero.has-media .hero-copy { display: grid; gap: 26px; }
.page-hero.has-media .hero-dial { opacity: 0.25; }
.hero-media img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 40px 80px rgba(2, 4, 40, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.page-hero .hero-copy { display: grid; gap: 26px; }
.preview-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 32px); align-items: start; }
.preview-strip figure { margin: 0; } .preview-strip figure:nth-child(2) { margin-top: 36px; }
.preview-strip img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 24px 50px rgba(7, 11, 46, 0.2), 0 0 0 1px rgba(7, 11, 46, 0.08); }
@media (max-width: 960px) { .page-hero.has-media .wrap { grid-template-columns: 1fr; } .preview-strip { grid-template-columns: 1fr; } .preview-strip figure:nth-child(2) { margin-top: 0; } }

/* Language switch */
.lang-switch { display: inline-grid; place-items: center; min-width: 48px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; box-shadow: inset 0 0 0 1px var(--line-light); color: #fff; margin-left: auto; margin-right: 14px; transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .lang-switch:hover { background: rgba(255, 255, 255, 0.14); } }
.lang-switch-m { margin-top: 22px; font-size: 18px; padding: 12px 0; opacity: 0.85; border-bottom: 0 !important; }
@media (max-width: 960px) { .lang-switch { margin-left: auto; margin-right: 10px; } }


/* ===== 3D: tilt media, product boxes ===== */
.tilt-host { perspective: 1000px; }
.prod-media, .hero-media img { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 350ms var(--ease-out); will-change: transform; }
.prod-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 250ms ease; background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, 0.34), transparent 60%); mix-blend-mode: soft-light; }
.prod-media.is-tilt::after { opacity: 1; }
.hero-media img { position: relative; }

.box-stage { overflow: hidden; }
.box-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: clamp(28px, 6vw, 84px); perspective: 1400px; padding: 24px 0 48px; }
.box3d { --w: clamp(176px, 21vw, 230px); --h: calc(var(--w) * 1.414); --d: calc(var(--w) * 0.2); position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.box3d.is-drag { cursor: grabbing; }
.box3d:focus-visible { outline: 2px solid #fff; outline-offset: 18px; border-radius: 6px; }
.box3d-body { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, -8deg)) rotateY(var(--ry, -26deg)); }
.box3d .face { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.box3d .front { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 5px 5px 2px; overflow: hidden; background: var(--blue); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.box3d .front img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.box3d .front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, 0.26), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.16)); pointer-events: none; }
.box3d .back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: linear-gradient(160deg, #1a2fc4, #0f1a78); }
.box3d .left { width: var(--d); height: 100%; left: calc((var(--w) - var(--d)) / 2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: linear-gradient(90deg, #0f1a78, #1a2fc4); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.box3d .left span { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font-weight: 600; font-size: clamp(10px, 1.15vw, 12px); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.box3d .right { width: var(--d); height: 100%; left: calc((var(--w) - var(--d)) / 2); transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background: repeating-linear-gradient(90deg, #eef0fb 0 2px, #dfe3f6 2px 4px); }
.box3d .top { width: 100%; height: var(--d); top: calc((var(--h) - var(--d)) / 2); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background: #c9d1ff; }
.box3d .bottom { width: 100%; height: var(--d); top: calc((var(--h) - var(--d)) / 2); transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: #8e9aeb; }
.box3d-shadow { position: absolute; left: -12%; right: -12%; bottom: -34px; height: 40px; background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 12, 0.6), transparent 70%); filter: blur(6px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .prod-media, .hero-media img { transition: none; } }
@media (max-width: 760px) { .hero-dial, .page-hero .hero-dial { transform: translateY(-50%); opacity: 0.38; } .box-row { padding: 8px 0 40px; gap: 36px; } }

/* ===== Page transitions + scroll progress (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 160ms var(--ease-out) both vt-out; }
  ::view-transition-new(root) { animation: 240ms var(--ease-out) both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; } }
  @supports (animation-timeline: scroll()) {
    body::before { content: ""; position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--periwinkle, #a9b6ff); transform-origin: 0 50%; transform: scaleX(0); z-index: 100; pointer-events: none; animation: progress linear both; animation-timeline: scroll(root); }
    @keyframes progress { to { transform: scaleX(1); } }
  }
}

.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.insight-card { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; padding: 28px; transition: transform 250ms var(--ease-out), box-shadow 250ms ease; }
.insight-card h3 { font-size: 24px; letter-spacing: -0.03em; font-weight: 500; }
.insight-card p { opacity: 0.75; }
.insight-card .tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .insight-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(7, 11, 46, 0.12); } }
@media (max-width: 900px) { .insight-grid { grid-template-columns: 1fr; } }
.nav-links { margin-left: clamp(24px, 3vw, 48px); }
.nav > .lang-switch { margin-left: 16px; margin-right: 10px; }
@media (min-width: 961px) and (max-width: 1180px) { .nav-links { gap: 16px; font-size: 14px; margin-left: 20px; } .nav > .btn { padding-inline: 18px; font-size: 14px; } }
.checks li { display: block; position: relative; padding-left: 34px; }
.checks li::before { position: absolute; left: 0; top: 1px; }
.prose .checks { margin: 14px 0 6px; }

/* ===== Layout polish: aligned cards, calculator rows, hero stats ===== */
.card, .ind-card, .ind-link { display: flex; flex-direction: column; justify-content: flex-start; align-content: normal; }
.card > :last-child, .ind-card > :last-child, .ind-link > :last-child { margin-top: auto; }
.card { gap: 14px; }
.ind-card { gap: 14px; }
.ind-link { gap: 10px; }
.prod-body { display: flex; flex-direction: column; }
.prod-body .prod-foot { margin-top: auto; }
.prod-body .prod-foot + .btn { margin-top: 0; }
.calc-out .row { flex-wrap: wrap; }
.calc-out .row b { white-space: nowrap; }
@media (min-width: 961px) { .hero-stats { max-width: 880px; } }
@media (max-width: 760px) { .card { min-height: 0; } .ind-card { min-height: 0; } }
@media (min-width: 961px) { .hero-stats { max-width: 960px; } .hero-stats .stat b { font-size: clamp(28px, 3.2vw, 46px); white-space: nowrap; } }
.fine { margin-top: 28px; }
.step h3 { line-height: 1.08; }
.card { min-height: 260px; }
.page-hero .hero-dial { opacity: 0.42; }
.contact-grid .h-xl, .contact-grid h1 { margin-bottom: 22px; }
.eyebrow + .h-lg, .eyebrow + .h-xl { margin-top: 14px; }
.contact-grid .eyebrow { margin-bottom: 4px; }
.box-row.solo .box3d { --w: clamp(190px, 24vw, 300px); }

.prod-cta { background: var(--ink); color: #fff; padding: 36px; justify-content: center; gap: 14px; box-shadow: none; }
.prod-cta .tag { color: var(--periwinkle); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.prod-cta h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.03em; font-weight: 500; line-height: 1.05; }
.prod-cta p:not(.tag) { opacity: 0.75; }
.prod-cta .btn { margin-top: 10px; align-self: flex-start; }
.two-col .h-lg + .lead, .two-col h2 + .lead { margin-top: 20px; }
@media (min-width: 961px) { .hero-stats { max-width: 900px; } .hero-stats .stat b { font-size: clamp(26px, 3vw, 42px); } }

/* article byline */
.prose .byline{font-size:14px;opacity:.7;margin:0 0 32px}
.prose .byline time{white-space:nowrap}

/* ---- Hero word cycle (port of 21st.dev "Text Cycle") ---- */
.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; }
[data-cycle] { white-space: nowrap; }
.hero h1 { max-width: 13ch; }
.cycle-v { display: inline-flex; }
.cycle-v .ch { display: inline-block; animation: ch-in 320ms var(--ease-out) both; animation-delay: calc(var(--c) * 30ms); }
.cycle-v.out .ch { animation: ch-out 240ms ease-in both; animation-delay: calc(var(--c) * 12ms); }
@keyframes ch-in { from { opacity: 0; transform: translateY(0.14em); filter: blur(6px); } }
@keyframes ch-out { to { opacity: 0; transform: translateY(-0.14em); filter: blur(6px); } }

/* ---- Client logos ---- */
.logos { padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line-dark); }
.logo-row { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.logo-row li { display: flex; align-items: center; height: 40px; }
.logo-row img { height: 32px; width: auto; filter: grayscale(1); opacity: 0.7; transition: opacity 200ms ease, filter 200ms ease; }
.logo-row img:hover { filter: none; opacity: 1; }
.logo-row span { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; opacity: 0.55; }

/* ---- Selected work (asymmetric grid after 21st.dev "Portfolio Showcase Grid") ---- */
.work-head { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.work-head > div { display: grid; gap: 24px; max-width: 880px; }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.work-card { --wc: var(--blue); grid-column: span 5; position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--radius) * 1.6); background: var(--wc); color: #fff; min-height: clamp(360px, 34vw, 480px); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; transition: transform 300ms var(--ease-out), box-shadow 300ms ease; }
.work-card.wide { grid-column: span 7; }
.work-card .tag { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; opacity: 0.75; }
.work-card h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; font-weight: 500; margin: 12px 0 8px; }
.work-card p { max-width: 30em; opacity: 0.85; margin: 0; }
.wc-metric { display: grid; gap: 4px; position: relative; z-index: 1; }
.wc-metric b { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(64px, 8vw, 120px); line-height: 0.9; letter-spacing: -0.03em; }
.wc-metric span { font-size: 15px; opacity: 0.8; }
.wc-img { position: absolute; right: -6%; bottom: -8%; width: 62%; height: auto; border-radius: 14px; z-index: -1; opacity: 0.95; transition: transform 500ms var(--ease-out); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25); }
@media (hover: hover) {
  .work-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(7, 11, 46, 0.22); }
  .work-card:hover .wc-img { transform: scale(1.03); }
}

/* ---- Testimonials ---- */
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 32px; }
.quote { margin: 0; display: grid; gap: 28px; align-content: space-between; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--ink-2); }
.quote blockquote { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -0.01em; }
.quote.lead-quote { grid-column: 1 / -1; background: none; padding: 0; }
.quote.lead-quote blockquote { font-family: var(--font-serif); font-style: italic; font-size: clamp(30px, 4.2vw, 60px); line-height: 1.1; max-width: 22em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption img, .quote .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote .avatar { display: grid; place-items: center; background: var(--blue); font-weight: 600; }
.quote figcaption b { display: block; font-weight: 500; }
.quote figcaption small { font-size: 14px; opacity: 0.7; }

/* ---- Founder ---- */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.letter-photo { width: 100%; max-width: 420px; height: auto; margin-top: 28px; border-radius: calc(var(--radius) * 1.4); display: block; }
.founder > div { display: grid; gap: 20px; }
.founder-photo-wrap { position: relative; width: 100%; border-radius: calc(var(--radius) * 1.6); overflow: hidden; }
.founder-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
/* Subtle film grain only — clean photo, no colour grade */
.founder-photo-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0.2; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>"); background-size: 170px 170px; }
.founder-photo.placeholder { display: grid; place-items: center; background: var(--mist); color: var(--blue); font-size: clamp(48px, 8vw, 120px); font-family: var(--font-serif); font-style: italic; }
.founder-role { color: var(--blue); font-weight: 500; margin: 8px 0 12px; }

@media (max-width: 960px) {
  .work-card, .work-card.wide { grid-column: 1 / -1; }
  .quote-grid, .founder { grid-template-columns: 1fr; }
  .founder-photo, .founder-photo-wrap { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .cycle-v .ch { animation: none; } }

/* ---- Coming-soon page ---- */
.cs-pick { margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,0.16); font-size: 15px; max-width: 34em; }

/* ---- Homepage: free audit + fit ---- */
.audit-list { display: grid; gap: 14px; }
.audit-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--line-light); }
.audit-item .n { font-family: var(--font-serif); font-style: italic; font-size: 28px; line-height: 1; opacity: 0.8; }
.audit-item h3 { font-size: 19px; font-weight: 500; margin: 0 0 4px; }
.audit-item p { margin: 0; opacity: 0.94; font-size: 15px; }

/* ---- Scratch-card audit popup ---- */
.sc-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(7, 11, 46, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 260ms ease; }
.sc-pop[hidden] { display: none; }
.sc-pop.open { opacity: 1; }
.sc-card { position: relative; width: min(400px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: 22px; border-radius: 22px; color: var(--ink);
  background: repeating-linear-gradient(135deg, var(--blue) 0 16px, var(--periwinkle) 16px 32px); transform: translateY(14px) scale(0.97); transition: transform 360ms var(--ease-out); }
.sc-pop.open .sc-card { transform: none; }
.sc-card::before { content: ""; position: absolute; inset: 12px; border-radius: 14px; background: var(--paper); border: 2px dashed var(--blue); pointer-events: none; }
.sc-card > * { position: relative; }
.sc-x { position: absolute; top: 18px; right: 20px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--blue); font-size: 26px; line-height: 1; cursor: pointer; }
.sc-x:hover { background: var(--mist); }
.sc-eyebrow { margin: 14px 0 0; text-align: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.sc-title { margin: 6px 14px 16px; text-align: center; font-size: clamp(30px, 8vw, 40px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; color: var(--blue); }
.sc-area { position: relative; margin: 0 14px; aspect-ratio: 1 / 0.8; border-radius: 16px; overflow: hidden; border: 2px dashed var(--blue); background: var(--mist); touch-action: none; }
.sc-prize { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 18px; text-align: center; }
.sc-prize b { font-size: 26px; letter-spacing: -0.02em; font-weight: 600; }
.sc-prize span:last-child { font-size: 14px; line-height: 1.4; opacity: 0.8; }
.sc-tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.sc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; transition: opacity 500ms ease; }
.sc-canvas.gone { opacity: 0; pointer-events: none; }
.sc-hint { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); transition: opacity 200ms ease; }
.sc-hint.gone { opacity: 0; }
.sc-reveal { display: block; margin: 10px auto 4px; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.sc-form { display: grid; gap: 8px; margin: 14px 14px 8px; }
.sc-form label { font-size: 13px; font-weight: 500; }
.sc-form input[type="url"], .sc-form input[type="email"] { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-dark); font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.sc-form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 12.5px; line-height: 1.4; }
.sc-form .btn { justify-content: center; margin-top: 4px; }
.sc-msg { min-height: 1.2em; margin: 0; font-size: 13.5px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .sc-pop, .sc-card, .sc-canvas { transition: none; } }
.sc-form[hidden], .sc-reveal[hidden] { display: none; }

.contact-direct { margin-top: 28px; opacity: 0.9; }
.contact-direct a, .foot-note a { text-decoration: underline; text-underline-offset: 3px; }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); color: #fff; transition: background .2s, color .2s, border-color .2s; }
.social a:hover, .social a:focus-visible { background: #fff; color: #2947f5; border-color: #fff; }
.social-hero { margin-top: 16px; }

.letter p { font-size: 19px; line-height: 1.6; margin: 0 0 18px; }
.letter-sign { font-family: "Instrument Serif", serif; font-style: italic; font-size: 34px !important; margin-top: 28px !important; }
.letter-sign span { display: block; font-family: Geist, sans-serif; font-style: normal; font-size: 15px; opacity: .65; margin-top: 4px; }

.wc-link { display: inline-flex; gap: 6px; margin-top: 18px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 1; }
/* A single case study fills the row: text on the left, screenshot on the right */
.work-card:only-child { grid-column: 1 / -1; min-height: clamp(420px, 38vw, 560px); }
.work-card:only-child .wc-head, .work-card:only-child .wc-metric, .work-card:only-child .wc-link { max-width: 44%; }
.work-card:only-child .wc-img { width: 50%; right: 3%; bottom: -6%; }
@media (max-width: 760px) {
  .work-card:only-child .wc-head, .work-card:only-child .wc-metric, .work-card:only-child .wc-link { max-width: none; }
  .work-card:only-child .wc-img { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 8px; }
}
/* Mobile menu: scrollable on short screens so the last items (language switch) stay reachable */
@media (max-width: 1023px) {
  .mobile-menu { overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .mobile-menu a { font-size: clamp(24px, 7vw, 34px); padding: 10px 0; }
}
/* Comfortable tap targets for small text links (WCAG 2.5.8: at least 24px) */
.foot-bottom a, .crumbs a, footer .foot-grid a { display: inline-block; padding-block: 6px; }
/* Inactive tabs stay readable (WCAG AA); the active one is marked by its open description and full weight */
.tab[aria-selected="false"] h3, .g-item:not(.on) h3 { font-weight: 400; }
/* The menu's link colour must not override the light button's dark label */
.mobile-menu a.btn-light { color: var(--ink, #070b2e); font-size: 18px; }

/* Honeypot field: invisible to people, filled only by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Plans: three columns, most expensive first, the middle one recommended (src/plans.mjs) */
.compare.plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.compare.plans .col { display: flex; flex-direction: column; }
.compare.plans .badge { align-self: flex-start; margin-bottom: 14px; }
.compare.plans .strong .badge { background: #fff; color: var(--blue); }
.compare.plans li::before { content: "✓"; opacity: 0.8; }
.plan-who { opacity: 0.75; font-size: 15px; margin: -6px 0 18px; }
.plan-price { margin-top: auto; padding-top: 22px; display: grid; gap: 8px; }
.plan-price div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line-dark); }
.strong .plan-price div { border-color: var(--line-light); }
.plan-price b { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plans-fine { margin-top: 16px; font-size: 14px; opacity: 0.7; max-width: 52em; }
.plans-head { margin: 56px 0 20px; }
.guarantee { margin-top: 48px; }
.guarantee > h3 { margin-bottom: 20px; }
.guarantee .instead { margin-top: 16px; opacity: 0.8; }
@media (max-width: 960px) { .compare.plans { grid-template-columns: 1fr; } }
