/* Section "iz" (#davet) — "The next reference point." Sticky track over the
 * sails film. Scoped under .s-iz. */

.s-iz__track {
  height: 200vh;
  position: relative;
}
.s-iz__stage {
  background: var(--bg-2);
}
.s-iz__cta-anchor {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.s-iz__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.22) saturate(1.06); /* the dusk footage is dark on its own (client: "son ekran fazla karanlık") */
}
/* [hybrid] the seamless sea loop sits on top of the scrubbed clip; opacity is driven from iz.js */
.s-iz__loop {
  opacity: 0;
  filter: none; /* the wrapper of the two loop videos: the videos inside carry the brightness filter (not twice) */
}
.s-iz__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.s-iz__scrim--edges {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    rgba(10, 8, 7, 0.7) 6%,
    rgba(6, 4, 3, 0.04) 26%,
    rgba(6, 4, 3, 0.04) 70%,
    rgba(6, 4, 3, 0.8) 100%
  );
}
/* client, 2026-10-05: "son ekran fazla karanlık" — a lighter, tighter field just behind the text; the type carries its own shadow */
.s-iz__scrim--center {
  background: radial-gradient(ellipse 52% 44% at 50% 56%, rgba(6, 4, 3, 0.42) 0%, rgba(6, 4, 3, 0) 72%);
}
.s-iz__content {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 2px 24px rgba(0, 0, 0, 0.55);
}
.s-iz__content .btn {
  text-shadow: none;
}

.s-iz__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(14px, 2.2vh, 22px);
  padding-top: var(--nav-h);
  /* centre the scene between the header and the persistent "devam" button (devam.css), so the CTAs never touch it */
  padding-bottom: calc(var(--devam-bottom, 0px) + var(--devam-h, 0px) + 10px);
}

.s-iz__stack {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}
.s-iz__odo-wrap,
.s-iz__seal {
  grid-area: 1 / 1;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  will-change: transform, opacity;
}
.s-iz__odo-wrap {
  opacity: 1;
}
.s-iz__seal {
  opacity: 0;
  color: var(--gold-bright);
}

.s-iz__odo {
  font-size: clamp(96px, 13vw, 200px);
  color: var(--gold-bright);
  filter: drop-shadow(0 4px 30px rgba(231, 200, 120, 0.22));
}

.s-iz__seal-svg {
  height: clamp(72px, 11vh, 108px);
  width: auto;
}

.s-iz__slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  opacity: 0;
  max-width: none;
  text-wrap: balance;
}
.s-iz__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 18px);
  margin-top: clamp(4px, 1.2vh, 12px);
  opacity: 0;
}

.s-iz__yearlabel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.4em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(13px, 1.15vw, 15px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.s-iz__yearlabel::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
  flex: none;
}
.s-iz__yearlabel-stack {
  position: relative;
  display: grid;
  place-items: center;
}
.s-iz__yearlabel-text {
  grid-area: 1 / 1;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.s-iz__caret {
  position: relative;
  display: inline-block;
  width: 0.46em;
  height: 0.9em;
  vertical-align: -0.12em;
  margin-left: 5px;
  flex: none;
}
.s-iz__caret::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-bright);
}
html:not(.reduced-motion) .s-iz__caret::after {
  animation: iz-caret-blink 1.1s steps(1, end) infinite;
}
@keyframes iz-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.s-iz__invite {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.12;
  color: var(--ink);
  max-width: 22ch;
  opacity: 0;
  text-wrap: balance;
}

/* ---------------------------------------------------------------- reduced motion */
html.reduced-motion .s-iz__track {
  height: auto;
}
html.reduced-motion .s-iz__stage {
  position: relative;
  top: auto;
  height: auto;
  min-height: 100svh;
  overflow: visible;
  padding: clamp(48px, 8vh, 96px) 0;
}
html.reduced-motion .s-iz__content {
  height: auto;
}
html.reduced-motion .s-iz__odo-wrap {
  display: none;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .s-iz__scrim--center {
    background: radial-gradient(ellipse 80% 60% at 50% 54%, rgba(6, 4, 3, 0.55) 0%, rgba(6, 4, 3, 0) 72%);
  }
  .s-iz__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
  }
  .s-iz__ctas .btn {
    justify-content: center;
    width: 100%;
  }
  .s-iz__ctas .btn--text {
    width: auto;
    margin: 4px auto 0;
  }
}
@media (max-width: 480px) {
  .s-iz__odo {
    font-size: clamp(60px, 22vw, 96px);
  }
  .s-iz__seal-svg {
    height: clamp(56px, 14vh, 84px);
  }
  .s-iz__invite {
    max-width: 18ch;
  }
}
