:root {
  --bg: #f6f3ec;
  --card: #ffffff;
  --ink: #1f2a22;
  --muted: #6b7068;
  --line: #e8e3d8;
  --green: #1f5a2e;
  --green-ink: #ffffff;
  --yellow: #f2d93a;
  --yellow-soft: #fbf3cc;
  --blue: #2f74c4;
  --blue-soft: #e5eef9;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(40, 35, 20, .04), 0 8px 24px rgba(40, 35, 20, .05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171a16;
    --card: #20241f;
    --ink: #ecefe8;
    --muted: #a3a99f;
    --line: #2f352d;
    --green: #f2d93a;
    --green-ink: #1c1d10;
    --yellow-soft: #34311b;
    --blue: #6fa6e8;
    --blue-soft: #1f2b3a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: .6em; }
.muted { color: var(--muted); }
.tiny { font-size: .85rem; color: var(--muted); margin-top: .8em; }
.section { padding: 56px 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--green); color: var(--green-ink); }
.btn.ghost { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; color: var(--green); letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.brand.small { font-size: 1.05rem; gap: 8px; }
.brand.small img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); background: var(--card); }
.nav-links a.pill { background: var(--green); color: var(--green-ink); }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 6px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 40px 0 32px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 34px; }
.quick-facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.quick-facts li { background: var(--card); border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow); display: flex; align-items: baseline; gap: 8px; }
.quick-facts strong { font-size: 1.5rem; color: var(--green); font-weight: 800; }
.quick-facts span { color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero-img { margin: 0; overflow: hidden; position: relative; padding: 0; }
.hero-img img { width: 100%; height: auto; aspect-ratio: 1198 / 1313; object-fit: cover; }
.hero-img figcaption {
  position: absolute; left: 14px; bottom: 14px; font-size: .75rem; font-weight: 700;
  background: rgba(255, 255, 255, .85); color: #333; padding: 4px 10px; border-radius: 999px;
}

/* why */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.why-body p { font-size: 1.08rem; }
.why-body p:last-child { margin: 0; }

/* steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { padding: 18px 22px 24px; position: relative; }
.step-img { background: var(--bg); border-radius: 16px; aspect-ratio: 4 / 3.4; display: grid; place-items: center; margin-bottom: 18px; overflow: hidden; }
.step-img img { width: 100%; height: 100%; object-fit: contain; }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--yellow-soft); color: var(--green); font-weight: 800; font-size: .9rem; margin-bottom: 10px;
}
.step p { color: var(--muted); margin: 0; }

/* model */
.model-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.model-head p.muted { margin: 0; max-width: 34em; }
.model-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  border: 0; padding: 9px 16px; border-radius: 999px; background: var(--card); color: var(--muted);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.chip.on { background: var(--yellow-soft); color: var(--green); box-shadow: inset 0 0 0 1.5px transparent; }
.viewer { height: min(560px, 70vh); position: relative; overflow: hidden; cursor: grab; touch-action: none; }
.viewer:active { cursor: grabbing; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.spec { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.spec-k { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.spec-v { font-size: 1.3rem; font-weight: 800; }
.spec-n { font-size: .88rem; color: var(--muted); }

/* fit */
.fit { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; padding: 40px; align-items: center; }
.fit-form { margin: 22px 0 14px; display: flex; flex-direction: column; gap: 12px; }
.fit-row { display: flex; gap: 10px; }
.fit-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; font-weight: 700; color: var(--ink);
  padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg);
}
.fit-row input:focus { outline: none; border-color: var(--green); }
.seg { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; gap: 2px; align-self: flex-start; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--green); }
.seg.small { align-self: stretch; align-items: center; }
.fit-result { font-weight: 700; min-height: 1.6em; margin: 0; }
.fit-result a { color: inherit; }
.fit-result.good { color: var(--green); }
.sizes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sizes li {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 20px;
  border-radius: 16px; background: var(--bg); transition: background .2s, transform .2s;
}
.size-in { font-weight: 800; font-size: 1.15rem; }
.size-mm { color: var(--muted); font-weight: 600; }
.sizes li.match { background: var(--green); color: var(--green-ink); transform: scale(1.02); }
.sizes li.match .size-mm { color: inherit; opacity: .8; }

/* story */
.story { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; margin-top: 28px; align-items: start; }
.story-img { margin: 0; overflow: hidden; position: sticky; top: 96px; }
.story-img img { width: 100%; height: auto; }
.story-img figcaption { padding: 12px 18px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 40px; }
.timeline li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--card); box-shadow: inset 0 0 0 3px var(--line);
}
.timeline li.done::before { background: var(--green); box-shadow: 0 0 0 5px var(--yellow-soft); }
.timeline p { color: var(--muted); margin: 0; }
.timeline li:last-child { padding-bottom: 0; }

/* testing results */
.section-intro { max-width: 40em; margin-bottom: 0; }
.results { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; margin-top: 28px; align-items: stretch; }
.results-img { margin: 0; overflow: hidden; }
.results-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.result-list { display: grid; gap: 14px; align-content: start; }
.result { padding: 22px 24px; }
.result h3 { margin: 10px 0 4px; font-size: 1.2rem; }
.result p { margin: 0; color: var(--muted); }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tag.pass { background: var(--green); color: var(--green-ink); }
.tag.next { background: var(--yellow-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--yellow); }

/* session photos */
.session-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.session-strip .g-item { aspect-ratio: 1; }
.session-strip .g-item img { inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* coming */
.coming { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.coming li { padding: 22px; }
.coming h3 { margin: 12px 0 6px; }
.coming p { margin: 0; color: var(--muted); font-size: .95rem; }
.when { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; }
.coming li:first-child { box-shadow: inset 0 0 0 2px var(--yellow), var(--shadow); }

/* video */
.video-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.video-head p.muted { margin: 0; }
.btn.yt { gap: 8px; }
.btn.yt svg { color: #e62117; }
.video { overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* contact */
.contact { padding: 40px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px 40px; align-items: center; background: var(--green); color: var(--green-ink); box-shadow: none; }
.contact .eyebrow { color: var(--yellow); }
.contact .muted { color: inherit; opacity: .85; margin: 0; }
.contact .btn.primary { background: var(--yellow); color: #1f2a22; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-email { color: inherit; font-weight: 700; word-break: break-all; opacity: .9; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.g-item { border: 0; padding: 0; cursor: zoom-in; aspect-ratio: 3 / 4; position: relative; min-width: 0; overflow: hidden; transition: transform .2s; }
.g-item:hover { transform: translateY(-2px); }
.g-item img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.g-item.wide { grid-column: 1 / -1; aspect-ratio: 2000 / 1040; }
.g-item.wide img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 14px; }
.gallery-note { margin: 0; max-width: 40em; }

/* files */
.files { padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.files-main .btn { margin: 6px 0 18px; }
.files-main a:not(.btn) { color: var(--green); font-weight: 700; }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none;
  background: var(--bg); border-radius: 14px; padding: 12px 16px; font-weight: 700; color: var(--ink) !important;
  transition: background .15s;
}
.dl-list a::after { content: "↓"; color: var(--green); font-weight: 800; }
.dl-list a span { flex: 1; }
.dl-list a small { color: var(--muted); font-weight: 600; font-size: .85rem; }
.dl-list a:hover { background: var(--yellow-soft); }
.files-side { display: flex; flex-direction: column; gap: 24px; }
.settings { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.settings div { background: var(--bg); border-radius: 14px; padding: 12px 16px; }
.settings dt { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.settings dd { margin: 0; font-weight: 800; }
.assembly { border-top: 1px solid var(--line); padding-top: 22px; }
.assembly ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.assembly li { margin-bottom: 8px; break-inside: avoid; }

/* footer */
.footer { padding: 40px 0 56px; margin-top: 24px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; min-width: 220px; }
.footer a { text-decoration: none; font-weight: 600; font-size: .92rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20, 22, 18, .82); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: min(1200px, 100%); border-radius: 18px; background: #fff; }
.lb-close { position: absolute; top: 14px; right: 18px; font-size: 2rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact { background: #1f5a2e; color: #fff; }
}

/* responsive */
@media (max-width: 900px) {
  .hero, .split, .story, .fit, .files, .results, .contact { grid-template-columns: 1fr; }
  .coming { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-img img { aspect-ratio: 4 / 3; }
  .hero { gap: 28px; padding-top: 20px; }
  .hero-img { max-width: 520px; }
  .split { gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 140px 1fr; column-gap: 18px; align-items: start; }
  .step-img { grid-row: span 3; margin: 0; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .story-img { position: static; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit, .files, .contact { padding: 26px; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 8px 16px 18px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.pill { text-align: center; margin-top: 6px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  .step { grid-template-columns: 1fr; }
  .step-img { grid-row: auto; margin-bottom: 14px; }
  .viewer { height: 420px; }
  .coming { grid-template-columns: 1fr; }
  .brand { font-size: 1.15rem; }
  .settings { grid-template-columns: 1fr 1fr; }
  .fit-row { flex-direction: column; }
  .seg.small { align-self: flex-start; }
}
