:root {
  --ink: #07090a;
  --ink-soft: #0d1012;
  --surface: #121618;
  --surface-2: #171c1f;
  --paper: #f4f2ec;
  --paper-soft: #e8e5dd;
  --text: #f6f5f1;
  --muted: #9da5a7;
  --muted-2: #70787a;
  --line: rgba(255, 255, 255, 0.11);
  --line-dark: rgba(7, 9, 10, 0.14);
  --accent: #c9ff61;
  --accent-warm: #ffb15e;
  --project-accent: #c9ff61;
  --shell: min(1380px, calc(100vw - 80px));
  --header-height: 76px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body::selection { color: var(--ink); background: var(--accent); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.sr-only, .noscript { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript a { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.eyebrow, .section-index { color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.section { position: relative; padding: 150px 0; }
.section-shell { position: relative; width: var(--shell); margin: 0 auto; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 120; height: 2px; background: rgba(255, 255, 255, 0.06); }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--project-accent); box-shadow: 0 0 20px var(--project-accent); }

.landing-page { background: #030405; }
.entry-gate { --x: 50%; --y: 45%; position: relative; display: grid; min-height: 100svh; padding: 34px 42px 38px; overflow: hidden; isolation: isolate; cursor: pointer; transition: opacity 0.65s var(--ease), transform 0.8s var(--ease), filter 0.65s ease; }
.entry-gate::after { content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--x) var(--y), rgba(201, 255, 97, 0.1), transparent 65%); opacity: 0; transition: opacity 0.4s ease; }
.entry-gate:hover::after { opacity: 1; }
.entry-gate.is-leaving { opacity: 0; filter: blur(8px); transform: scale(1.025); }
.entry-gate__media, .entry-gate__media img, .entry-gate__veil, .entry-gate__grid { position: absolute; inset: 0; }
.entry-gate__media { z-index: -1; overflow: hidden; background: #111; }
.entry-gate__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; filter: grayscale(0.65) brightness(0.38) contrast(1.12) saturate(0.7); transform: scale(1.04); animation: gateImage 2.2s var(--ease) both; }
.entry-gate__veil { background: linear-gradient(90deg, rgba(3, 4, 5, 0.96) 0%, rgba(3, 4, 5, 0.76) 42%, rgba(3, 4, 5, 0.16) 78%), linear-gradient(0deg, rgba(3, 4, 5, 0.88) 0%, transparent 48%, rgba(3, 4, 5, 0.34) 100%); }
.entry-gate__grid { opacity: 0.23; background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 84px 84px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 82%); mask-image: linear-gradient(90deg, #000, transparent 82%); }
.entry-header, .entry-footer { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; }
.entry-brand { font-weight: 700; }
.entry-status { color: rgba(255, 255, 255, 0.62); }
.entry-main { position: relative; z-index: 4; align-self: center; max-width: 1050px; padding: 70px 0 50px; }
.entry-kicker { margin-bottom: 24px; color: var(--accent); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; animation: fadeUp 0.9s 0.2s var(--ease) both; }
.entry-main h1 { max-width: 1000px; font-size: clamp(58px, 9.2vw, 148px); font-weight: 500; line-height: 0.98; letter-spacing: -0.075em; animation: fadeUp 1s 0.28s var(--ease) both; }
.entry-main h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7); }
.entry-role { margin-top: 34px; color: rgba(255, 255, 255, 0.72); font-size: 16px; letter-spacing: 0.12em; animation: fadeUp 0.9s 0.42s var(--ease) both; }
.entry-footer { align-items: flex-end; color: rgba(255, 255, 255, 0.52); }
.entry-action { display: flex; align-items: center; gap: 12px; color: white; font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.05em; }
.entry-action i { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; font-style: normal; transition: background 0.35s ease, color 0.35s ease, transform 0.35s var(--ease); }
.entry-gate:hover .entry-action i { color: var(--ink); background: var(--accent); border-color: var(--accent); transform: translate(4px, -4px); }
.entry-progress { position: absolute; z-index: 4; right: 42px; bottom: 104px; width: 120px; height: 1px; overflow: hidden; background: rgba(255, 255, 255, 0.15); }
.entry-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; animation: gateProgress 2.6s 0.4s var(--ease) both; }
@keyframes gateImage { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.04); } }
@keyframes gateProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Shared header */
.site-header, .project-header { position: fixed; z-index: 100; top: 0; left: 0; display: flex; width: 100%; height: var(--header-height); align-items: center; justify-content: space-between; padding: 0 40px; border-bottom: 1px solid transparent; transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease; }
.site-header.is-scrolled, .project-header.is-scrolled { background: rgba(7, 9, 10, 0.82); border-color: var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.site-brand { display: flex; align-items: center; gap: 12px; }
.site-brand__mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.25); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.site-brand__text { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: 0.12em; }
.site-brand__text small { margin-top: 3px; color: var(--muted-2); font-size: 8px; font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 38px; font-size: 13px; }
.site-nav a { position: relative; padding: 8px 0; color: rgba(255, 255, 255, 0.7); transition: color 0.25s ease; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.site-nav a:hover { color: white; }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); background: transparent; }
.nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform 0.3s ease; }

.portfolio-hero { position: relative; display: flex; min-height: 100svh; align-items: flex-end; overflow: hidden; padding: 150px 0 82px; isolation: isolate; }
.portfolio-hero__visual, .portfolio-hero__visual img, .portfolio-hero__wash { position: absolute; inset: 0; }
.portfolio-hero__visual { z-index: -2; overflow: hidden; background: #111; }
.portfolio-hero__image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; filter: grayscale(0.72) brightness(0.34) contrast(1.22) saturate(0.8); transform: scale(1.05); }
.portfolio-hero__wash { background: linear-gradient(90deg, rgba(7, 9, 10, 0.98) 0%, rgba(7, 9, 10, 0.82) 42%, rgba(7, 9, 10, 0.22) 78%), linear-gradient(0deg, var(--ink) 0%, transparent 48%, rgba(7, 9, 10, 0.4) 100%); }
.portfolio-hero__beam { position: absolute; z-index: -1; top: -20%; left: 48%; width: 32vw; height: 130%; background: linear-gradient(90deg, transparent, rgba(201, 255, 97, 0.11), transparent); filter: blur(50px); transform: skewX(-18deg); }
.portfolio-hero__meta { position: absolute; top: 106px; right: 40px; display: flex; gap: 22px; color: rgba(255, 255, 255, 0.42); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; }
.portfolio-hero__content { position: relative; z-index: 2; width: var(--shell); margin: 0 auto; }
.portfolio-hero h1 { max-width: 1010px; margin-top: 24px; font-size: clamp(52px, 8.1vw, 126px); font-weight: 500; line-height: 1.03; letter-spacing: -0.075em; }
.portfolio-hero h1 em { color: var(--accent); font-style: normal; }
.portfolio-hero__lead { max-width: 660px; margin-top: 34px; color: rgba(255, 255, 255, 0.69); font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 26px; padding: 0 24px; border: 1px solid transparent; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease); }
.button:hover { transform: translateY(-3px); }
.button--accent { color: var(--ink); background: var(--accent); }
.button--accent:hover { background: white; }
.button--ghost { border-color: rgba(255, 255, 255, 0.23); background: rgba(255, 255, 255, 0.035); }
.button--ghost:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); }
.button--light { color: var(--ink); background: var(--paper); }
.button--large { min-height: 62px; justify-content: space-between; padding: 0 26px; }
.portfolio-hero__side { position: absolute; right: 38px; bottom: 96px; color: rgba(255, 255, 255, 0.34); font-family: var(--font-mono); font-size: 9px; line-height: 1.8; letter-spacing: 0.13em; text-align: right; }
.scroll-cue { position: absolute; bottom: 38px; left: 50%; display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.35); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.14em; transform: translateX(-50%); }
.scroll-cue span { display: block; width: 42px; height: 1px; overflow: hidden; background: rgba(255, 255, 255, 0.2); }
.scroll-cue span::after { content: ""; display: block; width: 100%; height: 100%; background: var(--accent); animation: scrollCue 2s infinite var(--ease); }
@keyframes scrollCue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* About */
.section--about { background: radial-gradient(circle at 88% 14%, rgba(201, 255, 97, 0.075), transparent 26%), var(--ink-soft); }
.section-heading { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 70px; align-items: start; margin-bottom: 86px; }
.section-heading h2 { font-size: clamp(40px, 5.2vw, 76px); font-weight: 500; line-height: 1.12; letter-spacing: -0.055em; }
.section-heading > div > p { max-width: 710px; margin-top: 28px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.profile-grid { display: grid; grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.55fr); gap: 24px; align-items: start; }
.portrait-card { position: sticky; top: 102px; min-height: 660px; overflow: hidden; border: 1px solid var(--line); background: #0a0d0e; }
.portrait-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 34%, rgba(255, 177, 94, 0.19), transparent 27%), linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 50%); }
.portrait-card__monogram { position: relative; display: grid; height: 410px; place-items: center; }
.portrait-card__monogram > span { position: relative; z-index: 1; color: transparent; font-size: 190px; font-weight: 700; line-height: 1; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.42); }
.portrait-card__monogram small { position: absolute; right: 24px; bottom: 18px; color: rgba(255, 255, 255, 0.4); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; }
.portrait-card__monogram i { position: absolute; width: 240px; height: 240px; border: 1px solid rgba(255, 177, 94, 0.36); border-radius: 50%; box-shadow: 0 0 80px rgba(255, 177, 94, 0.12); }
.portrait-card__monogram i::before, .portrait-card__monogram i::after { content: ""; position: absolute; background: rgba(255, 177, 94, 0.23); }
.portrait-card__monogram i::before { top: 50%; left: -60px; width: 360px; height: 1px; }
.portrait-card__monogram i::after { top: -60px; left: 50%; width: 1px; height: 360px; }
.portrait-card__info, .portrait-card__contact { position: relative; border-top: 1px solid var(--line); }
.portrait-card__info { padding: 24px; }
.portrait-card__info p { font-size: 24px; font-weight: 600; }
.portrait-card__info span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.portrait-card__contact { display: grid; grid-template-columns: repeat(3, 1fr); }
.portrait-card__contact > div { padding: 18px 16px; border-right: 1px solid var(--line); }
.portrait-card__contact > div:last-child { border-right: 0; }
.portrait-card__contact small { display: block; margin-bottom: 8px; color: var(--muted-2); font-size: 10px; }
.portrait-card__contact strong { font-size: 12px; font-weight: 500; }
.profile-content { display: grid; gap: 24px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-stats > div { padding: 30px 22px 32px; border-right: 1px solid var(--line); }
.profile-stats > div:last-child { border-right: 0; }
.profile-stats strong { display: block; font-size: clamp(34px, 3.2vw, 54px); font-weight: 500; line-height: 1; letter-spacing: -0.05em; }
.profile-stats sup { color: var(--accent); font-size: 0.5em; vertical-align: top; }
.profile-stats span { display: block; margin-top: 13px; color: var(--muted); font-size: 11px; }
.profile-copy { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; padding: 46px 4px 36px; }
.profile-copy__lead { font-size: 21px; line-height: 1.75; }
.profile-copy > p:not(.profile-copy__lead) { color: var(--muted); font-size: 14px; line-height: 1.95; }
.platform-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.platform-list span { padding: 9px 13px; border: 1px solid var(--line); color: rgba(255, 255, 255, 0.62); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.capability-card { position: relative; min-height: 270px; padding: 30px; overflow: hidden; background: var(--ink-soft); transition: background 0.35s ease; }
.capability-card::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 180px; height: 180px; border: 1px solid rgba(201, 255, 97, 0.12); border-radius: 50%; transition: transform 0.6s var(--ease); }
.capability-card:hover { background: #121718; }
.capability-card:hover::after { transform: scale(1.35); }
.capability-card__num { color: var(--accent); font-family: var(--font-mono); font-size: 10px; }
.capability-card h3 { margin-top: 56px; font-size: 22px; font-weight: 500; }
.capability-card p { margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.capability-card small { position: absolute; bottom: 26px; left: 30px; color: var(--muted-2); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; }
.work-history { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 70px; margin-top: 140px; padding-top: 70px; border-top: 1px solid var(--line); }
.work-history__head h3 { margin-top: 22px; font-size: 30px; font-weight: 500; line-height: 1.35; }
.work-list { border-top: 1px solid var(--line); }
.work-item { display: grid; grid-template-columns: 138px 1fr 1.35fr; gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.work-item time { color: var(--accent); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.03em; }
.work-item h4 { font-size: 15px; font-weight: 600; }
.work-item div p { margin-top: 6px; color: var(--muted-2); font-size: 11px; }
.work-item > p { color: var(--muted); font-size: 12px; line-height: 1.8; }

/* Projects */
.section--projects { padding-top: 165px; background: var(--ink); }
.section-heading--projects { margin-bottom: 42px; }
.project-filters { display: flex; gap: 8px; margin-bottom: 36px; }
.filter-button { padding: 11px 16px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease; }
.filter-button:hover, .filter-button.is-active { color: var(--ink); border-color: var(--accent); background: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project-card { grid-column: span 6; min-width: 0; overflow: hidden; border: 1px solid var(--line); background: #0c0f10; transition: border-color 0.35s ease, transform 0.45s var(--ease), opacity 0.35s ease; }
.project-card.is-filtered-out { display: none; }
.project-card:hover { border-color: rgba(201, 255, 97, 0.42); transform: translateY(-7px); }
.project-card__link { display: block; height: 100%; }
.project-card__media { position: relative; height: 520px; overflow: hidden; background: #d9dbd8; }
.project-card:nth-child(1) .project-card__media, .project-card:nth-child(4) .project-card__media { height: 590px; }
.project-card__media img { width: 100%; height: 100%; object-fit: contain; background: #e5e5e1; transition: transform 0.9s var(--ease), filter 0.5s ease; }
.project-card[data-category="灯具类"] .project-card__media img { background: #dcdedb; }
.project-card:hover .project-card__media img { transform: scale(1.035); filter: contrast(1.03); }
.project-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(7, 9, 10, 0.2)); pointer-events: none; }
.project-card__index { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 8px 10px; color: #111; background: rgba(244, 242, 236, 0.9); font-family: var(--font-mono); font-size: 9px; }
.project-card__arrow { position: absolute; z-index: 2; right: 18px; bottom: 18px; display: grid; width: 50px; height: 50px; place-items: center; color: var(--ink); background: var(--accent); border-radius: 50%; font-size: 18px; transition: transform 0.35s var(--ease); }
.project-card:hover .project-card__arrow { transform: rotate(45deg); }
.project-card__body { padding: 26px 26px 28px; }
.project-card__topline { display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.11em; }
.project-card__topline span:first-child { color: var(--accent); }
.project-card h3 { margin-top: 16px; font-size: clamp(25px, 2.4vw, 38px); font-weight: 500; letter-spacing: -0.04em; }
.project-card__body > p { min-height: 48px; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.project-card__tags span { padding: 7px 9px; border: 1px solid var(--line); color: rgba(255, 255, 255, 0.5); font-size: 9px; }

/* Contact */
.section--contact { position: relative; overflow: hidden; padding-top: 110px; padding-bottom: 44px; background: radial-gradient(circle at 80% 18%, rgba(201, 255, 97, 0.12), transparent 27%), #0b0e0f; }
.contact-orbit { position: absolute; top: -280px; right: -180px; width: 760px; height: 760px; border: 1px solid rgba(201, 255, 97, 0.12); border-radius: 50%; }
.contact-orbit::before, .contact-orbit::after { content: ""; position: absolute; border: 1px solid rgba(201, 255, 97, 0.09); border-radius: 50%; }
.contact-orbit::before { inset: 100px; }
.contact-orbit::after { inset: 220px; }
.contact-panel { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 60px; padding: 70px 0 90px; border-top: 1px solid var(--line); }
.contact-panel__copy h2 { max-width: 850px; margin-top: 24px; font-size: clamp(48px, 6.6vw, 100px); font-weight: 500; line-height: 1.02; letter-spacing: -0.065em; }
.contact-panel__copy > p:last-child { max-width: 640px; margin-top: 32px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.contact-panel__action { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.contact-detail { display: grid; grid-template-columns: 1fr auto; gap: 12px 30px; padding-bottom: 28px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-detail span { color: var(--muted-2); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; }
.contact-detail strong { font-size: 13px; font-weight: 500; }
.contact-panel__action > small { color: var(--muted-2); font-size: 10px; text-align: center; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted-2); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; }

/* Project detail */
.project-page { background: var(--ink); }
.project-header { align-items: center; }
.project-back, .project-next-link { color: rgba(255, 255, 255, 0.66); font-size: 11px; transition: color 0.25s ease; }
.project-back span, .project-next-link span { color: var(--project-accent); }
.project-back:hover, .project-next-link:hover { color: white; }
.project-loading { display: grid; min-height: 100svh; place-items: center; align-content: center; gap: 20px; background: var(--ink); }
.project-loading span { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.15); border-top-color: var(--project-accent); border-radius: 50%; animation: rotate 0.8s linear infinite; }
.project-loading p { color: var(--muted); font-size: 12px; }
@keyframes rotate { to { transform: rotate(360deg); } }
.case-hero { position: relative; display: flex; min-height: 100svh; align-items: flex-end; padding: 150px 0 90px; overflow: hidden; isolation: isolate; }
.case-hero__media, .case-hero__media img, .case-hero__wash { position: absolute; inset: 0; }
.case-hero__media { z-index: -2; }
.case-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42) saturate(0.8); transform: scale(1.02); }
.case-hero__wash { background: linear-gradient(90deg, rgba(7, 9, 10, 0.97) 0%, rgba(7, 9, 10, 0.68) 48%, rgba(7, 9, 10, 0.3) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 55%); }
.case-hero__content { position: relative; z-index: 2; width: var(--shell); margin: 0 auto; }
.case-hero h1 { max-width: 900px; margin-top: 20px; font-size: clamp(56px, 8.7vw, 132px); font-weight: 500; line-height: 1; letter-spacing: -0.075em; }
.case-hero__subtitle { max-width: 700px; margin-top: 30px; color: rgba(255, 255, 255, 0.82); font-size: clamp(18px, 1.7vw, 25px); line-height: 1.55; }
.case-hero__summary { max-width: 650px; margin-top: 22px; color: rgba(255, 255, 255, 0.56); font-size: 14px; line-height: 1.9; }
.case-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.case-tags span {
  --glass-x: 50%;
  --glass-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(120px circle at var(--glass-x) var(--glass-y), rgba(132,164,255,.24), rgba(101,211,255,.08) 40%, transparent 72%),
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.045) 48%, rgba(5,8,18,.34));
  box-shadow:
    0 10px 26px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -1px 0 rgba(0,0,0,.24);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  font-size: 10px;
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.case-tags span::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(120px circle at var(--glass-x) var(--glass-y), rgba(207,224,255,.98), rgba(104,156,255,.78) 28%, rgba(93,225,255,.35) 50%, transparent 74%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.case-tags span:hover,
.case-tags span:focus-visible { transform: translateY(-2px); border-color: rgba(176,199,255,.44); box-shadow: 0 14px 32px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28); }
.case-tags span:hover::before,
.case-tags span:focus-visible::before { opacity: .92; }
.case-hero__index { position: absolute; right: 40px; bottom: 46px; color: transparent; font-family: var(--font-mono); font-size: clamp(80px, 13vw, 190px); font-weight: 700; line-height: 0.8; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2); }
.case-overview { padding-top: 130px; padding-bottom: 130px; }
.case-overview__intro { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 70px; align-items: start; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.case-overview__intro h2 { max-width: 890px; font-size: clamp(38px, 5vw, 70px); font-weight: 500; line-height: 1.15; letter-spacing: -0.055em; }
.case-overview__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.case-meta { padding: 34px 28px 38px 0; }
.case-meta + .case-meta { padding-left: 28px; border-left: 1px solid var(--line); }
.case-meta span { display: block; color: var(--muted-2); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; }
.case-meta strong { display: block; margin-top: 16px; font-size: 14px; font-weight: 500; line-height: 1.65; }
.case-challenge { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 70px; padding-top: 54px; }
.case-challenge span { color: var(--project-accent); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; }
.case-challenge p { max-width: 850px; color: var(--muted); font-size: 16px; line-height: 2; }
.case-section { padding: 130px 0; }
.case-section--main { background: #0d1011; }
.case-section__head { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 70px; margin-bottom: 58px; }
.case-section__head h2 { font-size: clamp(38px, 5vw, 70px); font-weight: 500; letter-spacing: -0.055em; }
.case-section__head div, .case-section__head > p { grid-column: 2; }
.case-section__head > p { grid-row: 2; max-width: 650px; margin-top: -34px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.case-main-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-main-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: #e6e6e1; }
.case-main-card:nth-child(1), .case-main-card:nth-child(6) { grid-column: 1 / -1; }
.case-main-card a { display: block; height: 100%; }
.case-main-card img { width: 100%; height: 100%; min-height: 420px; max-height: 780px; object-fit: contain; background: #e8e8e3; transition: transform 0.8s var(--ease); }
.case-main-card:hover img { transform: scale(1.018); }
.case-main-card__caption { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: #171a1b; background: #f1f0eb; font-family: var(--font-mono); font-size: 9px; }
.case-aplus { background: var(--ink); }
.case-aplus-list { display: grid; gap: 24px; }
.case-aplus-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: #d9d9d6; }
.case-aplus-card a { display: block; }
.case-aplus-card img { width: 100%; height: auto; transition: filter 0.4s ease; }
.case-aplus-card:hover img { filter: brightness(0.92); }
.case-aplus-card__badge { position: absolute; top: 16px; right: 16px; padding: 8px 10px; color: var(--ink); background: var(--project-accent); font-family: var(--font-mono); font-size: 9px; opacity: 0; transform: translateY(-8px); transition: opacity 0.3s ease, transform 0.3s var(--ease); }
.case-aplus-card:hover .case-aplus-card__badge { opacity: 1; transform: translateY(0); }
.case-footer { padding: 120px 0 70px; background: #0c0f10; border-top: 1px solid var(--line); }
.case-footer__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.case-footer span:not(.section-index) { display: block; margin-top: 18px; color: var(--muted-2); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; }
.case-footer h2 { margin-top: 12px; font-size: clamp(36px, 5vw, 72px); font-weight: 500; letter-spacing: -0.055em; }
.case-footer h2 a { transition: color 0.3s ease; }
.case-footer h2 a:hover { color: var(--project-accent); }
.case-footer h2 i { color: var(--project-accent); font-style: normal; }

@media (max-width: 1100px) {
  :root { --shell: min(100% - 48px, 1380px); }
  .site-header, .project-header { padding: 0 24px; }
  .portfolio-hero__meta { right: 24px; }
  .profile-grid { grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr); }
  .profile-copy { grid-template-columns: 1fr; gap: 20px; }
  .work-history { grid-template-columns: 1fr; gap: 40px; }
  .work-item { grid-template-columns: 120px 0.85fr 1.2fr; }
  .contact-panel { grid-template-columns: 1fr 0.75fr; }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .case-hero__content {
    width: min(100%, 996px);
    height: 587px;
    margin-top: -204px;
    transform: translateY(-24px);
    z-index: 4;
  }
  .case-hero__index {
    width: 156px;
    height: 321px;
  }
  .case-overview { position: relative; z-index: 3; }
  .case-overview__intro {
    width: min(100%, 998px);
    min-height: 169px;
    margin-top: -364px;
    padding-top: 4px;
    pointer-events: none;
  }
  .case-overview__intro > * { pointer-events: auto; }
}

@media (max-width: 860px) {
  :root { --shell: calc(100vw - 36px); --header-height: 68px; }
  .section { padding: 100px 0; }
  .entry-gate { padding: 26px 24px 30px; }
  .entry-status { display: none; }
  .entry-main h1 { font-size: clamp(54px, 15vw, 104px); }
  .entry-progress { right: 24px; bottom: 96px; }
  .site-nav { position: fixed; top: var(--header-height); right: 0; left: 0; display: grid; gap: 0; padding: 12px 18px 22px; border-bottom: 1px solid var(--line); background: rgba(7, 9, 10, 0.97); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform 0.45s var(--ease), opacity 0.3s ease; }
  .site-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav a::after { display: none; }
  .site-header.is-open .site-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .site-header.is-open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
  .portfolio-hero { min-height: 920px; padding-bottom: 70px; }
  .portfolio-hero__image { object-position: 58% 40%; }
  .portfolio-hero__meta, .portfolio-hero__side { display: none; }
  .portfolio-hero h1 { font-size: clamp(50px, 13vw, 88px); }
  .scroll-cue { left: 18px; transform: none; }
  .section-heading, .profile-grid, .profile-copy, .work-history, .contact-panel, .case-overview__intro, .case-challenge, .case-section__head { grid-template-columns: 1fr; gap: 36px; }
  .section-heading { margin-bottom: 58px; }
  .portrait-card { position: relative; top: auto; min-height: 0; }
  .portrait-card__monogram { height: 330px; }
  .portrait-card__monogram > span { font-size: 145px; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-stats > div:nth-child(2) { border-right: 0; }
  .profile-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .capability-grid { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr; gap: 12px; }
  .work-history { margin-top: 90px; }
  .project-card, .project-card:nth-child(1), .project-card:nth-child(2), .project-card:nth-child(4) { grid-column: span 12; }
  .project-card__media, .project-card:nth-child(1) .project-card__media, .project-card:nth-child(4) .project-card__media { height: min(72vw, 560px); }
  .contact-panel__action { justify-content: flex-start; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .project-header .site-brand__text { display: none; }
  .case-hero { min-height: 880px; }
  .case-hero__content { padding-top: 40px; }
  .case-overview { padding-top: 90px; padding-bottom: 90px; }
  .case-overview__grid { grid-template-columns: 1fr; }
  .case-meta, .case-meta + .case-meta { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .case-section { padding: 90px 0; }
  .case-section__head div, .case-section__head > p { grid-column: auto; grid-row: auto; margin-top: 0; }
  .case-main-grid { grid-template-columns: 1fr; }
  .case-main-card:nth-child(1), .case-main-card:nth-child(6) { grid-column: auto; }
  .case-main-card img { min-height: 0; }
  .case-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100vw - 28px); }
  .entry-gate { padding: 22px 18px 24px; }
  .entry-header { font-size: 9px; }
  .entry-main { padding: 60px 0 40px; }
  .entry-kicker { max-width: 250px; line-height: 1.7; }
  .entry-main h1 { font-size: clamp(48px, 16vw, 72px); }
  .entry-role { font-size: 13px; }
  .entry-footer > p { display: none; }
  .entry-progress { right: 18px; bottom: 80px; width: 88px; }
  .site-header, .project-header { padding: 0 14px; }
  .portfolio-hero { min-height: 820px; padding-bottom: 64px; }
  .portfolio-hero__lead { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .section-heading h2, .contact-panel__copy h2 { font-size: 42px; }
  .profile-stats > div { padding: 24px 14px; }
  .profile-stats strong { font-size: 36px; }
  .profile-copy { padding-top: 24px; }
  .profile-copy__lead { font-size: 18px; }
  .capability-card { min-height: 250px; padding: 24px; }
  .capability-card small { left: 24px; }
  .project-filters { overflow-x: auto; padding-bottom: 4px; }
  .filter-button { flex: 0 0 auto; }
  .project-card__media, .project-card:nth-child(1) .project-card__media, .project-card:nth-child(4) .project-card__media { height: 64vw; min-height: 260px; }
  .project-card__body { padding: 22px 20px 24px; }
  .contact-panel { padding-bottom: 70px; }
  .contact-detail { grid-template-columns: 1fr; }
  .contact-detail strong { margin-top: -8px; }
  .project-back, .project-next-link { font-size: 9px; }
  .project-next-link span { display: none; }
  .case-hero { min-height: 760px; padding-bottom: 70px; }
  .case-hero h1 { font-size: clamp(48px, 15vw, 76px); }
  .case-hero__summary { font-size: 12px; }
  .case-hero__index { right: 16px; bottom: 26px; }
  .case-overview__intro h2, .case-section__head h2 { font-size: 38px; }
  .case-challenge p { font-size: 14px; }
  .case-main-card__caption { padding: 11px 12px; }
}

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

/* Revised resume page */
.section--resume {
  background:
    radial-gradient(circle at 92% 6%, rgba(201, 255, 97, 0.08), transparent 24%),
    #0b0e0f;
}

.resume-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  min-height: 780px;
  overflow: hidden;
  border-radius: 26px;
  background: #e9e9e5;
  color: #111416;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.28);
}

.resume-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(36px, 4.5vw, 70px);
}

.resume-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(17, 20, 22, 0.14);
}

.resume-panel__heading span,
.skill-block__title span {
  color: #596064;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.resume-panel__heading p {
  color: #373c3f;
  font-size: 12px;
}

.basic-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border-top: 1px solid rgba(17, 20, 22, 0.14);
  border-left: 1px solid rgba(17, 20, 22, 0.14);
}

.basic-info-grid > div {
  min-height: 88px;
  padding: 18px;
  border-right: 1px solid rgba(17, 20, 22, 0.14);
  border-bottom: 1px solid rgba(17, 20, 22, 0.14);
}

.basic-info-grid small {
  display: block;
  margin-bottom: 11px;
  color: #72787a;
  font-size: 10px;
}

.basic-info-grid strong {
  font-size: 15px;
  font-weight: 600;
}

.skill-block {
  margin-top: 38px;
}

.skill-block__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}

.skill-block__title strong {
  font-size: 18px;
  font-weight: 600;
}

.skill-list {
  display: grid;
  gap: 17px;
}

.skill-meter__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
}

.skill-meter__top strong {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.skill-meter__track {
  height: 3px;
  overflow: hidden;
  background: rgba(17, 20, 22, 0.12);
}

.skill-meter__track i {
  display: block;
  width: var(--level);
  height: 100%;
  background: #111416;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}

.resume-showcase.is-visible .skill-meter__track i {
  transform: scaleX(1);
}

.resume-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.resume-strengths span {
  padding: 8px 10px;
  border: 1px solid rgba(17, 20, 22, 0.17);
  color: #4d5356;
  font-size: 10px;
}

.resume-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid rgba(17, 20, 22, 0.14);
  font-size: 12px;
  font-weight: 600;
}

.resume-download span {
  font-size: 17px;
  transition: transform 0.3s var(--ease);
}

.resume-download:hover span {
  transform: translateY(5px);
}

.portrait-visual {
  position: relative;
  min-height: 780px;
  margin: 0;
  overflow: hidden;
  background: #c8cfce;
}

.portrait-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 42%;
  filter: grayscale(0.68) contrast(1.07) brightness(0.84) saturate(0.72);
  transform: scale(1.015);
  transition: transform 1.2s var(--ease), filter 0.8s ease;
}

.portrait-visual:hover > img {
  filter: grayscale(0.42) contrast(1.05) brightness(0.88) saturate(0.9);
  transform: scale(1.045);
}

.portrait-visual__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 12, 0.05) 45%, rgba(8, 11, 12, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 11, 12, 0.16), transparent 42%);
}

.portrait-visual figcaption {
  position: absolute;
  right: 30px;
  bottom: 32px;
  left: 30px;
  color: white;
}

.portrait-visual figcaption span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.portrait-visual figcaption strong {
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.portrait-visual__status {
  position: absolute;
  top: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: white;
  background: rgba(7, 9, 10, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.portrait-visual__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* Horizontal project carousel */
.carousel-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.carousel-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.carousel-legend span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.carousel-legend span:first-child {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent);
}

.carousel-legend small {
  margin-left: 7px;
  color: var(--muted-2);
  font-size: 10px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.carousel-controls button:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent);
}

.carousel-controls button:disabled {
  opacity: 0.28;
  cursor: default;
}

.project-carousel {
  display: flex;
  gap: 18px;
  width: 100%;
  padding: 2px 0 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.project-carousel::-webkit-scrollbar {
  display: none;
}

.project-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.project-carousel .project-card,
.project-carousel .project-card:nth-child(1),
.project-carousel .project-card:nth-child(2),
.project-carousel .project-card:nth-child(4) {
  flex: 0 0 clamp(320px, 31vw, 470px);
  grid-column: auto;
  scroll-snap-align: start;
}

.project-carousel .project-card__media,
.project-carousel .project-card:nth-child(1) .project-card__media,
.project-carousel .project-card:nth-child(4) .project-card__media {
  height: clamp(390px, 35vw, 510px);
}

.project-carousel .project-card__body {
  min-height: 250px;
}

.carousel-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.carousel-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s linear;
}

.section--experience {
  padding-top: 130px;
  background:
    linear-gradient(180deg, #0b0e0f, #0d1011 45%, #0b0e0f),
    var(--ink-soft);
}

.section--experience .work-history {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .resume-showcase {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  }

  .basic-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .resume-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 18px;
  }

  .portrait-visual {
    order: -1;
    min-height: 560px;
  }

  .portrait-visual > img {
    object-position: 50% 36%;
  }

  .resume-panel {
    padding: 32px 26px 36px;
  }

  .carousel-toolbar {
    align-items: center;
  }

  .carousel-legend small {
    display: none;
  }

  .project-carousel .project-card,
  .project-carousel .project-card:nth-child(1),
  .project-carousel .project-card:nth-child(2),
  .project-carousel .project-card:nth-child(4) {
    flex-basis: min(78vw, 440px);
  }

  .project-carousel .project-card__media,
  .project-carousel .project-card:nth-child(1) .project-card__media,
  .project-carousel .project-card:nth-child(4) .project-card__media {
    height: 480px;
  }
}

@media (max-width: 560px) {
  .section--resume .section-heading {
    margin-bottom: 38px;
  }

  .resume-panel__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .basic-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .basic-info-grid > div {
    min-height: 80px;
    padding: 14px 12px;
  }

  .basic-info-grid strong {
    font-size: 13px;
  }

  .portrait-visual {
    min-height: 470px;
  }

  .portrait-visual figcaption {
    right: 20px;
    bottom: 22px;
    left: 20px;
  }

  .portrait-visual__status {
    top: 18px;
    right: 18px;
  }

  .resume-strengths {
    margin-top: 28px;
  }

  .carousel-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-controls {
    width: 100%;
  }

  .carousel-controls button {
    flex: 1;
  }

  .project-carousel {
    margin-right: -14px;
    padding-right: 14px;
  }

  .project-carousel .project-card,
  .project-carousel .project-card:nth-child(1),
  .project-carousel .project-card:nth-child(2),
  .project-carousel .project-card:nth-child(4) {
    flex-basis: 84vw;
  }

  .project-carousel .project-card__media,
  .project-carousel .project-card:nth-child(1) .project-card__media,
  .project-carousel .project-card:nth-child(4) .project-card__media {
    height: 64vw;
    min-height: 280px;
  }

  .project-carousel .project-card__body {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-meter__track i { transform: scaleX(1); transition: none; }
  .portrait-visual > img { transition: none; }
}

/* Parallel page navigation */
.site-nav a[aria-current="page"] {
  color: #fff;
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.home-directory {
  background: radial-gradient(circle at 78% 8%, rgba(201, 255, 97, 0.07), transparent 24%), #0d1011;
}

.home-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-directory__card {
  position: relative;
  min-height: 280px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease, transform 0.45s var(--ease);
}

.home-directory__card:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-6px);
}

.home-directory__card > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.home-directory__card:hover > span {
  color: var(--ink);
}

.home-directory__card h3 {
  margin-top: 92px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.home-directory__card p {
  max-width: 320px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.home-directory__card:hover p {
  color: rgba(7, 9, 10, 0.7);
}

.home-directory__card i {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 22px;
  font-style: normal;
  transition: transform 0.35s var(--ease);
}

.home-directory__card:hover i {
  transform: rotate(45deg);
}

.standalone-page .section--resume,
.standalone-page .section--experience,
.standalone-page .section--projects {
  min-height: 100svh;
}

@media (max-width: 860px) {
  .site-nav a[aria-current="page"] {
    color: var(--accent);
  }

  .home-directory__grid {
    grid-template-columns: 1fr;
  }

  .home-directory__card {
    min-height: 220px;
  }

  .home-directory__card h3 {
    margin-top: 62px;
  }
}

/* Profile-first single page layout */
.profile-start {
  min-height: 100svh;
  padding-top: 126px;
  padding-bottom: 110px;
}

.profile-start .resume-showcase {
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  min-height: 760px;
}

.profile-start .portrait-visual {
  grid-column: 1;
  grid-row: 1;
  min-height: 760px;
}

.profile-start .resume-panel {
  grid-column: 2;
  grid-row: 1;
}

.resume-panel__heading > div h1 {
  margin-top: 12px;
  font-size: clamp(48px, 5.7vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.resume-panel__heading > div p {
  margin-top: 10px;
  color: #4b5154;
  font-size: 14px;
}

.resume-intro {
  max-width: 780px;
  margin-top: 28px;
  color: #4b5154;
  font-size: 15px;
  line-height: 1.9;
}

.compact-projects {
  padding-top: 105px;
}

.compact-projects .carousel-toolbar {
  margin-bottom: 18px;
}

@media (max-width: 1100px) {
  .profile-start .resume-showcase {
    grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.18fr);
  }
}

@media (max-width: 860px) {
  .profile-start {
    padding-top: 88px;
    padding-bottom: 80px;
  }

  .profile-start .resume-showcase {
    grid-template-columns: 1fr;
  }

  .profile-start .portrait-visual,
  .profile-start .resume-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .profile-start .portrait-visual {
    min-height: 540px;
  }
}

@media (max-width: 560px) {
  .profile-start .portrait-visual {
    min-height: 450px;
  }

  .resume-panel__heading > div h1 {
    font-size: 48px;
  }

  .compact-projects {
    padding-top: 78px;
  }
}

/* Dark profile intro and separate skills row */
.section--resume.profile-start {
  position: relative;
  overflow: hidden;
  padding-top: 126px;
  padding-bottom: 110px;
  background: radial-gradient(circle at 82% 20%, rgba(201, 255, 97, 0.07), transparent 25%), linear-gradient(180deg, #080a0b 0%, #0c0f10 100%);
}

.profile-start::before {
  content: "";
  position: absolute;
  inset: 76px 0 auto;
  height: 820px;
  opacity: 0.24;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 25% 25%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  pointer-events: none;
}

.profile-intro-grid { position: relative; display: grid; grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr); gap: 22px; min-height: 720px; }
.profile-portrait { position: relative; min-height: 720px; margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); background: #111; }
.profile-portrait > img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 42%; filter: grayscale(0.72) contrast(1.1) brightness(0.72) saturate(0.55); transform: scale(1.015); transition: transform 1.2s var(--ease), filter 0.8s ease; }
.profile-portrait:hover > img { filter: grayscale(0.45) contrast(1.08) brightness(0.78) saturate(0.78); transform: scale(1.045); }
.profile-portrait__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 10, 0.02) 38%, rgba(7, 9, 10, 0.92) 100%); }
.profile-portrait figcaption { position: absolute; right: 28px; bottom: 30px; left: 28px; color: white; }
.profile-portrait figcaption span { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, 0.53); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; }
.profile-portrait figcaption strong { font-size: clamp(28px, 2.8vw, 44px); font-weight: 500; line-height: 1.12; letter-spacing: -0.045em; }
.profile-portrait__status { position: absolute; top: 22px; right: 22px; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid rgba(255, 255, 255, 0.18); color: white; background: rgba(5, 7, 8, 0.58); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; }
.profile-portrait__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.profile-info { position: relative; display: flex; min-width: 0; flex-direction: column; padding: clamp(34px, 4.7vw, 68px); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)); }
.profile-info::after { content: ""; position: absolute; top: -120px; right: -140px; width: 360px; height: 360px; border: 1px solid rgba(201, 255, 97, 0.14); border-radius: 50%; box-shadow: 0 0 90px rgba(201, 255, 97, 0.06); pointer-events: none; }
.profile-info h1 { position: relative; z-index: 1; margin-top: 22px; font-size: clamp(68px, 8.2vw, 128px); font-weight: 500; line-height: 0.92; letter-spacing: -0.08em; }
.profile-info__role { margin-top: 19px; color: rgba(255, 255, 255, 0.68); font-size: 16px; letter-spacing: 0.08em; }
.profile-info__intro { max-width: 760px; margin-top: 32px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.profile-info .basic-info-grid { grid-template-columns: repeat(3, 1fr); margin-top: 38px; border-color: rgba(255, 255, 255, 0.12); }
.profile-info .basic-info-grid > div { min-height: 88px; border-color: rgba(255, 255, 255, 0.12); }
.profile-info .basic-info-grid small { color: var(--muted-2); }
.profile-info .basic-info-grid strong { color: white; }
.profile-info .resume-strengths { margin-top: 32px; }
.profile-info .resume-strengths span { border-color: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.64); }
.profile-info .resume-download { margin-top: auto; border-color: rgba(255, 255, 255, 0.14); color: white; }
.skills-panel { position: relative; display: grid; grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr); gap: clamp(36px, 6vw, 100px); margin-top: 22px; padding: clamp(34px, 4vw, 58px); border: 1px solid rgba(255, 255, 255, 0.14); background: linear-gradient(120deg, rgba(201, 255, 97, 0.055), transparent 38%), rgba(255, 255, 255, 0.025); }
.skills-panel__head h2 { margin-top: 18px; font-size: clamp(36px, 4.2vw, 64px); font-weight: 500; letter-spacing: -0.055em; }
.skills-panel__head > span { display: block; max-width: 280px; margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.skills-panel .skill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 46px; row-gap: 26px; }
.skills-panel .skill-meter__top { color: rgba(255, 255, 255, 0.78); }
.skills-panel .skill-meter__track { background: rgba(255, 255, 255, 0.12); }
.skills-panel .skill-meter__track i { background: var(--accent); }
.skills-panel.is-visible .skill-meter__track i { transform: scaleX(1); }

@media (max-width: 1100px) {
  .profile-intro-grid { grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.18fr); }
  .profile-info .basic-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .profile-intro-grid { grid-template-columns: 1fr; min-height: 0; }
  .profile-portrait { min-height: 540px; }
  .profile-info { padding: 34px 26px 38px; }
  .profile-info h1 { font-size: clamp(64px, 18vw, 96px); }
  .skills-panel { grid-template-columns: 1fr; gap: 34px; }
  .skills-panel .skill-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .profile-start { padding-top: 88px; padding-bottom: 78px; }
  .profile-portrait { min-height: 450px; }
  .profile-info .basic-info-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-info h1 { font-size: 62px; }
  .skills-panel { padding: 28px 22px 32px; }
}

/* Integrated profile and icon facts */
.profile-composite { position: relative; display: grid; grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr); min-height: 820px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); background: linear-gradient(135deg, #121616 0%, #0c0f10 48%, #080a0b 100%); }
.profile-composite .profile-portrait { min-height: 820px; border: 0; border-right: 1px solid rgba(255, 255, 255, 0.14); }
.profile-content { position: relative; display: flex; min-width: 0; flex-direction: column; padding: clamp(34px, 4.7vw, 68px); overflow: hidden; }
.profile-content::after { content: ""; position: absolute; top: -180px; right: -180px; width: 470px; height: 470px; border: 1px solid rgba(201, 255, 97, 0.13); border-radius: 50%; pointer-events: none; }
.profile-content h1 { position: relative; z-index: 1; margin-top: 22px; font-size: clamp(70px, 7.6vw, 118px); font-weight: 500; line-height: 0.92; letter-spacing: -0.08em; }
.profile-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin-top: 38px; }
.profile-fact { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 15px; min-height: 92px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.11); }
.profile-fact__icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; color: #0a0d0e; background: var(--accent); box-shadow: 0 0 28px rgba(201, 255, 97, 0.12); }
.profile-fact__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.profile-fact small { display: block; color: var(--muted-2); font-size: 9px; letter-spacing: 0.1em; }
.profile-fact strong { display: block; margin-top: 6px; color: white; font-size: 15px; font-weight: 600; }
.profile-fact p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.profile-content .resume-strengths { margin-top: 24px; }
.profile-content .resume-download { margin-top: auto; }

@media (max-width: 1100px) {
  .profile-composite { grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.22fr); }
  .profile-content h1 { font-size: clamp(64px, 8.5vw, 100px); }
}

@media (max-width: 860px) {
  .profile-composite { grid-template-columns: 1fr; min-height: 0; }
  .profile-composite .profile-portrait { min-height: 540px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .profile-content { padding: 34px 26px 40px; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-fact { min-height: 82px; }
}

@media (max-width: 560px) {
  .profile-composite .profile-portrait { min-height: 450px; }
  .profile-content h1 { font-size: 62px; }
  .profile-facts { gap: 4px; margin-top: 28px; }
  .profile-fact { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .profile-fact__icon { width: 40px; height: 40px; border-radius: 11px; }
  .profile-fact__icon svg { width: 21px; height: 21px; }
}

/* 3D creator hero */
.creator-hero { position: relative; min-height: 100svh; overflow: hidden; padding: 118px 0 42px; background: #0c0c0c; isolation: isolate; }
.creator-hero__grid { position: absolute; inset: 0; opacity: 0.18; background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 10vw 10vw; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 76%); mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 76%); }
.creator-hero__title { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; color: transparent; line-height: 0.82; letter-spacing: -0.08em; text-align: center; }
.creator-hero__title span { color: #d7e2ea; font-family: var(--font-mono); font-size: clamp(11px, 1.3vw, 18px); font-weight: 600; letter-spacing: 0.22em; }
.creator-hero__title strong { margin-top: 18px; font-size: clamp(76px, 15vw, 230px); font-weight: 800; background: linear-gradient(180deg, #646973 0%, #bbccd7 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.creator-hero__portrait { position: absolute; z-index: 2; bottom: 0; left: 50%; width: min(44vw, 600px); height: min(78vh, 860px); overflow: hidden; transform: translateX(-50%); -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
.creator-hero__portrait video { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; mix-blend-mode: screen; }
.creator-hero__bottom { position: absolute; z-index: 4; right: 42px; bottom: 42px; left: 42px; display: grid; grid-template-columns: minmax(200px, 1fr) auto auto; gap: 28px; align-items: end; }
.creator-hero__bottom > p { max-width: 410px; color: #d7e2ea; font-size: clamp(12px, 1.25vw, 17px); font-weight: 300; line-height: 1.7; }
.creator-hero__role { display: flex; flex-direction: column; gap: 5px; color: rgba(215, 226, 234, 0.55); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.13em; text-align: right; }
.creator-contact { display: flex; min-width: 190px; align-items: center; justify-content: space-between; padding: 14px 12px 14px 22px; border: 1px solid rgba(215, 226, 234, 0.52); border-radius: 999px; color: #f4f7f8; background: rgba(255, 255, 255, 0.025); font-size: 13px; letter-spacing: 0.08em; transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease); }
.creator-contact i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #0c0c0c; background: #d7e2ea; font-style: normal; }
.creator-contact:hover { color: #0c0c0c; background: #d7e2ea; transform: translateY(-4px); }
.creator-contact:hover i { color: #d7e2ea; background: #0c0c0c; }
.creator-hero__scroll { position: absolute; bottom: 28px; left: 50%; color: rgba(255, 255, 255, 0.3); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.14em; transform: translateX(-50%); }
.creator-hero__scroll span { display: inline-block; width: 32px; height: 1px; margin-left: 8px; background: currentColor; vertical-align: middle; }

/* Scroll-reactive thumbnail marquee */
.creator-marquee { position: relative; overflow: hidden; padding: 110px 0 130px; background: #0c0c0c; }
.creator-marquee__head { width: var(--shell); margin: 0 auto 58px; }
.creator-marquee__head h2 { max-width: 900px; margin-top: 18px; font-size: clamp(40px, 5vw, 76px); font-weight: 500; line-height: 1.08; letter-spacing: -0.055em; }
.marquee-window { display: grid; gap: 12px; overflow: hidden; }
.marquee-row { display: flex; width: max-content; gap: 12px; will-change: transform; }
.marquee-row img { width: 360px; height: 228px; object-fit: cover; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.1); background: #dfe0dc; }

@media (max-width: 860px) {
  .creator-hero { min-height: 880px; padding-top: 98px; }
  .creator-hero__title strong { font-size: clamp(72px, 21vw, 120px); }
  .creator-hero__portrait { width: min(88vw, 550px); height: 650px; }
  .creator-hero__bottom { right: 20px; bottom: 24px; left: 20px; grid-template-columns: 1fr auto; }
  .creator-hero__bottom > p { grid-column: 1 / -1; max-width: 330px; }
  .creator-hero__role { display: none; }
  .creator-contact { min-width: 150px; }
  .creator-hero__scroll { display: none; }
  .creator-marquee { padding: 80px 0 90px; }
  .marquee-row img { width: 270px; height: 174px; border-radius: 14px; }
}

@media (max-width: 560px) {
  .creator-hero { min-height: 780px; }
  .creator-hero__title { padding-top: 38px; }
  .creator-hero__title strong { font-size: 20vw; }
  .creator-hero__portrait { width: 102vw; height: 570px; }
  .creator-hero__bottom { gap: 14px; }
  .creator-hero__bottom > p { font-size: 12px; }
  .creator-contact { min-width: 132px; padding-left: 16px; font-size: 12px; }
  .creator-marquee__head { margin-bottom: 36px; }
  .creator-marquee__head h2 { font-size: 34px; }
  .marquee-row img { width: 215px; height: 140px; }
}

/* Reference-style services band */
.services-band {
  position: relative;
  z-index: 3;
  padding: 120px 0 130px;
  border-radius: 48px 48px 0 0;
  color: #0c0c0c;
  background: #d7e2ea;
}

.services-band__head {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 60px;
  margin-bottom: 72px;
}

.services-band__head .section-index { color: #3a4248; }
.services-band__head h2 { font-size: clamp(58px, 9vw, 150px); font-weight: 800; line-height: 0.9; letter-spacing: -0.075em; }
.services-band__head > p:last-child { grid-column: 2; max-width: 680px; margin-top: -34px; color: rgba(12, 12, 12, 0.58); font-size: 14px; line-height: 1.9; }
.services-list { border-top: 1px solid rgba(12, 12, 12, 0.22); }
.service-row { display: grid; grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr); gap: 50px; padding: 42px 0; border-bottom: 1px solid rgba(12, 12, 12, 0.22); }
.service-row > span { color: #0c0c0c; font-family: var(--font-mono); font-size: clamp(54px, 8vw, 130px); font-weight: 800; line-height: 0.75; letter-spacing: -0.08em; }
.service-row h3 { font-size: clamp(26px, 3.2vw, 48px); font-weight: 600; letter-spacing: -0.035em; text-transform: uppercase; }
.service-row p { max-width: 760px; margin-top: 15px; color: rgba(12, 12, 12, 0.62); font-size: 14px; line-height: 1.8; }

/* Project gallery refinement */
.compact-projects { position: relative; z-index: 4; margin-top: -1px; border-radius: 48px 48px 0 0; background: #0c0c0c; }
.compact-projects .carousel-toolbar { position: relative; z-index: 2; }
.project-carousel .project-card { overflow: hidden; border-color: rgba(215, 226, 234, 0.38); border-radius: 24px; background: #0c0c0c; }
.project-carousel .project-card__media { border-radius: 20px 20px 0 0; }
.project-carousel .project-card__media img { object-fit: contain; }
.project-carousel .project-card__body { padding: 22px 20px 24px; }
.project-carousel .project-card h3 { font-size: clamp(25px, 2.1vw, 34px); }
.project-carousel .project-card__body > p { min-height: auto; }
.project-carousel .project-card__arrow { width: 46px; height: 46px; }

@media (max-width: 860px) {
  .services-band { padding: 90px 0 100px; border-radius: 30px 30px 0 0; }
  .services-band__head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 48px; }
  .services-band__head > p:last-child { grid-column: auto; margin-top: 0; }
  .service-row { grid-template-columns: 74px minmax(0, 1fr); gap: 22px; padding: 30px 0; }
  .service-row > span { font-size: 54px; }
  .compact-projects { border-radius: 30px 30px 0 0; }
}

@media (max-width: 560px) {
  .services-band { padding: 76px 0 82px; }
  .services-band__head h2 { font-size: 56px; }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .service-row > span { font-size: 46px; }
  .service-row h3 { font-size: 27px; }
  .project-carousel .project-card { border-radius: 18px; }
}

/* IP expression and turnaround assets */
.ip-assets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.ip-asset-card { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); background: #0c0f10; }
.ip-asset-card__media { height: 420px; overflow: hidden; background: #050607; }
.ip-asset-card__media img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform 0.9s var(--ease); }
.ip-asset-card:hover .ip-asset-card__media img { transform: scale(1.025); }
.ip-asset-card__caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.ip-asset-card__caption span { color: var(--muted-2); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; }
.ip-asset-card__caption strong { font-size: 17px; font-weight: 500; }
@media (max-width: 860px) { .ip-assets { grid-template-columns: 1fr; } .ip-asset-card__media { height: 360px; } }
@media (max-width: 560px) { .ip-asset-card__media { height: 280px; } .ip-asset-card__caption { align-items: flex-start; flex-direction: column; gap: 6px; } }

/* Project chapter list + lightbox */
.case-main-grid {
  grid-template-columns: 1fr;
  gap: 34px;
}
.case-main-card:nth-child(n) { grid-column: auto; }
.case-main-card,
.case-aplus-card {
  overflow: hidden;
  border-color: rgba(255,255,255,.14);
  border-radius: 22px;
  background: #0b0e11;
  box-shadow: 0 24px 70px rgba(0,0,0,.26);
}
.case-image-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(18,21,24,.96);
  color: #d7e2ea;
}
.case-image-toolbar span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.case-zoom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 86px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(117,154,255,.5);
  border-radius: 999px;
  background: rgba(0,47,167,.28);
  color: #f4f7ff;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .08em;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.case-zoom-button:hover {
  transform: translateY(-1px);
  border-color: rgba(151,179,255,.82);
  background: rgba(47,101,255,.46);
}
.case-image-frame { display: block; }
.case-main-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  background: #0b0e11;
}
.case-aplus-card img { background: #0b0e11; }
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 76px 28px 34px;
  background: rgba(3,5,8,.95);
  backdrop-filter: blur(18px);
}
.project-lightbox[hidden] { display: none; }
.project-lightbox img {
  max-width: min(96vw, 1680px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 34px 110px rgba(0,0,0,.65);
}
.project-lightbox__close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 2;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .08em;
  cursor: pointer;
  backdrop-filter: blur(14px);
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .case-main-grid,
  .case-aplus-list { gap: 22px; }
  .case-image-toolbar { padding: 12px 13px; }
  .case-image-toolbar span { max-width: 58%; font-size: 8px; }
  .case-zoom-button { min-width: 74px; min-height: 32px; padding: 7px 10px; font-size: 9px; }
  .project-lightbox { padding: 66px 12px 24px; }
  .project-lightbox__close { top: 14px; right: 14px; }
}

/* Unified glass treatment for every project detail page */
.project-page .case-hero h1 {
  --title-x: 28%;
  --title-y: 50%;
  position: relative;
  isolation: isolate;
  display: inline-block;
  width: fit-content;
  max-width: min(100%, 900px);
  padding: .07em .12em .12em;
  border: 1px solid rgba(143, 176, 255, .24);
  border-radius: .14em;
  background:
    radial-gradient(420px circle at var(--title-x) var(--title-y), rgba(105, 157, 255, .2), rgba(91, 220, 255, .06) 42%, transparent 72%),
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.045) 52%, rgba(41,101,255,.09));
  box-shadow:
    0 30px 90px rgba(0,0,0,.34),
    0 0 38px rgba(78,129,255,.08),
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 -1px 0 rgba(0,0,0,.24);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
  text-shadow: 0 10px 36px rgba(0,0,0,.34);
  animation: projectTitleGlow 5.6s ease-in-out infinite;
}
.project-page .case-hero h1:hover { border-color: rgba(165,194,255,.48); }

@keyframes projectTitleGlow {
  0%, 100% {
    box-shadow: 0 30px 90px rgba(0,0,0,.34), 0 0 28px rgba(78,129,255,.08), inset 0 1px 0 rgba(255,255,255,.24), inset 0 -1px 0 rgba(0,0,0,.24);
  }
  50% {
    box-shadow: 0 30px 90px rgba(0,0,0,.34), 0 0 54px rgba(85,145,255,.2), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.24);
  }
}

@media (min-width: 861px) {
  .project-page .case-section .section-shell { width: min(1180px, calc(100vw - 96px)); }
}

@media (max-width: 860px) {
  .project-page .case-section .section-shell { width: calc(100vw - 36px); }
  .project-page .case-hero h1 { padding: .08em .1em .12em; }
}

@media (max-width: 560px) {
  .project-page .case-section .section-shell { width: calc(100vw - 28px); }
  .project-page .case-hero h1 { border-radius: .1em; }
}

.project-page .case-main-card,
.project-page .case-aplus-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(151, 181, 255, .2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(79,130,255,.13), transparent 40%),
    linear-gradient(145deg, rgba(23,29,42,.96), rgba(8,11,18,.98));
  box-shadow:
    0 34px 100px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.03),
    inset 0 1px 0 rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
  transition: transform .55s var(--ease), border-color .4s ease, box-shadow .55s ease;
}
.project-page .case-main-card::after,
.project-page .case-aplus-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 45%, rgba(102,158,255,.16), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.project-page .case-main-card:hover,
.project-page .case-aplus-card:hover {
  transform: translateY(-10px);
  border-color: rgba(141,178,255,.5);
  box-shadow:
    0 48px 126px rgba(0,0,0,.5),
    0 0 64px rgba(74,128,255,.18),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.project-page .case-main-card:hover::after,
.project-page .case-aplus-card:hover::after { opacity: 1; }
.project-page .case-image-toolbar {
  position: relative;
  z-index: 3;
  margin: 14px 14px 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.035) 55%, rgba(5,8,18,.3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}
.project-page .case-image-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 10px 14px 14px;
  border-radius: 22px;
  background: #05070a;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 22px 54px rgba(0,0,0,.36);
}
.project-page .case-main-card img,
.project-page .case-aplus-card img {
  border-radius: 22px;
  transition: transform .75s var(--ease), filter .45s ease;
}
.project-page .case-main-card:hover img,
.project-page .case-aplus-card:hover img { transform: scale(1.012); filter: brightness(1.025); }

@media (max-width: 640px) {
  .project-page .case-main-card,
  .project-page .case-aplus-card { border-radius: 22px; }
  .project-page .case-image-toolbar { margin: 10px 10px 0; border-radius: 14px; }
  .project-page .case-image-frame { margin: 8px 10px 10px; border-radius: 16px; }
  .project-page .case-main-card img,
  .project-page .case-aplus-card img { border-radius: 16px; }
}

/* 2026 refined 1440 layout + liquid glass */
:root {
  --shell: min(1280px, calc(100vw - 96px));
  --liquid-border: rgba(226, 238, 255, .33);
  --liquid-surface:
    radial-gradient(140px circle at var(--glass-x, 50%) var(--glass-y, 50%), rgba(178, 217, 255, .34), rgba(99, 213, 255, .09) 42%, transparent 74%),
    radial-gradient(120% 170% at 18% 0%, rgba(255, 255, 255, .25), rgba(255, 255, 255, .05) 36%, transparent 68%),
    linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04) 52%, rgba(0, 47, 167, .2));
  --liquid-shadow:
    0 20px 54px rgba(0, 0, 0, .34),
    0 0 34px rgba(83, 143, 255, .08),
    inset 0 2px 1px rgba(255, 255, 255, .42),
    inset 0 -2px 2px rgba(0, 0, 0, .27),
    inset 2px 0 1px rgba(255, 255, 255, .1),
    inset -2px 0 1px rgba(0, 20, 80, .18);
}
.site-header, .project-header { padding-inline: 34px; height: 68px; }
.site-nav { padding: 4px; }
.site-nav a { padding: 8px 12px; font-size: 10px; }
.site-brand__mark { width: 34px; height: 34px; }
.button { min-height: 43px; gap: 12px; padding: 10px 16px; font-size: 10px; }

.project-page .case-hero { min-height: 92svh; padding: 120px 0 72px; }
.project-page .case-hero h1 {
  max-width: min(100%, 820px);
  margin-top: 16px;
  padding: .08em .11em .11em;
  border-color: rgba(226,238,255,.3);
  border-radius: 24px;
  background:
    radial-gradient(100% 180% at 18% 0%, rgba(255,255,255,.3), transparent 56%),
    radial-gradient(420px circle at var(--title-x) var(--title-y), rgba(105,157,255,.18), rgba(91,220,255,.05) 42%, transparent 72%),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.035) 52%, rgba(0,47,167,.18));
  box-shadow: var(--liquid-shadow);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  font-size: clamp(50px, 6.8vw, 88px);
  line-height: 1.03;
  animation: none;
}
.case-hero__subtitle { max-width: 620px; margin-top: 24px; font-size: clamp(16px, 1.4vw, 21px); }
.case-hero__summary { max-width: 590px; margin-top: 18px; font-size: 13px; line-height: 1.82; }
.case-tags { gap: 8px; margin-top: 27px; }
.case-tags span { padding: 8px 12px; font-size: 9px; }
.case-hero__index { right: 34px; bottom: 38px; font-size: clamp(66px, 10vw, 146px); }

.case-overview { padding-top: 104px; padding-bottom: 104px; }
.case-overview__intro { gap: 56px; padding-bottom: 46px; }
.case-overview__intro h2 { max-width: 760px; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.13; }
.case-meta { padding: 26px 22px 30px 0; }
.case-meta + .case-meta { padding-left: 22px; }
.case-meta strong { margin-top: 12px; font-size: 13px; }
.case-challenge { gap: 56px; padding-top: 42px; }
.case-challenge p { max-width: 780px; font-size: 14px; line-height: 1.88; }
.case-section { padding: 104px 0; }
.case-section__head { gap: 56px; margin-bottom: 46px; }
.case-section__head h2 { font-size: clamp(34px, 4.2vw, 60px); }
.case-section__head > p { max-width: 580px; margin-top: -28px; font-size: 13px; line-height: 1.82; }
.case-main-grid { gap: 14px; }
.project-page .case-main-card, .project-page .case-aplus-card { border-radius: 24px; }
.project-page .case-image-toolbar { margin: 12px 12px 0; border-radius: 16px; }
.project-page .case-image-frame { margin: 9px 12px 12px; border-radius: 18px; }
.project-page .case-main-card img, .project-page .case-aplus-card img { border-radius: 18px; }
.case-main-card img { min-height: 360px; max-height: 680px; }
.case-footer { padding: 96px 0 58px; }
.case-footer h2 { font-size: clamp(32px, 4.2vw, 60px); }

:is(.button, .site-nav, .project-back, .project-next-link, .case-tags span, .case-meta, .case-challenge, .project-page .case-main-card, .project-page .case-aplus-card, .project-page .case-image-toolbar, .project-lightbox__close) {
  --glass-x: 50%;
  --glass-y: 50%;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--liquid-border) !important;
  background: var(--liquid-surface) !important;
  box-shadow: var(--liquid-shadow) !important;
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  text-shadow: 0 1px 12px rgba(0,0,0,.3);
}
:is(.button, .site-nav, .project-back, .project-next-link, .case-tags span, .case-meta, .case-challenge, .project-page .case-main-card, .project-page .case-aplus-card, .project-page .case-image-toolbar, .project-lightbox__close)::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(125,201,255,.58) 30%, rgba(131,112,255,.24) 52%, transparent 78%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .38;
  pointer-events: none;
  transition: opacity .3s ease;
}
:is(.button, .site-nav, .project-back, .project-next-link, .case-tags span, .case-meta, .case-challenge, .project-page .case-main-card, .project-page .case-aplus-card, .project-page .case-image-toolbar, .project-lightbox__close):hover::before,
:is(.button, .site-nav, .project-back, .project-next-link, .case-tags span, .case-meta, .case-challenge, .project-page .case-main-card, .project-page .case-aplus-card, .project-page .case-image-toolbar, .project-lightbox__close):focus-visible::before { opacity: .9; }
.project-page .case-main-card, .project-page .case-aplus-card { border-radius: 24px; transition: transform .45s var(--ease), border-color .35s ease, box-shadow .45s ease; }
.project-page .case-main-card:hover, .project-page .case-aplus-card:hover { transform: translateY(-6px); border-color: rgba(211,229,255,.56) !important; }
.case-meta, .case-challenge { border-radius: 20px; }
.case-meta { margin: 0; padding: 24px; }
.case-meta + .case-meta { border-left: 1px solid var(--liquid-border) !important; }
.case-challenge { margin-top: 18px; padding: 28px; }
.project-page .case-main-card, .project-page .case-aplus-card { padding: 0; }
.project-page .case-image-frame { background: rgba(5,7,10,.82); }
.project-back, .project-next-link { padding: 9px 13px; border-radius: 999px; }
.button--accent { background: linear-gradient(145deg, rgba(75,150,255,.95), rgba(24,86,224,.95)) !important; color: #fff !important; }
.button--ghost { background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025)) !important; }

@media (max-width: 1100px) {
  :root { --shell: min(100% - 48px, 1280px); }
  .case-overview, .case-section { padding-top: 84px; padding-bottom: 84px; }
}
@media (max-width: 860px) {
  :root { --shell: calc(100vw - 40px); }
  .site-header, .project-header { padding-inline: 20px; }
  .project-page .case-overview__grid { gap: 10px; }
  .case-meta { border-radius: 16px; }
}
@media (max-width: 560px) {
  :root { --shell: calc(100vw - 28px); }
  .site-header, .project-header { padding-inline: 14px; height: 62px; }
  .project-page .case-hero { min-height: 84svh; padding-top: 94px; }
  .project-page .case-hero h1 { border-radius: 16px; font-size: clamp(40px, 12vw, 58px); }
  .case-overview, .case-section { padding-top: 68px; padding-bottom: 68px; }
  .case-meta, .case-challenge { padding: 20px; }
  .project-page .case-main-card, .project-page .case-aplus-card { border-radius: 18px; }
}
/* Unified smaller type scale for the standalone site */
.entry-main h1 { max-width: 880px; font-size: clamp(54px, 7.2vw, 112px); }
.portfolio-hero h1 { max-width: 860px; font-size: clamp(48px, 6.2vw, 102px); }
.creator-hero__title strong { font-size: clamp(72px, 11.8vw, 168px); }
.creator-hero__portrait { width: min(38vw, 520px); height: min(72vh, 760px); }
.creator-hero__bottom > p { max-width: 380px; font-size: clamp(12px, 1.05vw, 15px); }
.creator-marquee { padding: 94px 0 108px; }
.creator-marquee__head { margin-bottom: 46px; }
.creator-marquee__head h2 { max-width: 760px; font-size: clamp(36px, 4.2vw, 64px); }
.profile-content h1 { max-width: 720px; font-size: clamp(62px, 6.2vw, 96px); }
.profile-info h1 { font-size: clamp(60px, 6.5vw, 102px); }
.profile-info__intro { max-width: 680px; font-size: 14px; line-height: 1.82; }
.section-heading h2 { font-size: clamp(36px, 4.2vw, 64px); }
.work-history { gap: 54px; margin-top: 110px; padding-top: 56px; }
.contact-panel { gap: 48px; padding: 58px 0 74px; }
.contact-panel__copy h2 { max-width: 720px; font-size: clamp(42px, 5.2vw, 78px); }
@media (max-width: 560px) {
  .creator-hero__title strong { font-size: clamp(64px, 20vw, 88px); }
  .creator-hero__portrait { width: min(76vw, 360px); height: min(66vh, 560px); }
}
/* Premium liquid glass buttons for all standalone and project pages */
:is(.button, .nav-toggle, .carousel-controls button, .creator-contact, .project-back, .project-next-link, .project-lightbox__close) {
  --glass-x: 50%;
  --glass-y: 50%;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(239, 247, 255, .52) !important;
  background:
    radial-gradient(120% 135% at 18% -18%, rgba(255,255,255,.7) 0%, rgba(255,255,255,.18) 28%, transparent 58%),
    radial-gradient(100% 145% at 80% 118%, rgba(87,213,255,.22), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.045) 46%, rgba(2,23,78,.22)) !important;
  box-shadow:
    0 15px 32px rgba(0,0,0,.34),
    0 5px 20px rgba(65,139,255,.16),
    inset 0 2px 2px rgba(255,255,255,.7),
    inset 0 -2px 4px rgba(4,19,70,.58),
    inset 2px 0 2px rgba(255,255,255,.18),
    inset -2px 0 2px rgba(48,165,255,.12) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) contrast(1.06);
  backdrop-filter: blur(24px) saturate(190%) contrast(1.06);
  text-shadow: 0 1px 2px rgba(0,0,0,.42);
  transition: transform .34s var(--ease), border-color .34s ease, box-shadow .34s ease, background .34s ease;
}
:is(.button, .carousel-controls button, .creator-contact, .project-back, .project-next-link, .project-lightbox__close)::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px 1px 48% 1px;
  border-radius: inherit;
  background:
    radial-gradient(90% 170% at 18% 0%, rgba(255,255,255,.96), rgba(255,255,255,.2) 46%, transparent 82%),
    linear-gradient(180deg, rgba(255,255,255,.68), transparent);
  opacity: .68;
  mix-blend-mode: screen;
  pointer-events: none;
}
:is(.button, .carousel-controls button, .creator-contact, .project-back, .project-next-link, .project-lightbox__close):hover::after,
:is(.button, .carousel-controls button, .creator-contact, .project-back, .project-next-link, .project-lightbox__close):focus-visible::after { opacity: 1; }
:is(.button, .carousel-controls button, .creator-contact, .project-back, .project-next-link, .project-lightbox__close):hover,
:is(.button, .carousel-controls button, .creator-contact, .project-back, .project-next-link, .project-lightbox__close):focus-visible {
  border-color: rgba(255,255,255,.78) !important;
  box-shadow:
    0 19px 42px rgba(0,0,0,.42),
    0 7px 28px rgba(71,154,255,.28),
    0 0 34px rgba(92,202,255,.13),
    inset 0 2px 3px rgba(255,255,255,.82),
    inset 0 -2px 4px rgba(4,19,70,.62),
    inset 2px 0 2px rgba(255,255,255,.24),
    inset -2px 0 3px rgba(48,165,255,.18) !important;
}
.button--accent,
.button--light {
  border-color: rgba(213,235,255,.78) !important;
  background:
    radial-gradient(120% 130% at 18% -18%, rgba(255,255,255,.72) 0%, rgba(255,255,255,.18) 27%, transparent 56%),
    radial-gradient(100% 150% at 78% 118%, rgba(111,234,255,.34), transparent 55%),
    linear-gradient(180deg, #79c7ff 0%, #3d86ff 32%, #1757da 70%, #1649c8 100%) !important;
  box-shadow:
    0 16px 34px rgba(0,0,0,.34),
    0 8px 28px rgba(46,124,255,.36),
    inset 0 2px 2px rgba(255,255,255,.68),
    inset 0 -3px 5px rgba(7,27,111,.56),
    inset -2px 0 3px rgba(80,222,255,.32) !important;
}
.button--ghost { background:
    radial-gradient(120% 140% at 18% -18%, rgba(255,255,255,.52) 0%, rgba(255,255,255,.12) 30%, transparent 60%),
    radial-gradient(100% 150% at 80% 120%, rgba(83,212,255,.16), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.035) 48%, rgba(2,19,66,.2)) !important; }
.site-nav { border-color: rgba(235,246,255,.38) !important; box-shadow: 0 12px 28px rgba(0,0,0,.3), inset 0 2px 2px rgba(255,255,255,.54), inset 0 -2px 3px rgba(4,19,70,.48) !important; }
.project-back, .project-next-link { padding: 9px 13px; border-radius: 999px; }
.carousel-controls button { width: 46px; height: 46px; border-radius: 50%; }
/* Final specificity guards so premium button glass always wins */
.portfolio-page.single-page-site .button,
.portfolio-page.single-page-site .site-header .site-nav,
.project-page .case-footer .button,
.project-page .project-header .site-nav,
.project-page .project-header .project-back,
.project-page .project-header .project-next-link,
.project-page .project-lightbox .project-lightbox__close {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(239, 247, 255, .52) !important;
  background:
    radial-gradient(120% 135% at 18% -18%, rgba(255,255,255,.7) 0%, rgba(255,255,255,.18) 28%, transparent 58%),
    radial-gradient(100% 145% at 80% 118%, rgba(87,213,255,.22), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.045) 46%, rgba(2,23,78,.22)) !important;
  box-shadow:
    0 15px 32px rgba(0,0,0,.34),
    0 5px 20px rgba(65,139,255,.16),
    inset 0 2px 2px rgba(255,255,255,.7),
    inset 0 -2px 4px rgba(4,19,70,.58),
    inset 2px 0 2px rgba(255,255,255,.18),
    inset -2px 0 2px rgba(48,165,255,.12) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) contrast(1.06);
  backdrop-filter: blur(24px) saturate(190%) contrast(1.06);
  text-shadow: 0 1px 2px rgba(0,0,0,.42);
}
.portfolio-page.single-page-site .button--accent,
.portfolio-page.single-page-site .button--light,
.project-page .case-footer .button--accent,
.project-page .case-footer .button--light {
  border-color: rgba(213,235,255,.78) !important;
  background:
    radial-gradient(120% 130% at 18% -18%, rgba(255,255,255,.72) 0%, rgba(255,255,255,.18) 27%, transparent 56%),
    radial-gradient(100% 150% at 78% 118%, rgba(111,234,255,.34), transparent 55%),
    linear-gradient(180deg, #79c7ff 0%, #3d86ff 32%, #1757da 70%, #1649c8 100%) !important;
  box-shadow:
    0 16px 34px rgba(0,0,0,.34),
    0 8px 28px rgba(46,124,255,.36),
    0 0 28px rgba(86,185,255,.12),
    inset 0 2px 2px rgba(255,255,255,.68),
    inset 0 -3px 5px rgba(7,27,111,.56),
    inset 2px 0 2px rgba(255,255,255,.22),
    inset -2px 0 3px rgba(80,222,255,.32) !important;
}
.portfolio-page.single-page-site .button--ghost,
.project-page .case-footer .button--ghost {
  border-color: rgba(243,249,255,.48) !important;
  background:
    radial-gradient(120% 140% at 18% -18%, rgba(255,255,255,.52) 0%, rgba(255,255,255,.12) 30%, transparent 60%),
    radial-gradient(100% 150% at 80% 120%, rgba(83,212,255,.16), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.035) 48%, rgba(2,19,66,.2)) !important;
}
/* Typography breathing room + restrained liquid glass refinement */
:is(h1, h2, h3, h4, strong) { letter-spacing: .018em !important; }
body { letter-spacing: .018em; }
p:not(.eyebrow):not(.section-index) { letter-spacing: .02em; }
:is(
  .entry-main h1,
  .portfolio-hero h1,
  .section-heading h2,
  .creator-hero__title,
  .creator-marquee h2,
  .project-card h3,
  .work-history__head h3,
  .case-hero h1,
  .case-overview__intro h2,
  .case-section__head h2,
  .case-footer h2
) { letter-spacing: .018em !important; }
:is(.creator-marquee h2, .section-heading h2, .case-overview__intro h2, .case-section__head h2, .case-footer h2) { line-height: 1.12 !important; }

:root {
  --glass-line-soft: rgba(214, 230, 255, .27);
  --glass-line-hover: rgba(202, 224, 255, .46);
  --glass-shadow-soft:
    0 12px 30px rgba(0, 0, 0, .25),
    0 2px 18px rgba(45, 92, 177, .06),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(5, 27, 66, .24);
}

:is(.button, .carousel-controls button, .creator-contact, .project-back, .project-next-link, .project-lightbox__close, .nav-toggle, .site-nav) {
  --glass-x: 50%;
  --glass-y: 50%;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--glass-line-soft) !important;
  background:
    radial-gradient(145px circle at var(--glass-x) var(--glass-y), rgba(113, 160, 233, .14), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .028) 52%, rgba(17, 50, 108, .17)) !important;
  box-shadow: var(--glass-shadow-soft) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .24);
  transition: transform .32s var(--ease), border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.portfolio-page.single-page-site .button--accent,
.portfolio-page.single-page-site .button--light,
.project-page .case-footer .button--accent,
.project-page .case-footer .button--light {
  background:
    radial-gradient(150px circle at var(--glass-x) var(--glass-y), rgba(91, 143, 224, .17), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .115), rgba(255, 255, 255, .03) 52%, rgba(20, 58, 124, .21)) !important;
}

.portfolio-page.single-page-site .button--ghost,
.project-page .case-footer .button--ghost {
  background:
    radial-gradient(145px circle at var(--glass-x) var(--glass-y), rgba(104, 154, 229, .12), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .022) 54%, rgba(13, 42, 94, .14)) !important;
}

:is(.button, .carousel-controls button, .creator-contact, .project-back, .project-next-link, .project-lightbox__close, .nav-toggle, .site-nav):hover,
:is(.button, .carousel-controls button, .creator-contact, .project-back, .project-next-link, .project-lightbox__close, .nav-toggle, .site-nav):focus-visible {
  border-color: var(--glass-line-hover) !important;
  background:
    radial-gradient(190px circle at var(--glass-x) var(--glass-y), rgba(94, 145, 224, .34), rgba(35, 78, 149, .17) 44%, transparent 78%),
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .034) 50%, rgba(11, 37, 84, .22)) !important;
  box-shadow:
    0 15px 34px rgba(0, 0, 0, .3),
    0 3px 22px rgba(60, 116, 205, .11),
    inset 0 1px 0 rgba(255, 255, 255, .23),
    inset 0 -1px 0 rgba(4, 24, 60, .27) !important;
}

:is(.button, .carousel-controls button, .creator-contact, .project-back, .project-next-link, .project-lightbox__close)::before,
:is(.button, .carousel-controls button, .creator-contact, .project-back, .project-next-link, .project-lightbox__close)::after {
  content: none !important;
  display: none !important;
}

/* High-specificity guard for the refined navigation glass */
html body.portfolio-page.single-page-site .site-header .site-nav,
html body.project-page .project-header .site-nav {
  border: 1px solid rgba(214, 230, 255, .27) !important;
  background:
    radial-gradient(145px circle at var(--glass-x, 50%) var(--glass-y, 50%), rgba(113, 160, 233, .14), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .028) 52%, rgba(17, 50, 108, .17)) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .25),
    0 2px 18px rgba(45, 92, 177, .06),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(5, 27, 66, .24) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
}
html body.portfolio-page.single-page-site .site-header .site-nav:hover,
html body.portfolio-page.single-page-site .site-header .site-nav:focus-within,
html body.project-page .project-header .site-nav:hover,
html body.project-page .project-header .site-nav:focus-within {
  border-color: rgba(202, 224, 255, .46) !important;
  background:
    radial-gradient(190px circle at var(--glass-x, 50%) var(--glass-y, 50%), rgba(94, 145, 224, .34), rgba(35, 78, 149, .17) 44%, transparent 78%),
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .034) 50%, rgba(11, 37, 84, .22)) !important;
  box-shadow:
    0 15px 34px rgba(0, 0, 0, .3),
    0 3px 22px rgba(60, 116, 205, .11),
    inset 0 1px 0 rgba(255, 255, 255, .23),
    inset 0 -1px 0 rgba(4, 24, 60, .27) !important;
}

/* Unified 900px project detail width */
.project-page { --shell: min(900px, calc(100vw - 80px)); }

@media (min-width: 861px) {
  .project-page .case-hero__content,
  .project-page .case-overview.section-shell,
  .project-page .case-section .section-shell,
  .project-page .case-footer .section-shell {
    width: min(900px, calc(100vw - 80px));
  }
}

@media (max-width: 860px) {
  .project-page { --shell: calc(100vw - 36px); }
  .project-page .case-hero__content,
  .project-page .case-overview.section-shell,
  .project-page .case-section .section-shell,
  .project-page .case-footer .section-shell {
    width: calc(100vw - 36px);
  }
}

@media (max-width: 560px) {
  .project-page { --shell: calc(100vw - 28px); }
  .project-page .case-hero__content,
  .project-page .case-overview.section-shell,
  .project-page .case-section .section-shell,
  .project-page .case-footer .section-shell {
    width: calc(100vw - 28px);
  }
}
