@layer base, layout, components, responsive;

@layer base {
  :root {
    color-scheme: dark;
    --page: #111317;
    --surface: #1b1e24;
    --surface-2: #232730;
    --text: #f3f2ef;
    --muted: #adb2bc;
    --line: #353941;
    --accent: #b6c7ff;
    --accent-ink: #121a30;
    --warm: #f1ad7c;
    --heading-font: "Helvetica Neue", Arial, sans-serif;
    --body-font: "Helvetica Neue", Arial, sans-serif;
    --radius: 5px;
    --section-space: 112px;
  }
  :root[data-theme="light"] {
    color-scheme: light;
    --page: #faf8f3;
    --surface: #fffdf9;
    --surface-2: #eeeae1;
    --text: #23241f;
    --muted: #595e59;
    --line: #cbc8be;
    --accent: #264dca;
    --accent-ink: #fff;
    --warm: #ad471e;
    --heading-font: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
    --body-font: "Trebuchet MS", Arial, sans-serif;
    --radius: 20px;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 24px; }
  body { margin: 0; background: var(--page); color: var(--text); font: 1rem/1.65 var(--body-font); -webkit-font-smoothing: antialiased; }
  button, input, select, textarea { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  img { display: block; max-width: 100%; height: auto; }
  h1, h2, h3, p, figure { margin: 0; }
  h1, h2, h3 { font-family: var(--heading-font); font-weight: 600; }
  h1 { font-size: clamp(3rem, 6.3vw, 5.55rem); line-height: 1.03; letter-spacing: -.057em; }
  h2 { font-size: clamp(2.15rem, 4vw, 3.35rem); line-height: 1.1; letter-spacing: -.043em; }
  h3 { font-size: 1.6rem; line-height: 1.3; letter-spacing: -.025em; }
  p { text-wrap: pretty; }
  p:not([class]), .bio-copy { color: var(--muted); }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
  ::selection { background: var(--accent); color: var(--accent-ink); }
  [hidden] { display: none !important; }
  .icon { width: 22px; height: 22px; flex-shrink: 0; }
  .wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
  .eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 500 .78rem/1.6 ui-monospace, "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: .085em; }
  .text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 44px; font-size: .95rem; font-weight: 500; }
  .text-link:hover { color: var(--accent); }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 52px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius); font-size: .95rem; line-height: 1.5; font-weight: 600; transition: transform 160ms, background 160ms; }
  .button:hover { transform: translateY(-3px); }
  .button-primary { background: var(--accent); color: var(--accent-ink); }
  .button-outline { border-color: currentColor; }
  .button-outline:hover { background: color-mix(in srgb, currentColor 5%, transparent); }
  .skip-link { position: fixed; top: 10px; left: 12px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 12px 20px; transform: translateY(-180%); }
  .skip-link:focus { transform: translateY(0); }
}

@layer layout {
  .site-header { display: flex; align-items: center; justify-content: space-between; min-height: 90px; gap: 32px; border-bottom: 1px solid var(--line); }
  .brand { display: flex; align-items: center; gap: 14px; font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
  .brand small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; margin-top: 4px; }
  .site-header nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
  .site-header nav a { font-size: .9rem; padding-block: 12px; }
  .site-header nav a:hover { color: var(--accent); }
  .site-header nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 7px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; gap: 20px 5%; padding-block: 28px 64px; }
  .hero-content { min-width: 0; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-copy > .eyebrow { margin-bottom: 4px; }
  .hero h1 { font-size: clamp(3rem, 4.5vw, 3.5rem); }
  .hero-tagline { color: var(--muted); margin-top: 8px; }
  .reel-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
  .reel-heading h2 { font-size: 1rem; line-height: 1.5; letter-spacing: 0; }
  .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 22px; }
  .work-section { padding-block: 60px var(--section-space); border-top: 1px solid var(--line); }
  .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
  .section-heading .eyebrow { margin-bottom: 14px; }
  .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 28px; }
  .all-projects-link { margin-top: 48px; }
  .projects-page { padding-block: 65px var(--section-space); }
  .catalog-heading { margin-bottom: 48px; max-width: 780px; }
  .catalog-heading .eyebrow { margin-bottom: 18px; }
  .catalog-heading h1 { margin-bottom: 24px; }
  .catalog-heading > p:last-child { color: var(--muted); font-size: 1.1rem; }
  .about-section { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 12%; padding-block: 85px; border-block: 1px solid var(--line); }
  .about-copy .eyebrow { margin-bottom: 20px; }
  .about-copy h2 { margin-bottom: 27px; }
  .about-copy p { color: var(--muted); margin-bottom: 18px; }
  .about-copy .text-link { margin-top: 10px; }
  .about-tools { margin-top: 26px; }
  .about-tools h3 { font-size: .95rem; letter-spacing: 0; }
  .tool-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 12px 0 10px; list-style: none; }
  .tool-list li { padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--accent); font-size: .9rem; }
  .about-resume { margin-left: 24px; }
  .indie-note { margin-top: 28px; padding: 24px 26px; background: var(--surface); border-left: 3px solid var(--warm); border-radius: var(--radius); }
  .indie-note h3 { font-size: 1.35rem; margin-bottom: 12px; }
  .indie-note p { margin-bottom: 4px; font-size: .95rem; }
  .contact-section { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding-block: 70px 75px; }
  .contact-section .eyebrow { margin-bottom: 20px; }
  .contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .contact-intro { color: var(--muted); margin-top: 20px; font-size: .95rem; }
  .social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .social-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: var(--surface); transition: color 160ms, border-color 160ms, background 160ms; }
  .social-icon-link:hover { color: var(--accent); border-color: var(--accent); background: var(--surface-2); }
  .social-icon-link .icon { width: 20px; height: 20px; }
  .email-link { display: inline-flex; align-items: center; gap: 24px; padding-block: 12px; font-size: clamp(1rem, 2.2vw, 1.55rem); border-bottom: 1px solid var(--muted); }
  .email-link:hover { color: var(--accent); border-color: var(--accent); }
  .contact-full { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 36px; }
  .contact-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .contact-form { padding: 36px 40px; background: linear-gradient(145deg, #252f43, #192332); border: 1px solid #43516a; border-radius: var(--radius); }
  .contact-preview-note { color: #c3cde0; font-size: .9rem; margin-bottom: 28px; }
  .contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
  .field { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; min-width: 0; }
  .field-wide { grid-column: 1 / -1; }
  .field > span { display: flex; gap: 10px; align-items: baseline; }
  .field small { font-size: .75rem; color: var(--muted); }
  .field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid #56647a; border-radius: 3px; background: #131c2b; color: #f3f2ef; padding: 14px 18px; font-size: 1rem; line-height: 1.5; }
  .field select { min-height: 54px; }
  .field textarea { resize: vertical; min-height: 190px; }
  .field input::placeholder, .field textarea::placeholder { color: #aebbd0; opacity: 1; }
  .contact-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; }
  .contact-form-footer p { color: #c3cde0; font-size: .8rem; }
  .contact-form-footer .button { flex-shrink: 0; }
  .button:disabled { cursor: not-allowed; background: #354560; border-color: #677994; color: #c7d1e4; box-shadow: none; transform: none; }
  .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
  .site-footer a { min-height: 44px; display: flex; align-items: center; gap: 12px; }
}

@layer components {
  .brand-mark { display: flex; align-items: center; justify-content: center; gap: 3px; background: var(--accent); width: 39px; height: 39px; border-radius: 9px; color: var(--accent-ink); }
  .brand-mark i { background: currentColor; width: 2px; height: 8px; border-radius: 3px; }
  .brand-mark i:nth-child(2) { height: 17px; }
  .brand-mark i:nth-child(3) { height: 24px; }
  .brand-mark i:nth-child(4) { height: 13px; }
  .theme-toggle { display: flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; border: 1px solid var(--line); border-radius: 30px; min-width: 123px; min-height: 42px; padding: 8px 13px; background: var(--surface); font-size: .8rem; cursor: pointer; }
  .theme-toggle .icon { width: 18px; height: 18px; }
  .theme-toggle:hover { border-color: var(--accent); }
  .moon-icon { display: none; }
  [data-theme="light"] .sun-icon { display: none; }
  [data-theme="light"] .moon-icon { display: block; }
  .eyebrow-line { width: 24px; height: 1px; background: var(--accent); }
  .reel-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #1c212a; transform: translateY(6px); }
  .reel-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid #39414f; }
  .reel-top .eyebrow { font-size: .75rem; color: #b4bed1; }
  .reel-cross { color: #a5b4ce; line-height: 1; font: 1.6rem ui-monospace, monospace; }
  .reel-art { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 30px 28px 10px; min-height: 248px; background-image: linear-gradient(#313949 1px, transparent 1px), linear-gradient(90deg, #313949 1px, transparent 1px); background-size: 100% 50px, 50px 100%; background-position: center; }
  .waveform { display: flex; align-items: center; gap: 3px; width: 100%; height: 145px; color: #c0d1ff; }
  .waveform i { display: block; flex: 1; min-width: 1px; height: var(--height); background: currentColor; opacity: .95; border-radius: 2px; }
  .reel-art::after { content: ''; position: absolute; top: 0; bottom: 0; width: 1px; left: 62%; background: #f1ad7c; }
  .reel-art::before { content: ''; position: absolute; width: 9px; height: 9px; background: #f1ad7c; top: 0; left: calc(62% - 4px); }
  .timeline { display: flex; justify-content: space-between; padding-top: 16px; color: #9fabbe; font: .75rem ui-monospace, monospace; letter-spacing: .12em; }
  .reel-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-top: 1px solid #39414f; color: #f3f2ef; font-size: 1.04rem; }
  .reel-bottom small { display: block; color: #acb8cd; font-size: .75rem; margin-top: 3px; }
  .reel-index { font: .75rem ui-monospace, monospace; color: #a5b4ce; }
  .accent-dot { color: var(--warm); }
  .project-link { display: block; }
  .project-cover { position: relative; aspect-ratio: 1.48; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: #232730; }
  .project-cover img { width: 100%; height: 100%; object-fit: contain; transition: transform 350ms; }
  .project-cover img.pixel-art { image-rendering: pixelated; }
  .project-cover-empty { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #adb2bc; font-size: .9rem; }
  .project-cover-empty .icon { width: 28px; height: 28px; }
  .project-link:hover .project-cover img { transform: scale(1.04); }
  .placeholder-badge { position: absolute; left: 14px; bottom: 14px; font-size: .75rem; color: #f4f3f0; border: 1px solid #69717a; border-radius: 3px; padding: 4px 8px; background: #171a20e8; }
  .project-open { position: absolute; bottom: 14px; right: 14px; display: grid; place-items: center; background: #f3f2ef; color: #171a20; border-radius: 50%; width: 34px; height: 34px; transition: transform 180ms; }
  .project-link:hover .project-open { transform: rotate(45deg); }
  .project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 19px 0 8px; }
  .project-type { display: inline-block; padding: 4px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--accent); background: var(--surface); font: 500 .75rem/1.5 ui-monospace, monospace; }
  .project-meta .eyebrow { font-size: .75rem; letter-spacing: .07em; }
  .project-meta > span:not(.project-type) { font-size: .75rem; color: var(--muted); }
  .project-cover + h3 { margin-top: 19px; }
  .project-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
  .catalog-card h3 { font-size: 1.45rem; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 10px; }
  .catalog-group { margin-bottom: 72px; }
  .catalog-group > h2 { padding-top: 24px; margin-bottom: 32px; border-top: 1px solid var(--line); font-size: clamp(1.75rem, 4vw, 2.5rem); }
  .project-card p { color: var(--muted); font-size: 1rem; line-height: 1.75; }
  .project-card .project-context-line { font-size: .875rem; line-height: 1.6; margin-top: 8px; }
  .project-card .project-role { color: var(--text); font-size: .9rem; line-height: 1.55; margin-block: 14px 8px; }
  .project-role strong { font-weight: 700; }
  .project-art { position: absolute; inset: 0; overflow: hidden; }
  .art-coordinate { position: absolute; top: 16px; right: 16px; color: #f7f3eab3; font: .75rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
  .art-landscape { background: #4b5e5b; }
  .art-landscape i { position: absolute; height: 150%; width: 60%; border: 1px solid #a4c6ac7d; background: #293b39; transform: rotate(45deg); left: -10%; top: 35%; }
  .art-landscape i:nth-child(2) { left: 20%; top: 5%; background: #668075; }
  .art-landscape i:nth-child(3) { left: 60%; top: 40%; background: #263f39; }
  .art-landscape i:nth-child(4) { height: 42px; width: 42px; top: 22%; left: 72%; border: 0; border-radius: 50%; background: #d1c88d; }
  .art-landscape i:nth-child(5) { left: 29%; top: 70%; background: #354d44; }
  .art-waveform { background: #54412f; display: flex; align-items: center; padding: 0 22px; }
  .art-waveform .waveform { color: #f5b77e; height: 42%; }
  .art-waveform::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 43px, #d3976630 44px, transparent 45px); }
  .art-grid { background: #424660; background-image: linear-gradient(#d0c7ff24 1px, transparent 1px), linear-gradient(90deg, #d0c7ff24 1px, transparent 1px); background-size: 32px 32px; }
  .art-grid i { position: absolute; width: 25%; aspect-ratio: 1; border: 1px solid #cabffb; background: #958bcb; top: 28%; left: 22%; transform: skewY(-17deg); }
  .art-grid i:nth-child(2) { top: 33%; left: 47%; width: 25%; background: #6f66a6; transform: skewY(17deg); }
  .art-grid i:nth-child(3) { top: 15%; left: 25%; width: 47%; height: 27%; background: #b9acd8; transform: rotate(0deg) skewY(0); clip-path: polygon(0 42%, 55% 0, 100% 55%, 45% 100%); }
  .art-grid i:nth-child(n+4) { display: none; }
  .photo-card { background: var(--surface); border: 1px solid var(--line); padding: 10px 10px 0; border-radius: 2px; width: 100%; position: relative; }
  .hero-portrait { padding: 36px 8px 8px; }
  .hero-portrait .photo-card img { aspect-ratio: .94; object-position: 61% center; }
  .about-photos { display: grid; gap: 28px; }
  .about-photos .photo-card img { aspect-ratio: 1; }
  [data-theme="dark"] [data-photo-theme="light"],
  [data-theme="light"] [data-photo-theme="dark"] { display: none; }
  .photo-card img { width: 100%; aspect-ratio: .8; object-fit: cover; }
  .photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; text-align: center; aspect-ratio: .8; background: #242c31; border: 1px dashed #738284; color: #d0d9d9; padding: 20px; }
  .photo-placeholder .icon { width: 30px; height: 30px; opacity: .65; }
  .photo-placeholder > span { font-size: .87rem; line-height: 1.5; max-width: 140px; }
  .photo-placeholder > small { font: .75rem/1.5 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; }
  .photo-1 .photo-placeholder { background: #302b29; border-color: #827369; color: #e1cfc3; }
  .photo-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 13px 4px; font-size: .75rem; }
  .photo-card figcaption > span { color: var(--warm); font-size: 1.5rem; line-height: 1; }
  .inline-placeholder { display: inline-block; color: var(--warm); font: .75rem/1.5 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 10px; }
  [data-theme="light"] h1, [data-theme="light"] h2 { font-weight: 800; letter-spacing: -.05em; }
  [data-theme="light"] .reel-panel { box-shadow: 8px 8px 0 #dcd6c7; transform: rotate(1.5deg); border-color: #253148; border-radius: 14px; }
  [data-theme="light"] .button-primary { box-shadow: 3px 3px 0 #aabbef; }
  [data-theme="light"] .project-cover { border: 2px solid #242820; }
  [data-theme="light"] .project-card:nth-child(1) .project-cover { transform: rotate(-1.2deg); }
  [data-theme="light"] .project-card:nth-child(3) .project-cover { transform: rotate(1.2deg); }
  [data-theme="light"] .indie-note { background: #f7e5cf; border-color: #ad471e; }
  [data-theme="light"] .contact-form { background: linear-gradient(155deg, #d4edf6, #a9c9f0); border: 2px solid #3c5e87; box-shadow: 6px 6px 0 #dbe1eb; }
  [data-theme="light"] .contact-preview-note, [data-theme="light"] .contact-form-footer p { color: #344c6e; }
  [data-theme="light"] .field { color: #243e61; }
  [data-theme="light"] .field small { color: #415778; }
  [data-theme="light"] .field input, [data-theme="light"] .field select, [data-theme="light"] .field textarea { background: #fcfdff; color: #243e61; border-color: #718cac; border-radius: 6px; }
  [data-theme="light"] .field input::placeholder, [data-theme="light"] .field textarea::placeholder { color: #516681; }
  [data-theme="light"] .button:disabled { background: #dbe6f3; border-color: #8298b1; color: #566b85; box-shadow: none; }
  [data-theme="light"] .photo-card { background: #fffdf9; border-color: #c5bfb2; box-shadow: 5px 8px 0 #e5dfd3; padding: 12px 12px 0; }
  [data-theme="light"] .photo-0 { transform: rotate(-2deg); }
  [data-theme="light"] .photo-1 { transform: rotate(3deg); }
  [data-theme="light"] .photo-placeholder { background: #dce2c2; color: #414b31; border-color: #7b895e; }
  [data-theme="light"] .photo-1 .photo-placeholder { background: #efd3bf; color: #67422c; border-color: #aa7957; }
  [data-theme="light"] .photo-card figcaption { font-size: .9rem; font-weight: 700; }
  .video { background: #1c212a; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .video-start { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; width: 100%; aspect-ratio: 16 / 9; min-height: 15rem; padding: 24px; border: 0; background: #1c212a; color: #edf1ff; cursor: pointer; text-align: center; }
  .video-start .waveform { position: absolute; top: 25%; left: 5%; width: 90%; height: 45%; opacity: .25; }
  .play-circle { display: grid; place-items: center; width: 70px; height: 70px; background: #b6c7ff; color: #121a30; border-radius: 50%; z-index: 1; }
  .play-circle .icon { width: 28px; height: 28px; }
  .video-label { position: relative; font-size: .9rem; z-index: 1; }
  .video iframe { display: block; border: 0; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; }
  .video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #080a0e; }
  .video-caption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; padding: 12px 18px; color: #edf1ff; font-size: .9rem; }
  .video-caption small { color: #b9c3d7; font-size: .75rem; }
  .video-fallback { padding: 12px 20px; color: #b9c3d7; font-size: .8rem; }
  .video-fallback a { color: #d4dfff; text-decoration: underline; text-underline-offset: 4px; }
  .project-page { padding-top: 35px; }
  .back-link { color: var(--muted); }
  .project-heading { padding-block: 50px; max-width: 880px; }
  .project-heading-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 22px; }
  .project-heading-meta .inline-placeholder { margin: 0; }
  .project-heading h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 28px; }
  .project-heading > p { color: var(--muted); max-width: 690px; font-size: 1.15rem; }
  .project-scope { max-width: 690px; margin-top: 28px; padding-left: 20px; border-left: 2px solid var(--accent); }
  .project-scope .project-role { color: var(--text); margin-bottom: 8px; }
  .project-scope > p:last-child { color: var(--muted); }
  .project-detail-media { max-width: 100%; }
  .project-result { border-top: 1px solid var(--line); padding-top: 32px; }
  .result-intro { max-width: 740px; margin-bottom: 28px; }
  .result-intro .eyebrow { margin-bottom: 12px; }
  .result-intro h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 18px; }
  .listening-notes { color: var(--muted); }
  .listening-notes strong { color: var(--text); font-weight: 600; }
  .detail-cover { aspect-ratio: 2; }
  .detail-cover .art-coordinate { top: 25px; right: 25px; font-size: .8rem; }
  .media-placeholder-label { position: absolute; bottom: 25px; left: 25px; padding: 8px 15px; border: 1px solid #7a8477; border-radius: 4px; background: #171a20ed; color: #f3f2ef; font-size: .85rem; }
  .project-detail-grid { display: grid; grid-template-columns: 1fr 2.5fr; gap: 9%; padding-block: 70px; }
  .project-facts { border-top: 1px solid var(--line); padding-top: 25px; }
  .project-facts dl { margin: 0 0 24px; }
  .project-facts dt { font: .75rem/1.6 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .project-facts dd { margin: 8px 0 25px; }
  .project-context { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
  .project-story section + section { margin-top: 60px; }
  .project-story .eyebrow { margin-bottom: 16px; }
  .project-story h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 26px; }
  .project-story p { color: var(--muted); line-height: 1.9; }
  .breakdown { margin-top: 30px; }
  .breakdown h3 { font-size: 1.2rem; margin-bottom: 12px; }
  .breakdown .video { margin-top: 20px; }
  .project-credits { border-left: 2px solid var(--line); padding-left: 20px; margin-top: 25px; }
  .project-credits h3 { font-size: 1rem; margin-bottom: 8px; }
  .project-story .project-credits p { font-size: .9rem; }
  .credit-links { padding-left: 18px; margin-block: 12px 0; font-size: .9rem; }
  .credit-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
  .credit-links li + li { margin-top: 6px; }
  .project-story .media-note { margin-top: 32px; color: var(--muted); font-size: .9rem; }
  .project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding-bottom: 60px; }
  .project-gallery img { width: 100%; height: auto; border-radius: var(--radius); }
  .project-gallery figcaption { font-size: .9rem; padding-top: 12px; color: var(--muted); }
  .project-next { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 25px 60px; }
  .not-found { padding-block: 120px 160px; }
  .not-found h1 { margin-block: 25px; }
  .not-found .button { margin-top: 30px; }
}

@layer responsive {
  @media (max-width: 1100px) {
    .wrap { width: calc(100% - 64px); }
    .hero { column-gap: 4%; }
    h1 { font-size: clamp(3rem, 6.2vw, 4.4rem); }
    .hero-actions { gap: 20px; }
    .hero-actions .button { gap: 15px; padding-inline: 16px; }
    .reel-art { min-height: 220px; padding-inline: 20px; }
    .project-grid { gap: 42px 22px; }
    .project-meta { display: block; }
    .project-meta > span:last-child:not(:first-child) { display: block; margin-top: 4px; }
    .about-section { gap: 7%; }
    .photo-placeholder { padding: 12px; }
    .contact-section { align-items: flex-start; }
    .contact-links { padding-top: 20px; }
  }
  @media (max-width: 780px) {
    :root { --section-space: 75px; }
    .wrap { width: calc(100% - 40px); }
    .site-header { flex-wrap: wrap; gap: 10px 20px; padding-block: 20px 0; }
    .brand { margin-right: auto; }
    .brand small { font-size: .75rem; }
    .site-header nav { order: 3; width: 100%; justify-content: center; margin-left: 0; gap: clamp(18px, 4vw, 32px); border-top: 1px solid var(--line); margin-top: 10px; }
    .site-header nav a { padding-block: 14px; }
    .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 32px 54px; }
    .hero-portrait { max-width: 320px; width: 100%; margin-inline: auto; padding-top: 0; }
    .hero-portrait .photo-card img { aspect-ratio: 1.2; }
    .hero-content { width: 100%; }
    .hero h1 { font-size: clamp(3.6rem, 10vw, 5.1rem); }
    .hero-actions { gap: 28px; }
    .reel-panel { max-width: 570px; width: 100%; transform: none; }
    .reel-art { min-height: 225px; }
    .work-section { padding-top: 65px; }
    .section-heading { align-items: flex-start; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 22px; }
    .project-card h3 { font-size: 1.4rem; }
    .about-section { grid-template-columns: 1fr; gap: 40px; padding-block: 60px; }
    .about-photos { width: min(420px, 92%); margin-inline: auto; }
    .photo-placeholder { padding: 20px; }
    .photo-card figcaption { font-size: .8rem; }
    .about-copy { max-width: 590px; }
    .contact-section { flex-direction: column; gap: 15px; padding-block: 45px; }
    .contact-links { padding-top: 0; }
    .contact-full { gap: 28px; }
    .contact-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
    .contact-form { padding: 28px; }
    .contact-fields { gap: 20px; }
    .contact-form-footer { align-items: flex-start; flex-direction: column; gap: 18px; }
    .contact-form-footer .button { align-self: flex-end; }
    .email-link { font-size: 1.4rem; }
    .site-footer { gap: 20px; flex-wrap: wrap; font-size: .75rem; }
    .project-heading { padding-block: 35px; }
    .project-heading h1 { font-size: clamp(2.7rem, 8.5vw, 4.8rem); }
    .project-detail-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 35px; }
    .project-facts dl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 15px; }
    .project-facts dd { margin: 0 15px 0 0; }
    .detail-cover { aspect-ratio: 1.6; }
    .project-next { padding-bottom: 40px; }
  }
  @media (max-width: 480px) {
    .brand small { max-width: 135px; }
    .theme-toggle { min-width: 42px; padding: 10px; }
    .theme-toggle > span { display: none; }
    .site-header { gap: 10px; }
    .hero h1 { font-size: clamp(2.85rem, 11vw, 4rem); }
    .hero-copy > .eyebrow { font-size: .75rem; letter-spacing: .06em; }
    .hero-actions { gap: 18px; }
    .contact-form { padding: 24px 18px; }
    .contact-fields { grid-template-columns: 1fr; }
    .contact-form-footer .button { width: 100%; }
    .field input, .field select, .field textarea { padding-inline: 12px; }
    .hero-actions .button { padding-inline: 16px; font-size: .88rem; }
    .hero-actions .text-link { font-size: .88rem; }
    .reel-art { min-height: 200px; padding-inline: 17px; }
    .reel-top { padding: 16px 20px; }
    .reel-top .eyebrow { font-size: .75rem; }
    .reel-bottom { padding: 18px 20px; }
    .section-heading { display: block; }
    .project-grid { grid-template-columns: 1fr; gap: 35px; }
    .project-meta { display: flex; flex-wrap: wrap; }
    .project-meta > span:last-child:not(:first-child) { margin-top: 0; }
    .project-card h3 { font-size: 1.6rem; }
    .project-cover { aspect-ratio: 1.6; }
    .photo-card { padding: 7px 7px 0; }
    [data-theme="light"] .photo-card { padding: 7px 7px 0; }
    .photo-placeholder { gap: 12px; padding: 9px; }
    .photo-placeholder > span { font-size: .875rem; }
    .photo-placeholder > small { font-size: .75rem; }
    .photo-card figcaption, [data-theme="light"] .photo-card figcaption { font-size: .75rem; padding: 10px 0; }
    .photo-card figcaption > span { font-size: 1.1rem; }
    .email-link { gap: 10px; font-size: clamp(.98rem, 4.8vw, 1.25rem); overflow-wrap: anywhere; }
    .project-next { align-items: flex-start; }
    .project-next .text-link { font-size: .83rem; gap: 6px; }
    .project-gallery { grid-template-columns: 1fr; }
    .project-facts dl { display: grid; grid-template-columns: auto 1fr; }
    .project-heading .eyebrow { font-size: .75rem; }
    .detail-cover { aspect-ratio: 1.4; }
    .media-placeholder-label { left: 15px; bottom: 15px; font-size: .75rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
  }
}
