@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

:root {
  --bg: #070708;
  --bg-soft: #0e0e10;
  --surface: #121214;
  --ink: #f2f2ed;
  --muted: #9a9a96;
  --line: rgba(255,255,255,.14);
  --acid: #d9ff43;
  --pad: clamp(20px, 4.5vw, 72px);
  --header-h: 84px;
  --ease: cubic-bezier(.22,1,.36,1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--bg); -webkit-tap-highlight-color: transparent; }
body { min-height: 100%; margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, "Noto Sans SC", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { color: inherit; font: inherit; }
button { touch-action: manipulation; -webkit-appearance: none; appearance: none; }
img { display: block; width: 100%; }
::selection { color: #090909; background: var(--acid); }

.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; z-index: 20; }
.brand-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; font-weight: 700; letter-spacing: -.05em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; color: rgba(255,255,255,.64); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 1px; background: var(--acid); }
.eyebrow em { font-style: normal; }

/* Visual gate */
.gate-page { min-height: 100vh; min-height: 100svh; position: relative; overflow: hidden; background: #030304; cursor: crosshair; }
.signal-canvas, .gate-noise { position: fixed; inset: 0; width: 100%; height: 100%; }
.gate-noise { pointer-events: none; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.gate-page::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 48%, transparent 0 24%, rgba(0,0,0,.22) 58%, rgba(0,0,0,.78) 100%); }
.gate-header, .gate-footer { position: fixed; left: calc(var(--pad) + var(--safe-left)); right: calc(var(--pad) + var(--safe-right)); display: flex; align-items: center; justify-content: space-between; z-index: 5; }
.gate-header { top: calc(28px + var(--safe-top)); }
.gate-footer { bottom: calc(24px + var(--safe-bottom)); font-size: 10px; letter-spacing: .16em; color: rgba(255,255,255,.44); }
.gate-index { color: rgba(255,255,255,.5); font-size: 10px; letter-spacing: .18em; }
.gate-main { position: absolute; z-index: 3; left: calc(var(--pad) + var(--safe-left)); top: 50%; transform: translateY(-52%); width: min(940px, calc(100vw - 2 * var(--pad) - var(--safe-left) - var(--safe-right))); }
.gate-title { margin: 28px 0 22px; font-family: "Noto Sans SC", sans-serif; font-size: clamp(48px, 7.3vw, 118px); line-height: .98; letter-spacing: -.065em; font-weight: 900; }
.gate-title span { display: block; }
.gate-title-accent { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.68); }
.gate-copy { margin: 0; color: rgba(255,255,255,.56); font-size: 14px; letter-spacing: .18em; }
.enter-portfolio { position: fixed; right: calc(clamp(28px, 7vw, 112px) + var(--safe-right)); bottom: calc(clamp(76px, 12vh, 150px) + var(--safe-bottom)); z-index: 6; width: 148px; height: 148px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; transition: color .5s var(--ease), background .5s var(--ease), transform .5s var(--ease); }
.enter-orbit { position: absolute; inset: 9px; border-radius: inherit; border: 1px dashed rgba(255,255,255,.2); animation: spin 18s linear infinite; }
.enter-label { font-size: 14px; letter-spacing: .1em; }
.enter-arrow { position: absolute; right: 25px; top: 22px; }
.enter-portfolio:hover { color: #050506; background: var(--acid); border-color: var(--acid); transform: scale(1.04); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Shared portfolio */
.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: calc(var(--header-h) + var(--safe-top)); display: flex; align-items: center; justify-content: space-between; padding: var(--safe-top) calc(var(--pad) + var(--safe-right)) 0 calc(var(--pad) + var(--safe-left)); border-bottom: 1px solid transparent; transition: background .35s ease, border-color .35s ease; }
.site-header.is-scrolled { background: rgba(7,7,8,.78); border-color: var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.desktop-nav { display: flex; gap: 32px; font-size: 13px; }
.desktop-nav a { position: relative; color: rgba(255,255,255,.68); transition: color .25s; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--acid); transition: right .35s var(--ease); }
.desktop-nav a:hover { color: white; }
.desktop-nav a:hover::after { right: 0; }
.menu-button, .mobile-nav { display: none; }
.music-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 28px; padding: 8px 0; border: 0; background: transparent; color: rgba(255,255,255,.58); font-size: 9px; letter-spacing: .16em; cursor: pointer; }
.music-toggle[hidden] { display: none; }
.music-toggle span { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.music-toggle.is-playing { color: var(--acid); }
.music-toggle.is-playing span { border-color: var(--acid); background: var(--acid); box-shadow: 0 0 12px rgba(217,255,67,.75); animation: music-pulse 1.1s ease-in-out infinite alternate; }
@keyframes music-pulse { to { transform: scale(1.55); opacity: .5; } }
.section-shell { position: relative; width: 100%; padding-left: calc(var(--pad) + var(--safe-left)); padding-right: calc(var(--pad) + var(--safe-right)); }
.section-kicker { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 11px; letter-spacing: .16em; }
.section-kicker span { color: var(--acid); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; gap: 28px; margin-bottom: 58px; }
.section-heading h2 { margin: 0; font-family: "Noto Sans SC", sans-serif; font-size: clamp(42px, 6vw, 88px); line-height: 1.02; letter-spacing: -.055em; }
.section-heading > p { margin: 0; max-width: 390px; color: var(--muted); }

.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--header-h) + var(--safe-top) + 40px); padding-bottom: calc(38px + var(--safe-bottom)); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { height: 100%; object-fit: cover; object-position: 56% 54%; filter: saturate(.85) brightness(.9); transform: scale(1.03); animation: hero-breathe 12s ease-in-out infinite alternate; }
.hero-media-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,7,8,.72) 0%, rgba(7,7,8,.55) 37%, rgba(7,7,8,.05) 72%), linear-gradient(0deg, rgba(7,7,8,.72) 0%, transparent 48%, rgba(7,7,8,.12) 100%); }
@keyframes hero-breathe { to { transform: scale(1.08); } }
.hero-topline, .hero-content, .hero-counter { position: relative; z-index: 2; }
.hero-topline { display: flex; justify-content: space-between; padding-left: 28%; font-size: 10px; letter-spacing: .17em; color: rgba(255,255,255,.52); text-transform: uppercase; }
.hero-content { width: min(1050px, 100%); padding-top: 12vh; }
.hero-content h1 { margin: 22px 0 46px; font-family: "Noto Sans SC", sans-serif; font-size: clamp(60px, 8.1vw, 126px); line-height: .94; letter-spacing: -.075em; font-weight: 900; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.hero-bottom p { margin: 0; width: min(500px, 100%); color: rgba(255,255,255,.72); font-size: 17px; }
.primary-action { display: flex; align-items: center; justify-content: space-between; gap: 60px; min-width: 250px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.6); font-size: 14px; }
.primary-action b { color: var(--acid); font-size: 18px; transition: transform .35s var(--ease); }
.primary-action:hover b { transform: translateY(5px); }
.hero-counter { position: absolute; right: var(--pad); bottom: 34px; font-size: 10px; letter-spacing: .16em; color: rgba(255,255,255,.44); }

.about { padding-top: 130px; padding-bottom: 130px; }
.about-grid { display: grid; grid-template-columns: minmax(300px, .78fr) 1.7fr; gap: clamp(44px, 7vw, 120px); margin-top: 54px; }
.identity-card { position: relative; min-height: 590px; background: #111114; border: 1px solid var(--line); overflow: hidden; }
.identity-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(217,255,67,.12), transparent 30%), linear-gradient(135deg, transparent 0 49.8%, rgba(255,255,255,.09) 50%, transparent 50.2%); }
.identity-orbit { position: absolute; width: 78%; aspect-ratio: 1; left: 11%; top: 16%; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.identity-orbit::before, .identity-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); }
.identity-orbit::before { inset: 12%; }.identity-orbit::after { inset: 28%; }
.identity-orbit span { position: absolute; width: 8px; height: 8px; left: 12%; top: 16%; background: var(--acid); border-radius: 50%; box-shadow: 0 0 24px var(--acid); }
.identity-monogram { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); font-size: clamp(110px, 14vw, 210px); font-weight: 600; letter-spacing: -.12em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.58); }
.identity-caption { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .13em; }
.display-quote { max-width: 1050px; margin: 0 0 84px; font-family: "Noto Sans SC", sans-serif; font-size: clamp(27px, 3.2vw, 48px); line-height: 1.35; letter-spacing: -.035em; }
.about-details { display: grid; grid-template-columns: 1.1fr .8fr; gap: 48px; padding-top: 34px; border-top: 1px solid var(--line); }
.about-details h2 { margin: 0; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.45; }
.about-details p { margin: 0; color: var(--muted); }
.contact-lines { margin-top: 68px; }
.contact-lines div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-lines span { color: var(--muted); font-size: 13px; }
.contact-lines strong { font-size: 14px; font-weight: 500; }
.method-metrics { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-metrics div { padding: 34px 24px; border-right: 1px solid var(--line); }
.method-metrics div:first-child { padding-left: 0; }.method-metrics div:last-child { border-right: 0; }
.method-metrics strong { display: block; font-size: clamp(36px, 4vw, 58px); line-height: 1; letter-spacing: -.05em; }
.method-metrics span { display: block; margin-top: 16px; color: var(--muted); font-size: 13px; }

.projects { padding-top: 120px; padding-bottom: 140px; background: #080809; overflow: hidden; }
.showcase-cover { display: grid; grid-template-columns: minmax(240px, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: 68px; padding: clamp(28px, 4vw, 54px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.showcase-cover div { display: grid; gap: 12px; }
.showcase-cover span, .project-caption { color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .15em; }
.showcase-cover strong { font-size: clamp(28px, 4.8vw, 76px); line-height: 1; font-weight: 600; letter-spacing: 0; }
.showcase-cover p { margin: 0; max-width: 650px; color: rgba(255,255,255,.66); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.9; }
.project-list { display: grid; gap: clamp(54px, 8vw, 132px); }
.project-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: clamp(22px, 4.6vw, 76px); align-items: end; padding-bottom: clamp(42px, 5vw, 74px); border-bottom: 1px solid var(--line); }
.project-card:nth-child(even) { grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); }
.project-card:nth-child(even) .project-visual { order: 2; }
.project-card:nth-child(even) .project-info { order: 1; }
.project-visual { display: grid; gap: 14px; }
.project-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; box-shadow: 0 26px 90px rgba(0,0,0,.36); }
.project-image::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 22%, rgba(0,0,0,.2)); opacity: .75; }
.project-image img { width: 300%; max-width: none; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s ease; filter: saturate(.82) contrast(1.03); }
.project-image-one img { transform: translateX(0) scale(1.01); }
.project-image-two img { transform: translateX(-33.333%) scale(1.01); }
.project-image-three img { transform: translateX(-66.666%) scale(1.01); }
.project-image.dynamic-media img, .project-image.dynamic-media video { width: 100%; max-width: none; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 1s var(--ease), filter .6s ease; filter: saturate(.82) contrast(1.03); }
.project-card--square .project-image { aspect-ratio: 1 / 1; }
.project-card--portrait .project-image { width: min(100%, 450px); aspect-ratio: 9 / 16; justify-self: center; }
.project-card--square .project-image.dynamic-media img, .project-card--portrait .project-image.dynamic-media img { object-fit: contain; transform: none; filter: none; }
.project-card--square .project-image::after, .project-card--portrait .project-image::after { display: none; }
.project-card:hover .project-image.dynamic-media img, .project-card:hover .project-image.dynamic-media video { transform: scale(1.045); filter: saturate(1); }
.project-card--square:hover .project-image.dynamic-media img, .project-card--portrait:hover .project-image.dynamic-media img { transform: none; filter: none; }
.project-card.project-card--split { grid-template-columns: minmax(0, 1fr); }
.project-card--split:nth-child(even) .project-visual, .project-card--split:nth-child(even) .project-info { order: initial; }
.project-card--split .project-info { min-height: 0; }
.project-card.project-card--accordion { display: block; grid-template-columns: none; padding-bottom: clamp(42px, 5vw, 74px); }
.project-card--accordion:nth-child(even) { grid-template-columns: none; }
.project-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 22px); align-items: start; }
.project-split figure { margin: 0; min-width: 0; }
.project-split img { display: block; width: 100%; height: auto; }
.project-split figcaption { margin-bottom: 10px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.project-card:hover .project-image-one img { transform: translateX(0) scale(1.045); filter: saturate(1); }
.project-card:hover .project-image-two img { transform: translateX(-33.333%) scale(1.045); filter: saturate(1); }
.project-card:hover .project-image-three img { transform: translateX(-66.666%) scale(1.045); filter: saturate(1); }
.mockup-section { padding-top: 30px; padding-bottom: clamp(70px, 9vw, 150px); }
.mockup-stage { position: relative; overflow: hidden; border-radius: 4px; padding: clamp(34px, 4vw, 64px) clamp(20px, 4vw, 64px) 28px; background: radial-gradient(ellipse at 50% 70%, #dbe4e8, transparent 65%), #f3f3f0; color: #25282b; }
.mockup-watermark { position: absolute; top: 15px; left: 0; width: 100%; text-align: center; white-space: nowrap; font-family: serif; font-size: clamp(48px, 10vw, 150px); line-height: 1.2; letter-spacing: .06em; color: transparent; -webkit-text-stroke: 1px #d4d6d4; pointer-events: none; }
.mockup-devices { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 65px); max-width: 1100px; margin: 0 auto; }
.mockup-device { min-width: 0; margin: 0; }
.phone-shell { position: relative; padding: 10px; border: 2px solid #8b8e90; border-radius: 44px; background: linear-gradient(110deg, #454749, #080909 15%, #141515 80%, #747779); box-shadow: inset 0 0 0 2px #171919, 0 25px 35px -18px #3d444e80, 0 0 0 1px #bcbebb; transition: transform .5s var(--ease); }
.phone-screen { width: 100%; aspect-ratio: 9 / 19.5; overflow-y: auto; overflow-x: hidden; border-radius: 32px; background: #e5eef5; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen:focus-visible { outline: 3px solid #749cb4; outline-offset: -3px; }
.phone-screen img { display: block; width: 100%; height: auto; max-width: 100%; }
.phone-notch { position: absolute; top: 10px; left: 29%; width: 42%; height: 23px; border-radius: 0 0 15px 15px; background: #080909; pointer-events: none; }
.phone-notch::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; right: 13px; top: 7px; background: #1b3041; box-shadow: inset 0 0 2px #6694ae; }
.phone-home { position: absolute; width: 32%; height: 4px; left: 34%; bottom: 19px; border-radius: 4px; background: #17191999; pointer-events: none; }
.mockup-device figcaption { display: grid; gap: 8px; margin-top: 24px; text-align: center; }
.mockup-device figcaption span { font-size: 9px; letter-spacing: .1em; color: #70777a; }
.mockup-device figcaption strong { font-size: clamp(12px, 1.1vw, 16px); font-weight: 500; }
.mockup-stage-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 38px; padding-top: 22px; border-top: 1px solid #cfd3d3; font-size: 11px; color: #62696e; }
.mockup-stage-footer p { margin: 0; }
.mockup-stage-footer p span { display: none; }
.mockup-stage-footer a { white-space: nowrap; color: #30383e; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .phone-shell:hover { transform: translateY(-8px); } }
@media (max-width: 700px) {
  .mockup-stage { padding: 28px 0 24px; }
  .mockup-watermark { top: 18px; font-size: 48px; }
  .mockup-devices { display: flex; gap: 24px; padding: 10px 28px 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 28px; -webkit-overflow-scrolling: touch; }
  .mockup-device { flex: 0 0 min(72vw, 300px); scroll-snap-align: center; }
  .mockup-stage-footer { flex-direction: column; margin: 14px 24px 0; line-height: 1.8; }
  .mockup-stage-footer p span { display: inline; }
}
.project-info { display: grid; align-content: end; gap: 22px; min-height: min(34vw, 430px); }
.project-number { display: grid; place-items: center; width: 48px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: var(--acid); font-size: 11px; }
.project-meta { display: grid; gap: 7px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.project-title-row { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.project-title-row h3 { margin: 0; font-size: clamp(28px, 3.8vw, 58px); line-height: 1.08; font-weight: 500; letter-spacing: 0; }
.project-title-row span { color: var(--muted); font-size: 12px; }
.project-excerpt { margin: 0; color: rgba(255,255,255,.64); font-size: 15px; line-height: 1.9; }
.showcase-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(58px, 8vw, 126px); }
.showcase-tile { display: block; min-width: 0; border: 1px solid var(--line); background: #0e0e10; }
.showcase-preview { aspect-ratio: 4 / 5; overflow: hidden; }
.showcase-preview img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.showcase-preview--long img { object-fit: cover; object-position: center top; }
.showcase-tile-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; font-size: 12px; line-height: 1.5; border-top: 1px solid var(--line); }
.showcase-tile-caption span:last-child { color: var(--muted); font-size: 11px; }
.showcase-tile:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

.strengths { padding-top: 130px; padding-bottom: 140px; }
.strengths .section-heading { grid-template-columns: 1fr 3fr; }
.strength-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.strength-card { position: relative; min-height: 330px; padding: clamp(28px, 4vw, 56px); background: var(--bg); transition: background .35s ease; }
.strength-card:hover { background: #101113; }
.strength-index { position: absolute; right: 28px; top: 24px; color: var(--acid); font-size: 11px; }
.strength-card h3 { margin: 76px 0 20px; font-size: clamp(28px, 3vw, 42px); font-weight: 500; letter-spacing: -.04em; }
.strength-card p { width: min(460px, 92%); margin: 0; color: var(--muted); }
.strength-card div { position: absolute; left: clamp(28px, 4vw, 56px); bottom: 28px; color: rgba(255,255,255,.37); font-size: 10px; letter-spacing: .13em; }

.contact { min-height: 95vh; min-height: 95svh; padding-top: 150px; padding-bottom: calc(32px + var(--safe-bottom)); background: var(--acid); color: #090a08; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.contact .eyebrow { color: rgba(9,10,8,.62); }.contact .eyebrow span { background: #090a08; }
.contact-content { position: relative; z-index: 2; width: min(1050px, 82%); }
.contact-content h2 { margin: 32px 0 36px; font-family: "Noto Sans SC", sans-serif; font-size: clamp(56px, 8vw, 122px); line-height: .98; letter-spacing: -.07em; }
.contact-content > p { max-width: 560px; font-size: 17px; }
.contact-action { margin-top: 54px; display: flex; align-items: center; justify-content: space-between; width: min(440px, 100%); padding: 18px 0; border-bottom: 1px solid rgba(9,10,8,.6); }
.contact-action b { font-size: 20px; transition: transform .35s var(--ease); }.contact-action:hover b { transform: translate(5px,-5px); }
.contact-radar { position: absolute; width: min(62vw, 840px); aspect-ratio: 1; right: -10vw; top: 50%; transform: translateY(-50%); border: 1px solid rgba(9,10,8,.15); border-radius: 50%; }
.contact-radar i { position: absolute; inset: 16%; border: 1px solid rgba(9,10,8,.14); border-radius: 50%; }.contact-radar i:nth-child(2){inset:32%}.contact-radar i:nth-child(3){inset:44%}
.contact-radar b { position: absolute; width: 9px; height: 9px; left: 17%; top: 27%; border-radius: 50%; background: #090a08; box-shadow: 0 0 0 7px rgba(9,10,8,.12); }
.contact-footer { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: end; padding-top: 26px; border-top: 1px solid rgba(9,10,8,.25); }
.contact-footer div span, .contact-footer div strong { display: block; }.contact-footer span { font-size: 10px; letter-spacing: .12em; opacity: .54; }.contact-footer strong { font-size: 13px; font-weight: 500; }.contact-footer > a { font-size: 11px; letter-spacing: .1em; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* CMS project detail */
.detail-page { background: #09090b; }
.detail-back { color: rgba(255,255,255,.62); font-size: 11px; letter-spacing: .14em; }
.project-detail { padding-top: calc(var(--header-h) + var(--safe-top) + 86px); padding-bottom: calc(70px + var(--safe-bottom)); }
.detail-heading { width: min(1180px, 100%); margin: 0 auto 64px; }
.detail-heading h1 { max-width: 1050px; margin: 24px 0 52px; font-family: "Noto Sans SC", sans-serif; font-size: clamp(54px, 8vw, 126px); font-weight: 900; line-height: .98; letter-spacing: -.07em; }
.detail-intro { display: grid; grid-template-columns: minmax(0, 680px) auto; justify-content: space-between; align-items: end; gap: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.detail-intro p { margin: 0; color: rgba(255,255,255,.68); font-size: 18px; }
.detail-intro span { color: var(--muted); font-size: 10px; letter-spacing: .15em; }
.detail-cover, .detail-gallery { width: min(1400px, 100%); margin: 0 auto; }
.detail-media-item { margin: 0 0 28px; }
.detail-media-item img, .detail-media-item video { display: block; width: 100%; background: #111; }
.detail-media-item img { height: auto; object-fit: contain; }
.detail-media-item video { max-height: 90vh; object-fit: cover; }
.detail-media-item figcaption { padding-top: 9px; color: var(--muted); font-size: 12px; }
.detail-copy { width: min(760px, 100%); margin: 86px auto; color: rgba(255,255,255,.74); font-size: clamp(18px, 2vw, 24px); line-height: 1.8; }
.detail-copy p { margin: 0 0 1.4em; }
.detail-gallery { display: grid; gap: 28px; }
.detail-end { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: 100px; padding-top: 30px; border-top: 1px solid var(--line); }
.detail-end span { color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.detail-end a { padding-bottom: 6px; border-bottom: 1px solid var(--acid); font-size: clamp(22px, 3vw, 38px); }

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .desktop-nav { display: none; }
  .music-toggle { margin-left: auto; margin-right: 12px; }
  .menu-button { display: block; position: relative; z-index: 60; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; }
  .menu-button span { position: absolute; left: 8px; right: 8px; height: 1px; background: white; transition: transform .3s, top .3s; }.menu-button span:first-child{top:16px}.menu-button span:last-child{top:25px}
  .menu-button[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }.menu-button[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
  .mobile-nav { display: flex; position: fixed; inset: 0; height: 100vh; height: 100dvh; padding: 120px var(--pad) 50px; flex-direction: column; gap: 12px; background: rgba(7,7,8,.98); visibility: hidden; pointer-events: none; transform: translateY(-105%); transition: transform .55s var(--ease), visibility .55s; }
  .mobile-nav.is-open { visibility: visible; pointer-events: auto; transform: translateY(0); }
  .mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: clamp(32px, 8vw, 54px); line-height: 1.3; }
  .hero-topline { padding-left: 0; }
  .hero-bottom { align-items: flex-start; flex-direction: column; }.hero-bottom p { font-size: 16px; }.primary-action { min-width: 230px; }
  .about-grid { grid-template-columns: 1fr; }.identity-card { min-height: 72vw; max-height: 620px; }.display-quote { margin-bottom: 56px; }
  .about-details { grid-template-columns: 1fr; }.method-metrics { grid-template-columns: repeat(2,1fr); }.method-metrics div:nth-child(2) { border-right: 0; }.method-metrics div { border-bottom: 1px solid var(--line); }.method-metrics div:nth-child(3), .method-metrics div:nth-child(4) { border-bottom: 0; }.method-metrics div:nth-child(3) { padding-left: 0; }
  .section-heading, .strengths .section-heading { grid-template-columns: 1fr; align-items: start; }.section-heading > p { max-width: 560px; }
  .showcase-cover { grid-template-columns: 1fr; align-items: start; margin-bottom: 52px; }
  .project-list { gap: 76px; }
  .project-card, .project-card:nth-child(even) { grid-template-columns: 1fr; gap: 22px; }
  .project-card:nth-child(even) .project-visual, .project-card:nth-child(even) .project-info { order: initial; }
  .project-info { min-height: 0; gap: 17px; }
  .project-number { width: 42px; }
  .contact-content { width: 100%; }.contact-radar { width: 90vw; right: -42vw; opacity: .6; }.contact-footer { grid-template-columns: 1fr 1fr; }.contact-footer > a { grid-column: 1/-1; }
  .detail-intro { grid-template-columns: 1fr; align-items: start; }.detail-intro span { order: -1; }.detail-copy { margin: 64px auto; }
}

@media (max-width: 620px) {
  :root { --pad: 20px; }
  .gate-header { top: calc(20px + var(--safe-top)); }.gate-index { display: none; }.gate-main { top: 44%; }.gate-title { font-size: clamp(45px, 15vw, 72px); line-height: 1.05; }.gate-copy { font-size: 12px; letter-spacing: .11em; }
  .enter-portfolio { width: 120px; height: 120px; right: calc(22px + var(--safe-right)); bottom: calc(70px + var(--safe-bottom)); }.enter-label { font-size: 13px; }.gate-footer span:first-child { display: none; }
  .hero { min-height: 100vh; min-height: 100svh; padding-top: calc(98px + var(--safe-top)); }.hero-media img { width: 100%; max-width: none; object-position: 82% center; transform: scale(1.03); }.hero-media-shade { background: linear-gradient(0deg, rgba(7,7,8,.96) 0, rgba(7,7,8,.76) 42%, rgba(7,7,8,.15) 80%, rgba(7,7,8,.34) 100%); }.hero-topline span:last-child { display: none; }.hero-content { padding-top: 12vh; }.hero-content h1 { margin-bottom: 34px; font-size: clamp(42px, 15vw, 82px); }.hero-counter { display: none; }
  .about, .projects, .strengths { padding-top: 94px; padding-bottom: 96px; }.about-grid { margin-top: 38px; }.display-quote { font-size: 25px; }.about-details { gap: 24px; }.contact-lines div { grid-template-columns: 90px 1fr; }.method-metrics { margin-top: 56px; }.method-metrics div { padding: 24px 15px; }.method-metrics div:first-child, .method-metrics div:nth-child(3) { padding-left: 0; }.method-metrics strong { font-size: 34px; }
  .section-heading { margin-bottom: 38px; gap: 18px; }.showcase-cover { padding: 24px 0; gap: 18px; }.showcase-cover strong { font-size: 30px; }.showcase-cover p { font-size: 15px; line-height: 1.8; }.project-list { gap: 62px; }.project-card { padding-bottom: 50px; }.project-image { aspect-ratio: 4/3; }.project-card--square .project-image { aspect-ratio: 1/1; }.project-card--portrait .project-image { aspect-ratio: 9/16; max-width: 400px; }.project-caption { font-size: 9px; }.project-meta { gap: 3px; }.project-title-row { gap: 6px; }.project-title-row h3 { font-size: 26px; line-height: 1.2; }.project-excerpt { font-size: 14px; line-height: 1.8; }
  .showcase-strip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .showcase-preview:not(.showcase-preview--long) { aspect-ratio: auto; }
  .showcase-preview:not(.showcase-preview--long) img { height: auto; }
  .strength-grid { grid-template-columns: 1fr; }.strength-card { min-height: 300px; }.strength-card h3 { margin-top: 60px; }
  .contact { min-height: 100vh; min-height: 100svh; padding-top: 104px; }.contact-content h2 { font-size: clamp(48px, 15vw, 72px); }.contact-content > p { font-size: 16px; }.contact-footer { grid-template-columns: 1fr; gap: 14px; }.contact-footer > a { grid-column: auto; margin-top: 12px; }
  .detail-back { display: none; }.project-detail { padding-top: calc(100px + var(--safe-top)); }.detail-heading { margin-bottom: 36px; }.detail-heading h1 { margin: 20px 0 34px; font-size: clamp(48px, 15vw, 76px); }.detail-intro p { font-size: 16px; }.detail-copy { margin: 48px auto; font-size: 18px; }.detail-gallery { gap: 12px; }.detail-media-item { margin-bottom: 12px; }.detail-end { align-items: flex-start; flex-direction: column; margin-top: 64px; }
}

@media (hover: none) and (pointer: coarse) {
  .enter-portfolio:active { color: #050506; background: var(--acid); border-color: var(--acid); transform: scale(.98); }
  .project-card:active .project-image img { filter: saturate(1); }
  .primary-action, .contact-action { min-height: 48px; }
  .menu-button { min-width: 44px; min-height: 44px; }
}

@supports (-webkit-touch-callout: none) {
  .gate-page, .hero, .contact { min-height: -webkit-fill-available; }
  .mobile-nav { min-height: -webkit-fill-available; }
}

/* Luminous beauty cover; the rest of the portfolio keeps its dark gallery. */
.hero--light { color: #292b27; background: #f5f1e9; padding-bottom: calc(68px + var(--safe-bottom)); }
.hero--light .hero-media { overflow: hidden; }
.hero--light .hero-media img { object-position: 64% center; filter: none; }
.hero--light .hero-media-shade { background: linear-gradient(90deg, rgba(245,241,233,.62), rgba(245,241,233,.18) 48%, transparent 74%), linear-gradient(0deg, rgba(245,241,233,.52), transparent 30%); }
.hero--light .hero-topline { padding-left: 0; color: #626158; }
.hero--light .hero-content { width: min(760px, 67%); padding-top: 110px; }
.hero--light .eyebrow { color: #605c50; }
.hero--light .eyebrow span { background: #857148; }
.hero--light .hero-content h1 { margin: 24px 0 32px; font-size: clamp(52px, 6.1vw, 94px); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; }
.hero--light .hero-bottom { align-items: flex-start; flex-direction: column; gap: 30px; }
.hero--light .hero-bottom p { width: min(440px, 100%); color: #52534b; font-size: 16px; line-height: 1.85; }
.hero--light .primary-action { min-width: 240px; padding: 17px 22px; color: #fffdf7; background: #343c31; border: 1px solid #343c31; }
.hero--light .primary-action b { color: #efe2bf; }
.hero--light .primary-action:hover { background: #48533e; }
.hero--light .hero-counter { color: #626158; }
.site-header.is-over-light:not(.is-menu-open) { color: #34352f; }
.site-header.is-over-light.is-scrolled:not(.is-menu-open) { background: rgba(245,241,233,.9); border-color: rgba(67,63,52,.14); }
.site-header.is-over-light:not(.is-menu-open) .desktop-nav a { color: #52534b; }
.site-header.is-over-light:not(.is-menu-open) .desktop-nav a:hover { color: #191d18; }
.site-header.is-over-light .desktop-nav a::after { background: #857148; }
.site-header.is-over-light:not(.is-menu-open) .menu-button span { background: #34352f; }
.site-header.is-over-light:not(.is-menu-open) .music-toggle { color: #605c50; }
.site-header.is-menu-open, .mobile-nav { color: var(--ink); }
@media (max-width: 900px) {
  .hero--light .hero-content { width: 100%; padding-top: clamp(190px, 32svh, 360px); }
  .hero--light .hero-media { bottom: auto; height: 66%; }
  .hero--light .hero-media img { object-position: 90% center; }
  .hero--light .hero-media-shade { background: linear-gradient(0deg, #f5f1e9 0%, rgba(245,241,233,.92) 10%, rgba(245,241,233,.2) 42%, transparent 65%, rgba(245,241,233,.35) 100%); }
  .hero--light .hero-content h1 { font-size: clamp(44px, 8.5vw, 72px); }
  .hero--light .hero-topline span:last-child { display: none; }
}
@media (max-width: 620px) {
  .hero--light { padding-top: calc(100px + var(--safe-top)); padding-bottom: calc(36px + var(--safe-bottom)); }
  .hero--light .hero-media { height: 58%; }
  .hero--light .hero-content { padding-top: clamp(195px, 29svh, 280px); }
  .hero--light .hero-content h1 { font-size: clamp(38px, 10.5vw, 58px); line-height: 1.14; margin: 18px 0 22px; }
  .hero--light .hero-bottom { gap: 24px; }
  .hero--light .hero-bottom p { font-size: 14px; line-height: 1.8; }
  .hero--light .primary-action { min-width: 218px; padding: 14px 18px; }
  .hero--light .hero-topline { font-size: 9px; }
}

/* Warm light theme for the full portfolio and its project pages. */
.portfolio-page {
  --bg: #f7f4ee;
  --bg-soft: #efebe3;
  --surface: #fffdf8;
  --ink: #272822;
  --muted: #747269;
  --line: rgba(55,52,43,.16);
  --acid: #8a7040;
  background: var(--bg);
  color: var(--ink);
}
.portfolio-page .site-header { color: var(--ink); }
.portfolio-page .site-header.is-scrolled { background: rgba(247,244,238,.9); border-color: var(--line); }
.portfolio-page .desktop-nav a { color: rgba(39,40,34,.68); }
.portfolio-page .desktop-nav a:hover { color: #151611; }
.portfolio-page .desktop-nav a::after { background: var(--acid); }
.portfolio-page .music-toggle { color: rgba(39,40,34,.6); }
.portfolio-page .menu-button span { background: var(--ink); }
.portfolio-page .site-header.is-menu-open { color: #f2f2ed; }
.portfolio-page .site-header.is-menu-open .menu-button span { background: #f2f2ed; }
.portfolio-page .mobile-nav { color: #f2f2ed; background: rgba(37,36,33,.985); }
.portfolio-page .mobile-nav a { border-color: rgba(255,255,255,.18); }
.portfolio-page .section-kicker { color: var(--muted); }
.portfolio-page .section-kicker span { color: var(--acid); }
.portfolio-page .eyebrow { color: #6f685a; }
.portfolio-page .eyebrow span { background: var(--acid); }

.portfolio-page .about { background: linear-gradient(180deg, #faf8f3 0%, #f7f4ee 100%); }
.portfolio-page .identity-card { background: linear-gradient(145deg, #eee7da, #fcfaf5 54%, #e8dfd0); border-color: var(--line); }
.portfolio-page .identity-card::before { background: radial-gradient(circle at 50% 42%, rgba(175,143,84,.22), transparent 31%), linear-gradient(135deg, transparent 0 49.8%, rgba(57,52,40,.1) 50%, transparent 50.2%); }
.portfolio-page .identity-orbit { border-color: rgba(57,52,40,.16); }
.portfolio-page .identity-orbit::before, .portfolio-page .identity-orbit::after { border-color: rgba(57,52,40,.1); }
.portfolio-page .identity-orbit span { background: #ae8a4d; box-shadow: 0 0 24px rgba(174,138,77,.5); }
.portfolio-page .identity-monogram { -webkit-text-stroke-color: rgba(57,52,40,.52); }
.about-grid--carousel { grid-template-columns: minmax(0, 1fr); }
.about-grid--carousel .about-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about-grid--carousel .display-quote { margin-bottom: 0; }
.about-grid--carousel .about-details, .about-grid--carousel .contact-lines { grid-column: 2; }
.about-grid--carousel .about-details { grid-template-columns: 1fr; }
.about-grid--carousel .contact-lines { margin-top: -12px; }
.profile-carousel-shell { min-width: 0; }
.profile-carousel-fallback { min-height: 500px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: #eee8de; }
.profile-carousel-fallback img { width: min(44vw, 360px); aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.profile-carousel-fallback span { color: var(--muted); font-size: 11px; }

.resume { padding-top: clamp(84px, 10vw, 150px); padding-bottom: clamp(84px, 10vw, 150px); background: #eeeae2; }
.resume-inline { margin-top: clamp(72px, 9vw, 132px); padding-top: clamp(34px, 5vw, 64px); border-top: 1px solid var(--line); }
.resume-placeholder { min-height: clamp(420px, 54vw, 720px); margin-top: 54px; padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(55,52,43,.2); background: linear-gradient(135deg, rgba(255,253,248,.86), rgba(229,220,204,.7)); }
.resume-placeholder p { margin: 0 0 22px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.resume-placeholder h2 { margin: 0; max-width: 8em; font-size: clamp(44px, 7vw, 104px); font-weight: 600; line-height: .98; letter-spacing: -.06em; }
.resume-placeholder > span { align-self: flex-end; color: rgba(39,40,34,.42); font-size: 10px; letter-spacing: .15em; }

.portfolio-page .projects { background: linear-gradient(180deg, #eeeae2 0%, #f5f1ea 100%); }
.portfolio-page .showcase-cover span, .portfolio-page .project-caption { color: rgba(39,40,34,.52); }
.portfolio-page .showcase-cover p, .portfolio-page .project-excerpt { color: rgba(39,40,34,.7); }
.portfolio-page .project-image { background: #e4dfd5; box-shadow: 0 24px 70px rgba(65,58,45,.16); }
.portfolio-page .project-image::after { background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 24%, rgba(64,55,42,.08)); }
.portfolio-page .project-number { border-color: rgba(55,52,43,.42); color: var(--acid); }
.portfolio-page .showcase-tile { border-color: var(--line); background: #fffdf8; }

.portfolio-page .mockup-section { background: #f7f4ee; }
.portfolio-page .mockup-stage { background: radial-gradient(ellipse at 50% 70%, #dce5e5, transparent 65%), #f8f8f4; box-shadow: 0 24px 80px rgba(65,58,45,.08); }

.portfolio-page .strengths { background: #faf8f3; }
.portfolio-page .strength-grid { gap: 16px; border: 0; background: transparent; }
.portfolio-page .strength-card { border: 1px solid var(--line); background: #fffdf8; box-shadow: 0 14px 40px rgba(65,58,45,.05); }
.portfolio-page .strength-card:hover { background: #f0eadf; }
.portfolio-page .strength-card div { color: rgba(39,40,34,.42); }

.portfolio-page .contact { background: #ded2b8; color: #29281f; }
.portfolio-page .contact .eyebrow { color: rgba(41,40,31,.62); }
.portfolio-page .contact .eyebrow span { background: #29281f; }
.portfolio-page .contact-action { border-color: rgba(41,40,31,.55); }
.portfolio-page .contact-radar, .portfolio-page .contact-radar i { border-color: rgba(41,40,31,.15); }
.portfolio-page .contact-radar b { background: #29281f; box-shadow: 0 0 0 7px rgba(41,40,31,.1); }
.portfolio-page .contact-footer { border-color: rgba(41,40,31,.22); }

.portfolio-page.detail-page { background: #f6f3ed; }
.portfolio-page .detail-back { color: rgba(39,40,34,.64); }
.portfolio-page .detail-intro p, .portfolio-page .detail-copy { color: rgba(39,40,34,.74); }
.portfolio-page .detail-media-item img, .portfolio-page .detail-media-item video { background: #ebe6dc; }
.portfolio-page .detail-end a { border-color: var(--acid); }

/* Project detail: compact mobile reading and full-screen media controls. */
.detail-page { overflow-x: clip; }
.detail-progress { position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--acid); pointer-events: none; transition: width .12s linear; }
.detail-heading h1 { max-width: 100%; text-wrap: balance; overflow-wrap: anywhere; word-break: normal; }
.detail-view-hint { width: min(1400px, 100%); margin: -32px auto 18px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.detail-media-item img[role="button"] { cursor: zoom-in; touch-action: manipulation; }
.detail-media-item img[role="button"]:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }
.detail-cover.is-split { width: min(960px, 100%); }
.detail-long-split { display: grid; gap: clamp(18px, 3vw, 42px); }
.detail-split-segment { position: relative; width: 100%; aspect-ratio: var(--detail-split-ratio, 1 / 3.2); margin: 0; overflow: hidden; background: #ebe6dc; }
.detail-split-segment img { position: absolute; inset: 0 auto auto 0; display: block; width: 100%; max-width: none; height: auto; cursor: zoom-in; transform: translateY(var(--detail-shift)); }
.detail-split-segment figcaption { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 7px 9px; color: #fff; background: rgba(25,25,22,.72); font-size: 9px; line-height: 1; letter-spacing: .12em; }
.media-viewer[hidden] { display: none; }
.media-viewer { position: fixed; z-index: 200; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(14px + var(--safe-top)) calc(18px + var(--safe-right)) calc(14px + var(--safe-bottom)) calc(18px + var(--safe-left)); color: #f7f4ee; background: rgba(22,22,20,.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.media-viewer-header, .media-viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; font-size: 11px; letter-spacing: .08em; }
.media-viewer button { min-height: 44px; padding: 8px 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.media-viewer button:focus-visible { outline: 2px solid #d8c28f; outline-offset: 3px; }
.media-viewer-stage { min-width: 0; min-height: 0; display: flex; justify-content: center; align-items: center; overflow: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; scrollbar-width: thin; }
.media-viewer-stage img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.media-viewer-stage img.is-long { width: min(100%, 790px); max-height: none; align-self: flex-start; }
.media-viewer-footer span { flex: 1; min-width: 0; overflow: hidden; text-align: center; white-space: nowrap; text-overflow: ellipsis; color: rgba(247,244,238,.66); }
.media-viewer-open { overflow: hidden; }
@media (max-width: 620px) {
  .detail-page .site-header { height: calc(64px + var(--safe-top)); }
  .detail-page .site-header .brand { font-size: 12px; }
  .detail-page .site-header .brand-mark { width: 40px; }
  .project-detail { padding-top: calc(88px + var(--safe-top)); padding-bottom: calc(46px + var(--safe-bottom)); }
  .detail-heading { margin-bottom: 28px; }
  .detail-heading .eyebrow { font-size: 10px; letter-spacing: .12em; }
  .detail-heading h1 { margin: 18px 0 26px; max-width: 12em; font-size: clamp(34px, 10.2vw, 43px); line-height: 1.08; letter-spacing: -.045em; text-wrap: pretty; overflow-wrap: anywhere; }
  .detail-intro { gap: 16px; padding-top: 20px; }
  .detail-intro p { font-size: 15px; line-height: 1.8; }
  .detail-view-hint { margin: -8px 0 14px; font-size: 10px; }
  .detail-media-item img[role="button"] { border-radius: 2px; }
  .detail-copy { margin: 40px auto; font-size: 17px; }
  .detail-gallery { gap: 18px; }
  .detail-media-item { margin-bottom: 8px; }
  .detail-media-item figcaption { padding: 8px 2px 0; }
  .detail-end { margin-top: 48px; }
  .resume-placeholder { min-height: 480px; margin-top: 36px; padding: 26px 22px; }
  .resume-placeholder h2 { font-size: clamp(42px, 15vw, 64px); }
  .detail-long-split { gap: 12px; }
  .detail-split-segment figcaption { top: 8px; left: 8px; }
  .media-viewer { padding-left: calc(12px + var(--safe-left)); padding-right: calc(12px + var(--safe-right)); }
  .media-viewer-header, .media-viewer-footer { min-height: 54px; }
  .media-viewer-footer { gap: 10px; }
  .media-viewer-footer button { min-width: 68px; }
}
@media (max-width: 900px) {
  .about-grid--carousel .about-copy { grid-template-columns: 1fr; }
  .about-grid--carousel .about-details, .about-grid--carousel .contact-lines { grid-column: auto; }
  .about-grid--carousel .contact-lines { margin-top: 40px; }
}

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