.music-dock {
  position: fixed;
  z-index: 5;
  left: max(24px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 10px 12px 10px 16px;
  border: 1px solid #ddd;
  border-radius: 18px;
  background: #fff;
  color: #111;
  box-shadow: 0 8px 24px #00000014;
  font:
    12px/1.4 'DM Sans',
    Arial,
    sans-serif;
}
.music-dock[hidden],
.music-dock [hidden] {
  display: none !important;
}
.music-dock a {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.music-dock strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.music-dock span {
  display: block;
  color: #666;
  font-size: 10px;
  margin-top: 3px;
}
.music-dock-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #111;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}
.music-dock-toggle svg {
  width: 18px;
  height: 18px;
}
.music-dock-toggle:hover {
  background: #111;
  color: #fff;
}
.music-dock-toggle:focus-visible,
.music-dock a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}
@media (max-width: 700px) {
  .music-dock {
    left: 16px;
    bottom: max(100px, calc(env(safe-area-inset-bottom) + 88px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .music-dock-toggle {
    transition: none;
  }
}

/* Oversized signature, a peeking mascot, and a centered social landing. */
.site-footer {
  position: relative;
  padding-top: 0;
}
.site-footer .contact {
  position: relative;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 40px;
  padding: 42px 0 28px;
  border-top: 1px solid #bcbcbc;
}
.site-footer .contact::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 46px;
  height: 3px;
  background: var(--color-accent);
}
.site-footer .footer-eyebrow {
  display: block;
  color: #626262;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1px;
}
.site-footer .contact-copy > p {
  margin: 14px 0 24px;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1.8px;
}
.site-footer .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid #000;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.site-footer .footer-finale {
  position: relative;
  width: calc(100vw - 40px);
  margin: 65px calc((100% - 100vw + 40px) / 2) 0;
  padding: 0 0 6px;
}
.site-footer .footer-wordmark {
  display: block;
  color: #000;
  font-size: clamp(30px, 9.8vw, 220px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
.site-footer .footer-peek {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -1px;
  width: clamp(180px, 21vw, 300px);
  height: clamp(72px, 7.4vw, 108px);
  overflow: hidden;
  transform: translateX(-50%);
  pointer-events: none;
}
.site-footer .footer-peek img {
  display: block;
  width: 100%;
  height: auto;
}
.site-footer .footer-ledge {
  position: relative;
  width: calc(100vw - 40px);
  margin-inline: calc((100% - 100vw + 40px) / 2);
  padding: 30px 0 26px;
  border-top: 1px solid #bfc0c3;
  background: #fff;
}
.site-footer .footer-elsewhere {
  width: fit-content;
  margin: 0 auto;
}
.site-footer .footer-elsewhere > .footer-eyebrow {
  display: none;
}
.site-footer .socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.site-footer .social-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 66px;
  height: 66px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: #000;
  overflow: visible;
  transform: translateY(0) rotate(0);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-footer .social-icon:nth-child(odd) {
  --social-tilt: -4deg;
}
.site-footer .social-icon:nth-child(even) {
  --social-tilt: 4deg;
}
.site-footer .social-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.site-footer .social-icon[aria-disabled='true'] {
  cursor: default;
}
.site-footer .social-icon:focus-visible {
  outline: 1px solid #222;
  outline-offset: 3px;
  transform: translateY(-5px);
}
.site-footer .social-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  right: auto;
  padding: 6px 9px;
  border-radius: 5px;
  background: #111;
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(-50%);
}
.site-footer .social-icon:focus-visible .social-tooltip {
  visibility: visible;
}
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 0;
  padding: 25px 0 30px;
  border-top: 1px solid #d2d2d2;
}
.site-footer .footer-bottom .identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: -0.2px;
}
.site-footer .identity .footer-signature {
  margin: 0;
  color: #111;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.site-footer .identity .footer-signature > span {
  margin-top: 5px;
  color: #626262;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}
.site-footer .footer-bottom .back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  color: #222;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  transform: none;
}
.site-footer .footer-return-key {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  background: linear-gradient(#fff, #f7f7f7);
  box-shadow: 0 2px 0 #ddd;
  font-size: 18px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer .social-icon:hover {
    transform: translateY(-7px) rotate(var(--social-tilt)) scale(1.06);
  }
  .site-footer .social-icon:hover .social-tooltip {
    visibility: visible;
  }
  .site-footer .back-to-top:hover .footer-return-key {
    border-color: #333;
    box-shadow:
      0 3px 0 -1px var(--color-accent),
      0 3px 0 #222;
    transform: translateY(-3px);
  }
}
.site-footer .social-icon:active {
  transform: translateY(1px) scale(0.96);
}
.site-footer .back-to-top:active .footer-return-key {
  transform: translateY(1px);
  box-shadow: none;
}
@media (max-width: 700px) {
  .site-footer .contact {
    gap: 30px;
  }
  .site-footer .social-icon {
    width: 54px;
    height: 54px;
  }
}
@media (max-width: 600px) {
  .site-footer .contact {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 34px 0 38px;
  }
  .site-footer .footer-elsewhere {
    margin-inline: auto;
  }
  .site-footer .contact-copy > p {
    font-size: 39px;
  }
  .site-footer .footer-finale {
    margin-top: 50px;
    padding-bottom: 10px;
  }
  .site-footer .footer-peek {
    height: 52px;
    width: 138px;
  }
  .site-footer .footer-wordmark {
    font-size: 17.8vw;
    line-height: 0.94;
    letter-spacing: -0.065em;
  }
  .site-footer .footer-wordmark > span {
    display: block;
  }
  .site-footer .footer-wordmark > span:first-child {
    font-size: 1.18em;
  }

  .site-footer .footer-bottom {
    gap: 12px;
    padding: 22px 0 25px;
  }
  .site-footer .footer-bottom .identity {
    gap: 8px;
  }
  .site-footer .identity .footer-signature {
    font-size: 10px;
  }
  .site-footer .identity .footer-signature > span {
    max-width: 145px;
    font-size: 8px;
    line-height: 1.5;
  }
  .site-footer .footer-bottom .back-to-top {
    gap: 7px;
    font-size: 9px;
    white-space: nowrap;
  }
  .site-footer .footer-return-key {
    width: 29px;
    height: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer .social-icon,
  .site-footer .footer-return-key {
    transition: none;
  }
  .site-footer .social-icon:hover,
  .site-footer .social-icon:active,
  .site-footer .social-icon:focus-visible,
  .site-footer .back-to-top:hover .footer-return-key,
  .site-footer .back-to-top:active .footer-return-key {
    transform: none;
  }
}

/* A stable sticky header; only its floating surface changes while scrolling. */
.header-scroll-marker {
  position: absolute;
  top: 32px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.site-header {
  position: sticky;
  top: max(12px, env(safe-area-inset-top));
  z-index: 50;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 94px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
  transition: border-color 0.28s ease;
}
.site-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 -16px;
  border: 1px solid #dedee6;
  border-radius: 21px;
  background: #fff;
  box-shadow:
    0 3px 5px #00000004,
    0 14px 32px -18px #15152540;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.site-header.is-scrolled {
  border-bottom-color: transparent;
}
.site-header.is-scrolled::before {
  opacity: 1;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: none;
}
.site-header .identity {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.monogram {
  display: block;
  width: 43px;
  height: 43px;
  flex: none;
}
.monogram img {
  display: block;
  width: 100%;
  height: 100%;
}
.site-header nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid #dedee4;
  border-radius: 999px;
  background: #f5f5f7;
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 2px #00000003;
  font-size: 12px;
  font-weight: 550;
}
.site-header nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 13px;
  border: 0;
  border-radius: 999px;
  color: #39393e;
  white-space: nowrap;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.site-header .nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 0;
  height: 40px;
  border-radius: 999px;
  background: #101014;
  transform-origin: left center;
  box-shadow: 0 2px 3px #00000015;
  pointer-events: none;
}
.site-header nav a[aria-current='page'] {
  color: #fff;
}
.site-header nav .nav-github {
  min-height: 38px;
  margin-left: 4px;
  padding-inline: 14px;
  border: 1px solid #d6d6de;
  background: #fff;
  color: #111;
}
.site-header nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .site-header nav a:not([aria-current]):not(.nav-github):hover {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 5px #0000000b;
    transform: translateY(-1px);
  }
  .site-header nav .nav-github:hover {
    color: #fff;
    background: #000;
    border-color: #000;
    box-shadow:
      0 4px 0 -1px var(--color-accent),
      0 4px 0 #000;
    transform: translateY(-2px);
  }
}
.site-header nav a:active {
  transform: scale(0.97);
}
@media (max-width: 800px) {
  .site-header {
    gap: 14px;
  }
  .site-header nav {
    font-size: 11px;
  }
  .site-header nav a {
    padding-inline: 11px;
  }
  .site-header .identity {
    font-size: 13px;
  }
  .header-brand {
    gap: 9px;
  }
  .monogram {
    width: 36px;
    height: 36px;
  }
  .site-header .identity span {
    font-size: 10px;
  }
}
@media (max-width: 900px) {
  .site-header nav .nav-github {
    display: none;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 175px;
  }
  .site-header {
    flex-wrap: wrap;
    gap: 15px;
    padding-block: 14px;
  }
  .site-header::before {
    inset-inline: -9px;
    border-radius: 18px;
  }
  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }
  .site-header nav a[data-nav] {
    flex: 1;
    padding-inline: 10px;
  }
}
@media (max-width: 400px) {
  .site-header nav {
    font-size: 10px;
  }
  .site-header nav a[data-nav] {
    padding-inline: 5px;
  }
}
@media (max-width: 380px) {
  .site-header .identity {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header::before,
  .site-header nav a {
    transition: none;
  }
  .site-header nav a:hover,
  .site-header nav a:active {
    transform: none;
  }
}

@view-transition {
  navigation: auto;
}
#page-view main[tabindex='-1']:focus {
  outline: none;
}

::view-transition-old(root) {
  animation: page-fade-out 140ms ease-out both;
  mix-blend-mode: normal;
}
::view-transition-new(root) {
  animation: page-arrive 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
  mix-blend-mode: normal;
}

/* Browsers without cross-document transitions still get a quiet entrance. */
.page-fade-fallback:not(.music-session) main {
  animation: page-arrive 300ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes page-fade-out {
  to {
    opacity: 0;
  }
}
@keyframes page-arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  .page-fade-fallback:not(.music-session) main,
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

:is(
  .hero-mascot,
  .project-heading-sho,
  .writing-heading-sho,
  .experience-heading-sho,
  .about-heading-sho,
  .music-sho-stage,
  .lost-sho
) {
  transform-origin: 50% 95%;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(
    .hero-mascot,
    .project-heading-sho,
    .writing-heading-sho,
    .experience-heading-sho,
    .about-heading-sho,
    .music-sho-stage,
    .lost-sho
  ):hover {
    transform: translateY(-2px) rotate(-2deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(
    .hero-mascot,
    .project-heading-sho,
    .writing-heading-sho,
    .experience-heading-sho,
    .about-heading-sho,
    .music-sho-stage,
    .lost-sho
  ) {
    transition: none;
    transform: none;
  }
}

/* A short follow-through after activating a primary call to action. */
a.layered-button {
  position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  a.layered-button.has-click-feedback::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1px solid var(--color-ink);
    border-radius: inherit;
    pointer-events: none;
    animation: action-echo 360ms ease-out both;
  }
}
@keyframes action-echo {
  from {
    opacity: 0.22;
    scale: 0.98;
  }
  to {
    opacity: 0;
    scale: 1.1;
  }
}


/* Shared foundation: document, layout, navigation, footer, and reusable screen frames. */
[hidden] {
  display: none !important;
}
:root {
  --color-background: #fff;
  --color-muted: #626262;
  --color-border: #e5e5e5;
  --color-ink: #000;
  --color-accent: #0066ff;
  --color-accent-dark: #0047b3;
  --color-accent-light: #2680ff;
  --color-accent-soft: #0066ff33;
  --color-accent-glow: #0066ff20;
  --color-accent-shadow: #0066ff30;
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}
body {
  background: var(--color-background);
  color: var(--color-ink);
  font-family:
    DM Sans,
    Arial,
    sans-serif;
  font-size: 14px;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 6px;
}
summary:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 6px;
}
::selection {
  background: #000;
  color: #fff;
}
.shell {
  margin: auto;
  width: min(860px, calc(100% - 64px));
}
.identity {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.identity span {
  color: var(--color-muted);
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 5px;
}
h2 {
  font-size: 24px;
  letter-spacing: -1px;
}
h2,
h3 {
  margin: 0;
}
h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.25px;
}
.skip {
  background: var(--color-ink);
  color: #fff;
  left: 20px;
  padding: 12px;
  position: fixed;
  top: -60px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
@media (min-width: 1600px) {
  .shell {
    width: min(960px, 60vw);
  }
}
@media (max-width: 700px) {
  .shell {
    width: calc(100% - 40px);
  }
  .identity {
    font-size: 14px;
  }
}
@media (max-width: 380px) {
  h1 {
    font-size: 41px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
h1 {
  font-size: clamp(43px, 4.7vw, 67px);
  font-weight: 650;
  letter-spacing: -3.4px;
  line-height: 1.06;
  margin: 26px 0 29px;
}
h2 {
  font-weight: 600;
}
@media (max-width: 700px) {
  .identity span {
    font-size: 10px;
  }
  h1 {
    font-size: clamp(36px, 7.4vw, 51px);
    letter-spacing: -2px;
  }
}
:root {
  --section-space: 56px;
  --content-gap: 28px;
}
@media (max-width: 700px) {
  :root {
    --section-space: 48px;
    --content-gap: 24px;
  }
}
.caliber-screen {
  background: #fff;
  border: 1.5px solid #8c9490;
  border-radius: 9px;
  box-shadow:
    0 3px 6px #0000000d,
    0 12px 24px #0000001c;
  display: block;
  height: 72%;
  overflow: hidden;
  position: absolute;
  width: 78%;
}
.caliber-screen.screen-back {
  left: 0;
  top: 0;
}
.caliber-screen.screen-front {
  border-color: #69736c;
  bottom: 0;
  box-shadow:
    0 4px 8px #00000014,
    0 18px 32px #00000026;
  right: 0;
  z-index: 1;
}
@media (max-width: 700px) {
  .caliber-screen {
    border-radius: 6px;
  }
}

/* Shared raised hover treatment for primary calls to action. */
a.layered-button {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}
@media (hover: hover) and (pointer: fine) {
  a.layered-button:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    text-decoration: none;
    box-shadow:
      0 6px 0 -1px var(--color-accent),
      0 6px 0 #000;
    transform: translateY(-3px);
  }
}
a.layered-button:active {
  transform: translateY(0);
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  a.layered-button {
    transition: none;
  }
  a.layered-button:hover,
  a.layered-button:active {
    transform: none;
  }
}
