/* Luka Cvjetković portfolio. Black studio look after fragment.im: light grotesk type, hairlines,
   one light-grey button colour. Scroll mechanics come from scrollcraft.css/js (untouched). */

:root {
  --sc-canvas: #000;
  --sc-surface: #0f1113;
  --sc-ink: #ebebe8;
  --sc-ink-soft: #8d9095;
  --sc-accent: #d5d8db;
  --sc-accent-ink: #000;
  --sc-font-display: "Hanken Grotesk", system-ui, sans-serif;
  --sc-font-text: "Hanken Grotesk", system-ui, sans-serif;
  --sc-font-mono: "Hanken Grotesk", system-ui, sans-serif;
  --line: rgba(235, 235, 232, .14);
  --gutter: clamp(16px, 3vw, 48px);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #000; color: var(--sc-ink); font-family: var(--sc-font-text); font-weight: 400; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sc-accent); color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }

.label { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--sc-ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: 6px;
  background: var(--sc-accent); color: #000;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(.98); }

/* ---------------- Bar ---------------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  background: linear-gradient(#000 0%, rgba(0,0,0,.75) 60%, rgba(0,0,0,0));
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { display: inline-grid; gap: 2px; }
.brand-mark i { display: block; width: 14px; height: 3px; background: currentColor; border-radius: 1px; transform: skewX(-30deg); }
.brand-mark i:nth-child(2) { margin-left: 3px; }
.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.menu { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; }
.menu i { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .25s; }
.menu[aria-expanded="true"] i:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu[aria-expanded="true"] i:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 0; z-index: 55; background: #000; padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font-size: 44px; font-weight: 300; letter-spacing: -.02em; padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .nav { display: none; } .menu { display: inline-flex; } }

/* ---------------- Hero: the cascade ---------------- */
.hero-stage { background: #000; perspective: 1600px; }
.cascade { position: absolute; inset: 0; transform-style: preserve-3d; }
.tile {
  --k: var(--sc-p, 0);
  position: absolute; left: 0; top: 0;
  width: var(--tw); aspect-ratio: 9 / 16;
  border-radius: 14px; overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.25);
  transform:
    translate3d(calc((var(--x0) + (var(--x1) - var(--x0)) * var(--k)) * 1vw),
                calc((var(--y0) + (var(--y1) - var(--y0)) * var(--k)) * 1vh),
                calc(var(--z) * (1 - var(--k)) * 1px))
    rotateX(calc(var(--rx) * (1 - var(--k)) * 1deg))
    rotateY(calc(var(--ry) * (1 - var(--k)) * 1deg))
    rotateZ(calc(var(--rz) * (1 - var(--k)) * 1deg));
  will-change: transform;
}
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(255,255,255,.18), transparent 35%); pointer-events: none; }
.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 7vh, 80px);
  max-width: var(--max); margin: 0 auto;
  opacity: calc(1 - var(--sc-p, 0) * 2.2);
  transform: translateY(calc(var(--sc-p, 0) * -60px));
}
.hero-h { font-size: clamp(44px, 5.6vw, 92px); font-weight: 300; line-height: 1.02; letter-spacing: -.03em; }
.hero-row { display: flex; align-items: center; gap: 28px 40px; flex-wrap: wrap; margin-top: 32px; }
.hero-row p { max-width: 30em; color: var(--sc-ink-soft); font-size: 17px; line-height: 1.55; }
@media (max-width: 760px) {
  .hero-h { font-size: 42px; }
  .hero-row p { font-size: 16px; }
}
.hero-end {
  position: absolute; left: var(--gutter); bottom: clamp(32px, 9vh, 96px); max-width: 30em;
  font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; font-weight: 300;
  opacity: calc((var(--sc-p, 0) - .72) * 4);
  transform: translateY(calc((1 - var(--sc-p, 0)) * 40px));
}
@media (prefers-reduced-motion: reduce) { .tile { --k: 0; } .hero-copy { opacity: 1; transform: none; } .hero-end { display: none; } }

/* ---------------- About ---------------- */
.about-stage { display: flex; align-items: center; background: #000; }
.about-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; width: 100%; }
.about-grid > .label { padding-top: 14px; }
.about-text { font-size: clamp(19px, 1.75vw, 28px); font-weight: 300; line-height: 1.38; letter-spacing: -.01em; max-width: 36em; }
.about-text p + p { margin-top: .7em; }
.about-text .w { color: rgba(235,235,232,.2); transition: color .35s; }
.about-text .w.on { color: var(--sc-ink); }
.stats { list-style: none; padding: 0; margin: clamp(40px, 8vh, 88px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stats li { display: grid; gap: 10px; }
.stats .num { font-size: clamp(56px, 6vw, 96px); font-weight: 300; letter-spacing: -.03em; line-height: 1; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums;
  --fill: 0%;
  background: linear-gradient(to top, var(--red) var(--fill), rgba(235,235,232,.22) var(--fill));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border-image: linear-gradient(to right, var(--red) var(--fill), var(--line) var(--fill)) 1; }
.stats .num.full { text-shadow: none; }
.stats li span:last-child { color: var(--sc-ink-soft); font-size: 15px; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
  .about-text { font-size: 17px; line-height: 1.42; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .stats .num { font-size: 44px; }
  .stats li span:last-child { font-size: 13px; }
}

/* ---------------- Services ---------------- */
.services { padding: clamp(80px, 14vh, 160px) 0; }
.services .label { margin-bottom: 28px; }
section[id] { scroll-margin-top: 72px; }
.svc { display: grid; grid-template-columns: 5fr 4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list button {
  display: flex; align-items: center; gap: 22px; width: 100%; text-align: left;
  padding: 14px 0; font-size: clamp(34px, 4.4vw, 68px); font-weight: 300; letter-spacing: -.025em; line-height: 1.1;
  color: rgba(235,235,232,.32); transition: color .3s;
}
.svc-list button::before { content: ""; width: 12px; height: 12px; border: 1.5px solid currentColor; transform: rotate(45deg); flex: none; transition: background-color .3s; }
.svc-list button[aria-selected="true"] { color: var(--sc-ink); }
.svc-list button[aria-selected="true"]::before { background: currentColor; }
.svc-list button:hover { color: var(--sc-ink); }
.svc-panel { position: sticky; top: 120px; padding-top: 18px; }
.svc-text { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--sc-ink); max-width: 28em; transition: opacity .25s; }
.tags { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--sc-ink-soft); }
.tags li::before { content: "◦ "; }
.svc-panel.swap .svc-text, .svc-panel.swap .tags { opacity: 0; }
.tags { transition: opacity .25s; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc-panel { position: static; } }

/* ---------------- Work stack ---------------- */
.work { padding: clamp(40px, 8vh, 100px) 0 clamp(80px, 12vh, 140px); }
.work > .wrap > .label { margin-bottom: 40px; }
.stack { position: relative; }
.card {
  --s: 1; --dim: 0;
  position: sticky; top: calc(96px + var(--i) * 16px);
  display: grid; grid-template-columns: 1.3fr 1fr;
  height: min(76vh, 660px); margin-bottom: 9vh;
  border-radius: 14px; overflow: hidden;
  background: var(--sc-surface);
  border: 1px solid rgba(255,255,255,.06);
  transform: scale(var(--s)); transform-origin: 50% 0;
}
.card::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim); pointer-events: none; }
.card:last-child { margin-bottom: 0; }
.card-media { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; background: #000; overflow: hidden; }
.card-media video, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 44px); }
.card-label { font-size: 14px; color: var(--sc-ink-soft); }
.card-title { font-size: clamp(28px, 2.9vw, 46px); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; margin-top: 18px; max-width: 14em; }
.card-lede { color: var(--sc-ink-soft); font-size: 16px; line-height: 1.55; margin-top: 18px; max-width: 30em; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card:hover .btn { background: #fff; }
@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: min(82vh, 720px); top: calc(76px + var(--i) * 10px); }
  .card-media { min-height: 0; }
  .card-body { padding: 20px; }
  .card-title { font-size: 26px; margin-top: 8px; }
  .card-lede { display: none; }
  .card .btn { margin-top: 18px; }
}

/* ---------------- Close ---------------- */
.close { padding: clamp(80px, 16vh, 180px) 0 clamp(60px, 10vh, 120px); }
.close-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 64px; align-items: end; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.close-h { font-size: clamp(44px, 6vw, 100px); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; max-width: 12em; }
.close-sub { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: 22em; }
.close-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 36px 0; border-bottom: 1px solid var(--line); }
.close-row p { color: var(--sc-ink-soft); max-width: 32em; line-height: 1.55; }
@media (max-width: 860px) { .close-top { grid-template-columns: 1fr; } }

/* ---------------- Footer ---------------- */
.foot { padding: 48px 0 56px; font-size: 14px; color: var(--sc-ink-soft); line-height: 1.6; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; align-items: start; }
.foot .brand { color: var(--sc-ink); }
.foot a { color: var(--sc-ink); }
.foot a:hover { text-decoration: underline; }
.foot-right { text-align: right; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-right { text-align: left; } }

/* ================= Project page ================= */
.p-hero { padding-top: clamp(120px, 18vh, 180px); }
.back { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--sc-ink-soft); margin-bottom: 48px; }
.back::before { content: "‹ "; }
.back:hover { color: var(--sc-ink); }
.p-title { font-size: clamp(44px, 6.2vw, 104px); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; max-width: 15em; margin-top: 18px; }
.p-lede { font-size: clamp(18px, 1.5vw, 22px); color: var(--sc-ink-soft); line-height: 1.5; max-width: 34em; margin-top: 28px; }

.p-band { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 12px; padding: clamp(48px, 9vh, 96px) var(--gutter) 0; max-width: var(--max); margin: 0 auto; overflow: hidden; }
.p-band .tile-b { aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #111; }
.p-band .tile-b.is-h { aspect-ratio: auto; grid-column: span 3; }
.p-band video, .p-band img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .p-band { grid-auto-columns: 46vw; overflow-x: auto; scrollbar-width: none; } .p-band .tile-b.is-h { grid-column: span 2; aspect-ratio: 16 / 9; } }

.p-info { padding: clamp(64px, 12vh, 140px) 0; }
.p-info-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; align-content: start; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--sc-ink-soft); }
.facts dd { margin: 8px 0 0; font-size: 17px; line-height: 1.45; }
.p-text p { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; max-width: 34em; }
.p-text p + p { margin-top: 1.1em; color: var(--sc-ink-soft); }
@media (max-width: 860px) { .p-info-grid { grid-template-columns: 1fr; } }

.p-films, .p-photos { padding-bottom: clamp(64px, 12vh, 140px); }
.p-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.p-head h2 { font-size: clamp(32px, 3.4vw, 54px); font-weight: 300; letter-spacing: -.025em; }
.p-head p { color: var(--sc-ink-soft); font-size: 14px; }

.films-h { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.films-h:empty { display: none; }
.films-h > :only-child, .films-h > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.films-v { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 16px; }
.films-v:empty { display: none; }
.film { display: block; width: 100%; text-align: left; }
.film-media { position: relative; border-radius: 10px; overflow: hidden; background: #111; aspect-ratio: 9 / 16; }
.film.is-h .film-media { aspect-ratio: 16 / 9; }
.film-media img, .film-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-media video { opacity: 0; transition: opacity .3s; }
.film.previewing .film-media video { opacity: 1; }
.film-play { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.film-play::before { content: ""; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.film-title { margin-top: 12px; font-size: 17px; }
.film:hover .film-title { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 860px) { .films-v { grid-template-columns: repeat(2, 1fr); gap: 10px; } .films-h { grid-template-columns: 1fr; } }

.photos-v { display: grid; grid-template-columns: repeat(var(--pcols, 4), 1fr); gap: 12px; }
.photos-h { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.photos-v:empty, .photos-h:empty { display: none; }
.photos-h > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.photos-h > :last-child:nth-child(odd) img { aspect-ratio: 21 / 9; }
.ph { display: block; width: 100%; border-radius: 8px; overflow: hidden; background: #111; cursor: zoom-in; }
.ph img { width: 100%; object-fit: cover; transition: transform .6s var(--sc-ease-out); }
.photos-v .ph img { aspect-ratio: 4 / 5; }
.photos-v.tall .ph img { aspect-ratio: 9 / 16; }
.photos-h .ph img { aspect-ratio: 3 / 2; }
.ph:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .photos-v { grid-template-columns: repeat(2, 1fr); gap: 8px; } .photos-h { grid-template-columns: 1fr; gap: 8px; } .photos-h > :last-child:nth-child(odd) img { aspect-ratio: 3 / 2; } }

.p-next { padding: 0 0 clamp(40px, 8vh, 80px); }
.next { display: block; padding: clamp(40px, 8vh, 80px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-title { display: block; margin-top: 16px; font-size: clamp(36px, 5vw, 84px); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; max-width: 16em; transition: transform .4s var(--sc-ease-out); }
.next:hover .next-title { transform: translateX(14px); }

/* ---------------- Dialogs ---------------- */
dialog { padding: 0; border: 0; background: transparent; color: var(--sc-ink); }
dialog::backdrop { background: rgba(0,0,0,.94); }
.player[open], .lightbox[open] { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.player-media video { max-height: 84dvh; max-width: 94vw; border-radius: 10px; background: #000; }
.player-title { font-size: 15px; color: var(--sc-ink-soft); }
.x { position: absolute; top: 18px; right: var(--gutter); z-index: 2; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 10px 16px; border-radius: 6px; background: var(--sc-accent); color: #000; }
.x:hover { background: #fff; }
.lightbox img { max-width: 92vw; max-height: 86dvh; object-fit: contain; border-radius: 6px; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); font-size: 28px; line-height: 1; background: rgba(0,0,0,.4); }
.lb-arrow:hover { background: var(--sc-accent); color: #000; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-count { position: absolute; bottom: 18px; font-size: 13px; color: var(--sc-ink-soft); }

/* ================= Language switch + red details ================= */
:root { --red: #e5302a; }
.bar-right { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button { min-width: 38px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--sc-ink-soft); transition: background-color .2s, color .2s; }
.lang button:hover { color: var(--sc-ink); }
.lang button[aria-pressed="true"] { background: var(--sc-accent); color: #000; }
@media (max-width: 760px) { .bar-right { gap: 10px; } }

/* red, used sparingly: brand mark, active markers, labels, hover lines, play icon */
.brand-mark i:nth-child(2) { background: var(--red); }
.nav a:hover { text-decoration-color: var(--red); }
.label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; background: var(--red); vertical-align: 1px; }
.p-head h2::after { content: "."; color: var(--red); }
.svc-list button[aria-selected="true"]::before { background: var(--red); border-color: var(--red); }
.card-label { color: var(--red); }
.film-play::before { border-left-color: var(--red); }
.film:hover .film-title, .next:hover .next-title { text-decoration-color: var(--red); }
.foot a:hover { color: var(--red); text-decoration: none; }
.back:hover { color: var(--red); }
.btn:hover { box-shadow: inset 0 -3px 0 var(--red); }
.facts div { border-top-color: var(--line); }
.facts div:first-child { border-top-color: var(--red); }
.close-h::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 28px; background: var(--red); }
.about-stage { align-items: center; }
@media (max-width: 760px) { .about-stage { align-items: flex-start; padding-top: 84px; } .stats { margin-top: 28px; } }

/* Section intro above a project's photos (label, headline, short text) */
.sec-intro { margin-bottom: clamp(28px, 5vh, 48px); max-width: 44em; }
.sec-title { font-size: clamp(36px, 4.6vw, 76px); font-weight: 300; letter-spacing: -.03em; line-height: 1.04; margin-top: 16px; }
.sec-lede { font-size: clamp(18px, 1.5vw, 22px); color: var(--sc-ink-soft); line-height: 1.5; margin-top: 18px; max-width: 34em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-tags { margin-top: 22px; }
.p-tags { margin-top: 24px; }
@media (max-width: 860px) { .card-tags { display: none; } }

/* Category pages with several clients (restaurants) */
.p-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.p-jump a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; transition: border-color .2s, color .2s; }
.p-jump a::after { content: "↓"; color: var(--red); }
.p-jump a:hover { border-color: var(--red); }
.p-part.is-multi + .p-part.is-multi .p-part-head { border-top: 1px solid var(--line); }
.p-part-head { padding: clamp(64px, 10vh, 120px) 0 0; scroll-margin-top: 72px; }
.p-part { scroll-margin-top: 72px; }
.part-title { font-size: clamp(44px, 6vw, 96px); font-weight: 300; letter-spacing: -.035em; line-height: 1; }
.part-title::before { content: ""; display: block; width: 40px; height: 3px; background: var(--red); margin-bottom: 24px; }
.part-lede { font-size: clamp(18px, 1.5vw, 22px); color: var(--sc-ink-soft); line-height: 1.5; max-width: 34em; margin-top: 20px; }
.p-part.is-multi .p-info { padding-top: clamp(40px, 6vh, 72px); }

/* About: a small portrait under the label, black-and-white until the text lights up */
.about-side { display: flex; flex-direction: column; gap: 22px; padding-top: 14px; }
.about-grid > .about-side .label { padding-top: 0; }
.about-photo { margin: 0; width: min(100%, 220px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: grayscale(max(0, calc(1 - var(--sc-p, 0) * 1.8))) brightness(calc(.75 + min(.25, var(--sc-p, 0) * .5)));
  transform: scale(calc(1.06 - var(--sc-p, 0) * .06)); }
.about-photo::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(min(1, var(--sc-p, 0) * 1.8) * 100%); background: var(--red); }
@media (prefers-reduced-motion: reduce) { .about-photo img { filter: none; transform: none; } .about-photo::after { width: 100%; } }
@media (max-width: 760px) {
  .about-side { flex-direction: row; align-items: center; gap: 14px; padding-top: 0; }
  .about-photo { width: 56px; aspect-ratio: 1; border-radius: 50%; order: -1; }
  .about-photo::after { display: none; }
}
/* tighter crop on the face/upper body */
.about-photo img { transform-origin: 47% 36%; transform: scale(calc(1.5 - var(--sc-p, 0) * .08)); }
@media (max-width: 760px) { .about-photo img { transform: scale(2.6); transform-origin: 47% 33%; } }
@media (prefers-reduced-motion: reduce) { .about-photo img { transform: scale(1.45); } }
/* show the whole portrait, no crop */
.about-photo { aspect-ratio: 673 / 1000; }
.about-photo img { object-fit: contain; transform: none !important; }
@media (max-width: 760px) { .about-photo { width: 84px; aspect-ratio: 673 / 1000; border-radius: 8px; } }
/* desktop: lift the portrait so its top lines up with the first line of text; the label sits just above it */
@media (min-width: 761px) {
  .about-side { padding-top: 0; gap: 16px; margin-top: calc(-1 * (16px + 1.2em)); font-size: 12px; }
  .about-side .label { line-height: 1.2; }
  .about-photo { margin-top: .32em; }
}

/* Contact: direct email under the closing line */
.close-mail { display: inline-block; margin-top: 18px; font-size: clamp(18px, 1.6vw, 24px); border-bottom: 1px solid var(--red); padding-bottom: 4px; word-break: break-all; }
.close-mail:hover { color: var(--red); }

/* Footer: small Instagram QR, quiet until hovered */
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.foot-right p { margin: 0; }
.qr { display: inline-flex; align-items: center; gap: 12px; color: var(--sc-ink-soft); font-size: 12px; letter-spacing: .08em; text-decoration: none; opacity: .55; transition: opacity .25s; }
.qr img { width: 72px; height: 72px; padding: 6px; background: #fff; border-radius: 8px; order: 2; }
.qr span { order: 1; max-width: 9em; text-align: right; line-height: 1.35; }
.qr:hover { opacity: 1; color: var(--sc-ink); }
@media (max-width: 760px) { .qr { display: none; } .foot-right { align-items: flex-start; } }

/* Klarvision mentions */
.about-text a.w-link { text-decoration: none; border-bottom: 1px solid var(--red); }
.about-text a.w-link:hover .w { color: var(--red); }
.close-team { margin-top: 18px; font-size: 15px; color: var(--sc-ink-soft); line-height: 1.5; }
.close-team a { color: var(--sc-ink); border-bottom: 1px solid var(--red); }
.close-team a:hover { color: var(--red); }

/* About with the Klarvision paragraph: a touch smaller on desktop; normal scrolling on phones */
@media (min-width: 761px) {
  .about-text { font-size: clamp(18px, 1.55vw, 25px); }
  .stats { margin-top: clamp(28px, 5vh, 56px); }
}
@media (max-width: 760px) {
  .about .sc-stage { position: relative; height: auto; overflow: visible; }
  .about-stage { padding: 96px 0 72px; }
  .about { height: auto !important; }
}

/* Collaboration note (Klarvision): its own quiet band under About */
.collab { padding: clamp(40px, 7vh, 72px) 0; }
.collab-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; align-items: baseline; border-top: 1px solid var(--line); padding-top: clamp(28px, 4vh, 40px); }
.collab-text { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--sc-ink-soft); max-width: 40em; margin: 0; }
.collab-text a { color: var(--sc-ink); border-bottom: 1px solid var(--red); }
.collab-text a:hover { color: var(--red); }
@media (max-width: 760px) { .collab-grid { grid-template-columns: 1fr; gap: 12px; } }
.hero-label { margin-bottom: 20px; color: var(--sc-ink); opacity: .8; }

/* Hero: the name as a large outlined word behind the clips, drifting slightly on scroll */
.hero-name {
  position: absolute; left: var(--gutter); right: var(--gutter); top: clamp(80px, 11vh, 120px);
  z-index: 0; pointer-events: none; user-select: none;
  font-size: clamp(72px, 14.5vw, 250px); font-weight: 600; line-height: .86; letter-spacing: -.045em;
  color: transparent; -webkit-text-stroke: 1px rgba(235, 235, 232, .13);
  transform: translateX(calc(var(--sc-p, 0) * -6vw));
  opacity: calc(1 - var(--sc-p, 0) * .5);
}
.hero-name span { display: block; }
.hero-name span:last-child { padding-left: .55em; }
.hero-name span:first-child::after { content: "."; color: var(--red); -webkit-text-stroke: 0; opacity: .7; }
.cascade { z-index: 1; }
.hero-copy, .hero-end { z-index: 2; }
@media (max-width: 760px) {
  .hero-name { font-size: 19vw; top: 92px; -webkit-text-stroke-color: rgba(235, 235, 232, .16); }
  .hero-name span:last-child { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-name { transform: none; opacity: 1; } }
@media (max-width: 760px) { .hero-name { top: 118px; } }

/* Collaboration: two small portraits, black-and-white until the block scrolls in, red line fills underneath */
.collab-grid { grid-template-columns: 1fr 2fr 1fr; }
.collab-people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: start; }
.collab-photo { margin: 0; }
.collab-photo { position: relative; }
.collab-photo img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px;
  filter: grayscale(max(0, calc(1 - var(--sc-p, 0) * 1.4))) brightness(calc(.75 + min(.25, var(--sc-p, 0) * .4))); }
.collab-photo::before { content: ""; position: absolute; left: 0; top: calc(100% - 3px); height: 3px; border-radius: 0 0 8px 8px;
  width: calc(min(1, var(--sc-p, 0) * 1.3) * 100%); background: var(--red); }
.collab-photo:nth-child(2)::before { width: calc(max(0, min(1, var(--sc-p, 0) * 1.3 - .2)) * 100%); }
.collab-photo figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .06em; color: var(--sc-ink-soft); }
@media (max-width: 1100px) { .collab-grid { grid-template-columns: 1fr 3fr; } .collab-people { grid-column: 2; max-width: 340px; } }
@media (max-width: 760px) { .collab-grid { grid-template-columns: 1fr; } .collab-people { grid-column: auto; max-width: none; margin-top: 8px; } }
.collab-photo img { height: auto; }
.collab-people { max-width: 280px; justify-self: end; width: 100%; }
@media (max-width: 1100px) { .collab-people { justify-self: start; max-width: 300px; } }
@media (max-width: 760px) { .collab-people { max-width: 250px; } }
/* show both portraits whole (no crop); red line sits right under each picture */
.collab-photo img { aspect-ratio: auto; object-fit: contain; }
.collab-photo::before { display: none; }
.cp-img { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.cp-img::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(min(1, var(--sc-p, 0) * 1.3) * 100%); background: var(--red); }
.collab-photo:nth-child(2) .cp-img::after { width: calc(max(0, min(1, var(--sc-p, 0) * 1.3 - .2)) * 100%); }
.collab-people { max-width: 340px; }
@media (max-width: 760px) { .collab-people { max-width: 300px; } }

/* ===== Site menu (opened from the logo) ===== */
.brand-btn { cursor: pointer; padding: 6px 10px 6px 0; border-radius: 6px; }
.brand-btn .brand-mark i { transition: transform .3s var(--sc-ease-out), width .3s var(--sc-ease-out), background-color .3s; }
.brand-btn:hover .brand-mark i:nth-child(1) { transform: skewX(-30deg) translateX(3px); }
.brand-btn:hover .brand-mark i:nth-child(3) { transform: skewX(-30deg) translateX(-2px); }
.brand-btn[aria-expanded="true"] .brand-mark i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.brand-btn[aria-expanded="true"] .brand-mark i:nth-child(2) { width: 0; }
.brand-btn[aria-expanded="true"] .brand-mark i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.site-menu { position: fixed; z-index: 58; top: 70px; left: var(--gutter); width: min(760px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 90px); overflow: auto; background: rgba(15, 17, 19, .97); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
  opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--sc-ease-out), transform .25s var(--sc-ease-out); }
.site-menu.on { opacity: 1; transform: none; }
.site-menu[hidden] { display: none; }
.sm-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; }
.sm-col { padding: 26px 28px; }
.sm-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.site-menu ul { list-style: none; margin: 14px 0 0; padding: 0; }
.sm-projects li + li { border-top: 1px solid var(--line); }
.sm-projects a { display: grid; gap: 4px; padding: 12px 0; }
.sm-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sm-title { font-size: 19px; font-weight: 300; letter-spacing: -.01em; line-height: 1.25; transition: transform .25s var(--sc-ease-out); }
.sm-projects a:hover .sm-title, .sm-projects a:focus-visible .sm-title { transform: translateX(6px); }
.sm-pages a { display: block; padding: 7px 0; font-size: 18px; font-weight: 300; }
.sm-pages a:hover { color: var(--red); }
.sm-contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sm-contact .label { margin-bottom: 4px; }
.sm-contact a { color: var(--sc-ink-soft); word-break: break-all; }
.sm-contact a:hover { color: var(--red); }
@media (max-width: 760px) {
  .site-menu { top: 64px; left: 0; width: 100vw; max-height: calc(100dvh - 64px); border-radius: 0; border-left: 0; border-right: 0; }
  .sm-inner { grid-template-columns: 1fr; }
  .sm-side { border-left: 0; border-top: 1px solid var(--line); }
  .sm-col { padding: 20px var(--gutter); }
  .sm-title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .site-menu { transition: none; transform: none; } }

/* Clients: one quiet row of white logos */
.clients { padding: clamp(48px, 8vh, 88px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #000; position: relative; z-index: 2; }
.clients-row { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; align-items: center; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; }
.logos li { display: flex; align-items: center; justify-content: center; }
.logos img { display: block; width: auto; opacity: .55; transition: opacity .3s; }
.logos li:hover img { opacity: 1; }
.lg-tradgarn { height: 34px; }
.lg-vitafrun { height: 56px; }
.lg-hovas { height: 58px; filter: grayscale(1) invert(1) contrast(1.4); mix-blend-mode: screen; }
.lg-budder { height: 40px; }
.lg-rik { height: 54px; filter: brightness(0) invert(1); }
@media (max-width: 860px) {
  .clients-row { grid-template-columns: 1fr; gap: 22px; }
  .logos { justify-content: flex-start; gap: 26px 34px; }
  .lg-tradgarn { height: 26px; } .lg-vitafrun { height: 44px; } .lg-hovas { height: 46px; } .lg-budder { height: 32px; } .lg-rik { height: 44px; }
}
.logos img { opacity: .72; }
.lg-vitafrun { height: 64px; } .lg-rik { height: 58px; } .lg-hovas { height: 62px; filter: grayscale(1) invert(1) contrast(1.8) brightness(1.3); }
@media (max-width: 860px) { .lg-vitafrun { height: 50px; } .lg-rik { height: 46px; } .lg-hovas { height: 48px; } }
/* RIK: keep the crest's inner detail (the RIK band) instead of a flat white silhouette */
.lg-rik { filter: grayscale(1) brightness(1.35) contrast(1.15); }
/* RIK: crest plus the name written out */
.lg-rik-item { gap: 12px; opacity: .72; transition: opacity .3s; }
.lg-rik-item:hover { opacity: 1; }
.lg-rik-item img { opacity: 1; }
.lg-word { font-size: 22px; font-weight: 700; letter-spacing: .14em; color: #fff; line-height: 1; }
@media (max-width: 860px) { .lg-word { font-size: 18px; } }
/* RIK crest in its own colours and larger, so "RIK" on the band is readable */
.lg-rik { height: 76px; filter: none; opacity: .9; }
@media (max-width: 860px) { .lg-rik { height: 60px; } }
.lg-ebad { height: 20px; mix-blend-mode: screen; }
@media (max-width: 860px) { .lg-ebad { height: 16px; } }

/* Logos in two rows: 4 on top, the rest centred underneath */
.logos { justify-content: center; gap: 36px 0; }
.logos li { flex: 0 0 25%; min-height: 80px; }
.lg-hs { height: 82px; opacity: .9; }
@media (max-width: 860px) {
  .logos { gap: 28px 0; }
  .logos li { flex-basis: 33.333%; min-height: 64px; }
  .lg-hs { height: 64px; }
}
@media (max-width: 420px) { .logos li { flex-basis: 50%; } }
.lg-optiplaza { height: 17px; }
@media (max-width: 860px) { .lg-optiplaza { height: 14px; } }
/* Hovås: gold logo on white turned into a clean white logo (white background drops out via screen blend) */
.lg-hovas { filter: grayscale(1) invert(1) brightness(2.6) contrast(1.1); mix-blend-mode: screen; }
/* 9 logos: five on top, four underneath */
.logos li { flex-basis: 20%; }
.lg-tara { height: 52px; opacity: .9; }
@media (max-width: 860px) { .logos li { flex-basis: 33.333%; } .lg-tara { height: 42px; } }
@media (max-width: 420px) { .logos li { flex-basis: 50%; } }
.lg-jacyz { height: 62px; }
@media (max-width: 860px) { .lg-jacyz { height: 50px; } }
.lg-jacyz { height: 84px; margin: -10px 0; }
@media (max-width: 860px) { .lg-jacyz { height: 66px; } }

/* Names under the logos: artists and sport profiles, quiet text lines */
.names-lines { grid-column: 2; display: grid; gap: 12px; margin-top: 12px; padding-top: 26px; border-top: 1px solid var(--line); }
.names-lines p { margin: 0; display: grid; grid-template-columns: 11em 1fr; gap: 16px; align-items: baseline; }
.nl-label { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.nl-list { font-size: clamp(15px, 1.2vw, 18px); font-weight: 300; color: var(--sc-ink); opacity: .8; line-height: 1.5; }
@media (max-width: 860px) {
  .names-lines { grid-column: auto; }
  .names-lines p { grid-template-columns: 1fr; gap: 4px; }
}
/* 12 logos: two rows of six (restaurants & companies on top, sport underneath) */
.logos li { flex-basis: 16.666%; }
.lg-frolunda { height: 66px; opacity: .9; }
.lg-xps { height: 24px; filter: brightness(0) invert(1); }
.lg-ebad { height: 15px; } .lg-optiplaza { height: 15px; } .lg-tradgarn { height: 30px; }
@media (max-width: 1100px) { .logos li { flex-basis: 25%; } }
@media (max-width: 860px) { .logos li { flex-basis: 33.333%; } .lg-frolunda { height: 54px; } .lg-xps { height: 20px; } }
@media (max-width: 420px) { .logos li { flex-basis: 50%; } }

/* Reel that lives on Instagram: dark tile with the two logos */
.ext-media { display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 80% at 50% 30%, #1d2a22 0%, #0d1110 70%); border: 1px solid var(--line); }
.ext-logos { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px; }
.ext-logos img { position: static; width: auto; height: auto; max-width: 70%; max-height: 90px; object-fit: contain; }
.ext-logos img[src*="xps"] { filter: brightness(0) invert(1); max-height: 28px; }
.ext-logos span { color: var(--red); font-size: 22px; font-weight: 300; }
.film.is-ext:hover .film-media { border-color: var(--red); }
.film.is-ext .film-play::before { content: "↗"; border: 0; color: var(--red); font-size: 13px; }
.ext-media .ext-logos { padding-bottom: 64px; }
.film.is-ext .film-play { white-space: normal; max-width: calc(100% - 24px); }
@media (max-width: 700px) { .ext-logos img { max-height: 64px; } .ext-media .ext-logos { padding-bottom: 96px; } .ext-logos img[src*="xps"] { max-height: 20px; } .ext-logos { gap: 12px; } }

/* Stats: keep the red lines level whatever the label length */
.stats { align-items: start; }
.stats li { align-content: start; }
@media (max-width: 700px) { .stats { gap: 12px; } .stats .num { font-size: 36px; } }

/* Stats on phones: smaller numbers, one-line labels, all three level */
.stats .l-short { display: none; }
@media (max-width: 700px) {
  .stats { gap: 14px; }
  .stats .num { font-size: 32px; padding-bottom: 10px; }
  .stats .l-long { display: none; }
  .stats .l-short { display: inline; }
  .stats li .stat-l { font-size: 12px; line-height: 1.3; white-space: nowrap; }
}
.stats li .stat-l span:last-child, .stats li .stat-l span { font-size: inherit; color: inherit; }

/* Sport: every fact line in red */
body[data-project="sport"] .facts div { border-top-color: var(--red); }

/* Every thin divider line is red (pills, buttons and frames keep the neutral line) */
:root { --rule: var(--red); }
.mobile-nav a, .svc-list li, .close-top, .close-row, .p-head { border-bottom-color: var(--rule); }
.facts div, .facts div:first-child, .p-part.is-multi + .p-part.is-multi .p-part-head,
.collab-grid, .sm-projects li + li, .names-lines { border-top-color: var(--rule); }
.next, .clients { border-top-color: var(--rule); border-bottom-color: var(--rule); }
.sm-side { border-left-color: var(--rule); }
@media (max-width: 760px) { .sm-side { border-top-color: var(--rule); } }
.stats .num { border-image: none; border-bottom-color: var(--rule); }

/* About (longer text): keep everything below the header on short desktop screens */
@media (min-width: 761px) {
  .about-stage { box-sizing: border-box; padding-top: 88px; padding-bottom: 24px; }
  .about-text { font-size: min(clamp(18px, 1.55vw, 25px), 2.6vh); }
  .stats .num { font-size: min(clamp(56px, 6vw, 96px), 9vh); }
}


/* Hero: once the reels lie flat, the four steps appear one after another under them */
.hero-steps {
  position: absolute; left: 0; right: 0; top: calc(var(--row-bottom, 70vh) + clamp(22px, 3.5vh, 36px)); z-index: 2;
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: flex; justify-content: center; align-items: center; gap: 16px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  color: var(--sc-ink); pointer-events: none;
}
.hero-steps li {
  --o: clamp(0, calc((var(--sc-p, 0) - .78 - var(--i) * .025) * 40), 1);
  opacity: var(--o); transform: translateY(calc((1 - var(--o)) * 10px));
}
.hero-steps .hs-sep { width: 32px; height: 1px; background: var(--red); opacity: 1; transform: scaleX(var(--o)); transform-origin: left center; }
@media (max-width: 760px) { .hero-steps { gap: 9px; font-size: 10.5px; letter-spacing: .14em; } .hero-steps .hs-sep { width: 14px; } }
@media (prefers-reduced-motion: reduce) { .hero-steps { display: none; } }

/* Names worth noticing in a project intro */
.card-lede .hl, .p-lede .hl { color: var(--sc-ink); font-weight: 600; }

/* The closing hero text is only text: never let it catch taps meant for the button under it */
.hero-end { pointer-events: none; }
