/* ==============================
   DESIGN TOKENS
============================== */
:root {
  --color-linen:       #ebe9dd;
  --color-ink:         #1a1a1a;
  --color-olive:       #3d3725;
  --color-cream-80:    rgba(235, 233, 221, 0.8);
  --color-cream-60:    rgba(242, 240, 237, 0.6);
  --color-cream-fade:  rgba(242, 240, 237, 0.8);

  --font-display:      'Cormorant Garamond', serif;
  --font-sans:         'Mulish', sans-serif;
  --font-micro:        'Inter', sans-serif;

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

/* ==============================
   FONTS
============================== */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('Cormorant_Garamond/CormorantGaramond-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('Cormorant_Garamond/CormorantGaramond-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('Mulish/Mulish-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('Mulish/Mulish-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-linen);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
}

/* ==============================
   PAGE LOAD ANIMATION
============================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.85s var(--ease-out) forwards;
  animation-delay: var(--delay, 0s);
}

/* ==============================
   CONTENT WRAP
   Text/content capped at 1440px, centered.
   Images live outside and stay full-bleed.
============================== */
.content-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ==============================
   SITE HEADER
============================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.12vw 3.17vw; /* 32px / 48px at 1512px base */
  display: flex;
  align-items: center;
  z-index: 10;
}

.monogram-frame {
  width: clamp(44px, 4.76vw, 72px);
  height: auto;
}
.monogram-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==============================
   HERO SECTION
============================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--color-linen);
}

/* Full-bleed photo — behind everything */
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  /* object-fit: cover;
  object-position: center top; */
  pointer-events: none;
  object-fit: contain;
  object-position: right bottom;
}

/* Content wrap inside hero */
.hero-content-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Left column — 52% of the 1440px container */
.left-content {
  width: max-content;
  /* padding-top: 9vw;
  padding-bottom: 5vw; */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* ── Heading 1 ── */
.heading-1-block {
  width: max-content;
  padding: 1.98vw 0;
  color: var(--color-ink);
  text-transform: uppercase;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(52px, 9.59vw, 145px);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(22px, 3.57vw, 54px);
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-align: center;
  width: 100%;
  margin-top: 0.15em;
}

/* ── Tagline / CTA group — shared width ── */
.tagline-cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
}

/* ── Tagline ── */
.tagline-block {
  padding: 2vw 0;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.tagline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(10px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--color-ink);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* ── Divider ── */
.divider-block {
  padding: 1.8vw 0 2vw;
}
.h-divider {
  width: clamp(40px, 4.23vw, 64px);
  height: 1px;
  background: var(--color-ink);
}

/* ── CTA ── */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.9vw;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-olive);
  text-decoration: none;
  transition: gap 0.3s var(--ease-out), opacity 0.25s ease;
}
.cta-link:hover {
  gap: 1.4vw;
  opacity: 0.75;
}
.cta-link:hover .cta-arrow {
  transform: translateX(4px);
}
.cta-link-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.32vw, 20px);
  letter-spacing: 0.13em;
  color: var(--color-olive);
  white-space: nowrap;
}
.cta-arrow {
  display: flex;
  align-items: center;
  width: clamp(13px, 1.12vw, 17px);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.cta-arrow svg {
  width: 100%;
  height: auto;
}

/* ── CTA input state ── */
.cta-link--hidden {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out);
  pointer-events: none;
}

.cta-input-wrap {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.9vw;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-olive);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}
.cta-input-wrap--visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.cta-email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(13px, 1.32vw, 20px);
  letter-spacing: 0.1em;
  color: var(--color-olive);
  caret-color: var(--color-olive);
  min-width: 0;
}
.cta-email-input::placeholder {
  color: rgba(61, 55, 37, 0.4);
  font-style: italic;
}

.cta-submit {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: clamp(13px, 1.12vw, 17px);
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.3s var(--ease-out);
}
.cta-submit:hover {
  opacity: 1;
  transform: translateX(3px);
}
.cta-submit svg {
  width: 100%;
  height: auto;
}

@keyframes inputShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(3px); }
}
.cta-input-wrap--shake {
  animation: inputShake 0.45s var(--ease-out);
}

/* ── Invitation modal ── */
.invite-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}
.invite-modal--open {
  pointer-events: auto;
  visibility: visible;
}

.invite-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.invite-modal--open .invite-modal-backdrop {
  opacity: 1;
}

.invite-modal-card {
  position: relative;
  background: var(--color-linen);
  padding: clamp(48px, 5.5vw, 88px) clamp(40px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  min-width: clamp(280px, 32vw, 480px);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.45s var(--ease-out) 0.1s, transform 0.45s var(--ease-out) 0.1s;
}
.invite-modal--open .invite-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: clamp(16px, 1.6vw, 24px);
  right: clamp(16px, 1.6vw, 24px);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.modal-close:hover { opacity: 1; }
.modal-close svg { width: 100%; height: auto; }

/* SVG check animation */
.modal-emblem {
  width: clamp(44px, 4.2vw, 60px);
  margin-bottom: clamp(4px, 0.6vw, 10px);
}
.modal-emblem svg { width: 100%; height: auto; }

.emblem-ring {
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  transition: stroke-dashoffset 0s;
}
.invite-modal--open .emblem-ring {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s var(--ease-out) 0.25s;
}

.emblem-check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  transition: stroke-dashoffset 0s;
}
.invite-modal--open .emblem-check {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.45s var(--ease-out) 0.8s;
}

.modal-eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(9px, 0.85vw, 12px);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(61, 55, 37, 0.5);
  text-transform: uppercase;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 44px);
  letter-spacing: 0.04em;
  color: var(--color-ink);
  line-height: 1.1;
}
.modal-body {
  font-family: var(--font-sans);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-olive);
  text-transform: uppercase;
  opacity: 0.7;
}

/* ==============================
   WOOL SECTION
============================== */
.wool-section {
  position: relative;
  width: 100%;
  min-height: 52.51vw; /* 794/1512 */
  overflow: hidden;
}

/* Full-bleed background */
.bg-wool {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bg-wool img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.wool-section .content-wrap {
  position: relative;
  z-index: 2;
}

/* Wool text content */
.wool-content {
  padding: 9.86vw 0 14vw;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Heading 2 ── */
.heading-2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(28px, 3.17vw, 48px);
  line-height: 1.28;
  color: var(--color-cream-80);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.section-divider-block {
  padding: 3vw 0;
}
.h-divider-light {
  width: clamp(40px, 4.23vw, 64px);
  height: 1px;
  background: var(--color-cream-fade);
}

/* ── Body text ── */
.body-text-inner {
  opacity: 0.9;
  max-width: clamp(280px, 38vw, 580px);
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}
.body-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  /* font-size: clamp(17px, 2.05vw, 31px); */
  line-height: 1.5;
  color: var(--color-linen);
  font-size: 32px;
}

/* ==============================
   SITE FOOTER
   Pinned to bottom of .wool-section.
   Blurs the dark wool texture behind it.
============================== */
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-top: 2.4vw;
  padding-bottom: 2.4vw;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(22, 20, 17, 0.3);
  z-index: 3;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-family: var(--font-micro);
  font-weight: 400;
  font-size: clamp(8px, 0.66vw, 10px);
  line-height: 1.5;
  color: var(--color-cream-60);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 3vw;
}
.footer-link {
  font-family: var(--font-micro);
  font-weight: 400;
  font-size: clamp(8px, 0.66vw, 10px);
  line-height: 1.5;
  color: var(--color-cream-60);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}
.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-cream-60);
  transition: width 0.3s var(--ease-out);
}
.footer-link:hover::after {
  width: 100%;
}

/* ==============================
   ORIENTATION & HEIGHT RULES
============================== */

/* Landscape below 1440px — cap hero height */
@media (orientation: landscape) and (max-width: 1440px) {
  .hero-section {
    max-height: 900px;
  }
}

/* Portrait — cap hero, wool fills the rest (min 650px), content centred */
@media (orientation: portrait) {
  .hero-section {
    max-height: 900px;
  }
  .wool-section {
    height: calc(100vh - 900px);
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .wool-content {
    padding: 48px 0 88px;
  }
}

/* ==============================
   BREAKPOINT — 1024px
   Small desktop / large tablet landscape
============================== */
@media (max-width: 1024px) {

  /* Content wrap — reduce side padding */
  .content-wrap {
    padding: 0 32px;
  }

  /* Hero — tighten vertical padding on heading block */
  .heading-1-block {
    padding: 1.4vw 0;
  }

  /* Tagline — tighten spacing */
  .tagline-block {
    padding: 1.4vw 0;
  }

  /* Divider */
  .divider-block {
    padding: 1.4vw 0 1.6vw;
  }

  /* Wool section — reduce top/bottom padding */
  .wool-content {
    padding: 7vw 0 11vw;
  }

  /* Body text — rein in the hardcoded 32px */
  .body-text {
    font-size: 26px;
  }

  /* Body text container — allow more width */
  .body-text-inner {
    max-width: clamp(260px, 52vw, 580px);
  }

  /* Footer — reduce gap between links */
  .footer-links {
    gap: 2vw;
  }
}

@media (max-width: 1023px) and (orientation: landscape) {
  /* Wool section — min-height + vertical centering (landscape only) */
  .wool-section {
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .wool-content {
    padding: 56px 0 96px;
  }
}

/* ==============================
   BREAKPOINT — 992px
   Medium tablet landscape / small laptop
============================== */
@media (max-width: 992px) {

  /* Content wrap — tighten further */
  .content-wrap {
    padding: 0 24px;
  }

  /* Hero — heading block spacing */
  .heading-1-block {
    padding: 1vw 0;
  }

  /* Tagline spacing */
  .tagline-block {
    padding: 1.2vw 0;
  }

  /* Divider */
  .divider-block {
    padding: 1.2vw 0 1.4vw;
  }

  /* Body text */
  .body-text {
    font-size: 22px;
  }

  /* Body text container */
  .body-text-inner {
    max-width: clamp(240px, 60vw, 560px);
  }

  /* Footer — bump up font size floor slightly for readability */
  .footer-copy,
  .footer-link {
    font-size: clamp(9px, 0.9vw, 11px);
  }

  .footer-links {
    gap: 2.5vw;
  }

  /* Modal card — prevent overflow on narrow landscape tablets */
  .invite-modal-card {
    min-width: clamp(260px, 60vw, 440px);
  }
}

@media (max-width: 992px) and (orientation: landscape) {
  /* Wool section — min-height + vertical centering (landscape only) */
  .wool-section {
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .wool-content {
    padding: 48px 0 88px;
  }
}

/* ==============================
   BREAKPOINT — 768px
   Tablet portrait
============================== */
@media (max-width: 768px) {

  /* Let body text use full available width */
  .body-text-inner {
    max-width: 100%;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  /* Wool section — min-height + vertical centering (landscape only) */
  .wool-section {
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Bottom clears the absolute-positioned footer (~70px) */
  .wool-content {
    padding: 40px 0 80px;
  }
}

/* ==============================
   BREAKPOINT — 480px
   Mobile
============================== */
@media (max-width: 480px) {

  /* ── Content wrap: tighter side padding ── */
  .content-wrap {
    padding: 0 20px;
  }

  /* ── Hero: full-bleed cover, centred ── */
  .hero-image img {
    object-fit: cover;
    object-position: 90%;
  }

  /* Dark overlay for text readability */
  .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(26, 26, 26, 0.38);
    pointer-events: none;
  }

  /* Elevate content above overlay */
  .hero-content-wrap {
    z-index: 3;
    justify-content: center;
    align-items: center;
  }

  /* Content block: full width, centred */
  .left-content {
    width: 100%;
    align-items: center;
  }

  /* ── Heading spacing ── */
  .heading-1-block {
    padding: 20px 0 12px;
  }

  /* ── Tagline / CTA group ── */
  .tagline-cta-group {
    width: 100%;
    align-items: center;
  }

  .tagline-block {
    padding: 16px 0;
  }

  .divider-block {
    padding: 14px 0 16px;
  }

  .cta-block {
    padding-top: 24px;
  }

  /* ── Monogram: lighten to linen ── */
  .monogram-frame img {
    filter: brightness(0) invert(1) sepia(1) saturate(0.3) brightness(0.93);
  }

  /* ── Typography: linen on dark overlay ── */
  .brand-name {
    color: var(--color-linen);
    font-size: clamp(48px, 13vw, 64px);
  }

  .brand-sub {
    color: var(--color-linen);
    font-size: clamp(18px, 4.8vw, 26px);
    letter-spacing: 0.22em;
    text-align: center;
  }

  .tagline {
    color: var(--color-linen);
    font-size: clamp(10px, 2.8vw, 14px);
    letter-spacing: 0.22em;
    text-align: center;
  }

  .h-divider {
    background: rgba(235, 233, 221, 0.5);
    width: 36px;
    margin: 0 auto;
  }

  /* ── CTA: linen colours ── */
  .cta-link {
    border-bottom-color: rgba(235, 233, 221, 0.5);
    justify-content: center;
    gap: 14px;
  }

  .cta-link:hover {
    gap: 20px;
  }

  .cta-link-text {
    color: var(--color-linen);
    font-size: clamp(16px, 4.8vw, 22px);
    font-weight: 600;
    letter-spacing: 0.18em;
  }

  .cta-arrow {
    width: 20px;
  }

  .cta-arrow svg line,
  .cta-arrow svg polyline {
    stroke: var(--color-linen);
  }

  /* ── Input state: linen colours ── */
  .cta-input-wrap {
    border-bottom-color: rgba(235, 233, 221, 0.5);
  }

  .cta-email-input {
    color: var(--color-linen);
    caret-color: var(--color-linen);
    font-size: clamp(12px, 3.2vw, 16px);
  }

  .cta-email-input::placeholder {
    color: rgba(235, 233, 221, 0.35);
  }

  .cta-submit {
    width: 15px;
  }

  .cta-submit svg line,
  .cta-submit svg polyline {
    stroke: var(--color-linen);
  }

  /* ── Footer: centre-aligned ── */
  .site-footer {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-copy,
  .footer-link {
    font-size: 9px;
  }

  .footer-links {
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ── Wool section: centred + scaled text ── */
  .wool-content {
    align-items: center;
    text-align: center;
    padding: 40px 0 80px;
  }

  .heading-2 {
    font-size: clamp(20px, 5.5vw, 28px);
    align-items: center;
  }

  .section-divider-block {
    padding: 20px 0;
  }

  .h-divider-light {
    margin: 0 auto;
  }

  .body-text-inner {
    align-items: center;
  }

  .body-text {
    font-size: 16px;
    text-align: center;
  }
}
