/* =========================================================
   Anton Demianchuk — portfolio
   Colours and fonts live in :root. Change them here.
   ========================================================= */
:root {
  --bg: #0b0a09;
  --bg-rgb: 11, 10, 9;
  --text-rgb: 236, 231, 223;
  --base-size: 17px;
  --space: 1;
  --bg-2: #12110f;
  --bg-3: #1a1815;
  --line: rgba(var(--text-rgb), 0.12);
  --line-strong: rgba(var(--text-rgb), 0.28);
  --text: #ece7df;
  --muted: #a49e94;
  --faint: #6f6a62;
  --accent: #d9a65b;        /* warm amber, like candle light */
  --accent-hi: #f0c27e;
  --on-accent: #17120a;

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;   /* headings */
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; /* body text */

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--base-size)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Shared type ---------- */
.eyebrow, .section-label, .work-tags, .hero-foot, .facts dt {
  font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
}
.section-label { display: flex; align-items: center; gap: 14px; color: var(--muted); margin-bottom: 22px; }
.section-label span { color: var(--accent); font-variant-numeric: tabular-nums; }
.section-label span::after {
  content: ""; display: inline-block; width: 36px; height: 1px;
  background: var(--line-strong); vertical-align: middle; margin-left: 14px;
}
.section-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02; letter-spacing: -.04em;
}
.section-title em, .hero-title em, .band-quote em, .contact-title em { color: var(--accent); }
.section-intro { color: var(--muted); max-width: 46ch; margin-top: 20px; font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: border-color .3s, color .3s, background .3s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(var(--bg-rgb), .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark-name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 14.5px; }
.nav a { color: var(--muted); position: relative; transition: color .3s; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }
.nav .nav-cta {
  color: var(--text); border: 1px solid var(--line-strong);
  padding: 9px 18px; border-radius: 999px;
  transition: border-color .3s, background .3s, color .3s;
}
.nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.nav-open .menu-btn span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-open .menu-btn span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: #000 url("../img/hero-poster-bw.jpg") center/cover; }
/* Moving film grain over the hero video */
/* Old video tape noise over the video, drawn by main.js.
   Strength comes from --grain (the slider in /admin). */
.hero-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: var(--grain, .7); }
.hero-grain canvas { width: 100%; height: 100%; display: block; filter: blur(.4px); }
@keyframes grain {
  0% { transform: translate(0, 0); }       10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0); }    70% { transform: translate(0, 15%); }
  80% { transform: translate(3%, 35%); }   90% { transform: translate(-10%, 10%); }
  100% { transform: translate(0, 0); }
}
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), .9) 0%, rgba(var(--bg-rgb), .45) 40%, rgba(var(--bg-rgb), 0) 68%),
    linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 38%),
    linear-gradient(180deg, rgba(var(--bg-rgb), .6) 0%, rgba(var(--bg-rgb), 0) 22%);
}
.hero-content { padding-bottom: clamp(56px, 11vh, 120px); }
.hero-name {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.8rem, 7.4vw, 6.6rem); line-height: .98; letter-spacing: -.045em;
}
.hero-role { margin-top: 18px; color: #cfc9bf; font-size: clamp(1rem, 1.3vw, 1.15rem); letter-spacing: .01em; }
/* Instrument label over the video, bottom right */
.hero-now {
  position: absolute; right: var(--gutter); bottom: 96px; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 0;
  text-align: right; pointer-events: none;
}
.hero-now-k { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero-now-v {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -.03em;
  color: var(--text); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.hero-now-v.swap { opacity: 0; transform: translateY(6px); }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 28px; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(217,166,91,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217,166,91,.55); }
  70% { box-shadow: 0 0 0 10px rgba(217,166,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,166,91,0); }
}
.hero-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: .98; letter-spacing: -.045em;
  max-width: 11ch;
}
.hero-lede { color: #cfc9bf; max-width: 40ch; margin-top: 30px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-foot {
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 28px;
  color: var(--faint); font-size: 11px;
}
.hero-foot span + span::before { content: "·"; margin-right: 34px; color: var(--line-strong); }
.scroll-cue { margin-left: auto; width: 22px; height: 36px; border: 1px solid var(--line-strong); border-radius: 12px; position: relative; }
.scroll-cue i {
  position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px;
  background: var(--accent); border-radius: 2px; animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Sections ---------- */
.section { padding: calc(clamp(64px, 8vw, 110px) * var(--space)) 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Simple section headings ---------- */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: clamp(32px, 4vw, 48px);
}
.sec-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; }
.sec-title--inline { margin-bottom: 18px; }
.sec-links { display: flex; gap: 22px; font-size: 14.5px; }
.sec-links a { color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.sec-links a:hover { color: var(--text); border-color: var(--text); }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 28px); }
.work-card.is-hidden { display: none; }
.work-card.is-shown { animation: fadeUp .6s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* One card = picture + text in one box */
.work-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: border-color .35s, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.js .work-card.reveal.in { transition: opacity 1s var(--ease), transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease); }
.work-card[data-video] { cursor: pointer; }
.work-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 28px 60px -32px rgba(0,0,0,.95); }
.work-card--feature { display: grid; grid-template-columns: 1.6fr 1fr; align-items: stretch; }

/* Filter buttons */
.work-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 32px);
}
.chip {
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted);
  font-size: 14px; font-weight: 500;
  transition: color .3s, border-color .3s, background .3s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.work-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg-3);
}
.work-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), opacity .8s var(--ease), filter .6s;
  filter: saturate(.85) brightness(.88);
}
.work-card:hover .work-media img, .work-media:focus-visible img { transform: scale(1.04); filter: saturate(1) brightness(1); }
.work-media--still .alt-img { position: absolute; inset: 0; opacity: 0; }
.work-card:hover .work-media--still .alt-img { opacity: 1; }
.play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(var(--bg-rgb), .45); border: 1px solid rgba(var(--text-rgb), .5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.play svg { width: 24px; height: 24px; fill: var(--text); margin-left: 3px; transition: fill .35s; }
.work-card:hover .play { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.work-card:hover .play svg { fill: var(--on-accent); }
.badge {
  position: absolute; left: 16px; top: 16px;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(var(--bg-rgb), .65); border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.work-meta { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.work-card--feature .work-meta { justify-content: center; padding: clamp(24px, 3.5vw, 52px); }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--accent); font-size: 11px; }
.work-tags span + span { color: var(--muted); }
.work-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.1; letter-spacing: -.03em; margin-top: 10px; }
.work-card--feature .work-title { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.04em; margin-top: 14px; }
.work-note { color: var(--muted); margin-top: 10px; max-width: 42ch; font-size: .95rem; line-height: 1.6; }
.work-card--feature .work-note { font-size: 1rem; margin-top: 14px; }
.work-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  transition: color .3s;
}
.work-cta .ico { width: 12px; height: 12px; }
.work-card:hover .work-cta { color: var(--accent); }
.work-cta--soon { color: var(--faint); }
.work-card--feature .work-cta { margin-top: 28px; padding-top: 0; }
.work-grid .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.work-grid .play svg { width: 20px; height: 20px; }

/* ---------- Listen ---------- */
.listen-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.listen-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.listen-player iframe {
  border: 0; border-radius: 12px; background: var(--bg-3);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px var(--line);
}

/* ---------- Music player ---------- */
.mp { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mp-head { display: flex; align-items: center; gap: 18px; padding: 22px 24px 10px; }
.mp-play {
  width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); transition: background .3s, transform .3s var(--ease);
}
.mp-play:hover { background: var(--accent-hi); transform: scale(1.05); }
.mp-play svg { width: 22px; height: 22px; fill: currentColor; }
.mp-play .i-on { margin-left: 3px; }
.mp-play .i-off, .mp.is-playing .mp-play .i-on { display: none; }
.mp.is-playing .mp-play .i-off { display: block; }
.mp-now { flex: 1; min-width: 0; }
.mp-title, .mp-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-title { font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.02em; }
.mp-note { color: var(--muted); font-size: .92rem; margin-top: 2px; min-height: 1.4em; }
.mp-skip { display: flex; gap: 4px; }
.mp-skip button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .3s, background .3s; }
.mp-skip button:hover { color: var(--text); background: rgba(var(--text-rgb), .06); }
.mp-skip svg { width: 18px; height: 18px; fill: currentColor; }
.mp-seek { display: flex; align-items: center; gap: 14px; padding: 8px 24px 20px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-seek span { min-width: 36px; }
.mp-seek #mpDur { text-align: right; }
.mp-seek input {
  flex: 1; height: 4px; margin: 0; border-radius: 4px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--accent) var(--p, 0%), rgba(var(--text-rgb), .16) var(--p, 0%));
}
.mp-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 0; }
.mp-seek input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 0; }
.mp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-height: 440px; overflow-y: auto; }
.mp-track {
  width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 24px; text-align: left; border-bottom: 1px solid var(--line); transition: background .25s;
}
.mp-list li:last-child .mp-track { border-bottom: 0; }
.mp-track:hover { background: rgba(var(--text-rgb), .04); }
.mp-n { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.mp-t { min-width: 0; }
.mp-t b, .mp-t small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-t b { font-weight: 500; }
.mp-t small { color: var(--muted); font-size: 13px; margin-top: 1px; }
.mp-d { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.mp-track.is-current b { color: var(--accent); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 3px; height: 3px; background: var(--accent); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; }
.eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.mp:not(.is-playing) .eq i { animation-play-state: paused; }
@media (max-width: 600px) {
  .mp-head { padding: 18px 16px 8px; gap: 14px; }
  .mp-play { width: 50px; height: 50px; }
  .mp-seek { padding: 8px 16px 16px; }
  .mp-track { padding: 13px 16px; grid-template-columns: 26px 1fr auto; gap: 10px; }
}

/* ---------- Services ---------- */
.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.service { padding: 36px 32px 8px 0; position: relative; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
.service-num { font-family: var(--display); font-weight: 500; color: var(--accent); font-size: .95rem; font-variant-numeric: tabular-nums; }
.service h3 { font-family: var(--display); font-weight: 500; font-size: 1.55rem; line-height: 1.15; letter-spacing: -.03em; margin: 46px 0 16px; }
.service p { color: var(--muted); font-size: .98rem; }

/* ---------- Quote band ---------- */
.band { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.band-img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 20% center; z-index: -1; will-change: transform; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--bg-rgb), 0) 25%, rgba(var(--bg-rgb), .75) 70%),
              linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 25%, rgba(var(--bg-rgb), 0) 75%, var(--bg) 100%);
}
.band-inner { display: flex; justify-content: flex-end; }
.band-quote {
  font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1; letter-spacing: -.045em; text-align: right;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; filter: contrast(1.05); }
.about-copy > p:not(.section-label) { color: #cbc5bb; margin-top: 20px; max-width: 54ch; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 44px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 20px; }
.facts .facts-wide { grid-column: 1 / -1; }
.facts dt { color: var(--faint); font-size: 11px; }
.facts dd { margin: 6px 0 0; font-size: 1rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-title { font-family: var(--display); font-weight: 500; font-size: clamp(2.8rem, 7.4vw, 6.6rem); line-height: 1; letter-spacing: -.045em; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -.03em;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 6px;
  transition: color .3s, border-color .3s; word-break: break-all;
}
.contact-email .ico { width: .8em; height: .8em; transition: transform .35s var(--ease); }
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-email:hover .ico { transform: translateX(6px); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 999px; transition: color .3s, border-color .3s;
}
.copy-btn:hover { color: var(--text); border-color: var(--line-strong); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; padding: 0; }
.socials a {
  width: 50px; height: 50px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.socials svg { width: 19px; height: 19px; fill: var(--text); transition: fill .3s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.socials a:hover svg { fill: var(--on-accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--faint); font-size: 13.5px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; }
.to-top { transition: color .3s; }
.to-top:hover { color: var(--accent); }

/* ---------- Video popup ---------- */
.player {
  width: min(1200px, 92vw); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.player::backdrop { background: rgba(5,5,4,.92); backdrop-filter: blur(6px); }
.player-frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.player-close {
  position: absolute; right: 0; top: -58px; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong);
  transition: background .3s, border-color .3s;
}
.player-close svg { width: 20px; height: 20px; }
.player-close:hover { background: var(--text); color: var(--bg); }
.player[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-content > * { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--ease) forwards; }
.js .hero-content > :nth-child(2) { animation-delay: .12s; }
.js .hero-content > :nth-child(3) { animation-delay: .26s; }
.js .hero-content > :nth-child(4) { animation-delay: .38s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
  .service { padding-bottom: 36px; }
  .service h3 { margin-top: 28px; }
}

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 0 var(--gutter); background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a { font-family: var(--display); font-weight: 500; font-size: 2.4rem; letter-spacing: -.04em; color: var(--text); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav .nav-cta { font-family: var(--sans); font-size: 16px; margin-top: 26px; padding: 14px 24px; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .site-header .wordmark { position: relative; z-index: 2; }

  .hero-media::after {
    background:
      linear-gradient(0deg, var(--bg) 6%, rgba(var(--bg-rgb), .62) 52%, rgba(var(--bg-rgb), .1) 100%);
  }
  .hero-video { object-position: 64% center; }
  .hero-now { top: 92px; bottom: auto; }
  .hero-foot { gap: 8px 20px; }
  .hero-foot span + span::before { display: none; }
  .scroll-cue { display: none; }

  .work-card--feature { display: flex; }
  .work-filters { gap: 8px; }
  .chip { height: 38px; padding: 0 15px; }
  .play { width: 62px; height: 62px; margin: -31px 0 0 -31px; }

  .listen-grid, .about-grid { grid-template-columns: 1fr; }
  .listen-player iframe { height: 380px; }

  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .service h3 { margin: 14px 0 10px; }

  .band { min-height: 62vh; }
  .band-img { object-position: 18% center; }
  .band::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), .55) 45%, rgba(var(--bg-rgb), .2) 75%, var(--bg) 100%); }
  .band-inner { justify-content: flex-start; align-self: flex-end; padding-bottom: 40px; }
  .band-quote { text-align: left; }

  .about-photo { aspect-ratio: 4 / 4.4; }
  .player-close { top: -54px; }
}

@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Work with sound waves + music player on the side
   ========================================================= */
.sec-head .work-filters { margin: 0; padding: 0; border: 0; }
.work-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 2.4vw, 32px); align-items: start; }
.work-layout .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-side { position: sticky; top: 92px; }

/* compact boxes */
.work-layout .work-card:hover { transform: none; }
.work-layout .work-meta { padding: 12px 14px 16px; }
.work-layout .work-tags { font-size: 10.5px; gap: 6px 12px; }
.work-layout .work-title { font-size: 1.12rem; margin-top: 8px; letter-spacing: -.02em; }
.work-layout .work-note {
  font-size: .86rem; line-height: 1.5; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.work-layout .play { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
.work-layout .play svg { width: 18px; height: 18px; }
.work-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.work-card.is-started .play { display: none; }

/* the sound wave under each video */
.wave {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px 0;
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.wave span { min-width: 30px; }
.wave .wave-dur { text-align: right; }
.wave-cv { flex: 1; min-width: 0; height: 34px; cursor: pointer; touch-action: none; border-radius: 2px; }
.wave-cv:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.work-card.is-playing .wave-cur { color: var(--accent); }

/* our play / pause button at the start of the wave row */
.wave-play {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); transition: background .3s, transform .3s var(--ease);
}
.wave-play:hover { background: var(--accent-hi); transform: scale(1.06); }
.wave-play svg { width: 14px; height: 14px; fill: currentColor; }
.wave-play .wp-on { margin-left: 2px; }
.wave-play .wp-off, .work-card.is-playing .wave-play .wp-on { display: none; }
.work-card.is-playing .wave-play .wp-off { display: block; }

/* music player in the side column */
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.side-title { font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.02em; }
.work-side .mp-head { padding: 16px 16px 6px; gap: 12px; }
.work-side .mp-play { width: 46px; height: 46px; }
.work-side .mp-play svg { width: 18px; height: 18px; }
.work-side .mp-title { font-size: 1.02rem; }
.work-side .mp-note { font-size: .82rem; }
.work-side .mp-skip button { width: 34px; height: 34px; }
.work-side .mp-skip svg { width: 15px; height: 15px; }
.work-side .mp-seek { padding: 6px 16px 14px; gap: 10px; font-size: 11.5px; }
.work-side .mp-seek span { min-width: 30px; }
.work-side .mp-list { max-height: calc(100vh - 320px); min-height: 160px; }
.work-side .mp-track { grid-template-columns: 24px 1fr auto; gap: 10px; padding: 11px 16px; }
.work-side .mp-t b { font-size: .92rem; }
.work-side .mp-t small { font-size: 12px; }
.work-side .listen-player iframe { height: 380px; }

@media (max-width: 1280px) {
  .work-layout .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .work-layout { grid-template-columns: 1fr; }
  .work-side { position: static; margin-top: clamp(40px, 6vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); }
  .work-side .mp-list { max-height: 300px; min-height: 0; }
  .work-side .listen-player iframe { height: 352px; }
}
@media (max-width: 600px) {
  .work-layout .work-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Video reel: one big video at a time
   ========================================================= */
.work-main { min-width: 0; }
.reel {
  position: relative; display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }
.reel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.reel > .work-card {
  flex: 0 0 calc(100% - 72px); scroll-snap-align: start;
  transition: opacity .45s var(--ease), border-color .35s;
}
.reel > .work-card:not(.is-active) { opacity: .32; cursor: pointer; }
.reel > .work-card:not(.is-active) .work-media img { filter: grayscale(.6) brightness(.7); }
.work-layout .reel .wave { padding: 14px 18px 0; font-size: 12px; }
.work-layout .reel .wave-cv { height: 48px; }
.work-layout .reel .work-meta { padding: 12px 18px 20px; }
.work-layout .reel .work-tags { font-size: 11px; }
.work-layout .reel .work-title { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.work-layout .reel .work-note { font-size: .95rem; -webkit-line-clamp: 3; }
.work-layout .reel .play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
.work-layout .reel .play svg { width: 22px; height: 22px; }

/* arrows outside the video: left and right of it, at the middle of the picture */
.reel-wrap { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; column-gap: 14px; align-items: start; }
.reel-arrow {
  margin-top: calc(var(--reel-mid, 200px) - 22px);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--text);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.reel-arrow:hover { background: var(--text); border-color: var(--text); color: var(--bg); transform: scale(1.06); }
.reel-arrow svg { width: 18px; height: 18px; }
.reel-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.reel-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.reel-count b { color: var(--text); font-weight: 500; }
.reel-arrows { display: flex; gap: 8px; }
.reel-arrows button {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--text); transition: background .3s, border-color .3s, color .3s;
}
.reel-arrows button:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.reel-arrows svg { width: 18px; height: 18px; }
.reel-thumbs { display: flex; gap: 10px; overflow-x: auto; margin-top: 14px; padding: 2px 2px 6px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.reel-thumb {
  position: relative; flex: 0 0 128px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); opacity: .5; transition: opacity .3s, border-color .3s;
}
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reel-thumb:hover { opacity: .85; }
.reel-thumb.is-active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* full-screen button at the end of the wave row (outside the picture) */
.fs-btn {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: background .3s, color .3s, border-color .3s;
}
.fs-btn:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.fs-btn svg { width: 15px; height: 15px; }
.fs-btn .fs-off { display: none; }
.reel > .work-card:not(.is-active) .fs-btn { visibility: hidden; }

/* full screen: the video fills the screen, the wave stays underneath */
.work-card:fullscreen { background: #000; border: 0; border-radius: 0; opacity: 1; display: flex; flex-direction: column; padding: 18px 24px 22px; }
.work-card:-webkit-full-screen { background: #000; border: 0; border-radius: 0; opacity: 1; display: flex; flex-direction: column; padding: 18px 24px 22px; }
.work-card.is-fs { position: fixed; inset: 0; z-index: 300; background: #000; border: 0; border-radius: 0; opacity: 1; display: flex; flex-direction: column; padding: 18px 16px 22px; }
.work-card:fullscreen .work-media { flex: 1; aspect-ratio: auto; min-height: 0; border-radius: 8px; }
.work-card:-webkit-full-screen .work-media { flex: 1; aspect-ratio: auto; min-height: 0; border-radius: 8px; }
.work-card.is-fs .work-media { flex: 1; aspect-ratio: auto; min-height: 0; border-radius: 8px; }
.work-card:fullscreen .work-media img { object-fit: contain; background: #000; }
.work-card.is-fs .work-media img { object-fit: contain; background: #000; }
.work-card:fullscreen .wave-cv { height: 64px; }
.work-card.is-fs .wave-cv { height: 56px; }
.work-card:fullscreen .work-meta { flex: 0 0 auto; padding: 10px 4px 0; }
.work-card:-webkit-full-screen .work-meta { flex: 0 0 auto; padding: 10px 4px 0; }
.work-card.is-fs .work-meta { flex: 0 0 auto; padding: 10px 4px 0; }
.work-card:fullscreen .wave { padding: 14px 4px 0; }
.work-card.is-fs .wave { padding: 14px 4px 0; }
.work-card:fullscreen .work-note { display: none; }
.work-card.is-fs .work-note { display: none; }
.work-card:fullscreen .fs-on { display: none; }
.work-card:fullscreen .fs-off { display: block; }
.work-card.is-fs .fs-on { display: none; }
.work-card.is-fs .fs-off { display: block; }
html.has-fs-overlay { overflow: hidden; }
html.has-fs-overlay .reveal { transform: none !important; opacity: 1 !important; transition: none !important; }

@media (max-width: 600px) {
  .reel > .work-card { flex-basis: calc(100% - 28px); }
  .reel-wrap { grid-template-columns: 1fr auto auto; grid-template-areas: "reel reel reel" ". prev next"; column-gap: 8px; row-gap: 12px; }
  .reel-wrap .reel { grid-area: reel; }
  .reel-arrow { margin-top: 0; width: 40px; height: 40px; }
  .reel-arrow--prev { grid-area: prev; }
  .reel-arrow--next { grid-area: next; }
  .reel-thumb { flex-basis: 104px; }
  .work-layout .reel .play { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
}

/* Vertical list layout (videos one under another) */
.work-main.is-list .reel-wrap { display: block; }
.work-main.is-list .reel { display: flex; flex-direction: column; gap: 20px; overflow: visible; scroll-snap-type: none; }
.work-main.is-list .reel > .work-card { flex: none; cursor: auto; }
.work-main.is-list .reel-arrow, .work-main.is-list .reel-bar, .work-main.is-list .reel-thumbs { display: none; }

/* About: wide photo, text on the wall beside Anton, facts in one line */
.about-band { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1800 / 926; max-height: 560px; width: 100%; }
.about-band img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; filter: contrast(1.05) brightness(.9); }
.about-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--bg-rgb), .88) 0%, rgba(var(--bg-rgb), .55) 38%, rgba(var(--bg-rgb), 0) 62%); }
.about-text { position: absolute; z-index: 1; left: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 44px); max-width: 440px; }
.about-text .sec-title { margin-bottom: 14px; }
.about-text p { color: #d6d0c6; }
/* Inverted / Accent background: the wash turns cream or amber, so the light grey above would be unreadable */
#about.blk-bg-invert .about-text p, #about.blk-bg-accent .about-text p { color: var(--muted); }
/* Newer browsers: same light grey on dark themes (exact), a dark text-like colour on light themes
   (theme_css sets :root{color-scheme:light} for Ivory, Paper, Studio) and on Inverted / Accent backgrounds */
@supports (color: light-dark(#000, #fff)) and (color: color-mix(in srgb, #000 50%, #fff)) {
  #about .about-text p { --about-p: color-mix(in srgb, var(--text) 69%, var(--muted)); color: light-dark(var(--about-p), #d6d0c6); }
  #about.blk-bg-invert .about-text p, #about.blk-bg-accent .about-text p { color: var(--about-p); }
}
.about-facts { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.about-facts b { color: var(--text); font-weight: 500; }
.about-facts .dot { color: var(--faint); padding: 0 8px; }
@media (max-width: 700px) {
  .about-band { aspect-ratio: 4 / 5; max-height: none; }
  .about-band img { object-position: 72% 30%; }
  .about-band::after { background: linear-gradient(0deg, rgba(var(--bg-rgb), .92) 0%, rgba(var(--bg-rgb), .5) 45%, rgba(var(--bg-rgb), 0) 70%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-content > * { opacity: 1; transform: none; }
}

/* volume: speaker button (mute) + small slider, for the videos and the music player */
.vol { flex: none; display: flex; align-items: center; gap: 6px; }
.vol-btn { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .3s, background .3s; }
.vol-btn:hover { color: var(--text); background: rgba(var(--text-rgb), .06); }
.vol-btn svg { width: 17px; height: 17px; fill: currentColor; }
.vol-btn .v-off, .vol.is-muted .vol-btn .v-on { display: none; }
.vol.is-muted .vol-btn .v-off { display: block; }
.vol.is-muted .vol-btn { color: var(--accent); }
.vol-range {
  width: 64px; height: 4px; margin: 0; border-radius: 4px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--accent) var(--p, 80%), rgba(var(--text-rgb), .16) var(--p, 80%));
}
.vol.is-muted .vol-range { background: rgba(var(--text-rgb), .16); }
.vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--text); border: 0; }
.vol-range::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--text); border: 0; }
.vol-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.work-side .mp-seek .vol-range { width: 52px; }
.work-card:fullscreen .vol-range, .work-card.is-fs .vol-range { width: 90px; }
/* phones set the volume with their own buttons: keep only the mute button */
.no-vol-slider .vol-range { display: none; }
@media (max-width: 600px) { .wave .vol-range { display: none; } }
