/* =========================================================
   Bayon360 — 360° virtual tours across Cambodia
   A Bayon Shield Co., LTD brand · dark theme, accent #870004
   ========================================================= */

:root {
  --brand: #870004;
  --brand-bright: #b8000a;
  --brand-soft: rgba(135, 0, 4, 0.14);
  --brand-line: rgba(135, 0, 4, 0.32);

  --bg: #0a0708;
  --bg-2: #120c0d;
  --bg-3: #17100f;
  --surface: #1a1213;
  --surface-2: #211617;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f5f1f0;
  --text-muted: #a89e9d;
  --text-dim: #7c7170;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Sora", "Noto Sans Khmer", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans Khmer", system-ui, sans-serif;
}

html[lang="km"] {
  --font-display: "Noto Sans Khmer", "Sora", system-ui, sans-serif;
  --font-body: "Noto Sans Khmer", "Inter", system-ui, sans-serif;
}
html[lang="km"] body { line-height: 1.85; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Smarter wrapping: balance short headings, greedy-fill body copy */
/* Headings fill each line greedily and break only when they have to —
   `balance` is reserved for short display type inside narrow cards, where
   evening out the lines helps. Applied to full-width headings it forces
   breaks that are not needed and makes short titles wrap for no reason. */
h1, h2, h3, h4, .page-title, .section-head h2 { text-wrap: pretty; }
p, li, .page-lead, .section-desc { text-wrap: pretty; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Ambient background ---------- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(135, 0, 4, 0.16), transparent 60%),
    linear-gradient(180deg, #0a0708 0%, #0a0708 40%, #0c0809 100%);
}
.bg-map { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.bg-map .routes path { stroke-dasharray: 6 8; animation: dash 40s linear infinite; }
.bg-map .nodes circle { animation: pulse 4s var(--ease) infinite; }
.bg-map .nodes circle:nth-child(2) { animation-delay: 0.8s; }
.bg-map .nodes circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes dash { to { stroke-dashoffset: -280; } }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 7, 8, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 20px; }
.brand { display: inline-flex; align-items: center; }
/* The mark is a wide lockup (≈2.34:1), so height drives its footprint. */
.brand-logo { height: 64px; width: auto; display: block; }

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  transition: color 0.2s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--brand-bright);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-btn .flag {
  display: inline-block;
  width: 22px; height: 15px;
  border-radius: 3px;
  overflow: hidden;
  flex: none;
  line-height: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.lang-btn .flag svg { width: 100%; height: 100%; display: block; }
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: var(--brand); color: #fff; box-shadow: 0 2px 10px rgba(135, 0, 4, 0.4); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 7, 8, 0.96);
}
.mobile-nav a { padding: 12px 0; color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav.open { display: flex; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 26px rgba(135, 0, 4, 0.4); }
.btn-primary:hover { background: var(--brand-bright); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(135, 0, 4, 0.5); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand-bright); background: var(--brand-soft); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 92px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(184, 0, 10, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(184, 0, 10, 0); } }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 14px;
}
html[lang="km"] .eyebrow { letter-spacing: 0.04em; text-transform: none; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 20px;
}
html[lang="km"] .page-title { line-height: 1.32; letter-spacing: 0; }

.page-lead { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--text-muted); max-width: 54ch; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Interactive 360° viewfinder */
.hero-visual { display: flex; justify-content: center; }
.hero-visual-inner { display: flex; flex-direction: column; align-items: center; width: 100%; }
.viewfinder {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #160a0b;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 60px rgba(135, 0, 4, 0.12);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.viewfinder.dragging { cursor: grabbing; }
/* Photosphere stage — a live wireframe temple interior rendered to canvas */
.pano-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 42%, rgba(135, 0, 4, 0.34), transparent 72%),
    radial-gradient(120% 90% at 50% 108%, rgba(135, 0, 4, 0.16), transparent 60%),
    linear-gradient(180deg, #1b0d0f 0%, #200f12 40%, #150a0b 72%, #0d0607 100%);
}
.pano-stage::after {
  /* soft lens vignette so the wireframe fades into the frame */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(78% 78% at 50% 50%, transparent 52%, rgba(8, 4, 5, 0.62) 100%);
}
.pano-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Shown only when the canvas renderer is unavailable (e.g. no JS) */
.pano-fallback { position: absolute; inset: 0; }
.pano-fallback svg { width: 100%; height: 100%; display: block; }
.viewfinder.is-live .pano-fallback { display: none; }

.vf-corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--brand-bright); }
.vf-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.pano-compass {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(10, 7, 8, 0.66);
  border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.pano-compass span { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.pano-compass .pano-tilt {
  min-width: 32px;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 7px;
}

.pano-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text);
  background: rgba(10, 7, 8, 0.6);
  border: 1px solid var(--border-strong);
  padding: 9px 16px; border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.pano-hint svg { color: var(--brand-bright); }
.pano-hint.hide { opacity: 0; }

.vf-label {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(10, 7, 8, 0.72);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.vf-label .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); animation: pulse 1.6s infinite; }
.hero-caption { margin-top: 16px; text-align: center; color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 100px) 0; position: relative; }
.section-why { background: var(--bg-2); border-top: 1px solid var(--border); }
.section-scene { background: var(--bg); border-top: 1px solid var(--border); }
.section-includes { background: var(--bg-2); border-top: 1px solid var(--border); }
.section-listed { background: var(--bg); border-top: 1px solid var(--border); }
.section-contact { background: radial-gradient(620px 220px at 50% 0%, rgba(135, 0, 4, 0.16), transparent 70%), var(--bg-2); border-top: 1px solid var(--border); }

/* The head spans the section so a short title stays on one line; the
   description carries its own measure so the reading line stays sane. */
.section-head { margin-bottom: 48px; }
.section-head .section-desc { max-width: 88ch; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 16px;
}
html[lang="km"] .section-head h2 { line-height: 1.4; letter-spacing: 0; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; }

/* Benefit rows */
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.benefit:hover { transform: translateY(-3px); border-color: var(--brand-line); background: var(--surface-2); }
.benefit-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-bright);
}
.benefit-icon svg { width: 22px; height: 22px; }
.benefit-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.benefit-body p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }

/* Feature cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px 160px at 20% 0%, rgba(135, 0, 4, 0.16), transparent 70%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--brand-line); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-bright);
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); font-size: 0.94rem; }

/* Scene examples */
.scene-example { display: flex; flex-direction: column; gap: 28px; }
.scene-example + .scene-example { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--border); }
.scene-example-intro h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.scene-example-intro p { color: var(--text-muted); }

.scene-pair { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 20px; align-items: stretch; }
.scene-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scene-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.scene-num--icon svg { width: 19px; height: 19px; }
.scene-card--link { border-color: var(--brand-line); background: var(--surface-2); }
.scene-card h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.scene-card p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.6; }
.scene-link { display: flex; align-items: center; justify-content: center; color: var(--brand-bright); opacity: 0.85; }
.scene-link svg { width: 28px; height: 28px; }

.scene-flow { list-style: none; counter-reset: sc; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; }
.scene-chip {
  counter-increment: sc;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.scene-chip::before {
  content: counter(sc);
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  flex: none;
}
.scene-chip:hover { transform: translateY(-2px); border-color: var(--brand-line); background: var(--surface-2); }
.scene-flow-note {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
  padding: 16px 20px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Pricing tiers */
.tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.tier {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tier::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-bright), transparent 70%);
  opacity: 0.4;
  transition: opacity 0.25s var(--ease);
}
.tier:hover { border-color: var(--brand-line); transform: translateY(-3px); }
.tier:hover::before { opacity: 0.9; }
.tier-quote { border-color: var(--brand-line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.tier-range {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-bright);
}
html[lang="km"] .tier-range { letter-spacing: 0; text-transform: none; }
.tier-price {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}
.tier-unit { display: block; margin-top: 4px; font-size: 0.82rem; font-weight: 500; letter-spacing: 0; color: var(--text-dim); }
.tier-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

.callout {
  padding: 24px 28px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout-spaced { margin-top: clamp(34px, 5vw, 52px); }
.callout h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.callout p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.field label .opt { font-weight: 400; font-size: 0.72rem; color: var(--text-dim); text-transform: lowercase; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a89e9d' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(135, 0, 4, 0.25);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { color: var(--brand-bright); font-size: 0.9rem; font-weight: 500; }

.tick-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.tick-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--text); }
.tick-list li::before {
  content: "";
  width: 22px; height: 22px; flex: none; margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b8000a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.footer-tagline { color: var(--text-muted); font-size: 0.95rem; margin-top: 16px; max-width: 34ch; }
.footer-parent {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.footer-parent a { display: inline-flex; opacity: 0.8; transition: opacity 0.2s var(--ease); }
.footer-parent a:hover { opacity: 1; }
.footer-parent img { height: 30px; width: auto; display: block; }
.footer-follow { font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-top: 22px; margin-bottom: 12px; }
html[lang="km"] .footer-follow { text-transform: none; letter-spacing: 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-social a:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 4px; }
html[lang="km"] .footer-col h4 { text-transform: none; letter-spacing: 0; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--brand-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-dim); font-size: 0.85rem; }
.footer-legal { padding-top: 12px; }
.footer-legal p { color: var(--text-dim); font-size: 0.76rem; opacity: 0.85; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-pair { grid-template-columns: 1fr; gap: 14px; }
  .scene-link { transform: rotate(90deg); padding: 4px 0; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .brand-logo { height: 48px; }
  .header-inner { height: 74px; }
  .card-grid, .tier-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .lang-btn { padding: 6px 9px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: flex-start; }
}

/* ---------- Reduced motion ---------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }
