@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/outfit-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/outfit-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/outfit-latin-600-normal.woff2) format("woff2"); }


/* ===== BRAND TOKENS: swap these when the final brand package arrives ===== */
:root {
  --night: #1a0e08;
  --night-2: #2b1409;
  --night-3: #221009;
  --ivory: #f6f0e4;
  --paper: #fcf9f2;
  --tape: #efe0bd;
  --sand: #ddd0b8;
  --saddle: #4a2410;
  --gold: #c9a45c;
  --gold-hi: #ecd294;
  --gold-deep: #7a5818;
  --ink: #17120e;
  --muted: #56473a;
  --on-dark: #f3ebdc;
  --on-dark-muted: #cfbfa2;
  --line-dark: rgba(201,164,92,.36);
  --font-display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Outfit", "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 76rem;
  --bar-h: 4.5rem;
  --c: 12px;
}
/* one fluid scale: everything below is in rem, so type grows on large screens and stays readable on phones */
html { font-size: clamp(16px, 0.84rem + 0.36vw, 20.5px); scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--gold); color: var(--night); padding: .7rem 1rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
main { overflow-x: clip; }
section[id] { scroll-margin-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: .94; letter-spacing: .01em; color: var(--saddle); }
h3 { font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; }
.eyebrow { font-size: .875rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); margin: 0 0 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.lede { font-size: clamp(1.15rem, 1.1rem + .3vw, 1.35rem); color: var(--muted); max-width: 46ch; margin: 1.1rem 0 0; }
.sec { padding-block: clamp(4rem, 8vw, 7.5rem); overflow-x: clip; }
.dark { background: var(--night); color: var(--on-dark); --surface: var(--night); }
.dark2 { background: var(--night-2); color: var(--on-dark); --surface: var(--night-2); }
.light { background: var(--ivory); color: var(--ink); --surface: var(--ivory); }
.dark h2, .dark2 h2 { color: var(--on-dark); }
.dark .eyebrow, .dark2 .eyebrow { color: var(--gold); }
.dark .lede, .dark2 .lede { color: var(--on-dark-muted); }
.orn { display: block; width: 8.5rem; height: 1.5rem; color: var(--gold); margin: 0 0 1.4rem; }
.light .orn { color: var(--gold-deep); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; cursor: pointer; text-decoration: none; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 1rem 1.6rem; border: 0; margin: 5px; background: transparent; transition: background .2s, color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--gold); color: var(--night); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--gold); }
.btn.solid:hover { background: var(--gold-hi); }
.btn.line { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 3px var(--surface), 0 0 0 4px var(--gold); }
.btn.line:hover { background: rgba(201,164,92,.14); }
/* paper cards read as light surfaces even inside dark sections */
.tool .eyebrow, .card-in .eyebrow { color: var(--gold-deep); }
.tool .more, .card-in .more { color: var(--saddle); }
.light .btn.solid, .card-in .btn.solid, .tool .btn.solid { background: var(--saddle); color: var(--on-dark); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--saddle); }
.light .btn.solid:hover, .card-in .btn.solid:hover, .tool .btn.solid:hover { background: var(--night-2); }
.light .btn.line, .card-in .btn.line, .tool .btn.line { color: var(--saddle); box-shadow: inset 0 0 0 1px var(--saddle), 0 0 0 3px var(--surface), 0 0 0 4px var(--saddle); }
.light .btn.line:hover, .card-in .btn.line:hover, .tool .btn.line:hover { background: rgba(74,36,16,.08); }
.btn.sm { padding: .75rem 1.15rem; font-size: .85rem; letter-spacing: .1em; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin: 1.8rem -5px 0; }
.pill { display: inline-block; padding: .25rem .95rem; background: color-mix(in srgb, currentColor 14%, transparent); font-size: .75rem; letter-spacing: .14em; clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 7px 100%, 0 50%); }

/* top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(26,14,8,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--gold); }
.bar-in { display: flex; align-items: center; gap: 1.2rem; min-height: calc(var(--bar-h) - 2px); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.brand img { height: 2.7rem; width: auto; display: block; }
.brand span { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: var(--gold); font-size: 1.35rem; line-height: .95; letter-spacing: .04em; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .22em; color: var(--on-dark-muted); margin-top: .2rem; }
.nav { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav a { font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; font-weight: 500; color: var(--on-dark); padding-block: .4rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="true"], .nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.bar .cta { margin: 0 0 0 .5rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-dark); width: 48px; height: 48px; cursor: pointer; place-items: center; }
.menu-btn i { display: block; width: 20px; height: 2px; background: var(--gold); position: relative; transition: background .25s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--gold); transition: transform .25s; }
.menu-btn i::before { top: -7px; } .menu-btn i::after { top: 7px; }
.bar.open .menu-btn i { background: transparent; }
.bar.open .menu-btn i::before { transform: translateY(7px) rotate(45deg); }
.bar.open .menu-btn i::after { transform: translateY(-7px) rotate(-45deg); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress span { display: block; height: 100%; background: var(--gold-hi); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 1099px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--night); border-bottom: 1px solid var(--gold); padding: .5rem var(--gutter) 1.2rem; display: none; }
  .bar.open .nav { display: flex; }
  .nav a { font-size: 1.15rem; padding-block: 1rem; border-bottom: 1px dashed var(--line-dark); }
  .nav a[aria-current="true"], .nav a[aria-current="page"] { border-bottom-color: var(--line-dark); }
}
@media (max-width: 640px) { .bar .cta { display: none; } }
@media (max-width: 350px) { .brand span { display: none; } }

/* ===== hero + business card ===== */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.burst { position: absolute; left: 50%; top: 27%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%); pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(201,164,92,.15) 0deg 2.5deg, transparent 2.5deg 10deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, #000 9%, transparent 26%); mask-image: radial-gradient(circle at 50% 50%, #000 0, #000 9%, transparent 26%); }
.hero-grid { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem); justify-items: center; text-align: center; }
.card-col { width: min(40rem, 100%); display: grid; justify-items: center; gap: 1rem; }
.card3d { position: relative; width: 100%; perspective: 1400px; container-type: inline-size; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.card-shadow { position: absolute; left: 8%; right: 8%; bottom: -6%; height: 22%; background: radial-gradient(ellipse at center, rgba(0,0,0,.6), transparent 70%); filter: blur(12px); pointer-events: none; }
.tilt { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.flipper { position: relative; aspect-ratio: 1050 / 600; transform-style: preserve-3d; transform: rotateY(0deg); transition: transform .9s cubic-bezier(.3,.7,.2,1); }
.card3d.flipped .flipper { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.face.back { transform: rotateY(180deg); }
.frame { height: 100%; padding: 2px; background: linear-gradient(135deg, var(--gold-hi), var(--gold) 40%, #8f6a2a); clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); }
.frame .gap { height: 100%; padding: 5px; background: var(--night); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
.frame .in { position: relative; height: 100%; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #3a1c0d 0%, #24110a 55%, #150a05 100%); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); box-shadow: inset 0 0 0 1px rgba(201,164,92,.35); }
.front img { position: absolute; inset: 2.5%; width: 95%; height: 95%; object-fit: contain; display: block; }
.sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 38%, rgba(255,236,190,.26) 48%, rgba(255,236,190,.06) 54%, transparent 62%) var(--sx, 50%) 0 / 260% 100% no-repeat,
              radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,230,170,.16), transparent 45%); }
.back .in { display: grid; place-content: center; justify-items: center; text-align: center; gap: 1.6cqw; padding: 6cqw; color: var(--on-dark); }
.back .b-eyebrow { margin: 0; font-size: 2.3cqw; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.back .b-name { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 9cqw; line-height: .95; color: var(--gold-hi); letter-spacing: .02em; }
.back .b-orn { width: 22cqw; height: 4cqw; color: var(--gold); }
.back .b-links { display: grid; gap: .8cqw; }
.back a { font-size: 3.9cqw; text-decoration: none; color: var(--on-dark); font-weight: 500; }
.back a:hover { color: var(--gold-hi); }
.back .corner { position: absolute; width: 9cqw; height: 9cqw; border: 1px solid var(--gold); opacity: .7; }
.back .corner.tl { top: 3.2cqw; left: 3.2cqw; border-right: 0; border-bottom: 0; }
.back .corner.tr { top: 3.2cqw; right: 3.2cqw; border-left: 0; border-bottom: 0; }
.back .corner.bl { bottom: 3.2cqw; left: 3.2cqw; border-right: 0; border-top: 0; }
.back .corner.br { bottom: 3.2cqw; right: 3.2cqw; border-left: 0; border-top: 0; }
.flip-btn { display: inline-flex; align-items: center; gap: .6rem; background: none; border: 0; cursor: pointer; color: var(--on-dark-muted); font-size: .95rem; letter-spacing: .08em; padding: .5rem .75rem; }
.flip-btn svg { width: 1.2rem; height: 1.2rem; color: var(--gold); transition: transform .6s; }
.card3d.flipped + .flip-btn svg { transform: rotate(180deg); }
.flip-btn:hover { color: var(--gold); }
/* on touch screens the card floats gently on its own */
@media (prefers-reduced-motion: no-preference) {
  .float .tilt { animation: float 8s ease-in-out infinite; }
  .float .sheen { animation: sweep 8s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: rotateX(2deg) rotateY(-3.5deg); } 50% { transform: rotateX(-1.5deg) rotateY(3.5deg); } }
  @keyframes sweep { 0%, 100% { background-position: 95% 0, 30% 25%; } 50% { background-position: 5% 0, 70% 35%; } }
}
.hero h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(3.2rem, 5.4vw, 5.9rem); overflow-wrap: anywhere; line-height: .9; color: var(--on-dark); letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .eyebrow { justify-content: center; }
.hero .lede { margin-inline: auto; color: var(--on-dark-muted); }
.hero .actions { justify-content: center; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding: 0; margin: 1.6rem 0 0; justify-content: center; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.facts li { display: flex; align-items: center; gap: .6rem; }
.facts li::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
@media (min-width: 1000px) {
  .burst { left: 29%; top: 50%; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; justify-items: stretch; text-align: left; gap: 4.5rem; }
  .card-col { width: 100%; }
  .hero .eyebrow, .hero .actions, .facts { justify-content: flex-start; }
  .hero .lede { margin-inline: 0; }
}

/* ===== draggable ribbon ===== */
.ribbon { background: var(--gold); color: var(--night); overflow: hidden; border-block: 3px double var(--night); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ribbon.grabbing { cursor: grabbing; }
.ribbon-track { display: flex; width: max-content; will-change: transform; }
.ribbon ul { display: flex; list-style: none; margin: 0; padding: .85rem 0; }
.ribbon li { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; }
.ribbon li::after { content: ""; width: 8px; height: 8px; background: var(--night); transform: rotate(45deg); margin-inline: 1.8rem; }

/* ===== services / hat diagram ===== */
.anat { display: grid; gap: 2rem clamp(2rem, 5vw, 4.5rem); grid-template-areas: "head" "stage" "panel"; }
.anat-head { grid-area: head; } .anat-stage { grid-area: stage; align-self: center; } .anat-panel { grid-area: panel; }
.anat-panel .panel { margin-top: 0; }
@media (min-width: 960px) { .anat { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); grid-template-areas: "head stage" "panel stage"; row-gap: 1.6rem; } }
.seg { display: inline-flex; border: 1px solid var(--line-dark); padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { background: none; border: 0; cursor: pointer; padding: .6rem 1rem; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--on-dark-muted); }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--night); }
.anat .seg { margin-top: 1.6rem; }
.panel { margin-top: 1.6rem; padding: 1.4rem 1.5rem; background: var(--night-3); border: 1px solid var(--line-dark); position: relative; min-height: 15.5rem; }
.panel::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(201,164,92,.16); pointer-events: none; }
.panel .tag { display: inline-block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: .2rem .7rem; margin: 0 0 .8rem; color: var(--night); background: var(--gold); }
.panel .tag[data-svc="cleaning"] { background: var(--on-dark); }
.panel .tag[data-svc="both"] { background: linear-gradient(90deg, var(--on-dark) 50%, var(--gold) 50%); }
.panel h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: .02em; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; color: var(--gold); }
.panel p { margin: .7rem 0 0; color: var(--on-dark-muted); max-width: 46ch; }
.panel .look strong { color: var(--on-dark); font-weight: 600; }
.panel .btn { margin: 1.2rem 0 0 4px; }
.panel .btn[aria-pressed="true"] { background: rgba(201,164,92,.18); }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.view-label { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0; }
.stage { position: relative; aspect-ratio: 600 / 262; max-width: 100%; perspective: 1200px; }
.stage::before { content: ""; position: absolute; inset: -12% -6% -4%; background: repeating-conic-gradient(from 0deg at 50% 95%, rgba(201,164,92,.13) 0deg 2deg, transparent 2deg 9deg); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 95%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 60% 80% at 50% 95%, #000 30%, transparent 75%); pointer-events: none; }
.hat { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 80%; transition: opacity .45s, transform .6s cubic-bezier(.3,.7,.2,1); }
.stage[data-view="out"] .view-in, .stage[data-view="in"] .view-out { opacity: 0; transform: rotateX(70deg) scale(.85); pointer-events: none; }
.stage[data-view="in"] .view-out { transform: rotateX(-70deg) scale(.85); }
.hat .felt { transition: filter .3s; }
.hat.surface-on .felt { filter: brightness(1.55) saturate(1.1); }
.hat .part { stroke: var(--gold); stroke-width: 2; transition: stroke .25s, stroke-width .25s, filter .25s; }
.hat .line { fill: none; stroke-linecap: round; }
.hat .deco { fill: var(--gold); }
.hat .part.on { stroke: var(--gold-hi); stroke-width: 4; filter: drop-shadow(0 0 7px rgba(236,210,148,.75)); }
.pin { position: absolute; left: var(--x); top: var(--y); width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; transition: opacity .3s, visibility .3s; }
.pin::before { content: ""; width: 15px; height: 15px; background: var(--gold); border: 2px solid var(--night); outline: 1px solid var(--gold); transform: rotate(45deg); transition: background .2s, transform .2s; }
.pin:hover::before { transform: rotate(45deg) scale(1.2); }
.pin[aria-pressed="true"]::before { background: var(--on-dark); outline-color: var(--on-dark); transform: rotate(45deg) scale(1.25); }
.pin .lbl { position: absolute; bottom: calc(100% - 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; background: var(--night); color: var(--gold); border: 1px solid var(--line-dark); padding: .1rem .5rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pin:hover .lbl, .pin:focus-visible .lbl, .pin[aria-pressed="true"] .lbl { opacity: 1; }
.stage[data-view="out"] .pin[data-view="in"], .stage[data-view="in"] .pin[data-view="out"] { opacity: 0; visibility: hidden; }
.pin.dim, .chip-part.dim { opacity: .28; }
.pin.hint::after { content: ""; position: absolute; width: 40px; height: 40px; border: 1px solid var(--gold); transform: rotate(45deg) scale(.5); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: rotate(45deg) scale(1.4); opacity: 0; } }
@media (max-width: 700px) {
  .stage { margin-inline: calc(-1 * var(--gutter) + 4px); }
  .pin { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .pin::before { width: 11px; height: 11px; border-width: 1.5px; }
  .pin.hint::after { width: 30px; height: 30px; }
}
.parts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; justify-content: center; }
.chip-part { background: none; border: 1px solid var(--line-dark); color: var(--on-dark-muted); padding: .5rem .9rem; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: opacity .25s, background .2s; }
.chip-part[aria-pressed="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); }

/* how it works */
.steps { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: s; padding-block: 1.4rem; border-top: 1px dashed var(--gold-deep); display: grid; grid-template-columns: 3.6rem 1fr; gap: .8rem; }
@media (min-width: 800px) { .steps li { grid-template-columns: 1fr; } }
.steps li::before { content: counter(s, upper-roman); font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: .9; color: var(--gold-deep); }
.steps strong { display: block; font-weight: 600; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--saddle); margin-bottom: .4rem; }
.steps span { color: var(--muted); }

/* request builder */
.builder { display: grid; gap: clamp(2rem, 4vw, 3.5rem); margin-top: 2.2rem; align-items: start; }
@media (min-width: 980px) { .builder { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } .letter-wrap { position: sticky; top: calc(var(--bar-h) + 1.2rem); } }
.stepper { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; }
.stepper b { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--on-dark-muted); border: 1px solid var(--line-dark); transition: background .25s, color .25s; }
.stepper b.done { background: var(--gold); color: var(--night); border-color: var(--gold); }
.stepper span { font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); margin-left: .5rem; }
fieldset { border: 0; margin: 0; padding: 1.4rem 0; border-top: 1px dashed var(--line-dark); min-width: 0; }
legend { padding: 0; font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: .9rem; float: left; width: 100%; }
legend small { color: var(--on-dark-muted); font-weight: 500; letter-spacing: .04em; text-transform: none; font-size: .95rem; margin-left: .4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; clear: both; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 1rem; border: 1px solid var(--line-dark); font-size: 1rem; color: var(--on-dark); transition: background .2s, border-color .2s, color .2s; }
.chip span::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); transition: background .2s; }
.chip:hover span { border-color: var(--gold); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--night); }
.chip input:checked + span::before { background: var(--night); border-color: var(--night); }
.chip input:focus-visible + span { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
.fields { display: grid; gap: 1rem; clear: both; }
@media (min-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: .4rem; }
.field label i { font-style: normal; text-transform: none; letter-spacing: 0; }
.field input, .field textarea { width: 100%; background: var(--night-3); border: 1px solid var(--line-dark); color: var(--on-dark); padding: .8rem .9rem; font-size: 1.05rem; color-scheme: dark; border-radius: 0; }
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.letter { background: var(--gold-deep); padding: 1px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.letter-in { background: var(--paper); color: var(--ink); padding: clamp(1.3rem, 3vw, 2rem); clip-path: inherit; position: relative; --surface: var(--paper); }
.letter-in::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--sand); pointer-events: none; }
.seal { position: absolute; top: 1.2rem; right: 1.2rem; width: 3.2rem; height: 3.2rem; border: 1px solid var(--gold-deep); transform: rotate(45deg); display: grid; place-items: center; }
.seal span { transform: rotate(-45deg); font-family: var(--font-display); font-weight: 800; font-size: .85rem; color: var(--gold-deep); }
.letter .meta { font-size: .9rem; color: var(--muted); margin: 0; padding-right: 4.2rem; }
.letter .meta b { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: var(--gold-deep); display: inline-block; width: 4.3rem; }
.letter .meta + .meta { margin-top: .25rem; }
.letter .subj { font-weight: 600; color: var(--saddle); }
.letter pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-body); font-size: 1.02rem; line-height: 1.6; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--sand); max-height: 28rem; overflow: auto; }
.letter .btn.solid { background: var(--saddle); color: var(--on-dark); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--saddle); }
.letter .btn.solid:hover { background: var(--night-2); }
.letter .btn.line { color: var(--saddle); box-shadow: inset 0 0 0 1px var(--saddle), 0 0 0 3px var(--paper), 0 0 0 4px var(--saddle); }
.letter .actions { margin-top: 1.2rem; }
.letter .note { font-size: .95rem; color: var(--muted); margin: .9rem 0 0; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 3px; font-size: .95rem; margin-top: .9rem; }

/* hat size */
.size-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 960px) { .size-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.readout { text-align: center; padding: 1.8rem 1.2rem; border: 1px solid var(--sand); background: var(--paper); position: relative; }
.readout::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--sand); pointer-events: none; }
.readout small { display: block; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.readout output { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 10vw, 8rem); line-height: 1; color: var(--saddle); font-variant-numeric: tabular-nums; }
.readout .meas { color: var(--muted); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tape-box { margin-top: 2rem; }
.tape { position: relative; margin-inline: 14px; }
.tape-track { position: relative; height: 4.2rem; background:
  linear-gradient(to right, var(--ink) 2px, transparent 2px) 0 0 / calc(100% / 5.5) 58% repeat-x,
  linear-gradient(to right, var(--ink) 1px, transparent 1px) 0 0 / calc(100% / 11) 40% repeat-x,
  linear-gradient(to right, var(--muted) 1px, transparent 1px) 0 0 / calc(100% / 44) 22% repeat-x,
  var(--tape);
  border-right: 2px solid var(--ink); box-shadow: 0 0 0 1px var(--gold-deep), inset 0 -10px 18px -12px rgba(74,36,16,.35); }
.tape-nums { position: relative; height: 1.6rem; margin-top: .4rem; }
.tape-nums span { position: absolute; transform: translateX(-50%); font-size: .95rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tape-marker { position: absolute; top: -10px; bottom: -10px; left: var(--p, 50%); width: 0; pointer-events: none; }
.tape-marker::before { content: ""; position: absolute; left: -1.5px; top: 8px; bottom: 0; width: 3px; background: var(--saddle); }
.tape-marker::after { content: ""; position: absolute; left: -11px; top: -5px; width: 22px; height: 22px; background: var(--gold); border: 2px solid var(--saddle); transform: rotate(45deg); }
.tape-range { position: absolute; top: -12px; bottom: -12px; left: -14px; width: calc(100% + 28px); margin: 0; opacity: 0; cursor: ew-resize; }
.tape:focus-within .tape-marker::after { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.size-controls { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; align-items: end; margin-top: 1.4rem; }
.size-controls .field label { color: var(--muted); }
.size-controls .field input { width: 8.5rem; background: var(--paper); color: var(--ink); border-color: var(--sand); color-scheme: light; }
.size-controls .field input:focus { border-color: var(--saddle); box-shadow: 0 0 0 1px var(--saddle); }
.light .seg, .tool .seg { border-color: var(--sand); }
.light .seg button, .tool .seg button { color: var(--muted); }
.light .seg button[aria-pressed="true"], .tool .seg button[aria-pressed="true"] { background: var(--saddle); color: var(--on-dark); }
.size-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 1.4rem; }
.size-chips button { background: var(--paper); border: 1px solid var(--sand); padding: .5rem .2rem; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--saddle); transition: background .2s, color .2s; }
.size-chips button:hover { border-color: var(--saddle); }
.size-chips button[aria-pressed="true"] { background: var(--saddle); color: var(--on-dark); border-color: var(--saddle); }
.how-measure { margin: 1.4rem 0 0; color: var(--muted); max-width: 46ch; }

/* care */
.care-grid { display: grid; gap: clamp(1.5rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .care-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.acc details { border-top: 1px dashed var(--line-dark); }
.acc details:last-child { border-bottom: 1px dashed var(--line-dark); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 1.05rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; margin-left: auto; font-size: 1.8rem; font-weight: 400; line-height: 1; color: var(--gold); transition: transform .25s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc summary b { font-family: var(--font-display); font-weight: 800; color: var(--gold); font-size: 1.6rem; letter-spacing: 0; min-width: 2.4rem; }
.acc details p { margin: 0 0 1.3rem 3.4rem; color: var(--on-dark-muted); max-width: 52ch; }
.small-note { font-size: .95rem; color: var(--on-dark-muted); margin-top: 1.1rem; }

/* coming soon */
.soon-grid { display: grid; gap: 1.5rem; margin-top: 2.2rem; }
@media (min-width: 860px) { .soon-grid { grid-template-columns: 1fr 1fr; } }
.card { background: var(--gold-deep); padding: 1px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.card-in { background: var(--paper); height: 100%; padding: clamp(1.5rem, 3.4vw, 2.4rem); clip-path: inherit; position: relative; --surface: var(--paper); }
.card-in::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--sand); pointer-events: none; }
.card h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: .02em; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; color: var(--saddle); }
.card p { color: var(--muted); margin: .8rem 0 0; max-width: 44ch; }
.card .actions { position: relative; }


/* ===== curated hats gallery ===== */
.g-head { display: grid; gap: 0 clamp(2rem, 5vw, 4.5rem); align-items: end; }
@media (min-width: 900px) { .g-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .g-head .lede { margin: 0; } }
.g-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.g-tools button { background: var(--paper); border: 1px solid var(--sand); padding: .55rem 1rem; cursor: pointer; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.g-tools button[aria-pressed="true"] { background: var(--saddle); border-color: var(--saddle); color: var(--on-dark); }
.g-tools button span { opacity: .7; margin-left: .35rem; font-weight: 500; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); margin-top: 1.6rem; }
.g-grid:empty { display: none; }
.hat-card[hidden] { display: none; }
.hc-btn { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.hc-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--night-2); clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%, 0 var(--c)); }
.hc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hc-btn:hover .hc-img img, .hc-btn:focus-visible .hc-img img { transform: scale(1.05); }
.hc-img::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(236,210,148,.55); pointer-events: none; clip-path: inherit; }
.hc-status { display: inline-block; margin: 0; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: .22rem .65rem; background: var(--gold); color: var(--night); }
.hc-img .hc-status { position: absolute; top: .9rem; left: .9rem; }
.hc-status[data-s="sold"] { background: var(--night); color: var(--on-dark-muted); }
.hc-status[data-s="reserved"] { background: var(--on-dark); color: var(--night); }
.hc-status[data-s="soon"] { background: var(--night-2); color: var(--gold); border: 1px solid var(--gold); }
.hc-count { position: absolute; right: .9rem; bottom: .9rem; font-size: .78rem; letter-spacing: .08em; background: rgba(26,14,8,.8); color: var(--on-dark); padding: .15rem .55rem; }
.hc-body { background: var(--paper); border: 1px solid var(--sand); border-top: 0; padding: 1rem 1.1rem 1.1rem; }
.hc-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1; letter-spacing: .02em; color: var(--saddle); }
.hc-meta { margin: .35rem 0 0; color: var(--muted); font-size: 1rem; }
.hc-foot { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; margin: .7rem 0 0; padding-top: .7rem; border-top: 1px dashed var(--sand); font-size: .95rem; color: var(--muted); }
.hc-foot b { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--saddle); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hc-foot b.ask { font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.hat-card.is-sold .hc-img img { filter: grayscale(.6) brightness(.8); }
.g-empty { margin-top: 2rem; }
.g-empty .card-in { text-align: center; padding-block: clamp(2rem, 5vw, 3.5rem); }
.g-empty p { margin-inline: auto; }
.g-empty .eyebrow, .g-empty .actions { justify-content: center; }
.custom-card { margin-top: clamp(2rem, 4vw, 3rem); }
.custom-card .card-in { display: grid; gap: .5rem 2rem; align-items: center; }
@media (min-width: 860px) { .custom-card .card-in { grid-template-columns: 1fr auto; } .custom-card .actions { margin-top: 0; } }
/* lightbox */
.lb { width: min(72rem, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid var(--gold); background: var(--night); color: var(--on-dark); --surface: var(--night); overflow: auto; }
.lb::backdrop { background: rgba(10,5,2,.82); backdrop-filter: blur(4px); }
.lb-in { position: relative; display: grid; }
@media (min-width: 900px) { .lb-in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.lb-media { position: relative; background: #0f0703; }
.lb-stage { aspect-ratio: 4 / 5; max-height: 78vh; margin-inline: auto; touch-action: pan-y; }
.lb-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lb-nav { position: absolute; top: 45%; transform: translateY(-50%); width: 3rem; height: 3rem; border: 1px solid var(--gold); background: rgba(26,14,8,.75); color: var(--gold); font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-nav.prev { left: .8rem; } .lb-nav.next { right: .8rem; }
.lb-nav[hidden] { display: none; }
.lb-count { position: absolute; top: .8rem; left: .8rem; margin: 0; font-size: .85rem; letter-spacing: .1em; background: rgba(26,14,8,.8); padding: .15rem .6rem; }
.lb-thumbs { display: flex; gap: .4rem; padding: .6rem; overflow-x: auto; }
.lb-thumbs button { flex: none; width: 4.2rem; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line-dark); background: none; cursor: pointer; opacity: .6; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold-hi); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-info { padding: clamp(1.4rem, 3vw, 2.4rem); }
.lb-info h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 3.5vw, 3rem); line-height: .95; color: var(--gold); margin-top: .8rem; }
.lb-dl { margin: 1.2rem 0 0; border-top: 1px dashed var(--line-dark); }
.lb-dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; padding-block: .6rem; border-bottom: 1px dashed var(--line-dark); }
.lb-dl dt { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; padding-top: .2rem; }
.lb-dl dd { margin: 0; }
.lb-desc { color: var(--on-dark-muted); margin: 1rem 0 0; }
.lb-close { position: absolute; top: .6rem; right: .6rem; width: 2.8rem; height: 2.8rem; border: 1px solid var(--gold); background: var(--night); color: var(--gold); font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 2; }

/* contact */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.dl { margin: 0; border-top: 1px dashed var(--line-dark); }
.dl > div { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .8rem; align-items: center; padding-block: 1.1rem; border-bottom: 1px dashed var(--line-dark); }
.dl dt { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.dl dd { margin: 0; font-size: clamp(1.15rem, 1.1rem + .4vw, 1.45rem); font-weight: 500; overflow-wrap: anywhere; }
.dl a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.dl a:hover { color: var(--gold-hi); }
.copy { background: none; border: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .75rem; cursor: pointer; }
.copy:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 560px) { .dl > div { grid-template-columns: 1fr auto; } .dl dt { grid-column: 1 / -1; } }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 40; transform: translate(-50%, 160%); visibility: hidden; background: var(--night); color: var(--on-dark); border: 1px solid var(--gold); padding: .8rem 1.1rem; font-size: 1rem; max-width: calc(100% - 32px); transition: transform .3s cubic-bezier(.2,.7,.2,1), visibility .3s; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .burst { animation: turn 160s linear infinite; }
  @keyframes turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin.hint::after { display: none; }
  .tilt, .flipper, .hat, .toast, .btn, .j-card a { transition: none; }
}

/* ===== subpage header ===== */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line-dark); }
.page-hero .burst { left: 85%; top: 110%; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: .9; color: var(--on-dark); max-width: 18ch; }
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero .lede { max-width: 52ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.crumbs li + li::before { content: "◆"; font-size: .55rem; color: var(--gold); margin-right: .45rem; vertical-align: 2px; }
.crumbs a { text-decoration: none; color: var(--gold); }
.crumbs a:hover { text-decoration: underline; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.jump a { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; text-decoration: none; color: var(--on-dark); border: 1px solid var(--line-dark); padding: .55rem .9rem; }
.jump a:hover { border-color: var(--gold); color: var(--gold); }

/* ===== home ===== */
.svc-pair { display: grid; gap: 1.5rem; margin-top: 2.2rem; }
@media (min-width: 820px) { .svc-pair { grid-template-columns: 1fr 1fr; } }
.svc { position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--night-3); border: 1px solid var(--line-dark); display: grid; gap: .6rem; align-content: start; }
.svc::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201,164,92,.14); pointer-events: none; }
.svc .num { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--gold); }
.svc h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: .95; color: var(--on-dark); letter-spacing: .02em; }
.svc p { margin: 0; color: var(--on-dark-muted); }
.svc ul { margin: .4rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; color: var(--on-dark); }
.svc li::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); margin-right: .7rem; vertical-align: 2px; }
.more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; text-decoration: none; color: var(--gold); margin-top: .8rem; }
.light .more { color: var(--saddle); }
.more::after { content: "→"; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }
.tools { display: grid; gap: 1.5rem; margin-top: 2.2rem; }
@media (min-width: 900px) { .tools { grid-template-columns: 1.2fr 1fr; } }
.tool { position: relative; --surface: var(--paper); background: var(--paper); border: 1px solid var(--sand); padding: clamp(1.5rem, 3vw, 2.2rem); display: grid; gap: .8rem; align-content: start; }
.tool::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--sand); pointer-events: none; }
.tool h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3vw, 2.6rem); line-height: .95; color: var(--saddle); letter-spacing: .02em; }
.tool p { margin: 0; color: var(--muted); }
.tool .mini-hat { width: 100%; max-width: 26rem; height: auto; justify-self: center; margin-block: .4rem; }
.tool .mini-hat path { stroke: var(--gold-deep); stroke-width: 2; }
.tool .mini-hat .mh-crown { fill: #e9dcc4; } .tool .mini-hat .mh-brim { fill: #e2d2b6; } .tool .mini-hat .mh-band { fill: var(--saddle); }
.tool .mini-hat .mh-pin { fill: var(--saddle); stroke: var(--paper); stroke-width: 2; }
.qs { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem 1rem; }
.qs .field input { width: 8rem; background: var(--paper); color: var(--ink); border: 1px solid var(--sand); padding: .8rem .9rem; font-size: 1.05rem; color-scheme: light; }
.qs .field label { color: var(--muted); }
.qs-out { display: flex; align-items: baseline; gap: .8rem; margin-top: .4rem; }
.qs-out small { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.qs-out output { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.6rem, 6vw, 5rem); line-height: 1; color: var(--saddle); }
#qs-note { font-size: .95rem; color: var(--muted); margin: 0; min-height: 1.5em; }

/* ===== journal ===== */
.j-tools { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; margin-top: 2rem; }
.j-topics { display: flex; flex-wrap: wrap; gap: .5rem; }
.j-topics button { background: var(--paper); border: 1px solid var(--sand); padding: .55rem 1rem; cursor: pointer; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.j-topics button[aria-pressed="true"] { background: var(--saddle); border-color: var(--saddle); color: var(--on-dark); }
.j-search { position: relative; flex: 1 1 16rem; max-width: 22rem; }
.j-search input { width: 100%; background: var(--paper); border: 1px solid var(--sand); padding: .75rem 1rem .75rem 2.6rem; font-size: 1rem; color: var(--ink); border-radius: 0; }
.j-search input:focus { outline: none; border-color: var(--saddle); box-shadow: 0 0 0 1px var(--saddle); }
.j-search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 1.05rem; height: 1.05rem; color: var(--muted); }
.j-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; margin-top: 1.8rem; }
.j-card[hidden] { display: none; }
.j-card a { display: grid; height: 100%; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--sand); transition: transform .25s, box-shadow .25s; }
.j-card a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(43,20,9,.5); }
.j-art { position: relative; aspect-ratio: 16 / 9; background: var(--night-2); overflow: hidden; display: grid; place-items: center; }
.j-art svg { width: 62%; height: auto; color: var(--gold); opacity: .9; }
.j-art::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 120%, rgba(201,164,92,.12) 0deg 2deg, transparent 2deg 9deg); }
.j-art .j-kind { position: absolute; left: .8rem; top: .8rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; background: var(--gold); color: var(--night); padding: .18rem .55rem; }
.j-body { padding: 1.2rem 1.3rem 1.3rem; display: grid; gap: .5rem; align-content: start; }
.j-topic { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin: 0; }
.j-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--saddle); letter-spacing: .01em; text-transform: none; }
.j-body p { margin: 0; color: var(--muted); font-size: 1rem; }
.j-meta { font-size: .85rem; color: var(--muted); letter-spacing: .06em; margin-top: .2rem !important; }
.j-empty { margin-top: 1.5rem; color: var(--muted); }
.dark .j-card a, .dark2 .j-card a { border-color: var(--line-dark); }

/* ===== article ===== */
.article { display: grid; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 6vw, 5rem); }
@media (min-width: 1040px) { .article { grid-template-columns: minmax(0, 1fr) 18rem; } }
.prose { max-width: 68ch; font-size: 1.15rem; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.1rem; }
.prose > h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-top: 2.6rem; }
.prose > h3 { margin-top: 2rem; color: var(--saddle); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.prose a { color: var(--saddle); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.tip { border: 1px solid var(--gold-deep); background: var(--paper); padding: 1.1rem 1.3rem; position: relative; }
.tip::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--sand); pointer-events: none; }
.tip b { display: block; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .3rem; }
.tip p { color: var(--muted); margin: 0; }
.aside { display: grid; gap: 1.2rem; align-content: start; }
@media (min-width: 1040px) { .aside { position: sticky; top: calc(var(--bar-h) + 1.5rem); } }
.aside-box { background: var(--night-2); color: var(--on-dark); padding: 1.4rem; --surface: var(--night-2); }
.aside-box h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--gold); text-transform: none; letter-spacing: .01em; }
.aside-box p { margin: .6rem 0 0; color: var(--on-dark-muted); font-size: 1rem; }
.aside-box .btn { margin: 1rem 0 0 4px; }
.prose > .sources { border-top: 1px dashed var(--gold-deep); padding-top: 1.4rem; margin-top: 2.6rem; }
.sources h2 { font-size: 1.6rem; }
.sources p { margin: .8rem 0 0; }
.sources ul { list-style: none; padding: 0; }
.sources li { padding-left: 1.2rem; position: relative; }
.sources li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; background: var(--gold-deep); transform: rotate(45deg); }
.sources small { color: var(--muted); }
.yt { margin: 1.6rem 0; }
.yt-frame { position: relative; aspect-ratio: 16 / 9; background: var(--night) center / cover no-repeat; overflow: hidden; border: 1px solid var(--gold-deep); }
.yt-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,14,8,.15), rgba(26,14,8,.75)); pointer-events: none; }
.yt.playing .yt-frame::after { display: none; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--on-dark); }
.yt-play span { width: 4.4rem; height: 4.4rem; display: grid; place-items: center; background: var(--gold); color: var(--night); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: transform .2s; }
.yt-play:hover span { transform: scale(1.1); }
.yt-play svg { width: 1.4rem; height: 1.4rem; margin-left: .2rem; }
.yt figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; font-size: .95rem; color: var(--muted); margin-top: .6rem; }
.yt figcaption b { color: var(--ink); font-weight: 600; }
.yt figcaption a { color: var(--saddle); }

/* ===== about ===== */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.values { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 1px dashed var(--gold-deep); }
.values li { padding-block: 1.1rem; border-bottom: 1px dashed var(--gold-deep); display: grid; gap: .3rem; }
.values strong { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--saddle); }
.values span { color: var(--muted); }
.story-soon { margin-top: 1.6rem; padding: 1.4rem 1.5rem; border: 1px dashed var(--gold-deep); color: var(--muted); }

/* ===== site footer ===== */
.site-foot { background: #120904; color: var(--on-dark-muted); border-top: 1px solid var(--gold); padding-block: clamp(2.5rem, 5vw, 4rem) 1.6rem; font-size: 1rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot-grid h4 { margin: 0 0 .8rem; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot-grid a { color: var(--on-dark); text-decoration: none; }
.foot-grid a:hover { color: var(--gold-hi); }
.foot-brand img { height: 3.4rem; width: auto; }
.foot-brand p { margin: .8rem 0 0; max-width: 30ch; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line-dark); font-size: .9rem; }
.foot-base a { color: var(--gold); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
/* fixes: dark boxes inside light sections, footer overrides */
.aside-box .btn.solid { background: var(--gold); color: var(--night); box-shadow: 0 0 0 3px var(--night-2), 0 0 0 4px var(--gold); }
.aside-box .btn.solid:hover { background: var(--gold-hi); }
.aside-box .btn.line { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 3px var(--night-2), 0 0 0 4px var(--gold); }
/* request hand-off */
.tray { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding: .8rem 1rem; background: rgba(201,164,92,.12); border: 1px solid var(--gold); color: var(--on-dark); text-decoration: none; }
.tray[hidden] { display: none; }
.tray b { color: var(--gold-hi); font-weight: 600; }
.tray-go { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.tray-go::after { content: " →"; }
.tray:hover { background: rgba(201,164,92,.2); }
.req-band .wrap { display: grid; gap: 1rem 3rem; align-items: center; }
@media (min-width: 900px) { .req-band .wrap { grid-template-columns: 1fr auto; } .req-band .actions { margin-top: 0; } }
.req-intro { font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); color: var(--on-dark-muted); max-width: 52ch; margin: 0; }
.req-intro a { color: var(--gold); }
#request .builder { margin-top: 1.6rem; }
.page-hero + #request.sec { padding-top: clamp(2rem, 4vw, 3rem); }
.bar .cta[aria-current="page"] { background: var(--gold-hi); }

/* turned over: snap flat and stay flat */
.card3d.flipped .tilt { transform: none; animation: none; transition: transform .15s ease-out; }

/* stacked fractions for hat sizes (the brand fonts have no ⅛ ⅜ ⅝ ⅞ glyphs) */
.fr { display: inline-flex; align-items: baseline; font-size: .5em; line-height: 1; margin-left: .12em; vertical-align: .28em; letter-spacing: 0; }
.fr sup, .fr sub { font-size: 1em; line-height: 1; vertical-align: 0; position: relative; }
.fr sup { top: -.38em; } .fr sub { top: .38em; }
.meas .fr, #qs-note .fr { font-size: .72em; vertical-align: .12em; margin-left: .15em; }
