/* ============================================================
   THAIHOME — PRIVATE ROUTE BOOK / 2026
   Fresh art direction layered over the stable production base.
   ============================================================ */

:root {
  --ink: #101725;
  --ink-2: #182235;
  --paper: #f3efe6;
  --paper-2: #e7dfcf;
  --paper-3: #fbf8f1;
  --text: #172130;
  --muted: #69717a;
  --line: rgba(23, 33, 48, .17);
  --light-line: rgba(243, 239, 230, .18);
  --accent: #c9a96e;
  --accent-deep: #8d4037;
  --brass: #d8bc83;
  --mint: #9bb4bc;
  --display: "Gowun Batang", "Nanum Myeongjo", Georgia, serif;
  --latin-display: "Cormorant Garamond", Georgia, serif;
  --gutter: clamp(24px, 5.4vw, 88px);
  --section: clamp(82px, 9vw, 142px);
}

html,
body { background: #090f1b; }

body {
  color: var(--text);
  letter-spacing: -.008em;
}

body::after {
  opacity: .04;
  mix-blend-mode: soft-light;
}

.stage {
  background:
    radial-gradient(800px circle at var(--mx) var(--my), rgba(201, 169, 110, .13), transparent 58%),
    linear-gradient(125deg, #090f1b 0%, #11192a 48%, #0b1220 100%);
}

.stage::before {
  background-image:
    radial-gradient(circle at 72% 13%, transparent 0 120px, rgba(216,188,131,.055) 121px 122px, transparent 123px 168px, rgba(216,188,131,.035) 169px 170px, transparent 171px),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 100% 100%, 96px 96px, 96px 96px;
  mask-image: linear-gradient(to bottom, #000 0 82%, transparent);
}

.frame {
  width: min(100% - 112px, 1480px);
  background: var(--paper);
  box-shadow: 0 40px 120px rgba(0,0,0,.38);
  border-inline: 1px solid rgba(216,188,131,.12);
}

.scroll-progress { height: 2px; background: rgba(255,255,255,.04); }
.scroll-progress span { background: linear-gradient(90deg, var(--accent-deep), var(--brass), #ebe1ca); }

.rail { color: rgba(243,239,230,.48); }
.rail--left { letter-spacing: .24em; }
.rail-btn {
  border-color: rgba(216,188,131,.2);
  background: rgba(10,16,28,.76);
}
.rail-btn b { color: var(--brass); }
.rail-btn:hover { color: var(--ink); background: var(--accent); }

.site-header {
  min-height: 76px;
  color: var(--paper-3);
  background: rgba(13,20,34,.9);
  border-bottom-color: rgba(216,188,131,.17);
  box-shadow: 0 8px 30px rgba(5,10,18,.12);
}

.site-header::before {
  content: "PRIVATE ROUTE BOOK";
  position: absolute;
  left: var(--gutter);
  bottom: -8px;
  padding-inline: 7px;
  color: rgba(216,188,131,.72);
  background: var(--ink);
  font: 600 8px/16px var(--sans);
  letter-spacing: .18em;
}

.brand img { width: 168px; }
.site-header nav a { padding-block: 25px 22px; color: rgba(251,248,241,.66); }
.site-header nav a::after { bottom: 18px; background: var(--brass); }

.header-call {
  min-height: 40px;
  border-color: rgba(216,188,131,.3);
  background: rgba(216,188,131,.04);
}
.header-call span { color: var(--brass); }
.header-call:hover { color: var(--ink); background: var(--brass); }

.eyebrow {
  color: var(--accent-deep);
  font-size: 10px;
  letter-spacing: .2em;
}
.eyebrow::before { width: 34px; }

.hero,
.page-hero {
  grid-template-columns: minmax(0, 1.16fr) minmax(350px, .84fr);
  grid-template-rows: auto auto auto auto 1fr;
  gap: 22px clamp(38px, 5vw, 74px);
  min-height: min(790px, calc(100vh - 76px));
  padding-top: clamp(92px, 9vw, 132px);
  padding-bottom: clamp(72px, 8vw, 112px);
  background:
    linear-gradient(90deg, rgba(201,169,110,.12) 0 1px, transparent 1px) calc(var(--gutter) + 7px) 0 / calc(100% - var(--gutter) * 2) 100% no-repeat,
    radial-gradient(circle at 22% 20%, rgba(141,64,55,.2), transparent 30%),
    linear-gradient(135deg, #121b2d, #0c1321 62%, #090f1b);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 12% 4% 8% 48%;
  pointer-events: none;
  opacity: .7;
  background:
    radial-gradient(ellipse at center, transparent 0 30%, rgba(216,188,131,.12) 30.2% 30.5%, transparent 30.8% 46%, rgba(216,188,131,.08) 46.2% 46.5%, transparent 46.8%),
    linear-gradient(115deg, transparent 49.7%, rgba(216,188,131,.13) 50%, transparent 50.3%);
}

.hero::after,
.page-hero::after {
  left: auto;
  right: var(--gutter);
  bottom: 34px;
  width: 84px;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: var(--brass);
  box-shadow: none;
}

.route-code {
  position: absolute;
  z-index: 4;
  top: 32px;
  right: var(--gutter);
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: rgba(251,248,241,.5);
  font: 600 9px/1 var(--sans);
  letter-spacing: .14em;
}
.route-code b {
  color: var(--brass);
  font: 600 18px/1 var(--latin-display);
  letter-spacing: .08em;
}

.hero-thai {
  left: var(--gutter);
  top: auto;
  bottom: 18px;
  color: transparent;
  -webkit-text-stroke-color: rgba(243,239,230,.075);
  font-family: var(--latin-display);
  font-size: clamp(58px, 8.4vw, 136px);
  font-weight: 500;
  letter-spacing: -.025em;
  transform: none;
}

.hero > .eyebrow,
.page-hero > .eyebrow { position: relative; z-index: 3; color: var(--brass); }

.hero h1,
.page-hero h1 {
  max-width: 790px;
  font-size: clamp(48px, 5.15vw, 78px);
  line-height: 1.17;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.page-hero h1 { font-size: clamp(43px, 4.2vw, 62px); }
.hero h1 em,
.page-hero h1 em { color: var(--brass); }

.hero-sub {
  color: rgba(251,248,241,.67);
  line-height: 1.82;
  text-wrap: pretty;
}

.hero-actions { margin-top: 4px; }
.btn { min-height: 54px; border-radius: 0; }
.btn--gold { color: var(--ink); background: var(--brass); }
.btn--gold:hover { color: var(--paper-3); background: var(--accent-deep); }
.btn--ghost { border-color: rgba(216,188,131,.36); }
.btn--ghost:hover { color: var(--ink); background: var(--paper-3); }

.hero-kws { gap: 8px 20px; padding-top: 14px; }
.hero-kws span { color: rgba(251,248,241,.48); }
.hero-kws span::before { color: var(--brass); content: "—"; }

.hero-figure {
  min-height: 575px;
  margin: -22px 0 -12px;
  clip-path: polygon(0 8%, 86% 8%, 100% 0, 100% 91%, 15% 91%, 0 100%);
  border: 1px solid rgba(216,188,131,.16);
}
.hero-figure::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 18px;
  border: 1px solid rgba(251,248,241,.22);
  pointer-events: none;
}
.hero-figure::after { background: linear-gradient(180deg, rgba(12,19,33,.02), rgba(12,19,33,.38)); }
.hero-figure img { object-position: center 28%; filter: saturate(.8) contrast(1.04); }

.hero-note {
  right: auto;
  left: 0;
  bottom: 9%;
  min-width: 230px;
  color: var(--paper-3);
  background: rgba(16,23,37,.91);
  border-left-color: var(--brass);
}
.hero-note strong { color: var(--brass); }

.page-hero { min-height: 690px; }
.page-hero .hero-figure { min-height: 510px; }

.crumb {
  min-height: 46px;
  background: #eae3d5;
  border-bottom-color: rgba(23,33,48,.12);
}

.marquee {
  color: var(--paper-3);
  background: var(--accent-deep);
  border-block-color: rgba(243,239,230,.18);
}
.marquee i { color: var(--brass); }

.stats-wrap {
  padding: 0 var(--gutter) 34px !important;
  background: var(--paper);
}
.stats { border-color: var(--line); background: rgba(255,255,255,.18); }
.stat { min-height: 164px; padding: 28px 24px; }
.stat b { font-family: var(--latin-display); font-size: clamp(42px, 4.5vw, 64px); }
.stat small { color: var(--accent-deep); }
.stat::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 65%);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .6s ease;
}
.stat:hover::after { transform: scaleX(1); }

.sec-head { gap: 18px clamp(46px, 6vw, 94px); }
.sec-head h2 {
  font-size: clamp(36px, 4.45vw, 60px);
  line-height: 1.22;
  text-wrap: balance;
}
.sec-head p { max-width: 520px; text-wrap: pretty; }

#area { background: var(--paper-3); }
.area-slider { gap: 12px; }
.area-card {
  height: clamp(330px, 32vw, 455px);
  background: var(--ink-2);
  border: 1px solid rgba(23,33,48,.12);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.area-card:nth-child(even) { transform: translateY(24px); }
.area-card::after { background: linear-gradient(180deg, rgba(11,18,31,.02) 28%, rgba(11,18,31,.9)); }
.area-card figcaption { left: 24px; bottom: 24px; }
.area-card figcaption strong { font-weight: 400; }
.chip-live {
  top: 14px;
  left: 14px;
  color: var(--paper-3);
  background: rgba(16,23,37,.82);
  border: 1px solid rgba(216,188,131,.28);
  backdrop-filter: blur(8px);
}
.chip-live::before { background: var(--brass); box-shadow: 0 0 0 4px rgba(216,188,131,.15); }

#price { background: #101725; }
#price::before {
  content: "COURSE LEDGER";
  position: absolute;
  right: var(--gutter);
  top: 44px;
  color: rgba(243,239,230,.055);
  font: 500 clamp(58px, 8vw, 120px)/1 var(--latin-display);
  letter-spacing: .04em;
}
#price .eyebrow { color: var(--brass); }
.price-grid { border-color: rgba(216,188,131,.22); }
.price-card {
  min-height: 382px;
  border-color: rgba(216,188,131,.18);
  background: linear-gradient(145deg, rgba(255,255,255,.018), transparent);
}
.price-card > i { color: var(--brass); font-family: var(--latin-display); font-size: 16px; }
.price-card:hover { color: var(--ink); background: var(--brass); }

.flow { counter-reset: flow; }
.flow-step { grid-template-columns: minmax(96px,.28fr) 1fr; min-height: 150px; }
.flow-step::before { color: var(--accent-deep); font-family: var(--latin-display); }
.flow-step > div { grid-template-columns: .7fr 1fr; }
.flow-step:hover { background: linear-gradient(90deg, transparent, rgba(201,169,110,.1)); }

#review { background: #e7dfcf; }
.bubble { border-color: rgba(23,33,48,.2); background: rgba(251,248,241,.32); }
.bubble--out { color: var(--paper-3); background: var(--ink); border-color: var(--ink); }
.review-card { background: rgba(251,248,241,.23); }
.review-card > b,
.review-card footer i { color: var(--accent-deep); }

#faq { background: var(--paper-3); }
.faq summary::after { color: var(--accent-deep); }

.route-summary {
  display: grid;
  grid-template-columns: minmax(220px,.42fr) 1fr;
  gap: 36px clamp(42px,7vw,110px);
  align-items: start;
  padding-top: clamp(52px,6vw,82px) !important;
  padding-bottom: clamp(52px,6vw,82px) !important;
  color: var(--text);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.route-summary p {
  max-width: 900px;
  font: 400 clamp(22px,2.5vw,34px)/1.65 var(--display);
  letter-spacing: -.035em;
  text-wrap: pretty;
}

.deep { gap: clamp(48px,6vw,88px); }
.deep-intro h2 { font-size: clamp(35px,4.3vw,60px); }
.deep-grid { border-color: var(--line); }
.deep-card {
  min-height: 280px;
  background:
    linear-gradient(90deg, var(--accent) var(--line-x,0%), transparent 0) left bottom / 100% 1px no-repeat;
}
.deep-card:nth-child(4n+2),
.deep-card:nth-child(4n+3) { background-color: rgba(231,223,207,.35); }
.deep-card > span { color: var(--accent-deep); }

.hub-banner {
  min-height: 460px;
  background:
    radial-gradient(ellipse at 82% 48%, transparent 0 22%, rgba(216,188,131,.12) 22.2% 22.5%, transparent 22.8% 35%, rgba(216,188,131,.08) 35.2% 35.5%, transparent 35.8%),
    linear-gradient(135deg,#111a2c,#0b111e);
}
.hub-banner::before {
  right: 7%;
  top: 12%;
  width: 1px;
  height: 76%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(var(--brass), transparent);
  box-shadow: none;
}
.hub-banner > span { color: var(--brass); }

.sub-links a::after { color: var(--accent-deep); }
.sub-links a.hot::before { color: var(--brass); }

.site-footer { background: #080e18; }
.foot-tel { color: var(--brass); font-family: var(--latin-display); }
.callbar {
  background: var(--accent-deep);
  box-shadow: 0 18px 48px rgba(5,10,18,.34);
}
.callbar:hover { background: var(--ink-2); }

[data-rv],
[data-rv-group] > * {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(3px);
}
.is-revealed {
  filter: none !important;
  transition: opacity .72s ease, transform .86s cubic-bezier(.2,.8,.2,1), filter .72s ease !important;
}
.no-js [data-rv],
.no-js [data-rv-group] > * { opacity: 1; transform: none; filter: none; }

body.tone-b,
body.tone-c { --accent: #c9a96e; --accent-deep: #8d4037; --brass: #d8bc83; }
body.layout-b .page-hero { grid-template-columns: minmax(350px,.9fr) minmax(0,1.1fr); }
body.layout-b .page-hero .hero-figure { clip-path: polygon(12% 0,100% 0,100% 88%,88% 100%,0 100%,0 12%); }
body.layout-c .page-hero .hero-figure { clip-path: polygon(0 0,100% 7%,100% 100%,15% 93%,0 100%); }
body.layout-b .deep-card:nth-child(3n),
body.layout-c .deep-card:nth-child(3n) { background-color: rgba(231,223,207,.35); }

@media (max-width: 1180px) {
  .frame { width: calc(100% - 48px); }
  .hero,
  .page-hero { grid-template-columns: minmax(0,1fr) minmax(300px,.82fr); }
}

@media (max-width: 820px) {
  :root { --gutter: 20px; --section: 74px; }
  .frame { width: 100%; border: 0; }
  .stage::before { background-size: 100% 100%, 62px 62px, 62px 62px; }
  .site-header { min-height: 66px; }
  .site-header::before { display: none; }
  .brand img { width: 148px; }
  .header-call { min-height: 38px; }

  .hero,
  .page-hero,
  body.layout-b .page-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 84px;
    padding-bottom: 54px;
    min-height: 0;
    background:
      radial-gradient(circle at 15% 16%, rgba(141,64,55,.24), transparent 31%),
      linear-gradient(145deg,#121b2d,#090f1b);
  }
  .hero::before,
  .page-hero::before { inset: 52% -26% 3% 28%; opacity: .6; }
  .hero::after,
  .page-hero::after { display: block; right: 20px; bottom: 28px; width: 54px; }
  .route-code { top: 22px; right: 20px; gap: 8px; }
  .route-code b { font-size: 15px; }
  .route-code span { display: none; }
  .hero-thai {
    left: 20px;
    top: 31px;
    bottom: auto;
    max-width: calc(100% - 40px);
    overflow: hidden;
    font-size: 34px;
    white-space: nowrap;
  }
  .hero h1,
  .page-hero h1,
  body.layout-c .page-hero h1 {
    font-size: clamp(38px,11.4vw,50px);
    line-height: 1.22;
    letter-spacing: -.06em;
  }
  .hero h1 .ln,
  .page-hero h1 .ln { display: block; }
  .hero h1 .ln::after,
  .page-hero h1 .ln::after { content: none; }
  .hero-sub { color: rgba(251,248,241,.72); font-size: 14px; }
  .hero-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .btn { min-height: 50px; padding-inline: 14px; font-size: 12px; }
  .btn::after { margin-left: 9px; }
  .hero-kws { padding-top: 4px; }
  .hero-figure,
  .page-hero .hero-figure,
  body.layout-b .page-hero .hero-figure,
  body.layout-c .page-hero .hero-figure {
    min-height: 390px;
    margin: 16px -20px -8px 34px;
    clip-path: polygon(0 0,calc(100% - 28px) 0,100% 28px,100% 92%,16% 92%,0 100%);
  }
  .hero-figure::before { inset: 12px; }
  .hero-note { left: -14px; bottom: 8%; min-width: 210px; }

  .stats-wrap { padding: 0 !important; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 130px; padding: 22px 18px; }
  .stat b { font-size: 42px; }
  .stat::after { left: 18px; right: 18px; bottom: 16px; }

  .sec-head h2 { font-size: 38px; line-height: 1.25; }
  .area-card,
  .area-card:nth-child(4n+1),
  .area-card:nth-child(4n+4) { flex-basis: 82vw; height: 390px; transform: none; }

  #price::before { top: 30px; font-size: 54px; }
  .price-card { min-height: 326px; }
  .flow-step { grid-template-columns: 58px 1fr; }
  .flow-step > div { grid-template-columns: 1fr; }
  .review-cards { grid-template-columns: 1fr; }

  .route-summary {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 50px !important;
  }
  .route-summary p { font-size: 22px; line-height: 1.7; }

  .deep-grid { grid-template-columns: 1fr; }
  .deep-card:nth-child(4n+2),
  .deep-card:nth-child(4n+3) { background-color: transparent; }
  .deep-card:nth-child(even) { background-color: rgba(231,223,207,.35); }
  .hub-banner { min-height: 430px; }
  .hub-banner h2 { font-size: 42px; }
  .callbar { background: var(--accent-deep); }
}

@media (max-width: 420px) {
  .hero h1,
  .page-hero h1,
  body.layout-c .page-hero h1 { font-size: 37px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-figure,
  .page-hero .hero-figure,
  body.layout-b .page-hero .hero-figure,
  body.layout-c .page-hero .hero-figure { min-height: 360px; }
  .area-card,
  .area-card:nth-child(4n+1),
  .area-card:nth-child(4n+4) { flex-basis: 84vw; height: 370px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-rv],
  [data-rv-group] > * { filter: none !important; }
}
