/* Self-hosted Sarabun (standard Thai web font, KG: thai-web-fonts-sarabun-noto).
   Thai unicode-range only -> Latin/digits keep the existing Latin font. CSP-safe. */
@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/sarabun-thai-400.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/sarabun-thai-600.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/sarabun-thai-700.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  --ink: #16211c;
  --muted: #6b7268;
  --paper: #F2EFE7;
  --surface: #FBFAF6;
  --soft: #E9EDE6;
  --line: #DCD7C8;
  --teal: #1f6b4f;
  --teal-dark: #163f30;
  --coral: #b0663f;
  --gold: #C29A4C;
  --blue: #3f7d64;
  --shadow: 0 18px 44px rgba(12, 18, 16, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Sarabun", Tahoma, "Noto Sans Thai", "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
}

/* ─────────────────────────────────────────────────────────────────────────
   Motion Kit — Zero-JS motion tracks
   Ported from motion-kit-starter (master): builder/renderers/html/
   css-native-motion.ts + view-transitions.ts. Scroll-driven reveals run on the
   compositor thread; page transitions are native cross-document crossfades —
   0 KB JavaScript, no bundle, no CDN: the most DACH/PDPA-compliant motion track.
   Progressive-enhancement contract: every hidden/offset pre-animation state
   lives ONLY inside @supports (animation-timeline) + prefers-reduced-motion:
   no-preference, so unsupported browsers and reduced-motion visitors always see
   static, fully-visible content (enhancement, never "hide and hope"). Kept in
   this external stylesheet, never inline, so it satisfies the site CSP
   (style-src 'self'). Recipe keyframes/ranges are the kit's verbatim; the
   selectors are this site's own (no per-element data-attributes needed). */

/* Reading-progress bar — css-native scroll(root) timeline (kit: scroll-progress).
   body::before needs no markup; brand gradient; invisible base (scaleX(0)) is
   the correct "no bar" fallback on browsers without scroll-driven animations. */
body::before {
  content: "";
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
  z-index: 100;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body::before {
      animation: mkx-scroll-progress linear both;
      animation-timeline: scroll(root);
    }
    @keyframes mkx-scroll-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* Scroll-into-view reveals (kit: reveal-up + reveal-fade). view() ties each
   animation to the element's own entry, so grid children each get their own
   timeline → a pure-CSS stagger with no per-child bookkeeping. transform +
   opacity only (compositor-cheap); linear timing (curved easing janks on a
   scroll-linked timeline). Distance tunable per element via --mkx-distance. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* OPACITY-ONLY fade — no transform, so the reveal never fights a hover-lift
       transform (.showroom-card:hover etc.). Base opacity:0 is declared here so the
       element is hidden from the FIRST paint: without it, elements flash their
       un-animated (visible) state for a frame before the scroll timeline attaches —
       that brief "unstyled/HTML flash" on load. Only inside @supports(view()) so
       browsers without scroll-driven animation keep content fully visible. */
    .research-grid > article,
    .offer-ladder > article,
    .quality-grid > article,
    .contact-grid > article,
    .evidence-steps > li,
    .showroom-grid > a,
    .section-heading,
    .section.split > div,
    .notice,
    .section-figure {
      opacity: 0;
      animation: mkx-reveal-fade linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes mkx-reveal-fade { from { opacity: 0; } to { opacity: 1; } }
  }
}

/* Native cross-document page transitions (kit: view-transitions.ts). One at-rule
   opts the same-origin MPA into a GPU crossfade; a browser without support just
   ignores the unknown rule and navigates normally (progressive enhancement for
   free — no @supports guard needed). Reduced-motion collapses it to ~instant. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation-duration: 1ms !important; animation-delay: 0s !important; }
}

/* 3D-logo hero emblem — moved out of the page's inline <style> so it applies
   under the site CSP (style-src 'self'); the interactive <logo-3d> still
   degrades to the static PNG when JS/WebGL is unavailable. */
.hero-emblem { display: block; width: 116px; margin: 0 0 20px; filter: drop-shadow(0 14px 30px rgba(10, 20, 19, 0.3)); }
.hero-emblem img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 640px) { .hero-emblem { width: 92px; margin-bottom: 14px; } }

[data-motion-tilt] {
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease;
  will-change: transform;
}

[data-lang="en"] {
  display: none !important;
}

body.en-mode [data-lang="th"] {
  display: none !important;
}

body.en-mode [data-lang="en"] {
  display: revert !important;
}

a {
  color: inherit;
}

/* Visible focus rings — WCAG 2.4.7 / 2.4.11 */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.showroom-card:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  min-height: 70px;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(216, 225, 229, 0.86);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
}

.brand strong,
.brand em {
  display: block;
}

.brand em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.nav a,
.lang-toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: min(760px, calc(88svh - 70px));
  display: grid;
  align-items: end;
  padding: clamp(1rem, 4vw, 3rem);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0a1413;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.96) 0%, rgba(251, 250, 246, 0.82) 39%, rgba(251, 250, 246, 0.2) 100%),
    linear-gradient(180deg, rgba(251, 250, 246, 0.14) 0%, rgba(251, 250, 246, 0.95) 100%);
}

.hero-video,
.hero-media picture,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  z-index: 0;
  transform: scale(1.06);
  animation: heroKen 32s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.03);
}
@keyframes heroKen {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.6%, -1.4%, 0); }
}

.hero-media picture {
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  padding: clamp(1rem, 4vw, 2rem) 0 2.5rem;
}

.hero-hospitality .hero-copy {
  width: min(850px, 100%);
}

.premium-hero {
  min-height: min(840px, calc(92svh - 70px));
}

.premium-hero .hero-media::after {
  background:
    linear-gradient(102deg, rgba(7, 16, 15, 0.90) 0%, rgba(7, 16, 15, 0.60) 30%, rgba(7, 16, 15, 0.16) 56%, rgba(7, 16, 15, 0) 78%),
    linear-gradient(0deg, rgba(7, 16, 15, 0.82) 0%, rgba(7, 16, 15, 0.12) 32%, rgba(7, 16, 15, 0) 52%),
    radial-gradient(120% 95% at 86% 12%, rgba(214, 145, 27, 0.16), transparent 52%),
    linear-gradient(180deg, transparent 68%, var(--paper) 100%);
}

/* --- cinematic dark hero copy treatment (top-tier hero) --- */
.premium-hero .hero-copy { color: #f4efe6; }
.premium-hero h1 { color: #ffffff; text-shadow: 0 1px 34px rgba(0, 0, 0, 0.38); }
.premium-hero .lead { color: rgba(244, 239, 230, 0.86); }
.premium-hero .status-pill {
  border-color: rgba(244, 239, 230, 0.26);
  background: rgba(10, 20, 19, 0.42);
  color: #f4efe6;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.premium-hero .status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 145, 27, 0.22);
}
.premium-hero .button.primary {
  background: var(--gold);
  color: #20160a;
  box-shadow: 0 14px 32px rgba(214, 145, 27, 0.30);
}
.premium-hero .button.secondary {
  border-color: rgba(244, 239, 230, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #f4efe6;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.premium-hero .hero-stats div {
  border-color: rgba(244, 239, 230, 0.18);
  background: rgba(10, 20, 19, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.premium-hero .hero-stats dt { color: rgba(244, 239, 230, 0.66); }
.premium-hero .hero-stats dd { color: #ffffff; }

/* hero cursor glow (dezent, behind copy) */
.hero-cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(0, 108, 103, 0.20), rgba(214, 145, 27, 0.09) 45%, transparent 70%);
  transition: opacity 0.35s ease;
  will-change: transform;
}

/* smooth transforms for magnetic + tilt recipes */
.button.primary {
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  will-change: transform;
}
.showroom-card,
.research-grid article,
.offer-ladder article,
[data-motion-tilt] {
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

/* dezent moving sheen on the headline accent line */
.premium-hero h1 span {
  background: linear-gradient(100deg, #ffe7bd 0%, var(--gold) 30%, #fff6e6 52%, var(--gold) 74%, #ffe7bd 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: heroSheen 9s ease-in-out infinite;
}
@keyframes heroSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.status-pill,
.eyebrow,
.package-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  border: 1px solid rgba(0, 108, 103, 0.23);
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  background: rgba(238, 245, 243, 0.82);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill {
  text-transform: none;
}

h1,
h2,
h3,
p,
dl,
ol,
ul {
  margin-top: 0;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 4.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: var(--teal);
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.7rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
}

.lead {
  max-width: 66ch;
  margin-bottom: 1rem;
  color: #2f3d49;
  font-size: clamp(1.02rem, 1.55vw, 1.25rem);
}

.en-copy {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.74rem 1rem;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  color: white;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(620px, 100%);
  gap: 0.75rem;
}

.hero-stats div {
  border: 1px solid rgba(216, 225, 229, 0.9);
  border-radius: 8px;
  padding: 0.82rem;
  background: rgba(255, 255, 255, 0.74);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-stats dd {
  margin: 0.18rem 0 0;
  font-weight: 900;
}

.premium-stats div {
  border-color: rgba(0, 108, 103, 0.24);
  background: rgba(255, 255, 255, 0.86);
}

.notice,
.section,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.notice {
  display: flex;
  gap: 0.7rem;
  margin-top: -2rem;
  border: 1px solid rgba(200, 86, 73, 0.28);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: #fff1ee;
  color: #713027;
}

.section {
  padding: clamp(3rem, 8vw, 6.5rem) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.25rem, 5vw, 4rem);
  align-items: start;
}

.text-stack p {
  font-size: 1.08rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.04rem;
}

.research-lab,
.demo-showroom,
.quality-panel {
  border-top: 1px solid var(--line);
}

.research-grid,
.showroom-grid,
.offer-ladder,
.quality-grid {
  display: grid;
  gap: 1rem;
}

.research-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.research-grid article,
.showroom-card,
.offer-ladder article,
.quality-grid article {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.18rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.research-grid article {
  display: grid;
  gap: 0.45rem;
  background: linear-gradient(180deg, #ffffff, #f2f8f7);
}

.research-grid article span,
.showroom-card span,
.offer-ladder article span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.research-grid p,
.showroom-card p,
.offer-ladder p,
.quality-grid span {
  color: var(--muted);
}

.evidence-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evidence-band > div:first-child,
.evidence-steps {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.evidence-steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: clamp(1.1rem, 3vw, 1.6rem);
  list-style-position: inside;
}

.evidence-steps li {
  padding: 0.85rem;
  border-left: 4px solid var(--gold);
  background: #fffaf0;
}

.evidence-steps strong,
.evidence-steps span,
.quality-grid strong,
.quality-grid span {
  display: block;
}

.evidence-steps span {
  margin-top: 0.18rem;
  color: var(--muted);
}

.showroom-grid {
  grid-template-columns: repeat(2, 1fr);
}

.showroom-card {
  display: grid;
  align-content: end;
  min-height: 260px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.showroom-card:hover {
  border-color: rgba(0, 108, 103, 0.45);
  transform: translateY(-2px);
}

.showroom-card.featured {
  color: white;
  background:
    linear-gradient(180deg, rgba(6, 79, 75, 0.12), rgba(6, 79, 75, 0.90)),
    url("/experiments/hospitality-samples/karon-boutique-direct-path/assets/hero.jpg") center / cover;
  border-color: rgba(6, 79, 75, 0.34);
}

.showroom-card.featured.heritage {
  background:
    linear-gradient(180deg, rgba(124, 58, 34, 0.12), rgba(124, 58, 34, 0.90)),
    url("/experiments/hospitality-samples/old-city-boutique-direct-booking/assets/hero.jpg") center / cover;
  border-color: rgba(124, 58, 34, 0.34);
}

.showroom-card.featured.villa {
  background:
    linear-gradient(180deg, rgba(6, 58, 46, 0.12), rgba(6, 58, 46, 0.90)),
    url("/experiments/hospitality-samples/krabi-pool-villa-resort/assets/hero.jpg") center / cover;
  border-color: rgba(6, 58, 46, 0.34);
}

.showroom-card.featured.hostel {
  background:
    linear-gradient(180deg, rgba(120, 48, 28, 0.12), rgba(120, 48, 28, 0.90)),
    url("/experiments/hospitality-samples/bangkok-design-hostel/assets/hero.jpg") center / cover;
  border-color: rgba(120, 48, 28, 0.34);
}

.showroom-card.featured p,
.showroom-card.featured span {
  color: rgba(255, 255, 255, 0.82);
}

.offer-ladder {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-ladder article {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  box-shadow: none;
}

.offer-ladder article.featured {
  color: white;
  background: linear-gradient(145deg, var(--teal-dark), var(--teal));
}

.offer-ladder article.featured span,
.offer-ladder article.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.premium-panel span:nth-child(2n) {
  background: #fff6e3;
  color: #705018;
}

.quality-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quality-grid article {
  box-shadow: none;
  background: #f7fbfa;
}

.package-grid,
.vertical-grid,
.audit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.package,
.vertical-grid article,
.audit-grid article,
.prospect-list article {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.package.featured {
  border-color: rgba(0, 108, 103, 0.38);
  background: linear-gradient(180deg, #ffffff, #eef8f6);
}

.price {
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: 1.48rem;
  font-weight: 900;
}

.package ul,
.steps {
  padding-left: 1.2rem;
}

.package li + li {
  margin-top: 0.45rem;
}

.vertical-grid article span,
.audit-grid article span,
.prospect-list article span {
  color: var(--coral);
  font-weight: 900;
}

.vertical-grid article p,
.audit-grid article p,
.prospect-list article p {
  color: var(--muted);
}

.offer-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.offer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1rem;
  align-items: stretch;
}

.offer-main,
.offer-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.offer-main h3 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.check-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.2rem;
}

.offer-side {
  display: grid;
  gap: 0.75rem;
  background: #f6fbfa;
}

.offer-side div {
  border-bottom: 1px solid rgba(216, 225, 229, 0.82);
  padding-bottom: 0.75rem;
}

.offer-side div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.offer-side strong,
.offer-side span {
  display: block;
}

.offer-side span {
  margin-top: 0.18rem;
  color: var(--muted);
}

.audit-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.prospect-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.prospect-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: start;
  box-shadow: none;
}

.prospect-list article span {
  grid-row: span 2;
}

.outreach-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 1rem;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.outreach-band > div:first-child,
.pitch-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pitch-panel {
  display: grid;
  gap: 0.65rem;
}

.pitch-panel span {
  border-radius: 7px;
  padding: 0.72rem;
  background: var(--soft);
  color: var(--teal-dark);
  font-weight: 850;
}

.demo-links {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.link-list a {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.68rem 0.85rem;
  background: var(--surface);
  font-weight: 800;
  text-decoration: none;
}

.steps {
  display: grid;
  gap: 0.85rem;
  list-style-position: inside;
}

.steps li {
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.steps strong {
  display: block;
  margin-bottom: 0.2rem;
}

.steps span {
  color: var(--muted);
}

.bot-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 1rem;
  align-items: stretch;
}

.bot-band > div:first-child,
.bot-panel,
.intake {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.bot-panel {
  display: grid;
  gap: 0.65rem;
}

.bot-panel span {
  border-radius: 7px;
  padding: 0.72rem;
  background: var(--soft);
  color: var(--teal-dark);
  font-weight: 850;
}

.intake {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .topbar {
    position: static;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .premium-hero .hero-media::after {
    background:
      linear-gradient(180deg, rgba(7, 16, 15, 0.32) 0%, rgba(7, 16, 15, 0.72) 54%, rgba(7, 16, 15, 0.92) 100%),
      linear-gradient(180deg, transparent 84%, var(--paper) 100%);
  }

  .hero-copy {
    padding-bottom: 2.5rem;
  }

  .hero-stats,
  .package-grid,
  .vertical-grid,
  .research-grid,
  .audit-grid,
  .showroom-grid,
  .offer-ladder,
  .offer-layout,
  .quality-grid,
  .prospect-list,
  .outreach-band,
  .split,
  .evidence-band,
  .bot-band {
    grid-template-columns: 1fr;
  }

  .prospect-list article {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .notice,
  .intake {
    display: block;
  }

  .notice {
    margin-top: 0;
  }

  .intake .button {
    margin-top: 1rem;
    width: 100%;
  }
}

/* Customer-facing upgrade 2026-06-09: contact band, legal footer, privacy page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.contact-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.18rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-grid strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--teal);
}

.contact-grid span {
  color: var(--muted);
}

.footer-legal {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  margin-bottom: 1rem;
}

.footer-legal div {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.footer-legal strong {
  color: var(--ink);
}

.footer-legal a {
  color: var(--teal);
}

.legal-page {
  max-width: 920px;
}

.legal-stack h2 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

.legal-note {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 860px) {
  .contact-grid,
  .footer-legal {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-motion-tilt],
  .showroom-card:hover {
    opacity: 1;
    transform: none !important;
    transition: none;
  }

  .hero-video {
    transform: none;
    animation: none;
  }

  .premium-hero h1 span {
    animation: none;
  }

  .hero-cursor-glow {
    display: none;
  }

  /* Kill magnetic/tilt transitions on interactive elements */
  .button.primary,
  .showroom-card,
  .research-grid article,
  .offer-ladder article {
    transition: none;
    will-change: auto;
  }
}

/* ============================================================
   Top-tier visual pass (2026-06-21) — palette cohesion, soft
   layered elevation, refined cards / eyebrows / buttons.
   Appended so it cleanly overrides the base rules above.
   ============================================================ */
:root {
  --hairline: rgba(23, 33, 42, 0.09);
  --gold-ink: #8a5e12;
  --shadow: 0 1px 2px rgba(23, 33, 42, 0.05), 0 10px 24px rgba(23, 33, 42, 0.07), 0 30px 56px rgba(23, 33, 42, 0.06);
  --shadow-soft: 0 1px 2px rgba(23, 33, 42, 0.04), 0 6px 18px rgba(23, 33, 42, 0.06);
  --shadow-hover: 0 2px 6px rgba(23, 33, 42, 0.07), 0 18px 38px rgba(23, 33, 42, 0.12), 0 40px 72px rgba(23, 33, 42, 0.08);
}

/* refined card surfaces: hairline border, larger radius, soft layered elevation */
.research-grid article,
.showroom-card,
.package,
.vertical-grid article,
.audit-grid article,
.prospect-list article,
.evidence-band > div:first-child,
.evidence-steps,
.offer-main,
.offer-side,
.outreach-band > div:first-child,
.pitch-panel,
.bot-band > div:first-child {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

/* tactile lift on the feature/info cards */
.research-grid article,
.package,
.vertical-grid article,
.showroom-card {
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.34s ease, border-color 0.3s ease;
}
.research-grid article:hover,
.package:hover,
.vertical-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 108, 103, 0.22);
  box-shadow: var(--shadow-hover);
}

/* palette cohesion: retire coral accents -> deep gold (AA on white) */
.research-grid article span,
.showroom-card span,
.offer-ladder article span,
.vertical-grid article span,
.audit-grid article span,
.prospect-list article span {
  color: var(--gold-ink);
  letter-spacing: 0.07em;
}

/* eyebrow: refined teal label */
.eyebrow {
  border-color: rgba(0, 108, 103, 0.18);
  background: rgba(0, 108, 103, 0.06);
  letter-spacing: 0.05em;
}

/* standards notice: from coral wash to a calm gold-accented surface */
.notice {
  margin-top: -2.5rem;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 1.05rem 1.25rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.notice strong { color: var(--teal-dark); }

/* primary button: subtle vertical gradient + teal glow (page only; hero stays gold) */
.button.primary {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  box-shadow: 0 10px 24px rgba(0, 108, 103, 0.22);
}
.button.primary:hover { box-shadow: 0 14px 32px rgba(0, 108, 103, 0.30); }
.premium-hero .button.primary {
  background: var(--gold);
  box-shadow: 0 14px 32px rgba(214, 145, 27, 0.30);
}
.premium-hero .button.primary:hover { box-shadow: 0 16px 36px rgba(214, 145, 27, 0.36); }

/* nav hover */
.nav a:hover,
.lang-toggle:hover {
  border-color: rgba(0, 108, 103, 0.4);
  color: var(--teal-dark);
}

/* featured cards get a gold hairline cap tying them to the hero */
.offer-ladder article.featured,
.package.featured { position: relative; overflow: hidden; }
.offer-ladder article.featured::before,
.package.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #f1b657 60%, var(--gold));
}

/* heading rhythm + tracking; hero gold line gets a touch more legibility */
.section-heading { margin-bottom: 1.9rem; }
h2 { letter-spacing: -0.01em; }
.premium-hero h1 span { text-shadow: 0 2px 18px rgba(7, 16, 15, 0.5); }

/* unify left-accent list radii with the new card language */
.evidence-steps li { border-radius: 10px; }
.steps li { border-radius: 12px; box-shadow: var(--shadow-soft); }

@media (prefers-reduced-motion: reduce) {
  .research-grid article,
  .package,
  .vertical-grid article,
  .showroom-card { transition: none; }
  .research-grid article:hover,
  .package:hover,
  .vertical-grid article:hover { transform: none; box-shadow: var(--shadow-soft); }
}

/* offer ladder (2026-06-21): roomier 3-up grid (2-up on tablet, 1-up on phone
   via the 860px rule above), with the main package clearly elevated. */
@media (min-width: 861px) and (max-width: 1080px) {
  .offer-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.offer-ladder article {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.35rem;
}
.offer-ladder article.featured {
  z-index: 1;
  box-shadow: 0 20px 44px rgba(0, 108, 103, 0.28);
}
.offer-ladder article.featured h3 {
  font-size: 1.7rem;
}

/* ============================================================
   Editorial section dividers (2026-06-24) — extend the editorial
   language into the section rhythm: a centered tapered hairline
   with a small gold diamond marks the start of each major
   movement. CSS-only; applies to both TH and EN. Reduced-motion
   safe (fully static). Replaces the old flat full-width border-top.
   ============================================================ */
.research-lab,
.evidence-band,
.demo-showroom,
.offer-band,
.outreach-band,
.quality-panel,
.contact-band {
  position: relative;
  border-top: 0;
  border-bottom: 0;
}
.research-lab::before,
.evidence-band::before,
.demo-showroom::before,
.offer-band::before,
.outreach-band::before,
.quality-panel::before,
.contact-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(660px, 72%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--hairline) 20%, var(--hairline) 80%, transparent);
  pointer-events: none;
}
.research-lab::after,
.evidence-band::after,
.demo-showroom::after,
.offer-band::after,
.outreach-band::after,
.quality-panel::after,
.contact-band::after {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-ink) 100%);
  border-radius: 1px;
  box-shadow: 0 0 0 4px var(--paper);
  pointer-events: none;
}

/* Homepage hero: photographic still (replaces the AI video loop) — 2026-07-14.
   Fixes the loop micro-stutter (#1) and the AI-look (#9); reuses heroKen pan. */
.hero-img { z-index: 0; transform: scale(1.06); animation: heroKen 32s ease-in-out infinite alternate; filter: saturate(1.02) contrast(1.02); }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; transform: none; } }
/* section imagery + LINE button (homepage buildout #5/#6) */
.section-figure { margin: 0 0 clamp(28px,4vw,44px); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.section-figure img { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block; }
.contact-grid .line-cta { display: inline-flex; align-items: center; gap: .5em; margin-top: 10px; padding: 11px 20px; border-radius: 999px; background: #06C755; color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.contact-grid .line-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6,199,85,.32); }
