/* Meltem Photography — V12 editorial choreography.
   A fixed promise, a real photographic pose sequence and intentional galleries. */

:root {
  --v12-paper: #f4f0e8;
  --v12-sheet: #fbfaf6;
  --v12-ink: #171714;
  --v12-ruby: #7d1f2b;
  --v12-clay: #9f755d;
  --v12-line: rgba(23, 23, 20, .19);
  --v12-ease: cubic-bezier(.2, .72, .18, 1);
}

/* Hero: one locked set, three continuous photographs and a legible exposure beat. */

.hero--live .flow-media {
  background: #625b52;
}

.hero--live .flow-image {
  opacity: 0;
  transform: none;
  transform-origin: center;
  transition: opacity 90ms linear;
  will-change: opacity;
}

.hero--live .flow-image.is-active {
  z-index: 2;
  opacity: 1;
}

.hero--live .flow-image:nth-of-type(3) {
  filter: brightness(.91) saturate(1.06);
}

.hero--live .flow-flash {
  position: absolute;
  z-index: 5;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 31%, rgba(255, 255, 252, .94) 0, rgba(255, 253, 246, .52) 26%, rgba(255, 250, 240, .13) 54%, transparent 76%);
  box-shadow: inset 0 0 120px rgba(255, 253, 246, .2);
}

.hero--live .flow-stage.is-flashing .flow-flash {
  animation: v12-studio-flash 170ms linear both;
}

@keyframes v12-studio-flash {
  0% { opacity: 0; }
  10% { opacity: .72; }
  34% { opacity: .42; }
  100% { opacity: 0; }
}

.hero--live .flow-caption [data-live-counter] {
  margin-left: .35em;
  color: var(--v12-ruby);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.hero--live .flow-copy {
  background: rgba(248, 245, 238, .91);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero--live .flow-toggle {
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.hero--live .flow-toggle i {
  min-width: 1em;
  text-align: center;
}

.hero--live .flow-stage.is-paused .flow-toggle i {
  transform: none;
}

/* The opening promise now earns its space with visual evidence. */

.hero.hero--flow + .thesis.thesis--proof {
  padding-top: clamp(72px, 7vw, 116px);
  padding-bottom: clamp(76px, 8vw, 132px);
  grid-template-columns: minmax(110px, .34fr) minmax(0, 1.55fr) minmax(280px, .72fr);
  column-gap: clamp(28px, 4.6vw, 78px);
  row-gap: clamp(32px, 4vw, 64px);
}

.hero.hero--flow + .thesis.thesis--proof > * {
  min-width: 0;
  max-width: 100%;
}

.thesis--proof > .section-number {
  grid-column: 1;
  grid-row: 1;
}

.thesis--proof h2 {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  max-width: 10ch;
  font-size: clamp(3.6rem, 5.1vw, 6.4rem);
  line-height: .91;
}

.thesis--proof .thesis-copy {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  font-size: clamp(.95rem, .89rem + .22vw, 1.12rem);
  line-height: 1.52;
}

.thesis-evidence {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: .82fr 1.34fr .82fr;
  align-items: end;
  gap: clamp(14px, 1.8vw, 28px);
}

.thesis-proof {
  margin: 0;
}

.thesis-proof img {
  width: 100%;
  height: clamp(220px, 24vw, 380px);
  display: block;
  object-fit: cover;
  background: #d0c7ba;
}

.thesis-proof--eye img {
  height: clamp(190px, 20vw, 320px);
  object-position: 50% 42%;
}

.thesis-proof--ruby img {
  object-position: 50% 52%;
}

.thesis-proof--ring img {
  height: clamp(190px, 20vw, 320px);
  object-position: 50% 54%;
}

.thesis-proof figcaption {
  min-height: 58px;
  padding-top: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 18px;
  border-top: 1px solid var(--v12-line);
}

.thesis-proof figcaption span {
  color: rgba(23, 23, 20, .62);
  font-size: .65rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.thesis-proof figcaption strong {
  font-size: clamp(.9rem, .83rem + .2vw, 1.03rem);
  font-weight: 500;
  line-height: 1.3;
}

.thesis-proof--ruby figcaption strong {
  color: var(--v12-ruby);
}

/* Occasion rail: four distinct worlds, then a deliberate conversion ending. */

.reel-toolbar [data-reel-denominator] {
  font-style: normal;
}

.reel-card--civil {
  --card-height: var(--rail-height);
  --card-width: clamp(765px, 54vw, 930px);
}

.reel-card--nikah {
  --card-height: clamp(463px, 32.7vw, 563px);
  --card-width: clamp(347px, 24.5vw, 422px);
}

.reel-card--package {
  --card-height: var(--rail-height);
  --card-width: clamp(720px, 60vw, 1020px);
  padding-top: 0;
}

.package-card {
  width: 100%;
  height: var(--card-height);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, .72fr);
  overflow: hidden;
  border: 1px solid var(--v12-line);
  background: #ece3d8;
}

.package-card__copy {
  padding: clamp(34px, 4.4vw, 74px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.package-card p {
  margin: 0;
  max-width: 38ch;
  color: rgba(23, 23, 20, .68);
  font-size: clamp(.92rem, .86rem + .2vw, 1.06rem);
  line-height: 1.52;
}

.package-card__copy > p:first-child {
  color: var(--v12-ruby);
  font-size: .69rem;
  font-weight: 660;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.package-card h3 {
  max-width: 9ch;
  margin: auto 0 24px;
  font-size: clamp(3.1rem, 4.4vw, 5.5rem);
  font-weight: 320;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.package-card a,
.moment-dialog__cta {
  min-height: 46px;
  padding: 13px 16px 11px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--v12-ink);
  color: var(--v12-sheet);
  font-size: .68rem;
  font-weight: 660;
  letter-spacing: .12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.package-card__copy > p:not(:first-child) {
  margin-bottom: clamp(26px, 4vh, 44px);
}

.package-card__garden {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #f1ece4;
}

.package-card__garden::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(30, 24, 21, .64));
}

.package-card__garden img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 50%;
}

.package-card__garden span {
  position: absolute;
  right: clamp(18px, 2.5vw, 34px);
  bottom: clamp(20px, 3vw, 40px);
  left: clamp(18px, 2.5vw, 34px);
  z-index: 2;
  color: var(--v12-sheet);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.occasion-gallery-data[hidden] {
  display: none !important;
}

.moment-dialog__cta {
  margin-top: auto;
}

.moment-dialog__filmstrip {
  min-height: 92px;
  padding: 10px 14px;
  display: block;
  overflow: hidden;
  background: var(--v12-sheet);
}

.moment-dialog__thumbs {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: stretch;
  gap: 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 23, 20, .34) transparent;
}

/* Each occasion now holds two or three images; a short strip sits centred as one deliberate set
   (auto margins keep an overflowing strip scrollable from its first image). */
.moment-dialog__thumbs > :first-child {
  margin-left: auto;
}

.moment-dialog__thumbs > :last-child {
  margin-right: auto;
}

.moment-dialog .moment-dialog__thumbs button {
  position: relative;
  flex: 0 0 98px;
  width: 98px;
  min-height: 0;
  height: 66px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  background: #dedbd3;
  opacity: .52;
  transition: opacity 160ms ease, border-color 160ms ease;
}

.moment-dialog .moment-dialog__thumbs button::after {
  content: attr(data-index);
  position: absolute;
  right: 5px;
  bottom: 4px;
  padding: 2px 4px 1px;
  background: rgba(17, 17, 15, .78);
  color: #fff;
  font-size: .55rem;
  letter-spacing: .08em;
}

.moment-dialog__thumbs img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.moment-dialog .moment-dialog__thumbs button[aria-current="true"] {
  border-color: var(--v12-ruby);
  opacity: 1;
}

.moment-dialog .moment-dialog__thumbs button:hover,
.moment-dialog .moment-dialog__thumbs button:focus-visible {
  border-color: var(--v12-ink);
  opacity: 1;
}

.method-notes {
  margin-top: clamp(28px, 4vw, 48px) !important;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  border-top: 1px solid var(--v12-line);
  color: rgba(23, 23, 20, .72) !important;
  font-size: .68rem !important;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.method-notes span:not(:last-child)::after {
  content: "·";
  margin-left: 22px;
  color: var(--v12-ruby);
}

@media (hover: hover) and (pointer: fine) {
  .package-card a:hover,
  .package-card a:focus-visible,
  .moment-dialog__cta:hover,
  .moment-dialog__cta:focus-visible {
    background: var(--v12-ruby);
  }
}

@media (min-width: 901px) and (min-height: 880px) {
  .discoveries.is-horizontal-story-active .reel-card--package {
    --card-height: var(--rail-height);
    --card-width: min(880px, 71vw);
  }

  .discoveries.is-horizontal-story-active .package-card h3 {
    font-size: clamp(2.8rem, 3.8vw, 4.6rem);
  }
}

@media (max-width: 900px) {
  .hero.hero--flow + .thesis.thesis--proof {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .thesis--proof > .section-number,
  .thesis--proof h2,
  .thesis--proof .thesis-copy,
  .thesis-evidence {
    grid-column: 1;
    grid-row: auto;
  }

  .thesis--proof h2 {
    font-size: clamp(3.4rem, 10vw, 5.4rem);
  }

  .thesis--proof .thesis-copy {
    max-width: 48ch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thesis-evidence {
    margin-top: 18px;
    overflow-x: auto;
    grid-template-columns: repeat(3, minmax(260px, 72vw));
    scroll-snap-type: x mandatory;
  }

  .thesis-proof {
    scroll-snap-align: start;
  }

  .reel-card--package {
    --card-width: min(86vw, 640px);
  }

  .package-card {
    grid-template-columns: 1fr minmax(120px, .46fr);
  }

  .package-card h3 {
    margin-top: auto;
    font-size: clamp(2.5rem, 7.2vw, 4rem);
  }
}

@media (max-width: 820px) {
  .hero--live .flow-copy {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero--live .flow-image {
    object-position: 67% 50%;
  }

  .hero--live .flow-image:nth-of-type(3) {
    object-position: 60% 50%;
  }

  .hero--live .flow-caption p:first-child span {
    display: none;
  }
}

@media (max-width: 620px) {
  .thesis--proof .thesis-copy {
    grid-template-columns: 1fr;
  }

  .thesis-evidence {
    grid-template-columns: repeat(3, minmax(235px, 78vw));
  }

  .package-card {
    grid-template-columns: minmax(0, 1fr) minmax(106px, .4fr);
  }

  .package-card__copy {
    padding: 28px;
  }

  .package-card__garden span {
    font-size: .58rem;
    letter-spacing: .1em;
  }

  .moment-dialog__filmstrip {
    min-height: 72px;
    padding: 7px 8px;
  }

  .moment-dialog__thumbs {
    height: 56px;
    gap: 7px;
  }

  .moment-dialog .moment-dialog__thumbs button {
    flex-basis: 78px;
    width: 78px;
    height: 54px;
  }
}

@media (max-width: 420px) {
  .thesis--proof h2 {
    font-size: 13vw;
  }
}

@media (max-width: 360px) {
  .thesis--proof h2 {
    font-size: 12vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--live .flow-image {
    transition: none !important;
  }

  .hero--live .flow-media > picture:not(:first-child) .flow-image,
  .hero--live .flow-flash,
  .hero--live .flow-toggle {
    display: none !important;
  }
}

@media print {
  .hero--live .flow-media > picture:not(:first-child) .flow-image,
  .hero--live .flow-flash,
  .hero--live .flow-toggle {
    display: none !important;
  }

  .thesis-evidence {
    break-inside: avoid;
  }
}
