:root {
  --ink: #ecf7f8;
  --muted: #abc1c5;
  --canvas: #071419;
  --canvas-deep: #030a0d;
  --panel: rgba(15, 39, 47, .86);
  --panel-alt: rgba(20, 48, 57, .72);
  --line: rgba(176, 222, 226, .18);
  --accent: #49d7dc;
  --accent-2: #a6f2d5;
  --accent-ink: #041316;
  --shadow: 0 26px 70px rgba(0, 0, 0, .28);
  --max: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 31rem),
    linear-gradient(180deg, var(--canvas), var(--canvas-deep));
  font: 17px/1.72 var(--sans);
  text-rendering: optimizeLegibility;
}

body[data-page="the-silent-war-2086"] { --accent: #ed5a9b; --accent-2: #8db8ff; --canvas: #0c0c18; --canvas-deep: #05050b; --panel: rgba(25, 22, 42, .9); --panel-alt: rgba(37, 26, 48, .84); }
body[data-page="albums"] { --accent: #aa8cff; --accent-2: #66e8e0; --canvas: #0b0b16; --canvas-deep: #050509; --panel: rgba(25, 22, 45, .9); --panel-alt: rgba(18, 38, 47, .86); }
body[data-page="videos"] { --accent: #6ed9ff; --accent-2: #b5a0ff; --canvas: #07101d; --canvas-deep: #03070e; --panel: rgba(12, 31, 50, .9); --panel-alt: rgba(24, 24, 49, .86); }
body[data-page="contact-me"] { --accent: #8be6dd; --accent-2: #f3d59c; --canvas: #082027; --canvas-deep: #041115; }
body[data-page="other-work"] { --accent: #ff9b73; --accent-2: #e0bdff; --canvas: #171011; --canvas-deep: #090707; --panel: rgba(44, 27, 28, .88); --panel-alt: rgba(40, 27, 44, .84); }
body[data-page="press"], body[data-page="talks"] {
  --ink: #17282d;
  --muted: #596e73;
  --canvas: #edf3f2;
  --canvas-deep: #dfe9e8;
  --panel: rgba(255, 255, 255, .92);
  --panel-alt: rgba(245, 250, 249, .92);
  --line: rgba(15, 64, 74, .15);
  --accent: #006b78;
  --accent-2: #9d641a;
  --accent-ink: #fff;
  --shadow: 0 24px 65px rgba(25, 57, 64, .12);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-2); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-180%); padding: .65rem 1rem; border-radius: .45rem; background: #fff; color: #111; }
.skip-link:focus { transform: none; }
.announcement {
  display: block;
  position: relative;
  z-index: 32;
  padding: .58rem 1rem;
  color: #eaffff;
  background: #003f4b;
  text-align: center;
  text-decoration: none;
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.announcement:hover { color: #fff; background: #075564; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: .75rem max(1rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(4, 15, 19, .88);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  backdrop-filter: blur(18px) saturate(135%);
}
.brand { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; font-weight: 780; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px rgba(255,255,255,.05); }
.site-header nav { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; margin-left: auto; }
.site-header nav a { padding: .58rem .62rem; border-radius: 999px; color: rgba(255,255,255,.78); text-decoration: none; font-size: .82rem; font-weight: 700; }
.site-header nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-header nav a[aria-current="page"] { color: #041316; background: var(--accent); }
.menu-toggle { display: none; margin-left: auto; padding: .58rem .9rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: white; background: rgba(255,255,255,.06); font-weight: 750; }

.home-hero, .page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background: #061216 var(--hero-image) center 30% / cover no-repeat;
}
.home-hero::before, .page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 11, .94) 0%, rgba(2, 8, 11, .63) 48%, rgba(2, 8, 11, .2) 78%),
    linear-gradient(0deg, rgba(2, 8, 11, .72), transparent 55%);
}
.home-hero::after, .page-hero::after { content: ""; position: absolute; z-index: -1; right: -10vw; bottom: -20vw; width: 45vw; height: 45vw; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 5vw rgba(255,255,255,.025), 0 0 0 10vw rgba(255,255,255,.018); }
.home-hero { min-height: min(720px, 78vh); }
.page-hero { min-height: 390px; background-position: center 36%; }
.hero-frame { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7.5rem) 0; text-align: left; }
.home-hero h1, .page-hero h1 { max-width: 11ch; margin: .08em 0; font-family: var(--serif); font-size: clamp(3.5rem, 8.2vw, 7.7rem); font-weight: 600; line-height: .88; letter-spacing: -.055em; text-wrap: balance; text-shadow: 0 8px 35px rgba(0,0,0,.45); }
.page-hero h1 { max-width: 14ch; font-size: clamp(3.4rem, 7vw, 6.8rem); }
.eyebrow { margin: 0 0 1.1rem; color: var(--accent-2); font-size: .78rem; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.button, button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.2rem; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent-ink); background: var(--accent); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 24%, transparent); text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, button[type="submit"]:hover { color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 15px 36px color-mix(in srgb, var(--accent) 34%, transparent); }
.button.secondary { color: white; border-color: rgba(255,255,255,.62); background: rgba(0,0,0,.18); box-shadow: none; backdrop-filter: blur(8px); }
.button.secondary:hover { color: #071419; background: white; }

main { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.2rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 8rem); }
.content-section, .contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4.8vw, 4.2rem);
  border: 1px solid var(--line);
  border-radius: clamp(1rem, 2.5vw, 1.8rem);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.content-section:nth-child(even) { background: var(--panel-alt); }
.content-section::before { content: ""; position: absolute; top: 0; left: clamp(1.5rem, 4.8vw, 4.2rem); width: 72px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
h2 { max-width: 18ch; margin: 0 0 1.4rem; font-size: clamp(2.1rem, 5vw, 4.15rem); }
h3 { max-width: 24ch; margin: 2rem 0 .9rem; font-size: clamp(1.55rem, 3vw, 2.5rem); }
p { max-width: 72ch; margin: .8rem 0; color: var(--muted); }
.content-section > p { font-size: clamp(1rem, 1.5vw, 1.12rem); }
.content-section > p:only-child { margin-inline: auto; text-align: center; }
.list-item::before { content: "•"; margin-right: .55rem; color: var(--accent); }

figure { margin: 1.7rem 0; }
.content-section > figure { max-width: 940px; margin-inline: auto; }
.content-section > figure img { max-height: 760px; margin-inline: auto; border-radius: .85rem; object-fit: contain; box-shadow: 0 18px 50px rgba(0,0,0,.2); }
figcaption { padding: .9rem 0 0; color: var(--muted); font-size: .92rem; }
figcaption p { margin: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.35rem); }
.gallery-grid figure { display: grid; align-content: start; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: .9rem; background: color-mix(in srgb, var(--panel) 82%, white 4%); box-shadow: 0 12px 35px rgba(0,0,0,.12); }
.gallery-grid img { width: 100%; height: auto; max-height: 480px; aspect-ratio: 4 / 3; padding: .35rem; object-fit: contain; background: rgba(0,0,0,.14); }
.gallery-grid figcaption { padding: .9rem 1rem 1.1rem; }
.content-section:has(> .media-card) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.media-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; color: var(--ink); background: color-mix(in srgb, var(--panel) 86%, white 6%); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.media-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 15px 38px rgba(0,0,0,.17); }
.media-card figure { margin: 0; }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: rgba(0,0,0,.1); }
.media-card figcaption { padding: .85rem 1rem 1rem; color: var(--ink); font-size: .9rem; font-weight: 750; line-height: 1.35; }

.embed { position: relative; max-width: 980px; margin: 1.5rem auto; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 1rem; background: #020405; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.contact-panel { width: min(800px, 100%); margin-inline: auto; background: linear-gradient(145deg, var(--panel), var(--panel-alt)); }
.contact-panel h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.contact-form { display: grid; gap: 1.15rem; }
.contact-form label { display: grid; gap: .45rem; color: var(--ink); font-size: .9rem; font-weight: 780; }
.contact-form input, .contact-form textarea { width: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: color-mix(in srgb, var(--canvas) 78%, white 8%); }
body[data-page="press"] .contact-form input, body[data-page="talks"] .contact-form input, body[data-page="press"] .contact-form textarea, body[data-page="talks"] .contact-form textarea { background: white; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.honey { position: absolute !important; left: -10000px !important; }

/* Page-specific composition */
body[data-page="home"] main { grid-template-columns: repeat(12, 1fr); }
body[data-page="home"] .content-section { grid-column: span 12; }
body[data-page="home"] .content-section:first-child { grid-column: span 5; align-self: start; }
body[data-page="home"] .content-section:nth-child(2) { grid-column: span 7; }
body[data-page="home"] .content-section:last-child { grid-column: span 12; }
body[data-page="home"] .content-section:nth-child(2) p { display: inline-block; margin: .35rem .6rem .35rem 0; }
body[data-page="home"] .content-section:nth-child(2) p a { display: inline-flex; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }

body[data-page="the-silent-war-2086"] .page-hero { background-position: center 35%; }
body[data-page="the-silent-war-2086"] .content-section:nth-child(3n + 1) { margin-right: clamp(0px, 6vw, 80px); }
body[data-page="the-silent-war-2086"] .content-section:nth-child(3n + 2) { margin-left: clamp(0px, 6vw, 80px); }
body[data-page="the-silent-war-2086"] .gallery-grid figure:first-child { grid-column: span 2; }

body[data-page="albums"] .page-hero { background-position: center 45%; }
body[data-page="albums"] main { width: min(1240px, calc(100% - 2rem)); }
body[data-page="albums"] .content-section:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
body[data-page="albums"] .content-section:first-child .embed { width: 100%; margin: 0; aspect-ratio: 4 / 3; }

body[data-page="videos"] .content-section:has(.embed) { display: grid; grid-template-columns: minmax(240px, .58fr) minmax(0, 1.42fr); align-items: center; gap: clamp(1.2rem, 4vw, 3.5rem); }
body[data-page="videos"] .content-section:has(.embed) h2, body[data-page="videos"] .content-section:has(.embed) h3, body[data-page="videos"] .content-section:has(.embed) p { grid-column: 1; }
body[data-page="videos"] .content-section:has(.embed) .embed { grid-column: 2; grid-row: 1 / span 8; width: 100%; margin: 0; }

body[data-page="press"] .page-hero { background-position: center 35%; }
body[data-page="press"] .content-section p:has(> a:only-child) { display: inline-block; margin: .4rem .55rem .4rem 0; }
body[data-page="press"] .content-section p:has(> a:only-child) a { display: inline-flex; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: .55rem; background: rgba(255,255,255,.54); text-decoration: none; font-size: .92rem; font-weight: 720; }
body[data-page="press"] .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body[data-page="press"] .gallery-grid img { aspect-ratio: 1 / 1; max-height: none; background: #f7f9f8; }

body[data-page="talks"] .page-hero { background-position: center 46%; }
body[data-page="talks"] .content-section:has(.embed) { border-left: 4px solid var(--accent-2); }
body[data-page="talks"] .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

body[data-page="contact-me"] main { min-height: 65vh; align-content: center; }
body[data-page="contact-me"] .page-hero { min-height: 320px; background-position: center 30%; }
body[data-page="contact-me"] .contact-panel { width: min(850px, 100%); }

body[data-page="other-work"] .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body[data-page="other-work"] .gallery-grid figure:nth-child(5n + 1) { grid-column: span 2; }
body[data-page="other-work"] .gallery-grid figure:nth-child(5n + 1) img { aspect-ratio: 3 / 2; }

footer { padding: 3rem 1rem 4rem; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.62); background: #03090b; text-align: center; font-size: .86rem; letter-spacing: .02em; }
footer p { margin-inline: auto; color: inherit; }

/* Shared profile directory used at the bottom of every page. */
.sitewide-profiles { width: min(1180px, 100%); margin: clamp(3rem,7vw,6rem) auto 0; padding: clamp(1.25rem,3vw,2rem); overflow: hidden; border: 1px solid rgba(181,232,222,.16); border-radius: 1.6rem; background: rgba(12,34,40,.92); box-shadow: 0 22px 65px rgba(0,0,0,.25); }
.sitewide-profiles .platform-heading { margin: 0 0 .35rem; color: #eff8f7; font-family: var(--serif); font-size: clamp(1.65rem,3vw,2.35rem); line-height: 1.08; }
.sitewide-profiles .platform-intro { margin: 0 0 1.35rem; color: #9fb4b5; font-size: .92rem; }
.sitewide-profiles .platform-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.sitewide-profiles .platform-grid.primary { margin-bottom: 1rem; }
.sitewide-profiles .platform-grid.secondary { grid-template-columns: repeat(3,minmax(0,1fr)); padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.09); }
.sitewide-profiles .platform-card { --platform:#77ddd0; position:relative; display:flex; align-items:center; gap:.9rem; min-height:92px; padding:1rem 2.6rem 1rem 1rem; border:1px solid color-mix(in srgb,var(--platform) 36%,transparent); border-radius:.9rem; color:#eaf7f6; background:linear-gradient(135deg,color-mix(in srgb,var(--platform) 10%,#0b2025),#09171b 68%); text-decoration:none; box-shadow:0 10px 30px rgba(0,0,0,.15); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.sitewide-profiles .platform-card::after { content:"↗"; position:absolute; right:1rem; top:50%; transform:translateY(-50%); color:color-mix(in srgb,var(--platform) 72%,white); font-size:1.1rem; }
.sitewide-profiles .platform-card:hover { color:#fff; transform:translateY(-3px); border-color:var(--platform); box-shadow:0 16px 35px rgba(0,0,0,.25); }
.sitewide-profiles .platform-icon { flex:0 0 auto; width:48px; height:48px; padding:.35rem; border-radius:.75rem; background:rgba(255,255,255,.96); object-fit:contain; }
.sitewide-profiles .platform-label { color:inherit; font-size:.9rem; font-weight:760; line-height:1.28; }
.sitewide-profiles .secondary .platform-card { min-height:74px; padding:.8rem 2.2rem .8rem .8rem; gap:.7rem; }
.sitewide-profiles .secondary .platform-icon { width:38px; height:38px; border-radius:.6rem; }
.sitewide-profiles .secondary .platform-label { font-size:.78rem; }
.sitewide-profiles .youtube{--platform:#ff4b54}.sitewide-profiles .bandcamp{--platform:#43c2cf}.sitewide-profiles .spotify{--platform:#5ce27d}.sitewide-profiles .instagram{--platform:#df6ac4}.sitewide-profiles .tiktok{--platform:#69e5df}.sitewide-profiles .soundcloud{--platform:#ff8b42}.sitewide-profiles .patreon{--platform:#ff6e61}.sitewide-profiles .linkedin{--platform:#65aee9}.sitewide-profiles .facebook{--platform:#6c9eff}.sitewide-profiles .orcid{--platform:#a6ce39}
.signature-collection { width:min(850px,100%); margin:clamp(2rem,5vw,4rem) auto; padding:clamp(1.5rem,4vw,3rem); border:1px solid var(--line); border-radius:1.5rem; background:rgba(12,34,40,.9); text-align:center; box-shadow:var(--shadow); }
.signature-collection .jacqueline-symbols { display:block; width:min(100%,420px); max-height:220px; margin:0 auto 1.4rem; object-fit:contain; }
.signature-stack { display:flex; flex-direction:column; align-items:center; gap:.28rem; margin:0; padding:0; list-style:none; text-align:center; }
.signature-stack li { margin:0; padding:0; color:#dcebea; background:none!important; border:0!important; box-shadow:none!important; font-family:"Noto Sans","Noto Sans JP","Noto Sans CJK SC",system-ui,sans-serif; font-size:clamp(1.08rem,2.15vw,1.38rem); font-weight:400; line-height:1.55; }
.signature-stack li:nth-child(2n) { color:#b9ddd7; font-size:clamp(1rem,1.95vw,1.25rem); }

.reveal-ready .content-section, .reveal-ready .contact-panel { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready .content-section.is-visible, .reveal-ready .contact-panel.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .site-header { flex-wrap: wrap; }
  .site-header nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; margin: .5rem 0 0; padding: .5rem 0; }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: .7rem .85rem; }
  body[data-page="press"] .gallery-grid, body[data-page="other-work"] .gallery-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .content-section:has(> .media-card) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .home-hero, .page-hero { min-height: 440px; }
  .home-hero::before, .page-hero::before { background: linear-gradient(0deg, rgba(2,8,11,.93), rgba(2,8,11,.28) 80%); }
  .hero-frame { padding-block: 3.5rem; }
  .home-hero h1, .page-hero h1 { font-size: clamp(3.25rem, 15vw, 5.8rem); }
  .gallery-grid, body[data-page="press"] .gallery-grid, body[data-page="other-work"] .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content-section:has(> .media-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="home"] main { display: grid; grid-template-columns: 1fr; }
  body[data-page="home"] .content-section { grid-column: 1 !important; }
  body[data-page="the-silent-war-2086"] .content-section { margin-inline: 0 !important; }
  body[data-page="albums"] .content-section:first-child { grid-template-columns: 1fr; }
  body[data-page="videos"] .content-section:has(.embed) { display: block; }
  body[data-page="videos"] .content-section:has(.embed) .embed { margin-top: 1.5rem; }
  .sitewide-profiles .platform-grid.secondary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .site-header { min-height: 68px; }
  .brand img { width: 42px; height: 42px; }
  main { width: min(100% - 1rem, var(--max)); }
  .content-section, .contact-panel { padding: 1.35rem; border-radius: .9rem; }
  .content-section::before { left: 1.35rem; }
  .gallery-grid, body[data-page="press"] .gallery-grid, body[data-page="talks"] .gallery-grid, body[data-page="other-work"] .gallery-grid { grid-template-columns: 1fr; }
  .content-section:has(> .media-card) { grid-template-columns: 1fr; }
  body[data-page="the-silent-war-2086"] .gallery-grid figure:first-child, body[data-page="other-work"] .gallery-grid figure:nth-child(5n + 1) { grid-column: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .sitewide-profiles .platform-grid, .sitewide-profiles .platform-grid.secondary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
