:root {
  --olive: #8E8B63;
  --light-olive: #D6D4AD;
  --blush: #EDDADA;
  --rose: #CB8587;
  --paper: #F6F2EC;
  --ink: #575342;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--olive);
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 76px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(246, 242, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(142, 139, 99, 0.45);
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--rose);
}

.lang-button {
  border: 0;
  padding: 4px 1px;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  opacity: 0.48;
}

.lang-button:hover {
  background: transparent;
  color: inherit;
}

.lang-button.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1fr 2.5fr 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 56px 6vw 24px;
}

.hero-title {
  text-align: center;
}

.hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(76px, 10vw, 158px);
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: -0.055em;
}

.hero h1 .amp {
  font-size: 0.72em;
  line-height: 1;
  color: var(--rose);
}

.hero-side {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  color: var(--rose);
}

.hero-side-left {
  text-align: center;
}

.hero-side-right {
  text-align: center;
}

.marquee {
  grid-column: 1 / -1;
  overflow: hidden;
  padding: 48px 0 26px;
  min-height: 104px;
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.marquee-group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-right: 28px;
}

.marquee-char {
  display: inline-block;
  flex: 0 0 auto;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1;
  color: var(--rose);
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
}

.marquee-space {
  width: .32em;
}

.marquee-heart {
  font-size: 16px;
  line-height: 1;
  position: relative;
  top: -1px;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .marquee-char {
    transform: none !important;
  }
}

.save-section {
  padding: 110px 6vw;
  background: var(--blush);
}

.save-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 420px);
  gap: 52px;
  align-items: center;
}

.save-copy {
  text-align: left;
}

.save-photo-frame {
  background: var(--olive);
  padding: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
  width: min(100%, 420px);
  justify-self: center;
}

.save-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1.05) contrast(1.05) saturate(1.02);
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);
}

.save-section h2,
.form-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(52px, 7vw, 98px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.intro {
  max-width: 560px;
  margin: 28px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 23px;
  line-height: 1.45;
  color: var(--ink);
}






.form-section {
  padding: 120px 8vw;
  background: var(--light-olive);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10vw;
  align-items: start;
}

.form-copy {
  position: sticky;
  top: 120px;
}

.form-copy p:last-child {
  max-width: 420px;
  margin-top: 28px;
  line-height: 1.7;
  color: var(--ink);
}

.address-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

input {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--olive);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

input:focus {
  border-bottom-width: 2px;
}

button {
  grid-column: 1 / -1;
  margin-top: 20px;
  width: fit-content;
  padding: 15px 30px;
  border: 1px solid var(--olive);
  background: transparent;
  color: var(--olive);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  background: var(--olive);
  color: var(--paper);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--ink);
}

footer {
  padding: 30px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(142, 139, 99, 0.35);
  font-size: 12px;
  letter-spacing: 0.14em;
}

footer p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  letter-spacing: 0;
}

@media (max-width: 800px) {
  .site-header {
    padding: 0 18px;
    height: 66px;
    position: sticky;
  }

  .brand {
    font-size: 20px;
    padding-right: 96px;
  }

  .nav {
    display: none;
  }

  .header-right {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 12;
  }

  .language-switcher {
    display: flex !important;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    color: var(--rose);
  }

  .language-switcher .lang-button {
    display: inline-block !important;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 6px 1px;
    border: 0;
    background: transparent;
    color: inherit;
  }

  .hero {
    min-height: calc(100svh - 66px);
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    padding: 40px 20px 18px;
  }

  .hero-title {
    grid-row: 2;
    padding: 28px 0;
  }

  .hero h1 {
    font-size: clamp(68px, 23vw, 112px);
    line-height: 0.76;
  }

  .hero-side-left,
  .hero-side-right {
    text-align: center;
    font-size: 14px;
  }

  .hero-side-left {
    grid-row: 1;
  }

  .hero-side-right {
    grid-row: 3;
  }

  .marquee {
    grid-row: 4;
    padding-top: 36px;
  }

  .photo-section {
    padding: 54px 20px;
  }

  .photo-frame {
    padding: 10px;
  }

  .save-section {
    padding: 78px 22px;
  }

  .save-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .save-photo-frame {
    width: min(100%, 320px);
  }

  .save-copy {
    text-align: center;
  }

  .intro {
    margin: 26px auto 0;
  }




  




.form-section {
    padding: 86px 22px;
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .form-copy {
    position: static;
  }

  .address-form {
    grid-template-columns: 1fr;
  }

  .field,
  .field.full,
  button,
  .form-status {
    grid-column: 1;
  }

  footer {
    padding: 26px 20px;
  }
}


button:disabled {
  opacity: 0.55;
  cursor: wait;
}



.calendar-actions {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(142, 139, 99, 0.45);
}

.calendar-actions[hidden] {
  display: none;
}

.calendar-title {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: var(--ink);
}

.calendar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calendar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--olive);
  background: var(--olive);
  color: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.calendar-button:hover {
  background: transparent;
  color: var(--olive);
}

.calendar-button-secondary {
  background: transparent;
  color: var(--olive);
}

.calendar-button-secondary:hover {
  background: var(--olive);
  color: var(--paper);
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* First-visit intro */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.intro-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.intro-mask-cover {
  fill: var(--paper);
}

#heart-hole-path {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 2.05s cubic-bezier(.72, 0, .18, 1);
}

.intro-screen.is-opening #heart-hole-path {
  transform: scale(7.8);
}

.intro-enter {
  position: relative;
  z-index: 2;
  width: auto;
  margin: 0;
  padding: 24px 30px;
  border: 0;
  background: transparent;
  color: var(--rose);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.intro-enter:hover {
  background: transparent;
  color: var(--rose);
}

.intro-heart {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(68px, 8vw, 106px);
  line-height: 1;
  transform-origin: center;
  animation: intro-heart-pulse 2.4s ease-in-out infinite;
}

.intro-text {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
}

@keyframes intro-heart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.intro-screen.is-opening .intro-enter {
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.28s ease 0.12s, transform 0.34s ease;
}

body.intro-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .intro-heart {
    animation: none;
  }

  #heart-hole-path {
    transition-duration: 0.01s;
  }

  .intro-enter {
    transition-duration: 0.01s;
  }
}


/* Robust mobile header/language visibility */
@media (max-width: 800px) {
  .site-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  .header-right {
    display: flex !important;
    position: static !important;
    transform: none !important;
    margin-left: auto;
  }

  .language-switcher {
    display: flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  .language-switcher .lang-button {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    padding: 4px 1px !important;
    margin: 0 !important;
  }

  .brand {
    padding-right: 12px !important;
  }
}


/* Balanced first section height on mobile */
@media (max-width: 800px) {
  .hero {
    min-height: calc(100svh - 66px + 38px);
    padding-bottom: 26px;
  }
}


/* Pink outline that follows the expanding heart reveal */
#heart-outline-path {
  stroke: var(--rose);
  stroke-width: 0.9;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition:
    transform 2.05s cubic-bezier(.72, 0, .18, 1),
    opacity 0.22s ease;
}

.intro-screen.is-opening #heart-outline-path {
  transform: scale(7.8);
  opacity: 1;
}

.intro-screen.is-opening .intro-heart {
  opacity: 0;
  transition: opacity 0.18s ease;
}

@media (prefers-reduced-motion: reduce) {
  #heart-outline-path {
    transition-duration: 0.01s;
  }
}


/* Keep the marquee position, but add a little more light space below it on mobile */
@media (max-width: 800px) {
  .hero {
    padding-bottom: 54px;
  }

  .marquee {
    margin-bottom: 14px;
  }
}


/* Slightly longer mobile hero, while keeping the marquee position visually unchanged */
@media (max-width: 800px) {
  .hero {
    min-height: calc(100svh - 66px + 58px);
    padding-bottom: 64px;
  }
}


/* Final mobile hero tuning */
@media (max-width: 800px) {
  .hero {
    min-height: calc(100svh - 66px + 78px);
    padding-bottom: 72px;
  }

  .marquee {
    transform: translateY(8px);
  }
}


/* Add ~2 mm extra light space on mobile without moving the marquee */
@media (max-width: 800px) {
  .hero {
    min-height: calc(100svh - 66px + 86px);
    padding-bottom: 80px;
  }

  .marquee {
    transform: translateY(8px);
  }
}


/* Add another ~2 mm extra light space on mobile without moving the marquee */
@media (max-width: 800px) {
  .hero {
    min-height: calc(100svh - 66px + 94px);
    padding-bottom: 88px;
  }

  .marquee {
    transform: translateY(8px);
  }
}


/* Add another ~1 mm extra light space on mobile without moving the marquee */
@media (max-width: 800px) {
  .hero {
    min-height: calc(100svh - 66px + 98px);
    padding-bottom: 92px;
  }

  .marquee {
    transform: translateY(8px);
  }
}


.brand-heart {
  color: var(--rose);
  font-size: 0.78em;
  margin: 0 0.08em;
}
