@font-face {
  font-family: Anuphan;
  src: url("fonts/anuphan-thai.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: Anuphan;
  src: url("fonts/anuphan-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Condensed";
  src: local("Roboto Condensed Bold Italic"), url("fonts/roboto-condensed-bold-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black";
  src: url("fonts/archivo-black-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
:root {
  --paper: #f5f5f7;
  --surface: #fff;
  --ink: #1d1d1f;
  --muted: #5f636b;
  --blue: #0066cc;
  --rule: #dedee3;
  font-family: Anuphan, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; }
a { color: inherit; text-underline-offset: .2em; }
button, select, input { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(1056px, calc(100% - 48px)); margin-inline: auto; }
.header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 1.13rem; font-weight: 750; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
nav a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--muted); font-size: .9rem; text-decoration: none; }
nav a:hover { color: var(--blue); }
.hero { text-align: center; padding: 72px 0 46px; }
.eyebrow { color: var(--blue); font-size: .94rem; font-weight: 700; margin-bottom: 12px; }
h1 { font-size: clamp(1.75rem, 6vw, 4.7rem); font-weight: 760; letter-spacing: -.055em; overflow-wrap: anywhere; }
h1 span { display: block; }
.lead { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--muted); margin: 18px auto 24px; max-width: 580px; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: 9px 19px; border: 1px solid var(--blue); border-radius: 999px; color: var(--blue); background: transparent; font-weight: 650; text-decoration: none; }
.button:hover { background: #e8f1ff; }
.button-main { background: var(--blue); color: #fff; }
.button-main:hover { background: #0058b3; }
.fine { color: var(--muted); font-size: .88rem; }
.hero .fine { margin-top: 12px; }
.studio { background: var(--surface); border: 1px solid var(--rule); border-radius: 27px; padding: clamp(15px, 3.7vw, 36px); }
.studio h2 { font-size: clamp(2.15rem, 5vw, 3.2rem); letter-spacing: -.045em; }
.section h2 { font-size: clamp(1.65rem, 3.2vw, 2.45rem); letter-spacing: -.045em; }
.studio-intro { margin-bottom: 12px; }
.studio-intro p { margin-top: 6px; }
canvas { display: block; width: 100%; height: auto; background: #000; }
.stage canvas { aspect-ratio: 800 / 368; }
.carousel { overflow: hidden; overflow: clip; isolation: isolate; touch-action: pan-y; touch-action: pan-y pinch-zoom; user-select: none; cursor: grab; }
.carousel.dragging, .carousel.dragging :is(canvas, button) { cursor: grabbing; }
#dashboard-slide-viewport { padding-block: 8px 12px; }
#dashboard-slides { position: relative; width: 70%; margin-inline: auto; --stacked-step: .25; --stacked-gap: .175; }
#dashboard-slides canvas { border-radius: 5px; outline: 1px solid #80909f66; outline-offset: -1px; box-shadow: 0 4px 11px #1018273b; }
#live-dashboard { position: relative; }
.slide-neighbor { position: absolute; inset: 0; visibility: hidden; cursor: pointer; }
.stage figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 16px; padding-top: 10px; }
#dashboard-expand { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-weight: 700; }
#dashboard-expand:hover, #dashboard-expand span[aria-hidden] { color: var(--blue); }
.dashboard-dialog { width: min(950px, calc(100% - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: clamp(10px, 2vw, 18px); border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 14px 44px #10182740; }
.dashboard-dialog::backdrop { background: #151d365c; }
body:has(.dashboard-dialog[open]) { overflow: hidden; }
.dashboard-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dashboard-dialog-header h3 { font-size: clamp(1rem, 3vw, 1.3rem); }
.dashboard-dialog-header button { min-height: 44px; padding: 5px 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--blue); background: var(--surface); }
.dashboard-dialog canvas { max-width: calc((100dvh - 112px) * 800 / 368); margin-inline: auto; border-radius: 8px; }
.dashboard-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dashboard-nav button { display: grid; place-items: center; border-radius: 50%; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule); background: var(--surface); color: var(--blue); font-size: 1.5rem; line-height: 1; }
.dashboard-nav button:hover { background: #edf4ff; }
#dashboard-autoplay { width: auto; min-width: 9em; padding-inline: 12px; border-radius: 999px; font-size: .85rem; white-space: nowrap; }
.picker { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--rule); }
.picker-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.picker-actions { display: flex; align-items: center; gap: 8px; }
.segmented { display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--paper); }
.mode { min-height: 44px; padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); }
.mode[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px #0002; }
.overflow { position: static; }
.overflow summary { display: flex; align-items: center; justify-content: center; border-radius: 50%; width: 44px; height: 44px; border: 1px solid var(--rule); font-size: 1.45rem; line-height: 1; list-style: none; }
.overflow summary::-webkit-details-marker { display: none; }
.overflow summary:hover, .overflow[open] summary { background: #edf4ff; color: var(--blue); }
.option-panel { position: absolute; z-index: 2; inset-inline-end: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 60px)); max-height: min(520px, 68dvh); overflow: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 17px; padding: 15px; box-shadow: 0 10px 30px #161a2624; }
.option-panel h3 { font-size: 1rem; margin-bottom: 10px; }
.option-panel fieldset { border: 0; padding: 0; margin: 12px 0 0; }
.option-panel legend { font-weight: 650; }
.option-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 5px; }
.option-row select { min-height: 44px; max-width: 100%; border: 1px solid var(--rule); border-radius: 8px; padding: 5px; background: var(--paper); color: var(--ink); }
.field { display: flex; gap: 8px; align-items: center; min-height: 44px; font-size: .92rem; }
.field input { accent-color: var(--blue); width: 17px; height: 17px; }
.gallery { padding-block: 5px 10px; }
.gallery-track { display: grid; width: clamp(118px, 45%, 192px); margin-inline: auto; }
.theme-card { grid-area: 1 / 1; min-width: 0; padding: 6px; border: 1px solid var(--rule); border-radius: 11px; background: var(--surface); color: var(--ink); text-align: start; font-size: .86rem; font-weight: 650; }
.theme-card:hover { background: var(--paper); }
.theme-card[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); color: var(--blue); background: #eff5ff; font-weight: 750; }
.theme-card:focus-visible { outline-offset: 1px; }
.theme-card canvas { border-radius: 5px; margin-bottom: 5px; }
.section { padding: 52px 0; }
.section h2 { margin-bottom: 12px; }
.steps, .gear-grid { display: grid; gap: 12px; padding: 0; margin: 16px 0 0; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.note { padding: 19px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; }
.note h3, .note h4, .note strong { font-size: 1.04rem; }
.note p { margin-top: 4px; color: var(--muted); }
.note .status { margin-top: 11px; font-size: .84rem; }
.gear { border-top: 1px solid var(--rule); }
#obd2 { scroll-margin-block-start: 16px; }
.gear-featured { margin-top: 16px; }
.gear-subtitle { margin-top: 25px; font-size: 1.18rem; }
footer { border-top: 1px solid var(--rule); }
.footer-row { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; min-height: 62px; }
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .header .wrap { flex-wrap: wrap; gap: 0 10px; }
  nav { gap: 0 10px; }
  nav a { font-size: .82rem; }
  .hero { padding: 46px 0 32px; }
  .studio { border-radius: 19px; }
  #dashboard-slides { width: 76%; --stacked-step: .21; --stacked-gap: .167; }
  .section { padding-block: 34px; }
  .steps, .gear-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px), (max-height: 540px) and (pointer: coarse) {
  .picker-actions { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .overflow { width: 100%; }
  .overflow summary { margin-left: auto; }
  .option-panel { position: static; width: 100%; max-height: none; overflow: visible; margin-top: 8px; }
}

.language-link { font-weight: 700; color: var(--blue); }
