/* Velsurne — Experimental Website 001 by OwnSite Studio.
   The palette comes from the object: night, lime plaster, brass, and the colour of 2700 K. */

@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/bodoni-moda.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/bodoni-moda-italic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --night: #0b0a09;
  --night-2: #151310;
  --plaster: #ebe5da;
  --plaster-2: #ddd5c7;
  --dust: #a59d90;
  --dust-dark: #6d665c;
  --brass: #c9a46a;
  --ember: #ffc887;
  --line: rgba(235, 229, 218, 0.14);
  --line-strong: rgba(235, 229, 218, 0.32);

  --bg: var(--night);
  --fg: var(--plaster);
  --muted: var(--dust);
  --rule: var(--line);
  --rule-strong: var(--line-strong);

  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  color-scheme: dark;
}

/* Studio reads in daylight: same brand, the other half of the day. */
.theme-day {
  --bg: var(--plaster);
  --fg: #1a1814;
  --muted: #6b6458;
  --rule: rgba(26, 24, 20, 0.14);
  --rule-strong: rgba(26, 24, 20, 0.34);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05vw + 10px, 20px);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ember); color: #1a1208; }

:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: 4px;
}
.theme-day :focus-visible { outline-color: #8a5a17; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--fg); color: var(--bg);
  padding: 10px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ——— Type ——————————————————————————————————————————————— */
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-weight: 400;
  font-size: clamp(3rem, 8.4vw, 9.6rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 400; }
.h2 {
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
.lede {
  font-size: clamp(1.15rem, 1.4vw + 0.4rem, 1.6rem);
  line-height: 1.42;
  max-width: 34ch;
  margin: 0;
}
.prose p { margin: 0 0 1em; max-width: 60ch; }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

/* ——— Layout ——————————————————————————————————————————————— */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 32px);
}
.section { padding: clamp(96px, 14vw, 220px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--rule); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ——— Header ——————————————————————————————————————————————— */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  display: inline-flex; align-items: baseline; gap: 14px;
  text-decoration: none;
}
.wordmark-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.32em;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
}
/* The eight-letter wordmark keeps the mobile header on one line on 320 px screens. */
@media (max-width: 359px) { .wordmark-name { letter-spacing: 0.2em; } }
.wordmark-tag { display: none; }
@media (min-width: 900px) { .wordmark-tag { display: inline; } }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--fg); opacity: 0.72;
  padding: 10px 0; position: relative;
  transition: opacity 0.3s;
}
.nav a:hover, .nav a[aria-current='page'] { opacity: 1; }
.nav a[aria-current='page']::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
}
.nav .nav-cta {
  opacity: 1; border: 1px solid var(--rule-strong); padding: 10px 16px; border-radius: 0;
}
.nav .nav-cta:hover { border-color: var(--fg); }
.menu-btn {
  display: none; background: none; border: 0; padding: 12px 0 12px 12px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--night); color: var(--plaster);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease), visibility 0s; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a {
  display: block; text-decoration: none;
  font-size: clamp(2.8rem, 14vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em;
  padding: 6px 0;
}
.menu li a[aria-current='page'] { font-style: italic; }
.menu-close {
  position: absolute; top: 0; right: var(--gutter); height: var(--header-h);
  background: none; border: 0; cursor: pointer; padding: 0 0 0 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ——— Buttons ——————————————————————————————————————————————— */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  padding: 18px 26px;
  border: 1px solid var(--fg);
  background: var(--fg); color: var(--bg);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--fg); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .btn:hover .arrow { transform: none; } }

/* The switch is the brand's one gesture: a line that becomes light. */
.switch {
  display: inline-flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.switch-track {
  width: 46px; height: 22px; border: 1px solid var(--rule-strong); border-radius: 22px; position: relative;
  transition: border-color 0.4s, background 0.4s;
}
.switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--dust-dark);
  transition: transform 0.5s var(--ease), background 0.5s, box-shadow 0.5s;
}
.switch[aria-checked='true'] .switch-track { border-color: var(--ember); }
.switch[aria-checked='true'] .switch-track::after {
  transform: translateX(24px); background: var(--ember);
  box-shadow: 0 0 14px 2px rgba(255, 200, 135, 0.55);
}

/* ——— Hero ——————————————————————————————————————————————— */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--night);
}
.stage-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.6s var(--ease);
  cursor: grab;
}
.stage-canvas.is-ready { opacity: 1; }
.stage-canvas.is-dragging { cursor: grabbing; }
.stage-fallback {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  color: var(--muted);
}
.no-webgl .stage-fallback { display: flex; }
.no-webgl .stage-canvas { display: none; }
.stage-fallback svg { height: 78%; width: auto; }

.hero-copy {
  position: absolute; z-index: 2; inset: auto 0 0 0;
  padding-bottom: clamp(36px, 7vh, 88px);
  pointer-events: none;
}
.hero-copy .wrap > * { pointer-events: auto; }
.hero-copy .display { max-width: 9.5ch; }
.hero-meta {
  margin-top: clamp(24px, 4vh, 44px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px;
}
.hero-meta .lede { max-width: 32ch; color: rgba(235, 229, 218, 0.82); font-size: clamp(1.05rem, 1vw + 0.5rem, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-top {
  position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--header-h) + clamp(16px, 4vh, 48px));
  pointer-events: none;
}
.hero-top .wrap { display: flex; justify-content: space-between; gap: 20px; }
.hint {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.hint::before { content: ''; width: 28px; height: 1px; background: currentColor; }

/* Copy sits over a dark room; a soft shade keeps it legible without a box. */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(11, 10, 9, 0.78) 0%, rgba(11, 10, 9, 0) 46%),
    linear-gradient(to bottom, rgba(11, 10, 9, 0.6) 0%, rgba(11, 10, 9, 0) 22%);
}
@media (min-width: 1000px) {
  .hero-copy { inset: 0 auto 0 0; display: flex; align-items: flex-end; width: 100%; }
  .hero::after {
    background:
      linear-gradient(to right, rgba(11, 10, 9, 0.7) 0%, rgba(11, 10, 9, 0) 52%),
      linear-gradient(to bottom, rgba(11, 10, 9, 0.6) 0%, rgba(11, 10, 9, 0) 22%);
  }
}
.hero-eyebrow { display: none; margin: 0 0 18px; }
@media (max-width: 999px) {
  .hero-top { display: none; }
  .hero-eyebrow { display: block; }
}
@media (max-width: 599px) {
  .hero-actions { width: 100%; justify-content: space-between; gap: 12px 16px; }
  .hero-actions .btn { padding: 16px 18px; }
  .hero-meta .lede { font-size: 1.02rem; }
}
@media (max-width: 999px) {
  .hero { min-height: 680px; }
  .hero-copy .display { font-size: clamp(2.9rem, 13vw, 5.4rem); max-width: 8.5ch; }
}

/* ——— Principle ——————————————————————————————————————————— */
.principle .grid { align-items: start; row-gap: 56px; }
.principle-head { grid-column: 1 / -1; }
.principle-head .h2 { max-width: 15ch; margin-top: 22px; }
.principle-drawing { grid-column: 1 / span 7; }
.principle-text { grid-column: 9 / span 4; padding-top: 8px; }
.principle-text .prose p:first-child { font-size: 1.2em; line-height: 1.4; }
@media (max-width: 899px) {
  .principle-drawing, .principle-text { grid-column: 1 / -1; }
}
.drawing { width: 100%; height: auto; color: var(--fg); }
.drawing text { font-family: var(--mono); font-size: 22px; letter-spacing: 0.08em; fill: var(--muted); }
.drawing .ray { stroke: var(--ember); }
.caption { margin-top: 14px; }

/* ——— Gestures ——————————————————————————————————————————— */
.gestures-list { list-style: none; margin: 64px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.gesture {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px);
  padding: clamp(28px, 4vw, 52px) 0; border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.gesture .num { grid-column: 1 / span 1; }
.gesture .h3 { grid-column: 2 / span 4; font-size: clamp(2rem, 4.4vw, 4.4rem); }
.gesture p { grid-column: 7 / span 4; margin: 0; }
.gesture .spec { grid-column: 11 / span 2; text-align: right; }
@media (max-width: 899px) {
  .gesture { row-gap: 14px; }
  .gesture .num { grid-column: 1 / span 2; }
  .gesture .h3 { grid-column: 3 / -1; }
  .gesture p { grid-column: 3 / -1; }
  .gesture .spec { grid-column: 3 / -1; text-align: left; }
}

/* ——— Finishes ——————————————————————————————————————————— */
.finish-strip {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 24px);
}
.finish-strip a { display: block; text-decoration: none; }
.finish-strip img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #2a2119; transition: filter 0.6s var(--ease); filter: brightness(0.9); }
.finish-strip a:hover img, .finish-strip a:focus-visible img { filter: brightness(1.06); }
.finish-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; }
.finish-name .h3 { font-size: clamp(1.2rem, 1.6vw, 1.6rem); }
.finish-name .label { opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
.finish-strip a:hover .finish-name .label, .finish-strip a:focus-visible .finish-name .label { opacity: 1; }
.finish-note { display: block; margin-top: 6px; font-size: 0.92em; }
@media (max-width: 899px) {
  .finish-strip {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
    scrollbar-width: none;
  }
  .finish-strip::-webkit-scrollbar { display: none; }
  .finish-strip li { scroll-snap-align: start; }
  .finish-name .label { opacity: 1; }
}

/* ——— Uses ——————————————————————————————————————————————— */
.uses .grid { row-gap: 48px; }
.uses-head { grid-column: 1 / span 5; }
.uses-list { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; }
.uses-list li { padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--rule); }
.uses-list li:last-child { border-bottom: 0; margin-bottom: 0; }
.uses-list .h3 { margin: 10px 0 14px; }
@media (max-width: 899px) { .uses-head, .uses-list { grid-column: 1 / -1; } }

/* ——— Closing call ——————————————————————————————————————— */
.closing { text-align: left; }
.closing .h2 { max-width: 14ch; }
.closing .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }

/* ——— Footer ——————————————————————————————————————————————— */
.site-footer { border-top: 1px solid var(--rule); padding: 56px 0 40px; }
.site-footer .grid { row-gap: 32px; }
.footer-brand { grid-column: 1 / span 4; }
.footer-nav { grid-column: 6 / span 3; list-style: none; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-note { grid-column: 9 / span 4; font-size: 0.86em; color: var(--muted); }
.footer-note p { margin: 0 0 0.8em; }
.footer-base { margin-top: 48px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 899px) {
  .footer-brand, .footer-nav, .footer-note { grid-column: 1 / -1; }
}

/* ——— Product: configurator ——————————————————————————————— */
.product-intro { padding: calc(var(--header-h) + clamp(40px, 8vw, 110px)) 0 clamp(40px, 6vw, 80px); }
.product-intro .grid { row-gap: 28px; align-items: end; }
.product-intro .display { grid-column: 1 / span 8; }
.product-intro .lede { grid-column: 9 / span 4; }
@media (max-width: 899px) { .product-intro .display, .product-intro .lede { grid-column: 1 / -1; } }

.config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.config-stage {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  overflow: hidden; background: var(--night);
}
.config-panel {
  border-left: 1px solid var(--rule);
  padding: 36px 32px 48px;
}
@media (max-width: 899px) {
  .config { grid-template-columns: 1fr; }
  .config-stage { height: 56svh; min-height: 340px; }
  .config-panel { border-left: 0; padding: 28px var(--gutter) 40px; }
}

.stage-title {
  position: absolute; z-index: 3; left: 0; top: 0; padding: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 44px);
  pointer-events: none;
}
.stage-title .display { font-size: clamp(3rem, 7vw, 7.4rem); margin-top: 12px; }
.panel-lede { margin: 0 0 32px; font-size: 1.12rem; line-height: 1.45; }
.config { margin-top: var(--header-h); }
.config-stage { top: var(--header-h); z-index: 2; } /* the panel scrolls under the stage, never over it */
@media (max-width: 899px) {
  .stage-title .display { font-size: clamp(2.4rem, 11vw, 3.4rem); margin-top: 6px; }
  .stage-title { padding: 16px var(--gutter); }
}
.stage-ui {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 18px 20px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 10, 9, 0.6), rgba(11, 10, 9, 0));
}
.stage-ui > * { pointer-events: auto; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  background: rgba(11, 10, 9, 0.5); border: 1px solid var(--line); color: var(--plaster);
  cursor: pointer; font-family: var(--mono); font-size: 16px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.icon-btn:hover { border-color: var(--plaster); }
.icon-row { display: flex; gap: 6px; }
.stage-status { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dust); }

.hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hotspot {
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; margin: -16px 0 0 -16px;
  display: grid; place-items: center;
  border-radius: 50%; border: 0; padding: 0; background: transparent;
  cursor: pointer; pointer-events: auto;
  opacity: 0; transition: opacity 0.35s;
}
.hotspot.is-visible { opacity: 1; }
.hotspot[hidden] { display: none; }
.hotspot span {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(255, 220, 170, 0.9);
  background: rgba(11, 10, 9, 0.55);
  font-family: var(--mono); font-size: 10px; line-height: 20px; text-align: center; color: #fff;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.hotspot:hover span, .hotspot[aria-expanded='true'] span { transform: scale(1.15); background: var(--ember); color: #1a1208; }
.hide-hotspots .hotspot { display: none; }

.panel-group { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.panel-group:first-child { padding-top: 0; }
.panel-group:last-child { border-bottom: 0; }
.panel-group legend, .panel-head { padding: 0; margin-bottom: 14px; }
.panel-group legend { float: left; width: 100%; }
.panel-group legend + * { clear: both; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.panel-title .h3 { font-size: 1.9rem; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border: 1px solid var(--rule); cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  min-height: 44px;
  transition: border-color 0.25s;
}
.choice:hover { border-color: var(--rule-strong); }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--fg); }
.choice:has(input:focus-visible) { outline: 1px solid var(--ember); outline-offset: 3px; }
.swatch { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.swatch-brass { background: radial-gradient(circle at 35% 30%, #f2d9a6, #c9a46a 45%, #6e5326 100%); }
.swatch-graphite { background: radial-gradient(circle at 35% 30%, #77777b, #2c2c2e 50%, #0d0d0e 100%); }
.swatch-bronze { background: radial-gradient(circle at 35% 30%, #b48e66, #6f5034 50%, #2c1d10 100%); }
.swatch-lime { background: radial-gradient(circle at 35% 30%, #ffffff, #e6dfd2 55%, #a69e90 100%); }
.swatch-travertine { background: repeating-linear-gradient(176deg, #d8cbb4 0 5px, #c7b799 5px 6px, #d8cbb4 6px 9px); }
.swatch-basalt { background: radial-gradient(circle at 40% 35%, #46433f, #2b2a28 60%, #191817 100%); }
.swatch-k { width: 14px; height: 14px; }
.k2200 { background: #ff9a3c; }
.k2700 { background: #ffb46b; }
.k3000 { background: #ffc58f; }

.range { width: 100%; display: grid; gap: 10px; }
.range input[type='range'] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0;
}
.range input[type='range']::-webkit-slider-runnable-track { height: 1px; background: var(--rule-strong); }
.range input[type='range']::-moz-range-track { height: 1px; background: var(--rule-strong); }
.range input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--ember); border: 0; box-shadow: 0 0 12px rgba(255, 200, 135, 0.5);
}
.range input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ember); border: 0; }
.range input:disabled { opacity: 0.4; cursor: not-allowed; }

.views { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.view-btn {
  text-align: left; padding: 12px 14px; min-height: 44px; border: 1px solid var(--rule); background: none; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.view-btn:hover { border-color: var(--rule-strong); }
.view-btn[aria-pressed='true'] { border-color: var(--fg); }

.detail-card {
  margin-top: 4px; padding: 18px 0 0; min-height: 132px;
}
.detail-card .h3 { font-size: 1.45rem; margin: 6px 0 8px; }
.detail-card p { margin: 0; font-size: 0.95em; }
.detail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.detail-list button {
  display: flex; gap: 14px; align-items: baseline; width: 100%; text-align: left;
  padding: 10px 0; min-height: 44px; background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer;
  font-size: 1rem;
}
.detail-list button span:first-child { font-family: var(--mono); font-size: 11px; color: var(--muted); width: 22px; flex: none; }
.detail-list button[aria-expanded='true'] { font-style: italic; }
.detail-list button:hover { color: #fff; }

.summary { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); line-height: 1.7; }
.panel-cta { margin-top: 18px; width: 100%; justify-content: space-between; }

/* ——— Product: details & specification —————————————————— */
.details-list { list-style: none; margin: 56px 0 0; padding: 0; counter-reset: d; border-top: 1px solid var(--rule); }
.details-list li {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px);
  padding: 36px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.details-list .num { grid-column: 1 / span 1; }
.details-list .h3 { grid-column: 2 / span 5; }
.details-list p { grid-column: 7 / span 5; margin: 0; }
@media (max-width: 899px) {
  .details-list li { row-gap: 12px; }
  .details-list .num { grid-column: 1 / span 2; }
  .details-list .h3, .details-list p { grid-column: 3 / -1; }
}

.spec .grid { row-gap: 56px; }
.spec-head { grid-column: 1 / span 4; }
.spec-table { grid-column: 6 / -1; margin: 0; }
.spec-table div {
  display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.spec-table div:first-child { border-top: 1px solid var(--rule); }
.spec-table dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.spec-table dd { margin: 0; }
.spec-drawing { grid-column: 1 / -1; margin-top: 24px; }
.spec-drawing .drawing { max-height: 720px; }
@media (max-width: 899px) { .spec-head, .spec-table { grid-column: 1 / -1; } .spec-table div { grid-template-columns: 1fr; gap: 4px; } }

/* ——— Studio ——————————————————————————————————————————————— */
.page-intro { padding: calc(var(--header-h) + clamp(56px, 10vw, 150px)) 0 clamp(64px, 9vw, 140px); }
.page-intro .display { max-width: 12ch; }
.page-intro .lede { margin-top: 40px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(16px, 3vw, 48px); row-gap: 48px; }
.principles li { border-top: 1px solid var(--rule-strong); padding-top: 22px; }
.principles .h3 { margin: 18px 0 16px; }
.principles p { margin: 0; }
@media (max-width: 899px) { .principles { grid-template-columns: 1fr; } }

.process { list-style: none; margin: 56px 0 0; padding: 0; }
.process li {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px);
  padding: 32px 0; border-top: 1px solid var(--rule); align-items: baseline;
}
.process .num { grid-column: 1 / span 1; }
.process .h3 { grid-column: 2 / span 5; }
.process p { grid-column: 7 / span 6; margin: 0; }
@media (max-width: 899px) {
  .process li { row-gap: 10px; }
  .process .num { grid-column: 1 / span 2; }
  .process .h3, .process p { grid-column: 3 / -1; }
}

.materials { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.material .chip { aspect-ratio: 3 / 4; width: 100%; margin-bottom: 16px; }
.material .h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.material p { margin: 0; font-size: 0.92em; color: var(--muted); }
@media (max-width: 999px) { .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chip-brass { background: linear-gradient(100deg, #6e5326 0%, #c9a46a 30%, #f0d8a8 46%, #b48e55 58%, #7a5c2c 100%); }
.chip-bronze { background: linear-gradient(100deg, #2c1d10 0%, #6f5034 34%, #a7845e 48%, #5f4229 64%, #2a1c0f 100%); }
.chip-graphite { background: linear-gradient(100deg, #0d0d0e 0%, #2c2c2e 36%, #5f5f63 50%, #232325 64%, #0b0b0c 100%); }
.chip-travertine { background: repeating-linear-gradient(178deg, #d8cbb4 0 13px, #c4b394 13px 14px, #d3c4a8 14px 22px, #cbbb9e 22px 23px); }
.chip-basalt { background: radial-gradient(circle at 30% 20%, #4a4743 0%, #2b2a28 45%, #161514 100%); }

.identity .grid { row-gap: 40px; align-items: start; }
.identity-word { grid-column: 1 / span 6; }
.identity-word .display { font-size: clamp(3rem, 9vw, 8.25rem); letter-spacing: 0.06em; text-transform: uppercase; }
/* Sized for an eight-letter name: it stays clear of the text column and inside a 320 px screen. */
@media (max-width: 899px) { .identity-word .display { font-size: clamp(3rem, 15vw, 7rem); } }
.identity-text { grid-column: 8 / span 5; }
@media (max-width: 899px) { .identity-word, .identity-text { grid-column: 1 / -1; } }

/* A night band on a daylight page: both halves of the pair flip, or a .btn (fg on bg) turns light on light. */
.about-site { --bg: var(--night); background: var(--night); color: var(--plaster); --fg: var(--plaster); --muted: var(--dust); --rule: var(--line); --rule-strong: var(--line-strong); }
.about-site :focus-visible { outline-color: var(--ember); }
.about-site .grid { row-gap: 40px; }
.about-site .h2 { grid-column: 1 / span 6; }
.about-site .prose { grid-column: 8 / span 5; }
@media (max-width: 899px) { .about-site .h2, .about-site .prose { grid-column: 1 / -1; } }

/* ——— Contact ——————————————————————————————————————————————— */
.contact .grid { row-gap: 48px; align-items: start; }
.contact-aside { grid-column: 1 / span 4; }
.contact-form { grid-column: 6 / -1; }
@media (max-width: 899px) { .contact-aside, .contact-form { grid-column: 1 / -1; } }
.notice {
  border: 1px solid var(--rule-strong); padding: 22px 24px; margin-bottom: 40px;
  font-size: 0.95em;
}
.notice strong { font-weight: 500; font-style: italic; }
.field { display: grid; gap: 8px; margin-bottom: 26px; }
.field label, .field legend { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  padding: 12px 0; font-size: 1.15rem; min-height: 48px;
}
.field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--night); color: var(--plaster); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ember); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }
.field-error { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: #ff9f7a; min-height: 0; }
.field[data-invalid] input, .field[data-invalid] textarea, .field[data-invalid] select { border-bottom-color: #ff9f7a; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 12px; }
.preview { margin-top: 48px; border-top: 1px solid var(--rule-strong); padding-top: 28px; }
.preview[hidden] { display: none; }
.preview pre {
  white-space: pre-wrap; font-family: var(--mono); font-size: 13px; line-height: 1.7; margin: 18px 0 24px;
  padding: 20px; border: 1px solid var(--rule); max-height: 340px; overflow: auto;
}
.direct { margin-top: 40px; }
.direct a { text-underline-offset: 4px; }

/* ——— Reveal ——————————————————————————————————————————————— */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .stage-canvas { transition: none; }
}

/* ——— 404 ——————————————————————————————————————————————————— */
.lost { min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); }
.lost .display { max-width: 11ch; }
.lost .row { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Small stages: controls only, kept to the right so they never cover the plinth. */
@media (max-width: 899px) {
  .stage-ui { left: auto; padding: 12px; background: none; }
  .stage-ui .icon-row { flex-direction: column; }
  .stage-status { display: none; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ——— Language switch (mirrors ownsitestudio.com: EN / ES on wide screens, one target on phones) — */
.lang { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; }
.lang a { display: inline-grid; place-items: center; min-width: 32px; min-height: 44px; text-decoration: none; opacity: 0.72; }
.nav .lang a { padding: 0; }
.lang a:hover, .lang a[aria-current='true'] { opacity: 1; }
.nav .lang a[aria-current='true']::after { display: none; }
.lang span { opacity: 0.35; }
.header-mobile { display: none; align-items: center; gap: 18px; }
.lang-mobile {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-decoration: none;
}
@media (max-width: 760px) { .header-mobile { display: flex; } }
.menu-lang { margin: 0 0 18px; }
.menu-lang a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; text-underline-offset: 5px; }

/* ——— Authorship & commercial link: quiet, in the footer's own voice ——— */
.footer-cta { margin-top: 1.2em; color: var(--fg); }
.footer-cta a { text-underline-offset: 4px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px !important; }

/* ——— Legal ——— */
.legal-intro .display { max-width: 13ch; }
.legal-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.legal-list > li {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px);
  padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.legal-list .num { grid-column: 1 / span 1; }
.legal-list .h3 { grid-column: 2 / span 4; }
.legal-list .prose { grid-column: 6 / -1; }
.legal-list .prose a { text-underline-offset: 4px; }
.legal-list code { font-family: var(--mono); font-size: 0.85em; }
.legal-points { margin: 0 0 1em; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.legal-points li { padding: 8px 0; border-top: 1px solid var(--rule); break-inside: avoid; font-size: 0.95em; }
.legal-updated { margin-top: 40px; }
@media (max-width: 899px) {
  .legal-list > li { row-gap: 14px; }
  .legal-list .num { grid-column: 1 / span 2; }
  .legal-list .h3, .legal-list .prose { grid-column: 3 / -1; }
  .legal-points { columns: 1; }
}

@media (max-width: 899px) { .stage-title .label { letter-spacing: 0.08em; } }
