:root {
  --obsidian: #0D0D0E;
  --onyx: #17171A;
  --ivory: #F1ECE3;
  --stone: #8B867C;
  --brass: #C6A46A;
  --brass-deep: #9A7B45;
  --brass-soft: rgba(198, 164, 106, .35);
  --serif:"Space Grotesk", system-ui, sans-serif;
  --sans:"Space Grotesk", system-ui, sans-serif; --mono:"IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 5vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--obsidian); color: var(--ivory); font: 300 18px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
svg, canvas { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 400 12px/1.4 var(--sans); letter-spacing: .38em; text-transform: uppercase; color: var(--brass); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ivory); color: var(--obsidian); padding: 8px 12px; z-index: 10; }

/* Header floats on the hero — no seam */
header.site { position: absolute; inset: 0 0 auto; z-index: 3; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 30px; padding-bottom: 30px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; font: 400 17px/1 var(--sans); letter-spacing: .5em; }
.brand svg { width: 26px; height: 26px; }
nav.main { display: flex; gap: 36px; align-items: center; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
nav.main a { text-decoration: none; color: var(--stone); transition: color .3s; }
nav.main a:hover { color: var(--ivory); }
.btn { display: inline-block; padding: 17px 30px; font: 400 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  background: var(--brass); color: var(--obsidian) !important; transition: background .3s; }
.btn:hover { background: var(--ivory); }
.btn.line { background: transparent; color: var(--ivory) !important; box-shadow: inset 0 0 0 1px var(--brass-soft); }
.btn.line:hover { box-shadow: inset 0 0 0 1px var(--brass); }
nav.main .btn { padding: 13px 20px; }
@media (max-width: 820px) { nav.main a:not(.btn) { display: none; } .brand { letter-spacing: .38em; } }
@media (max-width: 400px) { nav.main .btn { padding: 11px 14px; letter-spacing: .2em; } .brand { font-size: 15px; } }

/* Hero — hypercube */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 50% 48%, #1c1a17 0%, var(--obsidian) 70%); }
#tesseract { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .inner { position: relative; z-index: 2; padding: 150px var(--gutter) 120px; }
.hero h1 { font: 300 clamp(54px, 10vw, 150px)/.92 var(--serif); letter-spacing: -.02em; margin: 30px 0; }
.hero h1 em { color: var(--brass); }
.hero p { max-width: 36ch; margin: 0 auto 44px; color: #CFC8BC; font-size: clamp(17px, 1.5vw, 20px); }
.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .4em; color: var(--stone); text-transform: uppercase; z-index: 2; }

section { padding: clamp(96px, 14vw, 180px) 0; }
.ivory { background: var(--ivory); color: var(--obsidian); }
.ivory .eyebrow { color: var(--brass-deep); }
.onyx { background: var(--onyx); }
h2 { font: 300 clamp(44px, 6.4vw, 96px)/.98 var(--serif); letter-spacing: -.015em; margin: 26px 0 28px; }
h2 em { color: var(--brass); }
.ivory h2 em { color: var(--brass-deep); }
.lead { font-size: 20px; max-width: 46ch; color: var(--stone); margin: 0; }
.ivory .lead { color: #5E5A53; }

/* Three dimensions */
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: 96px; }
.dim .num { font: italic 300 64px/1 var(--serif); color: var(--brass); }
.dim svg { height: 120px; width: auto; margin: 0 0 30px; overflow: visible; }
.dim svg * { fill: none; stroke: var(--brass); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dim svg .solid { fill: var(--brass); }
.dim h3 { font: 400 34px/1.1 var(--serif); margin: 0 0 12px; }
.dim p { color: var(--stone); margin: 0; font-size: 16px; }
@media (max-width: 860px) { .dims { grid-template-columns: 1fr; gap: 72px; } }

/* Fold */
.fold-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .fold-grid { grid-template-columns: 1fr; } .stage { order: -1; } }
.stage { height: 520px; display: grid; place-items: center; perspective: 1400px; }
.net { --s: 104px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transition: transform 2.2s cubic-bezier(.6,0,.2,1); }
.face { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--obsidian); box-shadow: inset 0 0 0 1px rgba(241,236,227,.14);
  transform-style: preserve-3d; transition: transform 2.2s cubic-bezier(.6,0,.2,1); }
.net > .front { background: var(--brass-deep); }
.f-top    { top: -100%; transform-origin: 50% 100%; }
.f-bottom { top: 100%;  transform-origin: 50% 0; }
.f-left   { left: -100%; transform-origin: 100% 50%; }
.f-right  { left: 100%; transform-origin: 0 50%; }
.f-back   { top: 100%; transform-origin: 50% 0; }
.folded .net { transform: translateZ(-52px) rotateX(-24deg) rotateY(-36deg); }
.folded .f-top { transform: rotateX(90deg); }
.folded .f-bottom, .folded .f-back { transform: rotateX(-90deg); }
.folded .f-left { transform: rotateY(-90deg); }
.folded .f-right { transform: rotateY(90deg); }
.fold-ctl { margin-top: 44px; display: flex; gap: 28px; }
.fold-ctl button { all: unset; cursor: pointer; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #6E695F; padding-bottom: 5px; box-shadow: inset 0 -1px 0 transparent; }
.fold-ctl button[aria-pressed="true"] { color: var(--obsidian); box-shadow: inset 0 -1px 0 var(--brass-deep); }
.fold-ctl button:focus-visible { outline: 1px solid var(--brass-deep); }

/* Configurations */
.cfgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 88px; }
.cfg-item { background: var(--onyx); padding: 48px 36px 40px; display: flex; flex-direction: column; min-height: 330px; }
.cfg-item .icon { flex: 1; display: grid; place-items: center; margin-bottom: 32px; }
svg.cfg { max-height: 130px; max-width: 170px; width: 100%; }
svg.cfg polygon { fill: var(--onyx); stroke: var(--brass); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
svg.cfg polygon.r { fill: #1f1e1d; }
.cfg-item h3 { font: 400 30px/1 var(--serif); margin: 0 0 10px; }
.cfg-item p { margin: 0; color: var(--stone); font-size: 15px; }
@media (max-width: 900px) { .cfgs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cfgs { grid-template-columns: 1fr; } }

/* Services */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 80px); margin-top: 96px; }
.line .code { font-size: 12px; letter-spacing: .38em; color: var(--brass); }
.line h3 { font: 300 clamp(34px, 3.2vw, 44px)/1.02 var(--serif); margin: 22px 0 20px; }
.line p { color: var(--stone); font-size: 16px; margin: 0; }
.line ul { list-style: none; padding: 0; margin: 28px 0 0; font-size: 15px; color: #CFC8BC; }
.line li { padding: 8px 0 8px 26px; position: relative; }
.line li::before { content: ""; position: absolute; left: 0; top: 18px; width: 9px; height: 9px; box-shadow: inset 0 0 0 1px var(--brass); }
.tier { margin-top: 110px; padding: clamp(36px, 6vw, 80px); background: radial-gradient(ellipse at 15% 0%, #27221a, var(--obsidian) 75%); display: grid; grid-template-columns: auto 1fr auto; gap: 56px; align-items: center; }
.tier canvas { width: 170px; height: 170px; }
.tier h3 { font: 300 clamp(40px, 4.4vw, 64px)/1 var(--serif); margin: 14px 0 14px; letter-spacing: .02em; }
.tier p { margin: 0; color: var(--stone); max-width: 52ch; }
@media (max-width: 900px) { .lines { grid-template-columns: 1fr; } .tier { grid-template-columns: 1fr; gap: 28px; } }

/* Method */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 40px; margin: 88px 0 0; padding: 0; list-style: none; }
.method .n { font: italic 300 44px/1 var(--serif); color: var(--brass-deep); }
.method h3 { font: 400 26px/1.15 var(--serif); margin: 14px 0 8px; }
.method p { margin: 0; font-size: 15px; color: #5E5A53; }
@media (max-width: 900px) { .method { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .method { grid-template-columns: 1fr; } }

/* Contact */
.contact { text-align: center; background: radial-gradient(ellipse 55% 60% at 50% 100%, #221e18, var(--obsidian) 70%); }
.contact .mark { width: 52px; height: 52px; margin: 0 auto 40px; }
.contact h2 { max-width: 13ch; margin: 22px auto 30px; }
.contact p { color: var(--stone); max-width: 44ch; margin: 0 auto 48px; }
footer { padding: 36px 0 48px; color: var(--stone); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { .net, .face { transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) { .stage { height: 380px; } }

/* Type: Space Grotesk (display + body) + IBM Plex Mono (labels) — owner preference 2026-09-27 */
h1, h2, h3, .dim .num, .method .n, .n, .num { font-style: normal !important; letter-spacing: -.035em; }
h1 em, h2 em, h3 em, p em { font-style: normal; }
h1, h2 { font-weight: 300 !important; }
.eyebrow, .btn, nav.main, .code, footer, .spec, .cap, .codes b, .plate .id, .plate .sub, .card .role, .scroll-cue, .fold-ctl button { font-family: var(--mono) !important; letter-spacing: .18em !important; }
.eyebrow { font-size: 12px; } .dim .num, .method .n { font-weight: 300; }
/* Icon set (04_BRAND/icons) */
svg.ic { width: 44px; height: 44px; color: var(--ivory); }
.line svg.ic { margin-bottom: 28px; }
.method svg.ic { width: 36px; height: 36px; color: var(--obsidian); margin-bottom: 18px; }
.method .n { font-size: 13px !important; color: var(--brass-deep); display: block; }
.method .n { font-family: var(--mono) !important; letter-spacing: .18em !important; font-size: 12px !important; }
