/* ============================================================
   MEET TEEM & AKO — Genesis V2 (self-contained, scoped)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }

.meet-root {
  --ivory: oklch(0.972 0.016 88);
  --ivory-deep: oklch(0.941 0.024 85);
  --cream: oklch(0.988 0.008 90);
  --charcoal: oklch(0.235 0.012 60);
  --charcoal-soft: oklch(0.44 0.012 65);
  --clover: oklch(0.55 0.105 152);
  --gold: oklch(0.76 0.095 78);
  --electric: oklch(0.58 0.13 248);
  --line: oklch(0.235 0.012 60 / 0.12);
  --glass: oklch(1 0 0 / 0.55);
  --accent: var(--clover);

  position: relative;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.meet-root[data-intent="opportunity"] { --accent: var(--electric); }
.meet-root[data-intent="curious"] { --accent: var(--gold); }

.meet-display {
  font-family: "Anuphan", "IBM Plex Sans Thai", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

.meet-eyebrow {
  font-family: "Anuphan", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin: 0;
}

button { font: inherit; color: inherit; }

/* ---------- header ---------- */
.meet-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, var(--ivory), color-mix(in oklab, var(--ivory) 60%, transparent) 70%, transparent);
  backdrop-filter: blur(10px);
}
.meet-header .brand { display: flex; min-width: 0; align-items: baseline; gap: 0.5rem; }
.meet-header .brand span:first-child { font-size: 1rem; }
.meet-header .sub { display: none; font-size: 0.75rem; color: var(--charcoal-soft); }

/* ---------- atmosphere ---------- */
.meet-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 78% 10%, oklch(0.99 0.02 92) 0%, transparent 62%),
    radial-gradient(90% 60% at 8% 88%, oklch(0.93 0.035 140 / 0.55) 0%, transparent 65%),
    linear-gradient(180deg, var(--cream), var(--ivory-deep));
}

.meet-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(oklch(0.235 0.012 60 / 0.16) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}

/* ---------- atoms ---------- */
.meet-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
}
.meet-chip-accent {
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  color: color-mix(in oklab, var(--accent) 70%, var(--charcoal));
  background: color-mix(in oklab, var(--accent) 10%, var(--cream));
}
button.meet-chip { min-height: 44px; padding-inline: 1rem; cursor: pointer; }

.meet-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--cream);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 34px -14px oklch(0.235 0.012 60 / 0.7);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.35s ease, background 0.4s ease;
}
.meet-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -16px oklch(0.235 0.012 60 / 0.75); }
.meet-cta:active { transform: translateY(0) scale(0.985); }
.meet-cta:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.meet-cta::before {
  content: "";
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent);
  transition: background 0.4s ease;
}

.meet-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: oklch(1 0 0 / 0.4);
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.meet-ghost:hover { background: oklch(1 0 0 / 0.8); color: var(--charcoal); }

.meet-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 84px;
  padding: 1.05rem 1.15rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: oklch(1 0 0 / 0.45);
  text-align: start;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.meet-row:hover { transform: translateY(-2px); background: oklch(1 0 0 / 0.75); }
.meet-row[data-active="true"] {
  background: var(--cream);
  border-color: color-mix(in oklab, var(--row-accent) 55%, transparent);
  box-shadow: 0 18px 40px -22px color-mix(in oklab, var(--row-accent) 80%, transparent);
}
.meet-row::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12%;
  height: 76%;
  width: 3px;
  border-radius: 999px;
  background: var(--row-accent);
  transform: scaleY(0);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.meet-row[data-active="true"]::before { transform: scaleY(1); }
.meet-row .row-copy { min-width: 0; padding-inline-start: 0.75rem; }
.meet-row .row-copy .t { display: block; font-size: 1.35rem; }
.meet-row .row-copy .s { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--charcoal-soft); }
.meet-row .row-mark {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; flex: 0 0 auto;
  border: 1px solid; border-radius: 999px; font-size: 0.875rem;
}

.meet-panel {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, oklch(1 0 0 / 0.8), oklch(1 0 0 / 0.35));
  backdrop-filter: blur(14px);
}

.meet-field {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: oklch(1 0 0 / 0.7);
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  outline: none;
  margin-top: 0.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.meet-field:focus-visible {
  border-color: color-mix(in oklab, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.meet-field::placeholder { color: color-mix(in oklab, var(--charcoal-soft) 70%, transparent); }
textarea.meet-field { min-height: 6rem; resize: none; }

.meet-root :focus-visible { outline: 2px solid color-mix(in oklab, var(--accent) 70%, transparent); outline-offset: 3px; }
.meet-portrait { filter: saturate(1.02) contrast(1.02); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
}
.hero-photo { position: absolute; inset-inline: 0; bottom: 0; height: 43svh; }
.hero-photo img { height: 100%; width: 100%; object-fit: cover; object-position: 52% 2%; }
.hero-photo .fade-m {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ivory) 0%, transparent 26%, transparent 78%, color-mix(in oklab, var(--ivory) 82%, transparent) 100%);
}
.hero-photo .fade-d { display: none; }
.hero-copy {
  position: relative; z-index: 10;
  display: flex; flex: 1; flex-direction: column;
  padding: 5rem 1.25rem 42svh;
}
.hero-copy h1 { margin-top: 1rem; font-size: clamp(2.9rem, 14vw, 5.6rem); }
.hero-copy .lead { margin: 1rem 0 0; max-width: 24rem; font-size: 1.05rem; color: var(--charcoal-soft); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }

.clover-svg {
  position: absolute; top: -6rem; right: -4rem;
  height: 52vh; width: 52vh; opacity: 0.7; pointer-events: none;
}

/* ---------- sections ---------- */
.wrap { margin: 0 auto; width: 100%; max-width: 48rem; padding-inline: 1.25rem; }
.wrap-wide { max-width: 56rem; }
.choose { position: relative; padding-top: 6rem; padding-bottom: 1rem; scroll-margin-top: 6rem; }
.choose h2 { margin-top: 0.75rem; font-size: clamp(1.7rem, 7vw, 2.6rem); }
.rows { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.75rem; }

.value { padding: 2.5rem 1.25rem 0.5rem; scroll-margin-top: 4rem; }
.value .meet-panel { padding: 1.5rem; }
.value h3 { margin-top: 0.75rem; font-size: clamp(1.6rem, 6.4vw, 2.3rem); }
.value .lead { margin: 1rem 0 0; font-size: 1.1rem; font-weight: 500; color: color-mix(in oklab, var(--accent) 65%, var(--charcoal)); }
.value .empty { text-align: center; font-size: 0.875rem; color: var(--charcoal-soft); }
.body-box {
  display: grid; gap: 0.75rem; margin-top: 1.5rem;
  border: 1px solid var(--line); border-radius: 1rem; background: var(--cream); padding: 1.25rem;
}
.body-box .head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 0.75rem; }
.body-box .note { margin: 0; font-size: 0.875rem; color: var(--charcoal-soft); }
.value .meet-cta { margin-top: 1.75rem; width: 100%; }

.flow { display: flex; align-items: stretch; gap: 0.75rem; padding: 3.5rem 1.25rem; }
.flow .step { display: flex; min-width: 0; flex: 1; align-items: center; gap: 0.75rem; }
.flow .step p:first-child { font-size: clamp(1.3rem, 5.5vw, 1.9rem); }
.flow .step p:last-child { font-size: 0.75rem; color: var(--charcoal-soft); }
.flow .rule { height: 1px; flex: 1; background: var(--line); }

/* ---------- identity ---------- */
.identity { padding-bottom: 1.5rem; }
.portraits { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.portrait {
  position: relative; margin: 0; aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: 26px; cursor: pointer;
}
.portrait img {
  height: 100%; width: 100%; object-fit: cover; transform: scale(1.4);
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.portrait:hover img { transform: scale(1.46); }
.portrait figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 1rem;
  background: linear-gradient(0deg, oklch(0.235 0.012 60 / 0.72), transparent);
}
.portrait .eyebrow { margin: 0; font-size: 0.55rem; letter-spacing: 0.2em; color: oklch(1 0 0 / 0.75); }
.portrait .name { font-size: 1.25rem; color: oklch(1 0 0); }
.portrait .note { margin: 0; font-size: 0.75rem; color: oklch(1 0 0 / 0.8); }
.portrait .profile-link {
  display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.5rem;
  border: 1px solid oklch(1 0 0 / 0.35); border-radius: 999px;
  padding: 0.25rem 0.625rem; font-size: 0.7rem; font-weight: 500;
  color: oklch(1 0 0 / 0.88); text-decoration: none; backdrop-filter: blur(2px);
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease;
}
.portrait[data-revealed="true"] .profile-link { opacity: 1; transform: translateY(0); pointer-events: auto; }
.portrait .profile-link:hover { border-color: oklch(1 0 0 / 0.6); }
.identity-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; }

/* ---------- trust + footer ---------- */
.trust { padding-top: 1rem; padding-bottom: 10rem; }
.trust details { padding: 1rem 1.25rem; }
.trust summary {
  display: flex; min-height: 2.75rem; cursor: pointer; list-style: none;
  align-items: center; justify-content: space-between; font-size: 0.98rem; font-weight: 500;
}
.trust summary::-webkit-details-marker { display: none; }
.trust summary .plus { color: var(--charcoal-soft); transition: transform 0.3s ease; }
.trust details[open] summary .plus { transform: rotate(45deg); }
.trust dl { display: grid; gap: 0.5rem; margin: 0.75rem 0 0; }
.trust .qa { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: 0.5rem 0; }
.trust dt { font-size: 0.875rem; color: var(--charcoal-soft); }
.trust dd { margin: 0; }
.meet-footer { margin-top: 3rem; text-align: center; }
.meet-footer p:first-child { font-size: clamp(1.4rem, 5.5vw, 2rem); line-height: 1.2; }
.meet-footer .small { margin-top: 1rem; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--charcoal-soft); }

/* ---------- sticky CTA ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  padding: 2.5rem 1rem max(1rem, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--ivory) 45%);
  pointer-events: none;
}
.sticky-cta button { pointer-events: auto; display: flex; width: 100%; max-width: 28rem; margin: 0 auto; }

/* ---------- booking sheet ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-root[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; border: 0; padding: 0; background: oklch(0.235 0.012 60 / 0.45); backdrop-filter: blur(4px); }
.sheet {
  position: relative; display: flex; flex-direction: column;
  max-height: 94svh; width: 100%; max-width: 32rem;
  overflow: hidden; border-radius: 28px 28px 0 0; background: var(--cream);
}
.sheet-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 0.75rem; padding: 1.25rem 1.25rem 0; }
.sheet-head .t { font-size: 1.25rem; }
.sheet-head .s { margin: 0; font-size: 0.75rem; color: var(--charcoal-soft); }
.sheet-progress { display: flex; gap: 0.375rem; padding: 0 1.25rem; margin-top: 1rem; }
.sheet-progress[hidden], .sheet-foot[hidden], .sheet-foot > [hidden] { display: none; }
.sheet-progress span { height: 4px; flex: 1; border-radius: 999px; background: var(--line); transition: background 0.5s ease; }
.sheet-progress span[data-on="true"] { background: var(--accent); }
.sheet-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.sheet-body h4 { font-size: 1.4rem; }
.sheet-body .field-label { display: block; margin-top: 1rem; font-size: 0.875rem; color: var(--charcoal-soft); }
.sheet-foot {
  display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 0.75rem;
  border-top: 1px solid var(--line); padding: 1rem 1.25rem max(1rem, env(safe-area-inset-bottom));
}
.sheet-foot .meet-cta { width: 100%; }
.preview-note {
  margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 1rem;
  background: var(--ivory); padding: 0.75rem; font-size: 0.75rem; color: var(--charcoal-soft);
}
.sheet-error {
  margin-top: 1.25rem; border: 1px solid color-mix(in oklab, #c0392b 35%, var(--line));
  border-radius: 1rem; background: color-mix(in oklab, #c0392b 6%, var(--ivory));
  padding: 0.75rem; font-size: 0.8125rem; color: color-mix(in oklab, #c0392b 70%, var(--charcoal));
}

/* ---------- motion ---------- */
@keyframes meet-rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes meet-reveal { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
@keyframes meet-drift { 0%, 100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(0,-14px,0) rotate(4deg); } }
@keyframes meet-trace { from { stroke-dashoffset: 620; } to { stroke-dashoffset: 0; } }
.meet-rise { animation: meet-rise 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.meet-reveal { animation: meet-reveal 1.4s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.meet-drift { animation: meet-drift 12s ease-in-out infinite; }
.meet-trace { stroke-dasharray: 620; animation: meet-trace 2.6s ease-out both; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .meet-header { padding-inline: 2rem; }
  .meet-header .sub { display: inline; }
  .wrap, .hero-copy, .flow, .value { padding-inline: 2rem; }
  .value .meet-panel { padding: 2rem; }
  .value .meet-cta { width: auto; }
  .sheet { border-radius: 28px; }
  .sheet-root { align-items: center; }
}

@media (min-width: 768px) {
  .hero-photo { inset: 0 0 0 46%; height: auto; width: 54%; }
  .hero-photo img { object-position: 50% 18%; }
  .hero-photo .fade-m { display: none; }
  .hero-photo .fade-d {
    display: block; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--ivory) 0%, transparent 34%), linear-gradient(0deg, var(--ivory) 0%, transparent 22%);
  }
  .hero-copy { max-width: 52%; justify-content: center; padding-top: 4rem; padding-bottom: 0; }
  .clover-svg { right: auto; left: 30%; }
}

@media (prefers-reduced-motion: reduce) {
  .meet-root *, .meet-root *::before, .meet-root *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
