/* ============================================================
   Avelaira — The Wild Bird of Fine Jewelry
   Light & airy ivory aesthetic · gold + platinum detailing
   ============================================================ */

:root {
  /* Canvas — bright warm cream to complement the gold/platinum mark */
  --ivory:        #f6f1e6;
  --ivory-deep:   #efe7d8;
  --paper:        #fffdf9;

  /* Ink */
  --ink:          #1c1a16;
  --ink-soft:     #4a463e;
  --ink-faint:    #8a8478;

  /* Metals */
  --gold:         #b08d3f;
  --gold-bright:  #d9b65f;
  --gold-pale:    #e7d6a6;
  --platinum:     #9a9c9e;
  --platinum-lt:  #c9cccf;

  /* Gradients */
  --grad-gold: linear-gradient(135deg, #cBaA5c 0%, #e7d29a 28%, #b0863a 55%, #e8d8a6 78%, #b89548 100%);
  --grad-hairline: linear-gradient(90deg, transparent, var(--gold-bright) 18%, var(--gold) 50%, var(--gold-bright) 82%, transparent);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Spacing rhythm */
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
}

::selection { background: var(--gold-pale); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Shared utilities ──────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  padding-left: 0.42em; /* optical balance for tracking */
}

.section {
  padding: var(--section-y) clamp(1.5rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin-inline: auto;
}

.section__head { max-width: 46rem; margin-inline: auto; text-align: center; }
.section h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-bottom: 1.3rem;
}
.section__lede {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 42rem;
  margin-inline: auto;
}

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1em 2.5em;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease),
              background-position .6s var(--ease), border-color .4s var(--ease),
              color .4s var(--ease);
  white-space: nowrap;
}

/* Dark, chic luxurious pill */
.btn--dark {
  color: var(--gold-pale);
  background: linear-gradient(158deg, #312c23 0%, #1c1813 52%, #14110c 100%);
  background-size: 100% 160%;
  background-position: 0% 0%;
  border: 1px solid rgba(212,182,95,0.34);
  box-shadow: 0 12px 32px -14px rgba(20,16,10,0.75),
              inset 0 1px 0 rgba(255,247,225,0.06);
}
.btn--dark:hover {
  color: #fff;
  border-color: rgba(212,182,95,0.7);
  background-position: 0% 100%;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(20,16,10,0.85),
              inset 0 1px 0 rgba(255,247,225,0.1);
}

.btn--gold {
  color: #3a2e12;
  background: var(--grad-gold);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 8px 26px -12px rgba(176,141,63,0.6);
}
.btn--gold:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(176,141,63,0.75);
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(246,241,230,0);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease);
}
.site-header.scrolled {
  background: rgba(246,241,230,0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(176,141,63,0.18);
  padding-block: 0.75rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 40px; height: 40px; }
.brand__wordmark {
  height: clamp(42px, 3.6vw, 54px);
  width: auto;
  margin-block: -2px;
  filter:
    drop-shadow(0 0 14px rgba(38,28,14,0.24))
    drop-shadow(0 3px 9px rgba(20,14,7,0.18));
}
.brand__name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.46em;
  padding-left: 0.46em;
  color: var(--ink);
}

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.4rem); }
.nav a {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color .35s var(--ease);
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:not(.nav__cta):hover { color: var(--ink); }
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-pale) !important;
  background: linear-gradient(158deg, #312c23 0%, #1c1813 52%, #14110c 100%);
  background-size: 100% 160%;
  background-position: 0% 0%;
  border: 1px solid rgba(212,182,95,0.34);
  padding: 0.72em 1.6em;
  border-radius: 999px;
  box-shadow: 0 10px 26px -16px rgba(20,16,10,0.7);
  transition: background-position .5s var(--ease), border-color .4s var(--ease),
              color .4s var(--ease), transform .4s var(--ease);
}
.nav__cta::after { display: none !important; }
.nav__cta:hover {
  color: #fff !important;
  border-color: rgba(212,182,95,0.7);
  background-position: 0% 100%;
  transform: translateY(-1px);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem clamp(1.5rem, 5vw, 4rem) 2.5rem;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #fefcf6 0%, var(--ivory) 46%, var(--ivory-deep) 100%);
}
.hero__glow {
  position: absolute;
  top: 8%; left: 50%;
  width: min(70vw, 720px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(217,182,95,0.20) 0%, rgba(217,182,95,0.05) 40%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1320px;
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  text-align: left;
}
.hero__copy { max-width: none; }

.hero__visual { display: grid; place-items: center; }
.hero__bird {
  width: clamp(240px, 40vw, 480px);
  margin: 0;
  filter:
    drop-shadow(0 0 18px rgba(38,28,14,0.24))
    drop-shadow(0 22px 38px rgba(20,14,7,0.34))
    drop-shadow(14px 0 20px rgba(255,253,247,0.92))
    drop-shadow(7px 0 9px rgba(255,250,236,0.85));
  animation: floatHero 13s ease-in-out infinite;
}
/* Larger travel than .float, but duration scaled to keep the same speed */
@keyframes floatHero {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-26px); }
}
.hero__wordmark {
  width: clamp(300px, 53vw, 760px);
  margin: 0 0 1.4rem -1.2rem; /* slight left nudge */
  filter:
    drop-shadow(0 0 18px rgba(38,28,14,0.40))
    drop-shadow(0 4px 13px rgba(20,14,7,0.28));
}
.hero__slogan {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.hero__rule {
  width: 200px; height: 1px;
  margin: 1.1rem 0;
  background: var(--grad-hairline);
}
.hero__lede {
  font-size: clamp(1.15rem, 1.95vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 35rem;
  margin: 0 0 1.8rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--platinum-lt);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { opacity: 0; transform: translateY(-2px); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* ── Vision / pillars ──────────────────────────────────── */
.vision { text-align: center; }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
}
.pillar {
  position: relative;
  padding: 2.6rem 1.6rem 2.2rem;
  background: var(--paper);
  border: 1px solid rgba(176,141,63,0.14);
  border-radius: 3px;
  box-shadow: 0 20px 50px -34px rgba(40,34,20,0.4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(176,141,63,0.4);
  box-shadow: 0 28px 60px -32px rgba(40,34,20,0.45);
}
.pillar__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.9rem;
  letter-spacing: 0.1em;
}
.pillar h3 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.pillar p { color: var(--ink-soft); font-size: 1rem; }

/* ── Atelier ───────────────────────────────────────────── */
.atelier { background: linear-gradient(180deg, transparent, var(--ivory-deep) 50%, transparent); max-width: none; }
.atelier__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.atelier__copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1.2rem; }
.atelier__copy > p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 1.8rem; }

.feature-list { list-style: none; display: grid; gap: 1.05rem; }
.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  transform: rotate(45deg);
  background: var(--grad-gold);
}
.feature-list strong { color: var(--ink); font-weight: 500; }

/* Decorative ring artwork (pure CSS) */
.atelier__art { display: grid; place-items: center; min-height: 320px; }
.art__ring {
  position: relative;
  width: clamp(190px, 26vw, 270px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.art__band {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: clamp(12px, 2.4vw, 20px) solid transparent;
  background:
    conic-gradient(from 210deg, #b0863a, #ecdca0, #c9a558, #fff4d6, #b0863a, #e7d29a, #a87f30, #ecdca0, #b0863a) border-box;
  -webkit-mask:
     linear-gradient(#000 0 0) padding-box,
     linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  box-shadow:
    0 24px 50px -22px rgba(176,141,63,0.55),
    inset 0 0 18px rgba(255,255,255,0.4);
  animation: spin 26s linear infinite;
}
.art__stone {
  position: absolute;
  top: 4%; left: 50%;
  width: clamp(34px, 5.6vw, 52px);
  aspect-ratio: 1;
  transform: translateX(-50%) rotate(45deg);
  background:
    linear-gradient(135deg, #ffffff 0%, #eaf2f6 30%, #cfe0ea 55%, #b9d2e0 80%, #ffffff 100%);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow:
    0 0 22px rgba(190,220,235,0.85),
    0 10px 24px -8px rgba(120,150,170,0.55),
    inset 0 0 10px rgba(255,255,255,0.9);
  border-radius: 4px;
}
.art__sparkle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,255,255,0.95);
  opacity: 0;
}
.art__sparkle--1 { top: 7%;  left: 53%; animation: twinkle 3.4s var(--ease) infinite; }
.art__sparkle--2 { top: 14%; left: 44%; animation: twinkle 3.4s var(--ease) 1.1s infinite; }
.art__sparkle--3 { top: 2%;  left: 47%; animation: twinkle 3.4s var(--ease) 2.2s infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ── Origin ────────────────────────────────────────────── */
.origin { text-align: center; }
.origin__inner { max-width: 44rem; margin-inline: auto; }
.origin__bird {
  width: clamp(120px, 18vw, 180px);
  margin: 0 auto 1.6rem;
  opacity: 0.95;
  filter:
    drop-shadow(0 0 13px rgba(38,28,14,0.22))
    drop-shadow(0 12px 24px rgba(20,14,7,0.30));
}
.origin h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); margin-bottom: 1.4rem; }
.origin p { color: var(--ink-soft); font-size: 1.12rem; }
.origin p + p { margin-top: 1.2rem; }
.origin__slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--gold);
  margin-top: 2rem !important;
}

/* ── Waitlist ──────────────────────────────────────────── */
.waitlist {
  text-align: center;
  background:
    radial-gradient(120% 120% at 50% 0%, #fdfaf2, var(--ivory-deep) 90%);
  border-top: 1px solid rgba(176,141,63,0.16);
  border-bottom: 1px solid rgba(176,141,63,0.16);
  max-width: none;
}
.waitlist__inner { max-width: 42rem; margin-inline: auto; }
.waitlist h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.1rem; }
.waitlist__lede { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 2.2rem; }

.waitlist__form {
  display: flex;
  gap: 0.7rem;
  max-width: 30rem;
  margin: 0 auto 1.1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist__form input {
  flex: 1 1 16rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 1.05em 1.3em;
  border: 1px solid var(--platinum-lt);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.waitlist__form input::placeholder { color: var(--ink-faint); }
.waitlist__form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217,182,95,0.18);
}
.waitlist__form .btn { flex: 0 0 auto; }
.waitlist__note { font-size: 0.85rem; color: var(--ink-faint); letter-spacing: 0.02em; }
.waitlist__note.is-success { color: var(--gold); font-weight: 400; }
.waitlist__note.is-error { color: #b1442f; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem 2.5rem;
  background: var(--ivory);
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.footer__brand { flex-wrap: wrap; justify-content: center; gap: 0; }
.footer__mark {
  width: 92px;
  height: auto;
  filter:
    drop-shadow(0 0 11px rgba(38,28,14,0.22))
    drop-shadow(0 6px 13px rgba(20,14,7,0.28));
}
.footer__wordmark {
  height: clamp(56px, 6.4vw, 84px);
  width: auto;
  margin-left: -0.4rem; /* tuck closer to the bird */
  filter:
    drop-shadow(0 0 12px rgba(38,28,14,0.24))
    drop-shadow(0 3px 9px rgba(20,14,7,0.26));
}
.footer__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.footer__contact { margin-bottom: 1.2rem; }
.footer__contact a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease);
}
.footer__contact a:hover { border-color: var(--gold); }
.footer__legal {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Reveal animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.12s);
}
.reveal.is-visible { opacity: 1; transform: none; }

.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
  .atelier__grid { grid-template-columns: 1fr; }
  .atelier__art { order: -1; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: clamp(1.5rem, 6vw, 2.5rem); }
  .hero__copy { max-width: none; margin-inline: auto; }
  .hero__visual { order: -1; }
  .hero__bird { width: clamp(200px, 52vw, 300px); }
  .hero__wordmark { margin-inline: auto; }
  .hero__slogan, .hero__lede { margin-inline: auto; }
  .hero__rule { margin-inline: auto; }
  .hero__actions { justify-content: center; }
}

@media (max-width: 540px) {
  .brand__wordmark { height: 40px; margin-block: 0; }
  .hero__actions .btn { width: 100%; }
  .waitlist__form .btn { width: 100%; }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
