/* =========================================================================
   Bowen & Co: design system
   Self-hosted fonts, no trackers. Motion respects prefers-reduced-motion.
   ========================================================================= */

@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2-variations"); font-weight: 400 700; font-style: normal; font-display: swap; }
/* the logo ampersand: Caslon italic, only for the "&" character */
@font-face { font-family: "Bowen Amp"; src: url("/fonts/caslon-italic.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: block; unicode-range: U+0026; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #0a0a09;
  --bg-2: #0f0f0e;
  --panel: #141412;
  --panel-2: #1a1917;
  --line: rgba(239, 232, 220, .085);
  --line-2: rgba(239, 232, 220, .16);
  --cream: #efe8dc;
  --cream-2: #bfb7aa;
  --cream-3: #8b8479;
  --brass: #dcA46a;
  --brass-2: #f0c592;
  --copper: #c07a3f;
  --copper-deep: #7d4520;
  --glow: rgba(220, 164, 106, .55);
  --radius: 18px;
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* film grain over everything, very subtle */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-2); }
::selection { background: var(--brass); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 200; background: var(--cream); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 10px; }
.placeholder { background: #ffe9a8; color: #5c4200; padding: 0 .25em; border-radius: 4px; font-weight: 600; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.muted { color: var(--cream-2); }

/* ---------- Brand / logo ---------- */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--cream); line-height: 1; }
.brand:hover { color: var(--cream); }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.85rem; letter-spacing: .005em; white-space: nowrap; display: inline-flex; align-items: baseline; }
.amp {
  font-family: "Bowen Amp", var(--display); font-style: normal; font-weight: 400;
  font-size: 1em; line-height: 1; margin: 0 .1em 0 .12em; display: inline-block; vertical-align: baseline;
  background: linear-gradient(160deg, var(--brass-2) 10%, var(--brass) 45%, var(--copper) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .04em;
}
.brand-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--cream-3); white-space: nowrap; }
.brand-sub::before { content: ""; width: 14px; height: 1px; background: var(--brass); opacity: .7; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: transform .5s var(--ease), background .4s ease, border-color .4s ease; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(10, 10, 9, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(calc(-100% - 50px)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--cream-2); text-decoration: none; font-size: .93rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:not(.btn):hover { color: var(--cream); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; isolation: isolate;
  font: 600 .98rem/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transform: translate(var(--bx), var(--by)); transition: transform .5s var(--ease), color .3s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-primary { color: #1b1209; background: linear-gradient(135deg, var(--brass-2), var(--brass) 45%, var(--copper)); box-shadow: 0 10px 30px -10px rgba(220, 164, 106, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: linear-gradient(135deg, #fff3e0, var(--brass-2)); opacity: 0; transition: opacity .4s ease; }
.btn-primary:hover { color: #1b1209; }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { color: var(--cream); background: rgba(239, 232, 220, .04); }
.btn-ghost:hover { color: var(--cream); background: rgba(239, 232, 220, .08); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* moving "beam" border: a conic gradient spun around the edge */
.beam { position: relative; }
.beam::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), var(--line-2) 0deg, var(--line-2) 250deg, var(--brass-2) 300deg, var(--line-2) 340deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-angle 4.5s linear infinite;
}
@keyframes spin-angle { to { --angle: 360deg; } }

/* ---------- Glow cards: border + wash follow the mouse ---------- */
.glow {
  --mx: -500px; --my: -500px;
  position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border-radius: var(--radius); isolation: isolate;
}
.glow::before { /* border that lights up near the cursor */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background:
    radial-gradient(360px circle at var(--mx) var(--my), rgba(240, 197, 146, .9), rgba(220, 164, 106, .25) 35%, transparent 60%),
    linear-gradient(var(--line-2), var(--line-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glow::after { /* soft wash inside */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(220, 164, 106, .09), transparent 45%);
  opacity: 0; transition: opacity .5s ease;
}
.glow:hover::after { opacity: 1; }

/* ---------- Reveal animations (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-split] { visibility: hidden; }
/* generous bottom padding so descenders (the tail of y, g, p) are never clipped by the mask */
.split-line { display: inline-block; vertical-align: top; overflow: hidden; padding: 0 .12em .3em 0; margin: 0 -.12em -.3em 0; }
.split-word { display: inline-block; will-change: transform; }
.grad-text, .grad-text .split-word {
  background-image: linear-gradient(170deg, var(--brass-2), var(--brass) 50%, var(--copper));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.home [data-reveal].is-in { opacity: 1; transform: none; }

/* spinning highlight around an element's edge (used where .glow already uses ::before/::after) */
.beam-ring {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 230deg, rgba(240, 197, 146, .9) 300deg, transparent 345deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-angle 5s linear infinite;
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; min-height: max(100svh, 720px); display: flex; align-items: center; overflow: hidden; }
.hero::before { /* warm halo behind the board */
  content: ""; position: absolute; width: 1100px; height: 1100px; right: -260px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(220, 164, 106, .13), rgba(220, 164, 106, .04) 55%, transparent);
  pointer-events: none;
}
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 65% 50%, #000 20%, transparent 75%);
}
.hero-canvas { position: absolute; top: 0; right: -4vw; width: 64vw; height: 100%; }
.hero-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(10, 10, 9, .92) 0%, rgba(10, 10, 9, .75) 30%, rgba(10, 10, 9, 0) 52%); }
.hero-canvas canvas { width: 100% !important; height: 100% !important; outline: none; }
.hero-content { position: relative; z-index: 3; padding-top: var(--header-h); max-width: 640px; }
.hero .mono-label { display: inline-flex; align-items: center; gap: 12px; color: var(--cream-2); margin-bottom: 28px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0 var(--glow); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(220, 164, 106, .55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(220, 164, 106, 0); } }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(4rem, 9.6vw, 9.2rem); line-height: .86; letter-spacing: -.02em; margin-bottom: 30px; }
.hero h1 em { font-style: italic; font-weight: 500; }
/* the canvas has its own backdrop, so fade its edges into the page */
.hero-canvas {
  -webkit-mask-image: radial-gradient(ellipse 58% 60% at 52% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 60% at 52% 50%, #000 62%, transparent 100%);
}
/* scroll story captions */
.hero-story { position: absolute; left: 0; right: 0; bottom: 8vh; z-index: 3; pointer-events: none; }
.story-wrap { position: relative; height: 210px; }
.story { position: absolute; left: 28px; right: 28px; bottom: 0; max-width: 470px; opacity: 0; transform: translateY(26px); transition: opacity .2s ease, transform .4s ease; }
.story.is-on { opacity: 1; transform: none; transition: opacity .6s ease .18s, transform 1s var(--ease) .12s; }
.story .mono { color: var(--brass); display: block; margin-bottom: 14px; }
.story-title { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: .98; margin: 0 0 14px; }
.story-title em { font-style: italic; font-weight: 500; color: var(--brass); }
.story-text { color: var(--cream-2); font-size: 1.05rem; max-width: 26em; margin: 0; }
.anno.is-focus .anno-text { border-color: rgba(240, 197, 146, .7); background: rgba(38, 27, 16, .88); color: var(--brass-2); }
.anno.is-focus .anno-dot { background: var(--brass-2); box-shadow: 0 0 0 5px rgba(220, 164, 106, .18), 0 0 24px var(--glow); }
.anno { transition: opacity .35s ease; }
.hero .lede { font-size: 1.18rem; color: var(--cream-2); max-width: 30em; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3; }
.hero-foot .wrap { display: flex; justify-content: space-between; align-items: end; gap: 20px; color: var(--cream-3); }
.hero-specs { display: flex; gap: 34px; }
.hero-specs span { display: flex; align-items: center; gap: 10px; }
.hero-specs span::before { content: ""; width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg); }
.scroll-cue { display: flex; align-items: center; gap: 14px; }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--brass); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* labels pinned to parts of the 3D board */
.anno { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; opacity: 0; display: flex; align-items: center; gap: 0; will-change: transform, opacity; }
.anno-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--brass-2); background: rgba(10, 10, 9, .6); box-shadow: 0 0 14px var(--glow); flex: none; transform: translateX(-50%); }
.anno-line { width: 46px; height: 1px; background: linear-gradient(90deg, var(--brass-2), rgba(240, 197, 146, .2)); }
.anno-text { padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(10, 10, 9, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--cream); white-space: nowrap; font-size: .64rem; }
.anno-text b { color: var(--brass-2); font-weight: 500; margin-right: 6px; }
.anno.left { flex-direction: row-reverse; }
.anno.left .anno-dot { transform: translateX(50%); }
.anno.left .anno-line { background: linear-gradient(270deg, var(--brass-2), rgba(240, 197, 146, .2)); }

/* ---------- Marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item { font-family: var(--display); font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 600; white-space: nowrap; padding: 0 34px; color: var(--cream); }
.marquee-item i { font-style: italic; font-weight: 500; color: var(--brass); }
.marquee-star { width: 16px; height: 16px; color: var(--brass); flex: none; animation: rot 8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 140px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 70px; }
.section-head .mono { color: var(--brass); display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.section-head .mono::after { content: ""; width: 48px; height: 1px; background: var(--brass); opacity: .6; }
.section-head h2, .h2 { font-family: var(--display); font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .95; letter-spacing: -.015em; }
.section-head h2 em, .h2 em { font-style: italic; font-weight: 500; color: var(--brass); }
.section-head p { color: var(--cream-2); font-size: 1.08rem; max-width: 32em; margin: 0; justify-self: end; }

/* ---------- Services: sticky 3D viewer + scrolling list ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.svc-list { counter-reset: svc; }
.svc-item { min-height: 72vh; padding: 8vh 0; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); opacity: .32; transition: opacity .6s var(--ease); }
.svc-item:first-child { border-top: 0; padding-top: 0; min-height: 62vh; }
.svc-item.is-active { opacity: 1; }
.svc-item .mono { color: var(--brass); margin-bottom: 18px; }
.svc-item h3 { font-family: var(--display); font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1; margin-bottom: 18px; }
.svc-item > p { color: var(--cream-2); max-width: 30em; margin-bottom: 28px; }
.price-list { list-style: none; margin: 0; padding: 0; max-width: 520px; }
.price-list li { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-size: .97rem; }
.price-list li span:first-child { color: var(--cream); }
.price-list li i { flex: 1; }
.price-list li span:last-child { font-family: var(--mono); font-size: .86rem; color: var(--brass-2); white-space: nowrap; }
.svc-stage { position: sticky; top: calc(var(--header-h) + 4vh); height: calc(100vh - var(--header-h) - 8vh); min-height: 460px; }
.stage-card { height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.stage-top, .stage-bottom { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; color: var(--cream-3); }
.stage-top b { color: var(--cream); font-weight: 500; }
.stage-canvas { position: relative; flex: 1; min-height: 0; touch-action: pan-y; cursor: grab; }
.stage-canvas:active { cursor: grabbing; }
.stage-canvas canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stage-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(239, 232, 220, .12) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
}
.stage-ring { position: absolute; left: 50%; top: 52%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(220, 164, 106, .22); pointer-events: none; animation: rot 60s linear infinite; }
.stage-ring::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px solid rgba(239, 232, 220, .05); }
.stage-index { font-family: var(--display); font-style: italic; font-size: 1.4rem; color: var(--brass); }
.svc-note { margin-top: 90px; padding: 28px 32px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.svc-note svg { width: 34px; height: 34px; color: var(--brass); }
.svc-note p { margin: 0; color: var(--cream-2); }
.svc-note strong { color: var(--cream); font-weight: 600; }

/* ---------- Process: a copper trace that draws as you scroll ---------- */
.process { position: relative; }
.process-trace { position: absolute; left: 0; right: 0; top: 46px; height: 2px; pointer-events: none; }
.process-trace svg { width: 100%; height: 40px; overflow: visible; transform: translateY(-19px); }
.trace-bg { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 6; }
.trace-fg { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linecap: round; }
.trace-dot { fill: #fff3e0; opacity: 0; }
.trace-halo { fill: rgba(240, 197, 146, .25); opacity: 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { padding: 0 6px; }
.step-node { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 34px; background: var(--bg); }
.step-node::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .6s ease, box-shadow .6s ease; }
.step-node span { font-family: var(--display); font-size: 2.1rem; font-style: italic; color: var(--cream-3); transition: color .6s ease; }
.step.is-lit .step-node::before { border-color: var(--brass); box-shadow: 0 0 0 6px rgba(220, 164, 106, .08), 0 0 40px rgba(220, 164, 106, .3); }
.step.is-lit .step-node span { color: var(--brass-2); }
.step h3 { font-family: var(--display); font-size: 2rem; line-height: 1.05; margin-bottom: 12px; }
.step p { color: var(--cream-2); margin: 0; max-width: 24em; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(240px, auto); gap: 18px; }
.tile { padding: 32px; overflow: hidden; display: flex; flex-direction: column; }
.tile h3 { font-family: var(--display); font-size: 2rem; line-height: 1.05; margin-bottom: 10px; }
.tile p { color: var(--cream-2); margin: 0; }
.tile .mono { color: var(--brass); margin-bottom: auto; padding-bottom: 26px; }
.t-board { grid-column: span 4; grid-row: span 2; }
.t-warranty, .t-nofix { grid-column: span 2; }
.t-data, .t-local, .t-honest { grid-column: span 2; }
.big-num { font-family: var(--display); font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: .85; font-weight: 600; letter-spacing: -.03em; margin-top: auto; background: linear-gradient(170deg, var(--cream), var(--cream-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-num small { font-size: .32em; font-style: italic; font-weight: 500; letter-spacing: 0; margin-left: .15em; color: var(--brass); -webkit-text-fill-color: var(--brass); }
.scope { position: relative; flex: 1; min-height: 260px; margin: 6px -8px 26px; }
.scope svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope .scan { animation: scan 3.6s var(--ease) infinite alternate; }
@keyframes scan { from { transform: translateY(-80px); } to { transform: translateY(80px); } }
.scope .reticle { transform-origin: 50% 50%; transform-box: fill-box; animation: rot 14s linear infinite; }
.radar { position: relative; height: 120px; margin-bottom: 20px; }
.radar i { position: absolute; left: 30px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--brass); transform: translate(-50%, -50%); box-shadow: 0 0 18px var(--glow); }
.radar i::before, .radar i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--brass); transform: translate(-50%, -50%); animation: radar 3s var(--ease) infinite; }
.radar i::after { animation-delay: 1.5s; }
@keyframes radar { from { width: 12px; height: 12px; opacity: .9; } to { width: 220px; height: 220px; opacity: 0; } }
.radar span { position: absolute; left: 54px; top: 50%; transform: translateY(-50%); color: var(--cream); }
.lock-anim { width: 64px; height: 64px; color: var(--brass); margin-bottom: 18px; }
.lock-anim .shackle { transform-box: fill-box; transform-origin: 70% 100%; animation: shackle 3.2s var(--ease) infinite; }
@keyframes shackle { 0%, 35% { transform: translateY(-5px) rotate(0); } 45%, 100% { transform: translateY(0); } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .section-head { display: block; margin: 0; position: sticky; top: calc(var(--header-h) + 40px); }
.faq-wrap .section-head p { margin-top: 24px; }
.faq details { margin-bottom: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 24px 64px 24px 28px; font-size: 1.08rem; font-weight: 600; position: relative; z-index: 3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(var(--brass), var(--brass)) center / 10px 1.5px no-repeat, linear-gradient(var(--brass), var(--brass)) center / 1.5px 10px no-repeat; transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .answer { overflow: hidden; color: var(--cream-2); position: relative; z-index: 3; }
.faq .answer-inner { padding: 0 28px 24px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; padding: 64px; border-radius: 28px; overflow: hidden; }
.contact::before { border-radius: 28px; }
.contact-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(600px circle at 85% 20%, rgba(220, 164, 106, .14), transparent 60%); }
.contact h2 { font-family: var(--display); font-size: clamp(3rem, 6vw, 5.2rem); line-height: .92; margin-bottom: 22px; }
.contact h2 em { font-style: italic; font-weight: 500; color: var(--brass); }
.contact p { color: var(--cream-2); max-width: 28em; }
.contact .mono { display: block; color: var(--brass); margin-bottom: 20px; }
.contact-copy { position: relative; z-index: 3; }
.doc h1 em, .notfound h1 em { font-style: italic; font-weight: 500; color: var(--brass); }
.notfound .mono { color: var(--brass); }
.contact-actions { display: grid; gap: 12px; position: relative; z-index: 3; }
.contact-actions .btn { justify-content: flex-start; padding: 18px 24px; border-radius: 16px; }
.contact-actions .btn span { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.contact-actions .btn small { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; opacity: .75; }
.contact-actions .btn svg.arrow { margin-left: auto; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 110px 0 36px; border-top: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 70px; }
.footer-grid p { color: var(--cream-2); max-width: 26em; margin-top: 18px; }
.site-footer h4 { margin: 0 0 16px; color: var(--brass); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--cream-2); text-decoration: none; }
.site-footer li a:hover { color: var(--cream); }
.footer-mark { font-family: var(--display); font-weight: 600; font-size: clamp(4.5rem, 17.5vw, 17rem); line-height: .8; letter-spacing: -.03em; white-space: nowrap; text-align: center; margin: 0 -2vw 40px;
  background: linear-gradient(180deg, rgba(239, 232, 220, .16), rgba(239, 232, 220, .02) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-mark .amp { font-size: 1em; transform: none; margin: 0 .04em; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--cream-3); font-size: .82rem; }
.legal p { margin: 0; max-width: 70em; }
.legal:first-child { border-top: 0; padding-top: 0; }

/* ---------- Document pages ---------- */
.doc { max-width: 780px; padding: calc(var(--header-h) + 90px) 0 120px; }
.doc .mono { color: var(--brass); }
.doc h1 { font-family: var(--display); font-size: clamp(3rem, 7vw, 5rem); line-height: .95; margin: 16px 0 14px; }
.doc .updated { color: var(--cream-3); margin-bottom: 50px; }
.doc h2 { font-family: var(--display); font-size: 1.9rem; margin: 2.2em 0 .5em; }
.doc p, .doc li { color: var(--cream-2); }
.doc strong { color: var(--cream); }
.doc li { margin-bottom: .55em; }
.doc ul { padding-left: 1.2em; }
.doc li::marker { color: var(--brass); }

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: grid; place-content: center; text-align: center; padding: var(--header-h) 0 60px; }
.notfound h1 { font-family: var(--display); font-size: clamp(3rem, 8vw, 6rem); line-height: .95; margin: 16px 0 18px; }
.notfound p { color: var(--cream-2); }

/* ---------- Parent home ---------- */
.home { min-height: 100svh; display: flex; flex-direction: column; }
.home-hero { flex: 1; display: grid; place-content: center; text-align: center; padding: 120px 0 60px; position: relative; }
.home-hero::before { content: ""; position: absolute; left: 50%; top: 45%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(220, 164, 106, .12), transparent); pointer-events: none; }
.home-mark { font-family: var(--display); font-weight: 600; font-size: clamp(4.5rem, 14vw, 11rem); line-height: .9; letter-spacing: -.02em; position: relative; }
.home-mark .amp { font-size: 1em; }
.home-hero .mono { color: var(--cream-3); margin-bottom: 30px; display: inline-flex; gap: 14px; align-items: center; justify-content: center; }
.home-hero p { color: var(--cream-2); font-size: 1.15rem; margin: 26px auto 0; max-width: 30em; position: relative; }
.ventures { width: 100%; max-width: 820px; margin: 0 auto 100px; padding: 0 28px; display: grid; gap: 16px; position: relative; z-index: 2; }
.venture { display: flex; align-items: center; gap: 24px; padding: 28px 30px; text-decoration: none; color: var(--cream); }
.venture:hover { color: var(--cream); }
.venture .v-icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: rgba(220, 164, 106, .1); color: var(--brass); flex: none; position: relative; z-index: 3; }
.venture .v-icon svg { width: 30px; height: 30px; }
.venture div { position: relative; z-index: 3; }
.venture h3 { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; margin-bottom: 4px; }
.venture p { margin: 0; color: var(--cream-2); }
.venture .arrow { margin-left: auto; width: 26px; height: 26px; color: var(--brass); transition: transform .5s var(--ease); position: relative; z-index: 3; flex: none; }
.venture:hover .arrow { transform: translateX(6px); }
.home .site-footer { padding-top: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-canvas { width: 78vw; right: -18vw; opacity: .9; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-board { grid-column: span 2; grid-row: auto; }
  .t-warranty, .t-nofix, .t-data, .t-local, .t-honest { grid-column: span 1; }
  .contact { grid-template-columns: 1fr; padding: 44px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 30px; }
  .faq-wrap .section-head { position: static; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav a:not(.btn) { display: none; }
  .section { padding: 100px 0; }
  .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 48px; }
  .section-head p { justify-self: start; }
  .hero { align-items: flex-end; min-height: max(100svh, 680px); }
  .hero-canvas { left: -12vw; right: -12vw; width: auto; top: calc(var(--header-h) - 10px); height: 46%; }
  .hero::before { right: -40%; top: 30%; }
  .hero-scrim { display: block; position: absolute; left: 0; right: 0; top: auto; bottom: 0; height: 62%; z-index: 2; pointer-events: none; background: linear-gradient(to top, var(--bg) 55%, rgba(10, 10, 9, .85) 75%, transparent); }
  .hero-content { padding-bottom: 96px; }
  .hero-story { bottom: 5vh; }
  .story-wrap { height: 190px; }
  .story { left: 18px; right: 18px; }
  .story-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .story-text { font-size: .98rem; }
  .hero-canvas { -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 60%, transparent 100%); }
  .hero .mono-label { margin-bottom: 18px; }
  .hero h1 { margin-bottom: 20px; }
  .hero .lede { margin-bottom: 26px; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1; padding: 14px 14px; font-size: .93rem; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 6rem); }
  .hero .lede { font-size: 1.05rem; }
  .hero-specs { display: none; }
  .svc { grid-template-columns: 1fr; gap: 0; }
  .svc-stage { order: -1; top: calc(var(--header-h) + 8px); height: 38svh; min-height: 270px; z-index: 5; margin-bottom: 10px; }
  .stage-card { background: rgba(20, 20, 18, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .stage-top, .stage-bottom { padding: 12px 16px; }
  .svc-item { min-height: 0; padding: 56px 0; opacity: .5; }
  .svc-item:first-child { min-height: 0; padding-top: 40px; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .process-trace { display: none; }
  .step { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: start; }
  .step-node { width: 76px; height: 76px; margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .bento { grid-template-columns: 1fr; }
  .t-board, .t-warranty, .t-nofix, .t-data, .t-local, .t-honest { grid-column: auto; }
  .tile { padding: 26px; }
  .contact { padding: 30px 22px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.6rem; }
  .brand-sub { font-size: .62rem; letter-spacing: .12em; }
  .anno-text { font-size: .56rem; padding: 4px 7px; }
  .anno-line { width: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
