:root {
  --paper: #f4efe7;
  --cream: #eee6d9;
  --ink: #374032;
  --muted: #7d776d;
  --gold: #a7895d;
  --line: rgba(55, 64, 50, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Montserrat, sans-serif; overflow-x: hidden; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }

.opening {
  position: fixed; inset: 0; z-index: 50; overflow: hidden; cursor: pointer;
  background: transparent; isolation: isolate;
}
.hero-behind { display: none; }
.curtain { position: absolute; top: 0; bottom: 0; width: 50.2%; z-index: 3; background-image: url('./media-v6/bohem-bahce-kapali-inci-perde.jpeg.webp?v=20260930-11'); background-repeat: no-repeat; background-size: 200% 100%; transition: transform .75s cubic-bezier(.72,0,.18,1); will-change: transform; }
.curtain-left { left: 0; background-position: left center; transform-origin: left center; }
.curtain-right { right: 0; background-position: right center; transform-origin: right center; }
.opening-frame {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.opening-hint {
  position: absolute; z-index: 6; left: 50%; bottom: calc(42px + env(safe-area-inset-bottom));
  transform: translateX(-50%); width: max-content; padding: 10px 15px;
  color: #655746; background: rgba(255,255,255,.78); border: 1px solid rgba(101,87,70,.24);
  font-size: .66rem; letter-spacing: .17em; text-transform: uppercase;
  transition: opacity .3s ease;
}
.eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; }
.opening.open .curtain-left { transform: translateX(-101%); }
.opening.open .curtain-right { transform: translateX(101%); }
.opening.open .opening-hint { opacity: 0; }
.opening.gone { visibility: hidden; pointer-events: none; }

.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  background: url('./media-v6/bohem-bahce-dugun-masasi-hero.jpeg.webp?v=20260930-11') center/cover no-repeat;
  color: #fff; text-align: center; padding: 32px 22px;
}
.hero-frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-copy { position: relative; z-index: 3; transform: translateY(11vh); text-shadow: 0 2px 20px rgba(0,0,0,.48); }
.hero-copy .eyebrow, .hero-copy h1, .hero-meta {
  opacity: 0; transform: translateY(22px);
  transition: opacity .36s ease, transform .48s cubic-bezier(.22,.75,.26,1);
}
.hero.revealed .hero-copy .eyebrow { opacity: 1; transform: translateY(0); transition-delay: .04s; }
.hero.revealed .hero-copy h1 { opacity: 1; transform: translateY(0); transition-delay: .12s; }
.hero.revealed .hero-meta { opacity: 1; transform: translateY(0); transition-delay: .2s; }
.hero h1 { margin: 12px 0 18px; font: 400 clamp(4rem, 17vw, 7.5rem)/.78 'Cormorant Garamond', serif; }
.hero h1 i { display: block; margin: 5px 0; font-size: .48em; font-weight: 400; }
.hero-meta { display: flex; align-items: center; justify-content: center; gap: 12px; letter-spacing: .11em; font-size: .78rem; text-transform: uppercase; }
.dot { color: #e9d9ba; }
.scroll-note { position: absolute; z-index: 4; bottom: calc(24px + env(safe-area-inset-bottom)); font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transition: opacity .35s ease .28s; }
.hero.revealed .scroll-note { opacity: 1; }
.scroll-note::after { content: ''; display: block; width: 1px; height: 28px; background: #fff; margin: 10px auto 0; opacity: .7; }

.section { min-height: 70svh; padding: 92px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.section h2, .thank-card h2 { margin: 8px 0 34px; font: 400 clamp(2.7rem, 10vw, 4.8rem)/.95 'Cormorant Garamond', serif; }
.eyebrow { margin: 0; color: var(--gold); font-weight: 500; }

.invitation-details { min-height: auto; padding: 84px 22px 78px; background: #f6f1e8; }
.invitation-details h2 { margin: 16px 0 54px; font-size: clamp(2.25rem, 8.5vw, 4.3rem); line-height: 1.05; }
.families { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 22px; width: min(560px,100%); padding-top: 28px; border-top: 1px solid var(--line); }
.families div { display: flex; flex-direction: column; gap: 9px; }
.families span { color: var(--gold); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.families strong { font: 400 clamp(1.45rem, 5.8vw, 2rem)/1.05 'Cormorant Garamond', serif; }
.families i { color: var(--gold); font: italic 400 1.9rem 'Cormorant Garamond', serif; }

.story { min-height: auto; overflow: hidden; background: #fff; padding: 64px 22px 52px; }
.story h2 { margin-bottom: 18px; }
.story-frame { position: relative; display: flex; flex-direction: column; align-items: center; width: min(350px, 86vw); margin: 0 auto 16px; padding: 0; border: 0; outline: 0; appearance: none; -webkit-appearance: none; -webkit-tap-highlight-color: transparent; background: transparent; color: inherit; font: inherit; cursor: pointer; filter: none; opacity: 1; }
.story-frame:active, .story-frame:focus, .story-frame:focus-visible { background: transparent; filter: none; opacity: 1; outline: 0; }
.story-visual { position: relative; display: block; width: 100%; aspect-ratio: 1141 / 1378; }
.story-visual > img { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.story-stage {
  position: absolute; z-index: 3; inset: 14% 17% 14% 17%; overflow: hidden; display: block;
  background: #fff;
}
.story-tap { position: relative; z-index: 6; width: max-content; margin-top: 12px; padding: 8px 12px; background: #f8f4ed; color: #6b6257; font-size: .61rem; letter-spacing: .13em; text-transform: uppercase; }
.story-dots { display: flex; gap: 8px; justify-content: center; }
.story-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(55,64,50,.25); transition: width .25s, background .25s; }
.story-dots i.active { width: 22px; border-radius: 10px; background: var(--gold); }

.countdown { position: relative; overflow: hidden; padding: 92px 22px 0; background: #fff; }
.string-lights {
  position: relative; width: min(680px, calc(100% + 44px)); max-width: none; height: auto;
  margin: 54px -22px 0; flex: 0 0 auto; object-fit: contain;
}
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); width: min(590px, 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.countdown-grid div { padding: 25px 6px 22px; border-right: 1px solid var(--line); }
.countdown-grid div:last-child { border: 0; }
.countdown-grid strong { display: block; font: 400 clamp(2rem, 9vw, 4rem)/1 'Cormorant Garamond', serif; font-variant-numeric: tabular-nums; }
.countdown-grid span { display: block; margin-top: 7px; color: var(--muted); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }

.timeline { background: #fff; }
.table-illustration { width: min(520px, 92%); margin: -10px auto 50px; }
.events { width: min(520px, 100%); text-align: left; }
.events article { display: grid; grid-template-columns: 92px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.events article:last-child { border-bottom: 1px solid var(--line); }
.events time { font: 400 1.7rem/1 'Cormorant Garamond', serif; color: var(--gold); }
.events h3 { margin: 0 0 6px; font: 500 1.45rem/1 'Cormorant Garamond', serif; }
.events p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }

.location { min-height: 78svh; padding-top: 66px; background: #fff; overflow: hidden; }
.road { position: relative; width: 100vw; height: clamp(145px, 34vw, 220px); margin-bottom: 42px; background: #fff; }
.road span { position: absolute; left: 0; right: 0; bottom: 24px; border-bottom: 1px dashed rgba(55,64,50,.28); }
.road img {
  position: absolute; bottom: 25px; left: 0; width: clamp(150px, 39vw, 230px); max-width: none;
  transform: translateX(-115%);
}
.road.is-driving img {
  animation: drive 11s linear infinite;
}
@keyframes drive { from { transform: translateX(-115%); } to { transform: translateX(calc(100vw + 10%)); } }
.address { margin: -16px 0 28px; color: var(--muted); line-height: 1.7; }
.map-card { width: min(580px, 100%); height: 280px; margin: 0 auto 26px; overflow: hidden; border: 1px solid var(--line); background: #f4f0e9; }
.map-card iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.72) sepia(.08); }
.location-button { display: inline-flex; min-height: 48px; align-items: center; padding: 0 24px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; transition: background .25s, color .25s; }
.location-button:hover { background: var(--ink); color: #fff; }

.gift-save { min-height: auto; padding: 58px 22px 86px; background: #fbfaf6; overflow: hidden; color: #3e5a31; }
.gift-save h2 { margin: 8px 0 0; color: #3e5a31; font: 400 clamp(2.8rem,11vw,4.4rem)/1 'Cormorant Garamond',serif; }
.gift-save h2 i { color: #a79269; font-size: .72em; }
.gift-kicker { max-width: 420px; margin: 0; color: #3e5a31; font-size: .7rem; font-weight: 500; letter-spacing: .2em; line-height: 1.8; text-transform: uppercase; }
.gift-subtitle { margin: 12px 0 0; color: #3e5a31; font: 500 .78rem Montserrat,sans-serif; letter-spacing: .34em; text-transform: uppercase; }
.gift-divider { display: flex; align-items: center; justify-content: center; gap: 14px; width: min(280px,80%); margin: 18px auto 0; }
.gift-divider span { height: 1px; flex: 1; background: rgba(62,90,49,.5); }
.gift-divider b { color: #a79269; font: 400 1.25rem 'Cormorant Garamond',serif; }
.gift-description { max-width: 510px; margin: 22px auto 30px; color: #4f5c48; font: 400 1.05rem/1.65 'Cormorant Garamond',serif; }
.envelope-loop { position: relative; width: min(360px, 84vw); aspect-ratio: 1513 / 1039; margin: 8px auto 34px; }
.envelope-loop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 24px rgba(66,52,36,.12)); }
.gift-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; width: min(380px,100%); }
.gift-actions article { padding: 26px 18px; border: 1px solid rgba(101,116,84,.32); background: rgba(255,255,255,.62); }
.bank-details { width: 100%; }
.bank-details summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; border: 1px solid rgba(101,116,84,.32); padding: 17px 20px; background: rgba(255,255,255,.48); color: var(--ink); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.bank-details summary::-webkit-details-marker { display: none; }
.bank-details summary span { font-size: 1.2rem; transition: transform .25s ease; }
.bank-details[open] summary span { transform: rotate(180deg); }
.bank-details article { border-top: 0; }
.gift-actions span { color: var(--gold); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.gift-actions h3 { margin: 10px 0 13px; color: #3e5a31; font: 400 clamp(1.65rem,5.5vw,2.4rem)/1 'Cormorant Garamond',serif; }
.gift-actions p { margin: 0 0 9px; color: var(--ink); font-size: .82rem; line-height: 1.6; overflow-wrap: anywhere; }
.gift-actions small { display: block; min-height: 32px; color: var(--muted); font-size: .7rem; letter-spacing: .08em; }
.gift-actions button, .gift-actions a { display: inline-flex; min-height: 43px; margin-top: 18px; padding: 0 16px; align-items: center; justify-content: center; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: .66rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; cursor: pointer; }

.thank-you { padding: 0 0 24px; background: #f3eee4; text-align: center; }
.thank-card { position: relative; width: min(720px, 100%); min-height: 92svh; margin: 0 auto 42px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #f3eee4; }
.thank-card img {
  position: relative; order: 2; width: 100%; height: auto; max-width: 100%;
  margin: auto 0 0; transform: none; object-fit: contain;
}
.thank-card div { position: relative; z-index: 1; order: 1; padding: 118px 28px 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.thank-card p { margin: 0 0 8px; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; }
.thank-card h2 { margin: 12px 0 25px; font-size: clamp(2.05rem, 8.2vw, 4rem); line-height: 1.02; }
.thank-card strong { font: italic 400 1.8rem 'Cormorant Garamond', serif; }
.thank-card small { margin-top: 9px; color: var(--muted); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.brand { color: #6d665d; text-decoration: none; font-size: .68rem; letter-spacing: .18em; }

@media (min-width: 760px) {
  .hero h1 i { display: inline; margin: 0 .15em; }
  .hero { background-position: center 68%; }
  .section { padding-left: 40px; padding-right: 40px; }
  .opening-frame, .hero-frame { object-fit: cover; }
}
@media (max-width: 520px) {
  .gift-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curtain, .opening-hint, .opening-frame { transition-duration: .01ms; }
  .road img { animation-duration: 25s; }
}

/* Uploaded JPEG decorations: white backgrounds blend without covering the content. */
.opening-frame, .hero-frame, .story-visual > img, .envelope-loop img { mix-blend-mode: multiply; }
.story-visual { aspect-ratio: 1141 / 1379; isolation: isolate; }

/* Keep the hero visible while the uploaded white-backed curtain opens. */
.opening { background: url('./media-v6/bohem-bahce-dugun-masasi-hero.jpeg.webp?v=20260930-11') center/cover no-repeat; }

/* Remove only the blank JPEG canvas around the original envelope. */
.envelope-loop img { clip-path: inset(18.7% 17.8% 14.1% 18% round 2%); filter: none; mix-blend-mode: normal; }
.envelope-loop { filter: drop-shadow(0 18px 24px rgba(66,52,36,.12)); }

/* Open pearl curtains sit above every hero content layer. */
.hero-frame { z-index: 10; }

.story-stage .story-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.story-stage .story-photo.active { display: block; }
