:root {
  --ink: #f4ecd8;
  --ink-muted: rgba(244, 236, 216, 0.72);
  --ink-faint: rgba(244, 236, 216, 0.48);
  --gold: #d9b063;
  --gold-bright: #e9c078;
  --green: #1e4b3a;
  --green-deep: #123028;
  --bg: #0b1612;

  --text-xs: clamp(11px, 0.72vw, 12.5px);
  --text-sm: clamp(13px, 0.9vw, 14.5px);
  --text-base: clamp(15px, 1.05vw, 17px);
  --text-lg: clamp(18px, 1.4vw, 22px);
  --text-xl: clamp(22px, 2vw, 30px);
  --text-hero: clamp(40px, 6.8vw, 82px);
  --text-greeting: clamp(30px, 4.6vw, 60px);

  --serif: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Section 1: Stage ---------- */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3.5vw, 44px) clamp(22px, 5vw, 72px);
  isolation: isolate;
}

.stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% center;
  z-index: -3;
  filter: saturate(1.02) contrast(1.02);
}

.stage__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(92deg,
      rgba(11, 22, 18, 0.98) 0%,
      rgba(11, 22, 18, 0.95) 34%,
      rgba(11, 22, 18, 0.78) 52%,
      rgba(11, 22, 18, 0.35) 68%,
      rgba(11, 22, 18, 0.10) 84%,
      rgba(11, 22, 18, 0.35) 100%),
    linear-gradient(180deg, rgba(11, 22, 18, 0.55) 0%, rgba(11, 22, 18, 0.0) 22%, rgba(11, 22, 18, 0.0) 70%, rgba(11, 22, 18, 0.65) 100%);
}

.stage__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 26px;
  height: 26px;
  color: var(--gold);
  opacity: 0.95;
}

.brand__word {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: 0.01em;
}

.topbar__meta {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 520px) {
  .topbar__meta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  align-self: center;
  max-width: 500px;
  margin-top: clamp(24px, 4vh, 56px);
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(244, 236, 216, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(11, 22, 18, 0.28);
  margin-bottom: clamp(24px, 4vh, 40px);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 176, 99, 0.22);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(217, 176, 99, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(217, 176, 99, 0.05); }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__line-1 {
  display: block;
  text-shadow: 0 2px 20px rgba(11, 22, 18, 0.55);
}

.hero__line-2 {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
  padding-left: clamp(16px, 3vw, 40px);
  text-shadow: 0 2px 24px rgba(11, 22, 18, 0.85), 0 0 40px rgba(11, 22, 18, 0.6);
}

.hero__sub {
  margin-top: clamp(20px, 3vh, 32px);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 44ch;
  font-weight: 300;
  text-shadow: 0 1px 12px rgba(11, 22, 18, 0.55);
}

/* ---------- CTA ---------- */
.cta {
  margin-top: clamp(28px, 4vh, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(244, 236, 216, 0.34);
  background: rgba(11, 22, 18, 0.42);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: var(--text-sm);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.cta__link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta__link:hover,
.cta__link:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
  outline: none;
}

.cta__link:hover svg,
.cta__link:focus-visible svg {
  transform: translateX(4px);
}

.cta__note {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(11, 22, 18, 0.55);
}

/* ---------- Scroll cue ---------- */
.scroll-cue {
  justify-self: center;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
  animation: nudge 2.4s ease-in-out infinite;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ---------- Section 2: Doorway ---------- */
.doorway {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: linear-gradient(180deg, #0d1a15 0%, var(--bg) 100%);
  position: relative;
}

.doorway__image {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

.doorway__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.doorway__image-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 22, 18, 0.0) 0%, rgba(11, 22, 18, 0.0) 60%, rgba(11, 22, 18, 0.4) 100%),
    linear-gradient(180deg, rgba(11, 22, 18, 0.25) 0%, rgba(11, 22, 18, 0.0) 25%, rgba(11, 22, 18, 0.0) 75%, rgba(11, 22, 18, 0.35) 100%);
  pointer-events: none;
}

.doorway__copy {
  padding: clamp(48px, 8vh, 96px) clamp(28px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vh, 32px);
  position: relative;
  z-index: 1;
}

.doorway__eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Greetings ---------- */
.greetings {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 22px);
}

.greetings li {
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(14px, 2vh, 20px);
  border-bottom: 1px solid rgba(244, 236, 216, 0.14);
}

.greetings li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.greetings__word {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--text-greeting);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.greetings li[lang="si"] .greetings__word {
  font-family: "Noto Serif Sinhala", var(--serif);
  font-weight: 400;
  color: var(--gold-bright);
  font-size: clamp(28px, 4.3vw, 56px);
  line-height: 1.35;
  letter-spacing: 0;
}

.greetings li[lang="ta"] .greetings__word {
  font-family: "Noto Serif Tamil", var(--serif);
  font-weight: 400;
  color: var(--gold-bright);
  font-size: clamp(28px, 4.3vw, 56px);
  line-height: 1.35;
  letter-spacing: 0;
}

/* ---------- Doorway body ---------- */
.doorway__body {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 42ch;
}

/* ---------- Brand tagline ---------- */
.brandline {
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid rgba(244, 236, 216, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
  align-self: flex-start;
}

.brandline__dot {
  color: rgba(217, 176, 99, 0.55);
  font-weight: 300;
}

/* ---------- Section 3: The Promise ---------- */
.promise {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--bg);
  position: relative;
}

.promise__map {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  background: linear-gradient(180deg, #08110d 0%, #0b1612 100%);
}

.promise__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.promise__map-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 22, 18, 0.0) 0%, rgba(11, 22, 18, 0.0) 70%, rgba(11, 22, 18, 0.5) 100%),
    linear-gradient(180deg, rgba(11, 22, 18, 0.2) 0%, rgba(11, 22, 18, 0.0) 20%, rgba(11, 22, 18, 0.0) 80%, rgba(11, 22, 18, 0.35) 100%);
  pointer-events: none;
}

.promise__copy {
  padding: clamp(48px, 8vh, 96px) clamp(28px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 32px);
  position: relative;
  z-index: 1;
}

.promise__eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.promise__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.promise__line-1 { display: block; }

.promise__line-2 {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
  padding-left: clamp(14px, 2.5vw, 32px);
  margin-top: 4px;
}

.promise__lede {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 46ch;
}

/* ---------- Pillars ---------- */
.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px);
  margin-top: clamp(12px, 2vh, 20px);
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(12px, 1.4vw, 18px);
  align-items: start;
}

.pillar__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--gold);
  line-height: 1;
  padding-top: 2px;
}

.pillar__body { min-width: 0; }

.pillar__head {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--text-base);
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

.pillar__text {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 300;
}

/* ---------- Signup ---------- */
.signup {
  margin-top: clamp(12px, 3vh, 32px);
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(244, 236, 216, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup__label {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.signup__hint {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  max-width: 42ch;
  font-weight: 300;
}

.signup__form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.signup__fields {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  width: 100%;
  max-width: 520px;
}

.signup__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.signup__field-label {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.signup__field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(11, 22, 18, 0.55);
  border: 1px solid rgba(244, 236, 216, 0.22);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-base);
  font-weight: 400;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.signup__field input::placeholder {
  color: var(--ink-faint);
}

.signup__field input:focus {
  border-color: var(--gold);
  background: rgba(11, 22, 18, 0.75);
}

.signup__submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(217, 176, 99, 0.14);
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.signup__submit svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.signup__submit:hover,
.signup__submit:focus-visible {
  background: var(--gold);
  color: var(--bg);
  outline: none;
}

.signup__submit:hover svg,
.signup__submit:focus-visible svg {
  transform: translateX(4px);
}

.signup__feedback {
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  min-height: 1em;
}

.signup__feedback.is-error { color: #e69a9a; }
.signup__feedback.is-success { color: var(--gold-bright); }

/* ---------- Scroll cue inline variant ---------- */
.scroll-cue--inline {
  position: absolute;
  bottom: clamp(20px, 3vh, 32px);
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Footer ---------- */
.footer {
  padding: clamp(24px, 3vh, 36px) clamp(22px, 5vw, 72px);
  background: var(--bg);
  border-top: 1px solid rgba(244, 236, 216, 0.08);
}

.footer__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__row a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__row a:hover,
.footer__row a:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

.footer__dot { opacity: 0.6; }

/* ---------- Motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot,
  .scroll-cue svg { animation: none; }
  html { scroll-behavior: auto; }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .stage__bg { object-position: 72% center; }
  .stage__scrim {
    background:
      linear-gradient(180deg,
        rgba(11, 22, 18, 0.6) 0%,
        rgba(11, 22, 18, 0.72) 50%,
        rgba(11, 22, 18, 0.9) 100%);
  }

  .doorway {
    grid-template-columns: 1fr;
    grid-template-rows: 55vh 1fr;
  }
  .doorway__image { min-height: 55vh; }
  .doorway__image img { object-position: center 25%; }

  .promise {
    grid-template-columns: 1fr;
    grid-template-rows: 55vh 1fr;
  }
  .promise__map { min-height: 55vh; }
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  .hero { margin-top: 24px; }
  .hero__line-2 { padding-left: 16px; }
  .cta__link { width: 100%; justify-content: center; }
  .brandline { font-size: var(--text-xs); letter-spacing: 0.28em; gap: 8px; }
  .doorway__copy { padding: 40px 24px; }
  .promise__copy { padding: 40px 24px; }
  .signup__fields { grid-template-columns: 1fr; }
  .signup__submit { width: 100%; justify-content: center; }
  .footer__row { gap: 8px; font-size: 10px; letter-spacing: 0.12em; }
}
