/* WH-LAB — quiet, product-first layout. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --bg-stone: #eceee9;
  --dark: #000;
  --dark-alt: #161617;
  --dark-ink: #f5f5f7;
  --dark-muted: #a1a1a6;
  --link: #0066cc;
  --link-dark: #2997ff;
  --accent: #bf4800;
  --nav-h: 48px;
  --local-h: 52px;
  --content: 980px;
  --wide: 1200px;
  --radius: 28px;
  --font: "SF Pro JP", "SF Pro Display", "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", "Yu Gothic", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--local-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  line-break: strict;
  overflow-wrap: anywhere;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, summary { font: inherit; color: inherit; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .45; }
:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: 0; font-feature-settings: "palt"; text-wrap: balance; }
p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Global navigation */
.gnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 251, 253, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.gnav-inner { max-width: var(--content); height: 100%; margin: auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.gnav-brand { color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.gnav-brand:hover { text-decoration: none; }
.gnav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; }
.gnav-links a { color: rgba(0, 0, 0, .8); font-size: 13px; letter-spacing: .02em; }
.gnav-links a:hover, .gnav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.gnav-links a[aria-current="page"] { font-weight: 600; }
.gnav-toggle { display: none; width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; position: relative; }
.gnav-toggle span { position: absolute; left: 14px; width: 16px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform .3s ease, top .3s ease; }
.gnav-toggle span:first-child { top: 18px; }
.gnav-toggle span:last-child { top: 25px; }
.gnav-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.gnav-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* Product-local navigation */
.localnav {
  position: sticky; top: var(--nav-h); z-index: 40;
  height: var(--local-h);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.localnav-inner { max-width: var(--content); height: 100%; margin: auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.localnav-title { font-size: 21px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.localnav-title:hover { text-decoration: none; }
.localnav-links { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; font-size: 12px; }
.localnav-links::-webkit-scrollbar { display: none; }
.localnav-links a { color: var(--ink); opacity: .8; white-space: nowrap; }
.localnav-links a:hover { opacity: 1; text-decoration: none; color: var(--link); }

/* Shared type */
.eyebrow { display: block; font-size: 17px; font-weight: 600; color: var(--accent); margin-bottom: 8px; letter-spacing: .02em; }
.display { font-size: clamp(48px, 9vw, 96px); line-height: 1.05; }
.headline { font-size: clamp(32px, 5.2vw, 56px); }
.title { font-size: clamp(28px, 4vw, 40px); }
.subhead { font-size: clamp(19px, 2.4vw, 28px); font-weight: 500; line-height: 1.35; margin-top: 12px; }
.lead { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.6; color: var(--muted); font-weight: 500; }
.lead strong { color: var(--ink); font-weight: 600; }
.small { font-size: 12px; line-height: 1.6; color: var(--faint); }
sup.fn { font-size: .55em; vertical-align: super; line-height: 0; margin-left: 1px; }
sup.fn a { color: inherit; }

/* Inline links and buttons */
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; margin-top: 22px; font-size: 17px; }
.cta.left { justify-content: flex-start; }
.more { color: var(--link); white-space: nowrap; }
.more::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .35em; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: translateY(-.12em) rotate(45deg); }
.more.external::after { transform: translateY(-.15em); }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: 980px; border: 0;
  background: #0071e3; color: #fff; font-size: 17px; font-weight: 400;
}
.pill:hover { background: #0077ed; text-decoration: none; }
.pill.ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px currentColor; }
.pill.ghost:hover { background: var(--link); color: #fff; }

/* Home */
.home-hero { text-align: center; padding: 96px 22px 72px; }
.home-hero h1 { font-size: clamp(40px, 7vw, 80px); }
.home-hero .lead { margin-top: 18px; }

.tile {
  position: relative; overflow: hidden;
  text-align: center;
  background: var(--bg-alt);
  padding: 56px 22px 0;
}
.tile-copy { max-width: 720px; margin: 0 auto; }
.tile.stone { padding-bottom: 24px; }
.tile h2 { font-size: clamp(40px, 6vw, 56px); }
.tile h3 { font-size: clamp(30px, 3.6vw, 40px); }
.tile .subhead { margin-top: 8px; }
.tile .cta { margin-top: 16px; }
.tile.stone { background: var(--bg-stone); }
.tile.dark { background: var(--dark); color: var(--dark-ink); }
.tile.dark .eyebrow { color: #ff9f0a; }
.tile.dark a.more { color: var(--link-dark); }
.tile.dark .subhead { color: var(--dark-ink); }
.tile-media { margin: 40px auto 0; max-width: 1100px; }
.tile-media img { width: 100%; height: auto; }
.tile-media.crop { overflow: hidden; }
.tile-media.crop img { aspect-ratio: 2.6; object-fit: cover; transform: scale(1.25); }

.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.home-tiles { display: grid; gap: 12px; padding: 12px 12px 0; }
.tile-grid .tile, .home-tiles .tile { border-radius: 0; }
.tile-grid .tile { padding-top: 52px; display: flex; flex-direction: column; }
.tile-grid .tile-media { margin-top: auto; padding-top: 36px; width: 100%; }

/* Video frames */
.media-frame { position: relative; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.tile-grid .media-frame, .home-tiles .media-frame { border-radius: 18px 18px 0 0; }
.media-frame video { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.media-frame video::cue { font-family: var(--font); font-size: 15px; background: rgba(0, 0, 0, .55); }
.play {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px;
  border: 0; border-radius: 980px;
  background: rgba(232, 232, 237, .78); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; font-weight: 500;
  transition: background .2s ease;
}
.play:hover { background: rgba(255, 255, 255, .92); }
.play-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); }
.play-icon::before { content: ""; margin-left: 2px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.play.is-playing .play-icon::before { margin-left: 0; width: 8px; height: 9px; border: solid #fff; border-width: 0 2.5px; }
.media-note { margin-top: 10px; text-align: center; }

/* Product page */
.product-hero { text-align: center; padding: 72px 22px 0; background: var(--bg-stone); overflow: hidden; }
.product-hero .eyebrow { margin-bottom: 4px; }
.product-hero .subhead { margin-top: 14px; }
.product-hero .lead { max-width: 620px; margin: 18px auto 0; }
.product-hero .tile-media { margin-top: 28px; }

.section { padding: 120px 22px; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: var(--dark-ink); }
.section.dark .lead, .section.dark .small { color: var(--dark-muted); }
.section.dark .eyebrow { color: #ff9f0a; }
.container { max-width: var(--content); margin: 0 auto; }
.container.wide { max-width: var(--wide); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 20px; }

.statement { max-width: 820px; margin: 0 auto; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.45; font-weight: 600; color: var(--faint); font-feature-settings: "palt"; }
.statement strong { color: var(--ink); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 96px auto 0; max-width: var(--content); text-align: center; }
.stat-value { display: block; font-size: clamp(44px, 6vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.stat-value small { font-size: .42em; font-weight: 600; margin-left: 2px; }
.stat-label { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature { background: var(--bg); border-radius: var(--radius); padding: 40px; }
.feature-label { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.feature h3 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 17px; }
.feature p strong { color: var(--ink); font-weight: 600; }

.roadmap { border-top: 1px solid var(--line); }
.roadmap-item { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.roadmap-item h3 { font-size: 21px; line-height: 1.4; margin-bottom: 6px; }
.roadmap-item p { color: var(--muted); }
.status { display: inline-block; align-self: start; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 980px; border: 1px solid currentColor; justify-self: start; white-space: nowrap; }
.status.now { color: #1d7d3a; }
.status.dev { color: var(--accent); }
.status.later { color: var(--faint); }

.studio { margin-top: 72px; padding: 40px; border-radius: var(--radius); background: var(--bg-alt); display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.studio h3 { font-size: clamp(24px, 2.6vw, 30px); }
.studio p { color: var(--muted); }

.specs { border-top: 1px solid var(--line); margin: 0; }
.specs > div { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--ink); }
.kit { margin-top: 72px; text-align: center; }
.kit h3 { font-size: clamp(28px, 4vw, 40px); }
.kit p { margin-top: 14px; }

/* 3D viewer */
.viewer-shell { position: relative; }
.viewer { position: relative; height: min(68vh, 640px); min-height: 360px; border-radius: var(--radius); background: radial-gradient(ellipse at 50% 40%, #2a2a2d 0%, #111 62%, #000 100%); overflow: hidden; }
.viewer canvas { width: 100%; height: 100%; cursor: grab; touch-action: none; }
.viewer canvas:active { cursor: grabbing; }
.viewer canvas:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 24px; }
.seg { display: inline-flex; padding: 3px; border-radius: 980px; background: rgba(255, 255, 255, .1); }
.seg button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 980px; background: transparent; color: var(--dark-ink); font-size: 14px; }
.seg button:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.seg button.primary { background: var(--dark-ink); color: var(--ink); }
.slider { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 18px; border-radius: 980px; background: rgba(255, 255, 255, .1); font-size: 14px; color: var(--dark-muted); }
.slider input { width: 160px; accent-color: var(--dark-ink); }
.slider output { min-width: 3.2em; text-align: right; color: var(--dark-ink); font-variant-numeric: tabular-nums; }
.viewer-status { margin-top: 14px; text-align: center; font-size: 13px; color: var(--dark-muted); }
.section.dark .media-frame { box-shadow: none; }
.section.dark details { max-width: 760px; margin: 28px auto 0; text-align: center; color: var(--dark-muted); font-size: 14px; }
.section.dark summary { cursor: pointer; color: var(--link-dark); }
.section.dark details p { margin-top: 10px; text-align: left; }

/* Footnotes and footer */
.footnotes { background: var(--bg-alt); padding: 40px 22px 0; }
.footnotes ol { max-width: var(--content); margin: 0 auto; padding: 0 0 24px 1.4em; border-bottom: 1px solid var(--line); }
.footnotes li { font-size: 12px; line-height: 1.7; color: var(--muted); padding-left: 4px; margin-bottom: 10px; }
.footer { background: var(--bg-alt); padding: 20px 22px 32px; font-size: 12px; color: var(--muted); }
.footer-inner { max-width: var(--content); margin: 0 auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.footer-links a { color: #424245; }
.footer p + p { margin-top: 6px; }

/* Demo wrapper */
.demo-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.demo-bar { flex: none; height: var(--nav-h); display: flex; align-items: center; gap: 18px; padding: 0 22px; background: rgba(251, 251, 253, .9); border-bottom: 1px solid rgba(0, 0, 0, .1); }
.demo-bar a { font-size: 14px; white-space: nowrap; }
.demo-bar .back::before { content: ""; display: inline-block; width: .42em; height: .42em; margin-right: .45em; border: solid currentColor; border-width: 0 0 1.6px 1.6px; transform: translateY(-.12em) rotate(45deg); }
.demo-bar strong { font-size: 14px; font-weight: 600; }
.demo-bar p { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.demo-frame { flex: 1; width: 100%; border: 0; background: #000; }

/* Not found */
.notfound { min-height: calc(100vh - var(--nav-h) - 120px); display: grid; place-content: center; text-align: center; padding: 80px 22px; }
.notfound .lead { margin-top: 16px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 833px) {
  .gnav-toggle { display: block; }
  .gnav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    padding: 8px 32px 32px;
    background: #fbfbfd;
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .gnav.open .gnav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .gnav-links a { display: block; padding: 12px 0; font-size: 24px; font-weight: 600; color: var(--ink); }
  .tile-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 48px 16px; margin-top: 72px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { padding: 32px 28px; }
  .studio { grid-template-columns: 1fr; padding: 32px 28px; gap: 16px; }
  .roadmap-item, .specs > div { grid-template-columns: 1fr; gap: 8px; }
  .section { padding: 88px 22px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .localnav-title { font-size: 19px; }
  .home-hero { padding: 64px 20px 48px; }
  .tile { padding-top: 44px; }
  .tile-grid, .home-tiles { padding: 0; gap: 0; }
  .tile-grid { border-top: 12px solid var(--bg); }
  .tile-grid .tile + .tile { border-top: 12px solid var(--bg); }
  .play { right: 10px; bottom: 10px; }
  .slider input { width: 120px; }
  .viewer { height: 56vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
