/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --ivory:         #FAF7F3;
  --ivory-deep:    #EDE9E3;
  --charcoal:      #1C1C1C;
  --charcoal-mid:  #3D3D3D;
  --charcoal-soft: #6B6560;
  --blush:         #D4A0A0;
  --blush-deep:    #C08888;
  --blush-light:   #F2DDDD;
  --blush-wash:    rgba(212, 160, 160, 0.22);

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  5rem;
  --space-xl:  8rem;
  --space-2xl: 14rem;

  --content: 38rem;
  --content-wide: 68rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 1s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--charcoal);
  background-color: var(--ivory);
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 15%, var(--blush-wash) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(212, 160, 160, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Sparkles ────────────────────────────────────────────────── */
.sparkle {
  position: fixed;
  z-index: 2;
  color: var(--blush);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s var(--ease-out);
}

.sparkle svg {
  width: 100%;
  height: 100%;
}

.sparkle--1 {
  top: 18%;
  right: 12%;
  width: 12px;
  height: 12px;
}

.sparkle--2 {
  top: 62%;
  left: 7%;
  width: 9px;
  height: 9px;
}

.sparkle.visible {
  opacity: 0.65;
}

.sparkle.twinkle {
  animation: twinkle 4s var(--ease-out) infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(1) rotate(0deg); }
  50%       { opacity: 0.8;  transform: scale(1.12) rotate(10deg); }
}

/* ── Reveal ────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero__title.revealed         { transition-delay: 0.1s; }
.hero__subhead.revealed       { transition-delay: 0.28s; }
.hero__logo.revealed          { transition-delay: 0.35s; }
.contact__label.revealed      { transition-delay: 0.08s; }
.contact__link.revealed       { transition-delay: 0.22s; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: var(--space-xl) clamp(1.5rem, 5vw, 4rem) var(--space-lg);
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin: 0 auto;
  width: 100%;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--charcoal);
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.hero__subhead {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3vw, 2.125rem);
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal-mid);
  line-height: 1.35;
  max-width: 26rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

/* ── Hero logo ────────────────────────────────────────────────── */
.hero__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero__logo {
  width: 40vw;
  max-width: 360px;
  height: auto;
  opacity: 0.9;
  object-fit: contain;
  display: block;
  animation: logo-float 9s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* ── Contact ────────────────────────────────────────────────────── */
.contact {
  padding: var(--space-xl) clamp(1.5rem, 5vw, 4rem) var(--space-2xl);
}

.contact__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--ivory-deep);
}

.contact__label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.contact__link {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400;
  color: var(--charcoal);
  display: inline-block;
  position: relative;
  letter-spacing: 0.01em;
  transition: color 0.35s ease;
}

.contact__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.1em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--blush), var(--blush-deep));
  transform: scaleX(0.15);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.contact__link:hover {
  color: var(--charcoal-mid);
}

.contact__link:hover::after {
  transform: scaleX(1);
}

.contact__link:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 6px;
  border-radius: 2px;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  padding: var(--space-lg) clamp(1.5rem, 5vw, 4rem) var(--space-md);
  border-top: 1px solid var(--ivory-deep);
}

.footer__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.footer__mark {
  line-height: 0;
}

.footer__logo {
  width: 28px;
  height: auto;
  opacity: 0.4;
  object-fit: contain;
  display: block;
}

.footer__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer__name {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
}

.footer__location {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal-soft);
}

.footer__email {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--charcoal-mid);
  margin-top: 0.5rem;
  transition: color 0.35s ease;
}

.footer__email:hover {
  color: var(--blush-deep);
}

.footer__email:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Desktop layout ─────────────────────────────────────────────── */
@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    padding-top: var(--space-lg);
  }

  .hero__content {
    padding-right: var(--space-md);
    justify-self: start;
    margin: 0;
  }

  .hero__mark {
    align-self: center;
    justify-self: end;
  }
}

@media (min-width: 1100px) {
  .hero__title {
    font-size: 7.5rem;
  }
}

/* ── Mobile adjustments ───────────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --space-lg: 3.5rem;
    --space-xl: 5rem;
    --space-2xl: 7rem;
  }

  .hero {
    text-align: center;
  }

  .hero__content {
    order: 2;
  }

  .hero__mark {
    order: 1;
    margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
  }

  .hero__subhead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__logo {
    width: min(52vw, 240px);
  }

  .sparkle--1 { top: 10%; right: 8%; }
  .sparkle--2 { top: 55%; left: 5%; }
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sparkle {
    opacity: 0.45;
    animation: none;
  }

  .hero__logo {
    animation: none;
  }
}
