:root {
  color-scheme: light;
  --bg: #f2f2eb; --surface: #fafaf5; --ink: #182738; --muted: #4b5965;
  --accent: #254bab; --copper: #904121; --line: #c4cbc8; --tint: #e2e8f4;
  --sky-top: #99b7db; --sky-low: #dedbd0; --horizon: #536b83; --near: #253b55;
  --heading: "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}
:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #111a26; --surface: #192636; --ink: #edf1f4; --muted: #b2bfcb;
  --accent: #a9bfff; --copper: #ffc198; --line: #475769; --tint: #233750;
  --sky-top: #131d43; --sky-low: #34486a; --horizon: #243852; --near: #14243a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 150px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--body); }
@media (prefers-reduced-motion: no-preference) {
  body { transition: color .36s, background-color .36s; }
}
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { color: var(--copper); }
button, input, select { font: inherit; color: var(--ink); }
button, select { cursor: pointer; }
button, input, select { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
button { min-height: 44px; padding: .5rem .8rem; }
button:hover { border-color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
h1:focus, main:focus { outline: none; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1em; color: var(--muted); }
h1,h2,h3 { margin: 0 0 .55em; font-family: var(--heading); line-height: 1.1; letter-spacing: -.038em; }
h1 { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 760; }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
ol { padding-inline-start: 1.5rem; color: var(--muted); }
ol li { padding: .2rem 0; }
figure { margin: 0; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 20; background: var(--surface); padding: .75rem; }
.wrap { width: min(1250px, calc(100% - 88px)); margin-inline: auto; }
.meta, .caption, .sky-caption { color: var(--muted); font: .76rem/1.55 var(--mono); letter-spacing: .045em; }
.meta { text-transform: uppercase; }
.lead { max-width: 65ch; font-size: clamp(1.07rem, 1.8vw, 1.3rem); line-height: 1.55; }
.arrow { display: inline-block; transition: transform .18s; }
a:hover .arrow, a:focus-visible .arrow, button:hover .arrow, button:focus-visible .arrow { transform: translate(2px, -2px); }

.masthead { position: sticky; z-index: 5; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.mast-top { min-height: 76px; display: flex; gap: 10px 22px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 750; text-decoration: none; line-height: 1.12; }
.brand-mark { color: var(--accent); font-size: 2rem; line-height: 1; }
.utilities { display: flex; align-items: center; gap: .55rem; }
.listening { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--surface); }
.disc { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: repeating-radial-gradient(circle, #172436 0 3px, #30435d 4px 5px); }
.theme { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.theme button { min-height: 40px; padding: 0 .65rem; font-size: .82rem; border-color: transparent; background: transparent; transition: background-color .22s; }
.theme button:hover, .theme button[aria-pressed="true"] { background: var(--tint); color: var(--accent); }
.theme button[aria-pressed="true"] { font-weight: 700; }
.tabs { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.tabs a { flex: 0 0 auto; text-decoration: none; color: var(--muted); font-size: .88rem; padding: .7rem .85rem; min-height: 44px; border-bottom: 2px solid transparent; transition: background-color .28s, border-color .28s; }
.tabs a:hover, .tabs a[aria-current] { color: var(--accent); background: var(--tint); }
.tabs a[aria-current] { border-bottom-color: var(--accent); font-weight: 680; }
.tabs a:focus-visible { outline-offset: -4px; }
.footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1.4rem; border-top: 1px solid var(--line); padding: 22px 0 32px; color: var(--muted); font: .77rem/1.45 var(--mono); }
.footer > div { display: flex; gap: 1rem; }
.footer-mark { display: inline-block; color: var(--copper); margin-right: .25rem; animation: glint 6s ease-in-out infinite; }
@keyframes glint { 0%, 80%, 100% { transform: rotate(0); } 90% { transform: rotate(45deg); } }
main { min-height: 63vh; }
.route { display: flow-root; padding: clamp(35px, 5vw, 74px) 0 clamp(45px, 7vw, 86px); animation: enter .35s ease-out both; }
.route > :nth-child(2) { animation: enter .36s .045s ease-out both; }
.route > :nth-child(3) { animation: enter .36s .09s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { margin-bottom: clamp(25px, 4vw, 48px); }
.page-heading h1 { max-width: 16ch; }
.page-heading .meta { color: var(--copper); }
.back { display: inline-block; margin-bottom: 1.2rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.button { display: inline-flex; gap: .65rem; align-items: center; min-height: 46px; padding: .58rem .92rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: .94rem; text-decoration: none; transition: transform .18s, border-color .18s; }
.button:hover, .button:focus-visible { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.primary, .primary:hover, .primary:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.home-hero { display: grid; grid-template-columns: 1.06fr 1fr; gap: clamp(24px, 5vw, 78px); align-items: center; }
.hero-copy h1 { font-size: clamp(3.4rem, 6.4vw, 6.5rem); margin: .22em 0 .22em; line-height: .99; letter-spacing: -.075em; }
.hero-copy h1 em { font: italic 400 .94em/.98 Georgia, serif; color: var(--accent); letter-spacing: -.067em; }
.hero-copy .meta { color: var(--ink); }
.signal { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--copper); margin-right: .35rem; }
.punct { color: var(--copper); }
.hero-copy .lead { max-width: 38ch; }
.interest { margin-top: 1.4rem; }
.interest > div { display: flex; align-items: center; gap: .3rem; }
#interest-button { display: inline-flex; align-items: center; justify-content: space-between; gap: .6rem; width: 17rem; max-width: 100%; padding-inline: 0 .45rem; background: transparent; border-color: transparent; text-align: left; }
#interest-button span:last-child { color: var(--copper); transition: transform .25s; }
#interest-button:hover span:last-child { transform: rotate(45deg); }
#interest-pause, #feature-pause { min-width: 44px; font: .87rem var(--mono); }
.text-swap { animation: enter .28s ease-out; }
.sky-panel { border: 1px solid var(--line); background: var(--surface); padding: 7px; border-radius: 5px; min-width: 0; }
.sky { position: relative; isolation: isolate; aspect-ratio: 1.24; overflow: hidden; background: linear-gradient(152deg,var(--sky-top),var(--sky-low)); }
.sky-grid { position: absolute; inset: 0; background-image: linear-gradient(#fff3 1px, transparent 1px), linear-gradient(90deg,#fff3 1px,transparent 1px); background-size: 9% 11%; mask-image: linear-gradient(#000,transparent); }
.orbit { position: absolute; width: 76%; height: 54%; border: 1px solid #f9fcff9e; border-radius: 50%; left: 12%; top: 24%; transform: rotate(-27deg); }
.orbit-back { transform: rotate(23deg); opacity: .55; }
.orbit-front { animation: orbital 17s ease-in-out infinite alternate; }
.celestial { position: absolute; width: 24%; aspect-ratio: 1; top: 18%; left: 54%; border-radius: 50%; background: #fff0c7; box-shadow: 0 0 65px 18px #ffdfa275; animation: drift 12s ease-in-out infinite alternate; }
[data-theme="night"] .celestial { background: #cfe1fc; box-shadow: 0 0 68px 10px #a6c8ff50; }
[data-theme="night"] .celestial::after { content: ""; position: absolute; width: 88%; height: 88%; left: -11%; top: -8%; border-radius: 50%; background: #1a264d; }
.stars { position: absolute; inset: 0; color: #fcfdff; }
.stars i { position: absolute; font-style: normal; animation: twinkle 7s ease-in-out infinite alternate; }
.stars i:nth-child(1) { left: 19%; top: 34%; }
.stars i:nth-child(2) { left: 37%; top: 15%; animation-delay: 1s; }
.stars i:nth-child(3) { left: 84%; top: 36%; animation-delay: 2s; }
.stars i:nth-child(4) { left: 72%; top: 12%; animation-delay: 3s; }
.horizon { position: absolute; inset: 52% 0 0; background: var(--horizon); clip-path: polygon(0 46%, 10% 37%, 23% 63%, 42% 38%, 61% 5%, 69% 18%, 77% 22%, 88% 52%, 100% 39%, 100% 100%, 0 100%); }
.horizon.near { inset: 60% 0 0; background: var(--near); clip-path: polygon(0 16%, 10% 20%, 29% 50%, 43% 42%, 61% 74%, 75% 49%, 90% 59%, 100% 33%, 100% 100%, 0 100%); }
.sky-cross { position: absolute; bottom: 5%; right: 5%; color: #fff; font: 1.4rem var(--mono); }
.sky-caption { display: flex; justify-content: space-between; padding: .4rem .45rem .1rem; }
@keyframes orbital { to { transform: rotate(-22deg); } }
@keyframes drift { to { transform: translate(-6%, 8%); } }
@keyframes twinkle { from { opacity: .4; } to { opacity: 1; } }

.home-work { margin-top: clamp(35px, 5vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; border-top: 1px solid var(--line); padding-top: 1.1rem; margin: 1.5rem 0 .7rem; }
.section-head h2 { margin-bottom: 0; }
.home-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1rem; }
.carousel, .snapshot, .panel, .project-card { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); min-width: 0; }
#feature-slide { touch-action: pan-y pinch-zoom; }
.feature-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 205px; color: var(--ink); text-decoration: none; align-items: stretch; background: radial-gradient(ellipse at 95% 100%, var(--tint), transparent 65%); animation: enter .25s ease-out; }
.feature-card:hover, .feature-card:focus-visible { background: var(--tint); color: var(--ink); }
.feature-card img { width: 100%; height: 100%; min-height: 180px; max-height: 245px; object-fit: contain; background: #dce5ed; border-radius: 4px 0 0; }
.feature-diagram img { padding: 12px; background: #fff; }
.feature-card > div { align-self: center; padding: .9rem 1.25rem; }
.feature-card h3 { margin-top: .4rem; }
.feature-card p { margin: 0; font-size: .9rem; }
.carousel-controls { display: flex; gap: .4rem; align-items: center; padding: .22rem .65rem; border-top: 1px solid var(--line); }
.carousel-controls fieldset { display: flex; gap: .16rem; border: 0; margin: 0; padding: 0; }
.carousel-controls label { display: grid; place-items: center; width: 37px; height: 44px; position: relative; cursor: pointer; }
.carousel-controls input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.carousel-controls label span { width: 13px; height: 13px; border: 1px solid var(--accent); border-radius: 50%; }
.carousel-controls input:checked + span { background: var(--accent); }
.carousel-controls input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
#feature-position { margin-left: auto; white-space: nowrap; }
.snapshot { padding: 1rem 1.25rem; }
.snapshot > a { display: grid; text-decoration: none; border-top: 1px solid var(--line); padding: .35rem 0; }
.snapshot small { color: var(--muted); }
.snapshot strong { color: var(--ink); }
.snapshot > a:hover strong { color: var(--accent); }
.social-shortcuts { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .55rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.8rem 0; border-block: 1px solid var(--line); }
.metrics a { display: grid; padding: .8rem 1rem; text-decoration: none; color: var(--ink); }
.metrics a + a { border-left: 1px solid var(--line); }
.metrics a:hover, .metrics a:focus-visible { background: var(--tint); }
.metrics strong { font-size: 2.4rem; line-height: 1.15; color: var(--accent); }
.workbench-note { border-left: 3px solid var(--copper); padding: .35rem 1rem; max-width: 60ch; }
.workbench-note p { margin-bottom: .4rem; }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(16px, 3vw, 42px); align-items: start; }
.panel { padding: clamp(16px, 3vw, 35px); }
.panel > :last-child { margin-bottom: 0; }
.portrait { display: grid; place-content: center; justify-items: center; min-height: 290px; border: 1px dashed var(--line); background: radial-gradient(circle at 50% 40%, var(--tint), var(--surface)); }
.portrait > span { font: italic 5rem/1.2 Georgia, serif; color: var(--accent); transition: transform .24s; }
.portrait:hover > span { transform: rotate(-6deg); }
.portrait p { margin-top: .9rem; }
details { margin-top: 1rem; }
summary { cursor: pointer; color: var(--accent); min-height: 44px; padding: .5rem 0; }
.award { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.2rem; color: var(--ink); text-decoration: none; transition: transform .18s; }
.award:hover { transform: translateY(-3px); }
.award strong, .award small { display: block; }
.award small { color: var(--muted); }
.award-number { font-size: 2.6rem; font-weight: 750; color: var(--accent); }
.timeline a, .note-index a { display: grid; gap: .12rem; border-left: 2px solid var(--line); padding: .8rem 1rem; color: var(--ink); text-decoration: none; transition: background-color .2s, padding .2s; }
.timeline a:hover, .timeline a:focus-visible, .note-index a:hover, .note-index a:focus-visible { padding-left: 1.45rem; border-color: var(--accent); background: var(--tint); }
.timeline a strong, .note-index strong { font-size: 1.16rem; }
.timeline a > span:last-child { color: var(--muted); }
.timeline h2:not(:first-child), .toolkit h3:not(:first-child) { margin-top: 1.2rem; }
.tags { padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; }
.tags li { border: 1px solid var(--line); border-radius: 3px; padding: .18rem .45rem; color: var(--muted); font: .76rem/1.4 var(--mono); }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.05rem; }
.filter-bar a { display: grid; place-items: center; min-height: 44px; padding: .3rem .75rem; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.filter-bar a:hover, .filter-bar a[aria-current] { background: var(--tint); color: var(--accent); border-color: var(--accent); }
.filter-bar [role=status] { margin-left: .45rem; color: var(--muted); font: .8rem var(--mono); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; }
.project-card { overflow: hidden; transition: transform .18s, border-color .18s; }
.project-card:hover, .project-card:focus-within { border-color: var(--accent); transform: translateY(-3px); }
.project-art { display: grid; place-items: center; aspect-ratio: 1.8; container-type: inline-size; overflow: hidden; background: #dce5ed; }
.project-art img { width: 100%; height: 100%; max-height: 55.55cqw; object-fit: contain; }
.project-art.diagram { background: #fff; }
.project-art.diagram img { padding: 10px; }
.card-body { display: block; padding: .9rem 1rem 1rem; }
.card-body h2 { font-size: 1.43rem; }
.card-body h2 a { color: var(--ink); }
.card-body h2 a:hover { color: var(--accent); }
.card-body p { font-size: .94rem; }
.card-body p.meta { font-size: .72rem; }
.fork { margin-top: 1.2rem; }
.case-grid .caption { margin-top: .6rem; }
.case-reading { margin: 2rem 0; }
.case-grid .actions { gap: .8rem 1.2rem; margin-top: .7rem; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.gallery-thumb { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.35; overflow: hidden; padding: 0; background: #e4eaf0; cursor: zoom-in; }
.gallery-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform .22s; }
.gallery-thumb:hover img, .gallery-thumb:focus-visible img { transform: scale(1.06); }
figcaption { margin: .3rem 0 0; color: var(--muted); font-size: .83rem; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: .7rem; }
table caption { text-align: left; color: var(--muted); }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .4rem .35rem; }
thead th { color: var(--accent); }
.pending { border: 1px dashed var(--line); background: var(--surface); padding: 1.15rem; margin-top: 1.5rem; }
.pending h2 { margin: .3rem 0; }
.pending p { margin: .3rem 0 0; }
.note-index { margin-bottom: 2rem; }
.album-card { text-decoration: none; color: var(--ink); }
.album-card img { transition: transform .22s; }
.album-card:hover img, .album-card:focus-visible img { transform: scale(1.045); }
.album-card strong { display: block; margin-top: .2rem; }
.trip-art { display: grid; place-items: center; aspect-ratio: 1.8; background: var(--tint); color: var(--accent); font-size: 4rem; }
.album-hero { width: min(100%, 750px); margin-bottom: 1rem; }
.prose { max-width: 60ch; }
.sequence { display: flex; gap: .8rem; justify-content: space-between; align-items: center; margin: 1.7rem 0 0; border-top: 1px solid var(--line); padding-top: .8rem; color: var(--muted); }
.image-error { padding: 1rem; color: #182738; }

body:has(dialog[open]) { overflow: hidden; }
dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 24px); padding: clamp(14px, 3vw, 24px); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
dialog[open] { animation: enter .23s ease-out; }
dialog::backdrop { background: #070d19bd; backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; }
.dialog-top h2 { margin: 0; }
#preview-body .meta { margin-top: .7rem; }
#lightbox { width: min(1000px, calc(100% - 22px)); color-scheme: dark; background: #101720; color: #f1f4f7; --line: #506176; --ink: #f1f4f7; --accent: #adc3ff; --surface: #182535; }
.image-stage { display: grid; place-items: center; height: min(65vh, 680px); overflow: hidden; overscroll-behavior: contain; background: #080d15; touch-action: pan-y; }
.image-stage.zoomed { touch-action: none; }
#large-image { width: auto; height: auto; max-width: 100%; max-height: min(65vh, 680px); object-fit: contain; }
.image-footer { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; text-align: center; margin-top: .7rem; }
#mini-player {
  position: fixed;
  z-index: 6;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
#music-panel {
  position: absolute;
  bottom: 54px;
  width: min(350px, calc(100vw - 36px));
  max-height: calc(100dvh - 80px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px #0003;
}
#music-panel[inert] { clip-path: inset(50%); pointer-events: none; }
#music-panel p { margin: .55rem 0; }
#music-status { min-height: 1.5em; font-size: .88rem; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 52px); }
  .wide-only { display: none; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: 1.45fr 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card img { max-height: 150px; min-height: 110px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 172px; }
  .wrap { width: calc(100% - 36px); }
  .mast-top { flex-wrap: wrap; padding: .5rem 0 .2rem; min-height: 0; gap: .32rem; }
  .brand { width: 100%; min-height: 39px; }
  .brand-mark { font-size: 1.6rem; }
  .utilities { width: 100%; justify-content: space-between; }
  .theme button { padding-inline: .46rem; }
  .tabs { width: calc(100% - 18px); margin-right: 0; }
  .tabs a { padding-inline: .66rem; }
  .route { padding-top: 26px; }
  .home-hero, .home-grid, .split { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(3.1rem, 12vw, 4.6rem); }
  .sky { aspect-ratio: 1.58; }
  .interest { margin-top: .8rem; }
  .feature-card img { max-height: 210px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics a { padding: .6rem .35rem; font-size: .78rem; }
  .metrics strong { font-size: 1.9rem; }
  .project-grid { grid-template-columns: 1fr; }
  .sequence { flex-wrap: wrap; }
}
.listening.is-playing .disc { animation: record-spin 8s linear infinite; }
@keyframes record-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}


.resume-sections { display: grid; gap: 1rem; margin-top: 1rem; }
.resume-entry + .resume-entry { margin-top: 1.25rem; }
.resume-entry ul { padding-inline-start: 1.25rem; }

.contact-section {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 8rem;
}
.contact-section > .meta {
  margin: 0 0 12px;
  color: var(--muted);
  text-transform: uppercase;
}
.contact-section h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font: 400 96px/.95 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: -.035em;
}
.contact-section h2 em { color: var(--accent); }
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  margin-top: 48px;
}
.contact-intro {
  max-width: 340px;
  margin: 0 0 40px;
  color: var(--muted);
  font: 16px/1.6 var(--body);
}
.contact-details { margin: 0; }
.contact-details > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: padding-left .3s cubic-bezier(.2,.7,.1,1), color .2s;
}
.contact-details > div:hover, .contact-details > div:focus-within {
  padding-left: 12px;
  color: var(--accent);
}
.contact-details dt, #contact-form label {
  color: var(--muted);
  font: 11px/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contact-details dd {
  min-width: 0;
  margin: 0;
  font-size: 15px;
  text-align: right;
  overflow-wrap: anywhere;
}
.contact-details a { color: inherit; text-decoration: none; }
.contact-details a:hover, .contact-details a:focus-visible { color: var(--accent); }
#contact-form {
  display: grid;
  gap: 20px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.contact-names {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
#contact-form label { display: block; margin-bottom: 8px; }
#contact-form input, #contact-form textarea {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 16px/1.5 var(--body);
  transition: border-color .2s;
}
#contact-form textarea { min-height: 170px; resize: vertical; }
#contact-form :is(input, textarea)::placeholder { color: var(--muted); }
#contact-form :is(input, textarea):focus,
#contact-form [aria-invalid="true"] {
  outline: none;
  border-bottom-color: var(--accent);
}
#contact-form button {
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 500 14px/1.4 var(--body);
  cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.7,.1,1), background .2s;
}
#contact-form button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
#contact-form button:focus-visible, .footer-icons a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
#contact-status { margin: 0; color: var(--muted); }
#contact-status:empty { margin-top: -20px; }
.footer-icons a {
  display: inline-flex;
  padding: 3px;
  color: var(--muted);
}
.footer-icons a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .contact-section h2 { font-size: 56px; }
  .contact-layout, .contact-names { grid-template-columns: minmax(0, 1fr); }
  .contact-layout { gap: 32px; }
  #contact-form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  #contact-form button:hover { transform: none; }
}

body { isolation: isolate; }


.disc::after {
  content: "";
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #172436 0 2px, transparent 2.5px),
    var(--record-label, none) center / cover, #8194ab;
}
#music-panel { box-sizing: border-box; }
.music-track { display: flex; align-items: center; gap: .75rem; margin-top: .65rem; }
#music-art { object-fit: cover; border-radius: 8px; }
.music-track-title, .music-controls { display: flex; align-items: center; gap: .5rem; }
.music-controls { justify-content: center; margin-top: .5rem; }
#music-seek { display: block; width: 100%; margin: .5rem 0 0; accent-color: var(--accent); }
.music-times { display: flex; justify-content: space-between; font-size: .82rem; font-variant-numeric: tabular-nums; }
#music-status:empty { margin: 0; min-height: 0; }
#music-picks { list-style: none; padding: 0; margin: .65rem 0 0; max-height: 220px; overflow: auto; }
#music-picks li + li { margin-top: .25rem; }
#music-picks button { width: 100%; text-align: left; }
#music-picks button[aria-current="true"] { border-color: var(--accent); font-weight: 700; }
#music-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at bottom right, var(--music-color), transparent 58%),
    radial-gradient(ellipse at bottom right, var(--music-color-secondary), transparent 77%);
  opacity: 0;
  transition: opacity .45s ease;
}
#music-ambient.is-playing { opacity: .10; }
:root[data-theme="night"] #music-ambient.is-playing { opacity: .16; }
#music-eq { display: inline-flex; gap: 2px; align-items: end; height: 16px; flex: none; }
#music-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: bottom; transform: scaleY(var(--bar-level, .3)); }
#music-eq.is-fallback i { animation: music-bar .65s ease-in-out infinite alternate paused; }
#music-eq.is-fallback i:nth-child(2) { animation-delay: -.4s; }
#music-eq.is-fallback i:nth-child(3) { animation-delay: -.2s; }
#music-eq.is-fallback i:nth-child(4) { animation-delay: -.55s; }
#music-eq.is-fallback.is-playing i { animation-play-state: running; }
@keyframes music-bar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

.music-top-actions { display: flex; gap: .4rem; align-items: center; }
#music-close { min-width: 44px; min-height: 44px; font-size: 1.4rem; line-height: 1; padding: 0; }

@media (max-width: 600px) {
  #mini-player { right: max(6px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); }
  #mini-player > .listening { width: 40px; height: 40px; opacity: .9; }
  body { padding-bottom: 56px; }
}
#music-title { font-size: clamp(1.35rem, 2.2vw, 1.7rem); white-space: nowrap; margin: 0; }
