﻿@font-face {
      font-family: "Inter";
      src: url("./fonts/Inter-Latin.woff2") format("woff2");
      font-weight: 400 700;
      font-style: normal;
      font-display: swap;
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }

    @font-face {
      font-family: "Inter";
      src: url("./fonts/Inter-LatinExt.woff2") format("woff2");
      font-weight: 400 700;
      font-style: normal;
      font-display: swap;
      unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
    }

    :root {
      --bg: #131313;
      --surface: #1c1b1b;
      --surface-strong: #252525;
      --line: #363636;
      --text: #e5e2e1;
      --muted: #bfc2c2;
      --soft: #8e9192;
      --accent: #b7c8e1;
      --accent-strong: #d3e4fe;
      --inverse: #1c1b1b;
      --max: 1180px;
    }

    .theme-light {
      --bg: #f4f1ee;
      --surface: #ffffff;
      --surface-strong: #e9e4df;
      --line: #d5cec6;
      --text: #242221;
      --muted: #55514f;
      --soft: #77716d;
      --accent: #315f8d;
      --accent-strong: #173e64;
      --inverse: #f8f5f2;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: "Inter", Arial, sans-serif;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    img {
      display: block;
      max-width: 100%;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button {
      font: inherit;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 10;
      border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
      background: color-mix(in srgb, var(--bg) 86%, transparent);
      backdrop-filter: blur(18px);
    }

    .header-inner,
    .section-inner {
      width: min(calc(100% - 40px), var(--max));
      margin: 0 auto;
    }

    .header-inner {
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      font-size: 1.35rem;
      font-weight: 700;
      letter-spacing: -0.04em;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 28px;
    }

    .nav a,
    .eyebrow,
    .tag,
    .track-meta,
    .social-link,
    .theme-toggle {
      font-size: 0.76rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .nav a,
    .social-link,
    .theme-toggle {
      color: var(--muted);
      transition: color 160ms ease, opacity 160ms ease;
    }

    .nav a:hover,
    .social-link:hover,
    .theme-toggle:hover {
      color: var(--text);
    }

    .theme-toggle {
      width: 40px;
      height: 40px;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: pointer;
    }

    .hero {
      min-height: 78vh;
      display: grid;
      place-items: center;
      text-align: center;
      padding: 96px 0 88px;
    }

    .not-found {
      min-height: calc(100vh - 76px);
      display: grid;
      place-items: center;
      overflow: hidden;
      padding: 112px 0 96px;
      text-align: center;
    }

    .not-found::before {
      content: "404";
      position: absolute;
      inset: auto 0 50%;
      z-index: -1;
      color: color-mix(in srgb, var(--surface-strong) 70%, transparent);
      font-size: clamp(8rem, 28vw, 18rem);
      font-weight: 800;
      line-height: 0.7;
      letter-spacing: -0.08em;
      transform: translateY(42%);
      pointer-events: none;
    }

    .not-found-inner {
      position: relative;
      max-width: 760px;
    }

    .not-found p:not(.eyebrow) {
      max-width: 610px;
      margin: 24px auto 0;
      color: var(--muted);
      font-size: 1.1rem;
    }

    .hero-content {
      max-width: 860px;
    }

    h1,
    h2,
    h3,
    p {
      margin: 0;
    }

    h1 {
      font-size: clamp(3rem, 8vw, 5.8rem);
      line-height: 1.02;
      letter-spacing: -0.055em;
      font-weight: 600;
    }

    h1 span,
    .eyebrow {
      color: var(--accent);
    }

    .hero p {
      max-width: 690px;
      margin: 28px auto 0;
      color: var(--muted);
      font-size: 1.1rem;
    }

    .actions {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 44px;
    }

    .button {
      min-width: 154px;
      padding: 14px 22px;
      border: 1px solid var(--line);
      border-radius: 3px;
      color: var(--text);
      font-size: 0.77rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
    }

    .button.primary {
      border-color: var(--accent);
      background: var(--accent);
      color: var(--inverse);
    }

    .button:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
    }

    .section {
      padding: 86px 0;
      border-top: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
    }

    .section.alt {
      background: var(--surface);
    }

    .about-grid {
      display: grid;
      grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
      gap: 56px;
      align-items: center;
    }

    .portrait {
      aspect-ratio: 1;
      overflow: hidden;
      border-radius: 28px;
      background: var(--surface-strong);
    }

    .portrait img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(1);
      opacity: 0.86;
    }

    .section-title {
      margin-top: 14px;
      font-size: clamp(2rem, 4vw, 3rem);
      line-height: 1.15;
      letter-spacing: -0.04em;
      font-weight: 600;
    }

    .copy {
      margin-top: 28px;
      color: var(--muted);
    }

    .copy p + p {
      margin-top: 16px;
    }

    .stack-list {
      display: flex;
      flex-wrap: wrap;
      gap: 28px;
      margin-top: 30px;
    }

    .stack-list strong {
      display: block;
      font-size: 0.78rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .stack-list span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 0.9rem;
    }

    .section-heading {
      margin-bottom: 46px;
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      align-items: stretch;
    }

    .project {
      display: flex;
      flex-direction: column;
      min-height: 100%;
    }

    .project-image {
      aspect-ratio: 16 / 9;
      overflow: hidden;
      border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
      background: var(--surface-strong);
    }

    .project-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 500ms ease;
    }

    .project:hover img {
      transform: scale(1.03);
    }

    .project h3 {
      margin-top: 18px;
      font-size: 1.32rem;
      line-height: 1.25;
      letter-spacing: -0.03em;
    }

    .project p {
      margin-top: 10px;
      color: var(--muted);
      min-height: 96px;
      max-width: 34ch;
      text-align: left;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: auto;
      padding-top: 18px;
    }

    .tag {
      padding: 5px 8px;
      background: var(--surface-strong);
      color: var(--muted);
      letter-spacing: 0.04em;
    }

    .track-list {
      display: grid;
      gap: 10px;
    }

    .track {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 24px;
      padding: 22px;
      border: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
      background: var(--surface);
      transition: background 160ms ease, border-color 160ms ease;
    }

    .track:hover {
      border-color: var(--line);
      background: var(--surface-strong);
    }

    .track-main {
      display: flex;
      align-items: center;
      gap: 18px;
      min-width: 0;
    }

    .play-icon {
      flex: 0 0 auto;
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      background: var(--accent);
      color: var(--inverse);
    }

    .track h3 {
      font-size: 1.05rem;
      line-height: 1.25;
    }

    .track-meta {
      margin-top: 4px;
      color: var(--soft);
      letter-spacing: 0.04em;
    }

    .track-extra {
      display: flex;
      align-items: center;
      gap: 22px;
      color: var(--muted);
    }

    .bars {
      display: flex;
      align-items: end;
      gap: 4px;
      height: 26px;
    }

.bars span {
  width: 4px;
  background: var(--accent);
  opacity: 0.85;
}

.bar-10 { height: 10px; }
.bar-12 { height: 12px; }
.bar-16 { height: 16px; }
.bar-17 { height: 17px; }
.bar-20 { height: 20px; }
.bar-22 { height: 22px; }
.bar-24 { height: 24px; }
.bar-30 { height: 30px; }

    .download {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border: 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
    }

    .contact-panel {
      min-height: 620px;
      display: flex;
      align-items: stretch;
      border-top: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
      background: var(--bg);
      color: var(--text);
    }

    .contact-panel.compact {
      min-height: auto;
    }

    .contact-panel.compact .contact-inner {
      padding: 34px 0;
    }

    .contact-bottom.footer-only {
      align-items: center;
      margin-top: 0;
    }

    .contact-inner {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 66px 0 48px;
    }

    .contact-kicker {
      color: var(--accent);
      font-size: 0.9rem;
      font-weight: 800;
      letter-spacing: 0.24em;
      text-transform: uppercase;
    }

    .contact-title {
      display: inline-block;
      max-width: 100%;
      margin-top: 34px;
      color: var(--text);
      font-size: clamp(5.7rem, 15vw, 12rem);
      font-size: max(5.7rem, min(15vw, 12rem));
      font-weight: 800;
      line-height: 0.9;
      letter-spacing: -0.075em;
      text-transform: uppercase;
    }

    .contact-title:hover {
      color: var(--accent);
    }

    .contact-bottom {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 32px;
      margin-top: 90px;
    }

    .contact-socials {
      display: flex;
      flex-wrap: wrap;
      gap: clamp(28px, 8vw, 82px);
    }

    .contact-panel .social-link {
      color: var(--text);
      font-size: 0.88rem;
      font-weight: 800;
      letter-spacing: 0.06em;
    }

    .contact-panel .social-link:hover {
      color: var(--accent);
    }

    .contact-signature {
      display: grid;
      gap: 2px;
      color: var(--soft);
      font-size: 0.92rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      line-height: 1.35;
      text-align: right;
      text-transform: uppercase;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 860px) {
      .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
      }

      .nav {
        width: 100%;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 2px;
      }

      .theme-toggle {
        position: absolute;
        top: 18px;
        right: 20px;
      }

      .hero {
        min-height: auto;
        padding: 76px 0 72px;
      }

      .not-found {
        min-height: auto;
        padding: 86px 0 76px;
      }

      .about-grid,
      .projects-grid {
        grid-template-columns: 1fr;
      }

      .section {
        padding: 68px 0;
      }

      .track {
        grid-template-columns: 1fr;
      }

      .track-extra {
        display: none;
      }

      .contact-panel {
        min-height: 560px;
      }

      .contact-inner {
        padding: 48px 0 34px;
      }

      .contact-bottom {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 70px;
      }

      .contact-bottom.footer-only {
        margin-top: 0;
      }

      .contact-signature {
        text-align: left;
      }
    }

