/* OD-LAYOUT-PRIMITIVES v1 — structure only. */
@layer od-layout {
  [hidden]:not([hidden="until-found" i]) { display: none !important; }
  dialog:not([open]) { display: none !important; }
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }
  .od-stack { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill { flex: 1 1 0; min-width: 0; }
  .od-fixed { flex: none; }
  .od-grid { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }
  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap { white-space: nowrap; }
  .od-keep { word-break: keep-all; overflow-wrap: anywhere; }
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }
  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }
/* /OD-LAYOUT-PRIMITIVES v1 */

:root {
  color-scheme: light;
  --ink: #291b20;
  --ink-soft: #58464d;
  --ink-faint: #77646b;
  --surface: #ffffff;
  --surface-subtle: #fff9fa;
  --surface-soft: #f6e9ed;
  --line: #e2d4d8;
  --accent: #7d5260;
  --accent-deep: #623b49;
  --accent-soft: #f1dce3;
  --secondary: #356765;
  --secondary-soft: #dcebe8;
  --tertiary: #765a2d;
  --tertiary-soft: #f4e8cf;
  --tone-1: #b91c1c;
  --tone-2: #a44700;
  --tone-3: #237a35;
  --tone-4: #1d4ed8;
  --tone-5: #303036;
  --danger: #8c4a4f;
  --max-width: 1180px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 16px 38px rgba(41, 27, 32, .12);
  --shadow-md: 0 28px 72px rgba(41, 27, 32, .18);
  --motion-fast: 180ms;
  --motion-base: 280ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-subtle);
  color: var(--ink);
  font-family: "Noto Sans SC", "Noto Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid color-mix(in oklab, var(--line), transparent 24%);
  background: rgba(255, 249, 250, .94);
  backdrop-filter: blur(16px);
}
.site-header__inner,
.site-footer__inner,
.section-shell,
.hero__inner,
.value-strip__inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}
.site-header__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 11px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.site-nav a,
.footer-links a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--motion-fast) ease-out;
}
.site-nav a:hover,
.footer-links a:hover { color: var(--accent-deep); }
.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 14px;
  background: var(--accent-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero { padding: 96px 0 88px; overflow: hidden; background: var(--surface-subtle); }
.hero__inner { display: grid; grid-template-columns: minmax(0, .82fr) minmax(560px, 1.18fr); align-items: center; gap: clamp(48px, 7vw, 96px); }
.hero__copy { max-width: 570px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: "Noto Serif SC", Georgia, serif; text-wrap: balance; }
h1 { max-width: 12ch; font-size: clamp(48px, 6.1vw, 78px); line-height: 1.02; letter-spacing: -.055em; }
h2 { font-size: clamp(38px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.hero__lede { max-width: 62ch; margin: 26px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.72; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 820;
  text-decoration: none;
  transition: transform var(--motion-fast) ease-out, background-color var(--motion-fast) ease-out, border-color var(--motion-fast) ease-out;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible,
.header-action:focus-visible,
.site-nav a:focus-visible,
.text-link:focus-visible,
.mdbg-link:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
.button--primary { background: var(--accent-deep); color: #fff; box-shadow: 0 14px 30px rgba(98, 59, 73, .24); }
.button--primary:hover { background: var(--accent); }
.button--secondary { border-color: var(--line); background: var(--surface); color: var(--accent-deep); }
.button--secondary:hover { border-color: var(--accent); }
.proof-list { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 30px 0 0; padding: 0; list-style: none; }
.proof-list li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 740; }
.proof-list .od-icon { --od-icon-size: 18px; color: var(--accent); }

.hero-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); align-items: start; justify-content: end; gap: 20px; }
.shot { margin: 0; min-width: 0; }
.shot img { border: 1px solid rgba(98, 59, 73, .14); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.shot figcaption { margin-top: 9px; color: var(--ink-faint); font-size: 12px; line-height: 1.45; }
.shot--home-hero img { border-radius: 26px; box-shadow: var(--shadow-md); }
.shot--phone img { border-radius: 26px; }

.use-case { padding: 132px 0; background: var(--surface); }
.use-case--games { background: var(--surface-soft); }
.feature-layout { display: grid; grid-template-columns: minmax(0, .84fr) minmax(480px, 1.16fr); align-items: center; gap: clamp(56px, 8vw, 112px); }
.feature-layout--reverse { grid-template-columns: minmax(480px, 1.16fr) minmax(0, .84fr); }
.feature-copy > p:not(.eyebrow) { max-width: 62ch; margin: 24px 0 0; color: var(--ink-soft); font-size: 17px; }
.feature-list { display: grid; gap: 0; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--accent-deep); }
.feature-icon .od-icon { --od-icon-size: 22px; }
.feature-list strong, .feature-list small { display: block; }
.feature-list strong { color: var(--ink); font-size: 15px; }
.feature-list small { margin-top: 3px; color: var(--ink-faint); font-size: 14px; line-height: 1.5; }

.video-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.shot--tall img { border-radius: 26px; }
.shot--offset { margin-top: 72px; }
.game-gallery { display: grid; gap: 22px; }
.game-gallery .shot img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.game-demo { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--ink); cursor: pointer; text-align: left; transition: transform var(--motion-fast) ease-out; }
.game-demo:hover { transform: translateY(-3px); }
.game-demo:focus-visible { outline: 4px solid var(--accent-soft); outline-offset: 5px; }
.game-demo__cue { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 36px); padding: 10px 14px; border: 1px solid rgba(98,59,73,.18); border-radius: 14px; background: rgba(255,255,255,.94); color: var(--accent-deep); box-shadow: 0 10px 26px rgba(41,27,32,.2); font-size: 13px; font-weight: 820; line-height: 1.25; pointer-events: none; }
.game-demo__cue .od-icon { --od-icon-size: 18px; animation: cue-nudge 1.5s ease-in-out infinite; }
.game-demo[aria-pressed="true"] .game-demo__cue { background: var(--accent-deep); color: #fff; }
.word-demo { display: grid; gap: 7px; max-width: 420px; margin-left: auto; padding: 22px 26px; border-left: 4px solid var(--accent); background: var(--surface-soft); }
.word-demo__label { color: var(--ink-faint); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.word-demo strong { font-family: "Noto Serif SC", Georgia, serif; font-size: 38px; line-height: 1.15; }
.word-demo > span:last-child { color: var(--ink-soft); font-size: 15px; font-weight: 760; }
.tone-1 { color: var(--tone-1); }
.tone-2 { color: var(--tone-2); }
.tone-3 { color: var(--tone-3); }
.tone-4 { color: var(--tone-4); }
.tone-5 { color: var(--tone-5); }

@keyframes cue-nudge {
  0%, 55%, 100% { transform: translateX(0); }
  70% { transform: translateX(4px); }
  85% { transform: translateX(-1px); }
}

.workflow { padding: 132px 0; background: var(--accent-deep); color: #fff; }
.workflow .eyebrow { color: #b9ddd5; }
.section-intro { max-width: 760px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 56px 0 0; padding: 0; list-style: none; border-block: 1px solid rgba(255,255,255,.22); }
.steps li { padding: 32px; }
.steps li + li { border-left: 1px solid rgba(255,255,255,.22); }
.step-number { display: block; margin-bottom: 42px; color: #e7becb; font-size: 13px; font-weight: 850; letter-spacing: .12em; }
.steps p { margin: 12px 0 0; color: #eadfe3; }
.home-preview { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 72px; margin-top: 88px; }
.home-preview__copy { max-width: 640px; }
.home-preview__copy p:not(.eyebrow) { margin: 18px 0 0; color: #eadfe3; font-size: 17px; }
.home-preview .shot img { border-color: rgba(255,255,255,.24); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: currentColor; font-weight: 820; text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor, transparent 58%); text-underline-offset: 5px; }
.home-preview .text-link { color: #fff; }

.comparison { padding: 132px 0; background: var(--surface); }
.comparison__layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(580px, 1.28fr); align-items: start; gap: 72px; }
.comparison__intro > p:last-child { margin: 24px 0 0; color: var(--ink-soft); }
.comparison-table { overflow-x: auto; border-block: 1px solid var(--line); scrollbar-width: thin; }
table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
th, td { padding: 21px 18px; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { color: var(--ink-faint); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--ink-soft); font-size: 14px; }
td strong, td span { display: block; }
td strong { color: var(--accent-deep); font-size: 15px; }
td span { margin-top: 4px; color: var(--ink-faint); font-size: 13px; line-height: 1.45; }
td:nth-child(2) { background: color-mix(in oklab, var(--accent-soft), transparent 40%); }

.dictionary { padding: 88px 0; border-block: 1px solid var(--line); background: var(--surface-soft); }
.dictionary__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 80px; }
.dictionary h2 { max-width: 15ch; }
.dictionary p:not(.eyebrow) { max-width: 66ch; margin: 20px 0 0; color: var(--ink-soft); }
.dictionary .text-link { color: var(--accent-deep); }
.mdbg-link { display: block; padding: 16px; border: 1px solid var(--line); background: #fff; }
.mdbg-link img { display: block; width: 300px; height: auto; }

.final-cta { padding: 104px 0; background: var(--surface); }
.final-cta__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.final-cta h2 { max-width: 23ch; }
.final-cta .button { flex: none; }

.site-footer { padding: 36px 0; border-top: 1px solid var(--line); background: var(--surface-subtle); }
.site-footer__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; }
.brand--footer img { width: 32px; height: 32px; }
.site-footer p { margin: 0; color: var(--ink-faint); font-size: 13px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { font-size: 13px; }

@media (max-width: 1023px) {
  .site-nav { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .hero { padding-top: 72px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { max-width: 720px; }
  .hero-gallery { max-width: 500px; grid-template-columns: repeat(2, minmax(0, 240px)); }
  .feature-layout,
  .feature-layout--reverse { grid-template-columns: 1fr; }
  .feature-copy { max-width: 760px; }
  .feature-layout--reverse .game-gallery { order: 2; }
  .video-gallery { max-width: 760px; }
  .comparison__layout { grid-template-columns: 1fr; gap: 48px; }
  .dictionary__inner { gap: 48px; }
  .site-footer__inner { grid-template-columns: 1fr; justify-items: start; }
  .site-footer p { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 767px) {
  .site-header__inner,
  .site-footer__inner,
  .section-shell,
  .hero__inner,
  .value-strip__inner { width: min(calc(100% - 32px), var(--max-width)); }
  .site-header__inner { min-height: 68px; gap: 16px; }
  .brand span { font-size: 14px; }
  .brand img { width: 34px; height: 34px; }
  .header-action { min-height: 42px; padding: 0 13px; font-size: 12px; }
  .hero { padding: 64px 0 72px; }
  h1 { max-width: 10ch; font-size: clamp(44px, 13vw, 62px); }
  h2 { font-size: clamp(34px, 9vw, 46px); }
  .hero__lede { font-size: 17px; }
  .hero__actions { display: grid; }
  .button { width: 100%; }
  .proof-list { display: grid; }
  .hero-gallery { width: 100%; max-width: 520px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-case,
  .workflow,
  .comparison { padding: 88px 0; }
  .video-gallery { gap: 12px; }
  .shot--offset { margin-top: 42px; }
  .word-demo { margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 26px 0; }
  .steps li + li { border-top: 1px solid rgba(255,255,255,.22); border-left: 0; }
  .step-number { margin-bottom: 20px; }
  .home-preview { grid-template-columns: 1fr; gap: 40px; margin-top: 64px; }
  .home-preview .shot { width: min(72%, 300px); }
  .dictionary { padding: 72px 0; }
  .dictionary__inner { grid-template-columns: 1fr; }
  .dictionary__copy { order: 2; }
  .mdbg-link { justify-self: start; max-width: 100%; }
  .final-cta { padding: 80px 0; }
  .final-cta__inner { display: grid; }
  .site-footer { padding: 32px 0 40px; }
}

@media (max-width: 420px) {
  .header-action { display: none; }
  .site-header__inner { grid-template-columns: 1fr; }
  .video-gallery { grid-template-columns: 1fr; }
  .shot--offset { margin-top: 16px; }
  .shot--tall { width: min(86%, 320px); }
  .shot--tall:nth-child(2) { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
