/* =========================================================
   BayonShield — site styles
   Dark premium 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;
}

/* Khmer typography swap */
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 line wrapping: even out short blocks, avoid orphan words.
   `balance` has wide support (Chrome/Edge/Firefox/Safari) and keeps the
   last word from dropping onto a line by itself; `pretty` refines longer
   body copy where supported. */
/* `balance` only on short headings (evens the lines). Body copy uses
   `pretty`: greedy line-filling that breaks at the right edge, while
   still avoiding a lone orphan word on the last line. */
h1, h2, h3, h4,
.hero-title, .page-title, .section-head h2 { text-wrap: balance; }
p, li,
.hero-subtitle, .section-desc, .page-lead { 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; }
.bg-map .nodes circle:nth-child(4) { animation-delay: 2.4s; }

@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; gap: 10px; }
.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%; }
.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"]::after { width: 100%; }

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

/* Language toggle */
.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); }

/* Mobile menu button */
.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(56px, 10vw, 110px) 0 clamp(48px, 8vw, 90px); }
.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); box-shadow: 0 0 0 0 rgba(184, 0, 10, 0.6); 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; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 20px;
}
html[lang="km"] .hero-title { line-height: 1.3; letter-spacing: 0; }

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

/* Hero visual — interactive 360° viewfinder */
.hero-visual { display: flex; justify-content: center; }
.viewfinder {
  position: relative;
  width: min(100%, 460px);
  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; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 100px) 0; position: relative; }
.section-services { background: var(--bg-2); border-top: 1px solid var(--border); }
.industries-block { margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--border); }
.section-about { 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); }
.section-why { background: var(--bg-2); border-top: 1px solid var(--border); }

/* Tours hero: two-column, pano demo on the right (mirrors the index hero) */
.tours-hero { padding: clamp(44px, 7vw, 80px) 0 clamp(44px, 7vw, 80px); }
.tours-hero .breadcrumbs { margin-bottom: 26px; }
.hero-visual-inner { display: flex; flex-direction: column; align-items: center; width: 100%; }
.tour-preview-caption { margin-top: 16px; text-align: center; color: var(--text-dim); font-size: 0.9rem; }

/* Benefit rows (Why section) — horizontal icon + copy, distinct from cards */
.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; }

/* Webdev page: flagship projects + services + closing band */
.section-projects { background: var(--bg-2); border-top: 1px solid var(--border); }
.section-devsvc { background: var(--bg); border-top: 1px solid var(--border); }
.section-scale { background: var(--bg-2); border-top: 1px solid var(--border); }
.scale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.scale-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px;
  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);
}
.scale-card:hover { transform: translateY(-3px); border-color: var(--brand-line); background: var(--surface-2); }
.scale-tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-bright);
}
html[lang="km"] .scale-tag { letter-spacing: 0; text-transform: none; }
.scale-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.scale-card p:last-child { color: var(--text-muted); font-size: 0.96rem; line-height: 1.65; }
.cta-merged {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--border);
}

.scale-note {
  margin-top: 24px;
  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;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.project {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 30px;
  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);
}
.project::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);
}
.project:hover { transform: translateY(-3px); border-color: var(--brand-line); background: var(--surface-2); }
.project:hover::before { opacity: 0.9; }

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.project-logo { height: 42px; width: auto; max-width: 200px; display: block; }
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.project-status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-bright);
  animation: pulse 2.4s var(--ease) infinite;
}
.project-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.project-desc { color: var(--text-muted); font-size: 0.96rem; line-height: 1.65; }
.project .tick-list { margin-top: 0; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }
.section-scene { background: var(--bg); border-top: 1px solid var(--border); }
.section-includes { background: var(--bg-2); border-top: 1px solid var(--border); }
.section-pricing { background: var(--bg); border-top: 1px solid var(--border); }
.section-pricing .section-head { max-width: none; }
.section-pricing .section-desc { text-wrap: pretty; }
.section-payment { background: var(--bg-2); border-top: 1px solid var(--border); }
.section-cta-band { background: radial-gradient(620px 220px at 50% 0%, rgba(135, 0, 4, 0.16), transparent 70%), var(--bg); border-top: 1px solid var(--border); padding-block: clamp(40px, 6vw, 72px); }
/* Charcoal variant — visually identical to .section-includes */
.section-cta-band--charcoal { background: var(--bg-2); }

.section-head { margin-bottom: 48px; }
.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;
  text-wrap: balance;
}
html[lang="km"] .section-head h2 { line-height: 1.4; letter-spacing: 0; }
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 62rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 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;
  min-width: 0;
}
.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;
  text-wrap: balance;
}
.card p { color: var(--text-muted); font-size: 0.94rem; }

.platform-note {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: clamp(40px, 7vw, 72px) 0 clamp(28px, 5vw, 48px);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 62rem; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-dim); margin-bottom: 22px;
}
.breadcrumbs a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.breadcrumbs a:hover { color: var(--brand-bright); }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 18px;
  text-wrap: balance;
}
html[lang="km"] .page-title { line-height: 1.35; letter-spacing: 0; }
.page-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 62rem;
  margin-bottom: 28px;
}

/* ---------- Home service panels ---------- */
.service-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.28s var(--ease), transform 0.28s var(--ease);
}
.service-panel:hover {
  border-color: var(--brand-line);
  transform: translateY(-3px);
}
.service-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
html[lang="km"] .service-panel h3 { line-height: 1.4; letter-spacing: 0; }
.service-panel > p { color: var(--text-muted); font-size: 1rem; }
.service-highlights {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 6px 0 10px;
}
.service-highlights li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.94rem; font-weight: 500; color: var(--text);
}
.service-highlights li::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-bright); flex: none;
}
.service-panel .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Scene example ---------- */
.scene-example {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.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-example + .scene-example { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--border); }

.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; }

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

/* ---------- Payment ---------- */
.payment-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  align-items: center;
}
.payment-grid 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;
  text-wrap: balance;
}
html[lang="km"] .payment-grid h2 { line-height: 1.4; letter-spacing: 0; }
.payment-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.payment-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.payment-list li:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-bright);
}
.pay-icon svg { width: 18px; height: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
html[lang="km"] .cta-band h2 { letter-spacing: 0; line-height: 1.35; }
.cta-band p { color: var(--text-muted); max-width: 42rem; }

/* ---------- Webdev placeholder ---------- */
.placeholder-panel {
  max-width: 52rem;
  padding: 8px 0 24px;
}
.placeholder-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  margin: 18px 0 14px;
  letter-spacing: -0.015em;
}
.placeholder-panel > p { color: var(--text-muted); margin-bottom: 8px; }

/* Industries chips */
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 11px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-bright); margin-right: 10px; flex: none;
}
.chip:hover { transform: translateY(-2px); border-color: var(--brand-line); background: var(--surface-2); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.tick-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.tick-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--text); }
.tick-list li::before {
  content: "";
  width: 22px; height: 22px; flex: none;
  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;
}
.about-visual { display: flex; justify-content: center; }
.about-visual svg { width: min(100%, 320px); }
.about-visual g[fill="#870004"] circle { animation: pulse 4s var(--ease) infinite; }

/* 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; }

/* ---------- 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: 42ch; }
.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), box-shadow 0.2s var(--ease);
}
.footer-social a:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(135, 0, 4, 0.42);
}
.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; letter-spacing: 0.01em; opacity: 0.85; }

/* ---------- Reveal on scroll ---------- */
.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; }
  .viewfinder { width: min(100%, 420px); }
  .about-grid, .contact-grid, .payment-grid { grid-template-columns: 1fr; gap: 36px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-grid, .scale-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 280px; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .service-panels { grid-template-columns: 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: 52px; }
  .header-inner { height: 78px; }
  .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; }
  .cta-band { flex-direction: column; align-items: 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 visibility ---------- */
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   Careers / job application page
   ========================================================= */
.section-role .role-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.role-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--text);
  font-size: 0.8rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.role-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); }
.role-main h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
.role-subhead {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600;
  margin-top: 34px; margin-bottom: 4px;
}
.role-main .tick-list li { align-items: flex-start; }
.role-main .tick-list li::before { margin-top: 2px; }
.role-note { margin-top: 18px; color: var(--text-muted); font-weight: 500; }

.role-aside {
  position: sticky; top: 112px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.role-facts { display: grid; gap: 18px; margin-bottom: 22px; }
.role-facts dt {
  font-family: var(--font-display);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-dim); margin-bottom: 4px;
}
.role-facts dd { color: var(--text); font-size: 0.95rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* Application form */
.apply-inner { max-width: 860px; margin: 0 auto; }
.apply-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 8px;
}
.apply-form fieldset { border: 0; padding: 0; margin: 0; }
.apply-form legend {
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  padding: 0; margin-bottom: 9px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--brand-bright); box-shadow: 0 0 0 3px rgba(184, 0, 10, 0.22); }
.field.has-error .captcha-grid { outline: 2px solid var(--brand-bright); outline-offset: 4px; border-radius: var(--radius-sm); }

/* Honeypot — visually and semantically hidden from real users */
.hp-field {
  position: absolute !important;
  left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Radio pills */
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem; color: var(--text-muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.radio-pill:hover { border-color: var(--brand-line); color: var(--text); }
.radio-pill input { accent-color: var(--brand-bright); width: 16px; height: 16px; }
.radio-pill:has(input:checked) {
  border-color: var(--brand-bright);
  background: var(--brand-soft);
  color: var(--text);
}

/* CAPTCHA */
.captcha legend { display: flex; align-items: center; gap: 8px; }
.captcha-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.captcha-tile {
  position: relative;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.captcha-tile:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.captcha-tile .captcha-flag,
.captcha-tile .captcha-flag svg {
  display: block; width: 100%; height: 100%;
}
.captcha-tile .captcha-flag svg { object-fit: cover; }
.captcha-tile.is-selected {
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(184, 0, 10, 0.3);
}
.captcha-tile.is-selected::after {
  content: "";
  position: absolute; top: 5px; right: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-bright) 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='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}
.captcha-grid[aria-busy="true"] { opacity: 0.5; pointer-events: none; }
.captcha-refresh {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.captcha-refresh:hover { color: var(--brand-bright); }

/* Status states */
.form-status.is-error { color: var(--brand-bright); }
.form-status.is-success { color: #4ccf8e; }
.btn.is-loading { opacity: 0.7; pointer-events: none; }

@media (max-width: 940px) {
  .section-role .role-grid { grid-template-columns: 1fr; gap: 32px; }
  .role-aside { position: static; }
}
@media (max-width: 620px) {
  .apply-form { grid-template-columns: 1fr; padding: 22px; }
  .captcha-grid { grid-template-columns: repeat(3, 1fr); }
}
