/* minanima · main site.
   Dark purple and dusky pink for the frame of the site, warm neutrals behind the reading sections. */

:root {
  --plum-950: #170e1c;
  --plum-900: #21142a;   /* hero, music */
  --plum-800: #2f1d3b;   /* listen & follow, cards on dark */
  --plum-700: #4a3352;   /* lines on dark */
  --rose: #c98d9c;       /* dusky pink accent */
  --rose-soft: #ead0d6;  /* pink text on dark, light bands */
  --rose-deep: #9a5e70;  /* pink on light backgrounds */
  --paper: #f6f1eb;      /* main reading background */
  --sand: #ece4da;       /* alternate neutral */
  --line: #dacfc4;
  --ink: #2b2129;        /* body text on neutrals */
  --ink-2: #6a5a63;      /* secondary text */
  --pad: clamp(18px, 4vw, 40px);
  --serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; padding: 8px 14px; background: var(--rose); color: var(--plum-950); }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, 100% - 2 * var(--pad)); margin: 0 auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
.eyebrow { margin: 0 0 14px; font: 600 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--rose); }
.meta { margin: 0 0 10px; font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.meta:empty { display: none; }
.empty { font-style: italic; color: var(--ink-2); list-style: none; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 1px solid var(--rose); border-radius: 999px;
  font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--plum-950); background: var(--rose); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--rose-soft); border-color: var(--rose-soft); }
.btn.ghost { background: transparent; color: var(--rose); }
.btn.ghost:hover { background: var(--rose); color: var(--plum-950); }
.btn.dark { background: var(--plum-900); border-color: var(--plum-900); color: var(--paper); }
.btn.dark:hover { background: var(--plum-700); border-color: var(--plum-700); }
.btn.ghost-dark { background: transparent; border-color: var(--plum-900); color: var(--plum-900); }
.btn.ghost-dark:hover { background: var(--plum-900); color: var(--paper); }

/* ---------- Header ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 40; color: var(--paper); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.topbar.solid, .topbar.open { background: var(--plum-950); border-bottom-color: var(--plum-800); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font: 500 28px/1 var(--serif); color: var(--paper); text-decoration: none; letter-spacing: .02em; }
.nav { display: flex; gap: 28px; }
.nav a { font: 500 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rose-soft); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--paper); border-bottom-color: var(--rose); }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--paper); content: ''; transition: transform .2s;
}
.menu-btn span:first-child { top: 21px; }
.menu-btn span:first-child::before { left: 0; top: -7px; }
.menu-btn span:first-child::after { left: 0; top: 7px; }
.open .menu-btn span:first-child { background: transparent; }
.open .menu-btn span:first-child::before { transform: translateY(7px) rotate(45deg); }
.open .menu-btn span:first-child::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: min(92vh, 860px); padding: 120px 0 90px; color: var(--paper); background: var(--plum-900); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .38; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to bottom, transparent, var(--plum-900)); pointer-events: none; }
.hero-in { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(64px, 14vw, 180px); font-weight: 400; line-height: .9; letter-spacing: -.01em; margin-left: -.04em; }
.tagline { max-width: 32em; margin: 22px 0 0; font: italic 400 clamp(20px, 2.4vw, 28px)/1.35 var(--serif); color: var(--rose-soft); }
.tagline:empty { display: none; }

/* ---------- Highlighted project ---------- */
.featured { background: var(--rose); color: var(--plum-950); padding: clamp(50px, 8vw, 90px) 0; }
.featured-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.featured-art { position: relative; }
.featured-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.maisonette { width: 100%; max-width: 420px; margin: 0 auto; display: block; }
.has-cover .maisonette { position: absolute; right: -6%; bottom: -8%; width: 44%; background: var(--rose); padding: 10px 10px 0; border-radius: 4px 4px 0 0; }
.maisonette .tower { fill: var(--plum-800); }
.maisonette .roof { fill: var(--plum-900); }
.maisonette .facade, .maisonette .cornice { fill: var(--paper); }
.maisonette .cornice { fill: var(--sand); }
.maisonette .win { fill: var(--rose-soft); }
.maisonette .shut, .maisonette .rail, .maisonette .door, .maisonette .ground { fill: var(--plum-900); }
.maisonette .dormer { fill: var(--rose-soft); }
.featured h2 { font-size: clamp(38px, 5.5vw, 66px); margin-bottom: 12px; }
.featured .eyebrow { color: var(--plum-900); }
.featured .meta { color: var(--plum-800); }
.featured .lede { margin: 8px 0 0; font: 400 clamp(20px, 2vw, 24px)/1.45 var(--serif); }
.featured .lede:empty { display: none; }

/* ---------- Sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec--paper { background: var(--paper); }
.sec--sand { background: var(--sand); }
.sec--dark { background: var(--plum-900); color: var(--paper); }
.sec--plum { background: var(--plum-800); color: var(--paper); }
.sec--rose { background: var(--rose-soft); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; margin-bottom: clamp(30px, 4vw, 50px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sec-head h2 { font-size: clamp(40px, 5.5vw, 64px); }
.sec-head p { margin: 0; max-width: 32em; color: var(--ink-2); }
.sec-head p:empty { display: none; }
.sec--dark .sec-head, .sec--plum .sec-head { border-bottom-color: var(--plum-700); }
.sec--dark .sec-head p, .sec--plum .sec-head p { color: var(--rose-soft); }
.sec--dark .empty, .sec--plum .empty { color: var(--rose-soft); }

/* Projects */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(18px, 2.5vw, 30px); }
.card { position: relative; }
.card-hit { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s; }
.card-hit:hover { border-color: var(--rose); transform: translateY(-3px); }
.card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--plum-800); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-img .ph, .about-photo .ph { display: grid; place-items: center; height: 100%; font: 400 72px var(--serif); color: var(--rose); }
.card-body { display: block; padding: 18px 20px 22px; }
.card-title { display: block; font: 500 28px/1.15 var(--serif); color: var(--ink); }
.card-sum { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; background: var(--rose); color: var(--plum-950); }
.is-featured .card-hit { border-color: var(--rose); }

/* Music */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 0 40px; }
.tracks li { border-bottom: 1px solid var(--plum-700); }
.track { display: flex; align-items: center; gap: 18px; width: 100%; padding: 16px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--paper); }
.t-cover { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 4px; overflow: hidden; background: var(--plum-800); color: var(--rose); font-size: 24px; }
.t-cover img { width: 100%; height: 100%; object-fit: cover; }
.t-text { flex: 1; min-width: 0; }
.t-title { display: block; font: 500 24px/1.2 var(--serif); }
.t-meta { display: block; font-size: 13px; color: var(--rose-soft); opacity: .85; }
.t-play { flex: none; width: 42px; height: 42px; border: 1px solid var(--rose); border-radius: 50%; position: relative; transition: background .2s; }
.t-play::after { content: ''; position: absolute; left: 16px; top: 13px; border: 8px solid transparent; border-left: 12px solid var(--rose); border-right: 0; }
.track:hover .t-play { background: var(--rose); }
.track:hover .t-play::after { border-left-color: var(--plum-950); }
.track:hover .t-title { color: var(--rose-soft); }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(18px, 2.5vw, 30px); }
.vid { padding: 0; background: none; border: 0; text-align: left; cursor: pointer; }
.vid-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--plum-800); }
.vid-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vid:hover .vid-img img { transform: scale(1.03); }
.vid-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--rose); }
.vid-play::after { content: ''; position: absolute; left: 23px; top: 18px; border: 12px solid transparent; border-left: 18px solid var(--plum-950); border-right: 0; }
.vid-title { display: block; margin-top: 12px; font: 500 22px/1.2 var(--serif); color: var(--ink); }
.more { margin: 30px 0 0; }
.sec--sand .btn.ghost { color: var(--rose-deep); border-color: var(--rose-deep); }
.sec--sand .btn.ghost:hover { background: var(--rose-deep); color: var(--paper); }

/* Listen & follow */
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.links h3 { margin-bottom: 16px; font: 600 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--rose); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pill { display: inline-block; padding: 10px 20px; border: 1px solid var(--plum-700); border-radius: 999px; color: var(--paper); text-decoration: none; font-size: 15px; transition: border-color .2s, background .2s; }
.pill:hover { border-color: var(--rose); background: var(--plum-900); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 200px 200px 6px 6px; overflow: hidden; background: var(--plum-800); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(40px, 5.5vw, 64px); margin-bottom: 10px; }
.prose p { margin: 0 0 1em; font: 400 21px/1.6 var(--serif); }
.prose p:first-child { font-size: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); }

/* Contact */
.contact { text-align: center; max-width: 720px; }
.contact h2 { font-size: clamp(40px, 5.5vw, 64px); }
.contact p { margin: 14px 0 0; color: var(--ink-2); font-size: 18px; }
.contact p:empty { display: none; }
.mail .btn { margin-top: 12px; text-transform: none; letter-spacing: .02em; font-size: 16px; }

/* Footer */
.foot { background: var(--plum-950); color: var(--rose-soft); padding: 40px 0; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; }
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--rose-soft); text-decoration: none; }
.foot a:hover { color: var(--paper); }
.foot .small { opacity: .7; }

/* ---------- Pop-up ---------- */
dialog { width: min(780px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 8px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(23, 14, 28, .82); }
dialog[open] { animation: rise .35s cubic-bezier(.2, .8, .25, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.frame { position: relative; max-height: calc(100vh - 32px); overflow: auto; padding: clamp(22px, 4vw, 44px); }
.close { position: sticky; float: right; top: 0; margin: -8px -8px 0 10px; width: 40px; height: 40px; z-index: 2; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.close:hover { background: var(--plum-900); color: var(--paper); border-color: var(--plum-900); }
.modal-body h2 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 46px); }
.modal-body h3 { margin: 30px 0 10px; padding-bottom: 8px; font: 600 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--rose-deep); border-bottom: 1px solid var(--line); }
.modal-body > p, .modal-body .media-row p { margin: 0 0 12px; }
.modal-body .lede { font: 400 21px/1.45 var(--serif); }
.modal-body .chips { margin: 4px 0 14px; }
.modal-body .prose { margin-top: 18px; }
.modal-body .prose p { font-size: 20px; }
.modal-body .prose p:first-child { font-size: 20px; }
.modal-body .btn.ghost { color: var(--rose-deep); border-color: var(--rose-deep); }
.modal-body .btn.ghost:hover { background: var(--rose-deep); color: var(--paper); }
.media-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: start; }
.cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.cover.ph { display: grid; place-items: center; font: 400 64px var(--serif); color: var(--rose); background: var(--plum-800); }
.embed { position: relative; width: 100%; margin: 18px 0; border-radius: 6px; overflow: hidden; background: #000; }
.embed.video { aspect-ratio: 16 / 9; }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed.audio iframe { height: 152px; }
.embed.sc iframe { height: 166px; }
audio { width: 100%; margin: 14px 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list button, .list a { display: flex; width: 100%; gap: 12px; align-items: baseline; padding: 10px 2px; background: none; border: 0; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; font: 500 21px var(--serif); }
.list button:hover, .list a:hover { color: var(--rose-deep); }
.list .dots { flex: 1; }
.list .aside { font: 500 13px var(--sans); color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.grid button { padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-align: left; cursor: pointer; }
.grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.grid span { display: block; padding: 8px 12px; font: 500 18px var(--serif); }
.grid button:hover { border-color: var(--rose); }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--pad) 18px; background: var(--plum-950); border-bottom: 1px solid var(--plum-800); display: none; }
  .open .nav { display: flex; }
  .nav a { padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--plum-800); }
  .featured-in, .about { grid-template-columns: 1fr; }
  .featured-art { max-width: 420px; }
  .about-photo { max-width: 340px; }
  .links { grid-template-columns: 1fr; gap: 30px; }
  .media-row { grid-template-columns: 1fr; }
  .media-row .cover { max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Header logo ---------- */
.wordmark img { display: block; height: 30px; width: auto; }

/* ---------- New release banner ---------- */
.release { background: var(--plum-800); color: var(--paper); padding: clamp(40px, 6vw, 70px) 0; }
.release-in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: center; }
.release-cover { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--plum-700); cursor: pointer; }
.release-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.release-cover:hover img { transform: scale(1.03); }
.release-cover .ph { display: grid; place-items: center; height: 100%; font: 400 90px var(--serif); color: var(--rose); }
.release h2 { font-size: clamp(38px, 5.5vw, 64px); margin-bottom: 10px; }
.release .meta { color: var(--rose-soft); }
.release .lede { margin: 6px 0 0; font: 400 clamp(20px, 2vw, 24px)/1.45 var(--serif); color: var(--rose-soft); }
.release .lede:empty { display: none; }

/* ---------- Music grouped by release ---------- */
.release-group + .release-group { margin-top: clamp(34px, 5vw, 56px); }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 4px; font: 500 30px/1.2 var(--serif); color: var(--paper); }
.group-head button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-bottom: 1px solid transparent; }
.group-head button:hover { border-bottom-color: var(--rose); }
.group-head span { font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }

/* ---------- Teaching ---------- */
.teaching { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.no-photo .teaching { grid-template-columns: 1fr; max-width: 760px; }
.teaching h2 { font-size: clamp(40px, 5.5vw, 64px); margin-bottom: 18px; }
.teaching-photo img { width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 22px; font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--rose-deep); border-bottom: 2px solid var(--rose-deep); transform: rotate(-45deg); }
.ticks:empty { display: none; }

/* ---------- Contact form ---------- */
.contact-form { margin: 30px auto 0; text-align: left; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 16px; font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--plum-800); }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #cfa9b3; border-radius: 6px;
  font: 400 16px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--paper);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--rose-deep); outline-offset: 1px; border-color: var(--rose-deep); }
.contact-form .btns { margin-top: 4px; }
.form-note { margin: 0; min-height: 1.2em; font-size: 15px; color: var(--rose-deep); }
.small-print { font-size: 14px !important; }
.small-print a { color: var(--plum-800); }

/* ---------- Project photos (pop-up) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.gallery figcaption { margin-top: 4px; font-size: 13px; color: var(--ink-2); }

@media (max-width: 860px) {
  .release-in, .teaching { grid-template-columns: 1fr; }
  .release-cover { max-width: 260px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
  .wordmark img { height: 26px; }
}

/* Quiet link to the CMS (signing in is handled by Cloudflare Access) */
.foot .admin-link { color: inherit; opacity: .55; text-decoration: none; }
.foot .admin-link:hover, .foot .admin-link:focus-visible { opacity: 1; text-decoration: underline; }
