/* Meltem Photography — grounded, static hero.
   One coherent scene, a clear promise and a direct enquiry. */

:root {
  --v10-paper: #f4f0e8;
  --v10-sheet: #fbfaf6;
  --v10-ink: #171714;
  --v10-line: rgba(23, 23, 20, .2);
  --v10-ease: cubic-bezier(.2, .72, .18, 1);
}

/* ------------------------------------------------------------------
   Hero — one stable source image. No simulated cuts or scroll zooms.
   ------------------------------------------------------------------ */

.hero.hero--flow {
  --flow-copy-opacity: 1;
  --flow-scale: 1;
  --flow-origin-x: 66%;
  --flow-origin-y: 50%;
  position: relative;
  min-height: 100svh;
  height: auto;
  padding: 0;
  background: var(--v10-paper);
  isolation: isolate;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

.flow-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 700px;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 78px;
  overflow: hidden;
  isolation: isolate;
  background: #c9c1b4;
  border-bottom: 1px solid var(--v10-line);
}

.flow-media {
  position: relative;
  grid-row: 1;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: #b9afa1;
}

.flow-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(.91) contrast(1.035) brightness(.985);
  transform: scale(var(--flow-scale));
  transform-origin: var(--flow-origin-x) var(--flow-origin-y);
  will-change: transform;
}

.flow-vignette,
.flow-grain,
.flow-cut {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flow-vignette {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(16, 14, 12, .12), transparent 28%, transparent 82%, rgba(16, 14, 12, .06)),
    linear-gradient(0deg, rgba(16, 14, 12, .14), transparent 23%);
}

.flow-grain {
  z-index: 3;
  opacity: .085;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E");
  background-size: 190px 190px;
}

.flow-cut {
  z-index: 4;
  right: auto;
  width: 42%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(247, 243, 235, .34) 42%, rgba(247, 243, 235, .72) 52%, transparent);
  transform: translateX(-115%);
}

.flow-stage.is-cutting .flow-cut {
  animation: v10-light-cut 260ms var(--v10-ease) both;
}

@keyframes v10-light-cut {
  0% { opacity: 0; transform: translateX(-115%); }
  28% { opacity: .68; }
  100% { opacity: 0; transform: translateX(345%); }
}

.flow-copy {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: clamp(34px, 4.4vw, 76px);
  width: min(570px, 37.5vw);
  padding: clamp(28px, 3.2vw, 54px);
  color: var(--v10-ink);
  background: rgba(248, 245, 238, .93);
  border: 1px solid rgba(23, 23, 20, .19);
  box-shadow: 0 30px 90px rgba(25, 20, 15, .14);
  opacity: var(--flow-copy-opacity);
  transform: translateY(-50%) translateX(calc((1 - var(--flow-copy-opacity)) * -18px));
  transition: none;
  will-change: opacity, transform;
}

.flow-copy h1 {
  max-width: 8.7ch;
  margin: .24em 0 .28em;
  font-size: clamp(3.5rem, 5.35vw, 6.75rem);
  line-height: .88;
  text-wrap: balance;
}

.flow-copy > p:not(.eyebrow) {
  max-width: 39ch;
  margin-bottom: 1.45em;
  color: rgba(23, 23, 20, .84);
  font-size: clamp(.93rem, .85rem + .24vw, 1.1rem);
  line-height: 1.48;
  text-wrap: pretty;
}

.flow-stage.is-in-motion .flow-copy {
  pointer-events: none;
}

.flow-caption {
  position: relative;
  z-index: 8;
  grid-row: 2;
  min-height: 0;
  padding: 14px clamp(18px, 2.5vw, 42px);
  display: grid;
  grid-template-columns: minmax(250px, .9fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 54px);
  background: rgba(251, 250, 246, .985);
  border-top: 1px solid var(--v10-line);
}

.flow-caption p {
  margin: 0;
}

.flow-caption p:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 20px;
}

.flow-caption span,
.flow-hint {
  font-size: clamp(.64rem, .6rem + .12vw, .73rem);
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.flow-caption strong {
  font-size: 1.02rem;
  font-weight: 500;
}

.flow-caption > p:nth-child(2) {
  color: rgba(23, 23, 20, .67);
}

.flow-hint {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.flow-hint i {
  display: inline-block;
  font-style: normal;
  transition: transform 220ms var(--v10-ease);
}

.flow-stage.is-in-motion .flow-hint i {
  transform: translateY(4px);
}

.flow-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(23, 23, 20, .1);
}

.flow-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--v10-ink);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.hero.hero--flow + .thesis {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: clamp(96px, 11vw, 176px);
  background: var(--v10-paper);
  border-top: 0;
  scroll-snap-align: none !important;
}

@media (max-width: 1100px) {
  .flow-copy {
    width: min(520px, 43vw);
  }

  .flow-copy h1 {
    font-size: clamp(3.25rem, 6vw, 5.8rem);
  }
}

@media (max-width: 820px) {
  .flow-stage {
    min-height: 720px;
    grid-template-rows: auto minmax(0, 1fr) 64px;
  }

  .flow-copy {
    position: relative;
    top: auto;
    left: auto;
    grid-row: 1;
    width: auto;
    padding: 86px 18px 22px;
    background: var(--v10-sheet);
    border: 0;
    border-bottom: 1px solid var(--v10-line);
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto !important;
  }

  .flow-copy h1 {
    max-width: 9ch;
    margin: .2em 0 .24em;
    font-size: clamp(3.1rem, 14vw, 5.2rem);
    line-height: .87;
  }

  .flow-copy > p:not(.eyebrow) {
    max-width: 36ch;
    margin-bottom: 1.1em;
    font-size: .92rem;
  }

  .flow-media {
    grid-row: 2;
  }

  .flow-image {
    object-position: 69% 50%;
  }

  .flow-caption {
    grid-row: 3;
    min-height: 64px;
    padding: 9px 14px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .flow-caption p:first-child {
    gap: 12px;
  }

  .flow-caption > p:nth-child(2) {
    display: none;
  }

  .flow-hint {
    font-size: .61rem;
  }

  .hero.hero--flow + .thesis {
    padding-top: 88px;
  }
}

@media (max-width: 560px) {
  .flow-stage {
    min-height: 680px;
  }

  .flow-copy {
    padding-top: 78px;
  }

  .flow-copy h1 {
    font-size: clamp(2.9rem, 14vw, 4.15rem);
  }

  .flow-copy > p:not(.eyebrow) {
    display: block;
    overflow: visible;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
  }

  .flow-caption strong {
    font-size: .9rem;
  }

  .flow-hint {
    max-width: 11ch;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .flow-copy {
    padding: 72px 14px 16px;
  }

  .flow-copy h1 {
    margin-block: .16em .2em;
    font-size: 2.72rem;
  }

  .flow-copy > p:not(.eyebrow) {
    max-width: none;
    margin-bottom: .85em;
    font-size: .84rem;
    line-height: 1.4;
  }

  .hero-primary {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero--flow {
    --flow-copy-opacity: 1 !important;
    --flow-scale: 1 !important;
    --flow-origin-x: 66% !important;
    --flow-origin-y: 50% !important;
  }

  .flow-image,
  .flow-copy,
  .flow-hint i {
    transition: none !important;
    transform: none;
  }

  .flow-cut,
  .flow-progress {
    display: none !important;
  }
}

@media print {
  .flow-stage {
    height: auto;
    min-height: 760px;
  }

  .flow-image {
    transform: none;
  }

  .flow-cut,
  .flow-grain,
  .flow-progress,
  .flow-hint {
    display: none !important;
  }
}
