/* Bosphorus Tango Festival · home page redesign layer (2026-11-06)
   Loaded only on index.html, after style.css. register.html and legal pages are untouched.
   Direction: big condensed uppercase headlines (Oswald) + Cormorant italic accents,
   photo-led sections with rounded mosaics, navy and gold identity kept. */

:root {
  --display: "Oswald", "Arial Narrow", sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
}

/* ---------- headline system ---------- */
.home h2 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(44px, 7.2vw, 108px); line-height: 1.04; letter-spacing: -.005em;
  text-wrap: balance;
}
.home h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 500; text-transform: none;
  color: var(--gold); letter-spacing: 0; font-size: .86em; line-height: 1;
}
.home .section--paper h2 em { color: #8a5c1f; }
.home .sub-title, .home .rules h3.sub-title {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(26px, 3vw, 38px); line-height: 1;
}
.home .section__head { max-width: 820px; }
.home .section__head p:not(.eyebrow) { max-width: 620px; text-wrap: pretty; }
.home .eyebrow { letter-spacing: .32em; }

/* ---------- grain ---------- */
.home::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- hero: full bleed photo, giant headline ---------- */
.home .hero { justify-content: flex-end; min-height: 100svh; background: var(--ink); }
.home .hero__photo {
  top: 0; height: 100%; -webkit-mask-image: none; mask-image: none;
  object-position: 62% 50%; filter: saturate(.95) contrast(1.05);
}
.home .hero__shade { background:
  linear-gradient(90deg, rgba(6, 11, 24, .92) 0%, rgba(6, 11, 24, .7) 38%, rgba(6, 11, 24, .15) 72%, rgba(6, 11, 24, 0) 100%),
  linear-gradient(0deg, var(--ink) 0%, rgba(10, 17, 34, 0) 34%),
  linear-gradient(180deg, rgba(6, 11, 24, .55) 0%, rgba(6, 11, 24, 0) 22%); }
.home .hero__inner {
  text-align: left; width: min(1280px, 100% - 40px); margin: 0 auto;
  padding: 120px 0 clamp(48px, 8vh, 88px);
}
.home .hero__lead { margin: 0; max-width: none; font-style: normal; color: var(--cream); }
.home .hero__lead1 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(52px, min(8vw, 13.5vh), 132px); line-height: 1.02; letter-spacing: -.005em;
  max-width: 13ch; text-wrap: balance; color: var(--cream);
}
.home .hero__lead2 {
  margin-top: 22px; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px); letter-spacing: 0; color: var(--gold-soft); max-width: 44ch;
}
.home .hero__meta {
  justify-content: flex-start; margin-top: 28px; font-family: var(--display); font-weight: 500;
  font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-ink);
}
.home .hero__meta span:first-child { color: var(--cream); font-weight: 600; }
.home .hero__actions { justify-content: flex-start; margin-top: 30px; }
.home .hero .btn { padding: 16px 30px; font-size: 15px; }

/* ---------- key facts bar ---------- */
.home .infobar { background: var(--ink); border-top: 0; }
.home .infobar b { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; font-size: 20px; }

/* ---------- about ---------- */
.home .about__statement { max-width: 15ch; font-size: clamp(48px, 8vw, 124px); }
.home .about__cols { max-width: 980px; font-size: 18px; line-height: 1.7; }
.home .stats { border-top-color: var(--line); }
.home .stats b { font-family: var(--display); font-weight: 600; font-size: clamp(64px, 8.5vw, 128px); line-height: .9; color: var(--gold-soft); }

/* ---------- mosaic (Belgrade style rounded photo grid) ---------- */
.mosaic { background: var(--ink); padding: 0 0 clamp(80px, 10vw, 140px); }
.mosaic__grid {
  width: min(1280px, 100% - 40px); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr 1fr; grid-template-rows: minmax(300px, 34vw) minmax(240px, 24vw); gap: 16px;
}
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ink-3); min-height: 0; }
.tile--tall { grid-column: 1; grid-row: 1 / 3; }
.tile--wide { grid-column: 2 / 4; grid-row: 1; }
.tile--low { grid-column: 2 / 4; grid-row: 2; }
.tile--low img { object-position: 50% 62%; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 11, 24, .78) 0%, rgba(6, 11, 24, .1) 55%, rgba(6, 11, 24, .25) 100%); }
.tile figcaption { position: absolute; z-index: 1; left: clamp(20px, 3vw, 40px); bottom: clamp(18px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.tile figcaption b { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 5vw, 76px); line-height: 1.04; color: var(--cream); }
.tile figcaption em { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(24px, 3.2vw, 46px); line-height: 1; color: var(--gold-soft); }
.tile:not(.tile--wide) figcaption b { font-size: clamp(30px, 3.4vw, 52px); }
.tile:not(.tile--wide) figcaption em { font-size: clamp(22px, 2.3vw, 32px); }
.tile--tall img { object-position: 50% 30%; }
.tile:not(:has(figcaption))::after { opacity: .35; }

/* ---------- boat ---------- */
.home #boat h2 { font-size: clamp(40px, 5.6vw, 84px); }

/* ---------- program ---------- */
.home .day__date b { font-family: var(--display); font-weight: 600; font-size: 72px; line-height: .9; }
.home .ev { border-radius: var(--r-md); }
.home .ev__body h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; font-size: 24px; line-height: 1.1; }

/* ---------- lineup ---------- */
.home .maestro__photo, .home .dj__photo { border-radius: var(--r-lg); }
.home .maestro__name { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(28px, 3vw, 40px); line-height: 1.02; }
.home .maestro__name em { font-family: var(--serif); font-style: italic; text-transform: none; font-weight: 500; }
.home .dj__name { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 22px; letter-spacing: .01em; }

/* ---------- prices ---------- */
.home .pass { border-radius: var(--r-lg); }
.home .pass__info h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(44px, 5.4vw, 72px); line-height: 1.04; }
.home .pass__price b, .home .ws__price, .home .tix__price {
  font-family: var(--display); font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.home .wsp__who { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 24px; line-height: 1.05; }
.home .wsp__who em { font-family: var(--serif); font-style: italic; text-transform: none; font-weight: 500; }

/* ---------- competition ---------- */
.home .comp__prizes { border-radius: var(--r-lg); }
.home .prize b { font-family: var(--display); font-weight: 600; font-size: 52px; line-height: .95; }
.home .prize__item--lm b { font-size: 40px; }
.home .prize__item:first-child b { white-space: nowrap; }
.home .prize b i { font-family: var(--serif); font-style: italic; font-size: .62em; }
.home .prize h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; font-size: 22px; }
.home .comp__fee { font-family: var(--display); font-weight: 500; font-size: 22px; }

/* ---------- travel, faq ---------- */
.home .card { border-radius: var(--r-lg); }
.home .card h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 24px; letter-spacing: .01em; }
.home .faq__item summary { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: 21px; letter-spacing: .01em; }

/* ---------- registration CTA ---------- */
.home .cta--photo { position: relative; overflow: hidden; background: var(--ink); }
.cta__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: .55; }
.home .cta--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10, 17, 34, .55) 0%, rgba(10, 17, 34, .85) 100%), linear-gradient(180deg, var(--ink) 0%, rgba(10, 17, 34, 0) 18%, rgba(10, 17, 34, 0) 82%, var(--ink) 100%); }
.home .cta--photo .cta__inner { position: relative; z-index: 2; }
.home .cta h2 { font-size: clamp(52px, 9vw, 140px); }
.home .countdown b { font-family: var(--display); font-weight: 600; font-size: clamp(64px, 9vw, 120px); }

/* ---------- interactions ---------- */
.home .btn:active { transform: translateY(1px) scale(.98); }
.home .btn:focus-visible, .home a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .mosaic__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 12px; }
  .tile--tall { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 5; }
  .tile--wide { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .tile--low { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .home .hero__shade { background:
    linear-gradient(0deg, rgba(6, 11, 24, .9) 0%, rgba(6, 11, 24, .55) 40%, rgba(6, 11, 24, .05) 72%, rgba(6, 11, 24, .35) 100%); }
}
@media (max-width: 600px) {
  .home .hero__photo { top: 0; height: 100%; object-position: 68% 50%; }
  .home .hero__inner { padding-top: 120px; }
  .home .hero__lead1 { font-size: clamp(50px, 15vw, 72px); }
  .home .hero__meta { flex-direction: row; gap: 6px 12px; }
  .home .hero__meta i { display: block; }
  .home .day__date b { font-size: 56px; }
  .tile figcaption b { font-size: 40px; }
}

/* Turkish capitals (İ dot, Ç Ş cedillas) need more room between lines */
html[lang="tr"] .home h2,
html[lang="tr"] .home .hero__lead1,
html[lang="tr"] .tile figcaption b,
html[lang="tr"] .home .pass__info h3,
html[lang="tr"] .home .maestro__name,
html[lang="tr"] .home .sub-title { line-height: 1.12; }
html[lang="tr"] .home .hero__lead1 { padding-top: .06em; }
/* long Russian words ("стамбульском") must fit a phone screen */
@media (max-width: 600px) { html[lang="ru"] .home .hero__lead1 { font-size: clamp(36px, 10.4vw, 60px); } }

/* ---------- ambassadors ---------- */
.home .amb h2 { font-size: clamp(40px, 5.2vw, 78px); }
.amb__body { margin-top: 22px; max-width: 560px; font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.amb__btn { margin-top: 34px; }

/* Workshop schedule inside program */
.ev__tag--ws { background: #2f4a3a; color: #e4f2e8; }
.ev__ws { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ev__ws li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.ev__ws time { font-variant-numeric: tabular-nums; color: #8a5c1f; font-weight: 600; white-space: nowrap; }
.ev__ws b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .ev__ws li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- program: evenings read as night, the boat nights carry the boat ---------- */
.ev--night { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.ev--night .ev__when { color: var(--gold); }
.ev--night .ev__body p { color: var(--muted-ink); }
.ev--night .ev__body p.ev__show { color: var(--gold-soft); }
.ev--night .ev__tag { background: var(--gold); color: var(--ink); }
.ev--night .ev__time { color: var(--cream); border-color: rgba(232, 214, 180, .3); }
.ev--boat { position: relative; overflow: hidden; isolation: isolate; }
.ev--boat::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -1;
  background: url("../assets/photos/boat-bridge-720.webp") 60% 55% / cover no-repeat; opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.ev--boat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 30%, rgba(10, 17, 34, .55)); }
.ev--night:hover { box-shadow: 0 14px 34px -18px rgba(10, 17, 34, .6); }

/* ---------- competition rules as an accordion ---------- */
.rules__list { margin-top: 8px; }

/* ---------- ambassadors: one slim band ---------- */
.amb-strip { background: var(--paper); color: var(--text); padding: clamp(44px, 6vw, 72px) 0; border-top: 1px solid rgba(26, 29, 41, .08); }
.amb-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px 56px; }
.amb-strip__text { max-width: 640px; }
.amb-strip .eyebrow { color: #8a5c1f; margin-bottom: 12px; }
.home .amb-strip h2 { font-size: clamp(30px, 3.4vw, 46px); }
.home .amb-strip h2 em { color: #8a5c1f; }
.amb-strip .amb__body { margin-top: 12px; font-size: 16px; }
.amb-strip .amb__btn { margin-top: 0; flex: none; }
@media (max-width: 900px) { .amb-strip__inner { flex-direction: column; align-items: flex-start; } }

/* ---------- hero entrance: once, in reading order ---------- */
@keyframes hero-in { from { opacity: .01; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .home .hero__lead1, .home .hero__lead2, .home .hero__meta, .home .hero__actions { animation: hero-in .8s cubic-bezier(.2, .7, .2, 1) both; }
  .home .hero__lead2 { animation-delay: .14s; }
  .home .hero__meta { animation-delay: .26s; }
  .home .hero__actions { animation-delay: .38s; }
}

/* motion layer: stronger reveals, staggered entrances, scroll-linked hero.
   z-index scale: nav 50, scroll progress 60. */
@media (prefers-reduced-motion: no-preference) {
  :root { --ease-out: cubic-bezier(.23, 1, .32, 1); }

  .reveal:not(.is-done) {
    transform: translateY(28px);
    transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .8s var(--ease-out) var(--d, 0ms);
  }
  .reveal.is-in:not(.is-done) { opacity: 1; transform: none; }

  /* photo tiles open like a curtain, the image settles inside.
     the clip sits on the img, not the tile: a clipped tile never intersects, so it would never be revealed */
  .tile.reveal:not(.is-done) { transform: none; transition: opacity .3s linear var(--d, 0ms); }
  .tile.reveal img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.1s var(--ease-out) var(--d, 0ms), transform 1.4s var(--ease-out) var(--d, 0ms); }
  .tile.reveal.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
  .tile.reveal.is-done img { clip-path: none; transition: transform 1.2s var(--ease-out); }

  .stats b { font-variant-numeric: tabular-nums; }

  /* hero photo drifts slower than the page, headline fades as you leave it */
  @supports (animation-timeline: scroll()) {
    .hero__photo { animation: heroZoom 24s ease-out forwards, heroDrift linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh; }
    @keyframes heroDrift { to { translate: 0 12vh; } }
    .hero__inner { animation: heroLeave linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes heroLeave { to { opacity: .15; translate: 0 -5vh; } }
    body::before { content: ""; position: fixed; inset: 0 0 auto; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; pointer-events: none; animation: scrollBar linear both; animation-timeline: scroll(root); }
    @keyframes scrollBar { to { transform: scaleX(1); } }
  }
}
@media (hover: hover) and (pointer: fine) {
  .tile.reveal.is-in:hover img { transform: scale(1.04); }
}
