/* ============================================================
   LEA MILANO — v2
   Fotografija nosi sve. Boja je u slikama, ne u interfejsu.
   Paleta: #00aff0 · #018cf1 · #27272b · #ffffff · #8a96a3
   Type: Archivo variable (wdth 62–125, wght 100–900), jedna familija.
   ============================================================ */

:root {
  /* ground: crnji od #27272b, nagnut ka plavoj. nikad #000 */
  --ink-950: oklch(0.128 0.010 250);
  --ink-900: oklch(0.172 0.012 250);
  --ink-800: oklch(0.232 0.014 250);

  --paper: oklch(0.975 0.003 250);        /* #ffffff, skinut sa maksimuma */
  --paper-dim: oklch(0.668 0.024 250);    /* #8a96a3 */
  --paper-faint: oklch(0.470 0.020 250);

  --blue: oklch(0.711 0.149 234);         /* #00aff0 */
  --blue-deep: oklch(0.632 0.180 250);    /* #018cf1 */
  --on-blue: oklch(0.145 0.020 250);

  --hair: color-mix(in oklab, var(--paper) 12%, transparent);

  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --e-quint: cubic-bezier(0.83, 0, 0.17, 1);

  --edge: clamp(1rem, 2.6vw, 2.4rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.locked, body.locked { overflow: hidden; }

body {
  background: var(--ink-950);
  color: var(--paper);
  font-family: Archivo, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
::selection { background: var(--blue); color: var(--on-blue); }

/* ---------- masthead type ---------- */
.open__name,
.enter__name,
.end__main-label {
  font-weight: 800;
  font-variation-settings: "wdth" 122;
  text-transform: uppercase;
  line-height: 0.8;
  letter-spacing: -0.035em;
}

/* ---------- wipe reveal ---------- */
.wipe { display: block; overflow: hidden; padding-bottom: 0.08em; }
.wipe > span {
  display: block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.05s var(--e-out);
}
.ready .wipe > span { transform: translate3d(0, 0, 0); }
.ready .open__name .wipe:nth-child(2) > span { transition-delay: 0.09s; }

/* ---------- masthead: per-letter entry ----------
   JS splits the name into <i> once loaded. Until then the whole line
   still rises as one, so the reveal never depends on the script.
   ---------------------------------------------------------------- */
.open__name.split .wipe > span { transform: none; transition: none; }
.open__name i {
  display: inline-block;
  font-style: normal;
  transform: translate3d(0, 108%, 0);
  transition: transform 0.95s var(--e-out);
  transition-delay: calc(var(--i) * 34ms + var(--lag, 0ms));
  will-change: transform;
}
.ready .open__name i { transform: translate3d(0, 0, 0); }
.open__name .wipe:nth-child(2) i { --lag: 130ms; }

/* the width axis opens as the letters land. Archivo carries wdth 62–125,
   so the name physically widens instead of being scaled, which would
   thin the strokes. */
@keyframes widen {
  from { font-variation-settings: "wdth" 84; }
  to   { font-variation-settings: "wdth" 122; }
}
.ready .open__name.split { animation: widen 1.5s var(--e-out) 0.1s backwards; }

/* the two lines lift at different rates as the hero scrolls away */
.open__name .wipe { will-change: transform; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.15s var(--e-quart), background-color 0.3s ease,
              color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn--blue { background: var(--blue); color: var(--on-blue); }
.btn--quiet { border: 1px solid var(--hair); color: var(--paper-dim); }

@media (hover: hover) and (pointer: fine) {
  .btn--blue:hover { background: var(--paper); }
  .btn--quiet:hover { color: var(--paper); border-color: var(--paper); }
}

/* ============================================================
   18+
   ============================================================ */
.enter {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--edge);
  background: var(--ink-950);
  text-align: center;
  transition: opacity 0.55s var(--e-quart), visibility 0.55s;
}
/* the same photo the hero uses, out of focus. entering pulls it sharp,
   which is the whole site in one gesture: blurred means locked. */
.enter__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.enter__media img {
  object-position: 50% 22%;
  filter: blur(16px) brightness(0.6) saturate(1.05);
  transform: scale(1.12);
  transition: filter 0.7s var(--e-out), transform 0.9s var(--e-out);
}
.enter__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 62% at 50% 40%,
    color-mix(in oklab, var(--ink-950) 30%, transparent),
    color-mix(in oklab, var(--ink-950) 74%, transparent) 68%,
    var(--ink-950) 100%);
}
.enter.gone .enter__media img {
  filter: blur(5px) brightness(0.78) saturate(1.05);
  transform: scale(1.03);
}

.enter__inner { position: relative; z-index: 1; max-width: 34rem; }
.enter__name {
  font-size: clamp(2rem, 8vw, 4.4rem);
  margin-bottom: 1.4rem;
}
.enter__copy { color: var(--paper-dim); margin-bottom: 2rem; }
.enter__row { display: flex; gap: 0.6rem; justify-content: center; }

.enter.gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============================================================
   FIXED CHROME
   ============================================================ */
/* The opening screen carries the name at full size already, so the header
   would only be repeating it. It stays out until the hero is on its way out. */
.chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--edge);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -14px, 0);
  transition: opacity 0.4s var(--e-quart), transform 0.55s var(--e-out),
              visibility 0s linear 0.55s;
}
.chrome.on {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s, 0s, 0s;
}
.chrome.on > * { pointer-events: auto; }
/* it points down the page now, not out of it */
.chrome__cta-go {
  display: inline-block;
  transition: transform 0.35s var(--e-out);
}
@media (hover: hover) and (pointer: fine) {
  .chrome__cta:hover .chrome__cta-go { transform: translate3d(0, 3px, 0); }
}

.chrome__name {
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

/* frame counter */
.count {
  position: fixed;
  right: var(--edge);
  bottom: var(--edge);
  z-index: 60;
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  color: var(--paper-faint);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.count.on { opacity: 1; }
.count b { font-weight: 600; color: var(--paper); }
.count i { display: block; width: 22px; height: 1px; background: var(--hair); }
.count s { text-decoration: none; }
@media (min-width: 900px) { .count { display: flex; } }

/* ============================================================
   OPENING
   ============================================================ */
.open {
  position: relative;
  height: 100svh;
  display: grid;
  align-content: end;
  padding: 0 var(--edge) clamp(3rem, 9vh, 6rem);
  overflow: hidden;
}
.open__media {
  position: absolute;
  inset: -6% 0;
  z-index: -1;
  will-change: transform;
}
.open__media img {
  object-position: 50% 18%;
  transform: scale(1.1);
  clip-path: inset(0 0 100% 0);
  filter: contrast(1.04) saturate(1.02) brightness(0.9);
  transition: transform 1.9s var(--e-out), clip-path 1.3s var(--e-quint);
}
.ready .open__media img { transform: scale(1); clip-path: inset(0 0 0 0); }
.open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    var(--ink-950) 2%,
    color-mix(in oklab, var(--ink-950) 55%, transparent) 34%,
    transparent 68%);
}

.open__name {
  font-size: clamp(3rem, 13.5vw, 11.5rem);
  max-width: 14ch;
}

.open__hint {
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 3vh, 2rem);
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: var(--hair);
}
.open__hint i {
  display: block;
  width: 100%; height: 100%;
  background: var(--blue);
  transform: translate3d(0, -100%, 0);
  animation: drop 2.6s var(--e-quint) infinite;
}
@keyframes drop {
  0%   { transform: translate3d(0, -100%, 0); }
  55%  { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, 100%, 0); }
}

/* ============================================================
   STRIP
   Desktop: vertikalni skrol pomera traku po X. Bez otimanja skrola,
   sve je nativno, samo je pomeranje preslikano.
   Mobile: obična vertikalna kolona.
   ============================================================ */
.strip { position: relative; }
.strip__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.strip__track {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.6rem);
  padding-inline: var(--edge);
  will-change: transform;
}

.shot {
  position: relative;
  flex: 0 0 auto;
  height: 72vh;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-800);
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.7s var(--e-quart), transform 0.85s var(--e-out);
}
.shot.in { opacity: 1; transform: none; }
/* rhythm comes from height, not from re-cropping her */
.shot--tall { height: 88vh; }
.shot--small { height: 58vh; }

.shot img {
  filter: contrast(1.03) saturate(1.02);
  transform: scale(1.02);
  transition: transform 1.2s var(--e-out), filter 0.5s ease;
}
@media (hover: hover) and (pointer: fine) {
  .strip__track:hover .shot:not(:hover) { filter: brightness(0.62) saturate(0.7); }
  .shot { transition: opacity 0.7s var(--e-quart), transform 0.85s var(--e-out), filter 0.5s ease; }
  .shot:not(.shot--locked):hover img { transform: scale(1.06); }
}

/* ---------- locked shot: a sharp window follows the pointer ---------- */
.shot--locked { cursor: crosshair; }
.shot--locked .shot__base {
  /* scale must out-run the blur radius or the frame edges bleed away */
  filter: blur(24px) brightness(0.58) saturate(0.8);
  transform: scale(1.34);
}
.shot--locked .shot__peek {
  position: absolute;
  inset: 0;
  filter: contrast(1.03) saturate(1.02);
  transform: scale(1);
  /* r starts at 0 and opens on pointer entry; the window itself is the reveal */
  clip-path: circle(var(--r, 0px) at var(--mx, 50%) var(--my, 50%));
  transition: clip-path 0.45s var(--e-out);
  will-change: clip-path;
}
/* while the pointer is inside, the window tracks it with almost no lag */
.shot--locked[data-peek] .shot__peek { transition: clip-path 0.1s linear; }

.shot__lock {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--on-blue);
  font-size: 0.76rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.15s var(--e-quart);
}
.shot__lock:active { transform: translateX(-50%) scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .shot__lock:hover { background: var(--paper); }
}

@media (max-width: 899px) {
  .strip__sticky {
    position: static;
    height: auto;
    display: block;
    overflow: visible;
  }
  .strip__track {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0 var(--edge);
    transform: none !important;
  }
  .shot, .shot--tall, .shot--small {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

/* ============================================================
   PRESS
   ============================================================ */
.press {
  border-top: 1px solid var(--hair);
  padding: clamp(4rem, 11vh, 8rem) var(--edge) clamp(2rem, 6vh, 4rem);
}
.press__title {
  font-weight: 800;
  font-variation-settings: "wdth" 122;
  text-transform: uppercase;
  line-height: 0.8;
  letter-spacing: -0.035em;
  font-size: clamp(2.4rem, 10vw, 7rem);
  margin-bottom: clamp(1.8rem, 4vw, 3.2rem);
}

.press__item {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.6rem);
}
@media (min-width: 900px) {
  .press__item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

/* click-to-play facade: a picture until it is actually wanted */
.press__player {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-800);
  cursor: pointer;
}
.press__player img {
  filter: brightness(0.74) contrast(1.04) saturate(0.98);
  transform: scale(1.01);
  transition: transform 1.1s var(--e-out), filter 0.45s ease;
}
.press__player iframe { width: 100%; height: 100%; border: 0; display: block; }

.press__play {
  position: absolute;
  left: 50%; top: 50%;
  display: grid;
  place-items: center;
  width: clamp(56px, 7vw, 78px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--blue);
  color: var(--on-blue);
  transform: translate3d(-50%, -50%, 0) scale(1);
  transition: transform 0.25s var(--e-out), background-color 0.3s ease;
}
.press__play svg { transform: translateX(1px); }
.press__player:active .press__play { transform: translate3d(-50%, -50%, 0) scale(0.95); }

@media (hover: hover) and (pointer: fine) {
  .press__player:hover img { transform: scale(1.05); filter: brightness(0.86) contrast(1.02) saturate(1); }
  .press__player:hover .press__play { transform: translate3d(-50%, -50%, 0) scale(1.08); background: var(--paper); }
}

.press__quote {
  font-weight: 700;
  font-variation-settings: "wdth" 108;
  font-size: clamp(1.5rem, 3.6vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin-bottom: 1.2rem;
}
.press__outlet {
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: var(--blue);
  margin-bottom: 1.4rem;
}
.press__outlet span { color: var(--paper-faint); margin-inline: 0.15em; }
.press__yt {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--paper-dim);
  transition: color 0.3s ease;
}
.press__yt span { transition: transform 0.4s var(--e-out); }
@media (hover: hover) and (pointer: fine) {
  .press__yt:hover { color: var(--paper); }
  .press__yt:hover span { transform: translateX(5px); }
}

/* ============================================================
   LINKS
   ============================================================ */
.end {
  padding: clamp(4rem, 11vh, 8rem) var(--edge) clamp(3rem, 8vh, 5rem);
}

/* the one element on the page that is entirely colour */
.end__main {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.2vw, 1.6rem);
  padding: clamp(1.3rem, 3vw, 2.3rem) clamp(1.1rem, 3vw, 2.3rem);
  background: var(--blue-deep);
  color: var(--paper);
  transition: background-color 0.4s ease, color 0.4s ease;
}
.end__main-mark {
  flex: 0 0 auto;
  display: block;
  width: clamp(2.1rem, 6.5vw, 4.6rem);
}
.end__main-mark svg { display: block; width: 100%; height: auto; }
.end__main-label { font-size: clamp(1.9rem, 8vw, 6.2rem); }
.end__main-go {
  margin-left: auto;
  font-size: clamp(1.3rem, 3vw, 2.6rem);
  transition: transform 0.45s var(--e-out);
}
@media (hover: hover) and (pointer: fine) {
  .end__main:hover { background: var(--blue); color: var(--on-blue); }
  .end__main:hover .end__main-go { transform: translateX(10px); }
}

/* three marks divided by hairlines. no boxes, no headings, no descriptions */
.end__social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1px;
}
.end__social li + li { border-left: 1px solid var(--hair); }
.end__social a {
  display: grid;
  justify-items: center;
  gap: clamp(0.7rem, 1.6vw, 1.1rem);
  padding: clamp(1.8rem, 4vw, 3rem) 0.6rem;
  color: var(--paper-dim);
  transition: background-color 0.35s ease, color 0.3s ease;
}
.end__mark {
  display: block;
  width: clamp(1.9rem, 3.4vw, 2.6rem);
  transition: transform 0.35s var(--e-out);
}
.end__mark svg { display: block; width: 100%; height: auto; }
.end__name {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
@media (hover: hover) and (pointer: fine) {
  .end__social a:hover { background: var(--ink-900); color: var(--blue); }
  .end__social a:hover .end__mark { transform: translate3d(0, -4px, 0); }
}
.end__social a:active .end__mark { transform: scale(0.94); }

/* ============================================================
   FOOT
   ============================================================ */
.foot {
  display: grid;
  gap: 0.5rem;
  padding: 2rem var(--edge) calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  font-size: 0.72rem;
  color: var(--paper-faint);
}
@media (min-width: 700px) {
  .foot { grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
  .foot span:nth-child(2) { text-align: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  .wipe > span { transform: none !important; }
  .open__name i { transform: none !important; }
  .open__name .wipe { transform: none !important; }
  .ready .open__name.split { animation: none; }
  .shot { opacity: 1 !important; transform: none !important; }
  .open__media img { transform: none !important; clip-path: none !important; }
  .open__hint { display: none; }
}
