/* Raijin Studios — site styles. No inline styles anywhere (strict CSP: style-src 'self'). */
/* Self-hosted @font-face rules (inlined from fonts.css to avoid a second render-blocking request) */
/* Inter 400 normal latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-ext-cf3eb50f.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter 400 normal latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-f11d729b.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;
}
/* Inter 500 normal latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-ext-cf3eb50f.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter 500 normal latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-f11d729b.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;
}
/* Inter 600 normal latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-ext-cf3eb50f.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter 600 normal latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-f11d729b.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;
}
/* Inter 700 normal latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-ext-cf3eb50f.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter 700 normal latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-f11d729b.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;
}
/* JetBrains Mono 400 normal latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-normal-latin-ext-06ad3600.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono 400 normal latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-normal-latin-4f27206c.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;
}
/* JetBrains Mono 600 normal latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-normal-latin-ext-06ad3600.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono 600 normal latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-normal-latin-4f27206c.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;
}
/* Space Grotesk 400 normal latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-normal-latin-ext-1742d56d.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk 400 normal latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-normal-latin-c0781ea2.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;
}
/* Space Grotesk 500 normal latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-normal-latin-ext-1742d56d.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk 500 normal latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-normal-latin-c0781ea2.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;
}
/* Space Grotesk 600 normal latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-normal-latin-ext-1742d56d.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk 600 normal latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-normal-latin-c0781ea2.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;
}
/* Space Grotesk 700 normal latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-normal-latin-ext-1742d56d.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk 700 normal latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-normal-latin-c0781ea2.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;
}

/* Thunderhead slate: storm-grey slate, a burnt-orange sunset behind the storm, gold thunder drums. */
:root, [data-theme="dark"] {
  --bg: #141B26; --bg-2: #1A2230; --bg-3: #263143; --line: #2C3848; --line-2: #3D4B60;
  --text: #E9EDF3; --muted: #A9B3C2; --head: #FFFFFF;
  --ember: #F07A3A; --bolt: var(--ember); --bolt-2: #FF9A5C; --accent: #F07A3A; --on-ember: #141B26;
  --cyan: #F2B53A;
  --good: #3DDC97; --warn: #FFB547; --bad: #FF6B78;
  --card: #1F2938; --card-hover: #28354A; --shadow: 0 30px 60px -30px rgba(0,0,0,.75);
  --hero-glow: rgba(143,169,204,.26);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #EEF1F5; --bg-2: #FFFFFF; --bg-3: #E3E8EF; --line: #CDD5E0; --line-2: #B3BECE;
  --text: #18202C; --muted: #4A5566; --head: #0B111B;
  --ember: #B4501C; --bolt: var(--ember); --bolt-2: #9A4012; --accent: #9A4012; --on-ember: #FFFFFF;
  --cyan: #7A5700;
  --good: #12A86A; --warn: #8A5200; --bad: #D93649;
  --card: #FFFFFF; --card-hover: #F6F8FB; --shadow: 0 30px 60px -34px rgba(20,32,52,.32);
  --hero-glow: rgba(255,255,255,.55);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; font-size: 16.5px; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; color: var(--head); letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ember); color: var(--on-ember); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.grad { background: linear-gradient(100deg, var(--ember) 8%, var(--bolt-2) 42%, var(--cyan) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 15.5px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--head); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ember); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); cursor: pointer; color: var(--head); }
.icon-btn .ic { width: 20px; height: 20px; }
[data-theme="dark"] .ic-sun, [data-theme="light"] .ic-moon { display: none; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; color: var(--head); letter-spacing: -.02em; }
.brand b { font-weight: 500; color: var(--muted); margin-left: 5px; }
.brand-mark { width: 34px; height: 34px; color: var(--head); }
.mark-bolt { fill: var(--drum); }
.nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--text); }
.nav a:hover { color: var(--head); }
.nav a[aria-current] { color: var(--head); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; }
/* these controls only work with JavaScript, so they are not shown without it */
html:not(.js) :is(#burger, #searchOpen, #themeToggle, #weatherToggle) { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; isolation: isolate; }
.hero-in { max-width: 900px; margin-left: max(20px, calc((100% - 1200px) / 2)); }
.hero h1 { font-size: clamp(46px, 7.4vw, 94px); margin: 20px 0 22px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; color: var(--text); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.proof { list-style: none; display: grid; grid-template-columns: repeat(4, auto); gap: 14px 40px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); width: fit-content; }
.proof b { display: block; font-family: "Space Grotesk"; font-size: 30px; color: var(--head); letter-spacing: -.02em; line-height: 1.1; }
.proof span { font-size: 14px; color: var(--muted); }
.proof-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* sections */
.sec { padding: 110px 0; }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 12px; max-width: 640px; }
.sec-head > p { max-width: 430px; color: var(--muted); font-size: 17px; }

/* demo switcher */
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.demo-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.seg { max-width: 100%; display: inline-flex; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--bg-2); color: var(--head); box-shadow: 0 2px 10px rgba(0,0,0,.25), inset 0 0 0 1px var(--line-2); }
.stage { background: repeating-linear-gradient(45deg, var(--bg-3) 0 10px, var(--bg-2) 10px 20px); border-radius: 14px; height: 640px; display: flex; justify-content: center; align-items: flex-start; padding: 22px; overflow: hidden; }
.device { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transition: width .45s cubic-bezier(.2,.8,.2,1); max-width: 100%; display: flex; flex-direction: column; height: 100%; }
.device.is-phone { border-radius: 34px; border: 10px solid #0E0F17; }
.device-chrome { height: 34px; flex: none; background: #EEEDF3; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.device-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #D3D1DC; }
.device-chrome span { margin-left: 10px; flex: 1; height: 20px; border-radius: 6px; background: #fff; color: #5F5F5F; font-size: 11.5px; display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; }
.device.is-phone .device-chrome { display: none; }
.frame-box { flex: 1; position: relative; overflow: hidden; }
.frame-box iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
.demo-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.demo-foot a { display: inline-flex; gap: 6px; align-items: center; color: var(--head); font-weight: 600; text-decoration: none; }

/* before / after */
.ba-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; margin-top: 90px; }
.ba-copy h3 { font-size: clamp(28px, 3vw, 38px); margin: 12px 0 16px; }
.ba-copy em { color: var(--head); font-style: normal; font-weight: 600; }
.ticks { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--good); margin-top: 4px; }
.ba { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; box-shadow: var(--shadow); border: 1px solid var(--line); --pos: 50%; user-select: none; touch-action: pan-y; }
.ba > img, .ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--ember); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--ember); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; margin-top: -6px; }
.ba-handle span::before { left: 7px; border-right-color: var(--on-ember); }
.ba-handle span::after { right: 7px; border-left-color: var(--on-ember); }
.ba-tag { position: absolute; top: 14px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(20,27,38,.82); color: #fff; pointer-events: none; }
.ba-tag-l { left: 14px; } .ba-tag-r { right: 14px; background: var(--ember); color: var(--on-ember); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-range:focus-visible + .ba-handle, .ba:focus-within .ba-handle span { outline: 3px solid #fff; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; transition: transform .2s, border-color .2s, background .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--card-hover); }
.card-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: color-mix(in srgb, var(--ember) 15%, transparent); color: var(--accent); }
.card-ic .ic { width: 22px; height: 22px; }
.card h3 { font-size: 20px; margin: 18px 0 8px; }
.card p { font-size: 15.5px; color: var(--muted); }
.card-sm { padding: 22px; }
.card-sm h3 { font-size: 17.5px; margin-top: 14px; }
.card-sm p { font-size: 14.5px; }

/* audit */
.audit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.audit-copy h2 { font-size: clamp(34px, 4.4vw, 54px); margin: 12px 0 16px; }
.audit-form { display: flex; gap: 10px; margin-top: 28px; }
.audit-form input, .form input, .form select, .form textarea { width: 100%; background: var(--bg-3); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 16px; color: var(--head); transition: border-color .2s; }
.audit-form input:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ember); }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.fine a { color: var(--head); }
.audit-out { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; min-height: 420px; box-shadow: var(--shadow); }
.audit-out [hidden] { display: none; }
.audit-empty, .audit-loading { height: 360px; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); text-align: center; }
.audit-empty .ic { width: 46px; height: 46px; color: var(--line-2); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--ember); }
@media (prefers-reduced-motion: no-preference) { .spinner { animation: spin 1s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.audit-site { font-size: 14px; color: var(--muted); margin-bottom: 18px; word-break: break-all; }
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gauge { display: grid; justify-items: center; text-align: center; }
.gauge svg { grid-area: 1 / 1; display: block; width: 100%; max-width: 96px; height: auto; transform: rotate(-90deg); }
.gauge .g-track { fill: none; stroke: var(--line); stroke-width: 8; }
.gauge .g-val { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.gauge.good .g-val { stroke: var(--good); } .gauge.ok .g-val { stroke: var(--warn); } .gauge.bad .g-val { stroke: var(--bad); }
.gauge .g-num { font-family: "Space Grotesk"; font-size: 26px; font-weight: 700; color: var(--head); grid-area: 1 / 1; align-self: center; line-height: 1; }
.gauge .g-lbl { grid-area: 2 / 1; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.metrics div { background: var(--bg-3); border-radius: 12px; padding: 12px 14px; }
.metrics dt { font-size: 12px; color: var(--muted); }
.metrics dd { font-family: "Space Grotesk"; font-size: 20px; font-weight: 700; color: var(--head); }
.opps-title { font-size: 16px; margin: 24px 0 10px; }
.opps { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.opps li { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; padding: 10px 14px; border-radius: 10px; background: var(--bg-3); }
.opps li span:last-child { color: var(--warn); font-weight: 600; white-space: nowrap; }
.audit-err { color: var(--bad); margin-top: 14px; font-weight: 600; }

/* security */
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.term { background: #0E141D; border: 1px solid #2A3647; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #172030; border-bottom: 1px solid #2A3647; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3A485C; }
.term-bar span { margin-left: 10px; font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: #A9B3C2; }
.term pre { padding: 18px 18px 8px; overflow-x: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; line-height: 1.75; color: #D5DCE6; white-space: pre-wrap; word-break: break-word; }
.t-k { color: #F2B53A; } .t-ok { color: #3DDC97; }
.verify { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 14px 18px 18px; font-size: 13.5px; color: #A9B3C2; }
.verify a { color: #F7F9FC; font-weight: 600; text-decoration: underline; text-decoration-color: #F07A3A; text-underline-offset: 4px; }

/* process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.step-n { font-family: "Space Grotesk"; font-size: 42px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.steps h3 { font-size: 21px; margin: 16px 0 8px; }
.steps p { font-size: 15px; color: var(--muted); }
.step-t { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }

/* pricing */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pkg { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.pkg-feat { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember), 0 30px 60px -30px rgba(240,122,58,.38); }
.pkg-rib { position: absolute; top: -12px; left: 28px; background: var(--ember); color: var(--on-ember); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.pkg h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pkg-price { font-family: "Space Grotesk"; font-size: 40px; font-weight: 700; color: var(--head); letter-spacing: -.03em; margin: 8px 0 4px; }
.pkg-price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.pkg-tag { color: var(--muted); font-size: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pkg .ticks { font-size: 15px; }
.est { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; margin-top: 30px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.est-in { padding: 30px; }
.est h3 { font-size: 22px; margin-bottom: 18px; }
.est-row { border: 0; margin-bottom: 20px; }
.est-row label, .est-row legend { font-weight: 600; color: var(--head); font-size: 15px; display: block; margin-bottom: 10px; }
.est-row output { color: var(--accent); font-family: "Space Grotesk"; font-size: 18px; }
input[type="range"] { width: 100%; accent-color: var(--ember); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; cursor: pointer; color: var(--text); transition: border-color .2s, background .2s; }
.chip:has(input:checked) { border-color: var(--ember); background: color-mix(in srgb, var(--ember) 14%, transparent); color: var(--head); }
.chip input { accent-color: var(--ember); }
.chip-wide { display: flex; border-radius: 12px; }
.est-out { background: linear-gradient(160deg, var(--bg-3), color-mix(in srgb, var(--ember) 16%, var(--bg-3))); padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.est-out span { color: var(--text); font-size: 14px; }
.est-out b { font-family: "Space Grotesk"; font-size: clamp(30px, 3.4vw, 42px); color: var(--head); letter-spacing: -.03em; line-height: 1.1; }
.est-out .est-care { color: var(--cyan); font-weight: 600; }
.est-out p { font-size: 13.5px; color: var(--text); margin: 10px 0 16px; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; }
.faq h2 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 12px; }
.faq-side { color: var(--muted); margin-top: 16px; }
.faq-side a { color: var(--head); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-family: "Space Grotesk"; font-weight: 600; font-size: 19px; color: var(--head); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin-top: 10px; color: var(--muted); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: start; }
.contact h2 { font-size: clamp(34px, 4.2vw, 50px); margin: 12px 0 16px; }
.contact-direct { margin-top: 26px; color: var(--muted); }
.contact-direct a { color: var(--head); font-weight: 600; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.f-row { display: grid; gap: 16px; }
.f-2 { grid-template-columns: 1fr 1fr; }
.f label { display: block; font-size: 14px; font-weight: 600; color: var(--head); margin-bottom: 7px; }
.opt { color: var(--muted); font-weight: 400; }
.f [aria-invalid="true"] { border-color: var(--bad); }
.f-err { color: var(--bad); font-size: 13px; margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form-status { font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--good); } .form-status.err { color: var(--bad); }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.ftr-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ftr p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 380px; }
.ftr nav { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.ftr nav a { color: var(--text); text-decoration: none; }
.ftr nav a:hover { color: var(--head); }
.ftr-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* reveal-on-scroll (only when JS is running and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* legal pages */
.doc { max-width: 760px; padding: 80px 0 100px; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text); margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc .updated { color: var(--muted); }
.center-page { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 18px; padding: 60px 20px; }
.center-page h1 { font-size: clamp(60px, 12vw, 140px); }
.center-page .cta-row { justify-content: center; }

@media (max-width: 1060px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .sec-grid, .audit, .contact, .faq, .ba-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .proof { grid-template-columns: repeat(2, auto); }
  .js .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .js .nav a[aria-current] { text-decoration: none; border-left: 3px solid var(--ember); padding-left: 12px; }
  .js .burger { display: inline-grid; }
  /* without JavaScript there is no burger, so the links simply wrap under the logo */
  html:not(.js) .hdr { position: static; }
  html:not(.js) .hdr-in { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 4px 20px; }
  html:not(.js) .nav { order: 3; flex: 1 0 100%; flex-wrap: wrap; gap: 0 20px; }
  html:not(.js) .nav a { padding: 11px 0; }
}
@media (max-width: 860px) {
  .pkgs { grid-template-columns: 1fr; }
  .est { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .hero { padding: 64px 0 60px; }
  .cta-row .btn { flex: 1 1 100%; }
  .proof { gap: 14px 26px; }
  .proof b { font-size: 25px; }
  .sec { padding: 76px 0; }
  .cards, .cards-2, .steps { grid-template-columns: 1fr; }
  .stage { height: 560px; padding: 12px; }
  .audit-form { flex-direction: column; }
  .audit-out, .form, .est-in, .est-out, .pkg, .demo { padding: 20px; }
  .gauges { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .f-2 { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* the storm scene is exempt (owner decision): it stays soft, and the "Pause weather" button is how a visitor stops it */
  :not(.scene *), :not(.scene *)::before, :not(.scene *)::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- sub-pages ---- */
.crumbs { padding-top: 22px; font-size: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--muted); }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--head); }
.crumbs [aria-current] { color: var(--head); font-weight: 600; }
.page-hero { position: relative; padding: 56px 0 70px; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 68px); margin: 18px 0 18px; max-width: 900px; }
.page-hero .lede { max-width: 720px; }
.sec-tight { padding: 70px 0; }
.sec-cta { padding-top: 40px; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 12px; max-width: 460px; }
.two-col { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.two-col .ticks { margin-top: 0; }
.more-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 14.5px; color: var(--head); text-decoration: none; border-bottom: 2px solid var(--ember); padding-bottom: 1px; }
.card-link:hover { color: var(--accent); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.ticks li span { min-width: 0; }

/* prose / long-form */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 44px 0 14px; }
.prose h2:first-child, .prose > .eyebrow + h2 { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 26px 0 6px; }
.prose p { margin-bottom: 14px; }
.prose ul:not(.ticks) { padding-left: 22px; margin-bottom: 14px; }
.prose ul:not(.ticks) li { margin-bottom: 8px; }
.prose .ticks { margin: 0 0 10px; }
.prose a, .doc a { color: var(--head); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; }
.prose .eyebrow { display: block; margin-bottom: 8px; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.facts { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.facts-img { border-radius: 12px; border: 1px solid var(--line); width: 100%; }
.facts dl { display: grid; gap: 12px; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { color: var(--head); font-weight: 600; }
.facts .fact-big dd b { display: block; font-family: "Space Grotesk"; font-size: 36px; letter-spacing: -.02em; line-height: 1.1; }
.facts .fact-big dd span { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.facts .fine { margin-top: 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--bg-3); color: var(--accent); border: 1px solid var(--line-2); }

/* work cards */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.wcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.wcard-img { display: block; padding: 14px 14px 0; }
.wcard-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.wcard-body { padding: 26px; display: grid; gap: 10px; align-content: start; }
.wcard h3 { font-size: 26px; margin-top: 4px; }
.wcard h3 a { text-decoration: none; color: var(--head); }
.wcard h3 a:hover { color: var(--accent); }
.wcard-kind { color: var(--muted); font-size: 14px; font-weight: 600; }
.wcard-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.wcard-links .btn { white-space: normal; }

/* process detail */
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.detail { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.detail h3 { font-size: 22px; margin-bottom: 8px; }
.detail p { color: var(--muted); }

/* comparison table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { color: var(--head); font-family: "Space Grotesk"; font-size: 15px; background: var(--bg-3); }
.cmp tbody th { color: var(--head); font-weight: 600; }
.cmp td { color: var(--text); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }

/* founder */
.founder { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); }
.mono { width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; font-family: "Space Grotesk"; font-size: 64px; font-weight: 700; letter-spacing: -.04em; color: var(--on-ember); background: linear-gradient(135deg, var(--ember), var(--bolt-2)); box-shadow: 0 20px 50px -20px rgba(240,122,58,.5); }
.founder h2 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 4px; }
.founder-role { color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.founder p { margin-bottom: 12px; max-width: 640px; }
.founder a { color: var(--head); }

/* contact */
.next-steps { margin: 12px 0 0 22px; display: grid; gap: 6px; }
.contact h2.h3 { font-size: 22px; margin-top: 28px; max-width: none; }
.contact h1 { font-size: clamp(34px, 4.2vw, 50px); margin: 12px 0 16px; }

/* CTA band */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 40px 44px; border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--bg-3), color-mix(in srgb, var(--ember) 17%, var(--bg-3))); }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 8px; }
.cta-band p { color: var(--text); max-width: 560px; }
.cta-band .cta-row { margin-top: 0; }

@media (max-width: 1060px) {
  .layout-aside, .two-col, .founder { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .facts { position: static; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .detail-grid, .work-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cards-4 { grid-template-columns: 1fr; }
  .page-hero { padding: 36px 0 44px; }
  .sec-tight { padding: 52px 0; }
  .cta-band { padding: 26px 22px; }
  .wcard-body { padding: 20px; }
  .founder { padding: 24px; }
  .detail { padding: 22px; }
  .mono { width: 140px; height: 140px; font-size: 50px; }
}
.seg-demos { flex-wrap: wrap; }
.lh-scores { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lh-scores li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.lh-scores b { font-size: 2rem; line-height: 1.1; color: var(--head); font-variant-numeric: tabular-nums; }
.lh-scores span { font-size: .85rem; color: var(--muted); }
@media (min-width: 720px) { .lh-scores { grid-template-columns: repeat(4, 1fr); } }

/* ---- utility ---- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Ctrl+K search dialog ---- */
.sdlg { width: min(640px, calc(100% - 24px)); max-height: min(80vh, 720px); margin: 8vh auto auto; padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); color: var(--text); box-shadow: var(--shadow); overflow: hidden; }
.sdlg::backdrop { background: rgba(8, 12, 18, .74); backdrop-filter: blur(3px); }
.sdlg-in { display: flex; flex-direction: column; gap: 12px; padding: 18px; max-height: min(80vh, 720px); overflow: auto; }
.sdlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sdlg-head h2 { font-size: 20px; margin: 0; }
.sdlg input[type="search"] { width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg-2); color: var(--head); }
.sdlg input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.sdlg-status { font-size: 14px; color: var(--muted); margin: 0; min-height: 1.3em; }
.sdlg-list[hidden] { display: none; }
.sdlg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sdlg-list a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--head); text-decoration: none; }
.sdlg-list a.is-active, .sdlg-list a:hover { border-color: var(--ember); background: var(--card-hover); }
.s-title { font-weight: 700; font-size: 16px; }
.s-path { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--muted); }
.s-snip { font-size: 14px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sdlg-hint { font-size: 13px; color: var(--muted); margin: 0; }
.sdlg-hint kbd { font-family: "JetBrains Mono", monospace; font-size: 12px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-3); color: var(--head); }
.sdlg :focus-visible, .lab-demo :focus-visible, .lab-modal :focus-visible, .lab-form :focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
@media (max-width: 480px) { .sdlg { margin-top: 12px; } .sdlg-hint { display: none; } .hdr-actions { gap: 6px; } }

/* ---- live security report ---- */
.live-sum { font-size: 20px; font-weight: 700; color: var(--head); margin: 0 0 18px; }
.live-sum.is-pass { color: var(--good); }
[data-theme="light"] .live-sum.is-pass { color: #0B6B43; }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.live-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; }
.live-item.is-pass { border-left-color: var(--good); }
.live-item.is-fail { border-left-color: var(--bad); }
.live-badge { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; grid-row: 1; }
.is-pass .live-badge { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
[data-theme="light"] .is-pass .live-badge { color: #0B6B43; }
.is-fail .live-badge { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
[data-theme="light"] .is-fail .live-badge { color: #A8182B; }
.live-label { font-weight: 600; color: var(--head); }
.live-val { grid-column: 2; font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }

/* ---- lab ---- */
.lab-note { color: var(--muted); max-width: 680px; margin: 8px 0 20px; }
.lab-demo { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.lab-demo > p { margin-top: 14px; }
.tabs [role="tablist"] { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs [role="tab"] { font: inherit; font-weight: 700; padding: 10px 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; border-radius: 10px 10px 0 0; }
.tabs [role="tab"][aria-selected="true"] { color: var(--head); border-bottom-color: var(--ember); }
.tabs [role="tab"]:hover { color: var(--head); }
.tabs [role="tabpanel"][hidden] { display: none; }
.lab-modal { width: min(480px, calc(100% - 32px)); padding: 26px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.lab-modal::backdrop { background: rgba(8, 12, 18, .74); }
.lab-modal h3 { color: var(--head); margin-bottom: 8px; }
.lab-modal label { display: block; margin: 14px 0 6px; font-weight: 600; color: var(--head); }
.lab-modal input { width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--bg-2); color: var(--head); }
.lab-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.acc h3 { margin: 0; font-size: 1rem; }
.acc button { width: 100%; text-align: left; font: inherit; font-weight: 700; padding: 14px 4px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--head); cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.acc button::after { content: "+"; color: var(--accent); font-size: 1.3em; line-height: 1; }
.acc button[aria-expanded="true"]::after { content: "\2212"; }
.acc [role="region"] { padding: 12px 4px 4px; }
.acc [role="region"][hidden] { display: none; }
.lab-toast { min-height: 1.5em; color: var(--head); font-weight: 600; }
.lab-form meter { width: 100%; height: 12px; margin-top: 4px; }
.lab-fig { margin: 20px 0; }
.lab-fig figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.lab-img { width: 100%; max-width: 720px; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.tbl caption { text-align: left; padding: 12px 16px; color: var(--muted); font-size: 14px; }
.lab-reveals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lab-reveals .card { min-height: 220px; }
.lab-progress { display: none; }
@media (max-width: 640px) { .lab-reveals { grid-template-columns: minmax(0, 1fr); } .lab-demo { padding: 18px; } }

/* ---- motion: only when the visitor has not asked for reduced motion ---- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes lab-rise { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes lab-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @supports (animation-timeline: scroll()) {
    [data-scroll-demo] { animation: lab-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .lab-progress { display: block; position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; background: linear-gradient(90deg, var(--ember), var(--drum)); transform-origin: 0 50%; animation: lab-grow linear both; animation-timeline: scroll(root block); }
  }

  @view-transition { navigation: auto; }
  .hdr { view-transition-name: site-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: ease; }
  ::view-transition-group(site-header) { animation-duration: 0s; }
}

/* start wizard + audit comparison */
.wiz-wrap, .cmp-wrap { max-width: 860px; }
.wiz-head { margin-bottom: 26px; }
.wiz-head p a, .cmp-lead a { color: var(--head); }
.wiz-top { display: grid; gap: 10px; }
.wiz-progress { font-weight: 700; color: var(--head); margin: 0; }
.wiz-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.wiz-bar-fill { display: block; height: 100%; width: 25%; background: var(--ember); border-radius: 99px; transition: width .3s ease; }
.wiz:not(.is-js) .wiz-bar, .wiz:not(.is-js) .wiz-nav { display: none; }
.wiz:not(.is-js) .wiz-step { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.wiz-step { display: grid; gap: 16px; }
.wiz-step[hidden], .wiz [hidden] { display: none; }
.wiz-step h2:focus { outline: none; }
.wiz-step h2:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }
.wiz-fs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.wiz-fs legend { font-size: 14px; font-weight: 600; color: var(--head); padding: 0; margin-bottom: 8px; }
.wiz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wiz-opt { position: relative; display: block; cursor: pointer; }
.wiz-opt input { position: absolute; z-index: 1; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.wiz-opt-body { display: grid; gap: 4px; padding: 14px 16px 14px 46px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--bg-3); color: var(--muted); font-size: 14.5px; position: relative; transition: border-color .15s, background .15s; }
.wiz-opt-body b { color: var(--head); font-size: 15.5px; }
.wiz-opt-body::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 50%; background: var(--bg); }
.wiz-opt input[type="checkbox"] + .wiz-opt-body::before { border-radius: 5px; }
.wiz-opt:hover .wiz-opt-body { border-color: var(--ember); }
.wiz-opt input:checked + .wiz-opt-body { border-color: var(--ember); background: var(--card-hover); }
.wiz-opt input:checked + .wiz-opt-body::before { border-color: var(--ember); background: var(--ember); box-shadow: inset 0 0 0 3px var(--bg); }
.wiz-opt input:focus-visible + .wiz-opt-body { outline: 2px solid var(--cyan); outline-offset: 2px; }
.wiz input[type="range"] { padding: 0; accent-color: var(--ember); }
.wiz output { color: var(--head); font-weight: 700; margin-left: 6px; }
.wiz-summary { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; background: var(--bg-3); }
.wiz-sum-title { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.wiz-summary ul { margin: 0; padding-left: 20px; color: var(--head); display: grid; gap: 4px; }
.wiz-error, .cmp-err { color: var(--bad); font-weight: 600; margin: 0; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; }
.wiz-nav .btn:only-of-type, .wiz-nav #wizNext { margin-left: auto; }
.wiz-nav [hidden] { display: none; }
.cmp-lead { max-width: 70ch; }
.cmp-form { margin: 24px 0; }
.cmp-loading { display: grid; justify-items: center; gap: 14px; padding: 40px 0; color: var(--muted); text-align: center; }
.cmp-fail { color: var(--bad); font-weight: 600; border: 1px solid var(--bad); border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; }
.cmp-grid { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--card); }
.cmp-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.cmp-table caption { text-align: left; padding: 12px 18px; color: var(--muted); font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 14px 18px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.cmp-table thead th { background: var(--bg-3); color: var(--head); font-size: 14px; font-weight: 700; }
.cmp-table thead th:first-child { width: 32%; }
.cmp-site b, .cmp-site .cmp-url { display: block; }
.cmp-site { color: var(--muted); font-size: 13px; }
.cmp-site b { color: var(--head); font-size: 14px; }
.cmp-url { font-weight: 400; overflow-wrap: anywhere; }
.cmp-cat { color: var(--head); font-weight: 600; }
.cmp-score, .cmp-row .cmp-gap { font-family: "Space Grotesk"; font-size: 24px; font-weight: 700; color: var(--head); }
.cmp-headrow .cmp-gap { font-size: 14px; font-family: inherit; color: var(--head); }
/* cells: category (row header), site A score, site B score, gap. The winner is also marked with a triangle and hidden text. */
.cmp-row[data-winner="a"] > .cmp-score:nth-child(2), .cmp-row[data-winner="b"] > .cmp-score:nth-child(3) { color: var(--good); }
.cmp-win { font-family: Inter, sans-serif; font-size: 13px; margin-left: 6px; vertical-align: middle; }
.cmp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.cmp-col { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); min-width: 0; }
.cmp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.cmp-cta p { flex: 1 1 260px; margin: 0; color: var(--head); font-weight: 600; }
@media (max-width: 720px) {
  .wiz-opts, .cmp-cols { grid-template-columns: 1fr; }
  .cmp-table th, .cmp-table td { padding: 10px 8px; }
  .cmp-table caption { padding: 10px 8px; }
  .cmp-table thead th { font-size: 12.5px; }
  .cmp-site b { font-size: 12.5px; }
  .cmp-site { font-size: 11.5px; }
  .cmp-cat { font-size: 14px; }
  .cmp-score, .cmp-row .cmp-gap { font-size: 19px; }
  .cmp-win { display: block; margin: 0; font-size: 11px; }
  .cmp-nav, .wiz-nav .btn { flex: 1; }
}

/* insights / articles */
.ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-bottom: 28px; }
.ins-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; text-decoration: none; color: inherit; }
a.ins-card:hover { border-color: var(--line-2); background: var(--card-hover); }
.ins-card h3 { font-size: 20px; margin: 0 0 8px; }
.ins-card h3 a { color: var(--head); text-decoration: none; }
.ins-card p { font-size: 15.5px; color: var(--muted); margin-bottom: 10px; }
.art-meta { font-size: 14.5px; color: var(--muted); }
.art-meta a { color: var(--head); }
.art-sec { padding-top: 24px; }
.article { max-width: 68ch; margin-inline: auto; }
.art-head h1 { font-size: clamp(32px, 5vw, 48px); margin: 14px 0 16px; overflow-wrap: break-word; }
.art-head .lede { margin-bottom: 14px; }
.art-body { font-size: 18px; line-height: 1.75; margin-top: 32px; overflow-wrap: break-word; }
.art-body p, .art-body ul, .art-body ol, .art-body blockquote, .art-body aside { margin-bottom: 18px; }
.art-body h2 { font-size: clamp(25px, 3.4vw, 32px); margin: 48px 0 14px; line-height: 1.2; }
.art-body h3 { font-size: 21px; margin: 32px 0 8px; line-height: 1.3; }
.art-body ul, .art-body ol { padding-left: 24px; }
.art-body li { margin-bottom: 8px; padding-left: 4px; }
.art-body a, .art-related a { color: var(--head); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; }
.art-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.art-body blockquote { border-left: 4px solid var(--ember); padding: 4px 0 4px 20px; color: var(--head); font-size: 19px; }
.art-body .callout { background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 22px; }
.art-body .callout p { margin: 0; }
.art-cta { margin-top: 56px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; }
.art-cta h2 { font-size: 24px; margin-bottom: 8px; }
.art-cta p { color: var(--muted); margin-bottom: 16px; }
.art-related { margin-top: 36px; }
.art-related h2 { font-size: 20px; margin-bottom: 10px; }
.art-related ul { list-style: none; display: grid; gap: 8px; }

/* ---- Raijin weather theme: Thunderhead slate ---- */
:root, [data-theme="dark"] {
  --sky-a: #0C121B; --sky-b: #1A2536; --sky-c: var(--bg); --sun: rgba(240,122,58,.34);
  --cl: rgba(122,138,162,.36); --cl-lit: rgba(255,206,150,.66); --drum: #F2B53A; --dawn: rgba(240,122,58,.34);
}
[data-theme="light"] {
  --sky-a: #9AAABF; --sky-b: #CAD3E0; --sky-c: var(--bg); --sun: rgba(240,140,70,.42);
  --cl: rgba(255,255,255,.84); --cl-lit: rgba(255,208,140,.95); --drum: #B8860B; --dawn: rgba(240,140,70,.40);
}
.hero { background: var(--bg); }
/* the storm scene holds sky, clouds, drums, rain and lightning: inside the hero on desktop, a fixed backdrop on phones */
.scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; isolation: isolate; pointer-events: none; }
.sky { position: absolute; inset: 0; z-index: -6; background: radial-gradient(760px 480px at 80% 8%, var(--hero-glow), transparent 62%), radial-gradient(120% 34% at 50% 100%, var(--sun), transparent 72%), linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 52%, var(--sky-c) 100%); }
.dawn { position: absolute; inset: auto 0 0; height: 62%; z-index: -5; background: radial-gradient(ellipse 80% 90% at 50% 112%, var(--dawn), transparent 70%); opacity: .5; }
.clouds { position: absolute; inset: 0 0 38%; z-index: -4; overflow: hidden; pointer-events: none; }
.cloud, .cloud::after {
  background:
    radial-gradient(30% 62% at 14% 64%, var(--c), transparent 100%),
    radial-gradient(26% 78% at 34% 44%, var(--c), transparent 100%),
    radial-gradient(32% 70% at 56% 54%, var(--c), transparent 100%),
    radial-gradient(26% 58% at 78% 40%, var(--c), transparent 100%),
    radial-gradient(24% 52% at 92% 66%, var(--c), transparent 100%);
}
.cloud { --c: var(--cl); position: absolute; display: block;
  /* gradients overflow the box; feather every edge so no straight clip lines ever show */
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
.cloud::after { --c: var(--cl-lit); content: ""; position: absolute; inset: 0; opacity: calc(var(--flash, 0) * .55); }
.cloud-far { width: 90%; height: 46%; top: -2%; left: -8%; opacity: .75; }
.cloud-mid { width: 80%; height: 52%; top: 8%; right: -20%; transform: scaleX(-1); opacity: .85; }
.cloud-high { width: 70%; height: 40%; top: -10%; left: 24%; opacity: .9; }
.cloud-near { width: 120%; height: 58%; top: -22%; left: -10%; }
.kanji::before { content: "\96F7\795E"; }
.kanji { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); font-size: clamp(160px, 26vw, 380px); font-weight: 900; line-height: 1; color: var(--head); opacity: .035; z-index: -3; user-select: none; font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif; }
.drums { --ring: clamp(300px, 36vw, 500px); position: absolute; z-index: -3; top: 50%; right: 3%; width: var(--ring); height: var(--ring); margin-top: calc(var(--ring) / -2); color: var(--drum); opacity: .6; pointer-events: none; }
.drum { position: absolute; left: 50%; top: 50%; width: calc(var(--ring) * .2); height: calc(var(--ring) * .2); margin: calc(var(--ring) * -.1) 0 0 calc(var(--ring) * -.1); transform: rotate(var(--a)) translateY(calc(var(--ring) * -.4)) rotate(calc(var(--a) * -1)); }
.drum-ic { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 10px currentColor); }
.drum:nth-of-type(1) { --a: 0deg; --n: 0; }
.drum:nth-of-type(2) { --a: 45deg; --n: 1; }
.drum:nth-of-type(3) { --a: 90deg; --n: 2; }
.drum:nth-of-type(4) { --a: 135deg; --n: 3; }
.drum:nth-of-type(5) { --a: 180deg; --n: 4; }
.drum:nth-of-type(6) { --a: 225deg; --n: 5; }
.drum:nth-of-type(7) { --a: 270deg; --n: 6; }
.drum:nth-of-type(8) { --a: 315deg; --n: 7; }
.drums-bolt { position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; margin: -15% 0 0 -15%; color: var(--drum); filter: drop-shadow(0 0 18px var(--ember)); }
.drums-text { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arc-text { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; font-size: 6.4px; letter-spacing: .1em; fill: currentColor; }
.shock { position: absolute; inset: 8%; border-radius: 50%; border: 2px solid var(--drum); opacity: 0; }
.rain, .storm { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rain { z-index: -2; }
.storm { z-index: -1; opacity: .7; }
/* lit clouds can sit behind the copy: give every size the same soft halo in the page colour (not on the gradient word, whose text is transparent) */
.hero-in :is(.eyebrow, .lede, .lore, .proof, .proof-note, h1) { text-shadow: 0 1px 14px var(--bg), 0 0 3px var(--bg); }
.hero-in .grad { text-shadow: none; }
.weather-toggle { margin-top: 18px; min-height: 44px; min-width: 44px; }
.weather-toggle .ic-play, .weather-toggle .wt-on { display: none; }
.weather-toggle[aria-pressed="true"] .ic-play { display: block; }
.weather-toggle[aria-pressed="true"] .wt-on { display: inline; }
.weather-toggle[aria-pressed="true"] .ic-pause, .weather-toggle[aria-pressed="true"] .wt-off { display: none; }
/* paused by the visitor (html.weather-paused is set by theme.js and the hero button): no canvases, no looping animation */
html.weather-paused .rain, html.weather-paused .storm { display: none; }
html.weather-paused .cloud, html.weather-paused .drums, html.weather-paused .stamp-spin, html.weather-paused .ftr::before { animation: none; }
.lore { margin-top: 22px; max-width: 600px; font-size: 14.5px; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: 14px; }
@keyframes drum-hit { 0% { transform: scale(1); } 22% { transform: scale(1.22); filter: brightness(1.8); } 100% { transform: scale(1); } }
@keyframes shock-out { 0% { transform: scale(.25); opacity: .85; } 100% { transform: scale(1.35); opacity: 0; } }
.drums.hit .drum-ic { animation: drum-hit .7s ease-out calc(var(--n) * 45ms) both; }
.drums.hit .shock { animation: shock-out 1.3s cubic-bezier(.15,.6,.3,1) both; }
.drums.hit .shock-2 { animation-delay: .22s; }
@media (max-width: 720px) {
  .drums { --ring: min(86vw, 380px); right: 50%; margin-right: calc(var(--ring) / -2); top: 30%; opacity: .35; }
  .lore { font-size: 14px; }
}
/* the storm scene animates regardless of the OS reduced-motion setting; html.weather-paused stops it */
@keyframes cloud-drift { from { translate: -5% 0; } to { translate: 7% 0; } }
@keyframes drum-turn { to { rotate: 360deg; } }
.cloud { will-change: translate; animation: cloud-drift 80s ease-in-out infinite alternate; }
.cloud-mid { animation-duration: 58s; animation-direction: alternate-reverse; }
.cloud-high { animation-duration: 44s; }
.cloud-near { animation-duration: 32s; animation-direction: alternate-reverse; }
.drums { animation: drum-turn 240s linear infinite; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes wisp { from { translate: -12% 0; } to { translate: 0 0; } }
  @keyframes crackle {
    0% { filter: drop-shadow(0 8px 12px rgba(240,122,58,.32)); }
    18% { filter: drop-shadow(0 0 3px rgba(255,244,214,.95)) drop-shadow(0 0 16px rgba(242,181,58,.95)); }
    32% { filter: drop-shadow(0 0 2px rgba(255,255,255,.7)) drop-shadow(0 4px 10px rgba(240,122,58,.5)); }
    50% { filter: drop-shadow(0 0 12px rgba(242,181,58,.8)) drop-shadow(0 0 4px rgba(255,244,214,.8)); }
    100% { filter: drop-shadow(0 12px 16px rgba(240,122,58,.45)); }
  }
  @keyframes focus-ripple { from { outline-offset: -3px; outline-color: transparent; } to { outline-offset: 3px; } }
  @keyframes stamp-turn { to { rotate: 360deg; } }
  .stamp-spin { transform-origin: 60px 60px; animation: stamp-turn 48s linear infinite; }
  .btn-bolt:hover, .btn-bolt:focus-visible { animation: crackle .6s linear 1; }
  a:focus-visible, button:focus-visible, summary:focus-visible { animation: focus-ripple .35s ease-out 1; }
  .nav a::after { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .ftr::before { animation: wisp 70s ease-in-out infinite alternate; }
}
/* the storm clears as you scroll (browsers without scroll timelines simply keep the stormy sky) */
@supports (animation-timeline: scroll()) {
  @keyframes rain-clears { to { opacity: 0; } }
  @keyframes clouds-part { to { opacity: .3; transform: translateY(-14%) scale(1.1); } }
  @keyframes dawn-rises { from { opacity: .3; } to { opacity: 1; } }
  .rain, .storm { animation: rain-clears linear both; animation-timeline: scroll(root); animation-range: 0 62vh; }
  .clouds { animation: clouds-part linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  .dawn { animation: dawn-rises linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
}

/* ---- scalloped crops: radial-gradient circles along every edge (cloud-edge border) ---- */
.scallop, .work-card img, .btn-bolt::before {
  -webkit-mask-image: linear-gradient(#000, #000), radial-gradient(circle at 50% 50%, #000 calc(var(--sr) - .6px), transparent var(--sr)), radial-gradient(circle at 50% 50%, #000 calc(var(--sr) - .6px), transparent var(--sr)), radial-gradient(circle at 50% 50%, #000 calc(var(--sr) - .6px), transparent var(--sr)), radial-gradient(circle at 50% 50%, #000 calc(var(--sr) - .6px), transparent var(--sr));
  mask-image: linear-gradient(#000, #000), radial-gradient(circle at 50% 50%, #000 calc(var(--sr) - .6px), transparent var(--sr)), radial-gradient(circle at 50% 50%, #000 calc(var(--sr) - .6px), transparent var(--sr)), radial-gradient(circle at 50% 50%, #000 calc(var(--sr) - .6px), transparent var(--sr)), radial-gradient(circle at 50% 50%, #000 calc(var(--sr) - .6px), transparent var(--sr));
  mask-size: calc(100% - var(--sr) * 2) calc(100% - var(--sr) * 2), calc(var(--sr) * 2) calc(var(--sr) * 2), calc(var(--sr) * 2) calc(var(--sr) * 2), calc(var(--sr) * 2) calc(var(--sr) * 2), calc(var(--sr) * 2) calc(var(--sr) * 2);
  mask-position: center, top, bottom, left, right;
  mask-repeat: no-repeat, space no-repeat, space no-repeat, no-repeat space, no-repeat space;
}
.scallop { --sr: 10px; }
.work-card img { --sr: 10px; }

/* ---- buttons: the primary button wears a scalloped edge on a background layer, so its focus ring is never clipped ---- */
.btn-bolt { --sr: 5px; position: relative; isolation: isolate; background: transparent; color: var(--on-ember); filter: drop-shadow(0 8px 12px rgba(240,122,58,.32)); }
.btn-bolt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ember); transition: background .2s; }
.btn-bolt:hover { filter: drop-shadow(0 12px 16px rgba(240,122,58,.45)); }
.btn-bolt:hover::before, .btn-bolt:focus-visible::before { background: var(--bolt-2); }
.btn-sm.btn-bolt { --sr: 4px; }
/* ghost buttons: a thin outline plus a row of little scallops underneath */
.btn-ghost { position: relative; }
.btn-ghost::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 5px; opacity: .8; pointer-events: none; background: radial-gradient(circle at 50% 0, transparent 2.1px, var(--ember) 2.5px 3.5px, transparent 3.9px) 0 0 / 9px 5px repeat-x; }

/* ---- curved lettering ---- */
.stamp { display: block; width: 132px; height: 132px; color: var(--accent); }
.stamp-dots { fill: none; stroke: currentColor; stroke-width: 3; stroke-dasharray: 0 8.2; stroke-linecap: round; opacity: .9; }
.stamp-ic { color: var(--drum); }
.stamp .arc-text { font-size: 9.2px; letter-spacing: .12em; }
.ba-frame { filter: drop-shadow(0 26px 24px rgba(0,0,0,.28)); }
.ba.scallop { --sr: 12px; border: 0; border-radius: 0; box-shadow: none; }
.facts-img.scallop { --sr: 9px; border: 0; border-radius: 0; }

/* phone: the weather becomes a fixed full-screen scene behind the whole page; sections float on top as slate panels */
@media (max-width: 640px) {
  .hero { isolation: auto; overflow: visible; background: transparent; }
  .scene { position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100lvh; z-index: -1; }
  .drums { --ring: min(86vw, 380px); right: 50%; margin-right: calc(var(--ring) / -2); top: 32%; opacity: .5; }
  .rain, .storm, .clouds, .dawn { animation: none; }
  .lore { font-size: 14px; }
  /* no backdrop-filter here: blurring a canvas that repaints every frame is expensive on phones, so the panels are simply near-solid */
  .hdr { background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body:has([data-weather-scene]) .sec { margin: 14px 10px; padding: 54px 0; border: 1px solid var(--line); border-radius: 28px; background: color-mix(in srgb, var(--bg) 90%, transparent); }
  body:has([data-weather-scene]) .sec-alt { background: color-mix(in srgb, var(--bg-2) 92%, transparent); }
  body:has([data-weather-scene]) .sec > .wrap { width: calc(100% - 30px); }
  body:has([data-weather-scene]) .ftr { margin-top: 14px; background: color-mix(in srgb, var(--bg) 94%, transparent); }
  .ba-frame { filter: drop-shadow(0 14px 14px rgba(0,0,0,.28)); }
  .stamp { width: 112px; height: 112px; }
}

/* site-wide weather touches */
.eyebrow::after { content: ""; flex: none; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, currentColor, transparent); opacity: .55; transform: skewX(-30deg); }
.prose .eyebrow::after, .page-hero .eyebrow::after { display: inline-block; vertical-align: middle; margin-left: 10px; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ember), var(--drum), transparent); transform: scaleX(0); transform-origin: left; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current]::after { display: none; }
.ftr { position: relative; overflow: hidden; }
.ftr::before { content: ""; position: absolute; left: -10%; top: -40px; width: 130%; height: 150px; pointer-events: none; opacity: .5; background: radial-gradient(260px 60px at 12% 60%, var(--cl), transparent 100%), radial-gradient(320px 70px at 46% 40%, var(--cl), transparent 100%), radial-gradient(240px 56px at 80% 62%, var(--cl), transparent 100%); }
.ftr > .wrap { position: relative; }

/* ---- print: the page, without the weather, navigation or dark theme ---- */
@media print {
  :root, [data-theme="dark"], [data-theme="light"] { --bg: #fff; --bg-2: #fff; --bg-3: #fff; --card: #fff; --card-hover: #fff; --text: #000; --muted: #333; --head: #000; --line: #999; --line-2: #666; --accent: #000; --good: #000; --bad: #000; --ember: #000; }
  .scene, canvas, .hdr, .nav, .skip, .sdlg, .weather-toggle, .ftr::before, .demo-bar, .stage, .cta-row, .ba-range { display: none !important; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero, .sec, .sec-alt { background: none !important; padding: 16px 0 !important; margin: 0 !important; border: 0 !important; }
  .grad { background: none; color: #000; -webkit-text-fill-color: #000; }
  .hero-in :is(.eyebrow, .lede, .lore, .proof, .proof-note, h1) { text-shadow: none; }
  a { text-decoration: underline; }
}

/* ---- forced colours (Windows High Contrast): keep custom controls and scalloped buttons visible ---- */
@media (forced-colors: active) {
  .btn-bolt { forced-color-adjust: none; color: ButtonFace; filter: none; }
  .btn-bolt::before { background: ButtonText; }
  .btn-bolt:hover, .btn-bolt:focus-visible { color: HighlightText; }
  .btn-bolt:hover::before, .btn-bolt:focus-visible::before { background: Highlight; }
  .btn-ghost { box-shadow: none; border: 1.5px solid ButtonText; }
  .btn-ghost::after { display: none; }
  .wiz-opt-body { border-color: ButtonText; }
  .wiz-opt-body::before { forced-color-adjust: none; border-color: ButtonText; background: Canvas; }
  .wiz-opt input:checked + .wiz-opt-body { border-color: Highlight; outline: 2px solid Highlight; }
  .wiz-opt input:checked + .wiz-opt-body::before { background: Highlight; border-color: Highlight; box-shadow: inset 0 0 0 3px Canvas; }
  .wiz-opt input:focus-visible + .wiz-opt-body { outline: 3px solid Highlight; }
  .seg button[aria-pressed="true"], .seg button[aria-selected="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .scene { display: none; }
}
