/* Ruay Thai SG landing — Reverent Luxury system, tokens mirrored from
   packages/design-tokens/tokens.css. Depth by surface layering, never shadow. */

:root {
  --canvas: #0b0a08;
  --true-black: #000000;
  --surface-1: #14110d;
  --surface-2: #1e1a14;
  --surface-3: #2a241b;
  --hairline: #3a3327;
  --gold: #c8a24c;
  --candle: #e8c766;
  --jade: #6fa38c;
  --heading: #f4f1ea;
  --body: #9a9082;
  --meta: #948b76;
  --on-gold: #1a1611;
  --focus: #f2d479;
  --paper: #f7f2e6;
  --ink: #1a1611;
  --r-chip: 4px;
  --r-btn: 6px;
  --r-card: 8px;
  --r-sheet: 12px;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --measure: 62ch;
}

* {
  box-sizing: border-box;
  box-shadow: none;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--heading);
  line-height: 1.15;
  text-wrap: balance;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--candle);
  text-decoration: none;
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background-color 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-head.scrolled {
  background: rgba(11, 10, 8, 0.92);
  border-bottom-color: var(--hairline);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 19px;
}

.brand-seal {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex: none;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
}

.site-nav a {
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--candle);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(130px, 18vh, 190px) clamp(20px, 5vw, 56px) clamp(60px, 9vh, 110px);
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  margin-bottom: 24px;
}

.hero p {
  max-width: var(--measure);
  font-size: 17px;
  margin-bottom: 36px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 500;
  transition: filter 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-gold {
  background: linear-gradient(180deg, var(--candle), var(--gold));
  color: var(--on-gold);
}

.btn-gold:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--heading);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--candle);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.halo {
  position: relative;
  width: min(420px, 78vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.halo::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle at 50% 42%, rgba(232, 199, 102, 0.13), transparent 62%);
  pointer-events: none;
}

.halo-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.halo-ring-outer {
  color: var(--hairline);
  animation: spin 90s linear infinite;
}

.halo-ring-inner {
  color: var(--hairline);
}

.halo-arc {
  color: var(--gold);
  transform-origin: 50% 50%;
  animation: spin 36s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.krob {
  position: relative;
  width: 62%;
  aspect-ratio: 4 / 5;
  background: var(--true-black);
  border: 1px solid var(--hairline);
  border-radius: 46% 46% 10% 10% / 34% 34% 6% 6%;
  overflow: hidden;
  padding: 6px;
}

.krob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 46% 46% 10% 10% / 34% 34% 6% 6%;
}

/* ---------- tenets ---------- */

.tenets {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(70px, 10vh, 120px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(48px, 7vh, 72px);
}

.tenet svg {
  width: 38px;
  height: 38px;
  color: var(--gold);
  margin-bottom: 16px;
}

.tenet h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.tenet p {
  font-size: 15px;
  max-width: 34ch;
}

/* ---------- collection ---------- */

.collection {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(80px, 12vh, 140px);
}

.section-head h2,
.merit h2,
.membership h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 18px;
}

.lede {
  max-width: var(--measure);
  font-size: 17px;
  margin-bottom: 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.card:hover {
  border-color: var(--gold);
  background: var(--surface-2);
}

.card-media {
  background: var(--true-black);
  border-bottom: 1px solid var(--hairline);
}

.card-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.card-body {
  padding: 20px 22px 24px;
}

.card-body h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.card-body p {
  font-size: 14px;
  color: var(--meta);
}

.section-note {
  margin-top: 40px;
  font-size: 15px;
  color: var(--meta);
  max-width: var(--measure);
}

/* ---------- provenance (paper inversion) ---------- */

.provenance {
  background: var(--paper);
  color: #4a4234;
}

.provenance-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(70px, 11vh, 130px) clamp(20px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.provenance h2 {
  color: var(--ink);
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 20px;
}

.provenance-copy p {
  max-width: 56ch;
  margin-bottom: 16px;
}

.paper-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.paper-list li {
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px solid rgba(26, 22, 17, 0.12);
  font-size: 15px;
}

.paper-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold);
}

.certificate {
  background: #fffdf7;
  border: 1px solid rgba(26, 22, 17, 0.18);
  border-radius: var(--r-sheet);
  padding: clamp(26px, 3vw, 40px);
  color: #4a4234;
}

.cert-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.cert-house {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e6040;
  padding-top: 8px;
}

.cert-seal {
  width: 58px;
  height: 58px;
  flex: none;
}

.certificate h3 {
  color: var(--ink);
  font-size: 27px;
  margin-bottom: 12px;
}

.cert-lede {
  font-size: 14px;
  margin-bottom: 24px;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 0 0 26px;
}

.cert-grid dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6e6040;
  margin-bottom: 3px;
}

.cert-grid dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
}

.cert-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(26, 22, 17, 0.15);
  padding-top: 16px;
}

.cert-sign {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}

.cert-issue {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e6040;
}

/* ---------- merit ---------- */

.merit {
  border-bottom: 1px solid var(--hairline);
}

.merit-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.merit-lotus {
  width: 100%;
  color: var(--gold);
}

.merit p {
  max-width: var(--measure);
  font-size: 17px;
}

/* ---------- membership ---------- */

.membership {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 56px);
}

.membership p {
  max-width: var(--measure);
  font-size: 17px;
  margin-bottom: 16px;
}

.membership-close {
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 20px;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--hairline);
  background: var(--surface-1);
  padding: clamp(40px, 6vh, 64px) clamp(20px, 5vw, 56px) 32px;
}

.foot-inner {
  max-width: 1200px;
  margin: 0 auto 36px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.foot-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.foot-brand .brand-seal {
  margin-top: 3px;
}

.foot-name {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--heading);
}

.foot-line {
  font-size: 14px;
  color: var(--meta);
  max-width: 44ch;
}

.foot-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}

.foot-nav a {
  color: var(--body);
  font-size: 14px;
}

.foot-nav a:hover {
  color: var(--candle);
}

.foot-legal {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--meta);
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}

/* ---------- reveal motion ---------- */

/* hidden state only applies once main.js has stamped .js — no-JS keeps content visible */
[data-reveal].js {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 120px;
    text-align: left;
  }
  .hero-visual {
    order: -1;
  }
  .halo {
    width: min(300px, 70vw);
  }
  .tenets {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .provenance-inner {
    grid-template-columns: 1fr;
  }
  .merit-inner {
    grid-template-columns: 1fr;
  }
  .merit-lotus {
    width: 120px;
  }
  .site-nav {
    display: none;
  }
}
