:root {
  --ink: #1b2421;
  --paper: #f3efe6;
  --card: #fffaf3;
  --line: #ddd4c6;
  --teal: #143d38;
  --teal-2: #1f6a5e;
  --clay: #e27b4a;
  --mist: #e7f0ec;
  --shadow: 0 18px 40px rgba(27, 36, 33, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(226, 123, 74, 0.16), transparent 28rem),
    var(--paper);
  font: 18px/1.55 "Segoe UI", "Helvetica Neue", sans-serif;
}

a { color: inherit; }

.brand-panel {
  background: #0b245a;
}

.panel-frame {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  aspect-ratio: 1024 / 558;
}

.panel-frame .panel-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-frame .panel-mark {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: auto;
  height: 30%;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 1.2rem 0.9rem;
  color: #f3efe6;
  background: var(--teal);
}

.nav { display: grid; gap: 0.35rem; }

.nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 0.8rem;
  color: #f3efe6;
  text-decoration: none;
  border-radius: 0.7rem;
}

.nav a:hover,
.nav a[aria-current="page"] { background: rgba(255, 250, 243, 0.12); }

.bar { display: none; }

.menu-btn {
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  color: var(--teal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  font: inherit;
  cursor: pointer;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 4;
  border: 0;
  background: rgba(27, 36, 33, 0.45);
}

body.menu-open { overflow: hidden; }

.hero, .split, .band, #me-giat, #hoi-dap, .page, .products, .foot {
  width: min(1080px, calc(100% - 12vw));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  padding: 2.6rem 0 3rem;
}

.install {
  display: block;
}

.install h1,
.section-title {
  margin-bottom: 0.8rem;
  font-size: clamp(1.26rem, 2.8vw, 1.96rem);
  text-transform: uppercase;
}

.section-title { margin-top: 0; }

h2.section-title { text-transform: none; }

.page > h1:not(.section-title) {
  font-size: clamp(1.176rem, 2.45vw, 2.156rem);
}

.section-note {
  margin: -0.35rem 0 1.2rem;
  font-size: 1.15rem;
}

.install p {
  margin: 0.2rem 0;
  font-size: 1.15rem;
}

.install img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.2rem;
  border-radius: 1.1rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--teal-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; }

h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.4rem); }

h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }

.lede { max-width: 38rem; color: #3d4844; }

.hero-actions, .programs { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn.solid { background: var(--teal); color: #f7f3ea; }

.btn.ghost { border: 1px solid var(--ink); }

.machine {
  background: var(--teal);
  color: #f6f1e7;
  border-radius: 1.6rem;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.machine-top, .machine-meta div, .ticket dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.machine-top strong {
  color: #ffd7c2;
  font-weight: 600;
}

.drum {
  display: grid;
  place-items: center;
  height: 220px;
  margin: 1rem 0;
  border-radius: 1.2rem;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 14px, rgba(255,255,255,0.04) 15px),
    #102e2b;
}

.drum span {
  width: 9.5rem;
  height: 9.5rem;
  border: 10px solid #d7ebe4;
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px #1d4f48, inset 0 0 0 22px var(--clay);
}

.machine-meta { margin: 0; font-size: 0.95rem; }

.machine-meta div + div, .ticket dl div + div { margin-top: 0.45rem; }

dt { color: #b7c9c3; }
.machine-meta dd, .ticket dd { margin: 0; font-weight: 700; }

.band, #hoi-dap { padding: 1rem 0 3.5rem; }

.section-head { max-width: 40rem; margin-bottom: 1.5rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li, .ticket, .program, table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.steps li { padding: 1rem; }

.steps span {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--clay);
  font-weight: 800;
}

.steps h3, .ticket h3 { margin: 0 0 0.4rem; }

.steps p { margin: 0; color: #44504c; font-size: 0.98rem; }

.steps p + p { margin-top: 0.45rem; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  padding-bottom: 3.5rem;
}

#me-giat { padding-bottom: 3.5rem; }

.programs { flex-direction: column; margin-top: 0.2rem; }

.program {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  text-align: left;
  font: inherit;
  color: inherit;
}

.program.is-on {
  border-color: var(--teal);
  background: var(--mist);
}

.ticket { padding: 1.3rem 1.3rem 1.1rem; align-self: start; }

.ticket-kicker {
  margin: 0;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticket p { color: #44504c; }

.ticket dl { margin: 0; }

.ticket dt { color: #6d7873; }

.band-ink {
  width: 100%;
  max-width: none;
  padding: 3.5rem 6vw;
  background: var(--ink);
  color: #f6f1e7;
}

.band-ink .section-head,
.band-ink table { width: min(1080px, 100%); margin-left: auto; margin-right: auto; }

.band-ink .eyebrow { color: #ffbe9e; }

table { width: 100%; border-collapse: collapse; overflow: hidden; }

th, td { padding: 0.95rem 1rem; text-align: left; }

th { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }

tbody tr + tr td { border-top: 1px solid var(--line); }

td:last-child, th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.fine { width: min(1080px, 100%); margin: 0.8rem auto 0; color: #c9c2b6; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p { margin: 0.4rem 0 0.2rem; color: #44504c; }

.page { padding: 2.6rem 0 3rem; }

.project-lead p {
  margin: 0.2rem 0;
  font-size: 1.15rem;
}

.product-block .project-lead { margin-top: 0.75rem; }

.product-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: center;
  margin-top: 0.75rem;
}

.product-row .project-lead { margin-top: 0; }

.product-row img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
}

.product-row img.half {
  width: 50%;
  justify-self: start;
}

.product-row img.seven {
  width: 70%;
  justify-self: start;
}

.product-shots {
  display: grid;
  gap: 0.8rem;
}

.viewer { display: grid; gap: 0.65rem; }

.viewer-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.viewer-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
}

.viewer-thumbs button {
  padding: 0.15rem;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
}

.viewer-thumbs button.is-on { border-color: #1b2421; }

.viewer-thumbs img {
  width: 100%;
  height: 4.4rem;
  object-fit: contain;
  border: 0;
  background: #fff;
}

.intro-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.intro-videos video {
  display: block;
  width: 100%;
  height: auto;
  background: #111;
  border-radius: 1.1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.project-grid figure { margin: 0; }

.project-grid img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.contact-card {
  max-width: 40rem;
  margin: 1.4rem 0 0;
  padding: 0.4rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.contact-card div {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 0;
}

.contact-card div + div { border-top: 1px solid var(--line); }

.contact-card dt {
  color: #6d7873;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-card dd { margin: 0; font-weight: 700; }

.contact-card a { text-decoration: none; }

.product-list, .about-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.product-list { grid-template-columns: 1fr 1fr; }

.product-list li, .about-list li, .contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
}

.product-list h2, .about-list h2 { font-size: 1.25rem; }

.product-list p, .about-list p { margin: 0.35rem 0 0; color: #44504c; }

.price-tag {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
  margin-top: 1.4rem;
}

.contact-form label { font-weight: 700; font-size: 0.95rem; }

.contact-form input, .contact-form textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
  font: inherit;
  color: inherit;
}

.contact-form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

#contact-note { margin: 0; color: var(--teal-2); font-weight: 700; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 2.5rem;
  color: #5c6762;
}

.foot p { margin: 0.2rem 0 0; }

.products { padding: 2.6rem 0 2rem; }

.nav-group { display: grid; gap: 0.15rem; }

.nav-group > a:first-child {
  justify-content: space-between;
}

.nav-group > a:first-child::after {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.12rem);
}

.nav-group.is-open > a:first-child::after {
  transform: rotate(-135deg) translateY(-0.12rem);
}

.nav-group a:not(:first-child) {
  display: none;
  min-height: 2.4rem;
  padding-left: 1.55rem;
  font-size: 0.95rem;
}

.nav-group.is-open a:not(:first-child) { display: flex; }

.nav-group a[aria-current="true"] { background: rgba(255, 250, 243, 0.12); }

.product-block {
  scroll-margin-top: 1.25rem;
  min-height: 14rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.product-block h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

@media (max-width: 860px) {
  .hero, .split, .steps, .product-list, .project-grid, .product-row, .intro-videos { grid-template-columns: 1fr; }
  .product-block { scroll-margin-top: 4.75rem; }
  .program {
    flex-direction: column;
    align-items: stretch;
    row-gap: 0.15rem;
  }
  .program strong { white-space: nowrap; }
  .program > span {
    white-space: nowrap;
    text-align: right;
  }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 0.75rem 1rem;
    background: rgba(243, 239, 230, 0.94);
    border-bottom: 1px solid var(--line);
  }
  .side {
    position: fixed;
    z-index: 5;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(18rem, 86vw);
    height: auto;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  .side.open { transform: none; }
  .foot { flex-direction: column; }
}

@media (min-width: 861px) {
  .backdrop { display: none !important; }
}
