/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════════════
   LIGHT MODE (default)
══════════════════════════════════════ */
:root {
  --bg:         #FAF8F5;
  --bg-form:    #F2EFE9;
  --bg-intro:   #FAF8F5;
  --text:       #2C1810;
  --text-dim:   #8C7B6B;
  --accent:     #3C2A1A;
  --accent-dim: #5C4A38;
  --border:     rgba(0,0,0,0.08);
  --glow-rgb:   60,42,26;
  --logo-invert: 0;
  --transition-speed: 0.5s;
}

/* ══════════════════════════════════════
   DARK MODE
══════════════════════════════════════ */
:root.dark {
  --bg:         #0B0B0A;
  --bg-form:    #101010;
  --bg-intro:   #0B0B0A;
  --text:       #E8E4DC;
  --text-dim:   #6B665E;
  --accent:     #ffffff;
  --accent-dim: #ffffff;
  --border:     rgba(246, 246, 246, 0.06);
  --glow-rgb:   74,124,89;
  --logo-invert: 1;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

body { overflow: hidden; }
body.ready { overflow-y: auto; }

/* ══════════════════════════════════════
   TEACUP TOGGLE
══════════════════════════════════════ */
.teacup-toggle {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 200;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  opacity: 0;
  transition: color var(--transition-speed) ease;
  will-change: transform;
}

.teacup-toggle svg {
  width: 100%;
  height: 100%;
}

/* Steam animation on the teacup */
.teacup-toggle .steam {
  animation: steamWiggle 3s ease-in-out infinite;
  opacity: 0.5;
}
.teacup-toggle .steam-1 { animation-delay: 0s; }
.teacup-toggle .steam-2 { animation-delay: 0.5s; }
.teacup-toggle .steam-3 { animation-delay: 1s; }

@keyframes steamWiggle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.5; }
  25% { transform: translateY(-1px) translateX(1px); opacity: 0.7; }
  50% { transform: translateY(-2px) translateX(-1px); opacity: 0.3; }
  75% { transform: translateY(-1px) translateX(1px); opacity: 0.6; }
}

/* ══════════════════════════════════════
   FLOATING TEA LEAVES
══════════════════════════════════════ */
.tea-leaves {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.leaf {
  position: absolute;
  color: var(--accent);
  opacity: 0;
  will-change: transform, opacity;
  transition: color var(--transition-speed) ease;
}

.leaf-1 { width: 28px; top: 15%; left: 8%; }
.leaf-2 { width: 22px; top: 60%; left: 78%; }
.leaf-3 { width: 34px; top: 30%; left: 92%; }
.leaf-4 { width: 18px; top: 75%; left: 20%; }
.leaf-5 { width: 26px; top: 8%;  left: 55%; }

/* ══════════════════════════════════════
   AMBIENT GLOW
══════════════════════════════════════ */
.ambient-glow {
  position: fixed;
  top: 40%;
  left: 50%;
  width: 70vmax;
  height: 70vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--glow-rgb),0.035) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

/* ══════════════════════════════════════
   INTRO OVERLAY
   The logo lives in the hero behind this.
   This is just the bg + glow + text.
══════════════════════════════════════ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg-intro);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: background var(--transition-speed) ease;
}

.intro-glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow-rgb),0.05) 0%, transparent 55%);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.intro-line {
  width: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  transition: background var(--transition-speed) ease;
}

.intro-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 1px;
  transition: color var(--transition-speed) ease;
}

.intro-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
}

/* ══════════════════════════════════════
   MAIN PAGE
══════════════════════════════════════ */
.main-page {
  position: relative;
  z-index: 2;
  /* visible but elements hidden individually */
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 40px 32px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.hero-content > * {
  will-change: transform;
}

/* ── LOGO ── */
.hero-logo {
  position: relative;
  width: clamp(260px, 38vw, 480px);
}

.hero-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  height: 160%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--glow-rgb),0.05) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-logo img {
  width: 100%;
  display: block;
  filter: invert(var(--logo-invert));
  position: relative;
  transition: filter var(--transition-speed) ease;
}

/* ── Typography ── */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.hero-text h1 em { font-style: italic; }

.tagline {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: var(--text-dim);
  transition: color var(--transition-speed) ease;
}

/* ── Buttons ── */
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  will-change: transform;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
}

.btn svg { flex-shrink: 0; }

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

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-full { width: 100%; }

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}

.scroll-hint svg {
  animation: bobDown 2s ease-in-out infinite;
}

@keyframes bobDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ══════════════════════════════════════
   FORM SECTION
══════════════════════════════════════ */
.form-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  background: var(--bg-form);
  position: relative;
  transition: background var(--transition-speed) ease;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-form) 100%);
  pointer-events: none;
  transition: background var(--transition-speed) ease;
}

.form-wrap {
  width: 100%;
  max-width: 440px;
}

.form-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 24px;
  opacity: 0.5;
  transition: background var(--transition-speed) ease;
}

.form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 400;
  margin-bottom: 10px;
}

.form-header p {
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.6;
  transition: color var(--transition-speed) ease;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--transition-speed) ease;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--text);
  outline: none;
  position: relative;
  z-index: 1;
  transition: color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.form-group textarea {
  resize: none;
  line-height: 1.6;
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background var(--transition-speed) ease;
  z-index: 2;
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
  width: 100%;
}

button.btn { margin-top: 8px; }

.form-success { padding: 40px 0; text-align: center; }
.form-success.hidden { display: none; }

.form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}

.form-success p {
  font-style: italic;
  color: var(--text-dim);
  font-size: 15px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 600px) {
  .hero { padding: 32px 24px; }

  .hero-logo { width: clamp(200px, 55vw, 300px); }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .form-section { padding: 60px 24px; }

  .teacup-toggle { top: 20px; right: 20px; width: 38px; height: 38px; }
}
