/* ─────────────────────────────────────────────
   TAVLAR — Editorial Luxury Landing Page
   Palette: Parchment · Deep Claret · Sage Olive
   Type: Cormorant Garamond (display) + Jost (body)
───────────────────────────────────────────── */

:root {
  --claret:      #4b1621;
  --claret-mid:  #7b2e3a;
  --claret-pale: rgba(75, 22, 33, 0.10);
  --parchment:   #eadfce;
  --cream:       #f7f1e6;
  --ink:         #17120f;
  --ink-soft:    #3c342f;
  --stone:       #6f6259;

  --font-display: 'Cormorant Garamond', 'Baskerville', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { text-decoration: none; }

/* ── GRAIN ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── TAVLAR LOGO MARK — shared across all uses ── */
.logo-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.logo-mark-text {
  font-family: var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  display: block;
}

/* The underline-with-diamond rule */
.logo-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
  margin-top: 4px;
}

.logo-rule-line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  display: block;
}

/* Diamond ornament replacing the table icon */
.logo-rule-diamond {
  flex-shrink: 0;
  margin: 0 7px;
  font-size: 8px;
  line-height: 1;
  opacity: 0.7;
  color: currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  backdrop-filter: blur(12px);
  background: rgba(234, 223, 206, 0.85);
  border-bottom: 1px solid rgba(75, 22, 33, 0.08);
}

/* Nav logo mark — small size */
.nav .logo-mark-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--claret);
}
.nav .logo-rule {
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--claret); }

.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--claret) !important;
  color: var(--cream) !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.84; }

/* ── HERO ── */
.hero {
  min-height: 92svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 72px 0 60px;
  position: relative;
  background:
    radial-gradient(circle at 80% 10%, rgba(123, 46, 58, 0.09), transparent 38%),
    radial-gradient(circle at 14% 72%, rgba(111, 123, 63, 0.07), transparent 30%),
    linear-gradient(150deg, #f0e6d4 0%, var(--parchment) 50%, #e3d3bc 100%);
}

/* vertical centre line */
.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 16%;
  bottom: 16%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(75, 22, 33, 0.18), transparent);
  pointer-events: none;
}

/* ── HERO TEXT ── */
.hero-text {
  padding: 0 40px 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeUp 1s var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--claret-mid);
  margin-bottom: 18px;
  animation: fadeUp 1s 0.05s var(--ease-out) both;
}
.eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--claret-mid);
  flex-shrink: 0;
}

/* Hero wordmark — large logo mark */
.hero-wordmark-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1s 0.12s var(--ease-out) both;
}
.hero-wordmark-wrap .logo-mark-text {
  font-size: clamp(64px, 8.5vw, 116px);
  font-weight: 300;
  color: var(--claret);
  line-height: 0.88;
  letter-spacing: 0.24em;
}
.hero-wordmark-wrap .logo-rule {
  margin-top: 10px;
  width: 100%;
}
.hero-wordmark-wrap .logo-rule-line {
  opacity: 0.45;
  background: var(--claret);
}

.tagline {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 30px);
  font-weight: 300;
  font-style: italic;
  color: var(--claret);
  letter-spacing: 0.1em;
  text-align: center;
  animation: fadeUp 1s 0.22s var(--ease-out) both;
}

.hero-sub {
  max-width: 420px;
  margin: 16px auto 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  font-weight: 300;
  animation: fadeUp 1s 0.3s var(--ease-out) both;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
  animation: fadeUp 1s 0.36s var(--ease-out) both;
}

.footnote {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--claret-mid);
  animation: fadeUp 1s 0.42s var(--ease-out) both;
}

/* ── HERO VISUAL — layered editorial composition ── */
.hero-visual {
  position: relative;
  height: 560px;
  padding: 56px 56px 32px 24px;
  animation: fadeUp 1.1s 0.18s var(--ease-out) both;
}

/* Large back image — anchored left/top within the frame */
.img-frame--back {
  position: absolute;
  top: 24px;
  left: 26px;
  right: 140px;
  bottom: 80px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 28px 72px rgba(75, 22, 33, 0.18);
  z-index: 1;
}

/* Small front image — lower-right, slightly overlapping back */
.img-frame--front {
  position: absolute;
  bottom: -24px;
  right: 36px;
  width: 44%;
  height: 48%;
  overflow: hidden;
  border-radius: 3px;
  border: 2px solid var(--cream);
  box-shadow: 0 16px 44px rgba(75, 22, 33, 0.22);
  z-index: 2;
  transform: translate(-8px, 0);
}

.img-frame--back img,
.img-frame--front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 999px;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--claret);
  color: var(--cream);
}
.btn-primary:hover { background: var(--claret-mid); }

.btn-ghost {
  background: rgba(247, 241, 230, 0.65);
  color: var(--claret);
  border: 1px solid rgba(75, 22, 33, 0.3);
}
.btn-ghost:hover { background: rgba(247, 241, 230, 0.95); }

.btn-outline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--claret-mid);
  color: var(--claret);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  align-self: flex-start;
}
.btn-outline:hover {
  background: var(--claret);
  color: var(--cream);
}

.btn--full { width: 100%; text-align: center; }

/* ── EDITORIAL STATEMENT ── */
.statement {
  padding: 80px 48px;
  background: var(--claret);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.statement.in-view { opacity: 1; transform: none; }

.statement::before {
  content: '\201C';
  position: absolute;
  top: -80px; left: 32px;
  font-family: var(--font-display);
  font-size: 440px;
  color: rgba(255,255,255,0.035);
  line-height: 1;
  pointer-events: none;
}

.statement-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.statement-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.45);
  margin-bottom: 24px;
}

.statement-quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 300;
  line-height: 1.4;
  color: rgba(247, 241, 230, 0.72);
  font-style: normal;
  border: none;
}
.statement-quote em {
  font-style: italic;
  color: var(--cream);
}

/* ── FEATURE SECTIONS ── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.feature.in-view { opacity: 1; transform: none; }

.feature-img {
  position: relative;
  overflow: hidden;
  min-height: 460px;
}
.feature-img img {
  transition: transform 0.9s var(--ease-out);
}
.feature-img:hover img { transform: scale(1.04); }

.feature-img-tag {
  position: absolute;
  bottom: 24px; left: 24px;
  padding: 7px 16px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--claret);
  border-radius: 2px;
}
.feature-img-tag--right { left: auto; right: 24px; }

.feature-content {
  padding: 28px 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--cream);
}
.feature--reversed .feature-img  { order: 2; }
.feature--reversed .feature-content {
  order: 1;
  background: #efe8d8;
}

/* Large ghost number */
.section-number {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
  color: rgba(75, 22, 33, 0.08);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
  user-select: none;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 18px;
}

.section-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
}
.feature-list li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(75, 22, 33, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-list li::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--claret-mid);
  flex-shrink: 0;
}

/* ── WAITLIST ── */
.waitlist {
  background:
    radial-gradient(circle at 20% 50%, rgba(111, 123, 63, 0.05), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(123, 46, 58, 0.07), transparent 40%),
    #f4ecd8;
  padding: 80px 48px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.waitlist.in-view { opacity: 1; transform: none; }

.waitlist-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.eyebrow--light   { color: var(--stone); margin-bottom: 18px; }
.eyebrow-dot--light { background: var(--stone); }

.waitlist-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 18px;
}
.waitlist-heading em { font-style: italic; color: var(--claret-mid); }

.waitlist-sub {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  font-weight: 300;
}

/* Form card */
.waitlist-form-wrap { position: relative; }

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid rgba(75, 22, 33, 0.1);
  box-shadow: 0 20px 56px rgba(75, 22, 33, 0.07);
}

.form-row { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  font-family: var(--font-body);
}

.form-optional {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--stone);
  opacity: 0.65;
  text-transform: none;
  font-style: italic;
  letter-spacing: 0;
}

.form-input {
  padding: 13px 16px;
  border: 1px solid rgba(75, 22, 33, 0.2);
  border-radius: 4px;
  background: var(--parchment);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--claret-mid); }
.form-input::placeholder { color: var(--stone); opacity: 0.55; }

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.6;
  padding: 12px 16px;
}

.toggle-group {
  display: flex;
  border-radius: 999px;
  border: 1px solid rgba(75, 22, 33, 0.22);
  overflow: hidden;
  background: var(--parchment);
}
.toggle-option { flex: 1; cursor: pointer; }
.toggle-option input { display: none; }
.toggle-option span {
  display: block;
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  color: var(--stone);
  transition: all 0.2s;
}
.toggle-option input:checked + span {
  background: var(--claret);
  color: var(--cream);
}

/* Privacy checkbox row */
.form-row--checkbox {
  margin-top: -4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid rgba(75, 22, 33, 0.35);
  background: var(--parchment);
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  position: relative;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--claret);
  border-color: var(--claret);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--cream);
  border-bottom: 1.5px solid var(--cream);
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.checkbox-text {
  font-size: 12px;
  color: var(--stone);
  font-family: var(--font-body);
  line-height: 1.5;
}

.form-link {
  color: var(--claret-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.form-link:hover { color: var(--claret); }

.form-note {
  font-size: 11px;
  color: var(--stone);
  text-align: center;
  letter-spacing: 0.04em;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 56px 40px;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid rgba(75, 22, 33, 0.1);
  box-shadow: 0 20px 56px rgba(75, 22, 33, 0.07);
  text-align: center;
}
.form-success.visible { display: flex; }

.form-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(75, 22, 33, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-success-icon svg {
  width: 22px;
  height: 22px;
  color: var(--claret);
}

.form-success-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-success p {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin: 0;
}
.form-success span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--stone);
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  padding: 48px 64px;
  border-top: 1px solid rgba(234, 223, 206, 0.06);
}

.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

/* Left column — contact & links stacked */
.footer-left {
  justify-self: start;  
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-email {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(234, 223, 206, 0.5);
  transition: color 0.2s;
}
.footer-email:hover { color: rgba(234, 223, 206, 0.85); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 223, 206, 0.25);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(234, 223, 206, 0.6); }

/* Centre column — logo mark */
.footer-centre {
  justify-self: center;  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.footer .logo-mark-text {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.32em;
  color: var(--parchment);
}
.footer .logo-rule {
  margin-top: 4px;
  width: 100%;
}
.footer .logo-rule-line {
  background: var(--parchment);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: rgba(234, 223, 206, 0.32);
  letter-spacing: 0.06em;
  margin-top: 8px;
}

/* Right column — copyright, right-aligned */
.footer-right {
  justify-self: end;  
  display: flex;
  justify-content: flex-end;
}

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(234, 223, 206, 0.42);
  text-align: right;
  line-height: 1;
  margin-top: 0;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .footer { padding: 40px 28px; }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 28px;
  }
  .footer-left  { align-items: center; }
  .footer-links { align-items: center; }
  .footer-right { justify-content: center; }
  .footer-copy  { text-align: center; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav { padding: 12px 24px; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 80px 0 48px;
  }
  .hero-text { padding: 0 28px; }
  .hero::after { display: none; }

  .hero-visual {
    height: 320px;
    padding: 0 28px;
    margin-top: 36px;
  }
  .img-frame--back { left: 28px; right: 72px; top: 0; bottom: 72px; }
  .img-frame--front { right: 28px; transform: none; }

  .statement { padding: 56px 28px; }
  .statement::before { font-size: 240px; }

  .feature { grid-template-columns: 1fr; }
  .feature-img { min-height: 280px; }
  .feature-content { padding: 40px 28px; }
  .feature--reversed .feature-img  { order: 0; }
  .feature--reversed .feature-content { order: 1; }

  .waitlist { padding: 56px 28px; }
  .waitlist-inner { grid-template-columns: 1fr; gap: 40px; }
  .waitlist-form { padding: 28px; }

  .footer { padding: 40px 28px; }
}

@media (max-width: 480px) {
  .hero-wordmark-wrap .logo-mark-text { font-size: 60px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; text-align: center; }
}