@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600&display=swap');

:root {
  --ink: #1d211d;
  --paper: #f2efe6;
  --paper-deep: #e7e2d4;
  --acid: #d8ff54;
  --orange: #f06942;
  --line: rgba(29, 33, 29, 0.22);
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; background: var(--ink); color: white; padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 4vw, 4.5rem); border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 600; }
.mark { display: block; width: 49px; height: 34px; flex: 0 0 auto; overflow: hidden; }
.mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); font-size: .86rem; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.nav-contact { border: 1px solid var(--ink); padding: .7rem 1rem; border-radius: 999px; text-decoration: none; }
.nav-contact:hover, .nav-contact:focus-visible { background: var(--ink); color: var(--paper); }
main:not(.portal-grid), footer, .home-intro { margin-inline: clamp(1.25rem, 4vw, 4.5rem); }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .12em; font: 500 .69rem/1.4 var(--mono); }

/* The home page is a two-door portal. */
.portal-grid { min-height: calc(100svh - 88px); display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.portal { position: relative; min-width: 0; padding: clamp(1.5rem, 3.2vw, 3.5rem) clamp(1.25rem, 4vw, 4.5rem); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); text-decoration: none; isolation: isolate; }
.portal:first-child { border-right: 1px solid var(--ink); }
.portal::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.75,.25,1); }
.portal-data::before { background: var(--acid); }
.portal-music::before { background: var(--orange); }
.portal:hover::before, .portal:focus-visible::before { transform: translateY(0); }
.portal:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.portal-top { display: flex; align-items: center; justify-content: space-between; }
.portal-arrow { width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 1.25rem; transition: transform .3s, background .3s, color .3s; }
.portal:hover .portal-arrow, .portal:focus-visible .portal-arrow { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.portal-center { display: flex; flex-direction: column; gap: 1.35rem; padding-block: 3rem; }
.portal-center strong { font-size: clamp(4.8rem, 10vw, 10.5rem); line-height: .75; letter-spacing: -.08em; font-weight: 500; }
.portal-center > span { font-size: clamp(1rem, 1.45vw, 1.28rem); line-height: 1.45; }
.data-grid { height: 112px; display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(5px, .65vw, 10px); align-items: end; }
.data-grid i { --bar-color: var(--acid); display: block; height: var(--h, 25%); background: repeating-linear-gradient(to top, var(--bar-color) 0 11px, transparent 11px 16px); transform-origin: bottom; transition: height .45s cubic-bezier(.2,.75,.25,1); }
.data-grid i:nth-child(1) { --h: 26%; }.data-grid i:nth-child(2) { --h: 38%; }.data-grid i:nth-child(3) { --h: 51%; }.data-grid i:nth-child(4) { --h: 64%; }.data-grid i:nth-child(5) { --h: 77%; }.data-grid i:nth-child(6) { --h: 89%; }.data-grid i:nth-child(7) { --h: 100%; }
.portal-data:hover .data-grid i, .portal-data:focus-visible .data-grid i { --bar-color: var(--ink); animation: data-pulse .7s ease-in-out infinite alternate; }
.portal-data:hover .data-grid i:nth-child(2), .portal-data:focus-visible .data-grid i:nth-child(2), .portal-data:hover .data-grid i:nth-child(5), .portal-data:focus-visible .data-grid i:nth-child(5) { animation-delay: -.35s; }
@keyframes data-pulse { to { transform: scaleY(.72); } }
.signal { height: 82px; display: flex; align-items: end; gap: 5px; }
.signal i { display: block; flex: 1; background: var(--orange); transform-origin: bottom; animation: signal 2.4s ease-in-out infinite alternate; }
.signal i:nth-child(1), .signal i:nth-child(19) { height: 14%; }.signal i:nth-child(2), .signal i:nth-child(18) { height: 24%; }.signal i:nth-child(3), .signal i:nth-child(17) { height: 42%; }.signal i:nth-child(4), .signal i:nth-child(16) { height: 68%; }.signal i:nth-child(5), .signal i:nth-child(15) { height: 36%; }.signal i:nth-child(6), .signal i:nth-child(14) { height: 76%; }.signal i:nth-child(7), .signal i:nth-child(13) { height: 100%; }.signal i:nth-child(8), .signal i:nth-child(12) { height: 52%; }.signal i:nth-child(9), .signal i:nth-child(11) { height: 31%; }.signal i:nth-child(10) { height: 18%; }
.portal-signal { height: 112px; align-items: center; }
.portal-signal i { transform-origin: center; animation: wave 1.6s ease-in-out infinite alternate; }
.portal-signal i:nth-child(3n) { animation-delay: -.8s; }
.portal-music:hover .signal i, .portal-music:focus-visible .signal i { background: var(--ink); }
@keyframes signal { to { transform: scaleY(.62); } }
@keyframes wave { to { transform: scaleY(.5); } }
.home-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding-block: clamp(4.5rem, 9vw, 9rem); }
.home-intro h1 { max-width: 930px; margin: 0 0 2.5rem; font-size: clamp(3rem, 6.5vw, 6.7rem); line-height: .94; letter-spacing: -.065em; font-weight: 500; }
.home-intro div > p { max-width: 760px; margin: 0; font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.55; }

/* Interior pages */
.page-hero { min-height: calc(100svh - 88px); display: flex; flex-direction: column; padding-block: clamp(3rem, 8vw, 7rem) 2rem; overflow: hidden; }
.page-hero h1 { max-width: 1120px; margin: 1.6rem 0 3rem; font-size: clamp(3.5rem, 9vw, 8.8rem); font-weight: 500; line-height: .91; letter-spacing: -.068em; }
.page-intro { max-width: 690px; margin: auto 0 3rem; font-size: clamp(1.08rem, 1.7vw, 1.4rem); line-height: 1.55; }
.page-data-grid { height: 112px; }
.page-data-grid i { background: var(--acid); }
.page-signal { height: 94px; }
.work, .about, .playlist { border-top: 1px solid var(--ink); padding-block: clamp(4rem, 9vw, 8rem); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin-bottom: clamp(3rem, 7vw, 6rem); }
h2 { margin: 0; font-size: clamp(2.6rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.cards.two-up { grid-template-columns: repeat(2, 1fr); }
.card { min-height: 360px; padding: 2rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; transition: background .2s; }
.card:last-child { border-right: 0; }
.data-page .card:hover { background: var(--acid); }
.music-page .card:hover { background: var(--orange); }
.card h3 { max-width: 11ch; margin: 3rem 0 1rem; font-size: clamp(1.7rem, 2.5vw, 2.6rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 500; }
.card p:not(.eyebrow) { max-width: 38ch; line-height: 1.6; }
.card a { margin-top: auto; font-size: .85rem; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.about > div { max-width: 920px; }
.about h2 { margin-bottom: 2.5rem; }
.about div p { max-width: 760px; font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.55; }
.playlist { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.playlist-copy { position: sticky; top: 2rem; }
.playlist-copy h2 { margin: 1.5rem 0 2rem; }
.playlist-copy > p:not(.eyebrow) { max-width: 34ch; line-height: 1.6; }
.playlist-copy > a { display: inline-block; margin-top: 1rem; }
.spotify-frame { padding: clamp(.7rem, 1.4vw, 1.1rem); border: 1px solid var(--ink); background: var(--orange); }
.spotify-frame iframe { display: block; width: 100%; border: 0; border-radius: 12px; background: var(--ink); }
.cross-link { margin-inline: calc(clamp(1.25rem, 4vw, 4.5rem) * -1); padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 4.5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cross-link a { font-size: clamp(1.45rem, 3.5vw, 3.7rem); line-height: 1; letter-spacing: -.045em; text-decoration: none; }
.cross-link a span { display: inline-block; transition: transform .2s; }
.cross-link a:hover span { transform: translateX(.3em); }
.cross-music { background: var(--orange); }
.cross-data { background: var(--acid); }
.contact-hero { min-height: calc(100svh - 88px); display: flex; flex-direction: column; padding-block: clamp(3rem, 8vw, 7rem) 2rem; }
.contact-heading { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: end; margin: 1.5rem 0 clamp(4rem, 10vw, 9rem); }
.contact-heading h1 { margin: 0; font-size: clamp(5rem, 14vw, 13rem); line-height: .8; letter-spacing: -.08em; font-weight: 500; }
.contact-heading p { max-width: 36ch; margin: 0; font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.55; }
.contact-email { position: relative; margin-top: auto; display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 3fr) auto; align-items: center; gap: 1.5rem; padding: clamp(2rem, 4vw, 3.5rem); background: var(--ink); color: var(--paper); text-decoration: none; overflow: hidden; }
.contact-accent { position: absolute; inset: 0 0 auto; height: 8px; display: grid; grid-template-columns: 1fr 1fr; }
.contact-accent i:first-child { background: var(--acid); }
.contact-accent i:last-child { background: var(--orange); }
.contact-email strong { min-width: 0; font: 500 clamp(1.6rem, 4.4vw, 4.8rem)/1 var(--sans); letter-spacing: -.05em; }
.contact-arrow { display: grid; place-items: center; width: clamp(3rem, 5vw, 4.5rem); aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; font-size: clamp(1.2rem, 2.2vw, 2rem); transition: transform .25s, background .25s, color .25s; }
.contact-email:hover strong, .contact-email:focus-visible strong { color: var(--acid); }
.contact-email:hover .contact-arrow, .contact-email:focus-visible .contact-arrow { transform: rotate(45deg); background: var(--paper); color: var(--ink); }
footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 2rem; font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.not-found { min-height: 70vh; display: grid; place-content: center; text-align: center; }
.not-found h1 { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.06em; margin: 1rem 0 2rem; }

@media (max-width: 760px) {
  .site-header { height: 74px; }
  .mark { width: 44px; height: 30px; }
  nav a:not(.nav-contact) { display: none; }
  .portal-grid { min-height: calc(100svh - 74px); grid-template-columns: 1fr; }
  .portal { min-height: calc((100svh - 74px) / 2); padding-block: 1.35rem; }
  .portal:first-child { border-right: 0; border-bottom: 1px solid var(--ink); }
  .portal-center { gap: .7rem; padding-block: 1.2rem; }
  .portal-center strong { font-size: clamp(4rem, 21vw, 7rem); }
  .portal-center > span { font-size: .9rem; }
  .portal-arrow { width: 2.3rem; height: 2.3rem; }
  .portal .data-grid, .portal .signal { position: absolute; right: 1.25rem; bottom: 1.35rem; width: 38%; height: 48px; opacity: .95; }
  .portal .data-grid { gap: 3px; }
  .portal .data-grid i { background: repeating-linear-gradient(to top, var(--bar-color) 0 5px, transparent 5px 8px); }
  .home-intro, .section-heading, .about, .playlist { grid-template-columns: 1fr; }
  .page-hero { min-height: calc(100svh - 74px); }
  .contact-hero { min-height: calc(100svh - 74px); }
  .contact-heading { grid-template-columns: 1fr; align-items: start; }
  .contact-heading h1 { font-size: clamp(4.5rem, 23vw, 7.5rem); }
  .contact-email { grid-template-columns: 1fr auto; gap: 1.25rem; padding: 2rem 1.25rem; }
  .contact-email .eyebrow { grid-column: 1 / -1; }
  .contact-email strong { font-size: clamp(1.35rem, 6.6vw, 2rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
  .page-hero h1 { margin-bottom: 2.2rem; }
  .cards.two-up { grid-template-columns: 1fr; }
  .card { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .card:last-child { border-bottom: 0; }
  .card:hover { padding-inline: 1.25rem; }
  .playlist-copy { position: static; }
  .spotify-frame { margin-inline: calc(clamp(1.25rem, 4vw, 4.5rem) * -0.35); }
  .spotify-frame iframe { height: 480px; }
  .cross-link { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signal i { animation: none; }
  .portal-data:hover .data-grid i, .portal-data:focus-visible .data-grid i, .portal-signal i { animation: none; }
  .portal::before, .portal-arrow, .data-grid i { transition: none; }
}
