/* ——— Lesław Kaznowski — tokens ——— */
:root {
  --bg: #0e1114;
  --bg-2: #121619;
  --surface: #161a1f;
  --surface-2: #1c2127;
  --line: #262c33;
  --line-strong: #343b44;
  --ink: #ece8e0;
  --ink-2: #c9c5bd;
  --muted: #9aa0a6;
  --faint: #6b7178;
  --accent: #d4a84b;
  --accent-2: #e6c070;
  --accent-ink: #14100a;

  --font-display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --measure: 62ch;
  --gutter: clamp(16px, 5vw, 64px);
  --section: clamp(64px, 10vw, 128px);
  --radius: 4px;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 9vw, 8.6rem); font-weight: 800; }
h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; }
p { margin: 0; }
p + p { margin-top: 1em; }

.wrap { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; }
.muted { color: var(--muted); }

/* ——— Nav ——— */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 18px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em; text-transform: uppercase; }
.nav__brand small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.nav__links { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-2); position: relative; padding-block: 4px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .25s ease; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { right: 0; }
.nav__links a.is-cta { color: var(--accent); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ink); font: inherit; padding: 8px 12px; border-radius: var(--radius); cursor: pointer; }
@media (max-width: 760px) {
  .nav__toggle { display: inline-block; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding-block: 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
}

/* ——— Hero ——— */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.hero__hi { font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 28px; }
.hero h1 { max-width: 14ch; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { margin-top: 28px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 44ch; }
.hero__like { margin-top: 20px; color: var(--muted); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--line-strong); color: var(--ink);
  transition: border-color .2s, background .2s, color .2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--solid:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }

.wave { display: block; width: 100%; height: 88px; margin-top: 48px; opacity: 0.9; }

/* ——— Trusted ——— */
.trusted { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 22px; }
.trusted__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; }
.trusted__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.trusted__list { display: flex; flex-wrap: wrap; gap: 10px 36px; list-style: none; margin: 0; padding: 0; }
.trusted__list li { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }

/* ——— Sections ——— */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); align-items: end; }
@media (min-width: 900px) { .section__head { grid-template-columns: 1fr auto; } .section__head .prose { margin-top: 14px; } }
.section__head h2 { text-transform: uppercase; }
.section__head .prose { color: var(--muted); max-width: 46ch; font-size: 1rem; }
.section__lead { margin-top: 18px; }

/* ——— Video grid ——— */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.video { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: block; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.video__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity .25s, transform .4s ease; }
.video:hover .video__frame img { opacity: 1; transform: scale(1.02); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  box-shadow: 0 6px 30px rgba(0,0,0,.45);
  transition: transform .2s ease;
}
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.06); }
.video__play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.video__meta { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 14px 16px 16px; align-items: baseline; }
.video__client { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em; text-transform: uppercase; }
.video__title { color: var(--ink-2); font-size: 0.95rem; grid-column: 1 / -1; }
.video__role { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); text-align: right; }
.video.is-playing .video__play, .video.is-playing .video__frame img { display: none; }

/* ——— Credits list ——— */
.credits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credits li { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .credits li { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; align-items: baseline; } }
.credits__title { font-weight: 600; }
.credits__title a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.credits__title a:hover { text-decoration-color: var(--accent); }
.credits__role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.credits__kind { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.credits--compact li { padding: 12px 0; }

/* ——— Music ——— */
.music { display: grid; gap: 24px; }
@media (min-width: 960px) { .music { grid-template-columns: 1.4fr 1fr; } }
.player { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.player__head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.player__head strong { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; }
.player__head a { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.player iframe { width: 100%; border: 0; display: block; background: var(--surface-2); }
.music__note { grid-column: 1 / -1; color: var(--muted); font-size: 0.95rem; max-width: 60ch; }

/* ——— About teaser ——— */
.about { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.portrait {
  aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line); position: relative;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--placeholder::after {
  content: attr(data-label);
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
.portrait--placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.025) 14px 15px);
}
.about__body h2 { text-transform: uppercase; margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

/* ——— Gallery / IG ——— */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery a { aspect-ratio: 1; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); position: relative; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a.is-placeholder::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.025) 14px 15px); }
.gallery__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; flex-wrap: wrap; }

/* ——— Contact ——— */
.contact { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.2fr 1fr; } }
.contact h2 { text-transform: uppercase; }
.contact__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.6rem); letter-spacing: 0.02em; display: block; margin-top: 24px; word-break: break-word; }
.contact__big:hover { color: var(--accent-2); }
.contact__phone { display: block; margin-top: 8px; font-size: 1.15rem; color: var(--ink-2); }
.socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.socials li { border-bottom: 1px solid var(--line); }
.socials a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; gap: 16px; }
.socials a:hover { color: var(--accent-2); }
.socials span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* ——— Footer ——— */
.footer { border-top: 1px solid var(--line); padding-block: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--faint); font-size: 0.85rem; }
.footer a:hover { color: var(--ink); }

/* ——— Subpage hero ——— */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 6rem); text-transform: uppercase; max-width: 16ch; margin-top: 18px; }
.page-head .prose { margin-top: 24px; color: var(--ink-2); font-size: 1.1rem; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 40px; }
.photos figure { margin: 0; aspect-ratio: 3 / 4; }
.photos figure:nth-child(3n) { aspect-ratio: 4 / 3; }
.photos figure:nth-child(n+7) { aspect-ratio: 1; }

.two-col { display: grid; gap: 40px 64px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.two-col h3 { text-transform: uppercase; margin-bottom: 14px; }

/* ——— Hero image strip ——— */
.hero__img { margin: 48px 0 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hero__img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.hero__img .wave { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; height: 72px; opacity: .85; mix-blend-mode: screen; }
.hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,20,0) 55%, rgba(14,17,20,.75) 100%); pointer-events: none; }
.hero__img .wave { z-index: 1; }

/* ——— Logo strip ——— */
.trusted__list--logos { align-items: center; gap: 18px 44px; }
.trusted__list--logos li { display: flex; align-items: center; }
.trusted__list--logos img { height: 30px; width: auto; opacity: .78; transition: opacity .2s; }
.trusted__list--logos li:hover img { opacity: 1; }
@media (max-width: 600px) { .trusted__list--logos { gap: 14px 28px; } .trusted__list--logos img { height: 24px; } }
.music--single { grid-template-columns: 1fr; }
.music--single .player iframe { height: 460px; }
.trusted__list--logos img.logo--tall { height: 48px; }
.trusted__list--logos img.logo--mid { height: 36px; }
@media (max-width: 600px) { .trusted__list--logos img.logo--tall { height: 38px; } .trusted__list--logos img.logo--mid { height: 28px; } }

/* ——— SoundCloud — własny odtwarzacz ——— */
.sc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sc__now { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px 22px 20px; border-bottom: 1px solid var(--line); }
.sc__play { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .2s; }
.sc__play:hover { background: var(--accent-2); transform: scale(1.04); }
.sc__play svg { width: 22px; height: 22px; fill: currentColor; }
.sc__play .sc__ico-pause, .sc.is-playing .sc__play .sc__ico-play { display: none; }
.sc.is-playing .sc__play .sc__ico-pause { display: block; }
.sc__play .sc__ico-play { margin-left: 3px; }
.sc__meta { min-width: 0; }
.sc__label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 4px; }
.sc__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: 0.02em; text-transform: uppercase; display: block; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc__bar { height: 3px; background: var(--line-strong); margin-top: 12px; border-radius: 2px; overflow: hidden; cursor: pointer; }
.sc__bar-fill { display: block; height: 100%; width: 0%; background: var(--accent); transition: width .25s linear; }
.sc__open { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.sc__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 0; }
@media (max-width: 720px) { .sc__list { columns: 1; } .sc__now { grid-template-columns: auto 1fr; } .sc__open { grid-column: 2; } }
.sc__list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.sc__track { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 12px; align-items: baseline; padding: 13px 22px; color: var(--ink-2); transition: background .15s, color .15s; }
.sc__track:hover { background: var(--surface-2); color: var(--ink); }
.sc__track.is-current { color: var(--accent-2); }
.sc__track.is-current .sc__idx { color: var(--accent); }
.sc__src { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 720px) { .sc__src { display: none; } }
.sc__idx, .sc__dur { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--faint); font-variant-numeric: tabular-nums; }
.sc__name { font-weight: 500; font-size: 0.98rem; }
.sc__frame { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sc__frame iframe { width: 300px; height: 166px; border: 0; }
.sc.is-fallback .sc__play { display: none; }
.sc.is-fallback .sc__now { grid-template-columns: 1fr auto; }

[hidden] { display: none !important; }
.sc { position: relative; }
.sc.is-fallback .sc__bar { display: none; }
