    /* C005: Home page stylesheet for index.html; C003 theme tokens and C002 menu states are shared with script.js/site-shell.css. */
    :root {
      --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --ease-out: cubic-bezier(.2, .8, .2, 1);
      --ease-bounce: cubic-bezier(.18, .89, .32, 1.28);
      --max-width: 1180px;
      --radius: 22px;
      --radius-lg: 34px;
      --page-pad: clamp(1rem, 4vw, 2rem);
      --red: #E1192D;
      --red-hot: #E1192D;
      --red-deep: #B91224;
      --red-soft: rgba(225, 25, 45, .1);
      --red-glow: rgba(225, 25, 45, .18);
      --ink: #111111;
      --paper: #ffffff;
      --paper-soft: #f7f5f2;
      --border-soft: rgba(17, 17, 17, .09);
      --shadow-soft: 0 22px 70px rgba(17, 17, 17, .08);
      --shadow-hover: 0 28px 90px rgba(17, 17, 17, .13);
      --shadow-thin: 0 14px 40px rgba(0, 0, 0, .16);
    }

    /* C003: Theme variables are selected by theme.js before first paint and updated by site-menu.js/root script controls. */
    :root,
    html[data-theme="light"] {
      --bg: var(--paper-soft);
      --bg-elevated: var(--paper);
      --bg-muted: #efeeeb;
      --text: var(--ink);
      --text-muted: #68686d;
      --line: var(--border-soft);
      --line-strong: rgba(17, 17, 17, .16);
      --accent-a: var(--red);
      --accent-b: var(--red-hot);
      --accent-c: var(--red-deep);
      --accent-d: #5C0712;
      --glass: rgba(255, 255, 255, .72);
      --button-text: #ffffff;
    }

    html[data-theme="dark"] {
      --bg: #101010;
      --bg-elevated: #1a1a1c;
      --bg-muted: #242426;
      --text: #f5f5f7;
      --text-muted: #b7b7bf;
      --line: rgba(255, 255, 255, .12);
      --line-strong: rgba(255, 255, 255, .22);
      --accent-a: #E1192D;
      --accent-b: #E1192D;
      --accent-c: #B91224;
      --accent-d: #5C0712;
      --glass: rgba(28, 28, 30, .74);
      --paper: #1a1a1c;
      --paper-soft: #101010;
      --border-soft: rgba(255, 255, 255, .12);
      --shadow-soft: 0 22px 70px rgba(0, 0, 0, .28);
      --shadow-hover: 0 28px 90px rgba(0, 0, 0, .38);
      --button-text: #ffffff;
    }

    * {
      box-sizing: border-box;
    }

    html {
      background: var(--bg);
      color: var(--text);
      scroll-behavior: smooth;
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }

    body {
      margin: 0;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      font-family: var(--font-sans);
      background:
        radial-gradient(circle at 74% 8%, var(--red-glow), transparent 22rem),
        linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg), #ffffff 18%) 42%, var(--bg));
      color: var(--text);
      font-feature-settings: "kern";
      line-height: 1.5;
      overflow-x: hidden;
      transition: background-color .35s ease, color .35s ease;
    }

    html[data-theme="light"] body {
      background:
        radial-gradient(circle at 50% 9rem, rgba(225, 25, 45, .14), transparent 31rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 34rem, color-mix(in srgb, var(--bg), #ffffff 12%) 62%, var(--bg));
    }

    .page-reveal {
      position: relative;
      isolation: isolate;
    }

    html.js .page-reveal::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 40;
      background: var(--bg);
      opacity: 1;
      visibility: visible;
      pointer-events: none;
      transition: opacity .82s ease, visibility .82s ease, background-color .65s ease;
    }

    html[data-theme="light"] .page-reveal::after {
      background:
        radial-gradient(circle at 50% 18rem, rgba(225, 25, 45, .055), transparent 32rem),
        linear-gradient(180deg, var(--bg) 0%, var(--bg) 24%, color-mix(in srgb, var(--bg), var(--accent-a) 1.8%) 100%);
    }

    html[data-theme="dark"] .page-reveal::after {
      background: linear-gradient(90deg, #0b0b0b 0%, #0b0b0b 58%, #150b0c 100%);
    }

    html.site-nav-scrolled .page-reveal::after {
      opacity: 0;
      visibility: hidden;
    }

    @supports (overflow: clip) {
      html,
      body {
        overflow-x: clip;
      }
    }

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

    button,
    input,
    textarea {
      font: inherit;
    }

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

    ::-moz-selection {
      background-color: #E1192D;
      color: #ffffff;
    }

    ::selection {
      background-color: #E1192D;
      color: #ffffff;
    }

    .skip-link {
      position: fixed;
      left: 1rem;
      top: 1rem;
      z-index: 200;
      transform: translateY(-150%);
      border-radius: var(--radius);
      background: var(--text);
      color: var(--bg);
      padding: .75rem 1rem;
      transition: transform .2s ease;
    }

    .skip-link:focus {
      transform: translateY(0);
    }

    /* C002: Shared header/menu shell hooks match index.html markup and site-menu.js open/scrolled classes. */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      border-bottom: 1px solid var(--line);
      background: color-mix(in srgb, var(--bg), transparent 16%);
      backdrop-filter: blur(18px);
    }

    .nav-shell {
      width: min(100% - 2rem, var(--max-width));
      min-height: 72px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: .7rem;
      font-size: .95rem;
      font-weight: 800;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .brand::before,
    .brand::after {
      content: none;
      display: none;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: .35rem;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      padding: 0;
      margin-left: auto;
    }

    .nav-links a {
      border-radius: 999px;
      color: var(--text-muted);
      font-size: .9rem;
      font-weight: 700;
      padding: .6rem .82rem;
      transition: background .2s ease, color .2s ease, transform .2s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
      background: var(--bg-muted);
      color: var(--text);
      transform: translateY(-1px);
    }

    .theme-toggle {
      position: relative;
      width: 42px;
      height: 42px;
      flex: 0 0 auto;
      display: inline-grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: color-mix(in srgb, var(--bg-elevated), transparent 8%);
      color: var(--text);
      cursor: pointer;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(17, 17, 17, .05);
      transition: border-color .2s ease, color .2s ease, transform .2s ease;
    }

    .theme-toggle:hover,
    .theme-toggle:focus-visible {
      border-color: var(--line-strong);
      color: var(--accent-a);
      transform: translateY(-1px);
    }

    .theme-toggle-icon {
      position: relative;
      width: 18px;
      height: 18px;
      display: block;
      border-radius: 50%;
      overflow: hidden;
      background: transparent;
    }

    .theme-toggle-symbol {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background: var(--accent-a);
      transition: transform .36s var(--ease-out);
      will-change: transform;
    }

    .theme-toggle-symbol.sun {
      transform: translateY(0);
    }

    .theme-toggle-symbol.moon {
      background:
        radial-gradient(circle at 66% 34%, var(--bg-elevated) 0 42%, transparent 44%),
        var(--accent-a);
      transform: translateY(145%);
    }

    .theme-toggle:disabled {
      cursor: default;
    }

    .theme-toggle.is-rising .theme-toggle-symbol {
      transition-duration: .38s;
    }

    html[data-theme="light"] .theme-toggle.is-dropping .theme-toggle-symbol.sun {
      transform: translateY(145%);
    }

    html[data-theme="dark"] .theme-toggle.is-dropping .theme-toggle-symbol.moon {
      transform: translateY(145%);
    }

    html[data-theme="dark"] .theme-toggle-symbol.sun {
      transform: translateY(145%);
    }

    html[data-theme="dark"] .theme-toggle-symbol.moon {
      transform: translateY(0);
    }

    .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;
    }

    main {
      isolation: isolate;
    }

    .section {
      position: relative;
      width: min(100% - 2rem, var(--max-width));
      margin: 0 auto;
      padding: 6rem 0;
    }

    /* C005: Home hero styles are tied to .hero-media assets and the page-anchored veil immediately after the hero. */
    .hero {
      position: relative;
      width: 100%;
      min-height: min(720px, calc(100svh - 118px));
      display: grid;
      align-items: center;
      overflow: hidden;
      border-bottom: 1px solid var(--line);
      background:
        linear-gradient(90deg, color-mix(in srgb, var(--bg), transparent 2%) 0%, color-mix(in srgb, var(--bg), transparent 20%) 56%, transparent 100%),
        radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--accent-c), transparent 74%), transparent 28rem),
        radial-gradient(circle at 78% 74%, color-mix(in srgb, var(--accent-a), transparent 76%), transparent 26rem),
        var(--bg);
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      background:
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        linear-gradient(0deg, var(--line) 1px, transparent 1px);
      background-size: 80px 80px;
      mask-image: linear-gradient(90deg, transparent 0%, black 42%, transparent 100%);
      opacity: .42;
      pointer-events: none;
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      width: min(100% - 2rem, var(--max-width));
      margin: 0 auto;
      padding: clamp(3rem, 8vw, 7rem) 0 4rem;
      display: grid;
      grid-template-columns: 1fr;
      justify-items: center;
      align-items: center;
      text-align: center;
      gap: clamp(2rem, 5vw, 5rem);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: .55rem;
      color: var(--text-muted);
      font-size: .83rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .eyebrow::before {
      content: "";
      width: 34px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--accent-a), var(--accent-b), var(--accent-c));
    }

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

    .hero-title {
      max-width: 820px;
      margin-top: 1.15rem;
      font-size: clamp(4.4rem, 11vw, 9.5rem);
      line-height: .86;
      letter-spacing: 0;
      text-transform: lowercase;
    }

    .hero-title span {
      display: block;
      transform-origin: left center;
      animation: titleRise .9s var(--ease-out) both;
    }

    .hero-title span:nth-child(2) {
      color: transparent;
      -webkit-text-stroke: 1px color-mix(in srgb, var(--text), transparent 24%);
      animation-delay: .08s;
    }

    .hero-copy {
      max-width: 680px;
      margin-top: 1.6rem;
      color: var(--text-muted);
      font-size: clamp(1.08rem, 2vw, 1.35rem);
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: .85rem;
      margin-top: 2rem;
    }

    .hero-mode-note {
      display: inline-flex;
      align-items: baseline;
      justify-content: center;
      gap: .38rem;
      margin-top: .95rem;
      color: var(--text-muted);
      font-size: .82rem;
      line-height: 1.35;
    }

    html[data-theme="dark"] .hero-mode-note {
      display: none;
    }

    .hero-mode-note button {
      border: 0;
      background: transparent;
      color: var(--accent-a);
      cursor: pointer;
      font: inherit;
      font-weight: 850;
      padding: 0;
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: .22em;
    }

    .hero-mode-note button:hover,
    .hero-mode-note button:focus-visible {
      color: var(--accent-b);
      outline: none;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      border: 1px solid transparent;
      border-radius: 8px;
      padding: .78rem 1rem;
      font-size: .93rem;
      font-weight: 800;
      white-space: nowrap;
      transition: transform .2s ease, box-shadow .2s ease, background 1.12s ease, border-color 1.12s ease, color 1.12s ease;
    }

    .button.primary {
      background: var(--accent-b);
      color: #ffffff;
      box-shadow: 0 12px 36px color-mix(in srgb, var(--accent-b), transparent 72%);
    }

    .button.secondary {
      border-color: var(--line-strong);
      background: color-mix(in srgb, var(--bg-elevated), transparent 16%);
      color: var(--text);
    }

    .button:hover,
    .button:focus-visible {
      transform: translateY(-2px);
      box-shadow: var(--shadow-thin);
    }

    .visual-stack {
      position: relative;
      min-height: 430px;
    }

    .visual-panel {
      position: absolute;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: color-mix(in srgb, var(--glass), transparent 4%);
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(14px);
    }

    .visual-panel.art {
      inset: 1rem 4rem auto 0;
      min-height: 270px;
      background:
        radial-gradient(circle at 30% 32%, color-mix(in srgb, var(--accent-c), transparent 8%) 0 7%, transparent 8% 100%),
        radial-gradient(circle at 70% 48%, color-mix(in srgb, var(--accent-a), transparent 10%) 0 10%, transparent 11% 100%),
        linear-gradient(140deg, color-mix(in srgb, var(--accent-b), transparent 15%), color-mix(in srgb, var(--accent-c), transparent 34%) 46%, color-mix(in srgb, var(--accent-a), transparent 18%));
    }

    .visual-panel.code {
      right: 0;
      bottom: 3rem;
      width: min(92%, 320px);
      padding: 1rem;
    }

    .visual-panel.video {
      left: 1.25rem;
      bottom: 0;
      width: 185px;
      aspect-ratio: 4 / 3;
    }

    .visual-panel.art::before,
    .visual-panel.video::before {
      content: "";
      position: absolute;
      inset: 10%;
      border: 1px solid rgba(255, 255, 255, .5);
      border-radius: 50%;
      mix-blend-mode: screen;
    }

    .visual-panel.art::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 44%;
      background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 14px);
      transform: skewY(-8deg);
      transform-origin: bottom right;
    }

    .visual-panel.video::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 24%),
        linear-gradient(0deg, rgba(255, 255, 255, .1) 0 1px, transparent 1px 24%),
        radial-gradient(circle at 70% 30%, var(--accent-b), transparent 32%),
        linear-gradient(135deg, var(--accent-c), var(--accent-a));
    }

    .code-line {
      height: 10px;
      margin: .62rem 0;
      border-radius: 999px;
      background: var(--line-strong);
      transform-origin: left;
    }

    .code-line:nth-child(1) {
      width: 58%;
      background: var(--accent-a);
    }

    .code-line:nth-child(2) {
      width: 83%;
    }

    .code-line:nth-child(3) {
      width: 68%;
      background: var(--accent-c);
    }

    .code-line:nth-child(4) {
      width: 74%;
    }

    .code-line:nth-child(5) {
      width: 45%;
      background: var(--accent-b);
    }

    .audio-orbit {
      position: absolute;
      right: 2.25rem;
      top: 0;
      width: 126px;
      height: 126px;
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      align-items: end;
      gap: 5px;
      border: 1px solid var(--line);
      border-radius: 50%;
      padding: 28px;
      background: var(--glass);
      box-shadow: var(--shadow-thin);
    }

    .audio-orbit span {
      display: block;
      min-height: 18px;
      border-radius: 999px;
      background: linear-gradient(180deg, var(--accent-b), var(--accent-c));
    }

    .audio-orbit span:nth-child(2n) {
      height: 38px;
      background: linear-gradient(180deg, var(--accent-a), var(--accent-d));
    }

    .audio-orbit span:nth-child(3n) {
      height: 50px;
    }

    /* C005: Root content systems for capabilities, featured work, process, contact, and reveal animations. */
    .section-kicker {
      color: var(--accent-a);
      font-size: .78rem;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .09em;
    }

    .section-heading {
      display: grid;
      grid-template-columns: minmax(0, .72fr) minmax(260px, .28fr);
      align-items: end;
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .section-heading h2 {
      margin-top: .55rem;
      font-size: clamp(2.25rem, 5vw, 4.7rem);
      line-height: .95;
      letter-spacing: 0;
    }

    .section-heading p {
      color: var(--text-muted);
      font-size: 1rem;
    }

    .capability-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 1rem;
    }

    .capability-card {
      position: relative;
      min-height: 270px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--bg-elevated);
      padding: 1.15rem;
      transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease;
    }

    .capability-card::before {
      content: "";
      position: absolute;
      inset: -36% -32% auto auto;
      width: 150px;
      aspect-ratio: 1;
      border-radius: 50%;
      background: var(--card-accent);
      opacity: .18;
      transition: transform .35s var(--ease-out), opacity .35s ease;
    }

    .capability-card:hover {
      border-color: color-mix(in srgb, var(--card-accent), var(--line) 45%);
      box-shadow: var(--shadow-thin);
      transform: translateY(-8px);
    }

    .capability-card:hover::before {
      opacity: .28;
      transform: scale(1.8);
    }

    .capability-card h3 {
      position: relative;
      margin-top: 2.4rem;
      font-size: clamp(1.25rem, 2vw, 1.7rem);
      line-height: 1.02;
    }

    .capability-card p {
      position: relative;
      color: var(--text-muted);
      font-size: .95rem;
    }

    .capability-index {
      position: relative;
      display: inline-grid;
      width: 34px;
      height: 34px;
      place-items: center;
      border: 1px solid color-mix(in srgb, var(--card-accent), var(--line) 45%);
      border-radius: 8px;
      color: var(--card-accent);
      font-size: .8rem;
      font-weight: 900;
    }

    .project-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1rem;
      perspective: 1200px;
    }

    .project-card {
      position: relative;
      min-height: 410px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--bg-elevated);
      transform-style: preserve-3d;
      transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    }

    .project-card:hover {
      border-color: var(--line-strong);
      box-shadow: var(--shadow-soft);
    }

    .project-media {
      min-height: 220px;
      position: relative;
      overflow: hidden;
      background: var(--bg-muted);
    }

    .project-media::before,
    .project-media::after {
      content: "";
      position: absolute;
      inset: 0;
    }

    .project-media::before {
      background:
        radial-gradient(circle at 26% 34%, var(--accent-b), transparent 16%),
        radial-gradient(circle at 76% 26%, var(--accent-a), transparent 18%),
        radial-gradient(circle at 62% 78%, var(--accent-c), transparent 20%),
        linear-gradient(135deg, color-mix(in srgb, var(--accent-a), transparent 40%), color-mix(in srgb, var(--accent-c), transparent 42%));
      filter: saturate(1.15);
      transform: scale(1.05);
      transition: transform .4s var(--ease-out);
    }

    .project-media::after {
      background:
        linear-gradient(90deg, rgba(255, 255, 255, .2) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: linear-gradient(180deg, black, transparent);
      opacity: .55;
    }

    .project-card:hover .project-media::before {
      transform: scale(1.12) rotate(2deg);
    }

    .project-body {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 1rem;
      padding: 1.15rem;
      transform: translateZ(30px);
    }

    .tag-row {
      display: flex;
      flex-wrap: wrap;
      gap: .45rem;
    }

    .tag {
      border: 1px solid var(--line);
      border-radius: 999px;
      color: var(--text-muted);
      font-size: .75rem;
      font-weight: 800;
      padding: .32rem .55rem;
    }

    .project-body h3 {
      font-size: 1.45rem;
      line-height: 1.05;
    }

    .project-body p {
      color: var(--text-muted);
      font-size: .95rem;
    }

    .timeline {
      display: grid;
      gap: 1rem;
      counter-reset: step;
    }

    .timeline-item {
      position: relative;
      display: grid;
      grid-template-columns: 110px minmax(0, 1fr);
      gap: 1.25rem;
      border-top: 1px solid var(--line);
      padding: 1.5rem 0 0;
      counter-increment: step;
    }

    .timeline-item::before {
      content: counter(step, decimal-leading-zero);
      color: var(--accent-b);
      font-size: .82rem;
      font-weight: 900;
    }

    .timeline-item h3 {
      font-size: clamp(1.35rem, 2.4vw, 2.1rem);
      line-height: 1.08;
    }

    .timeline-item p {
      max-width: 720px;
      margin-top: .45rem;
      color: var(--text-muted);
    }

    .contact-band {
      width: min(100% - 2rem, var(--max-width));
      margin: 0 auto 1rem;
      display: grid;
      grid-template-columns: minmax(0, .9fr) minmax(250px, .38fr);
      gap: 2rem;
      align-items: center;
      border: 1px solid var(--line);
      border-radius: 8px;
      background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent-a), transparent 86%), transparent 36%),
        linear-gradient(315deg, color-mix(in srgb, var(--accent-c), transparent 86%), transparent 40%),
        var(--bg-elevated);
      padding: clamp(1.4rem, 4vw, 2.2rem);
      overflow: hidden;
    }

    .contact-band h2 {
      max-width: 750px;
      font-size: clamp(2rem, 5vw, 4.6rem);
      line-height: .97;
    }

    .contact-band p {
      margin-top: 1rem;
      color: var(--text-muted);
      font-size: 1.05rem;
    }

    .contact-links {
      display: grid;
      gap: .65rem;
    }

    .contact-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: color-mix(in srgb, var(--bg), transparent 28%);
      padding: .85rem .95rem;
      color: var(--text);
      font-weight: 850;
      transition: transform .2s ease, border-color .2s ease, background .2s ease;
    }

    .contact-link::after {
      content: "";
      width: 10px;
      height: 10px;
      border-top: 2px solid currentColor;
      border-right: 2px solid currentColor;
      transform: rotate(45deg);
    }

    .contact-link:hover,
    .contact-link:focus-visible {
      border-color: var(--line-strong);
      background: var(--bg-muted);
      transform: translateX(4px);
    }

    .site-footer {
      width: min(100% - 2rem, var(--max-width));
      margin: 0 auto;
      padding: 2rem 0 3rem;
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      color: var(--text-muted);
      font-size: .9rem;
      border-top: 1px solid var(--line);
    }

    html.js .reveal {
      opacity: 0;
      transform: translateY(26px);
      transition: opacity .78s ease, transform .78s var(--ease-out);
      transition-delay: var(--reveal-delay, 0ms);
    }

    html.js .reveal-left {
      transform: translateX(-54px);
    }

    html.js .reveal-right {
      transform: translateX(54px);
    }

    html.js .reveal-fade {
      transform: none;
    }

    html.js .reveal.in-view {
      opacity: 1;
      transform: translateY(0);
    }

    html.js .stagger > * {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity .62s ease, transform .62s var(--ease-out);
      transition-delay: calc(var(--i, 0) * 95ms);
    }

    html.js .stagger.in-view > * {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    @keyframes titleRise {
      from {
        opacity: 0;
        transform: translateY(28px) rotate(.8deg);
      }
      to {
        opacity: 1;
        transform: translateY(0) rotate(0);
      }
    }

    @keyframes heroContentDarkIn {
      from {
        opacity: 1;
        transform: translateX(var(--hero-slide-distance));
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes heroContentLightIn {
      from {
        opacity: 1;
        transform: translateX(calc(var(--hero-slide-distance) * -1));
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes heroMountainIn {
      from {
        opacity: 0;
        transform: translateX(42px) scale(1.04);
      }
      to {
        opacity: .9;
        transform: translateX(0) scale(1);
      }
    }

    @keyframes heroMountainOut {
      from {
        opacity: .9;
        transform: translateX(0) scale(1);
      }
      to {
        opacity: 0;
        transform: translateX(42px) scale(1.04);
      }
    }

    @keyframes heroMountainOverlayIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    @keyframes heroMountainOverlayOut {
      from {
        opacity: 1;
      }
      to {
        opacity: 0;
      }
    }

    @keyframes heroMountainGlowIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    @keyframes heroMountainGlowOut {
      from {
        opacity: 1;
      }
      to {
        opacity: 0;
      }
    }

    @keyframes heroMarkIn {
      from {
        opacity: 0;
        transform: translate(-84px, -42%) scale(.94);
      }
      to {
        opacity: .4;
        transform: translate(0, -42%) scale(1);
      }
    }

    @keyframes heroMarkOut {
      from {
        opacity: .4;
        transform: translate(0, -42%) scale(1);
      }
      to {
        opacity: 0;
        transform: translate(-84px, -42%) scale(.94);
      }
    }

    @media (max-width: 980px) {
      .hero-inner,
      .section-heading,
      .contact-band {
        grid-template-columns: 1fr;
      }

      .hero-inner {
        padding-top: 4.25rem;
      }

      .visual-stack {
        min-height: 360px;
        max-width: 520px;
      }

      .capability-grid,
      .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 760px) {
      .nav-shell {
        min-height: 64px;
        flex-wrap: wrap;
        padding: .75rem 0;
      }

      .nav-links {
        width: 100%;
        order: 3;
        flex-wrap: wrap;
        margin-left: 0;
        overflow-x: visible;
      }

      .nav-links a {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
      }

      .section {
        padding: 4.5rem 0;
      }

      .hero {
        min-height: calc(100svh - 112px);
      }

      .hero-title {
        font-size: clamp(4.15rem, 19vw, 7rem);
      }

      .hero-actions {
        align-items: stretch;
        flex-direction: column;
      }

      .button {
        width: 100%;
      }

      .visual-stack {
        min-height: 310px;
      }

      .visual-panel.art {
        inset: .5rem 1.8rem auto 0;
        min-height: 215px;
      }

      .visual-panel.code {
        width: min(82%, 300px);
        bottom: 1.2rem;
      }

      .visual-panel.video {
        left: .7rem;
        width: 145px;
      }

      .audio-orbit {
        right: .7rem;
        width: 106px;
        height: 106px;
        padding: 23px;
      }

      .capability-grid,
      .project-grid {
        grid-template-columns: 1fr;
      }

      .capability-card {
        min-height: 220px;
      }

      .project-card {
        min-height: auto;
      }

      .timeline-item {
        grid-template-columns: 1fr;
        gap: .55rem;
      }

      .site-footer {
        flex-direction: column;
      }
    }

    @media (max-width: 430px) {
      .brand span {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .section,
      .hero-inner,
      .nav-shell,
      .contact-band,
      .site-footer {
        width: min(100% - 1.2rem, var(--max-width));
      }

      .hero-title {
        font-size: clamp(3.55rem, 21vw, 5rem);
      }

      .hero-copy,
      .contact-band p {
        font-size: 1rem;
      }
    }

    /* C005: Premium light portfolio restyle (design tokens consolidated into the blocks at the top of this file). */
    a:focus-visible,
    button:focus-visible {
      outline: 3px solid color-mix(in srgb, var(--accent-a), transparent 64%);
      outline-offset: 3px;
    }

    .site-header {
      border-bottom: 1px solid var(--line);
      background: color-mix(in srgb, var(--bg-elevated), transparent 18%);
      backdrop-filter: blur(24px) saturate(1.45);
      transition: background-color .75s ease, background .75s ease, border-color .75s ease, color .45s ease;
    }

    html[data-theme="dark"] .site-header {
      position: fixed;
      left: 0;
      right: 0;
      border-bottom-color: color-mix(in srgb, var(--accent-a), transparent 84%);
      background-color: rgba(16, 16, 16, .74);
      background-image:
        linear-gradient(90deg, rgba(16, 16, 16, .94) 0%, rgba(16, 16, 16, .82) 50%, rgba(16, 16, 16, .6) 74%, rgba(92, 7, 18, .24) 100%);
      background-size: auto;
      background-position: center;
      background-repeat: no-repeat;
      -webkit-backdrop-filter: blur(22px) saturate(1.28);
      backdrop-filter: blur(22px) saturate(1.28);
    }

    .nav-shell {
      min-height: 76px;
      width: min(calc(100% - (var(--page-pad) + var(--page-pad))), var(--max-width));
    }

    .brand {
      font-size: 1rem;
      font-weight: 850;
      letter-spacing: 0;
      color: var(--accent-a);
    }

    html[data-theme="dark"] .brand {
      color: var(--accent-a);
    }

    .nav-links {
      gap: .35rem;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      padding: 0;
    }

    .nav-links a {
      position: relative;
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      color: var(--text-muted);
      background: transparent;
      padding: .5rem .9rem;
    }

    html[data-theme="dark"] .nav-links a,
    html[data-theme="dark"] .site-menu summary {
      color: #ffffff;
    }

    .nav-links a::before {
      content: "";
      position: absolute;
      left: .9rem;
      right: .9rem;
      bottom: .32rem;
      height: 2px;
      border-radius: 999px;
      background: #E1192D;
      opacity: 0;
      transform: scaleX(.2);
      transform-origin: left;
      transition: opacity .2s ease, transform .2s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
      background: transparent;
      color: var(--accent-a);
      transform: none;
    }

    .nav-links a.is-active {
      background: transparent;
      color: var(--text);
      transform: none;
    }

    html[data-theme="dark"] .nav-links a:hover,
    html[data-theme="dark"] .nav-links a:focus-visible,
    html[data-theme="dark"] .nav-links a.is-active {
      color: #ffffff;
    }

    .nav-links a.is-active::before {
      opacity: 1;
      transform: scaleX(1);
    }

    .section,
    .hero-inner,
    .contact-band,
    .site-footer {
      width: min(calc(100% - (var(--page-pad) + var(--page-pad))), var(--max-width));
    }

    .hero {
      --hero-slide-distance: clamp(8rem, 19vw, 18rem);
      min-height: min(820px, calc(100svh - 92px));
      border-bottom: 0;
      isolation: isolate;
      background:
        radial-gradient(circle at 50% 12%, rgba(225, 25, 45, .16), transparent 30rem),
        linear-gradient(180deg, #fff 0%, var(--bg) 100%);
      transition: background .9s ease, color .65s ease;
    }

    html[data-theme="dark"] .hero {
      min-height: min(920px, 100svh);
      background:
        radial-gradient(circle at 78% 48%, rgba(225, 25, 45, .2), transparent 28rem),
        radial-gradient(circle at 38% 8%, rgba(92, 7, 18, .28), transparent 24rem),
        linear-gradient(180deg, #101010 0%, var(--bg) 100%);
    }

    .hero::before {
      background:
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        linear-gradient(0deg, var(--line) 1px, transparent 1px);
      background-size: 92px 92px;
      mask-image: radial-gradient(ellipse at 50% 40%, black, transparent 68%);
      opacity: .5;
      transition: opacity .75s ease, background .75s ease;
    }

    html[data-theme="dark"] .hero::before {
      z-index: 1;
      mask-image: linear-gradient(90deg, transparent 0%, black 34%, black 78%, transparent 100%);
      opacity: .18;
    }

    /* C005: Dark-mode hero artwork transitions are driven by theme-transition classes from script.js/site-menu.js. */
    .hero-media {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      transition: opacity .8s ease;
    }

    .hero-media::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background:
        linear-gradient(90deg, rgba(16, 16, 16, .18) 0%, rgba(16, 16, 16, .2) 38%, rgba(16, 16, 16, .08) 58%, rgba(225, 25, 45, .06) 100%),
        linear-gradient(180deg, rgba(16, 16, 16, .06), rgba(16, 16, 16, .58));
      opacity: 0;
      transition: opacity .75s ease;
    }

    .hero-media::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 3;
      background: radial-gradient(circle at 78% 48%, rgba(225, 25, 45, .18), transparent 24rem);
      opacity: 0;
      transition: opacity .75s ease;
    }

    .hero-mountain,
    .hero-mark {
      position: absolute;
      display: block;
      user-select: none;
      will-change: opacity, transform;
    }

    .hero-mountain-picture {
      position: absolute;
      inset: 0;
      display: block;
    }

    .hero-mountain {
      inset: 0;
      z-index: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 48%;
      filter: saturate(1.08) contrast(1.08) brightness(.88);
      opacity: 0;
      transform: translateX(42px) scale(1.04);
    }

    .hero-mark {
      right: clamp(8rem, 21vw, 21rem);
      top: 50%;
      z-index: 2;
      width: clamp(9.5rem, 18vw, 17rem);
      height: auto;
      opacity: 0;
      filter: drop-shadow(0 0 34px rgba(225, 25, 45, .3));
      transform: translate(-84px, -42%) scale(.94);
    }

    html[data-theme="dark"] .hero-media {
      opacity: 1;
    }

    html[data-theme="dark"] .hero-media::before {
      opacity: 1;
    }

    html[data-theme="dark"] .hero-media::after {
      opacity: 1;
    }

    html[data-theme="dark"] .hero-mountain {
      opacity: .9;
      transform: translateX(0) scale(1);
    }

    html[data-theme="dark"] .hero-mark {
      opacity: .4;
      transform: translate(0, -42%) scale(1);
    }

    html.theme-transition-to-dark[data-theme="dark"] .hero-media::before {
      animation: heroMountainOverlayIn .95s ease .18s both;
    }

    html.theme-transition-to-dark[data-theme="dark"] .hero-media::after {
      animation: heroMountainGlowIn 1s ease .22s both;
    }

    html.theme-transition-to-dark[data-theme="dark"] .hero-mountain {
      animation: heroMountainIn 1.08s ease .16s both;
    }

    html.theme-transition-to-dark[data-theme="dark"] .hero-mark {
      animation: heroMarkIn .84s var(--ease-out) 1.08s both;
    }

    html.theme-transition-to-light[data-theme="light"] .hero-media {
      opacity: 1;
    }

    html.theme-transition-to-light[data-theme="light"] .hero-media::before {
      animation: heroMountainOverlayOut .9s ease both;
    }

    html.theme-transition-to-light[data-theme="light"] .hero-media::after {
      animation: heroMountainGlowOut .9s ease both;
    }

    html.theme-transition-to-light[data-theme="light"] .hero-mountain {
      animation: heroMountainOut .95s ease both;
    }

    html.theme-transition-to-light[data-theme="light"] .hero-mark {
      animation: heroMarkOut .72s var(--ease-out) both;
    }

    @media (min-width: 1600px) {
      .hero-mark {
        right: clamp(22rem, 22vw, 36rem);
      }
    }

    .hero-inner {
      z-index: 2;
      padding: clamp(4.25rem, 8vw, 8rem) 0 clamp(4rem, 7vw, 6rem);
      grid-template-columns: 1fr;
      gap: clamp(2.4rem, 6vw, 6rem);
      transition: padding 1.12s var(--ease-out), color 1.12s ease;
    }

    @media (min-width: 761px) {
      .site-header {
        position: fixed;
        left: 0;
        right: 0;
      }

      .hero {
        min-height: min(920px, 100svh);
      }

      .hero-inner {
        padding-top: calc(clamp(4.25rem, 8vw, 8rem) + 76px);
      }
    }

    .hero-content {
      position: relative;
      z-index: 2;
      transition: color 1.12s ease, max-width 1.12s var(--ease-out);
      will-change: transform;
    }

    html[data-theme="dark"] .hero-inner {
      justify-items: start;
      text-align: left;
      padding-top: calc(clamp(4.25rem, 8vw, 8rem) + 76px);
    }

    html[data-theme="dark"] .hero-content {
      max-width: min(640px, 52vw);
    }

    html.theme-transition-to-dark[data-theme="dark"] .hero-content {
      animation: heroContentDarkIn 1.18s cubic-bezier(.16, 1, .3, 1) both;
    }

    html.theme-transition-to-light[data-theme="light"] .hero-content {
      animation: heroContentLightIn 1.18s cubic-bezier(.16, 1, .3, 1) both;
    }

    .eyebrow {
      gap: .55rem;
      color: var(--text-muted);
      font-size: .78rem;
      letter-spacing: .04em;
      text-transform: none;
    }

    .eyebrow::before {
      display: none;
    }

    .hero-title {
      max-width: 850px;
      margin-top: 1.15rem;
      margin-inline: auto;
      color: #111111;
      font-size: clamp(4rem, 8vw, 7.85rem);
      line-height: .92;
      letter-spacing: 0;
      text-transform: none;
      transition: margin 1.12s var(--ease-out), color 1.12s ease;
    }

    html[data-theme="dark"] .hero-title {
      color: #f5f5f7;
      margin-inline: 0;
    }

    .hero-title span {
      display: inline;
      color: transparent;
      -webkit-text-stroke: 0;
      background: linear-gradient(120deg, #5C0712 0%, #B91224 42%, #E1192D 100%);
      -webkit-background-clip: text;
      background-clip: text;
      animation: none;
      transition: color 1.12s ease, background 1.12s ease;
    }

    .hero-title span:nth-child(2) {
      color: transparent;
      -webkit-text-stroke: 0;
    }

    .hero-copy {
      max-width: 640px;
      margin-top: 1.35rem;
      margin-inline: auto;
      color: var(--text-muted);
      font-size: clamp(1.08rem, 1.6vw, 1.28rem);
      line-height: 1.68;
      transition: margin 1.12s var(--ease-out), color 1.12s ease;
    }

    html[data-theme="dark"] .hero-copy {
      max-width: 640px;
      margin-inline: 0;
    }

    .hero-actions {
      gap: .75rem;
      margin-top: 2.15rem;
      transition: color .65s ease;
    }

    html[data-theme="dark"] .hero-actions {
      justify-content: flex-start;
    }

    .button {
      min-height: 50px;
      border-radius: 8px;
      padding: .84rem 1.18rem;
      font-size: .94rem;
      letter-spacing: 0;
      gap: .5rem;
    }

    .button::after {
      content: "";
      width: 7px;
      height: 7px;
      border-top: 2px solid currentColor;
      border-right: 2px solid currentColor;
      transform: rotate(45deg);
      transition: transform .22s var(--ease-out);
    }

    .button.primary {
      background: var(--accent-a);
      color: #ffffff;
      box-shadow: 0 18px 44px color-mix(in srgb, var(--accent-a), transparent 72%);
    }

    .button.secondary {
      border-color: var(--line-strong);
      background: color-mix(in srgb, var(--bg-elevated), transparent 8%);
      color: var(--text);
    }

    .button:hover,
    .button:focus-visible {
      transform: translateY(-2px);
      border-color: color-mix(in srgb, var(--accent-a), var(--line) 46%);
      box-shadow: var(--shadow-soft);
    }

    .button:hover::after,
    .button:focus-visible::after {
      transform: translateX(3px) rotate(45deg);
    }

    /* C005: Preview, about, project, timeline, and contact blocks define the homepage's polished portfolio view. */
    .feature-preview {
      position: relative;
      min-height: 540px;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .55)),
        radial-gradient(circle at 18% 18%, rgba(225, 25, 45, .18), transparent 19rem);
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(22px);
      padding: clamp(1rem, 2.4vw, 1.35rem);
      overflow: hidden;
      transform: translateZ(0);
      transition: transform .45s var(--ease-out), box-shadow .45s ease;
    }

    html[data-theme="dark"] .feature-preview {
      background:
        linear-gradient(180deg, rgba(28, 28, 30, .86), rgba(28, 28, 30, .62)),
        radial-gradient(circle at 18% 18%, rgba(225, 25, 45, .2), transparent 19rem);
    }

    .feature-preview:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-hover);
    }

    .preview-badge {
      position: absolute;
      top: 1.15rem;
      left: 1.15rem;
      z-index: 2;
      display: inline-flex;
      align-items: center;
      gap: .55rem;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, .78);
      color: var(--text);
      padding: .58rem .78rem;
      font-size: .82rem;
      font-weight: 850;
      box-shadow: 0 12px 34px rgba(17, 17, 17, .08);
      backdrop-filter: blur(18px);
    }

    html[data-theme="dark"] .preview-badge {
      background: rgba(28, 28, 30, .82);
    }

    .preview-badge span {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--accent-a);
      box-shadow: 0 0 0 6px var(--red-soft);
    }

    .preview-art {
      position: absolute;
      inset: 1.2rem;
      display: grid;
      place-items: center;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 28px;
      background:
        radial-gradient(circle at 76% 18%, rgba(225, 25, 45, .22), transparent 16rem),
        linear-gradient(145deg, #ffffff, #f0efec);
    }

    html[data-theme="dark"] .preview-art {
      background:
        radial-gradient(circle at 76% 18%, rgba(225, 25, 45, .22), transparent 16rem),
        linear-gradient(145deg, #232326, #171719);
    }

    .preview-art::before {
      content: "";
      position: absolute;
      inset: 12%;
      border-radius: 32px;
      background:
        linear-gradient(90deg, rgba(225, 25, 45, .09) 1px, transparent 1px),
        linear-gradient(0deg, rgba(225, 25, 45, .08) 1px, transparent 1px);
      background-size: 32px 32px;
      transform: rotate(-3deg);
    }

    .preview-screen {
      position: relative;
      width: min(86%, 420px);
      min-height: 260px;
      display: grid;
      align-content: end;
      gap: .85rem;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: rgba(255, 255, 255, .72);
      box-shadow: 0 22px 80px rgba(17, 17, 17, .12);
      backdrop-filter: blur(20px);
      padding: 1.4rem;
    }

    html[data-theme="dark"] .preview-screen {
      background: rgba(28, 28, 30, .72);
    }

    .preview-screen p {
      color: var(--accent-a);
      font-size: .78rem;
      font-weight: 900;
      letter-spacing: .05em;
      text-transform: uppercase;
    }

    .preview-screen h2 {
      max-width: 330px;
      font-size: clamp(1.6rem, 3vw, 2.25rem);
      line-height: 1;
      letter-spacing: 0;
    }

    .preview-lines {
      display: grid;
      gap: .55rem;
      margin-top: .35rem;
    }

    .preview-lines span {
      height: 8px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--text), transparent 84%);
    }

    .preview-lines span:nth-child(1) {
      width: 74%;
      background: color-mix(in srgb, var(--accent-a), transparent 22%);
    }

    .preview-lines span:nth-child(2) {
      width: 54%;
    }

    .preview-lines span:nth-child(3) {
      width: 34%;
    }

    .preview-meta {
      position: absolute;
      right: 1.5rem;
      bottom: 1.5rem;
      display: flex;
      flex-wrap: wrap;
      gap: .45rem;
    }

    .preview-meta span,
    .tag,
    .tool-chip {
      border: 1px solid color-mix(in srgb, var(--accent-a), var(--line) 72%);
      border-radius: 999px;
      background: color-mix(in srgb, var(--bg-elevated), transparent 16%);
      color: var(--accent-a);
      font-size: .78rem;
      font-weight: 850;
      padding: .45rem .68rem;
    }

    .section {
      padding: clamp(4.5rem, 8vw, 7rem) 0;
      scroll-margin-top: 96px;
    }

    .contact-band {
      scroll-margin-top: 96px;
    }

    .section-heading {
      grid-template-columns: minmax(0, .78fr) minmax(260px, .32fr);
      margin-bottom: 1.6rem;
    }

    .section-kicker {
      display: inline-flex;
      align-items: center;
      gap: .55rem;
      color: var(--accent-a);
      font-size: .76rem;
      letter-spacing: .08em;
    }

    .section-heading h2 {
      max-width: 860px;
      font-size: clamp(2.25rem, 5vw, 4.85rem);
      line-height: .98;
      letter-spacing: 0;
    }

    .section-heading p {
      color: var(--text-muted);
      line-height: 1.7;
    }

    .about-panel,
    .project-card,
    .timeline-item,
    .contact-band {
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: color-mix(in srgb, var(--bg-elevated), transparent 4%);
      box-shadow: var(--shadow-soft);
    }

    .about-panel {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: clamp(1.4rem, 4vw, 3.6rem);
      align-items: center;
      padding: clamp(1.4rem, 4vw, 2.35rem);
    }

    .about-panel h3 {
      max-width: 620px;
      font-size: clamp(1.75rem, 3vw, 3rem);
      line-height: 1.04;
    }

    .about-panel p {
      max-width: 720px;
      margin-top: 1rem;
      color: var(--text-muted);
      font-size: 1.04rem;
      line-height: 1.72;
    }

    .trait-list {
      display: grid;
      gap: .75rem;
      margin: 0;
      padding: 0;
      list-style: none;
      overflow: hidden;
    }

    .trait-list li {
      display: flex;
      align-items: center;
      gap: .7rem;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: color-mix(in srgb, var(--bg), transparent 38%);
      color: var(--text);
      padding: .82rem .9rem;
      font-weight: 760;
    }

    html.js .trait-stagger li {
      opacity: 0;
      transform: translateX(64px);
      transition: opacity .68s ease, transform .68s var(--ease-out);
      transition-delay: calc(var(--i, 0) * 110ms);
      will-change: opacity, transform;
    }

    html.js .trait-stagger.in-view li {
      opacity: 1;
      transform: translateX(0);
    }

    .trait-list span {
      width: 8px;
      height: 8px;
      flex: 0 0 auto;
      border-radius: 999px;
      background: var(--accent-a);
      box-shadow: 0 0 0 6px var(--red-soft);
    }

    .tool-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: .7rem;
      margin-top: 1rem;
    }

    .category-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1rem;
    }

    .category-card {
      position: relative;
      display: grid;
      gap: .4rem;
      align-content: start;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: color-mix(in srgb, var(--bg-elevated), transparent 4%);
      padding: 1.3rem 3.1rem 1.35rem 1.35rem;
      transition: transform .24s var(--ease-out), border-color .24s ease, box-shadow .24s ease;
    }

    .category-card::after {
      content: "";
      position: absolute;
      top: 50%;
      right: 1.35rem;
      width: 9px;
      height: 9px;
      border-top: 2px solid var(--accent-a);
      border-right: 2px solid var(--accent-a);
      opacity: 0;
      transform: translateY(-50%) rotate(45deg);
      transition: opacity .2s ease, transform .24s var(--ease-out);
    }

    .category-card:hover,
    .category-card:focus-visible {
      border-color: color-mix(in srgb, var(--accent-a), var(--line) 62%);
      box-shadow: var(--shadow-hover);
      transform: translateY(-4px);
    }

    .category-card:hover::after,
    .category-card:focus-visible::after {
      opacity: 1;
      transform: translateY(-50%) translateX(3px) rotate(45deg);
    }

    .category-card h3 {
      font-size: 1.18rem;
      line-height: 1.15;
    }

    .category-card p {
      color: var(--text-muted);
      font-size: .92rem;
      line-height: 1.55;
    }

    .about-section .trait-list {
      display: none;
    }

    .about-section .tool-chip:not(.is-visible) {
      display: none;
    }

    .tool-chip {
      color: var(--text);
      border-color: var(--line);
      padding: .7rem .95rem;
      transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
    }

    .tool-chip:hover {
      border-color: color-mix(in srgb, var(--accent-a), var(--line) 48%);
      box-shadow: 0 12px 30px rgba(17, 17, 17, .07);
      transform: translateY(-2px);
    }

    .project-grid {
      gap: clamp(1rem, 2vw, 1.25rem);
    }

    .project-card {
      min-height: 440px;
      overflow: hidden;
      transition: transform .28s var(--ease-out), box-shadow .28s ease, border-color .28s ease;
    }

    .project-card-link {
      display: block;
      color: inherit;
      text-decoration: none;
      cursor: pointer;
    }

    .project-card-link:focus-visible {
      outline: 3px solid color-mix(in srgb, var(--accent-a), transparent 64%);
      outline-offset: 4px;
    }

    .project-card:hover {
      transform: translateY(-6px);
      border-color: color-mix(in srgb, var(--accent-a), var(--line) 62%);
      box-shadow: var(--shadow-hover);
    }

    .project-media {
      min-height: 240px;
      margin: .75rem .75rem 0;
      border-radius: 24px;
      background: #f1efec;
    }

    html[data-theme="dark"] .project-media {
      background: #242426;
    }

    .project-media::before {
      background:
        radial-gradient(circle at 76% 24%, rgba(225, 25, 45, .26), transparent 25%),
        radial-gradient(circle at 22% 74%, rgba(185, 18, 36, .16), transparent 28%),
        linear-gradient(135deg, #ffffff, #e9e7e3);
      transition: transform .45s var(--ease-out);
    }

    html[data-theme="dark"] .project-media::before {
      background:
        radial-gradient(circle at 76% 24%, rgba(225, 25, 45, .24), transparent 25%),
        radial-gradient(circle at 22% 74%, rgba(185, 18, 36, .18), transparent 28%),
        linear-gradient(135deg, #2a2a2d, #171719);
    }

    .project-media::after {
      background:
        linear-gradient(90deg, rgba(225, 25, 45, .16) 1px, transparent 1px),
        linear-gradient(0deg, rgba(17, 17, 17, .07) 1px, transparent 1px);
      background-size: 38px 38px;
      opacity: .8;
    }

    .project-card:hover .project-media::before {
      transform: scale(1.03);
    }

    .project-media.has-roundrummy::before {
      transform: scale(1.03);
    }

    .project-media.has-roundrummy::after {
      opacity: .28;
    }

    .project-media.has-silver-star::after {
      opacity: .2;
    }

    .project-media.has-trailer::after {
      opacity: .18;
    }

    .project-mockup {
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: 1;
      width: auto;
      max-width: none;
      height: 150%;
      transform: translate(-50%, -50%);
      filter: drop-shadow(0 22px 28px rgba(17, 17, 17, .2));
    }

    .project-screenshot {
      position: absolute;
      inset: .75rem;
      z-index: 1;
      width: calc(100% - 1.5rem);
      height: calc(100% - 1.5rem);
      border-radius: 18px;
      object-fit: cover;
      object-position: top center;
      box-shadow: 0 22px 36px rgba(17, 17, 17, .2);
    }

    .project-media.has-trailer .project-screenshot {
      object-position: center center;
    }

    .project-body {
      gap: .9rem;
      padding: 1.25rem 1.35rem 1.45rem;
    }

    .tag-row {
      gap: .4rem;
    }

    .tag {
      background: var(--red-soft);
      color: var(--accent-c);
      border-color: color-mix(in srgb, var(--accent-a), transparent 66%);
    }

    html[data-theme="dark"] .tag {
      color: var(--accent-a);
    }

    .project-body h3 {
      font-size: clamp(1.35rem, 2vw, 1.7rem);
      letter-spacing: 0;
    }

    .project-body p {
      color: var(--text-muted);
      line-height: 1.65;
    }

    .timeline {
      gap: .85rem;
    }

    .timeline-item {
      grid-template-columns: 82px minmax(0, 1fr);
      border-top: 0;
      padding: clamp(1.1rem, 2.4vw, 1.45rem);
      box-shadow: none;
      transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
    }

    .timeline-item:hover {
      transform: translateY(-3px);
      border-color: color-mix(in srgb, var(--accent-a), var(--line) 62%);
      box-shadow: 0 18px 48px rgba(17, 17, 17, .07);
    }

    a.timeline-item:focus-visible {
      outline: 3px solid color-mix(in srgb, var(--accent-a), transparent 64%);
      outline-offset: 4px;
    }

    .timeline-item::before {
      display: grid;
      width: 46px;
      height: 46px;
      place-items: center;
      border-radius: 16px;
      background: var(--red-soft);
      color: var(--accent-a);
    }

    .timeline-item h3 {
      font-size: clamp(1.25rem, 2.2vw, 1.85rem);
    }

    .contact-band {
      margin-bottom: 1.25rem;
      grid-template-columns: minmax(0, .92fr) minmax(260px, .34fr);
      background:
        radial-gradient(circle at 8% 8%, rgba(225, 25, 45, .16), transparent 22rem),
        linear-gradient(135deg, color-mix(in srgb, var(--bg-elevated), #ffffff 8%), color-mix(in srgb, var(--bg), #ffffff 22%));
      padding: clamp(1.6rem, 5vw, 3rem);
    }

    html[data-theme="dark"] .contact-band {
      background:
        radial-gradient(circle at 8% 8%, rgba(225, 25, 45, .18), transparent 22rem),
        linear-gradient(135deg, #1c1c1e, #121212);
    }

    .contact-band h2 {
      max-width: 820px;
      font-size: clamp(2.2rem, 5vw, 4.9rem);
    }

    .contact-links {
      align-content: center;
    }

    .contact-band .button {
      border-radius: 999px;
    }

    .contact-link {
      border-radius: 999px;
      background: color-mix(in srgb, var(--bg-elevated), transparent 8%);
      box-shadow: none;
      font-size: .93rem;
    }

    .site-footer {
      border-top-color: var(--line);
    }

    .reveal {
      transition-duration: .82s;
    }

    .stagger > * {
      transition-duration: .68s;
      transition-delay: calc(var(--i, 0) * 90ms);
    }

    @media (max-width: 980px) {
      .hero-inner,
      .section-heading,
      .about-panel,
      .contact-band {
        grid-template-columns: 1fr;
      }

      .feature-preview {
        min-height: 440px;
      }

      html[data-theme="dark"] .hero-content {
        max-width: min(620px, 58vw);
      }

      .hero-mountain {
        inset: 0;
        width: 100%;
        object-position: center 48%;
      }

      .hero-mark {
        right: clamp(3rem, 13vw, 9rem);
        width: clamp(8rem, 22vw, 13rem);
      }

      .project-grid,
      .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 760px) {
      .hero {
        --hero-slide-distance: clamp(1.25rem, 8vw, 2.75rem);
      }

      .nav-shell {
        justify-content: flex-end;
        gap: .35rem .45rem;
        padding: .6rem 0;
      }

      .brand {
        display: none;
      }

      .nav-links {
        width: auto;
        order: 0;
        flex: 1 1 0;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: .1rem .14rem;
        margin-left: 0;
        padding: 0;
      }

      .nav-links a {
        flex: 0 1 auto;
        min-height: 34px;
        border-radius: 999px;
        padding: .42rem .54rem;
        font-size: clamp(.76rem, 3.2vw, .86rem);
      }

      .nav-links a:not([data-nav="contact"]) {
        display: none;
      }

      .nav-links {
        flex: 0 0 auto;
      }

      .nav-shell .site-menu {
        margin-left: 0;
      }

      .section,
      .contact-band {
        scroll-margin-top: 128px;
      }

      .hero {
        min-height: auto;
      }

      html[data-theme="dark"] .hero {
        min-height: 100svh;
      }

      html[data-theme="dark"] .hero-content {
        max-width: 100%;
      }

      html[data-theme="dark"] .hero-inner {
        padding-top: calc(clamp(4.25rem, 8vw, 8rem) + 104px);
      }

      .hero-media::before {
        background:
          linear-gradient(90deg, rgba(16, 16, 16, .5) 0%, rgba(16, 16, 16, .42) 46%, rgba(16, 16, 16, .18) 100%),
          linear-gradient(180deg, rgba(16, 16, 16, .2), rgba(16, 16, 16, .68));
      }

      .hero-mountain {
        inset: 0;
        width: 100%;
        object-position: 62% center;
        filter: saturate(1.05) contrast(1.08) brightness(.72);
      }

      .hero-mark {
        display: none;
      }

      .hero-actions {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: .55rem;
      }

      .hero-actions .button {
        width: auto;
        min-width: 8.5rem;
        flex: 1 1 calc(50% - .3rem);
        padding-inline: .72rem;
        font-size: clamp(.86rem, 3.4vw, .94rem);
      }

      .hero-title {
        font-size: clamp(3.45rem, 16vw, 5.2rem);
      }

      .feature-preview {
        min-height: 390px;
      }

      .preview-art {
        inset: .85rem;
      }

      .preview-screen {
        width: min(90%, 360px);
        min-height: 230px;
      }

      .project-grid,
      .capability-grid,
      .category-grid {
        grid-template-columns: 1fr;
      }

      .timeline-item {
        grid-template-columns: 1fr;
      }

      html.js .trait-stagger li {
        transform: translateX(28px);
      }
    }

    @media (max-width: 430px) {
      .section,
      .hero-inner,
      .nav-shell,
      .contact-band,
      .site-footer {
        width: min(100% - 1.25rem, var(--max-width));
      }

      .nav-links a {
        padding-inline: .42rem;
      }

      .hero-actions {
        flex-direction: row;
      }

      .feature-preview {
        min-height: 340px;
        border-radius: 26px;
      }

      .preview-badge {
        left: .9rem;
        top: .9rem;
      }

      .preview-meta {
        left: 1rem;
        right: 1rem;
      }

      .about-panel,
      .contact-band {
        border-radius: 26px;
      }
    }

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

      .reveal,
      .trait-stagger li,
      .stagger > * {
        opacity: 1;
        transform: none;
      }
    }
