/* ---------- Design tokens ---------- */
:root {
  --bg: #0b0b0b;
  --ink: #f2f0eb;
  --cream: #f2e6c9;
  --muted: #8a8a8a;
  --line: rgba(242, 240, 235, 0.12);
  --red: #c8102e;
  --gold: #e0b040;
  --orange: #e8743b;
  --leaf: #5c9a5a;
  --brown: #5a3a22;

  --font-display: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Noto Serif', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, p, dl, dd, dt { margin: 0; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Language switch (Vietnamese by default, no JS needed) ---------- */
html:not([data-lang="en"]) [data-lang-text="en"] { display: none !important; }
html[data-lang="en"] [data-lang-text="vi"] { display: none !important; }

/* ---------- Single-screen stage ---------- */
.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 40px;
  padding: 96px 6vw 64px;
  overflow: hidden;
  background:
    radial-gradient(55% 55% at 78% 45%, rgba(200, 16, 46, 0.16), transparent 70%),
    radial-gradient(40% 40% at 8% 100%, rgba(232, 116, 59, 0.1), transparent 70%),
    var(--bg);
}

.top-bar {
  position: absolute;
  top: 24px;
  left: 6vw;
  right: 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.brand {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.lang-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Copy ---------- */
.copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  animation: fade-up 1s var(--ease) both;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.domain {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8.4vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.domain-tld { color: var(--red); }

.lede {
  margin-top: 24px;
  max-width: 460px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--red);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.btn:hover { background: var(--ink); color: var(--bg); }

.mail { margin-top: 20px; font-size: 14px; }
.mail a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.mail a:hover { border-color: var(--gold); }

/* ---------- Food illustrations ---------- */
.art {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(40vw, 560px, 74svh);
  aspect-ratio: 1;
}

.ring {
  position: absolute;
  inset: -4%;
  border: 1px dashed rgba(242, 240, 235, 0.14);
  border-radius: 50%;
  animation: spin 90s linear infinite;
}

.glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.3), transparent 65%);
  animation: breathe 7s ease-in-out infinite;
}

.food-slot {
  position: absolute;
  animation: rise 1.1s var(--ease) both;
  animation-delay: var(--d, 0s);
  transition: transform 0.6s var(--ease);
}

.food-slot:hover { transform: scale(1.06) rotate(-2deg); }

.food {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: bob 6s ease-in-out infinite;
}

.slot-pho { --d: 0.25s; left: 12%; top: 16%; width: 64%; }
.slot-banhmi { --d: 0.45s; right: -2%; top: 6%; width: 58%; }
.slot-coffee { --d: 0.65s; left: -2%; bottom: 2%; width: 30%; }
.slot-goicuon { --d: 0.85s; right: 4%; bottom: 8%; width: 38%; }

.slot-pho .food { animation-delay: -1s; }
.slot-banhmi .food { animation-delay: -3s; }
.slot-coffee .food { animation-delay: -2s; }
.slot-goicuon .food { animation-delay: -4s; }

.steam path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 30;
  opacity: 0;
  animation: steam 3.2s ease-in-out infinite;
}

.steam path:nth-child(2) { animation-delay: 1s; }
.steam path:nth-child(3) { animation-delay: 2s; }

/* ---------- Footer ---------- */
.site-footer {
  position: absolute;
  left: 6vw;
  bottom: 22px;
  font-size: 12px;
  color: var(--muted);
  z-index: 2;
}

/* ---------- Keyframes ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; translate: 0 36px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

@keyframes steam {
  0% { opacity: 0; stroke-dashoffset: 30; transform: translateY(6px); }
  35% { opacity: 0.75; }
  100% { opacity: 0; stroke-dashoffset: -30; transform: translateY(-14px); }
}

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

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* ---------- Narrow screens: stack, still one section ---------- */
@media (max-width: 820px) {
  .stage {
    height: auto;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 84px var(--gutter) 64px;
    overflow: visible;
  }

  .art {
    order: -1;
    width: min(86vw, 380px);
    margin-top: 8px;
  }

  .copy { text-align: center; margin: 0 auto; }
  .domain { font-size: clamp(3rem, 17vw, 5.5rem); }
  .lede { margin-left: auto; margin-right: auto; }

  .actions { justify-content: center; }
  .actions .btn { flex: 1 1 100%; }

  .top-bar { left: var(--gutter); right: var(--gutter); }
  .site-footer {
    position: static;
    text-align: center;
    margin-top: 8px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .steam path { opacity: 0.6; }
}
