/* ============================================
   XARDAS - style.css
   "Sorcerer's tower", 2026-11-12. Night-slate stone, blood red with ember
   gold, stepped (stair-cut) stonework corners, graduated instrument rules,
   turning sigils and engraved capitals for labels. One colour per product.
   Previous look (SuperCrank "machined"): ~/backups/supercrank-site/2026-11-12-pre-rebrand/
   ============================================ */

@font-face { font-family: 'Cinzel'; src: url('/fonts/cinzel-latin-500-normal.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('/fonts/cinzel-latin-700-normal.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('/fonts/cinzel-latin-900-normal.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }
@font-face { font-family: 'SC Gothic'; src: url('/fonts/sc-gothic-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'SC Gothic'; src: url('/fonts/sc-gothic-bold.woff2') format('woff2'); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'SC Gothic'; src: url('/fonts/sc-gothic-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'SC Mono'; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'SC Mono'; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'SC Mono'; src: url('/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #14151c;      /* the page: night slate */
  --bg-surface: #1a1b24;      /* the alternate band */
  --bg-elevated: #232532;     /* panels */
  --bg-raised: #2e3142;       /* panel hover, chips */
  --border: #363a4e;
  --border-light: #555a73;
  --text-primary: #f2eff8;
  --text-secondary: #c3c0d2;
  --text-muted: #8f8ca3;
  --accent: #b82a26;          /* blood red: fills, rules, plates */
  --accent-hover: #ff7a6e;
  --accent-text: #f0625a;     /* the same red, lifted so it reads as text on the dark ground */
  --accent-ink: #fff3ec;      /* text on a red fill */
  --pc-ink: var(--accent-ink); /* text on a --pc fill: light on red, dark on the product colours */
  --ember: #f2b84b;           /* ember gold: rules, numerals, small marks */
  --success: #3fe0b0;
  --error: #ff5a6a;
  /* one colour per product: used as full panel fills */
  --p-milkware: #5cb8f5;
  --p-ferrystone: #4fd08a;
  --p-oculory: #35cfd2;
  --p-conclave: #b99af7;
  --pc: var(--accent);
  --ch: 18px;                 /* the stair: each of the two steps is half of this */
  --max-width: 1280px;
  --nav-height: 68px;
  --font-sans: 'Century Gothic', CenturyGothic, 'SC Gothic', 'URW Gothic', 'Avant Garde', sans-serif;
  --font-mono: 'SC Mono', 'IBM Plex Mono', ui-monospace, 'Consolas', monospace;
  --font-display: 'Cinzel', 'Trajan Pro', 'Century Gothic', 'SC Gothic', serif;
}
:root[data-theme="light"] {
  --bg-primary: #cdced6;
  --bg-surface: #c0c2cc;
  --bg-elevated: #e2e3ea;
  --bg-raised: #eff0f5;
  --border: #a6a9b8;
  --border-light: #868a9c;
  --text-primary: #15141c;
  --text-secondary: #37364a;
  --text-muted: #5d5c72;
  --accent: #a3231f;
  --accent-hover: #7d1512;
  --accent-text: #a3231f;
  --accent-ink: #fff3ec;
  --ember: #9a6200;
  --success: #14805a;
  --p-milkware: #4aa9ea;
  --p-ferrystone: #3fc27c;
  --p-oculory: #27c0c3;
  --p-conclave: #a88bef;
}
/* The stair-cut corner. Declared on every element so a local --ch resizes it. */
*, *::before, *::after { --s: calc(var(--ch) * 0.5); --chamfer: polygon(0 0, calc(100% - 2 * var(--s)) 0, calc(100% - 2 * var(--s)) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(2 * var(--s)), 100% calc(2 * var(--s)), 100% 100%, calc(2 * var(--s)) 100%, calc(2 * var(--s)) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) calc(100% - 2 * var(--s)), 0 calc(100% - 2 * var(--s))); }
.p-milkware { --pc: var(--p-milkware); --pc-ink: #14161a; }
.p-ferrystone { --pc: var(--p-ferrystone); --pc-ink: #14161a; }
.p-oculory { --pc: var(--p-oculory); --pc-ink: #14161a; }
.p-conclave { --pc: var(--p-conclave); --pc-ink: #14161a; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 1.5rem); font-size: 17px; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
p a, .answer a, .prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* --- Type --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.05; color: var(--text-primary); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.7rem, 5.9vw, 5.3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.9vw, 3.3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.2; }
h4 { font-size: 1.05rem; }
p { color: var(--text-secondary); }
strong { color: var(--text-primary); }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* The cog marker in front of every label */
.section-label { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--pc); margin-bottom: 1rem; }
.section-label::before { content: ''; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url(/img/logo/rune.svg) center / contain no-repeat; mask: url(/img/logo/rune.svg) center / contain no-repeat; }
.section-title { margin-bottom: 1.1rem; max-width: 20ch; }
.section-subtitle { font-size: 1.2rem; max-width: 60ch; line-height: 1.6; }
.section-head { margin-bottom: 3rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); column-gap: 4rem; align-items: end; }
.section-head > .section-label { grid-column: 1 / -1; justify-self: start; }
.section-head > .section-title { margin-bottom: 0; }
.section-head > .section-subtitle { padding-bottom: 0.35rem; }
.section-head.center { text-align: left; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.75rem; }
section { padding: 6rem 0; position: relative; }
.section-alt { background: var(--bg-surface); }
.section-tight { padding: 3rem 0; }

/* --- Nav: a bar with a rack of teeth along its lower edge that travels as you scroll --- */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: var(--bg-primary); z-index: 100; }
.nav::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: linear-gradient(90deg, var(--ember) 0 2px, transparent 2px) 0 0 / 60px 12px repeat-x, linear-gradient(90deg, var(--border-light) 0 1px, transparent 1px) 0 0 / 12px 6px repeat-x; background-position-x: var(--rack, 0px), var(--rack, 0px); border-top: 2px solid var(--accent); pointer-events: none; }
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-logo { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--text-primary); display: inline-flex; align-items: center; gap: 0.7rem; }
.nav-logo:hover { color: var(--text-primary); }
.nav-logo .word { letter-spacing: 0.01em; }
.nav-logo .word em { font-style: normal; color: var(--accent); }
.nav-logo .mark { width: 32px; height: 32px; display: inline-grid; place-items: center; transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1); }
.nav-logo:hover .mark { transform: rotate(180deg); }
.nav-logo .mark img { width: 32px; height: 32px; display: block; }
.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 700; padding: 0.5rem 0.9rem; position: relative; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::before { content: ''; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0; height: 4px; background: var(--accent); }
.nav-cta { margin-left: 0.6rem; background: var(--accent); color: var(--accent-ink) !important; padding: 0.6rem 1.2rem !important; --ch: 9px; clip-path: var(--chamfer); }
.nav-cta:hover { background: var(--text-primary); }
.nav-cta::before { display: none !important; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: var(--bg-elevated); border: 0; cursor: pointer; padding: 0 12px; --ch: 9px; clip-path: var(--chamfer); }
.nav-toggle span { display: block; height: 2px; background: var(--text-primary); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.theme-toggle { height: 40px; padding: 0 0.9rem; border: 0; background: var(--bg-elevated); color: var(--text-primary); display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.85rem; font-weight: 700; --ch: 9px; clip-path: var(--chamfer); }
.theme-toggle:hover { background: var(--bg-raised); }
.theme-toggle svg { width: 18px; height: 18px; flex: none; }
.theme-toggle .sun, .theme-toggle .to-dark { display: none; }
:root[data-theme="light"] .theme-toggle .to-dark { display: inline; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon, :root[data-theme="light"] .theme-toggle .to-light { display: none; }

/* --- Buttons: cut-corner blocks --- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.9rem 1.5rem; font-weight: 700; font-size: 0.98rem; cursor: pointer; border: 0; background: var(--text-primary); color: var(--bg-primary); white-space: nowrap; --ch: 11px; clip-path: var(--chamfer); transition: background 0.15s, color 0.15s, transform 0.15s; }
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn:active { transform: translateY(2px); }
.btn svg { width: 17px; height: 17px; transition: transform 0.15s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--text-primary); color: var(--bg-primary); }
.btn-outline { background: var(--bg-raised); color: var(--text-primary); }
.btn-outline:hover { background: var(--text-primary); color: var(--bg-primary); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.98rem; }
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.15s; }
.link-arrow:hover svg { transform: translateX(5px); }

/* --- Hero --- */
.hero { padding: calc(var(--nav-height) + 5rem) 0 5rem; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: center; }
.hero h1 { margin-bottom: 1.4rem; font-size: clamp(2.6rem, 4.7vw, 4.4rem); }
.hero h1 span { color: var(--pc); }
.hero-subtitle { font-size: 1.2rem; line-height: 1.6; max-width: 54ch; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; margin-bottom: 2.2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; font-size: 0.95rem; font-weight: 700; color: var(--text-secondary); }
.hero-proof li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-proof svg { display: none; }
.hero-proof li::before { content: ''; width: 14px; height: 14px; flex: none; background: var(--pc); -webkit-mask: url(/img/logo/rune.svg) center / contain no-repeat; mask: url(/img/logo/rune.svg) center / contain no-repeat; }
.pill { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); background: var(--bg-elevated); padding: 0.45rem 1rem 0.45rem 0.8rem; margin-bottom: 1.6rem; --ch: 9px; clip-path: var(--chamfer); }
.pill .dot { width: 10px; height: 10px; background: var(--success); flex: none; }
.pill b { color: var(--text-primary); }
.hero-visual { position: relative; }

/* The circles behind the hero: they turn as the page scrolls */
.sigils { position: absolute; inset: 0; overflow: clip; pointer-events: none; z-index: 0; }
.sigil { position: absolute; fill: var(--border-light); stroke: var(--border-light); transform-origin: center; will-change: transform; }
.sigil-a { width: 980px; height: 980px; right: -430px; top: -330px; transform: rotate(calc(var(--turn, 0) * 0.6deg)); fill: var(--border); stroke: var(--border); opacity: 0.55; }
.sigil-b { width: 330px; height: 330px; left: -190px; bottom: -150px; fill: var(--accent); stroke: var(--accent); transform: rotate(calc(var(--turn, 0) * -1.4deg + 9deg)); opacity: 0.5; }
.hero > .container { position: relative; z-index: 1; }

/* Before / after: drag the seal across the old system to see what replaced it */
.compare { position: relative; aspect-ratio: 16 / 10; background: var(--bg-elevated); overflow: hidden; --pos: 50%; --ch: 26px; clip-path: var(--chamfer); user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .rule { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--accent); }
.compare .knob { position: absolute; top: 50%; left: var(--pos); width: 60px; height: 60px; margin: -30px 0 0 -30px; background: var(--accent); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 5px var(--accent-ink), 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--ember); }
.compare .knob-arrows { position: absolute; top: 50%; left: var(--pos); width: 64px; margin: -0.62em 0 0 -32px; text-align: center; font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem; line-height: 1.25; color: var(--accent-ink); pointer-events: none; }
.compare .tab { position: absolute; top: 0; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 0.45rem 0.9rem; pointer-events: none; }
.compare .tab-before { left: 0; background: #14161a; color: #f4f2ee; }
.compare .tab-after { right: 0; background: var(--accent); color: var(--accent-ink); padding-right: 2rem; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare-note { margin-top: 0.9rem; font-size: 0.9rem; color: var(--text-muted); }
.compare-note b { color: var(--text-primary); }

/* Plates: screenshots in a cut-corner frame with a caption chip */
.browser-frame, .featured-img { position: relative; background: var(--bg-elevated); --ch: 22px; clip-path: var(--chamfer); overflow: hidden; display: block; min-height: 0; color: var(--text-muted); font-size: 0.9rem; }
.browser-frame img, .featured-img img { width: 100%; display: block; }
.browser-frame .bar { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 0.4rem 0.9rem 0.4rem calc(var(--ch) + 0.4rem); background: #14161a; }
.browser-frame .bar i { display: none; }
.browser-frame .bar .url { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #f4f2ee; }
.float-card { display: none; }

/* --- Trust strip --- */
.trust-strip { padding: 2rem 0; background: var(--bg-surface); }
.trust-strip .container { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.trust-strip .lead { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); }
.trust-logos { display: flex; align-items: center; gap: 3.5rem; flex-wrap: wrap; }
.trust-logos .logo { display: inline-block; height: 36px; background: currentColor; color: var(--text-secondary); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; transition: color 0.15s; }
.trust-logos .logo:hover { color: var(--accent); }
.trust-logos .logo-coleman { width: 168px; height: 45px; -webkit-mask-image: url(/img/logos/coleman.png); mask-image: url(/img/logos/coleman.png); }
.trust-logos .logo-carrycare { width: 106px; height: 47px; -webkit-mask-image: url(/img/logos/carrycare.png); mask-image: url(/img/logos/carrycare.png); }
.trust-logos .logo-ellis { width: 69px; height: 49px; -webkit-mask-image: url(/img/logos/ellis.png); mask-image: url(/img/logos/ellis.png); }
.trust-logos .logo-daybrook { width: 64px; height: 64px; -webkit-mask-image: url(/img/logos/daybrook.png); mask-image: url(/img/logos/daybrook.png); }
.trust-logos .logo-certus { display: inline-flex; align-items: baseline; gap: 0; color: var(--text-secondary); }
.trust-logos .certus-mark { width: 37px; height: 41px; margin-right: -3px; color: inherit; -webkit-mask-image: url(/img/logos/certus.png); mask-image: url(/img/logos/certus.png); }
.trust-logos .logo-certus .wordmark-text { font-size: 2.05rem; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; color: inherit; }
.trust-logos .logo-certus:hover { color: var(--accent); }
.trust-logos .wordmark-text { font-weight: 700; font-size: 1.45rem; color: var(--text-secondary); }
.trust-logos .wordmark-text:hover { color: var(--accent); }

/* --- Stats: odometer windows on a solid block --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin-top: 3rem; background: var(--pc); color: var(--accent-ink); --ch: 26px; clip-path: var(--chamfer); }
.stat { padding: 1.8rem 1.6rem 1.7rem; border-right: 2px solid rgba(0, 0, 0, 0.16); }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 600; color: var(--accent-ink); letter-spacing: -0.02em; line-height: 1; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.stat-label { font-size: 1rem; font-weight: 700; color: var(--accent-ink); }
.odo-d { display: inline-block; height: 1.25em; width: 0.82em; overflow: hidden; background: #14161a; color: #f4f2ee; text-align: center; box-shadow: inset 0 0.42em 0.3em -0.3em rgba(0, 0, 0, 0.9), inset 0 -0.42em 0.3em -0.3em rgba(0, 0, 0, 0.9); }
.odo-d > span { display: block; line-height: 1.25em; height: 12.5em; transform: translateY(calc(var(--d, 0) * -1.25em)); transition: transform 1.5s cubic-bezier(0.2, 0.85, 0.25, 1); transition-delay: var(--dl, 0ms); white-space: pre; }
.odo-c { padding: 0 0.04em; }

/* --- Panels (what used to be cards): solid, cut-corner, numbered --- */
.card-grid { display: grid; gap: 1.1rem; counter-reset: card; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: block; background: var(--bg-elevated); color: inherit; padding: 1.7rem 1.7rem 1.8rem; clip-path: var(--chamfer); counter-increment: card; transition: background 0.15s; }
.section-alt .card { background: var(--bg-elevated); }
a.card:hover { background: var(--accent); color: var(--accent-ink); }
a.card:hover h3, a.card:hover p, a.card:hover .tag { color: var(--accent-ink); }
a.card:hover .tag { background: rgba(0, 0, 0, 0.14); }
.card-icon { display: none; }
.card-grid > .card > h3:first-of-type::before { content: counter(card, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600; color: var(--pc); margin-bottom: 0.9rem; letter-spacing: 0; }
a.card:hover > h3::before { color: var(--accent-ink) !important; }
.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 1.02rem; line-height: 1.6; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.card .link-arrow { margin-top: 1.1rem; }
.tag { font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.6rem; background: var(--bg-raised); color: var(--text-secondary); }
.featured-content .tag, .section-alt .featured-content .tag { background: var(--bg-elevated); }
.tag-early, .tag-live, .tag-status { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.28rem 0.8rem; margin-bottom: 0.9rem; color: #14161a; --ch: 7px; clip-path: var(--chamfer); }
.tag-live { background: var(--success); }
.tag-early { background: #ffc233; }
.tag-status { background: var(--text-secondary); }

.check-list { display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 0.8rem; align-items: start; color: var(--text-secondary); font-size: 1.02rem; line-height: 1.5; }
.check-list svg { display: none; }
.check-list li::before { content: ''; width: 15px; height: 15px; margin-top: 0.28em; background: var(--pc); -webkit-mask: url(/img/logo/rune.svg) center / contain no-repeat; mask: url(/img/logo/rune.svg) center / contain no-repeat; }
.check-list.plain li::before { background: var(--text-muted); -webkit-mask: none; mask: none; width: 12px; height: 3px; margin-top: 0.7em; }
.card .eyebrow { color: var(--text-primary); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 1.1rem; }

/* --- Product panels: one full-colour slab per product; each slides up over the last --- */
.pp-stack { position: relative; }
.pp { position: sticky; top: var(--nav-height); min-height: calc(100vh - var(--nav-height)); background: var(--pc); color: #14161a; display: flex; align-items: center; padding: 4.5rem 0 4rem; }
.pp::before { content: ''; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 46px; background: #121319; box-shadow: inset 0 6px 0 #121319, inset 0 7px 0 color-mix(in srgb, var(--pc) 55%, transparent), inset 0 -7px 0 #121319, inset 0 -8px 0 color-mix(in srgb, var(--pc) 55%, transparent); }
.pp::after { content: ''; position: absolute; left: 0; right: 0; bottom: calc(100% + 11px); height: 22px; background: var(--pc); -webkit-mask: url(/img/logo/runes.svg) 0 50% / auto 22px repeat-x; mask: url(/img/logo/runes.svg) 0 50% / auto 22px repeat-x; -webkit-mask-position-x: var(--rack, 0px); mask-position-x: var(--rack, 0px); pointer-events: none; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 3.5rem; align-items: center; }
.pp-no { font-family: var(--font-mono); font-weight: 600; font-size: 1rem; letter-spacing: 0.04em; color: #14161a; display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.pp-no .state { background: #14161a; color: var(--pc); font-family: var(--font-sans); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.28rem 0.8rem; --ch: 7px; clip-path: var(--chamfer); }
.pp-name { font-size: clamp(3.2rem, 8vw, 7rem); line-height: 0.92; letter-spacing: -0.04em; color: #14161a; margin-bottom: 1.3rem; }
.pp p { color: #14161a; font-size: 1.2rem; line-height: 1.5; max-width: 46ch; }
.pp-facts { margin: 1.6rem 0 1.8rem; max-width: 520px; }
.pp-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1rem; padding: 0.5rem 0; border-top: 2px solid rgba(0, 0, 0, 0.2); font-size: 1rem; }
.pp-facts dt { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 0.2rem; }
.pp-facts dd { font-weight: 700; }
.pp-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.pp .btn { background: #14161a; color: #f4f2ee; }
.pp .btn:hover { background: #f4f2ee; color: #14161a; }
.pp .link-arrow { color: #14161a; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.pp-shot { position: relative; --ch: 30px; clip-path: var(--chamfer); background: #14161a; padding: 10px; }
.pp-shot img { width: 100%; display: block; }
.pp-shot .cap { position: absolute; left: 0; bottom: 0; background: #14161a; color: #f4f2ee; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 0.5rem 1rem 0.5rem 2.6rem; }

/* --- Case studies --- */
.case-card { display: flex; flex-direction: column; color: inherit; background: var(--bg-elevated); --ch: 22px; clip-path: var(--chamfer); transition: background 0.15s; }
.case-card:hover { color: inherit; background: var(--bg-raised); }
.case-card-img { aspect-ratio: 16/10; background: var(--bg-raised); overflow: hidden; }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1); }
.case-card:hover .case-card-img img { transform: scale(1.05); }
.case-card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.case-card-body .section-label { margin-bottom: 0.6rem; }
.case-card-body h3 { margin-bottom: 0.6rem; font-size: 1.7rem; }
.case-card-body p { font-size: 1rem; flex: 1; }
.case-stats { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 1.1rem 0; }
.case-stat { font-size: 0.9rem; color: var(--text-secondary); }
.case-stat strong { font-family: var(--font-mono); font-weight: 600; color: var(--accent); font-size: 1.35rem; margin-right: 0.35rem; }

/* --- Featured (two-column) --- */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.featured-content h2 { margin-bottom: 1.2rem; }
.featured-content p { margin-bottom: 1.2rem; line-height: 1.65; font-size: 1.08rem; }
.featured-content .section-label { margin-bottom: 0.8rem; margin-right: 0.8rem; }
.placeholder-shot { aspect-ratio: 16/10; width: 100%; display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(45deg, rgba(127, 127, 127, 0.14) 0 12px, transparent 12px 24px), var(--bg-elevated); }
.placeholder-shot span { display: block; }
.placeholder-shot .t { color: var(--text-secondary); font-weight: 700; }

.screenshot-gallery { display: flex; gap: 0.6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.screenshot-gallery a { display: block; width: 152px; aspect-ratio: 16/10; overflow: hidden; --ch: 10px; clip-path: var(--chamfer); opacity: 0.72; transition: opacity 0.15s, transform 0.15s; }
.screenshot-gallery a:hover { opacity: 1; transform: translateY(-3px); }
.screenshot-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.screenshot-gallery a.phone-thumb { width: 74px; aspect-ratio: 9/16; }
.gallery-hint { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.9rem; }

.swap-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; z-index: 10; border: 0; line-height: 1; color: #14161a; font-weight: 700; --ch: 11px; clip-path: var(--chamfer); }
.swap-arrow-forward { right: 14px; background: var(--accent); }
.swap-arrow-back { left: 14px; background: #f4f2ee; }
.swap-label { position: absolute; left: 0; top: 0; z-index: 5; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; background: #14161a; padding: 0.45rem 0.9rem; color: #f4f2ee; }

/* --- Process: four stations on a shaft, each marked by a gear --- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; position: relative; padding-top: 44px; }
.process-steps::before { content: ''; position: absolute; left: 0; right: 0; top: 40px; height: 8px; background: var(--border-light); }
.process-step { position: relative; background: var(--bg-elevated); padding: 3.4rem 1.6rem 1.7rem; clip-path: none; }
.section-alt .process-step { background: var(--bg-elevated); }
.process-step::before { content: ''; position: absolute; top: -44px; left: 1.3rem; width: 88px; height: 88px; background: var(--accent); -webkit-mask: url(/img/logo/sigil-small.svg) center / contain no-repeat; mask: url(/img/logo/sigil-small.svg) center / contain no-repeat; transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.2, 1); }
.process-step:hover::before { transform: rotate(144deg); }
.process-step:nth-child(even)::before { background: var(--ember); }
.process-step:nth-child(even):hover::before { transform: rotate(-144deg); }
.process-step .num { font-family: var(--font-mono); font-weight: 600; font-size: 1rem; color: var(--accent); margin-bottom: 0.5rem; }
.process-step h4 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.process-step p { font-size: 1rem; line-height: 1.55; }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.spec { background: var(--bg-elevated); padding: 1.3rem 1.4rem; clip-path: var(--chamfer); }
.spec h4 { margin-bottom: 0.3rem; }
.spec p { font-size: 0.98rem; }

/* --- FAQ --- */
.faq { max-width: 900px; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.faq details { background: var(--bg-elevated); --ch: 14px; clip-path: var(--chamfer); }
.section-alt .faq details { background: var(--bg-elevated); }
.faq details[open] { background: var(--bg-raised); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; font-weight: 700; font-size: 1.15rem; color: var(--text-primary); }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 26px; height: 26px; flex: none; background: var(--accent); -webkit-mask: url(/img/logo/rune.svg) center / contain no-repeat; mask: url(/img/logo/rune.svg) center / contain no-repeat; transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1); }
.faq details[open] summary::after { transform: rotate(180deg); background: var(--text-primary); }
.faq .answer { padding: 0 1.5rem 1.4rem; font-size: 1.04rem; line-height: 1.65; max-width: 72ch; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: start; }
.form-card { background: var(--bg-elevated); padding: 2.2rem; --ch: 26px; clip-path: var(--chamfer); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.85rem 1rem; background: var(--bg-primary); border: 2px solid transparent; border-radius: 0; color: var(--text-primary); font-family: var(--font-sans); font-size: 1rem; outline: none; }
.form-group select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 15px) 55%; background-size: 7px 7px; background-repeat: no-repeat; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 170px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-note { font-size: 0.88rem; color: var(--text-muted); margin-top: 1rem; }
.contact-info { display: flex; flex-direction: column; gap: 0.6rem; }
.contact-method { background: var(--bg-elevated); padding: 1.2rem 1.4rem; display: block; --ch: 14px; clip-path: var(--chamfer); }
.contact-method h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); margin-bottom: 0.3rem; }
.contact-method p { color: var(--text-primary); font-size: 1.25rem; font-weight: 700; }
.contact-method p.sub { color: var(--text-secondary); font-size: 0.95rem; font-weight: 400; margin-top: 0.15rem; }
.form-status { padding: 0.9rem 1rem; font-size: 0.98rem; margin-top: 1rem; display: none; background: var(--bg-primary); border-left: 8px solid; }
.form-status.success { display: block; border-color: var(--success); }
.form-status.error { display: block; border-color: var(--error); }
.form-success { padding: 2.5rem 0; }
.form-success-icon { margin-bottom: 1.25rem; display: flex; }
.form-success h2 { font-size: 1.9rem; margin-bottom: 0.75rem; }
.form-success p { color: var(--text-secondary); font-size: 1.05rem; max-width: 46ch; }

/* --- Closing block: an orange slab with a gear turning in the corner --- */
.cta-banner { padding: 3rem 0 6rem; }
.cta-box { position: relative; background: var(--accent); color: var(--accent-ink); padding: 4rem 3.5rem; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: end; overflow: hidden; --ch: 44px; clip-path: var(--chamfer); }
.cta-box::before { content: ''; position: absolute; width: 520px; height: 520px; right: -170px; top: -210px; background: rgba(0, 0, 0, 0.12); -webkit-mask: url(/img/logo/sigil-big.svg) center / contain no-repeat; mask: url(/img/logo/sigil-big.svg) center / contain no-repeat; animation: turn 60s linear infinite; }
.cta-box > * { position: relative; }
.cta-box h2 { color: var(--accent-ink); font-size: clamp(2.3rem, 4.6vw, 4.1rem); margin-bottom: 1rem; max-width: 16ch; }
.cta-box p { color: var(--accent-ink); margin: 0 0 2rem; max-width: 50ch; font-size: 1.2rem; }
.cta-box .hero-ctas { margin-bottom: 0; }
.cta-box .btn { background: #14161a; color: #f4f2ee; }
.cta-box .btn:hover { background: #f4f2ee; color: #14161a; }
.cta-box .btn-outline { background: rgba(0, 0, 0, 0.14); color: #14161a; }
.cta-direct div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 0.75rem 0; border-top: 2px solid rgba(0, 0, 0, 0.22); }
.cta-direct dt { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent-ink); }
.cta-direct dd { font-size: 1.4rem; font-weight: 700; color: var(--accent-ink); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cta-direct a { color: var(--accent-ink); }
.cta-direct a:hover { text-decoration: underline; text-underline-offset: 5px; color: var(--accent-ink); }
@keyframes turn { to { transform: rotate(360deg); } }

/* --- Footer --- */
.footer { background: var(--bg-surface); padding: 4rem 0 2.2rem; position: relative; }
.footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: linear-gradient(90deg, var(--ember) 0 2px, transparent 2px) 0 0 / 60px 12px repeat-x, linear-gradient(90deg, var(--border-light) 0 1px, transparent 1px) 0 0 / 12px 6px repeat-x; border-top: 2px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.98rem; margin-top: 1rem; max-width: 34ch; line-height: 1.6; }
.footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-primary); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a, .footer-col li { color: var(--text-secondary); font-size: 0.98rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 2px solid var(--border); padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* --- Page header (inner pages): a big gear turns behind the title --- */
.page-header { padding: calc(var(--nav-height) + 5rem) 0 4rem; position: relative; overflow: clip; }
.page-header::before { content: ''; position: absolute; width: 620px; height: 620px; right: -160px; top: -40px; background: var(--bg-elevated); -webkit-mask: url(/img/logo/sigil-big.svg) center / contain no-repeat; mask: url(/img/logo/sigil-big.svg) center / contain no-repeat; transform: rotate(calc(var(--turn, 0) * 1deg)); }
.page-header .container { position: relative; }
.page-header h1 { margin-bottom: 1.2rem; max-width: 17ch; }
.page-header p { font-size: 1.22rem; max-width: 58ch; line-height: 1.6; }
.page-header .note { font-size: 0.9rem; color: var(--text-muted); margin-top: 1.25rem; max-width: 62ch; }
.subnav { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2rem; }
.subnav a { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); background: var(--bg-elevated); padding: 0.55rem 1.1rem; --ch: 9px; clip-path: var(--chamfer); }
.subnav a:hover { background: var(--accent); color: var(--accent-ink); }

/* Entrances: panels slide in from the side they are cut on, once */
.fade-in { opacity: 0; transform: translateY(26px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1); transition-delay: var(--stagger, 0ms); }
.fade-in.visible { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; background: rgba(8, 9, 12, 0.95); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.15s; cursor: zoom-out; }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; }

.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 6rem 1.75rem; }
.error-code { font-family: var(--font-mono); font-size: clamp(5rem, 16vw, 11rem); font-weight: 600; color: var(--accent); line-height: 0.9; margin-bottom: 1rem; letter-spacing: -0.05em; }

.prose { max-width: 800px; }
.prose h2 { font-size: 1.6rem; margin: 2.6rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { line-height: 1.7; margin-bottom: 0.9rem; font-size: 1.04rem; }
.prose ul { padding-left: 1.2rem; list-style: square; }
.prose li { color: var(--text-secondary); margin-bottom: 0.4rem; }
.prose li::marker { color: var(--accent); }
.prose .updated { font-size: 0.88rem; color: var(--text-muted); margin-top: 2.5rem; }

/* --- Before / now --- */
.shift-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.shift { background: var(--bg-elevated); padding: 1.7rem 1.8rem 1.5rem; clip-path: var(--chamfer); }
.shift h3 { margin-bottom: 1.1rem; font-size: 1.6rem; }
.shift .row { display: grid; grid-template-columns: 84px 1fr; gap: 1.1rem; align-items: start; padding: 0.8rem 0; }
.shift .row + .row { border-top: 2px solid var(--border); }
.shift .k { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.28rem 0; text-align: center; margin-top: 0.15rem; --ch: 7px; clip-path: var(--chamfer); }
.shift .row.old .k { background: var(--bg-raised); color: var(--text-muted); }
.shift .row.new .k { background: var(--accent); color: var(--accent-ink); }
.shift .row p { font-size: 1.02rem; line-height: 1.5; margin: 0; }
.shift .row.old p { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--border-light); }
.shift .row.new p { color: var(--text-primary); }

.now-have { margin-top: 1.5rem; background: var(--pc); padding: 1.6rem 1.8rem 1.7rem; --ch: 22px; clip-path: var(--chamfer); }
.now-have .eyebrow { color: #14161a; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 1rem; }
.now-have ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem 1.75rem; }
.now-have li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 0.7rem; align-items: start; font-size: 1rem; font-weight: 700; color: #14161a; line-height: 1.4; }
.now-have li svg { display: none; }
.now-have li::before { content: ''; width: 14px; height: 14px; margin-top: 0.25em; background: #14161a; -webkit-mask: url(/img/logo/rune.svg) center / contain no-repeat; mask: url(/img/logo/rune.svg) center / contain no-repeat; }

/* --- Product pages --- */
.product-hero .hero-subtitle { max-width: 54ch; }
.parts .part { display: flex; flex-direction: column; }
.parts .part h3 { margin-top: 1.2rem; }
.parts .part p { margin-bottom: 1rem; }
.parts .part .check-list { margin-top: auto; }
.part-img { overflow: hidden; background: var(--bg-raised); aspect-ratio: 16/10; --ch: 14px; clip-path: var(--chamfer); }
.part-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.part-img.phone { display: flex; justify-content: center; align-items: flex-start; }
.part-img.phone img { width: auto; height: 100%; object-fit: contain; object-position: top; }

/* ============ Xardas: structure and detail on top of the base ============ */

/* Engraved capitals for every label, numeral and the wordmark */
.nav-logo .word { font-family: var(--font-display); font-weight: 700; font-size: 1.42rem; letter-spacing: 0.16em; }
.nav-logo { gap: 0.8rem; }
.nav-logo .mark, .nav-logo .mark img { width: 34px; height: 34px; }
.nav-logo:hover .mark { transform: rotate(90deg); }
.section-label, .trust-strip .lead, .pp-no, .footer h4, .compare .tab, .browser-frame .bar .url, .pp-shot .cap, .swap-label,
.card .eyebrow, .now-have .eyebrow, .contact-method h4, .cta-direct dt, .pp-facts dt, .shift .k, .tag-early, .tag-live, .tag-status, .pp-no .state {
  font-family: var(--font-display); letter-spacing: 0.12em; }
.section-label { font-size: 0.9rem; color: var(--ember); }
.section-label::before { background: var(--pc); width: 18px; height: 18px; }
.p-milkware .section-label, .p-ferrystone .section-label, .p-oculory .section-label, .p-conclave .section-label { color: var(--pc); }
.card-grid > .card > h3:first-of-type::before, .process-step .num { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ember); letter-spacing: 0.08em; }

/* Plaques: buttons and chips are square engraved plates, not cut corners */
.btn, .nav-cta, .theme-toggle, .nav-toggle, .pill, .subnav a, .shift .k, .swap-arrow, .pp-no .state, .tag-early, .tag-live, .tag-status, .screenshot-gallery a { clip-path: none; }
.btn { box-shadow: inset 0 0 0 3px var(--text-primary), inset 0 0 0 4px var(--bg-primary); letter-spacing: 0.01em; }
.btn:hover { box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4px var(--accent-ink); }
.btn-primary { box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4px var(--accent-ink); }
.btn-primary:hover { box-shadow: inset 0 0 0 3px var(--text-primary), inset 0 0 0 4px var(--bg-primary); }
.btn-outline { box-shadow: inset 0 0 0 1px var(--border-light), inset 0 0 0 3px var(--bg-raised), inset 0 0 0 4px var(--border); }
.btn-outline:hover { box-shadow: none; }
.nav-cta { box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4px var(--accent-ink); }
.pp .btn, .cta-box .btn { box-shadow: inset 0 0 0 3px #14161a, inset 0 0 0 4px rgba(255, 255, 255, 0.35); }
.pp .btn:hover, .cta-box .btn:hover { box-shadow: none; }
.cta-box .btn-outline { box-shadow: inset 0 0 0 2px #14161a; }
.pill { border-left: 4px solid var(--success); padding-left: 0.9rem; }
.pill .dot { display: none; }
.theme-toggle, .nav-toggle { box-shadow: inset 0 0 0 1px var(--border-light); }
.subnav a { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-links a.active::before { height: 3px; background: var(--ember); }

/* Stonework: panels carry a coloured lintel and a ruled inner line */
.card, .shift, .spec, .process-step, .contact-method, .form-card, .faq details, .case-card { border-top: 4px solid var(--pc); }
.card::after, .shift::after, .form-card::after { content: ''; position: absolute; inset: 9px 9px 9px 9px; border: 1px solid var(--border); pointer-events: none; clip-path: var(--chamfer); }
.shift, .form-card { position: relative; }
a.card:hover::after { border-color: rgba(0, 0, 0, 0.25); }
.card-grid > .card:nth-child(3n+2), .process-step:nth-child(even), .faq details:nth-child(even) { border-top-color: var(--ember); }
.spec:nth-child(3n+2), .shift:nth-child(even) { border-top-color: var(--ember); }
.case-card { border-top-color: var(--accent); }
.faq details[open] { border-top-color: var(--success); }
.faq summary::after { background: var(--ember); }
.faq details[open] summary::after { transform: rotate(45deg); }
.process-steps::before { height: 2px; background: var(--border-light); top: 43px; }
.process-step:hover::before { transform: rotate(90deg); }
.process-step:nth-child(even):hover::before { transform: rotate(-90deg); }
.stats { box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.18); }
.shift .row.new .k { background: var(--accent); color: var(--accent-ink); }
.case-stat strong { font-family: var(--font-display); color: var(--ember); }
.error-code { font-family: var(--font-display); }
.tag { box-shadow: inset 3px 0 0 var(--pc); padding-left: 0.75rem; }

/* Hero: headline across the top, then the comparison beside an index of products */
.hero { padding: calc(var(--nav-height) + 4.5rem) 0 4.5rem; position: relative; overflow: clip; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3.5rem; align-items: end; margin-bottom: 1.8rem; }
.hero h1 { font-size: clamp(2.7rem, 5.2vw, 4.9rem); margin-bottom: 0; }
.hero h1 span { color: var(--pc); box-shadow: inset 0 -0.14em 0 var(--bg-primary), inset 0 -0.2em 0 var(--ember); }
.hero-subtitle { font-size: 1.12rem; margin-bottom: 1.6rem; max-width: 58ch; }
.hero-top .hero-ctas { margin-bottom: 0; }
.hero-proof { margin-bottom: 2.4rem; padding: 0.95rem 1.3rem; background: var(--bg-surface); border-left: 4px solid var(--ember); gap: 0.6rem 2.2rem; }
.hero-proof li::before { background: var(--ember); }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.4rem; align-items: stretch; }
.hero-index { display: flex; flex-direction: column; gap: 0.5rem; background: var(--bg-surface); padding: 1.3rem 1.3rem 1.2rem; border-top: 4px solid var(--accent); }
.hero-index .section-label { margin-bottom: 0.4rem; }
.hero-index .link-arrow { margin-top: auto; padding-top: 0.6rem; }
.hi { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "no name state" "no for for"; column-gap: 0.9rem; row-gap: 0.1rem; align-items: baseline; background: var(--pc); color: #14161a; padding: 0.75rem 1rem 0.8rem; --ch: 12px; clip-path: var(--chamfer); transition: transform 0.15s, filter 0.15s; }
.hi:hover { color: #14161a; transform: translateX(6px); filter: brightness(1.08); }
.hi-no { grid-area: no; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; align-self: center; }
.hi-name { grid-area: name; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.hi-state { grid-area: state; font-family: var(--font-display); font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; background: #14161a; color: var(--pc); padding: 0.22rem 0.55rem; margin-right: 0.6rem; }
.hi-for { grid-area: for; font-weight: 700; font-size: 0.92rem; }
.compare { --ch: 30px; }
.compare .rule { background: var(--ember); width: 3px; }
.compare .tab-after { padding-right: 2.6rem; }
.compare-note { margin-top: 0.8rem; }

/* Closing block and page headers: the great circle turns behind them */
.cta-box::before { width: 640px; height: 640px; right: -200px; top: -250px; background: rgba(0, 0, 0, 0.2); }
.cta-box { box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.16); }
.page-header::before { width: 760px; height: 760px; right: -230px; top: -120px; background: var(--border); transform: rotate(calc(var(--turn, 0) * 0.6deg)); }
.footer { padding-top: 4.6rem; }
.footer-bottom { border-top: 1px solid var(--border-light); }
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-logos .logo:hover, .trust-logos .logo-certus:hover { color: var(--ember); }

/* Inner pages: the title and intro sit beside an index of the page */
.page-header { padding: calc(var(--nav-height) + 4.5rem) 0 4rem; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3.5rem; align-items: end; }
.ph-main h1 { max-width: 15ch; }
.ph-index { position: relative; }
.hi-plain { background: var(--bg-elevated); color: var(--text-primary); border-left: 6px solid var(--accent); grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "no name" "no for"; padding: 0.7rem 1rem 0.75rem 0.9rem; }
.hi-plain:nth-of-type(3n+2) { border-left-color: var(--ember); }
.hi-plain:nth-of-type(3n) { border-left-color: var(--success); }
a.hi-plain:hover { color: var(--text-primary); background: var(--bg-raised); filter: none; }
.hi-plain .hi-no { color: var(--ember); }
.hi-plain .hi-name { font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.2; }
.hi-plain .hi-for { color: var(--text-muted); font-size: 0.85rem; }
.product-hero .hero-index { border-top-color: var(--pc); }
.product-hero .hero-visual { align-self: start; }
.hero-bottom > .hero-visual.fade-in { opacity: 1; transform: none; }

/* Red accent: anything sitting on a --pc fill takes --pc-ink; red used as text takes --accent-text */
.stats, .stat-value, .stat-label { color: var(--pc-ink); }
.now-have .eyebrow, .now-have li { color: var(--pc-ink); }
.now-have li::before { background: var(--pc-ink); }
.cta-box .btn-outline { color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--accent-ink); background: rgba(0, 0, 0, 0.18); }
.hero h1 span { color: var(--accent-text); }
.p-milkware .hero h1 span, .p-ferrystone .hero h1 span, .p-oculory .hero h1 span, .p-conclave .hero h1 span, .hero.p-milkware h1 span, .hero.p-ferrystone h1 span, .hero.p-oculory h1 span, .hero.p-conclave h1 span { color: var(--pc); }
.faq summary:hover, .footer-col a:hover, .footer-links a:hover, .error-code, .link-arrow { color: var(--accent-text); }
.pp .link-arrow { color: #14161a; }
.prose li::marker { color: var(--accent-text); }
.section-label::before { background: var(--accent-text); }
.p-milkware .section-label::before, .p-ferrystone .section-label::before, .p-oculory .section-label::before, .p-conclave .section-label::before { background: var(--pc); }
.sigil-b { fill: var(--accent); stroke: var(--accent); opacity: 0.75; }

/* small spacing fixes found in the phone review */
.featured-content .card-tags { margin-bottom: 1.1rem; }

/* form text */
.form-group textarea { line-height: 1.45; }

/* Product slabs stack like cue cards at every width. A slab taller than the screen gets a negative
   `top` from main.js, so it scrolls to its last line first and only then holds while the next covers it. */
.pp { min-height: calc(100svh - var(--nav-height)); }

/* The slider handle is the mark itself (placeholder until the real logo lands); it turns as it is dragged */
.compare .knob { background: #1a1b24 url(/img/logo/xardas-mark-placeholder.svg) center / 100% 100% no-repeat; box-shadow: 0 0 0 3px var(--bg-primary), 0 0 0 5px var(--ember); transform: rotate(calc((var(--posn, 50) - 50) * 3.6deg)); }
.compare .knob-arrows { display: none; }

/* Each band spells "Xardas . <product>" in runes (tools/sigils.py) */
.p-milkware.pp::after { -webkit-mask-image: url(/img/logo/runes-milkware.svg); mask-image: url(/img/logo/runes-milkware.svg); }
.p-ferrystone.pp::after { -webkit-mask-image: url(/img/logo/runes-ferrystone.svg); mask-image: url(/img/logo/runes-ferrystone.svg); }
.p-oculory.pp::after { -webkit-mask-image: url(/img/logo/runes-oculory.svg); mask-image: url(/img/logo/runes-oculory.svg); }
.p-conclave.pp::after { -webkit-mask-image: url(/img/logo/runes-conclave.svg); mask-image: url(/img/logo/runes-conclave.svg); }

/* ?static view: no entrances, no full-height sticky panels */
html.static .fade-in { opacity: 1; transform: none; transition: none; }
html.static .pp { position: relative; top: 0; min-height: 0; }

/* --- Responsive --- */
@media (max-width: 1100px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 4rem; }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-top, .hero-bottom, .ph-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-top { align-items: start; }
  .section-head { grid-template-columns: 1fr; row-gap: 1rem; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .now-have ul { grid-template-columns: 1fr 1fr; }
  .pp-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  html { font-size: 16px; }
  section { padding: 4rem 0; }
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; top: calc(var(--nav-height) + 12px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-surface); padding: 0.6rem 1.75rem 1.4rem; display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { display: block; }
  .nav-links a { display: block; padding: 0.85rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--border); }
  .nav-links { border-bottom: 2px solid var(--accent); max-height: calc(100vh - var(--nav-height) - 12px); overflow-y: auto; }
  .nav-links a.active::before { display: none; }
  .nav-cta { margin: 1rem 0 0; text-align: center; padding: 0.95rem 1.2rem !important; border-bottom: 0 !important; }
  .theme-toggle .theme-label { display: none; }
  .hero { padding-top: calc(var(--nav-height) + 3rem); }
  .card-grid-2, .card-grid-3, .shift-grid { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; gap: 2.2rem; }
  .featured.reverse .featured-img { order: -1; }
  .contact-grid, .form-row { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .trust-strip .container { gap: 1.25rem; }
  .page-header::before { width: 440px; height: 440px; right: -230px; top: -70px; opacity: 0.55; }
  .cta-direct div { grid-template-columns: 1fr; gap: 0.1rem; }
  .cta-direct dd { font-size: 1.15rem; overflow-wrap: normal; }
  .pp-shot .cap { position: static; display: block; padding: 0.5rem 0.4rem 0.1rem; }
  .compare .tab { font-size: 0.66rem; letter-spacing: 0.08em; padding: 0.4rem 0.7rem; }
  .compare .tab-after { top: auto; bottom: 0; padding-right: 0.7rem; }
  .pp::before { height: 38px; }
  .pp::after { bottom: calc(100% + 9px); height: 18px; -webkit-mask-size: auto 18px; mask-size: auto 18px; }
  .trust-logos { gap: 1.5rem; }
  .trust-logos .logo { height: 28px; }
  .trust-logos .logo-coleman { width: 104px; }
  .trust-logos .logo-daybrook { width: 52px; height: 52px; }
  .trust-logos .certus-mark { width: 29px; height: 32px; margin-right: -2px; }
  .trust-logos .logo-certus .wordmark-text { font-size: 1.6rem; }
  .cta-box { padding: 2.6rem 1.6rem; }
  .sigil-a { width: 560px; height: 560px; right: -260px; top: -150px; }
  .sigil-b { display: none; }
  .pp { padding: 3.2rem 0 3rem; }
}
@media (max-width: 520px) {
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .now-have ul { grid-template-columns: 1fr; }
  .compare .knob { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .hi { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "no name" "no for" "no state"; }
  .hi-state { justify-self: start; margin: 0.35rem 0 0; }
  .hi-name { overflow-wrap: anywhere; }
  .compare .knob-arrows { width: 48px; margin-left: -24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .cta-box::before { animation: none; }
  .odo-d > span { transition: none; }
  .btn, .nav-logo .mark, .faq summary::after, .process-step::before { transition: none; }
}
@media (max-width: 1040px) and (min-width: 861px) {
  .nav-links a { padding: 0.5rem 0.55rem; font-size: 0.9rem; }
  .theme-toggle .theme-label { display: none; }
}
