/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/bodoni-moda-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/bodoni-moda-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/bodoni-moda-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/bodoni-moda-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/bodoni-moda-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/bodoni-moda-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/inter-tight-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/inter-tight-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/inter-tight-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/inter-tight-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #0e0d0c;
  --bg-2: #161412;
  --ink: #ece6dc;
  --muted: #8f877c;
  --faint: #3a3631;
  --line: #26231f;
  --accent: #c8453a;   /* studio REC light — change here, everything follows */
  --rec: #e5483a;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* soft film grain */
body::before {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }

a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
em { font-style: italic; }

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: linear-gradient(var(--bg) 30%, rgba(14,13,12,0));
}
.mark { display: block; line-height: 0; }
.mark img { width: 34px; height: 34px; transition: transform .4s; }
.mark:hover img { transform: rotate(-8deg); }
.bar nav { display: flex; gap: 22px; margin: 0 auto; }
.bar nav a { font: 400 13px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-decoration: none; transition: color .2s; }
.bar nav a:hover, .bar nav a.on { color: var(--ink); }
.tc { display: flex; align-items: center; gap: 8px; font: 400 13px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 8px var(--rec); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Hero ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hero { position: relative; min-height: min(100svh, 1000px); display: flex; flex-direction: column; justify-content: center; padding: 110px 0 48px; }
.kicker { color: var(--muted); margin: 0 0 18px; }
.hero .kicker { margin-bottom: 30px; }
h1 {
  font: 500 clamp(60px, 12vw, 176px)/1.02 var(--serif);
  letter-spacing: -.035em; margin: 0;
}
h1 .l2 { display: inline-block; padding-left: .55em; }
/* umlaut dots drawn as studio lights that follow the mix level (--lvl, set by main.js) */
h1 .u { position: relative; display: inline-block; }
h1 .u::before, h1 .u::after {
  content: ""; position: absolute; width: .07em; height: .07em; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 calc(.05em + var(--lvl, 0) * .2em) color-mix(in srgb, var(--accent) calc(45% + var(--lvl, 0) * 50%), transparent);
}
h1 .cap::before { left: 27%; top: .02em; } h1 .cap::after { left: 62%; top: .02em; }
h1 .low::before { left: 22%; top: .28em; } h1 .low::after { left: 60%; top: .28em; }
.roles { max-width: 34ch; font-size: clamp(18px, 2vw, 22px); color: var(--ink); margin: 28px 0 0; line-height: 1.45; }

.wave { position: relative; height: 120px; margin: 44px 0 28px; cursor: crosshair; }
.wave canvas { width: 100%; height: 100%; display: block; }
.wave-tc { position: absolute; top: -22px; transform: translateX(-50%); color: var(--accent); font-size: 11px; white-space: nowrap; pointer-events: none; }

.stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 56px; border-top: 1px solid var(--line); padding-top: 20px; }
.stats li { display: flex; align-items: baseline; gap: 10px; }
.stats b { font: 400 40px/1 var(--serif); }
.stats b i { font: 300 .8em var(--sans); font-style: normal; margin-left: .04em; vertical-align: .08em; }
.stats span { color: var(--muted); font-size: 14px; }

/* 3D logo */
.logo3d-wrap { position: absolute; right: -2%; top: 90px; width: min(46vw, 600px); aspect-ratio: 1; pointer-events: none; z-index: 0; }
.logo3d-wrap::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); filter: blur(20px); }
#logo3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.logo3d-wrap.ready #logo3d { opacity: 1; }
.logo3d-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 1s ease; }
.logo3d-wrap.ready .logo3d-fallback { opacity: 0; }
.hero > *:not(.logo3d-wrap) { position: relative; z-index: 1; }

/* ---------- Statement ---------- */
.statement { padding: 120px 0 140px; }
.statement p { font: 400 clamp(34px, 5vw, 68px)/1.08 var(--serif); margin: 0; max-width: 20ch; letter-spacing: -.01em; }
.statement em { color: var(--accent); }

/* ---------- Blocks ---------- */
.block { padding: 40px 0 120px; }
.block-head { display: flex; align-items: baseline; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 48px; }
.block-head h2 { font: 400 clamp(40px, 6vw, 84px)/1 var(--serif); margin: 0; letter-spacing: -.01em; }
.idx { color: var(--muted); }

/* posters */
.posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 24px; margin-bottom: 96px; }
.poster { margin: 0; }
.poster img {
  width: 100%; height: auto; aspect-ratio: 7/10; object-fit: cover; display: block;
  filter: grayscale(.85) contrast(1.05) brightness(.8);
  transition: filter .6s ease, transform .6s ease;
}
.poster:hover img { filter: none; transform: translateY(-4px); }
.poster figcaption { padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.poster b { font: 400 22px/1.15 var(--serif); }
.poster span { color: var(--muted); font-size: 14px; }

/* credits — end-roll style */
.credits { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.credit-col h3 { color: var(--muted); margin: 0 0 14px; font-weight: 400; }
.credit-col ul { list-style: none; margin: 0 0 8px; padding: 0; }
.credit-col li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); transition: padding .25s; }
.credit-col li:hover { padding-left: 8px; }
.credit-col li b { font-weight: 500; }
.credit-col li span { color: var(--muted); font-size: 14px; line-height: 1.45; padding-top: 2px; }
.also { margin: 0 0 40px; font-size: 15px; color: var(--ink); line-height: 1.7; }
.also .mono { display: block; color: var(--muted); margin: 18px 0 6px; }
@media (hover: none) { .poster img { filter: none; } }
.more a { font: 400 13px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ---------- Listen ---------- */
.media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.embed { position: relative; background: var(--bg-2); border: 1px solid var(--line); aspect-ratio: 16/9; overflow: hidden; }
.embed-spotify { aspect-ratio: auto; height: 100%; min-height: 352px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px;
  padding: 28px;
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(236,230,220,.035) 11px 12px);
}
.embed-tag { color: var(--muted); }
.embed-title { font: 400 clamp(32px, 4vw, 52px)/1 var(--serif); }
.play {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  font: 500 14px var(--sans); color: var(--bg); background: var(--ink);
  border: 0; border-radius: 999px; padding: 11px 20px 11px 16px; cursor: pointer; transition: background .2s, transform .2s;
}
.play:hover { background: var(--accent); transform: scale(1.03); }
.play-icon { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.embed-note { color: var(--muted); font-size: 12px; max-width: 42ch; }
.media-card { display: flex; flex-direction: column; }
.media-card .embed { flex: 1 0 auto; }
.media-cap { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.media-cap b { color: var(--ink); font-weight: 500; display: block; }

/* ---------- Services ---------- */
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.services li { padding: 28px 28px 36px 0; border-bottom: 1px solid var(--line); }
.services li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.services .mono { color: var(--muted); }
.services b { display: block; font: 400 30px/1.1 var(--serif); margin: 14px 0 10px; }
.services p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; }
.about-text p { margin: 0 0 18px; color: #cfc8bd; max-width: 60ch; }
.about-text .lead { font: 400 clamp(26px, 2.8vw, 36px)/1.2 var(--serif); color: var(--ink); margin-bottom: 28px; }
.edu { margin-top: 36px !important; font-size: 15px; color: var(--muted) !important; }
.edu .mono { display: block; color: var(--muted); margin-bottom: 8px; }
.about-side h3 { color: var(--muted); font-weight: 400; margin: 0 0 14px; }
.path { list-style: none; padding: 0; margin: 0 0 40px; }
.path li { display: grid; grid-template-columns: 76px 1fr; gap: 0 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.path .mono { color: var(--muted); grid-row: span 2; padding-top: 4px; font-variant-numeric: tabular-nums; }
.path b { font-weight: 500; }
.path i { font-style: normal; color: var(--muted); font-size: 14px; }
.tools { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Contact ---------- */
.contact { padding: 120px 0 140px; border-top: 1px solid var(--line); }
.contact h2 { font: 400 clamp(56px, 10vw, 150px)/.9 var(--serif); margin: 0 0 28px; letter-spacing: -.02em; }
.contact h2 em { color: var(--accent); }
.contact-sub { color: var(--muted); max-width: 46ch; margin: 0 0 40px; }
.mail {
  display: inline-block; font: 400 clamp(26px, 4.2vw, 56px)/1.1 var(--serif);
  text-decoration: none; border-bottom: 1px solid var(--faint); padding-bottom: 6px; transition: border-color .3s, color .3s;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--accent); border-color: var(--accent); }
.links { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 28px; flex-wrap: wrap; }
.links a { font: 400 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--ink); }

.foot { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }

/* contact form */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form .wide { grid-column: 1 / -1; }
.form .mono { color: var(--muted); }
.form input, .form textarea {
  font: 400 17px/1.5 var(--sans); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--faint); padding: 8px 0; border-radius: 0; resize: vertical;
  transition: border-color .2s;
}
.form textarea::placeholder { color: var(--faint); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.send {
  justify-self: start; font: 500 15px var(--sans); color: var(--bg); background: var(--ink);
  border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer; transition: background .2s;
}
.send:hover { background: var(--accent); }
.form-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--ink); }
.form-status:empty { display: none; }
.form-status a { color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.direct { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.direct .mono { color: var(--muted); }
.direct .mail { font-size: clamp(24px, 2.6vw, 36px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 100px; }
.legal h1 { font-size: clamp(48px, 8vw, 88px); margin-bottom: 40px; }
.legal h2 { font: 400 28px/1.2 var(--serif); margin: 40px 0 10px; }
.legal p, .legal li { color: #cfc8bd; }
.legal .todo { background: rgba(229,72,58,.15); color: #ffb3aa; padding: 0 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .posters { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr 1fr; }
  .services li, .services li:not(:nth-child(3n+1)) { padding: 24px 20px 30px 0; border-left: 0; }
  .services li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .media { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .bar nav { display: none; }
  .tc { margin-left: auto; }
  .logo3d-wrap { position: relative; top: 0; right: auto; width: 72vw; margin: 0 auto -6vw; }
  .hero { padding-top: 70px; }
  h1 .l2 { padding-left: .3em; }
  .credits { grid-template-columns: 1fr; }
  .credit-col li { grid-template-columns: 1fr; gap: 2px; }
  .services { grid-template-columns: 1fr; }
  .services li, .services li:nth-child(2n) { padding: 22px 0 26px; border-left: 0; }
  .stats { gap: 14px 32px; }
  .stats b { font-size: 32px; }
  .statement { padding: 80px 0 90px; }
  .wave { height: 90px; }
  .embed-cover { padding: 20px; }
  .form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, .rec { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
