/* Tycon.music — half human, half machine.
   Human: Instrument Serif (warm, editorial). Machine: Space Grotesk, small caps labels.
   Default accent is signal teal (the circuit in the portrait). Body.nxt1 swaps to neon drift. */

@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/InstrumentSerif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/InstrumentSerif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/assets/fonts/SpaceGrotesk-400-700.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0b0a;
  --bg-2: #121211;
  --ink: #ece7da;
  --muted: #948f82;
  --line: rgba(236, 231, 218, .12);
  --accent: #52d6dc;
  --accent-ink: #061314;
  --glow: rgba(82, 214, 220, .16);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}
body.nxt1 {
  --bg: #08060f;
  --bg-2: #0f0b1a;
  --ink: #f2ecff;
  --muted: #9c93b4;
  --line: rgba(242, 236, 255, .14);
  --accent: #ff4fd8;
  --accent-ink: #1a0414;
  --glow: rgba(255, 79, 216, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: .22em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* film grain over everything, very quiet */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .07; mix-blend-mode: overlay;
  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>");
}

/* labels: the "machine" voice */
.label {
  font: 500 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0;
}
.label b { color: var(--accent); font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
em { font-style: italic; }
p { margin: 0 0 1.1em; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: block; line-height: 0; }
.brand img { width: 74px; height: auto; }
.nav { display: flex; gap: clamp(14px, 3.4vw, 34px); }
.nav a {
  font: 500 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid transparent; color: var(--ink);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 10px 34px var(--glow); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { color: var(--accent); border-color: var(--accent); background: transparent; box-shadow: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* hero (home) */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0 0 0 auto; width: min(78vw, 880px); z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; filter: brightness(1.45) contrast(1.08); }
.hero-art::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0, rgba(11,11,10,.55) 38%, transparent 70%), linear-gradient(0deg, var(--bg) 0, transparent 30%);
}
.hero-copy { padding-block: clamp(72px, 14vh, 150px) clamp(64px, 12vh, 130px); min-height: min(88vh, 760px); display: flex; flex-direction: column; justify-content: center; }
.hero-logo { width: clamp(260px, 52vw, 560px); margin: 18px 0 8px -2%; filter: drop-shadow(0 8px 40px rgba(0,0,0,.6)); }
.hero .tag { font: italic 400 clamp(1.7rem, 4vw, 2.7rem)/1.1 var(--serif); margin: 8px 0 0; }
.hero .tag span { color: var(--accent); }
.hero .lede { max-width: 30em; color: color-mix(in srgb, var(--ink) 78%, transparent); margin: 22px 0 0; font-size: 1.05rem; }
.scan { /* faint signal line under hero text */
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .55;
}

/* sections */
.section { padding-block: clamp(64px, 11vw, 120px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 5vw, 52px); flex-wrap: wrap; }
.section-head h2 { margin-top: 12px; }

/* release cards */
.releases { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
.release {
  position: relative; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
}
.release .cover { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: #000; }
.release:not(.nxt) .cover img { filter: brightness(1.4) contrast(1.06); }
.release .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.release:hover .cover img { transform: scale(1.035); }
.release .body { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.release.nxt { --accent: #ff4fd8; --accent-ink: #1a0414; --glow: rgba(255,79,216,.2); }
.release h3 a { text-decoration: none; }
.release h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable, player sits above */
.release .player { position: relative; z-index: 2; margin-top: auto; }
.release .meta { color: var(--muted); font-size: .95rem; margin: 0; }

/* player */
.player { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.player audio { grid-column: 1 / -1; width: 100%; height: 36px; }
.player.js audio { display: none; }
.player .pp {
  grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); transition: transform .2s, box-shadow .2s;
}
.player .pp:hover { transform: scale(1.06); box-shadow: 0 8px 28px var(--glow); }
.player .pp svg { width: 20px; height: 20px; fill: currentColor; }
.player .pp .i-pause { display: none; }
.player.playing .pp .i-play { display: none; }
.player.playing .pp .i-pause { display: block; }
.player .ptop { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; min-width: 0; }
.player .ptitle { font: 500 14px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .ptime { font: 500 12px/1 var(--sans); letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.player .seek { grid-column: 2; width: 100%; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 0%; }
.player .seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line) var(--p)); }
.player .seek::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
.player .seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.player .seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--ink); border: 0; }
.player .seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 0; }
.player:not(.js) .seek, .player:not(.js) .pp, .player:not(.js) .ptop { display: none; }
.player:not(.js) { grid-template-columns: 1fr; }

/* two-column splits */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
.split .art { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.prose { max-width: 36em; }
.prose p { color: color-mix(in srgb, var(--ink) 86%, transparent); }
.prose strong { color: var(--ink); font-weight: 600; }
.pull { font: italic 400 clamp(1.8rem, 4vw, 2.8rem)/1.12 var(--serif); margin: 0 0 24px; }
.pull span { color: var(--accent); }

/* spotify */
.embed { border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.embed iframe { display: block; width: 100%; border: 0; }

/* page header (inner pages) */
.page-head { padding-block: clamp(56px, 10vw, 110px) clamp(28px, 5vw, 48px); }
.page-head h1 { margin-top: 14px; }
.page-head .lede { max-width: 34em; color: color-mix(in srgb, var(--ink) 78%, transparent); font-size: 1.1rem; margin: 22px 0 0; }
.banner { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #000; }

/* lyrics */
.lyrics { columns: 2 320px; column-gap: clamp(32px, 6vw, 80px); }
.lyrics section { break-inside: avoid; margin: 0 0 30px; }
.lyrics h3 { font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lyrics p { font: 400 1.5rem/1.28 var(--serif); margin: 0; color: color-mix(in srgb, var(--ink) 92%, transparent); }

/* timeline (about) */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline .yr { font: 500 12px/1.9 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.timeline .tx { font: 400 1.35rem/1.3 var(--serif); }
.timeline .tx small { display: block; font: 400 .95rem/1.5 var(--sans); color: var(--muted); margin-top: 4px; }

/* contact */
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 640px; }
.contact-list div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-list a.big { font: 400 clamp(1.3rem, 3.4vw, 1.9rem)/1.2 var(--serif); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.social a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.social a:hover { border-color: var(--accent); }

/* legal prose */
.legal h2 { font-size: 1.9rem; margin: 40px 0 10px; }
.legal p, .legal li { color: color-mix(in srgb, var(--ink) 84%, transparent); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; background: var(--bg); }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
.site-footer img.fl { width: 96px; }
.site-footer p { color: var(--muted); font-size: .92rem; margin: 14px 0 0; max-width: 24em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer li a { font: 500 12px/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer .fine a { color: inherit; }

/* NXT1 page atmosphere */
body.nxt1 main { position: relative; isolation: isolate; }
body.nxt1 main::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 70% at 85% 10%, rgba(255,79,216,.22), transparent 70%), radial-gradient(45% 60% at 5% 55%, rgba(80,120,255,.16), transparent 70%);
}
body.nxt1 h1 em { color: var(--accent); }
body.nxt1 .scanlines { position: relative; }
body.nxt1 .scanlines::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font: 500 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* 404 */
.nf { text-align: center; padding-block: clamp(80px, 18vw, 200px); }
.nf h1 { margin: 12px 0 18px; }

@media (max-width: 820px) {
  .releases, .split { grid-template-columns: 1fr; }
  .hero-art { width: 100%; opacity: .55; }
  .hero-art::before { background: linear-gradient(0deg, var(--bg) 0, rgba(11,11,10,.4) 60%, rgba(11,11,10,.7) 100%); }
  .hero-copy { min-height: 0; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
  .timeline li, .contact-list div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .brand img { width: 62px; }
  .nav { gap: 14px; }
  .nav a { font-size: 11px; letter-spacing: .12em; }
  .lyrics p { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
