﻿/* Outright. Light only, by the owner's decision: there is no dark palette. */
@font-face { font-family: "Bricolage"; src: url("./fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Onest"; src: url("./fonts/onest-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light only;
  --stone: #eceeef;
  --paper: #f8f8f6;
  --ink: #14171a;
  --soft: #4a5157;
  --line: #cfd4d7;
  --green: #0e5a3c;
  --green-deep: #0a4530;
  --oak: #c9a777;
  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fine grain over the stone ground, like a printed sheet. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .09 0 0 0 0 .1 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
h1, h2, h3, h4, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: .98; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 5.2vw, 4.4rem); }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--stone) 84%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.3rem/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.brand-mark { width: 18px; height: 22px; border-radius: 6px; border: 4px solid var(--oak); background: #fff; }
.top nav { display: flex; gap: clamp(14px, 3vw, 34px); margin-left: auto; }
.top nav a { text-decoration: none; font-weight: 500; color: var(--soft); padding: 10px 2px; }
.top nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green); color: #fff;
  font: 600 1.0625rem/1 var(--body); text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -12px rgba(14,90,60,.8);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--green-deep); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn-wide { width: 100%; }
.link { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; padding: 12px 4px; }

/* Hero: words on the left, the machine standing full height on the right. */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center;
  column-gap: clamp(8px, 2vw, 32px);
  max-width: 1440px; margin: 0 auto; padding: clamp(18px, 3vw, 40px) var(--gutter) 0;
}
.hero h1 { font-size: clamp(2.7rem, 6.3vw, 6.6rem); line-height: .9; letter-spacing: -0.05em; }
.lede { max-width: 30em; margin-top: clamp(18px, 2.2vw, 30px); font-size: clamp(1.0625rem, 1.45vw, 1.3rem); color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin-top: 28px; }
.stage { position: relative; height: clamp(440px, calc(100vh - 250px), 780px); }
.stage::before {
  content: ""; position: absolute; inset: 6% 4% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, #fff 0%, rgba(255,255,255,.7) 45%, rgba(255,255,255,0) 100%);
}
.stage img, .viewer-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; transition: opacity .18s ease; }
.viewer-stage img { inset: 3%; width: 94%; height: 94%; }
.stage img { inset: auto auto 0 0; width: 92%; height: 92%; object-position: 50% 100%; }
.stage img.is-swapping, .viewer-stage img.is-swapping { opacity: 0; }
.stamp {
  position: absolute; right: 0; top: 1%;
  width: clamp(104px, 11vw, 168px); color: var(--green);
  transform: rotate(-13deg); pointer-events: none;
  font-family: var(--body); font-weight: 600; text-transform: uppercase;
}
.stamp text { fill: currentColor; }
.stamp .stamp-big { font: 700 29px/1 var(--display); letter-spacing: -0.02em; text-transform: none; }

.facts {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  border-top: 1px solid var(--ink); text-align: left;
}
.facts li { padding: 18px 18px 0 0; }
.facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.facts strong { display: block; font: 600 clamp(1.25rem, 2.1vw, 1.75rem)/1.1 var(--display); letter-spacing: -0.025em; }
.facts span { color: var(--soft); font-size: .98rem; }

/* At home */
.uses { padding: clamp(84px, 12vw, 170px) var(--gutter) 0; max-width: 1312px; margin: 0 auto; }
.uses h2 { max-width: 13em; }
.uses-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: clamp(30px, 4vw, 56px); }
.use { grid-column: span 2; padding: clamp(22px, 2.6vw, 36px); border-radius: 22px; background: var(--paper); border: 1px solid #fff; }
.use-wide { grid-column: span 3; background: linear-gradient(135deg, #f4e9d8, #ead9bd); border-color: #f8efe2; }
.use-wide:last-child { background: var(--green); border-color: var(--green); color: #fff; }
.use h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); letter-spacing: -0.03em; line-height: 1.05; }
.use p { margin-top: 12px; max-width: 34em; color: var(--soft); }
.use-wide p { color: #453a2a; }
.use-wide:last-child p { color: #e3f0ea; }

/* Models */
.models { padding: clamp(84px, 12vw, 170px) var(--gutter) 0; max-width: 1312px; margin: 0 auto; }
.models-head p { max-width: 36em; margin-top: 18px; color: var(--soft); font-size: 1.15rem; }
.models-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); margin-top: clamp(28px, 4vw, 52px); align-items: start; }
.viewer { position: sticky; top: 84px; }
.viewer-stage {
  position: relative; height: min(74vh, 720px); min-height: 420px; border-radius: 28px;
  background: radial-gradient(120% 90% at 50% 18%, #fff 0%, var(--paper) 45%, #e3e6e7 100%);
  border: 1px solid #fff; overflow: hidden;
}
.viewer-caption { margin-top: 12px; color: var(--soft); font-size: .98rem; }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; border-radius: 20px; background: #dfe3e5; }
.tabs button {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  min-height: 62px; padding: 10px 12px; border: 0; border-radius: 15px; cursor: pointer;
  background: transparent; color: var(--soft); font-family: var(--body); text-align: left;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 6px 18px -10px rgba(20,23,26,.5); }
.tab-name { font: 600 1.12rem/1.05 var(--display); letter-spacing: -0.02em; }
.tab-price { font-size: .92rem; font-variant-numeric: tabular-nums; }

.model { margin-top: 30px; }
.model[hidden] { display: none; }
.model header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.model h3 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.price { font: 600 clamp(1.5rem, 2.4vw, 2rem)/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price span { font: 500 .95rem/1 var(--body); letter-spacing: 0; color: var(--green); margin-left: 6px; }
.pitch { margin-top: 14px; font-size: 1.2rem; max-width: 30em; }
.model h4 { margin-top: 30px; font: 600 .98rem/1.2 var(--body); color: var(--soft); }
.specs { margin-top: 8px; border-top: 1px solid var(--ink); }
.specs div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--soft); }
.specs dd { font-weight: 600; }
.can { margin-top: 10px; display: grid; gap: 10px; }
.can li { position: relative; padding-left: 30px; }
.can li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 15px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.can sup a { color: var(--green); font-weight: 700; text-decoration: none; padding: 0 3px; }
.example { margin-top: 30px; padding: 22px 24px; border-radius: 20px; background: var(--paper); border: 1px solid #fff; border-left: 5px solid var(--oak); }
.example h4 { margin-top: 0; }
.example p { margin-top: 6px; font-size: 1.1rem; }
.model .btn { margin-top: 28px; }
.source { margin-top: 28px; font-size: .9rem; color: var(--soft); max-width: 44em; }

/* Inside */
.inside { padding: clamp(84px, 12vw, 170px) var(--gutter) 0; max-width: 1312px; margin: 0 auto; }
.inside-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(28px, 4vw, 52px); border-top: 1px solid var(--ink); }
.inside-grid > div { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.inside-grid > div:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.inside-grid dt { color: var(--soft); font-size: .98rem; }
.inside-grid dd { margin-top: 6px; font: 600 clamp(1.35rem, 2.2vw, 1.85rem)/1.08 var(--display); letter-spacing: -0.03em; }
.inside-grid p { margin-top: 10px; color: var(--soft); max-width: 26em; }

/* Reserve */
.reserve {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px);
  margin: clamp(84px, 12vw, 170px) var(--gutter) 0; padding: clamp(26px, 5vw, 72px);
  border-radius: 32px; background: linear-gradient(160deg, #fff 0%, #f4efe6 100%); border: 1px solid #fff;
  box-shadow: 0 40px 80px -60px rgba(20,23,26,.45);
}
.reserve-copy p { margin-top: 18px; font-size: 1.25rem; color: var(--soft); }
.steps { margin-top: 30px; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font: 700 1rem/1 var(--display); }
.reserve-form, .reserved { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 34px); }
.reserve-form[hidden] { display: none; }
legend, .field { font-weight: 600; }
.choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-height: 54px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.choice b { font: 600 1.1rem/1 var(--display); }
.choice i { font-style: normal; color: var(--soft); font-variant-numeric: tabular-nums; }
.choice input:checked + span { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.choice input:checked + span i { color: var(--green); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.field { display: block; margin-top: 18px; }
.field input { display: block; width: 100%; margin-top: 8px; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 400 1.0625rem var(--body); }
.field input:focus { border-color: var(--green); outline: none; }
.field input[aria-invalid="true"] { border-color: #a4262c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fbeaea; color: #7d1a1f; font-weight: 500; }
.form-msg[hidden] { display: none; }
.reserve-form .btn { margin-top: 20px; }
.fine { margin-top: 12px; font-size: .9rem; color: var(--soft); }
.reserved { text-align: center; align-self: center; }
.reserved[hidden] { display: none; }
.reserved svg { width: 64px; color: var(--green); }
.reserved h3 { margin-top: 12px; font-size: 2.4rem; }
.reserved p { margin-top: 12px; font-size: 1.15rem; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 44px var(--gutter) 40px; color: var(--soft); }

@media (max-width: 920px) {
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li { padding: 16px 12px 16px 0; }
  .facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .uses-grid { grid-template-columns: 1fr; }
  .use, .use-wide { grid-column: auto; }
  .models-body, .reserve { grid-template-columns: minmax(0, 1fr); }
  .viewer { position: static; }
  .viewer-stage { height: 58vh; min-height: 380px; }
  .inside-grid { grid-template-columns: 1fr; }
  .inside-grid > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .stage { height: auto; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin: 34px auto 0; }
  .stage img { inset: 0; width: 100%; height: 100%; }
  .stamp { top: -46px; right: 0; width: 88px; }
  .reserve { margin-left: 8px; margin-right: 8px; border-radius: 26px; }
}
@media (max-width: 520px) {
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .hero-actions .btn { width: 100%; }
  .choice { grid-template-columns: 1fr; }
  .choice b { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
