/* Monrøse — site styles
   Palette blends the black-sands beach shoot (tide grey-blue, dusk pink, rust)
   with the electric grunge blue from earlier eras (--volt, editable as "accent"). */

:root {
  --ink: #07090c;
  --ink-2: #0d1116;
  --ink-3: #141a21;
  --fog: #dfe4e6;
  --mist: #9aa9b1;
  --tide: #5d7682;
  --dusk: #e2b9bd;
  --rust: #9a5b45;
  --volt: #3d4dff;
  --line: rgba(223, 228, 230, .14);
  --line-2: rgba(223, 228, 230, .28);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fog);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
::selection { background: var(--volt); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- loader: blur to focus ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  overflow: hidden;
  transition: opacity 1s var(--ease), visibility 0s linear 1s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: var(--focus, 50% 40%);
  filter: blur(var(--blur, 40px)) saturate(1.1);
  transform: scale(var(--scale, 1.12)) scaleX(var(--smear, 1.3));
  will-change: filter, transform;
}
.loader-veil {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 50%, transparent 30%, rgba(7, 9, 12, .55) 100%);
}
.loader-logo {
  position: absolute; left: 50%; top: 46%;
  width: min(72vw, 740px); aspect-ratio: 659 / 158;
  transform: translate(-50%, -50%);
  background: var(--fog);
  -webkit-mask: url(../assets/logo/logo.svg) center / contain no-repeat;
          mask: url(../assets/logo/logo.svg) center / contain no-repeat;
  mix-blend-mode: difference;
  opacity: var(--logo-o, 0);
  filter: blur(var(--logo-blur, 14px));
}
.loader-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: baseline;
  mix-blend-mode: difference;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.loader-count { font-variant-numeric: tabular-nums; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(16px + env(safe-area-inset-top)) var(--gutter) 16px;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-logo {
  width: 132px; aspect-ratio: 659 / 158;
  background: #fff;
  -webkit-mask: url(../assets/logo/logo.svg) center / contain no-repeat;
          mask: url(../assets/logo/logo.svg) center / contain no-repeat;
}
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav-links a, .nav-toggle {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(7, 9, 12, .82);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; align-items: center;
  padding: 96px var(--gutter) 48px;
}
.menu[hidden] { display: none; }
@media (min-width: 861px) { .menu { display: none !important; } }
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-links a {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(44px, 12vw, 72px); line-height: 1.05;
}
.menu-links a span { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .18em; color: var(--mist); margin-right: 14px; vertical-align: middle; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-logo { width: 110px; }
}

/* ---------- shared section bits ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.section-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px; margin-bottom: clamp(32px, 5vw, 64px);
}
.section-title {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(52px, 9vw, 132px); line-height: .9; letter-spacing: -.01em;
  text-transform: lowercase;
}
.section-index { white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fog); border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--fog); color: var(--ink); border-color: var(--fog); }
.btn--solid::before { background: var(--volt); }
.btn--solid:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

[data-reveal] {
  opacity: 0; filter: blur(14px); transform: translateY(24px);
  transition: opacity 1.1s var(--ease), filter 1.3s var(--ease), transform 1.1s var(--ease);
}
[data-reveal].is-in { opacity: 1; filter: blur(0); transform: none; }

/* electric-blue regrade used by hovers and the lens ("blend both") */
.volt { position: relative; isolation: isolate; overflow: hidden; }
.volt img { filter: grayscale(1) contrast(1.2) brightness(.92); }
.volt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--volt); mix-blend-mode: color;
}
.volt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(155, 107, 255, .35));
  mix-blend-mode: screen;
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; padding: 0; }
.hero-media, .hero-lens { position: absolute; inset: 0; }
.hero-media img, .hero-lens img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 40%);
}
.hero-media > picture img { animation: drift 24s ease-in-out infinite alternate; }
.hero-lens {
  --r: 0px;
  -webkit-mask: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #000 0, #000 calc(var(--r) * .55), transparent var(--r));
          mask: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #000 0, #000 calc(var(--r) * .55), transparent var(--r));
}
.hero-lens img { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 9, 12, .35) 0%, transparent 25%, transparent 55%, rgba(7, 9, 12, .85) 100%);
}
.hero-logo {
  position: absolute; z-index: 2; left: 50%; top: 46%;
  width: min(80vw, 820px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .45));
}
.hero-logo img { width: 100%; height: auto; }
.hero-meta {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: calc(clamp(24px, 5vw, 48px) + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
}
.hero-eyebrow { margin-bottom: 8px; color: var(--fog); opacity: .8; }
.hero-title {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 6.5vw, 96px); line-height: .95; letter-spacing: -.005em;
  mix-blend-mode: difference;
}
.hero-title .slash { font-style: italic; color: var(--dusk); margin: 0 .12em; }
.hero-date { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.tag {
  display: inline-block; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--mist);
}
.countdown { font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.hero-cta { justify-self: end; color: #fff; }
.hero-scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 1px; height: 42px; background: linear-gradient(var(--fog), transparent);
  animation: scrollcue 2.4s var(--ease) infinite;
}
@keyframes scrollcue { 0% { transform: translateX(-50%) scaleY(0); transform-origin: top; } 50% { transform: translateX(-50%) scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: translateX(-50%) scaleY(0); transform-origin: bottom; } }

@media (max-width: 760px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-cta { justify-self: start; }
  .hero-scroll { display: none; }
  .hero-logo { top: 40%; }
  .loader-logo { top: 40%; }
}

/* ---------- music ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.4vw, 18px);
  position: relative;
}
.track {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 2px;
  background: var(--ink-3);
  transition: opacity .6s var(--ease), filter .6s var(--ease);
}
.track img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.track .volt-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.track .volt-layer img { width: 100%; height: 100%; object-fit: cover; }
.track:hover .volt-layer { opacity: 1; }
.track:hover img { transform: scale(1.04); }
.feature:hover .track:not(:hover) { opacity: .45; filter: blur(2px); }
.track-label {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 3;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  mix-blend-mode: difference; color: #fff;
}
.track-title { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 64px); line-height: 1; }
.feature-center {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; pointer-events: none;
  mix-blend-mode: difference; color: #fff;
}
.feature-center .serif-x { font-family: var(--serif); font-style: italic; font-size: clamp(60px, 10vw, 150px); line-height: .8; display: block; }
.feature-foot {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  margin-top: 22px;
}
.feature-text { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; margin: 0; }

.releases { margin-top: clamp(64px, 9vw, 120px); }
.releases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 22px); }
.release { perspective: 900px; }
.release-card {
  display: block; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 2px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  background: var(--ink-3);
}
.release-card img { width: 100%; height: 100%; object-fit: cover; }
.release-card::after {
  content: ""; position: absolute; inset: 0; background: var(--fog);
  mix-blend-mode: difference; opacity: 0; transition: opacity .45s var(--ease);
}
.release-card:hover::after { opacity: 1; }
.release-name { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.release-name strong { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--fog); }

.spotify { margin-top: clamp(48px, 7vw, 96px); border-radius: 12px; overflow: hidden; background: var(--ink-2); }
.spotify iframe { display: block; width: 100%; height: 352px; border: 0; }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .track { aspect-ratio: 3 / 4; }
  .track-label { flex-direction: column; left: 12px; bottom: 12px; gap: 2px; }
  .feature-foot { grid-template-columns: 1fr; }
  .releases-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- streaming / social icon row ---------- */
.links-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(10px, 2.2vw, 26px);
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.links-bar a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--mist); transition: color .3s, background .3s, transform .4s var(--ease); }
.links-bar a:hover { color: var(--ink); background: var(--fog); transform: translateY(-2px); }
.links-bar .ic { width: 20px; height: 20px; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* ---------- embeds (sign-up, pre-save, Bandsintown) ---------- */
.embed iframe { display: block; width: 100%; border: 0; background: transparent; }
.embed--list { max-width: 560px; margin: 0 auto; }
.embed--list iframe:not([data-autoheight]) { height: 200px; }
.embed--presave { margin-top: 28px; max-width: 640px; }
.embed--presave iframe:not([data-autoheight]) { height: 380px; }
.embed--bit iframe { min-height: 160px; }

/* ---------- videos ---------- */
.video-main { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 2px; }
.video-main iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade { position: absolute; inset: 0; display: block; width: 100%; }
.facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: saturate(.85); }
.facade:hover img { transform: scale(1.03); filter: saturate(1.1); }
.facade-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(223, 228, 230, .14); border: 1px solid rgba(223, 228, 230, .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.facade-play::before { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px; }
.facade-title {
  position: absolute; left: 20px; bottom: 16px; right: 20px;
  font-family: var(--serif); font-size: clamp(26px, 3.6vw, 52px); line-height: 1;
  mix-blend-mode: difference; color: #fff;
}
.video-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.video-thumb { text-align: left; display: block; }
.video-thumb .thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; position: relative; background: var(--ink-3); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: opacity .4s var(--ease), transform .8s var(--ease); }
.video-thumb:hover img, .video-thumb.is-active img { opacity: 1; }
.video-thumb:hover img { transform: scale(1.05); }
.video-thumb.is-active .thumb { outline: 1px solid var(--fog); outline-offset: 3px; }
.video-thumb span { display: block; margin-top: 8px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.about-photo { position: sticky; top: 90px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .volt-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.about-photo .volt-layer img { width: 100%; height: 100%; object-fit: cover; }
.about-photo:hover .volt-layer { opacity: 1; }
.quote {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(34px, 4.6vw, 68px); line-height: 1.02;
  color: var(--dusk);
}
.bio p { margin: 0 0 1.2em; font-size: clamp(14px, 1.15vw, 16px); line-height: 1.75; color: #c6cfd3; max-width: 62ch; }
.stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: 1; color: var(--fog); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: relative; top: 0; }
}

/* ---------- tour ---------- */
.tour { overflow: hidden; }
.section-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.section-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(.4) blur(2px); }
.section-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--ink), transparent 30%, transparent 70%, var(--ink)); }
.dates { border-top: 1px solid var(--line); }
.date-row {
  display: grid; grid-template-columns: 140px 1fr 1fr auto; gap: 18px; align-items: center;
  padding: 22px 12px; border-bottom: 1px solid var(--line);
  position: relative; isolation: isolate;
  transition: color .35s var(--ease);
}
.date-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fog); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.date-row:hover { color: var(--ink); }
.date-row:hover::before { transform: scaleY(1); }
.date-row:hover .mono-label { color: var(--ink); }
.date-city { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; }
.date-row .btn { padding: 9px 16px; }
.date-row.is-soldout .btn { opacity: .5; pointer-events: none; text-decoration: line-through; }
.empty {
  border: 1px solid var(--line); border-radius: 2px;
  padding: clamp(40px, 7vw, 88px) 24px; text-align: center;
  background: rgba(13, 17, 22, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.empty p { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.15; margin: 0 auto 26px; max-width: 18ch; }
@media (max-width: 760px) {
  .date-row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .date-row .date-when { grid-column: 1 / -1; }
  .date-row .date-venue { grid-column: 1; }
}

/* ---------- merch ---------- */
.merch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.merch-item .merch-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--ink-3); }
.merch-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.merch-item:hover img { transform: scale(1.05); }
.merch-item .row { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.merch-item strong { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.merch-foot { margin-top: 28px; }

/* ---------- letters (substack) ---------- */
.journal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.journal-text { font-family: var(--serif); font-size: clamp(26px, 3vw, 42px); line-height: 1.15; margin: 0; }
.substack-frame { background: #fff; border-radius: 12px; overflow: hidden; }
.substack-frame iframe { display: block; width: 100%; height: 320px; border: 0; }
@media (max-width: 860px) { .journal-grid { grid-template-columns: 1fr; } }

/* ---------- contact list ---------- */
.list { min-height: 90svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.list .section-bg img { opacity: .55; filter: blur(3px) saturate(1.1); transform: scale(1.06); }
.list .section-bg::after { background: radial-gradient(80% 70% at 50% 50%, rgba(7, 9, 12, .25), rgba(7, 9, 12, .9)); }
.list-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.list-title { margin: 0 0 14px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(64px, 12vw, 168px); line-height: .85; mix-blend-mode: difference; color: #fff; }
.list-text { margin: 0 auto 32px; max-width: 42ch; color: #cdd5d9; }
.list-fallback { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; color: var(--fog); margin: 0 0 24px; }

/* ---------- footer ---------- */
.footer { padding: clamp(64px, 9vw, 120px) var(--gutter) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ink); position: relative; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer h3 { margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: inline-block; padding: 3px 0; transition: color .3s, transform .3s var(--ease); }
.footer li a:hover { color: var(--dusk); transform: translateX(4px); }
.footer-mail { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; border-bottom: 1px solid var(--line-2); word-break: break-all; }
.footer-mail:hover { color: var(--dusk); }
.footer-logo { width: min(100%, 360px); aspect-ratio: 659 / 158; background: var(--fog); -webkit-mask: url(../assets/logo/logo.svg) left center / contain no-repeat; mask: url(../assets/logo/logo.svg) left center / contain no-repeat; }
.footer-bottom { max-width: var(--max); margin: clamp(48px, 7vw, 96px) auto 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
}

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: #fff; mix-blend-mode: difference;
    transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(var(--cs, 1));
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
  }
  html.has-cursor .cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  html.has-cursor .cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
  .cursor-label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .25s; }
  .cursor.is-label .cursor-label { opacity: 1; }
  .cursor.is-down { --cs: .8; }
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .09;
  animation: grain 1s steps(6) infinite;
}
html.no-grain .grain { display: none; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- editor preview helpers ---------- */
html.is-editing [data-section] { outline: 1px dashed transparent; outline-offset: -6px; transition: outline-color .2s; }
html.is-editing [data-section]:hover { outline-color: rgba(61, 77, 255, .7); }
.edit-note { border: 1px dashed var(--line-2); padding: 18px; color: var(--mist); text-align: center; border-radius: 6px; margin-top: 16px; }
.substack-placeholder { display: grid; gap: 8px; place-items: center; min-height: 220px; align-content: center; background: rgba(223, 228, 230, .03); margin-top: 0; }
.substack-placeholder strong { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--fog); }

/* ---------- consent bar (only when ad pixels are on) ---------- */
.consent {
  position: fixed; z-index: 120; left: var(--gutter); right: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 560px; margin-left: auto;
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between;
  padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(13, 17, 22, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.consent p { margin: 0; font-size: 12px; color: #cdd5d9; flex: 1 1 240px; }
.consent .btn { padding: 9px 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; scroll-behavior: auto !important; }
  [data-reveal] { filter: none; transform: none; }
}
