/* ==========================================================
   นำโชค ออโต้แอร์ & ฟิล์ม — stylesheet
   Tokens → base → layout → components → sections → utilities
   ========================================================== */
:root {
  /* colour tokens */
  --ink: #0a0b0d;
  --ink-2: #101216;
  --panel: #15181d;
  --panel-2: #1b1f26;
  --line: rgba(255, 255, 255, 0.1);
  --line-gold: rgba(217, 180, 91, 0.35);
  --text: #f4f1ea;
  --muted: #aab0ba;
  --gold: #d9b45b;
  --gold-hi: #f1d58a;
  --gold-lo: #9c7a2c;
  --ice: #5cc8f5;
  --heat: #ff8a3d;
  --ok: #7fd6a3;

  /* type */
  --font: "Prompt", "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;

  /* spacing scale (4px base) */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 var(--s4); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 200; background: var(--gold); color: #111; padding: var(--s3) var(--s4); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--s3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 52px; padding: 0.7rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: #15110a; box-shadow: 0 10px 30px -10px rgba(217, 180, 91, 0.55); }
.btn-gold:hover { box-shadow: 0 14px 36px -10px rgba(217, 180, 91, 0.75); }
.btn-ice { background: var(--ice); color: #06222f; }
.btn-ice:hover { background: #8adaf8; }
.btn-line { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-sm { min-height: 44px; padding: 0.5rem 1.15rem; font-size: 0.95rem; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s2); color: var(--gold-hi); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-gold); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--gold-hi); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .site-header.menu-open { background: rgba(10, 11, 13, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; min-width: 0; }
.brand img { width: 54px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text b { font-weight: 600; font-size: 0.98rem; white-space: nowrap; }
.brand-text small { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.nav-list { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.8rem); }
.nav-list a { text-decoration: none; font-size: 0.95rem; color: var(--muted); padding: var(--s2) 0; transition: color 0.2s; }
.nav-list a:hover { color: var(--gold-hi); }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); align-items: center; justify-content: center; }
.header-cta { display: inline-flex; }

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section-alt { background: var(--ink-2); }
.kicker { display: inline-flex; align-items: center; gap: var(--s3); color: var(--gold); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: var(--s4); }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section-title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); letter-spacing: -0.01em; max-width: 20ch; }
.section-title.wide { max-width: 26ch; }
.section-lead { color: var(--muted); max-width: 62ch; margin-top: var(--s4); font-size: 1.08rem; }
.section-head { margin-bottom: clamp(2rem, 5vw, 4rem); }
.gold { color: var(--gold-hi); }
.note { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.badge { display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 500; border: 1px solid var(--line-gold); color: var(--gold-hi); background: rgba(217, 180, 91, 0.08); }
.badge-ice { border-color: rgba(92, 200, 245, 0.4); color: var(--ice); background: rgba(92, 200, 245, 0.08); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-start; padding: calc(var(--header-h) + clamp(2rem, 9vh, 6rem)) 0 4rem; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 88% 45%, rgba(92, 200, 245, 0.2), transparent 70%),
    radial-gradient(55% 65% at 8% 85%, rgba(255, 138, 61, 0.16), transparent 70%),
    radial-gradient(45% 50% at 70% 40%, rgba(217, 180, 91, 0.12), transparent 70%),
    var(--ink); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(70% 70% at 60% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 60% 45%, #000 20%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.7rem); line-height: 1.18; letter-spacing: -0.015em; margin-bottom: var(--s5); }
.hero h1 .l2 { display: block; background: linear-gradient(100deg, var(--gold-hi), var(--gold) 50%, #e9c978); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: #d3d6dc; font-size: clamp(1.02rem, 1.7vw, 1.2rem); max-width: 54ch; margin-bottom: var(--s5); }
.hero-tags { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.hero-tags li { display: inline-flex; align-items: center; gap: var(--s2); padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-size: 0.95rem; }
.hero-tags .icon { color: var(--gold-hi); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.hero-alt { margin-top: var(--s4); color: var(--muted); font-size: 0.95rem; }
.hero-alt a { color: var(--gold-hi); text-underline-offset: 3px; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; width: 100%; display: grid; place-items: center; margin-top: clamp(0px, 2vh, 24px); }
.dial { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial .ring-a { transform-origin: 50% 50%; animation: spin 90s linear infinite; }
.dial .ring-b { transform-origin: 50% 50%; animation: spin 140s linear infinite reverse; }
.hero-car { position: relative; width: 88%; filter: drop-shadow(0 20px 50px rgba(217, 180, 91, 0.3)); animation: float 7s ease-in-out infinite; }
.hero-chip { position: absolute; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: inline-flex; align-items: center; gap: var(--s2); }
.hero-chip.cold { right: 2%; top: 4%; background: rgba(92, 200, 245, 0.14); border: 1px solid rgba(92, 200, 245, 0.4); color: var(--ice); }
.nb { white-space: nowrap; }
.hero-chip.hot { left: 2%; bottom: 3%; background: rgba(255, 138, 61, 0.13); border: 1px solid rgba(255, 138, 61, 0.4); color: #ffb98a; }
.airflow { position: absolute; right: 0; top: 0; width: 60%; height: 100%; pointer-events: none; opacity: 0.55; z-index: -1; }
.airflow path { fill: none; stroke: var(--ice); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 6 18; animation: flow 6s linear infinite; }
.airflow path:nth-child(2) { animation-duration: 8s; opacity: 0.6; }
.airflow path:nth-child(3) { animation-duration: 10s; opacity: 0.4; }

.direct-strip { border-block: 1px solid var(--line); background: var(--ink-2); }
.direct-strip ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.direct-strip li { padding: var(--s5) var(--s4); display: flex; gap: var(--s4); align-items: center; border-left: 1px solid var(--line); }
.direct-strip li:first-child { border-left: 0; }
.direct-strip .icon { width: 28px; height: 28px; color: var(--gold-hi); }
.direct-strip b { display: block; font-weight: 500; line-height: 1.4; }
.direct-strip small { color: var(--muted); font-size: 0.85rem; line-height: 1.5; display: block; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes flow { to { stroke-dashoffset: -96; } }
/* entrance uses transform only, so text is never hidden (keeps LCP fast, readable if animation is throttled) */
@keyframes rise { from { transform: translateY(22px); } to { transform: none; } }
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.hero-visual { animation: rise 1.1s 0.2s var(--ease) both; }

/* ---------- A/C SERVICES ---------- */
.ac-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.ac-side { position: sticky; top: calc(var(--header-h) + 20px); }
.diagram-card { background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line); border-radius: 20px; padding: var(--s4); }
.diagram-card figcaption { margin-top: var(--s3); }
.diagram text { font-family: var(--font); font-size: 12.5px; fill: var(--muted); }
.diagram .node { transition: opacity 0.35s, filter 0.35s; }
.diagram .part { fill: #1c2027; stroke: #4a5160; stroke-width: 1.5; }
.diagram .pipe-hot { fill: none; stroke: var(--heat); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.diagram .pipe-cold { fill: none; stroke: var(--ice); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.diagram .fin { stroke: #4a5160; stroke-width: 1.2; }
.diagram .cabin { fill: rgba(92, 200, 245, 0.05); stroke: rgba(92, 200, 245, 0.3); stroke-dasharray: 5 5; }
.diagram[data-group] .node { opacity: 0.28; }
.diagram[data-group] .node.on { opacity: 1; filter: drop-shadow(0 0 7px rgba(217, 180, 91, 0.75)); }
.diagram[data-group] .node.on .part { stroke: var(--gold); }
.diagram[data-group] .node.on text { fill: var(--gold-hi); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s3); font-size: 0.85rem; color: var(--muted); }
.legend i { display: inline-block; width: 22px; height: 4px; border-radius: 2px; margin-right: var(--s2); vertical-align: middle; }

.tablist { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin-bottom: var(--s5); }
.tab { text-align: left; padding: var(--s4); border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: border-color 0.25s, background 0.25s; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.tab:hover { border-color: var(--line-gold); }
.tab .tab-no { color: var(--gold); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; }
.tab .tab-name { font-weight: 500; }
.tab .tab-count { color: var(--muted); font-size: 0.82rem; }
.tab[aria-selected="true"] { border-color: var(--gold); background: linear-gradient(180deg, rgba(217, 180, 91, 0.13), var(--panel)); }
.panel-intro { color: var(--muted); margin-bottom: var(--s5); }
.svc-list { display: grid; gap: var(--s3); }
.svc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: var(--s5); display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); }
.svc-no { color: var(--gold); font-weight: 600; font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; grid-row: span 3; opacity: 0.9; }
.svc h3 { font-size: 1.12rem; }
.svc .sym { font-size: 0.9rem; color: var(--ice); margin: 0; line-height: 1.6; }
.svc .sym b { font-weight: 500; }
.svc .desc { margin: 0; color: #cdd1d8; font-size: 0.98rem; line-height: 1.75; }
.svc .svc-cta { grid-column: 2; margin-top: var(--s2); justify-self: start; }
.confirm-note { margin-top: var(--s5); padding: var(--s4) var(--s5); border: 1px dashed var(--line-gold); border-radius: var(--radius); background: rgba(217, 180, 91, 0.05); }

/* ---------- FILM ---------- */
.film-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.metric-glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.metric { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.metric b { color: var(--gold-hi); font-weight: 600; display: block; margin-bottom: 2px; }
.metric span { color: var(--muted); font-size: 0.9rem; line-height: 1.6; display: block; }

.product { margin-top: clamp(3rem, 7vw, 6rem); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; position: relative; isolation: isolate; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.product.hk { background: radial-gradient(70% 90% at 100% 0%, rgba(92, 200, 245, 0.16), transparent 60%), linear-gradient(160deg, #11161c, #0b0d10); }
.product.sk { background: radial-gradient(70% 90% at 0% 0%, rgba(217, 180, 91, 0.16), transparent 60%), linear-gradient(200deg, #17140d, #0b0b0a); }
.product.sk .product-hero { direction: rtl; }
.product.sk .product-hero > * { direction: ltr; }
.product-code { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.product h3 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -0.01em; }
.product h3 small { display: block; font-size: 0.42em; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: var(--s2); }
.hk h3 small { color: var(--ice); }
.sk h3 small { color: var(--gold); }
.product .p-lead { color: #c9ced6; margin: var(--s4) 0 var(--s5); max-width: 52ch; }
.benefits { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.benefits li { display: flex; gap: var(--s3); align-items: flex-start; line-height: 1.6; }
.benefits .icon { margin-top: 0.25em; color: var(--ok); }
.benefits em { font-style: normal; color: var(--muted); font-size: 0.85rem; }
.big-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.big-stat { padding: var(--s5) var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
.big-stat .n { white-space: nowrap; font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big-stat .n small { font-size: 0.45em; font-weight: 500; margin-left: 2px; }
.hk .big-stat .n { color: var(--ice); }
.sk .big-stat .n { color: var(--gold-hi); }
.big-stat .l { font-size: 0.88rem; color: var(--muted); line-height: 1.5; margin-top: var(--s2); }
.big-stat .l b { display: block; color: var(--text); font-weight: 500; }

.spec-wrap { padding: 0 clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem); }
.spec-title { font-size: 1.05rem; font-weight: 500; margin-bottom: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: baseline; justify-content: space-between; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, 0.25); -webkit-overflow-scrolling: touch; }
.spec { min-width: 560px; font-size: 0.95rem; }
.spec th, .spec td { padding: 0.8rem 1rem; text-align: center; border-bottom: 1px solid var(--line); line-height: 1.5; }
.spec thead th { font-weight: 500; color: var(--text); background: rgba(255, 255, 255, 0.04); white-space: nowrap; }
.spec thead th small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; }
.spec tbody th { text-align: left; font-weight: 400; color: var(--muted); white-space: nowrap; position: sticky; left: 0; background: #0f1114; }
.spec tr:last-child > * { border-bottom: 0; }
.spec td { font-variant-numeric: tabular-nums; }
.spec td.na { color: var(--muted); font-size: 0.85rem; }
.source { margin-top: var(--s3); }
.source a { color: var(--gold-hi); text-underline-offset: 3px; }
.product-cta { padding: 0 clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

.tool { margin-top: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.tool-card { border: 1px solid var(--line); border-radius: 24px; background: var(--panel); padding: clamp(1.25rem, 3vw, 2.25rem); }
.tool-card h3 { font-size: 1.5rem; margin-bottom: var(--s2); }
.tool-card > .note { margin-bottom: var(--s5); }
.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-bottom: var(--s5); }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: var(--s1); }
.field select { width: 100%; min-height: 48px; padding: 0.5rem 0.9rem; font: inherit; font-size: 0.95rem; color: var(--text); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.field select:focus-visible { border-color: var(--ice); }
.cmp-rows { display: grid; gap: var(--s4); }
.cmp-row .cmp-h { display: flex; justify-content: space-between; gap: var(--s3); font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
.cmp-row .cmp-h b { font-weight: 500; color: var(--text); }
.bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-bottom: 6px; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 0.7s var(--ease); }
.bar.a > i { background: linear-gradient(90deg, #2d8cff, var(--ice)); }
.bar.b > i { background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }
.bar-val { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -2px; margin-bottom: 4px; }
.cmp-text { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s5); }
.cmp-text div { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.9rem; line-height: 1.55; background: var(--ink-2); }
.cmp-text span { display: block; color: var(--muted); font-size: 0.78rem; }
.warn { margin-top: var(--s5); }

.sim { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; margin-bottom: var(--s4); }
.sim svg { width: 100%; height: 100%; }
.sim-tint { transition: opacity 0.5s var(--ease); }
.sim-tag { position: absolute; left: 12px; bottom: 12px; padding: 0.25rem 0.75rem; border-radius: 999px; background: rgba(0, 0, 0, 0.65); border: 1px solid var(--line); font-size: 0.78rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); border: 0; padding: 0; margin: 0 0 var(--s3); }
.chips legend { padding: 0; font-size: 0.82rem; color: var(--muted); margin-bottom: var(--s2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.35rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); font-size: 0.88rem; transition: all 0.2s; }
.chip input:checked + span { border-color: var(--gold); background: rgba(217, 180, 91, 0.16); color: var(--gold-hi); }
.chip input:focus-visible + span { outline: 3px solid var(--ice); outline-offset: 2px; }
.sim-readout { font-size: 0.95rem; }
.sim-readout b { color: var(--gold-hi); font-weight: 600; }

.guide { margin-top: clamp(3rem, 7vw, 6rem); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s5); }
.guide-card { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.guide-card:nth-child(2) { background: linear-gradient(180deg, rgba(92, 200, 245, 0.1), var(--panel)); border-color: rgba(92, 200, 245, 0.28); }
.guide-card h4 { font-size: 1.1rem; margin-bottom: var(--s3); }
.guide-card p { color: #cdd1d8; font-size: 0.97rem; margin: 0 0 var(--s3); }
.guide-card .codes { font-size: 0.85rem; color: var(--gold-hi); }

.price-cta { margin-top: clamp(2rem, 5vw, 4rem); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 24px; border: 1px solid var(--line-gold); background: linear-gradient(120deg, rgba(217, 180, 91, 0.12), rgba(92, 200, 245, 0.07)); display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; justify-content: space-between; }
.price-cta h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.price-cta p { margin: var(--s2) 0 0; color: var(--muted); }

/* ---------- PORTFOLIO ---------- */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4); }
.work { grid-column: span 2; position: relative; aspect-ratio: 4 / 3; border: 1px dashed var(--line-gold); border-radius: var(--radius); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px), var(--panel); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s5); overflow: hidden; }
.work.lg { grid-column: span 3; aspect-ratio: 16 / 9; }
.work .icon { position: absolute; top: var(--s5); right: var(--s5); width: 36px; height: 36px; color: var(--gold); opacity: 0.6; }
.work h3 { font-size: 1.15rem; margin-bottom: var(--s2); }
.work p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.work .badge { align-self: flex-start; margin-bottom: var(--s3); }
.work.reel { grid-column: span 2; aspect-ratio: 4 / 3; text-decoration: none; border-style: solid; border-color: var(--line); transition: border-color 0.25s, transform 0.25s var(--ease); background: radial-gradient(70% 70% at 50% 30%, rgba(92, 200, 245, 0.1), transparent 70%), var(--panel); }
.work.reel:hover { border-color: var(--gold); transform: translateY(-3px); }
.work.reel .icon { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: rgba(217, 180, 91, 0.16); border: 1px solid var(--line-gold); color: var(--gold-hi); opacity: 1; fill: currentColor; stroke: none; }
.work.reel.all { background: linear-gradient(140deg, rgba(217, 180, 91, 0.14), var(--panel)); border-color: var(--line-gold); }
.work-foot { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; }

/* ---------- WHY + PROCESS ---------- */
.why-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s4); }
.why { padding: var(--s6) var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); grid-column: span 3; }
.why.big { grid-column: span 6; background: linear-gradient(160deg, rgba(217, 180, 91, 0.1), var(--panel)); border-color: var(--line-gold); }
.why-no { color: var(--gold); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.2em; margin-bottom: var(--s4); display: block; }
.why h3 { font-size: 1.2rem; margin-bottom: var(--s3); }
.why p { color: #cdd1d8; margin: 0; font-size: 0.98rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 33px; height: 1px; background: linear-gradient(90deg, var(--heat), var(--gold), var(--ice)); opacity: 0.5; }
.step { position: relative; padding-top: 0; }
.step-no { width: 66px; height: 66px; border-radius: 50%; background: var(--ink); border: 1px solid var(--gold); display: grid; place-items: center; font-size: 1.5rem; font-weight: 600; color: var(--gold-hi); margin-bottom: var(--s5); position: relative; }
.step h3 { font-size: 1.25rem; margin-bottom: var(--s3); }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.faq-group-title { font-size: 0.82rem; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin: var(--s6) 0 var(--s3); font-weight: 500; }
.faq-group-title:first-child { margin-top: 0; }
details.q { border-bottom: 1px solid var(--line); }
details.q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) 0; font-weight: 500; line-height: 1.5; min-height: 56px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary .icon { color: var(--gold); transition: transform 0.3s var(--ease); }
details.q[open] summary .icon { transform: rotate(180deg); }
details.q .a { padding: 0 0 var(--s5); color: #cdd1d8; max-width: 62ch; }
details.q .a p:last-child { margin-bottom: 0; }
details.q .a ul { list-style: disc; padding-left: 1.3rem; margin-bottom: var(--s3); }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.contact-list { margin: var(--s5) 0; display: grid; }
.contact-list li { display: flex; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-list .icon { width: 24px; height: 24px; color: var(--gold-hi); margin-top: 3px; }
.contact-list b { display: block; font-weight: 500; line-height: 1.5; }
.contact-list span, .contact-list a { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.contact-list a.big { color: var(--text); font-size: 1.2rem; font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--gold-hi); }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.map-box { position: relative; min-height: 420px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-gold); background: radial-gradient(60% 60% at 50% 45%, rgba(92, 200, 245, 0.12), transparent 70%), var(--panel); display: grid; place-items: center; text-align: center; padding: var(--s6); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(180deg) saturate(0.75) contrast(0.95); }
.map-box .pin { width: 56px; height: 56px; color: var(--gold-hi); margin: 0 auto var(--s4); }
.map-box p { color: var(--muted); max-width: 34ch; margin-inline: auto; }

.final { text-align: center; background: radial-gradient(60% 100% at 50% 100%, rgba(217, 180, 91, 0.14), transparent 70%), var(--ink); }
.final h2 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 20ch; margin-inline: auto; }
.final p { color: var(--muted); max-width: 52ch; margin: var(--s4) auto var(--s6); }
.final .hero-actions { justify-content: center; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s7) 0 calc(var(--s7) + 70px); background: #07080a; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s6); }
.site-footer h2 { font-size: 0.85rem; color: var(--text); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--s3); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-hi); }
.site-footer li { margin-bottom: var(--s2); }
.footer-brand img { width: 110px; margin-bottom: var(--s3); }
.legal { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 0.8rem; line-height: 1.7; }

/* ---------- mobile sticky CTA ---------- */
.sticky-cta { display: none; position: fixed; inset: auto 0 0 0; z-index: 90; padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom)); background: rgba(10, 11, 13, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-gold); gap: var(--s2); }
.sticky-cta .btn { flex: 1; min-height: 50px; padding-inline: var(--s3); font-size: 0.98rem; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-list { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open .nav-list { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: var(--header-h); left: 0; right: 0; background: rgba(10, 11, 13, 0.97); border-bottom: 1px solid var(--line); padding: var(--s3) var(--gutter) var(--s5); max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .site-header.menu-open .nav-list a { font-size: 1.05rem; padding: var(--s4) 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .ac-layout, .film-intro, .product-hero, .tool, .faq-layout, .contact-grid { grid-template-columns: 1fr; }
  .ac-side { position: static; }
  .product.sk .product-hero { direction: ltr; }
  .guide-grid { grid-template-columns: 1fr; }
  .why, .why.big { grid-column: span 6; }
}
@media (max-width: 820px) {
  .header-cta { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 1.5rem); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; margin-top: var(--s5); }
  .hero-chip { font-size: 0.78rem; }
  .hero-chip.cold { top: -2%; right: 0; }
  .hero-chip.hot { bottom: -4%; left: 0; }
  .direct-strip ul { grid-template-columns: 1fr; }
  .direct-strip li { border-left: 0; border-top: 1px solid var(--line); padding: var(--s4); }
  .direct-strip li:first-child { border-top: 0; }
  .sticky-cta { display: flex; }
  .steps { grid-template-columns: 1fr; gap: var(--s6); }
  .steps::before { display: none; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--s4); }
  .step-no { grid-row: span 2; margin: 0; }
  .work, .work.lg, .work.reel { grid-column: span 6; aspect-ratio: 16 / 9; }
  .why, .why.big { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr; }
  .metric-glossary { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .brand-text small { display: none; }
  .tablist { gap: var(--s2); }
  .tab { padding: var(--s3); }
  .tab .tab-count { display: none; }
  .pickers, .cmp-text { grid-template-columns: 1fr; }
  .big-stats { grid-template-columns: 1fr 1fr; }
  .big-stat { padding: var(--s4) var(--s3); }
  .svc { grid-template-columns: 1fr; }
  .svc-no { grid-row: auto; font-size: 1.1rem; }
  .svc .svc-cta { grid-column: 1; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .map-box { min-height: 340px; }
}
@media (max-width: 340px) {
  .brand-text b { font-size: 0.86rem; }
  .brand img { width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- reel cards with preview thumbnails ---- */
.work.reel { padding: 0; aspect-ratio: auto; justify-content: flex-start; overflow: hidden; color: inherit; }
.work.reel:hover h3 { color: var(--gold-hi); }
.work.reel h3, .work.reel p { text-decoration: none; }
.reel-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 0.6s var(--ease); }
.work.reel:hover .reel-thumb img { transform: scale(1.04); }
.reel-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55)); }
.work.reel .reel-thumb .icon { z-index: 1; top: auto; bottom: var(--s3); right: var(--s3); left: auto; transform: none; width: 44px; height: 44px; padding: 11px; background: rgba(10, 11, 13, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.reel-body { display: block; padding: var(--s4) var(--s5) var(--s5); }
.reel-body .badge { margin-bottom: var(--s2); }
.reel-body h3 { font-size: 1.05rem; margin-bottom: var(--s1); }
.work.reel.all { justify-content: flex-end; }
.work.reel.all .reel-body { padding-top: var(--s7); }
@media (max-width: 820px) { .work.reel { aspect-ratio: auto; } }

/* ---- static map with landmarks ---- */
.map-box.has-map { display: block; padding: 0; min-height: 0; text-align: left; background: var(--panel); }
.map-static { display: flex; flex-direction: column; height: 100%; }
.map-link { position: relative; display: block; aspect-ratio: 900 / 760; overflow: hidden; background: #e8e6e1; }
.map-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.6s var(--ease); }
.map-link:hover img { transform: scale(1.03); }
.map-open { position: absolute; top: var(--s3); right: var(--s3); display: inline-flex; align-items: center; gap: var(--s2); padding: 0.45rem 1rem; border-radius: 999px; background: rgba(10, 11, 13, 0.88); border: 1px solid var(--line-gold); color: var(--gold-hi); font-size: 0.9rem; font-weight: 500; }
.map-foot { flex: 1; display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; padding: var(--s4) var(--s5); border-top: 1px solid var(--line-gold); }
.map-foot .note { margin: 0; flex: 1 1 240px; }
.map-box.has-map iframe { z-index: 2; }
