:root {
  --ink: #07162f;
  --ink-soft: #0f3166;
  --blue: #0a71b9;
  --yellow: #ffe712;
  --gold: #ffc857;
  --paper: #dbe9f4;
  --white: #fff;
  --line: rgba(7, 22, 47, .25);
  --mono: "DM Mono", ui-monospace, monospace;
  --sans: Manrope, Arial, sans-serif;
  --page-gutter: clamp(22px, 4vw, 64px);
  --header-height: 70px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
body.dialog-open, body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

/* Short, removable splash-screen experiment. */
.splash-screen { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 30px; color: var(--white); background: var(--ink); animation: splash-out .3s ease-in 2.9s forwards; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 42px; animation: splash-in .3s ease-out both; }
.splash-portal { position: relative; width: clamp(180px, 24vw, 260px); aspect-ratio: 4 / 5; background: repeating-radial-gradient(var(--ink-soft), var(--blue) 20px); border: 5px solid black; border-radius: 400px 400px 50px 50px; }
.splash-avatar-motion { position: absolute; z-index: 1; bottom: -24px; left: 50%; width: 112%; transform: translateX(-50%); animation: splash-avatar-sink 1.6s cubic-bezier(.4,0,1,1) 1.4s forwards; }
.splash-avatar-motion img { width: 100%; max-width: none; height: auto; image-rendering: pixelated; animation: splash-avatar-spin 1.6s linear 1.4s forwards; }
.splash-inner p { margin: 0; font: 500 clamp(.92rem, 2.4vw, 1.08rem)/1.5 var(--mono); text-align: center; }
.splash-ellipsis { color: var(--yellow); }
@keyframes splash-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes splash-avatar-sink { from { transform: translateX(-50%) scale(1); opacity: 1; } to { transform: translate(-50%, -14%) scale(0); opacity: 0; } }
@keyframes splash-avatar-spin { to { transform: rotate(900deg); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }

.section-inner { width: calc(100% - 2 * var(--page-gutter)); max-width: 1400px; margin-inline: auto; }
.section-pad { padding-block: clamp(48px, 4vw, 64px) clamp(80px, 9vw, 145px); }
.section-head { display: flex; justify-content: flex-end; margin-bottom: clamp(38px, 5vw, 72px); }
.section-head h2 { max-width: 1100px; margin: 0; font-size: clamp(2.7rem, 5.2vw, 4.25rem); line-height: .98; letter-spacing: -.055em; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 12px; padding: 12px 18px; color: var(--ink); background: var(--yellow); }
.skip-link:focus { top: 12px; }

/* Navigation */
.site-header { position: sticky; z-index: 40; top: 0; display: flex; justify-content: space-between; align-items: center; min-height: var(--header-height); padding: 10px var(--page-gutter); color: var(--paper); background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.2); }
.wordmark { color: var(--white); font: 500 1.45rem var(--mono); text-decoration: none; }
.site-nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(8px, 1.35vw, 22px); }
.site-nav a { padding: 6px 0; color: var(--white); border-bottom: 2px solid transparent; font-size: clamp(.67rem, .82vw, .83rem); font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="location"] { color: var(--yellow); border-color: var(--yellow); }
.nav-toggle { display: none; }

/* Blue hero */
.opening { position: relative; overflow: hidden; padding-block: clamp(10px, 5vw, 120px); color: var(--white); background: var(--blue); }
.opening::after { content: ""; position: absolute; right: 0; bottom: 0; width: 27%; height: 32%; background: var(--ink-soft); clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); }
.opening-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 70px); align-items: center; min-height: 520px; }
.opening-copy { position: relative; z-index: 2; }
.opening h1 { margin: 0 0 31px; font-size: clamp(3.4rem, 6vw, 6rem); line-height: .99; letter-spacing: -.045em; }
.hero-highlight { display: inline-block; }
.hero-meaningful { color: var(--yellow); }
.hero-learning { color: var(--white); }
.hero-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; max-width: 560px; width: 100%; padding: 0; margin: 0; list-style: none; }
.hero-roles li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.4); font-size: clamp(.83rem, 1vw, 1rem); font-weight: 700; }
.round-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 12px 15px 12px 19px; color: var(--ink); background: var(--yellow); border: 1px solid var(--yellow); border-radius: 999px; font-size: .9rem; font-weight: 800; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.round-link span { display: grid; width: 25px; height: 25px; place-items: center; color: var(--yellow); background: var(--ink); border-radius: 50%; }
.round-link:hover, .round-link:focus-visible { color: var(--white); background: var(--ink); border-color: var(--ink); }
.opening-art { position: relative; min-height: 530px; }
.resume-link { position: absolute; z-index: 5; bottom: -10px; left: 50%; display: inline-flex; gap: 15px; align-items: center; padding: 12px 15px; color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); font-size: .81rem; font-weight: 800; text-decoration: none; transform: translateX(-50%); white-space: nowrap; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.resume-link:hover, .resume-link:focus-visible { color: var(--white); background: var(--ink); border-color: var(--ink); }
.art-image { position: absolute; overflow: hidden; background: var(--ink); box-shadow: 18px 18px 0 var(--ink); }
.art-image img { width: 100%; height: 100%; object-fit: cover; }
.art-image-large { top: 45px; right: 2%; width: min(385px, 75%); aspect-ratio: 4 / 5; transform: rotate(4deg); }
.art-image-large img { object-position: top; }
.art-image-small { bottom: 22px; left: 0; width: min(245px, 53%); aspect-ratio: 1; transform: rotate(-7deg); }
.art-image-small img { object-position: center 2%; }

/* Welcome banner follows the hero. */
.welcome-banner { overflow: hidden; padding-block: clamp(55px, 7vw, 105px); color: var(--white); background: var(--ink); }
.welcome-banner-inner { display: grid; grid-template-columns: minmax(0, 1004px) minmax(0, 520px); gap: clamp(45px, 9vw, 150px); align-items: center; }
.welcome-banner-greeting { margin: 0 0 25px; font-size: clamp(2.2rem, 3.5vw, 4rem); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.welcome-banner-copy p { margin: 0 0 20px; font-size: clamp(1.04rem, 1.35vw, 1.23rem); line-height: 1.7; }
.welcome-banner-copy p:last-child { margin-bottom: 0; }
.welcome-banner-copy .welcome-next-step { color: var(--yellow); font-weight: 800; }
.welcome-banner-copy strong { color: var(--yellow); }
.welcome-banner-greeting strong { color: var(--yellow); font-weight: 800; }
.portfolio-quick-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(45px, 6vw, 85px); padding-top: clamp(24px, 3vw, 35px); border-top: 1px solid rgba(255,255,255,.35); }
.portfolio-quick-links .round-link { margin-top: 0; }
.portfolio-quick-links .round-link:hover, .portfolio-quick-links .round-link:focus-visible { background: var(--ink); border-color: var(--yellow); }
.welcome-banner-avatar {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  background: repeating-radial-gradient(var(--ink-soft), var(--blue) 20px);
  border: 5px solid black;
  border-radius: 400px 400px 50px 50px;
}
.welcome-banner-avatar img { position: absolute; bottom: -36px; left: 50%; width: 112%; max-width: none; height: auto; transform: translateX(-50%); image-rendering: pixelated; }

/* Design philosophy accordions within the Welcome Banner. */
.welcome-philosophy { margin: 30px 0 25px; }
.philosophy-row { width: 100%; margin-bottom: 8px; }
.philosophy-row summary { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; padding: 15px 10px 20px; cursor: pointer; list-style: none; background: var(--blue); border: 1px solid transparent; }
.philosophy-row summary::-webkit-details-marker { display: none; }
.philosophy-row summary::after { content: "+"; flex: none; color: var(--yellow); font: 400 1.5rem/1 var(--sans); }
.philosophy-row[open] summary::after { content: "−"; }
.philosophy-row summary:hover, .philosophy-row[open] summary { background: var(--ink-soft); }
.philosophy-row[open] summary { border-color: var(--yellow); }
.philosophy-row h3 { margin: 0; font-size: clamp(1.04rem, 1.35vw, 1.23rem); line-height: 1.4; }
.philosophy-content { padding: 15px 10px 20px; background: transparent; border: 1px solid var(--yellow); border-top: 0; }
.welcome-banner-copy .philosophy-content p { margin: 0; }
.welcome-banner-copy .philosophy-content p + p { margin-top: 15px; }

.underlined-link { display: inline-flex; gap: 18px; align-items: baseline; width: fit-content; padding: 0 0 6px; color: inherit; border-bottom: 2px solid currentColor; font-size: .96rem; font-weight: 800; text-align: left; text-decoration: none; }
.underlined-link:hover { color: var(--blue); }

/* Education and experience */
.education { color: var(--white); background: var(--blue); }
.education-list { border-top: 1px solid rgba(255,255,255,.45); }
.education-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(135px, .25fr); gap: 28px; align-items: baseline; padding: 29px 0; border-bottom: 1px solid rgba(255,255,255,.45); }
.education-row h3 { margin: 0 0 8px; font-size: clamp(1.2rem, 1.7vw, 1.65rem); line-height: 1.3; }
.education-row p { margin: 0; font-size: .94rem; }
.education-row .education-credential { margin-bottom: 7px; color: var(--yellow); font-size: clamp(1.1rem, 1.45vw, 1.35rem); font-weight: 800; letter-spacing: -.015em; }
.education-date { color: var(--yellow); font: .78rem var(--mono); text-align: right; }
.experience { background: var(--gold); }
.graduate-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr); gap: 6vw; align-items: center; padding-bottom: clamp(45px, 7vw, 85px); }
.graduate-story h3 { margin: 0; font-size: clamp(2rem, 3vw, 3.25rem); line-height: 1.14; letter-spacing: -.035em; }
.story-meta, .music-meta { margin: 20px 0 0; font: .8rem/1.6 var(--mono); }
.story-meta span { display: block; margin-top: 3px; }
.graduate-intro { margin: clamp(32px, 4vw, 55px) 0 18px; }
.graduate-intro, .graduate-projects li, .music-copy > p:not(.music-meta), .volunteer-story p { font-size: 1.08rem; line-height: 1.7; }
.graduate-projects { margin: 0; padding-left: 1.4rem; }
.graduate-projects li { padding: 0 0 12px 8px; }
.story-list-label { margin: 28px 0 8px; font-size: 1.08rem; font-weight: 800; }
.process-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); font-size: .94rem; line-height: 1.55; }
.process-list li::before { content: "↗"; position: absolute; left: 0; color: var(--ink-soft); }

.music-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr); gap: 6vw; align-items: center; padding-block: clamp(50px, 7vw, 90px) 40px; }
.music-copy { max-width: 720px; }
.music-copy h3 { margin: 0; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -.035em; }
.music-collage, .graduate-collage { position: relative; }
.music-collage { min-height: 510px; }
.graduate-collage { min-height: 620px; }
.music-logo, .music-photo, .graduate-collage-image { position: absolute; display: grid; place-items: center; overflow: hidden; background: var(--paper); box-shadow: 10px 10px 0 var(--ink); }
.music-logo { width: 40%; aspect-ratio: 1.25 / 1; border: 1px solid var(--ink); }
.music-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.music-logo-one { top: 10%; left: 0; transform: rotate(-5deg); }
.music-logo-two { top: 0; right: 2%; background: var(--white); transform: rotate(5deg); }
.music-logo-two img { object-fit: contain; }
.music-photo { bottom: 5%; left: 24%; width: 62%; aspect-ratio: 4 / 3; transform: rotate(-2deg); }
.music-photo img { width: 100%; height: 100%; object-fit: cover; }
.graduate-collage-image { width: 55%; border: 1px solid var(--ink); }
.graduate-collage-image:nth-child(1) { top: 2%; left: 0; transform: rotate(-4deg); }
.graduate-collage-image:nth-child(2) { z-index: 2; top: 24%; right: 0; transform: rotate(3deg); }
.graduate-collage-image:nth-child(3) { z-index: 1; top: 48%; left: 4%; transform: rotate(-2deg); }
.graduate-collage-image:nth-child(4) { z-index: 3; right: 2%; bottom: 2%; transform: rotate(2deg); }
.graduate-collage-image img { width: 100%; height: auto; }

/* Dark volunteer chapter */
.volunteer { color: var(--white); background: var(--ink); }
.volunteer-story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(55px, 8vw, 130px); padding-top: 38px; border-top: 1px solid rgba(255,255,255,.48); }
.volunteer-story h3 { margin: 0; font-size: clamp(2rem, 3.2vw, 3.6rem); line-height: 1.14; letter-spacing: -.035em; }
.volunteer-story p { margin: 0 0 28px; }
.volunteer-logo { width: min(350px, 100%); margin: 34px 0 15px; padding: 20px; background: var(--white); box-shadow: 12px 12px 0 var(--blue); transform: rotate(-3deg); }
.volunteer-logo img { width: 100%; height: auto; }
.volunteer-story .underlined-link { color: var(--yellow); }

/* Portfolio index */
.portfolio { color: var(--paper); background: var(--ink-soft); }
.client-work { padding-bottom: clamp(54px, 7vw, 96px); color: var(--ink); background: var(--gold); }
.client-work + .portfolio { padding-top: clamp(48px, 4vw, 64px); border-top: 1px solid rgba(255,255,255,.28); }
.client-carousel { max-width: 1200px; margin-inline: auto; }
.client-carousel-stage { --slide-distance: clamp(48px, 12vw, 180px); display: grid; overflow: hidden; overflow-anchor: none; }
.client-feature { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 90px); align-items: center; min-height: 390px; visibility: hidden; opacity: 0; pointer-events: none; }
.client-feature.is-active { z-index: 1; visibility: visible; opacity: 1; pointer-events: auto; }
.client-feature.is-leaving { z-index: 2; visibility: visible; pointer-events: none; animation: client-out-left 520ms cubic-bezier(.22,.75,.25,1) both; }
.client-feature.is-leaving.to-right { animation-name: client-out-right; }
.client-feature.is-entering { z-index: 3; visibility: visible; pointer-events: none; animation: client-in-right 520ms cubic-bezier(.22,.75,.25,1) both; }
.client-feature.is-entering.from-left { animation-name: client-in-left; }
.client-feature.is-entering, .client-feature.is-leaving { will-change: transform, opacity; }
@keyframes client-out-left { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(calc(0px - var(--slide-distance))); } }
@keyframes client-out-right { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(var(--slide-distance)); } }
@keyframes client-in-right { from { opacity: 0; transform: translateX(var(--slide-distance)); } to { opacity: 1; transform: translateX(0); } }
@keyframes client-in-left { from { opacity: 0; transform: translateX(calc(0px - var(--slide-distance))); } to { opacity: 1; transform: translateX(0); } }
.client-feature-media { display: block; width: 100%; min-width: 0; padding: 0; background: transparent; border: 0; text-align: left; }
.client-feature .project-thumb { border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.client-feature-copy { min-width: 0; }
.client-feature-copy h3 { margin: 0 0 20px; font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.04em; }
.client-feature-copy > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; margin: 23px 0 0; font-size: 1.04rem; line-height: 1.65; }
.client-feature-action { margin-top: 25px; padding: 12px 16px; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); font-size: .94rem; font-weight: 800; text-align: left; }
.client-feature-action:hover { color: var(--ink); background: var(--paper); }
.client-carousel-controls { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: clamp(20px, 3vw, 32px); }
.client-carousel-controls button { display: grid; width: 64px; height: 64px; place-items: center; padding: 0; color: var(--white); background: var(--ink); border: 2px solid var(--ink); border-radius: 50%; font-size: 2rem; font-weight: 800; line-height: 1; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.client-carousel-controls button:hover, .client-carousel-controls button:focus-visible { color: var(--ink); background: var(--white); border-color: var(--ink); transform: translateY(-3px); }
.client-carousel-controls button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.client-carousel-count { min-width: 96px; font: 500 1.08rem var(--mono); text-align: center; }
.portfolio-toolbar { display: flex; justify-content: space-between; gap: 25px; align-items: center; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,.35); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-bar button { padding: 8px 12px; color: var(--paper); background: transparent; border: 1px solid rgba(255,255,255,.55); font: .72rem var(--mono); }
.filter-bar button:hover, .filter-bar button[aria-pressed="true"] { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(35px, 5vw, 75px) clamp(20px, 3vw, 45px); padding-top: 44px; }
.project-card { min-width: 0; }
.project-card > button { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; color: inherit; background: transparent; border: 0; text-align: left; }
.project-thumb { flex: none; width: 100%; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 10; }
.project-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.project-thumb.fit-cover img { object-fit: cover; }
.project-card > button:hover .project-thumb img, .project-card > button:focus-visible .project-thumb img { transform: scale(1.05); }
.project-card h3 { margin: 16px 0 13px; color: var(--white); font-size: clamp(1.3rem, 1.7vw, 1.75rem); line-height: 1.2; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.project-tags > span { padding: 7px 10px; font: .8rem/1.35 var(--mono); }
.project-tags > .project-format { color: var(--paper); background: transparent; border: 1px solid rgba(255,255,255,.65); font: 800 .84rem/1.35 var(--sans); letter-spacing: -.01em; }
.project-tech { color: var(--ink); background: var(--yellow); border: 1px solid var(--yellow); }
.client-work .project-format { color: var(--ink); border-color: var(--ink); }
.client-work .project-tech { color: var(--white); background: var(--ink-soft); border-color: var(--ink-soft); }
.project-card-action { align-self: flex-start; display: inline-block; margin-top: auto; padding-top: 18px; padding-bottom: 5px; color: var(--yellow); border-bottom: 1px solid currentColor; font-size: .88rem; font-weight: 800; }
.project-card > button:hover .project-card-action { color: var(--white); }
.project-thumb.placeholder { display: grid; place-items: center; padding: 25px; border: 1px solid rgba(255,255,255,.55); }
.project-thumb.placeholder span { font: .8rem var(--mono); text-align: center; }
.client-work .project-thumb.placeholder { color: var(--paper); border-color: var(--ink); }

/* Contact */
.contact { color: var(--white); background: var(--blue); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 8vw; }
.contact-intro > p { max-width: 450px; margin: 0 0 26px; font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.5; }
.contact-intro > a { font-weight: 800; overflow-wrap: anywhere; }
.social-links { display: flex; gap: 25px; margin-top: 30px; font: .78rem var(--mono); }
.contact-form { display: grid; gap: 8px; }
.contact-form label { font: .7rem var(--mono); text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; margin-bottom: 15px; padding: 12px; color: var(--ink); background: var(--white); border: 1px solid var(--white); border-radius: 0; }
.contact-form button { justify-self: start; padding: 13px 18px; color: var(--ink); background: var(--yellow); border: 1px solid var(--yellow); font-weight: 800; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.contact-form button:hover, .contact-form button:focus-visible { color: var(--white); background: var(--ink-soft); border-color: var(--yellow); }
.contact-form button:disabled { opacity: .65; cursor: wait; }
.form-status { min-height: 1.5em; margin: 0; font-size: .88rem; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px var(--page-gutter); color: var(--paper); background: var(--ink); font: .72rem var(--mono); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--yellow); }
.back-to-top { position: fixed; z-index: 30; right: clamp(18px, 2.5vw, 36px); bottom: clamp(18px, 2.5vw, 36px); display: grid; width: 46px; height: 46px; place-items: center; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink-soft); font-size: 1.5rem; font-weight: 800; line-height: 1; text-decoration: none; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .2s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--yellow); }
body.dialog-open .back-to-top, body.menu-open .back-to-top { opacity: 0; visibility: hidden; pointer-events: none; }

/* Project case study dialog */
.project-dialog { position: fixed; inset: 0; width: min(600px, calc(100vw - 56px)); max-height: calc(100dvh - 52px); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); box-shadow: 15px 15px 0 rgba(7,22,47,.7); overflow: auto; opacity: 0; transform: translateY(12px) scale(.99); transition: opacity .24s ease, transform .24s ease, overlay .24s allow-discrete, display .24s allow-discrete; }
.project-dialog.is-open { opacity: 1; transform: translateY(0) scale(1); }
.project-dialog::backdrop { background: rgba(7,22,47,0); transition: background-color .24s ease; }
.project-dialog.is-open::backdrop { background: rgba(7,22,47,.82); }
.dialog-shell { position: relative; }
.dialog-close { position: sticky; z-index: 2; top: 0; display: flex; justify-content: flex-end; gap: 16px; align-items: center; width: 100%; padding: 13px clamp(22px, 4vw, 55px); color: var(--white); background: var(--blue); border: 0; font: 800 .88rem var(--sans); text-align: right; }
.dialog-close span { color: var(--yellow); font-size: 1.8rem; line-height: .7; }
.dialog-content { padding: clamp(25px, 5vw, 35px); }
.dialog-hero { margin-bottom: 24px; }
.dialog-hero h2 { margin: 0; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.03; letter-spacing: -.04em; }
.dialog-hero .project-tags { margin-top: 20px; }
.dialog-hero .project-format, .dialog-hero .project-tech { color: var(--ink); border-color: var(--ink); }
.project-dialog[data-group="client"] .project-tech { color: var(--white); background: var(--ink-soft); border-color: var(--ink-soft); }
#dialog-media-slot { overflow: hidden; overflow-anchor: none; }
.dialog-cover { position: relative; display: grid; width: 100%; height: min(50dvh, 420px); place-items: center; overflow: hidden; background: var(--ink-soft); }
.dialog-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.dialog-cover.fit-dialog { height: min(60dvh, 540px); }
.dialog-cover.placeholder { display: grid; min-height: 310px; place-items: center; color: var(--white); font: .8rem var(--mono); }
.zoom-cue { display: block; width: 100%; padding: 10px 12px; color: var(--paper); background: var(--ink); border: 0; font: .72rem var(--mono); text-align: right; transition: background-color .2s ease, color .2s ease; }
.zoom-cue:hover, .zoom-cue:focus-visible { color: var(--ink); background: var(--yellow); }
.media-caption { margin: 8px 0; font: .75rem/1.5 var(--mono); }
.media-controls { display: flex; justify-content: center; gap: 16px; align-items: center; margin: 15px 0 28px; font: .8rem var(--mono); }
.media-controls button { display: grid; width: 52px; height: 52px; place-items: center; padding: 0; color: var(--white); background: var(--ink); border: 2px solid var(--ink); border-radius: 50%; font: 800 1.6rem/1 var(--sans); transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.media-controls button:hover { color: var(--yellow); background: var(--ink-soft); border-color: var(--ink-soft); transform: translateY(-3px); }
.media-controls button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.project-pdf { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.project-pdf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.project-pdf-head h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.project-pdf-head a { color: var(--ink); font-weight: 800; text-underline-offset: 4px; }
.project-pdf-page { position: relative; display: grid; height: min(62dvh, 650px); place-items: center; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.project-pdf-page img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.pdf-controls { margin-bottom: 0; }
.pdf-controls button:disabled { opacity: .35; cursor: default; }
.pdf-controls button:disabled:hover { color: var(--white); background: var(--ink); border-color: var(--ink); transform: none; }
.dialog-prose { max-width: 700px; margin-top: 28px; }
.dialog-intro { margin: 0 0 32px; font-size: 1.08rem; line-height: 1.65; }
.dialog-details { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 30px 0; border-top: 1px solid var(--line); }
.dialog-details h3 { margin: 0; font-size: 1.38rem; }
.dialog-details p, .dialog-details li { margin: 0 0 14px; font-size: 1rem; line-height: 1.7; }
.dialog-details ul { margin: 0; padding-left: 20px; }
.dialog-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 0 0 24px; }
.dialog-actions a { padding: 13px 17px; color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); font-weight: 800; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.dialog-actions a:hover, .dialog-actions a:focus-visible { color: var(--white); background: var(--ink-soft); border-color: var(--yellow); }
.image-dialog { width: min(98vw, 1500px); max-width: none; max-height: 96dvh; padding: 0; color: var(--paper); background: var(--ink); border: 1px solid var(--paper); overflow: auto; }
.image-dialog::backdrop { background: rgba(7,22,47,.9); }
.image-dialog img { display: block; width: auto; max-width: none; max-height: none; margin-inline: auto; }

/* Content starts visible; JavaScript opts elements into a once-only reveal. */
.js-motion .reveal-target { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.js-motion .reveal-target.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1200px) {
  .nav-toggle { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 8px; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.5); }
  .nav-toggle span { display: block; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] { border-color: transparent; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: clamp(16px, 4vh, 36px); padding: 90px var(--page-gutter) 30px; background: var(--ink); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav a { width: fit-content; margin-inline: auto; padding: 4px 0; border-bottom: 2px solid transparent; font-size: clamp(1.65rem, 4vw, 2.75rem); line-height: 1.15; text-align: center; }
  .menu-open .wordmark { visibility: hidden; }
  .opening h1 { font-size: clamp(3.2rem, 6.5vw, 5.2rem); }
}
@media (max-width: 1200px) and (max-height: 550px) {
  .site-nav { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .opening-inner, .graduate-story, .music-story, .volunteer-story, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .opening-inner { row-gap: clamp(42px, 6vw, 60px); }
  .opening-art { width: min(600px, 100%); margin-inline: auto; }
  .hero-roles { max-width: 500px; }
  .welcome-banner-inner { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .section-head { justify-content: flex-start; }
  .music-story { gap: 0; }
  .music-collage, .graduate-collage { width: min(600px, 100%); margin: auto; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-toolbar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  .client-feature { grid-template-columns: minmax(0, 1fr); gap: 35px; min-height: 0; }
  .client-feature-media { width: min(620px, 100%); margin-inline: auto; }
  .client-feature-copy h3 { font-size: clamp(2rem, 7vw, 3rem); }
  .client-feature-copy > p { -webkit-line-clamp: 4; }
}
@media (max-width: 600px) {
  :root { --header-height: 62px; }
  .section-pad { padding-top: 40px; }
  .site-header { padding: 8px var(--page-gutter); }
  .opening h1 { font-size: clamp(2.75rem, 10vw, 3.8rem); }
  .welcome-banner-greeting { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .hero-roles { grid-template-columns: 1fr; max-width: 280px; }
  .hero-roles li { padding: 7px 0; }
  .opening-art { min-height: 390px; }
  .art-image-large { width: min(305px, 74%); top: 20px; }
  .art-image-small { width: min(190px, 52%); bottom: 10px; }
  .philosophy-row summary { gap: 18px; }
  .section-head h2 { font-size: clamp(2.65rem, 10vw, 4rem); }
  .education-row { grid-template-columns: 1fr; gap: 8px; }
  .education-date { text-align: left; }
  .music-collage { min-height: 365px; }
  .graduate-collage { min-height: 410px; }
  .project-grid { grid-template-columns: 1fr; }
  .client-carousel-controls button { width: 58px; height: 58px; }
  .contact-intro > p { font-size: 1.25rem; }
  .project-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; box-shadow: none; }
  .dialog-cover { height: min(42dvh, 300px); }
  .dialog-cover.fit-dialog { height: min(60dvh, 540px); }
}
@media (prefers-reduced-motion: reduce) {
  .splash-screen { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js-motion .reveal-target { opacity: 1; transform: none; }
}
