/* P3R-inspired edition: crisp type, blue depth, bounded diagonal accents. */
:root {
    --paper: #f1f7fc;
    --paper-light: #ffffff;
    --paper-deep: #dcebf5;
    --ink: #082747;
    --ink-soft: #163c5c;
    --muted: #48627a;
    --red: #0064cf;
    --red-bright: #0085ea;
    --red-surface: #005bbd;
    --accent: #77e6ff;
    --line: #c2d6e6;
    --line-light: #ffffff40;
}
body { background: var(--paper); line-height: 1.8; }
body::before { display: none; }
:focus-visible { outline: 3px solid #0087cb; outline-offset: 5px; }
.site-header, .site-header.is-scrolled, .site-header--paper {
    background: #062447f2; color: #fff; border-bottom: 1px solid #80dfff50;
    clip-path: none; box-shadow: none; backdrop-filter: blur(16px);
}
.site-header::before, .site-header::after { display: none; }
.site-mark, .site-mark span, .site-mark b, .header-contact, .desktop-nav a { transform: none; clip-path: none; }
.site-mark span { color: #fff; background: transparent; }
.site-mark b { color: var(--accent); background: transparent; }
.desktop-nav { font-size: .85rem; letter-spacing: .03em; }
.desktop-nav a { padding: .4rem .2rem; }
.desktop-nav a:hover { color: var(--accent); background: transparent; }
.desktop-nav a::after { background: var(--accent); height: 2px; }
.desktop-nav a::before { display: none; }
.header-contact { background: #fff; color: var(--ink); padding: .5rem 1rem; font-size: .8rem; border: 0; }
.mobile-nav { background: #063976; background-image: none; }
.mobile-nav a { color: #fff; text-shadow: none; }
.button, .text-button, .project-action, .category-filter button {
    font-weight: 700; letter-spacing: .02em; border-width: 1px; filter: none;
    clip-path: none; transform: none; box-shadow: none;
}
.button:hover, .text-button:hover, .project-action:hover { transform: translateY(-2px); box-shadow: none; }
.button--ink { background: var(--red-surface); border-color: var(--red-surface); }
.button--paper { background: #fff; color: var(--ink); }
.editorial-hero {
    min-height: 780px; min-height: max(760px, 100svh); isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "name statement" "meta actions";
    align-content: end; align-items: end; gap: 2rem 4rem;
    padding: 130px var(--page-pad) 100px;
    background: #004baf; color: #fff;
}
.editorial-hero::before {
    display: none;
}
.editorial-hero::after { display: none; }
.hero-loop { opacity: 1; filter: none; transform: none; }
.hero-wash { background: linear-gradient(0deg, #03172ef2, #03172eb3 20%, #03172e40 42%, transparent 64%); }
.hero-wash::after { display: none; }
.hero-grid { display: none; }
.hero-edition { top: 100px; left: var(--page-pad); background: none; color: #b4ebff; transform: none; writing-mode: horizontal-tb; letter-spacing: .2em; }
.hero-name-wrap { position: relative; inset: auto; transform: none; grid-area: name; translate: none; }
.hero-kicker { margin: 0 0 1rem; padding: 0 0 0 .8rem; border-left: 2px solid var(--accent); color: #b4ebff; background: none; clip-path: none; font-size: .7rem; letter-spacing: .18em; }
.hero-name { display: flex; flex-direction: row; flex-wrap: nowrap; font-size: clamp(4rem, 7vw, 7.5rem); line-height: 1.15; letter-spacing: -.055em; text-shadow: none; transform: none; color: #fff; }
.hero-name span { display: inline; }
.hero-name span:last-child { margin: 0; color: #fff; -webkit-text-stroke: 0; text-shadow: none; }
.hero-statement { position: relative; inset: auto; transform: none; grid-area: statement; align-self: end; max-width: 100%; padding-bottom: .25rem; }
.hero-statement p, .hero-statement strong { padding: 0; color: #fff; background: none; clip-path: none; box-shadow: none; }
.hero-statement p { font-size: clamp(1rem, 1.8vw, 1.5rem); font-weight: 500; }
.hero-statement strong { display: block; margin-top: .6rem; font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.5; }
.hero-meta { position: relative; inset: auto; grid-area: meta; padding: 1.4rem 0 0; border-top: 1px solid #ffffff40; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; background: none; clip-path: none; transform: none; color: #c7eafa; font-size: .8rem; }
.hero-actions { position: relative; inset: auto; grid-area: actions; flex-wrap: wrap; margin: 0; gap: .75rem; }
.hero-actions .button, .hero-actions .text-button { font-size: .85rem; }
.hero-actions .button--ink { background: #fff; color: #063976; border-color: #fff; }
.hero-actions .button--paper { background: #08274730; color: #fff; border: 1px solid #ffffff60; }
.hero-actions .text-button { background: transparent; color: #fff; border: 0; border-bottom: 1px solid #ffffff60; padding-inline: .25rem; }
.hero-scroll { left: auto; right: var(--page-pad); bottom: 1.5rem; transform: none; }
.content-section { padding-block: clamp(4rem, 7vw, 7rem); }
.section-rule, .section-rule--light { border-top-width: 1px; background-image: none; grid-template-columns: 3rem 1fr auto; padding-block: 1rem; font-size: .72rem; }
.section-rule span:first-child { color: var(--red-surface); font-size: 1.15rem; }
.section-rule--light span:first-child, .section-rule--light span:last-child { color: #a9e9ff; }
.profile-layout { padding-top: 3rem; }
.profile-display { color: #fff; text-shadow: none; padding: 2rem; line-height: .92; }
.profile-display::before { background: linear-gradient(145deg,#0076de,#00317f); clip-path: polygon(0 0,100% 0,93% 100%,0 100%); }
.profile-layout[data-scene="film"] .profile-display::before { background: #054a9d; }
.profile-layout[data-scene="product"] .profile-display::before { background: #0060be; }
.profile-display .display-small { color: #b9edff; background: none; padding: 0; clip-path: none; transform: none; letter-spacing: .08em; font-size: .7rem; }
.profile-display em { color: #fff; background: transparent; transform: none; clip-path: none; padding: 0; align-self: flex-start; }
.profile-display strong:nth-of-type(2) { color: #fff; }
.profile-display button[aria-pressed="true"] { color: var(--accent); }
.profile-copy .lead-copy { font-size: clamp(1.25rem, 1.8vw, 1.9rem); line-height: 1.55; font-weight: 700; }
.profile-copy > p:not(.lead-copy) { font-size: 1rem; line-height: 1.9; color: var(--muted); max-width: 44em; }
.profile-project { border: 0; box-shadow: none; }
.profile-project h3 { font-size: 1.15rem; line-height: 1.5; }
.profile-stats { gap: 1.5rem; }
.profile-stats div, .profile-stats div:nth-child(2) { min-height: 110px; background: transparent; color: var(--ink); clip-path: none; transform: none; border: 0; border-top: 1px solid var(--line); padding: 1rem 0; }
.profile-stats dt { font-size: clamp(3rem,5vw,5rem); color: var(--red-surface); }
.profile-stats dd { font-size: .8rem; }
.section-intro { padding-block: 2.5rem 3rem; }
.section-intro h2 { font-size: clamp(2rem,4vw,3.75rem); line-height: 1.35; letter-spacing: -.04em; transform: none; text-shadow: none; }
.section-intro h2 em { color: var(--red-surface); background: none; clip-path: none; padding: 0; transform: none; font-style: normal; }
.chapter-heading { padding: 1.5rem 0; margin-bottom: 2rem; color: var(--ink); border-top: 1px solid var(--line); }
.chapter-heading::before, .chapter-heading::after { display: none; }
.chapter-heading h3 { color: var(--ink); font-size: clamp(1.6rem,2.6vw,2.5rem); transform: none; text-shadow: none; }
.chapter-heading p { color: var(--muted); }
.chapter-heading p span { color: var(--red-surface); }
.chapter-count { color: var(--red-surface); opacity: 1; }
.featured-grid--games .featured-card:nth-child(2), .featured-grid--products .featured-card:nth-child(2) { margin-top: 0; }
.featured-card__media, .archive-card__media, .related-card a > div { border: 1px solid var(--line); box-shadow: none; background: #e3edf7; }
.featured-card:hover .featured-card__media, .archive-card:hover .archive-card__media,
.featured-card:focus-within .featured-card__media, .archive-card:focus-within .archive-card__media { box-shadow: 0 8px 24px #00376d18; border-color: var(--red); }
.featured-card__number, .archive-card__index { background: #053f89; color: #fff; transform: none; width: 34px; height: 32px; }
.featured-card__body, .archive-card__body { border: 0; padding-left: 0; }
.featured-card h4 { font-size: clamp(1.35rem,2vw,2.1rem); line-height: 1.45; }
.featured-grid--film .featured-card:not(:first-child) h4 { font-size: clamp(1.05rem,1.2vw,1.25rem); line-height: 1.5; }
.featured-card__description, .archive-card__body > p { font-size: .95rem; color: var(--muted); line-height: 1.85; }
.featured-card__eyebrow { color: var(--red-surface); font-size: .7rem; }
.featured-card__cta { color: #fff; background: var(--red-surface); clip-path: none; transform: none; font-size: .72rem; padding: .5rem .7rem; }
.tag-row span { color: var(--muted); font-size: .7rem; background: #e8f1f8; border: 0; padding: .25rem .5rem; }
.all-works-callout a { background: #0059c0; color: #fff; clip-path: none; transform: none; }
.all-works-callout strong, .all-works-callout i { color: #b0edff; }
.capabilities-section { background: #032e66; background-image: none; clip-path: none; }
.capabilities-section::before { background: #0078d9; background-image: none; opacity: .3; width: 45%; border-radius: 50%; pointer-events: none; }
.capabilities-heading h2 { font-size: clamp(2rem,4vw,4rem); line-height: 1.4; font-style: normal; text-shadow: none; transform: none; }
.capability-grid article, .capability-grid article:not(.is-active) { background: #062d5c; border-color: #5285af; }
.capability-grid article.is-active, .capability-grid article:hover { background: #06407d; }
.capability-grid article p, .capability-grid article:hover p { color: #d1e6f8; font-size: .88rem; line-height: 1.85; }
.capability-grid h3 { white-space: normal; line-height: 1.5; }
.capability-selectors button { background: transparent; border-color: #649dc6; color: #fff; }
.capability-selectors button[aria-pressed="true"] { background: #a9ecff; color: #032e66; }
.contact-section { background: #005ac4; background-image: none; clip-path: none; }
.contact-section::before, .contact-section::after { display: none; }
.contact-center { transform: none; padding-block: 4rem; }
.contact-center h2, .contact-center h2 em { color: #fff; text-shadow: none; -webkit-text-stroke: 0; font-size: clamp(3rem,8vw,8rem); line-height: 1.15; letter-spacing: -.03em; transform: none; }
.contact-links a { font-size: clamp(.9rem,1.6vw,1.35rem); overflow-wrap: anywhere; }
.contact-links a:hover { background: #004999; }
.archive-hero { background: #e2effa; min-height: 300px; }
.archive-hero::before, .archive-hero::after { display: none; }
.archive-hero h1, .archive-hero h1 em { font-family: var(--sans); font-size: clamp(3rem,6vw,6rem); font-style: normal; line-height: 1.2; color: var(--ink); text-shadow: none; -webkit-text-stroke: 0; transform: none; }
.archive-hero__side { color: var(--ink); background: transparent; clip-path: none; transform: none; }
.archive-toolbar { background: #fff; border: 1px solid var(--line); clip-path: none; transform: none; }
.category-filter button { font-size: .85rem; background: transparent; border: 1px solid var(--line); }
.category-filter button.is-active { color: #fff; background: var(--red-surface); box-shadow: none; transform: none; }
.archive-card h2 { line-height: 1.5; font-size: clamp(1.15rem,1.5vw,1.4rem); }
.archive-card__category { color: #fff; background: #06458a; }
.project-hero::before { display: none; }
.project-hero .project-hero__title h1 { text-shadow: none; line-height: 1.25; font-weight: 800; }
.project-hero__title { padding-top: 3rem; }
.project-hero__title p { background: transparent; padding: 0; clip-path: none; color: var(--red-surface); font-size: .8rem; }
.project-hero__summary { background: #e2edf8; color: var(--ink); border-left: 3px solid var(--red); margin-bottom: 1.5rem; }
.project-hero__summary > p { font-family: var(--sans); font-size: 1rem; line-height: 1.85; }
.project-hero__media { border: 1px solid #bfd4e9; box-shadow: none; }
.project-hero__summary .project-action, .project-hero__summary .project-action:not(.project-action--primary) { background: #fff; color: var(--red-surface); border: 1px solid var(--line); box-shadow: none; }
.project-hero__summary .project-action--primary { background: var(--red-surface); color: #fff; }
.project-section-heading { border-left-width: 3px; }
.project-section-heading h2 { font-size: clamp(2rem,3vw,3rem); line-height: 1.4; transform: none; }
.project-overview__content > p { font-size: clamp(1rem,1.4vw,1.3rem); line-height: 1.9; }
.project-feature-list p { font-size: 1rem; line-height: 1.85; }
.resume-hero { background: #e2effa; }
.resume-hero { clip-path: none; padding-bottom: 3rem; }
.resume-hero__edition, .resume-hero__back { color: var(--muted); }
.resume-hero__edition { border-color: var(--line); }
.desktop-nav a[aria-current="page"] { clip-path: none; transform: none; background: transparent; color: var(--accent); }
.capability-grid article > span:not(.case-watermark) { color: var(--accent); }
.resume-hero::before, .resume-hero::after { display: none; }
.resume-hero__name, .resume-hero__name em { color: var(--ink); text-shadow: none; -webkit-text-stroke: 0; transform: none; line-height: 1.2; }
.resume-hero__name h1 { color: var(--ink); text-shadow: none; line-height: 1.2; font-size: clamp(3.5rem,7vw,7rem); }
.resume-hero__name em { background: transparent; clip-path: none; padding: 0; color: var(--red-surface); font-size: clamp(1.5rem,3vw,3rem); }
.resume-hero__profile { background: transparent; clip-path: none; transform: none; padding: 0; }
.resume-hero__profile strong { color: var(--ink); }
.resume-hero__profile p, .resume-hero__profile span { font-size: .95rem; color: var(--muted); }
.work-index { display: flex; flex-wrap: wrap; border-block: 1px solid var(--line); margin-bottom: 3rem; }
.work-index a { flex: 1 1 220px; display: flex; align-items: center; gap: 1rem; padding: 1rem; font-size: .9rem; font-weight: 700; transition: color 200ms, background 200ms; }
.work-index span { color: var(--red-surface); font-size: .7rem; font-variant-numeric: tabular-nums; }
.work-index b { margin-left: auto; }
.work-index a:hover { background: #dceffa; }
.resume-hero__intro { color: var(--ink); background: transparent; clip-path: none; transform: none; }
.resume-section__heading h2 { font-family: var(--sans); font-size: clamp(1.4rem,2.5vw,2rem); line-height: 1.5; }
.resume-sidebar p, .resume-contact-list, .resume-entry__body li { font-size: .95rem; line-height: 1.9; }
.resume-entry__meta { font-size: .8rem; }
.resume-entry__body h3 { font-size: clamp(1.25rem,1.8vw,1.75rem); line-height: 1.5; }
.site-footer { background: #052747; color: #d8edf9; }
[data-reveal] { clip-path: none; transform: translateY(18px); transition: opacity .5s ease, transform .65s var(--ease); }
[data-reveal].is-visible { clip-path: none; transform: none; }
@keyframes hero-slam { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes page-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) {
    .editorial-hero { min-height: max(760px,100svh); grid-template-columns: 1fr; grid-template-areas: "name" "statement" "meta" "actions"; gap: 1.25rem; padding-top: 220px; padding-bottom: 80px; }
    .hero-name { font-size: clamp(3.5rem,13vw,6rem); }
    .hero-statement strong { font-size: 1.55rem; }
    .hero-actions { display: flex; gap: .65rem; }
    .hero-actions .button { min-width: 0; flex: 1 1 140px; gap: .75rem; padding: .8rem; }
    .hero-actions .text-button { font-size: .8rem; }
    .hero-kicker { font-size: .65rem; white-space: normal; width: auto; }
    .section-rule { grid-template-columns: 2rem 1fr; font-size: .65rem; }
    .chapter-heading[data-reveal] { padding: 1rem 0; }
    .profile-display { padding: 1.5rem; }
    .profile-copy { padding-top: 2rem; }
    .profile-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
    .profile-stats div { min-height: 100px; display: block; }
    .profile-stats dd { font-size: .7rem; }
    .project-hero__summary { padding: 1rem; }
    .resume-hero__name { font-size: 3.5rem; }
    .resume-section__heading { gap: .5rem; }
    .resume-section__heading em { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .hero-enter { animation: none; opacity: 1; }
}
@media print {
    :root { --paper: #fff; --ink: #111; --muted: #333; --red-surface: #222; }
    .resume-hero { background: #fff; }
    .resume-sidebar p, .resume-entry__body li { font-size: 9pt; }
}

/* Compact editorial layout: a single headline, quiet controls, artwork first. */
.profile-section, .selected-section { width: 100%; max-width: 1480px; padding: clamp(3rem,5vw,5rem) var(--page-pad); }
.profile-section .section-rule { padding-block: .75rem; font-size: .65rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(2rem,5vw,4.5rem); padding-top: 2rem; align-items: center; }
.profile-copy { padding: 0 0 0 1.5rem; border-left: 3px solid var(--red); }
.profile-copy > p.profile-eyebrow, .profile-eyebrow { margin: 0 0 .85rem; font: 600 .65rem/1.5 var(--sans); letter-spacing: .15em; color: var(--red-surface); }
.profile-copy .lead-copy { font-size: clamp(1.65rem,2.7vw,2.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.4; margin-bottom: 1.2rem; }
.profile-copy > p:not(.lead-copy):not(.profile-eyebrow) { font-size: .9rem; line-height: 1.9; max-width: 34em; }
.profile-copy .editorial-link { margin-top: 1.1rem; font-size: .8rem; }
.profile-showcase { min-width: 0; padding: 1rem; background: #fff; border: 1px solid var(--line); box-shadow: 8px 8px 0 #dcebf5; }
.profile-showcase .profile-display { position: relative; display: flex; flex-direction: row; align-items: center; gap: .35rem; padding: 0 0 .65rem; margin: 0; container-type: normal; color: var(--muted); font: 500 .8rem/1.5 var(--sans); letter-spacing: 0; text-shadow: none; transform: none; }
.profile-showcase .profile-display::before { display: none; }
.profile-showcase .profile-display button { padding: .45rem .85rem; color: var(--muted); border-bottom: 2px solid transparent; transform: none; translate: none; transition: color 200ms, border-color 200ms; }
.profile-showcase .profile-display button[aria-pressed="true"] { border-color: var(--red-surface); color: var(--red-surface); transform: none; }
.profile-showcase .profile-display button:hover { color: var(--red-surface); translate: none; }
.profile-showcase .profile-display button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.profile-live { margin-left: auto; font-size: .65rem; color: var(--muted); }
.profile-live::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-right: .5rem; vertical-align: middle; }
.profile-preview { margin: 0; max-width: none; min-height: 0; }
.profile-project > div:not(.explore-media) { padding: 2rem 1rem .8rem; }
.profile-project h3 { font-size: 1rem; }
.profile-section-link { font-size: .7rem; padding-block: .7rem 0; }
.profile-showcase .showcase-controls { gap: .7rem; padding-top: .8rem; font-size: .6rem; }
.profile-showcase .showcase-pause { min-width: 0; padding: .35rem .6rem; border-color: var(--line); font-size: .65rem; }
.profile-stats { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1.2rem; border: 0; }
.profile-stats div, .profile-stats div:nth-child(2) { display: block; flex: 1; min-width: 70px; min-height: 0; margin: 0; padding: .75rem 0 0; border: 0; border-top: 1px solid var(--line); }
.profile-stats dt { font: 600 1.5rem/1.3 var(--sans); letter-spacing: -.03em; }
.profile-stats dt span { font-size: .6rem; font-weight: 500; }
.profile-stats dd { margin-top: .2rem; font-size: .65rem; font-weight: 500; letter-spacing: 0; }
.selected-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.75rem; padding-top: 1.5rem; border-top: 3px solid var(--red); }
.selected-heading h2 { display: flex; align-items: start; gap: .7rem; font: 700 clamp(2rem,3.5vw,3.4rem)/1.3 var(--sans); letter-spacing: -.04em; }
.selected-heading h2 span { font-size: .75rem; color: var(--red-surface); margin-top: .25rem; letter-spacing: 0; }
.selected-heading .work-index { flex-wrap: nowrap; gap: .4rem; border: 0; margin: 0; }
.selected-heading .work-index a { flex: none; padding: .5rem 1rem; font-size: .8rem; font-weight: 500; border: 1px solid var(--line); }
.selected-heading .work-index a:hover { background: var(--red-surface); color: #fff; }
.featured-chapter { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 2rem; padding: 1.5rem 0 3rem; border-top: 1px solid var(--line); }
.chapter-heading[data-reveal] { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .65rem; padding: 0; margin: 0; border: 0; }
.chapter-heading .chapter-index { font: 500 .65rem/1.4 var(--sans); letter-spacing: .12em; color: var(--red-surface); }
.chapter-heading h3 { font-size: 1.1rem; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; }
.chapter-heading .chapter-count { font: 500 .7rem/1.5 var(--sans); color: var(--muted); }
.chapter-heading .chapter-count::after { content: ' 件作品'; }
.featured-grid { gap: 1.25rem; }
.selected-section .featured-card .featured-card__media { aspect-ratio: 16 / 9; border-width: 1px; filter: none; }
.featured-grid--games .featured-card:nth-child(n), .featured-grid--products .featured-card:nth-child(n) { grid-column: span 6; margin-top: 0; }
.featured-card__body { margin-top: .85rem; }
.featured-card h4, .featured-grid--games .featured-card:nth-child(2) h4 { font-size: clamp(1.15rem,1.65vw,1.5rem); font-weight: 700; line-height: 1.5; }
.featured-card__eyebrow { font-size: .6rem; letter-spacing: .08em; }
.featured-card__description { font-size: .85rem; line-height: 1.8; }
.featured-card__footer { margin-top: .75rem; padding-top: .65rem; }
.featured-card__cta { font-size: .65rem; background: transparent; color: var(--red-surface); padding: .2rem 0 .2rem .4rem; }
.featured-card__number { top: .6rem; left: .6rem; width: 28px; height: 26px; font: 600 .7rem/1 var(--sans); }
.featured-card:hover .featured-card__number { transform: none; }
.all-works-callout { margin-top: 0; background: transparent; clip-path: none; transform: none; }
.all-works-callout a { padding: 1rem 0; background: transparent; color: var(--ink); border-block: 1px solid var(--line); }
.all-works-callout a > span { font: 600 1.1rem/1.5 var(--sans); }
.all-works-callout [data-work-total] { font: 600 1.25rem/1.3 var(--sans); }
.all-works-callout strong, .all-works-callout i { font-size: 1.25rem; color: var(--red-surface); }
.all-works-callout small { font-size: .65rem; }
@media (max-width: 820px) {
    .profile-layout { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 1.5rem; }
    .profile-copy .lead-copy { font-size: 1.85rem; }
    .profile-copy { padding-left: 1rem; }
    .profile-showcase { padding: .65rem; box-shadow: 4px 4px 0 #dcebf5; }
    .profile-stats { gap: 1rem; margin-top: 1rem; }
    .selected-heading { align-items: start; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
    .selected-heading .work-index { gap: 0; }
    .selected-heading .work-index a { padding: .4rem .5rem; font-size: .75rem; }
    .featured-card { margin-bottom: 1.75rem; }
    .featured-grid--games .featured-card:nth-child(2), .featured-grid--products .featured-card:nth-child(2) { margin-bottom: 0; }
    .featured-chapter { display: block; padding-bottom: 2rem; }
    .chapter-heading[data-reveal] { flex-direction: row; align-items: baseline; flex-wrap: wrap; padding: 0; margin-bottom: 1rem; }
    .chapter-heading .chapter-index { width: 100%; }
}

/* Resume edition: factual summaries and a consistent diagonal motion rhythm. */
.resume-skill-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; padding-top: 1.5rem; }
.resume-skill-grid article { border-top: 2px solid var(--red); padding-top: 1rem; }
.resume-skill-grid h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.resume-skill-grid p { color: var(--muted); font-size: .95rem; line-height: 1.9; }
.resume-entry__body li strong { color: var(--ink); font-weight: 700; }
.resume-game-list { padding-top: 1rem; }
.resume-game-list > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.resume-game-list dt { color: var(--red-surface); font-weight: 700; }
.resume-game-list dd { color: var(--muted); }
.resume-hero__profile strong { font-family: var(--sans); font-size: clamp(1.3rem,2vw,1.8rem); line-height: 1.55; }
.site-header::after {
    display: block; content: ""; position: absolute; inset: auto 0 0;
    width: 100%; height: 2px; background: var(--accent); pointer-events: none;
    transform: scaleX(var(--reading-progress,0)); transform-origin: left;
}
::view-transition { background: #0059b9; }
::view-transition-group(root) { animation-duration: 560ms; }
::view-transition-old(root) { animation: p3-page-exit 360ms cubic-bezier(.4,0,.2,1) both; }
::view-transition-new(root) { animation: p3-page-enter 560ms cubic-bezier(.22,1,.36,1) both; }
@keyframes p3-page-exit { from { opacity: 1; transform: none; } to { opacity: .2; transform: translateX(-2%); } }
@keyframes p3-page-enter {
    from { clip-path: polygon(0 0,0 0,-18% 100%,0 100%); }
    to { clip-path: polygon(0 0,118% 0,100% 100%,0 100%); }
}
/* A shallow perspective stage; selection motion is interruptible in home-explore.js. */
.capabilities-section::before { width: 38%; opacity: .12; }
.capabilities-heading { padding: 2.5rem 0 2rem; }
.capabilities-heading h2 { font-size: clamp(2rem,3vw,3rem); font-weight: 600; }
.capability-stage { perspective: 1500px; }
.capability-grid { perspective: 1500px; padding-block: 1rem; }
.capability-grid article[data-capability] {
    transform: translateY(8px) translateZ(-45px) rotateY(var(--card-turn,-7deg));
    transform-origin: center center; backface-visibility: hidden;
    box-shadow: 0 10px 25px #00122928;
    transition: background 500ms, border-color 500ms, box-shadow 650ms;
}
.capability-grid article[data-capability].is-active {
    transform: translateZ(18px); z-index: 2; border-color: #77e6ff99;
    background: linear-gradient(145deg,#124c82,#06315e);
    box-shadow: 0 24px 48px #00122966, inset 0 1px 0 #ffffff24;
}
.capability-grid article[data-capability] > span:not(.case-watermark) { font: 500 1.3rem/1.2 var(--sans); letter-spacing: -.04em; }
.capability-grid article > span.case-watermark { display: none; }
.capability-selectors button { transition: background 220ms, color 220ms, border-color 220ms; }
.capability-selectors button:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
    .profile-preview__panel[data-kind].is-front { animation: p3-scene-enter 780ms cubic-bezier(.22,1,.36,1) both; }
    .profile-preview__panel[data-kind].is-leaving { animation: p3-scene-exit 780ms ease both; }
    .profile-preview__panel.is-front .profile-project::after {
        content: ""; position: absolute; z-index: 8; inset: 0; pointer-events: none;
        background: linear-gradient(115deg,transparent 30%,#84e9ff55 48%,#006be477 60%,transparent 72%);
        animation: p3-light-pass 780ms cubic-bezier(.22,1,.36,1) both;
    }
    .profile-preview__panel.is-front .profile-project > div:not(.explore-media) { animation: p3-caption 480ms 220ms both; }
    .capability-grid { transition: grid-template-columns 860ms cubic-bezier(.22,1,.36,1); }
    .capability-grid article[data-capability].is-active { animation: none; }
    .capability-grid article.is-active .explore-media { animation: p3-depth-picture 700ms cubic-bezier(.22,1,.36,1) both; }
    .capability-grid article.is-active h3, .capability-grid article.is-active > p,
    .capability-grid article.is-active .case-caption { animation: p3-caption 450ms 240ms both; }
    .capability-stage .capability-grid article.is-active :is(.explore-media,h3,p,.case-caption) { animation-play-state: running; }
    .hero-grid { animation: p3-grid-entry 1200ms ease-out both; }
    .work-index a b, .project-action b { transition: transform 250ms var(--ease); }
    .work-index a:hover b { transform: translateY(3px); }
    .project-action:hover b { transform: translate(2px,-2px); }
}
@keyframes p3-depth-picture { from { opacity: .35; transform: scale(.94) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes p3-scene-enter {
    from { opacity: .6; clip-path: polygon(0 0,0 0,-15% 100%,0 100%); transform: translateX(12px); }
    to { opacity: 1; clip-path: polygon(0 0,115% 0,100% 100%,0 100%); transform: none; }
}
@keyframes p3-scene-exit { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-18px); } }
@keyframes p3-light-pass { from { transform: translateX(-100%); opacity: 0; } 25% { opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes p3-caption { from { opacity: 0; translate: 16px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes p3-grid-entry { from { opacity: 0; transform: translateX(40px); } to { opacity: .7; transform: none; } }
@media (max-width: 820px) {
    .capability-grid article[data-capability], .capability-grid article[data-capability].is-active { transform: none; }
    .resume-skill-grid { grid-template-columns: 1fr; }
    .resume-game-list > div { grid-template-columns: 1fr; gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .capability-grid article[data-capability], .capability-grid article[data-capability].is-active { transform: none; transition: none; }
    ::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    .profile-preview__panel.is-front .profile-project::after { display: none; }
}
@media print {
    .resume-skill-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .resume-skill-grid p, .resume-game-list > div { font-size: 9pt; }
    .site-header::after { display: none; }
}

/* About: a single editorial stage, replacing repeated introduction/capability panels. */
.hero-statement { text-align: right; justify-self: end; }
.hero-actions { justify-content: flex-end; }
.hero-meta { max-width: 32rem; }
.profile-layout { display: block; padding-top: 2rem; }
.profile-copy { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 0; border: 0; margin-bottom: 2.5rem; }
.profile-copy .lead-copy { font-size: clamp(1.6rem,2.4vw,2.3rem); margin: 0; line-height: 1.35; }
.profile-copy .editorial-link { margin: 0; flex-shrink: 0; }
.profile-copy .profile-eyebrow { margin: 0 0 .7rem; font: 600 .65rem/1.5 var(--sans); color: var(--red-surface); letter-spacing: .15em; }
.profile-showcase { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,.34fr) minmax(0,1fr); column-gap: clamp(2rem,4vw,4rem); padding: 0; border: 0; box-shadow: none; background: transparent; perspective: 1600px; }
.profile-showcase::before { content: ''; position: absolute; pointer-events: none; z-index: -1; right: -1.4rem; top: -1.2rem; bottom: 4rem; width: 52%; background: linear-gradient(135deg,#deeffa,#c8e6fa); clip-path: polygon(20% 0,100% 0,100% 100%,0 100%); transition: clip-path 1300ms cubic-bezier(.16,1,.3,1), background 1300ms; }
.profile-layout[data-scene="film"] .profile-showcase::before { clip-path: polygon(0 0,100% 12%,100% 100%,20% 100%); }
.profile-layout[data-scene="product"] .profile-showcase::before { clip-path: polygon(0 12%,100% 0,100% 88%,0 100%); }
.profile-index { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding-top: 1rem; }
.profile-scene-number { font: 600 .65rem/1.5 var(--sans); color: var(--muted); letter-spacing: .15em; }
.profile-word-window { overflow: hidden; padding-block: 1rem; }
.profile-scene-word { display: block; font: 900 clamp(3.3rem,6.5vw,6.4rem)/1 var(--sans); letter-spacing: -.075em; color: var(--red-surface); transform-origin: left bottom; }
.profile-scene-caption { color: var(--muted); font: 500 .75rem/1.5 var(--sans); }
.profile-showcase .profile-display { width: 100%; align-self: stretch; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; margin-top: auto; padding-top: 2rem; }
.profile-showcase .profile-display button { display: flex; align-items: center; gap: .7rem; border: 0; border-top: 1px solid var(--line); padding: .9rem .4rem; font: 600 .85rem/1.5 var(--sans); position: relative; }
.profile-showcase .profile-display button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--red-surface); transform: scaleX(0); transform-origin: left; transition: transform 650ms cubic-bezier(.16,1,.3,1); }
.profile-showcase .profile-display button[aria-pressed="true"] { color: white; border-color: transparent; }
.profile-showcase .profile-display button[aria-pressed="true"]::before { transform: scaleX(1); }
.profile-display button span { font-size: .6rem; opacity: .7; }
.profile-display button i { margin-left: auto; font-style: normal; }
.profile-live { margin: 1rem 0 0; }
.profile-showcase .profile-preview { margin: 0; min-width: 0; transform: rotateX(var(--look-x,0deg)) rotateY(var(--look-y,0deg)); transform-style: preserve-3d; transition: transform 650ms cubic-bezier(.22,1,.36,1); }
.profile-showcase .profile-project { border: 0; overflow: hidden; background: transparent; }
.profile-showcase .explore-media { border: 1px solid var(--line); }
.profile-showcase .explore-media img { object-fit: contain; }
.profile-showcase .profile-preview__panel[data-kind="product"] .explore-media img { animation: none; transform: none; }
.profile-showcase .profile-project > div:not(.explore-media) { position: relative; inset: auto; min-height: 74px; padding: 1rem 6rem .5rem 0; background: transparent; color: var(--ink); }
.profile-showcase .profile-project span { color: var(--red-surface); font-size: .6rem; }
.profile-showcase .profile-project h3 { padding: 0; margin: .3rem 0 0; font-size: 1.05rem; }
.profile-showcase .profile-project small { right: 0; bottom: 1rem; }
.profile-showcase .profile-project:hover img { transform: none; }
.profile-showcase .profile-section-link { border-top: 1px solid var(--line); margin-top: .3rem; }
.profile-showcase .showcase-controls { grid-column: 2; padding-top: 1.3rem; }
.profile-showcase .profile-preview__panel { transform-origin: 100% 50%; backface-visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
    .profile-showcase .profile-preview__panel[data-kind].is-front { animation: profile-depth-arrive 1100ms cubic-bezier(.16,1,.3,1) both; }
    .profile-showcase .profile-preview__panel[data-kind].is-leaving { animation: profile-depth-depart 700ms cubic-bezier(.4,0,.2,1) both; }
    .profile-showcase .profile-preview__panel.is-front .profile-project::after { display: none; }
    .profile-showcase .profile-preview__panel.is-front .explore-media::after { content: ''; position: absolute; z-index: 5; inset: 0; pointer-events: none; background: linear-gradient(115deg,transparent 35%,#b5f3ff50 50%,transparent 65%); animation: p3-light-pass 1100ms ease-out both; }
    .profile-showcase .profile-preview__panel.is-front .profile-project > div:not(.explore-media) { animation: profile-label-arrive 850ms 200ms both; }
    .profile-layout .profile-showcase .profile-preview__panel, .profile-layout .profile-showcase .profile-preview__panel .profile-project > div:not(.explore-media) { animation-play-state: running; }
}
@keyframes profile-depth-arrive {
    from { opacity: 0; transform: perspective(1600px) translate(50px,20px) rotateY(-12deg) scale(.92); clip-path: polygon(22% 0,100% 0,100% 100%,50% 100%); }
    to { opacity: 1; transform: perspective(1600px) translate(0,0) rotateY(0deg) scale(1); clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
}
@keyframes profile-depth-depart { to { opacity: 0; transform: perspective(1600px) translate(-40px,-8px) rotateY(8deg) scale(.92); } }
@keyframes profile-label-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) {
    .hero-statement { text-align: left; justify-self: start; }
    .hero-actions { justify-content: flex-start; }
    .profile-copy { align-items: start; margin-bottom: 1.8rem; }
    .profile-copy .editorial-link { font-size: .7rem; }
    .profile-showcase { display: flex; flex-direction: column; gap: 1rem; padding: 0; box-shadow: none; }
    .profile-showcase::before { right: 0; top: 7rem; bottom: 4rem; width: 70%; }
    .profile-index { padding: 0; }
    .profile-scene-heading { position: relative; }
    .profile-word-window { padding: .4rem 0; }
    .profile-scene-word { font-size: clamp(3.6rem,13vw,6rem); }
    .profile-scene-caption { position: absolute; right: 0; bottom: .7rem; font-size: .65rem; }
    .profile-showcase .profile-display { flex-direction: row; margin: .5rem 0 0; padding: 0; }
    .profile-showcase .profile-display button { flex: 1; justify-content: center; padding: .65rem .1rem; gap: .3rem; font-size: .7rem; }
    .profile-display button i, .profile-live { display: none; }
    .profile-showcase .profile-preview { transform: none; }
    .profile-showcase .profile-project > div:not(.explore-media) { min-height: 74px; padding-right: 5rem; }
    .profile-showcase .profile-project h3 { font-size: .9rem; }
    .profile-showcase .showcase-controls { padding-top: 0; }
}
@media (max-width: 420px) {
    .profile-copy { flex-wrap: wrap; }
    .profile-scene-caption { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-showcase::before, .profile-showcase .profile-preview, .profile-showcase .profile-display button::before { transform: none; transition: none; }
    .profile-showcase .profile-display button:not([aria-pressed="true"])::before { transform: scaleX(0); }
    .profile-showcase .profile-preview__panel[data-kind].is-front { animation: none; }
}
/* Click vocabulary: navigation, selection, media and disclosure share one rhythm. */
.category-filter button { clip-path: none; }
.category-filter button:hover { transform: none; }
.project-gallery__thumbs button.is-active { border-width: 2px; transform: none; }
.project-carousel__stage { perspective: 1500px; }
.project-carousel__slide { border: 1px solid var(--line); backface-visibility: hidden; }
.project-carousel__slide.is-active { filter: none; box-shadow: 0 18px 42px #00234730; }
.project-carousel__slide.is-previous { transform: translate(-112%,-50%) rotateY(12deg) scale(.72); }
.project-carousel__slide.is-next { transform: translate(12%,-50%) rotateY(-12deg) scale(.72); }
.project-carousel__controls { border-width: 1px; border-color: var(--line); }
.project-carousel__controls button { justify-self: start; padding: .6rem 1rem; clip-path: none; transform: none; background: var(--red-surface); }
.project-carousel__controls button:hover { transform: none; background: var(--ink); }
.media-dialog, .lightbox-dialog { border: 1px solid #77e6ff70; box-shadow: 0 30px 100px #00132780; filter: none; }
.media-dialog[open], .lightbox-dialog[open] { animation: none; }
.media-dialog::backdrop, .lightbox-dialog::backdrop { background: #021a36d9; backdrop-filter: blur(8px); }
@media (prefers-reduced-motion: no-preference) {
    html[data-route-motion="project"]::view-transition-new(root) { animation: p3-project-enter 560ms cubic-bezier(.22,1,.36,1) both; }
    html[data-route-motion="project"]::view-transition-old(root) { animation: p3-project-exit 380ms ease both; }
    .project-carousel__slide { transition: transform 650ms cubic-bezier(.22,1,.36,1), opacity 450ms, filter 450ms; }
    .project-gallery__thumbs button { transition: border-color 220ms, background 220ms; }
    .media-dialog[open]::backdrop, .lightbox-dialog[open]::backdrop { animation: p3-backdrop-in 300ms ease both; }
}
@keyframes p3-project-enter {
    from { opacity: 0; transform: perspective(1600px) translateY(28px) rotateX(3deg) scale(.97); }
    to { opacity: 1; transform: perspective(1600px) translateY(0) rotateX(0deg) scale(1); }
}
@keyframes p3-project-exit { to { opacity: 0; transform: scale(1.025); } }
@keyframes p3-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 820px) {
    .mobile-nav { transform: none; clip-path: polygon(0 0,100% 0,100% 0,0 0); transition: clip-path 450ms cubic-bezier(.22,1,.36,1), opacity 250ms, visibility 450ms; }
    .menu-open .mobile-nav { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
    .mobile-nav::before { background: #062447; opacity: .5; }
    .mobile-nav a { transform: none; }
    .project-carousel__slide.is-previous { transform: translate(-118%,-50%) scale(.7); }
    .project-carousel__slide.is-next { transform: translate(18%,-50%) scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
    .project-carousel__slide, .mobile-nav { transition: none; }
    .media-dialog[open]::backdrop, .lightbox-dialog[open]::backdrop { animation: none; }
    .project-carousel__slide.is-previous { transform: translate(-112%,-50%) scale(.72); }
    .project-carousel__slide.is-next { transform: translate(12%,-50%) scale(.72); }
}

/* Final detail pass: quiet rules, consistent controls and a readable CV. */
@media screen {
    .site-header { border-bottom-color: #b3e8ff26; }
    .desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; }
    .header-contact { min-height: 40px; display: inline-flex; align-items: center; gap: .45rem; transition: background 180ms, color 180ms; }
    .header-contact:hover { background: #caf4ff; color: #062447; }
    .site-mark span { font: 800 1.2rem/1 var(--sans); letter-spacing: -.06em; }
    .site-mark b { font-size: .6rem; }
    .menu-toggle { width: 44px; height: 44px; }
    .menu-toggle span { height: 2px; }
    .site-footer { font-size: .7rem; font-weight: 500; letter-spacing: .035em; border-color: #b3e8ff26; }
    .site-footer a:hover { color: #93eaff; }
    .tag-row span { border: 1px solid #c2d6e670; font-weight: 500; }
    .archive-card__category, .archive-card__index, .featured-card__number { transform: none; clip-path: none; font-family: var(--sans); font-weight: 600; }
    .archive-card__index, .featured-card__number { display: grid; place-items: center; font-size: .7rem; font-variant-numeric: tabular-nums; }
    .archive-card__category { font-size: .65rem; letter-spacing: .035em; }
    .archive-hero { color: var(--ink); clip-path: none; border-bottom: 1px solid #c2d6e680; }
    .archive-hero__meta { color: var(--muted); font-weight: 500; }
    .archive-hero__side p { font-family: var(--sans); }
    .archive-hero__side strong { font-family: var(--sans); font-size: 2rem; font-weight: 500; }
    .category-filter button { min-height: 44px; font-weight: 500; }
    .category-filter button span { color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; }
    .category-filter button:is(.is-active,:hover) span { color: #e1f6ff; }
    .archive-toolbar:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px #0064cf12; }
    .archive-search { border-bottom: 1px solid var(--line); }
    .archive-search input { color: var(--ink); font-size: clamp(1rem,1.35vw,1.2rem); font-weight: 400; }
    .archive-search input::placeholder { color: #637c91; opacity: 1; }
    .archive-search:focus-within { box-shadow: none; }
    .archive-result-meta strong { color: var(--red-surface); font: 500 2rem/1 var(--sans); font-variant-numeric: tabular-nums; }
    .archive-result-meta span { color: var(--muted); font-weight: 500; }
    .archive-search input:focus-visible { outline: none; }
    .project-hero__top { border-bottom: 1px solid var(--line); }
    .project-hero__title { transform: none; }
    .project-hero__summary { clip-path: none; }
    .project-hero__media > span { transform: none; font-weight: 500; }
    .project-action, .project-gallery__main > button, .lightbox-close, .media-dialog__bar button { min-height: 44px; clip-path: none; }
    .project-action:focus-visible, .category-filter button:focus-visible { outline-offset: 4px; }
    .resume-hero {
        min-height: 370px; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
        gap: 2.2rem 4rem; padding-block: 2.5rem 2rem;
        padding-inline: max(var(--page-pad), calc((100% - var(--content))/2 + var(--page-pad)));
        background: linear-gradient(115deg,#e2effa,#edf6fc); border-bottom: 1px solid #c2d6e680;
    }
    .resume-hero__edition { font-size: .65rem; font-weight: 500; letter-spacing: .13em; }
    .resume-hero__name { flex-direction: column; align-items: flex-start; gap: .65rem; }
    .resume-hero__name h1 { font-size: clamp(3rem,5.4vw,5rem); font-weight: 700; letter-spacing: -.065em; }
    .resume-hero__name em { margin: 0; font: 500 clamp(.8rem,1.1vw,1rem)/1.5 var(--sans); letter-spacing: .22em; }
    .resume-hero__profile { border-left: 1px solid #b4cddd; padding-left: 2rem; gap: .6rem; }
    .resume-hero__profile strong { font: 700 clamp(1.1rem,1.6vw,1.45rem)/1.65 var(--sans); }
    .resume-hero__profile p, .resume-hero__profile span { font-size: .85rem; }
    .resume-hero__back { font-size: .75rem; font-weight: 500; letter-spacing: .03em; padding-block: .4rem; }
    .resume-sheet { grid-template-columns: 240px minmax(0,1fr); gap: clamp(2.5rem,5vw,5rem); padding-block: 3.5rem 5rem; }
    .resume-sidebar { padding-right: 1.8rem; }
    .resume-sidebar section { padding-bottom: 1.8rem; margin-bottom: 1.8rem; }
    .resume-sidebar h2 { font-size: .66rem; font-weight: 500; margin-bottom: 1rem; }
    .resume-sidebar__lead { font-family: var(--sans) !important; font-weight: 500 !important; font-size: .9rem !important; }
    .resume-sidebar p, .resume-contact-list { font-size: .85rem; }
    .resume-contact-list dt { font-size: .68rem; font-weight: 500; color: var(--muted); margin-bottom: .15rem; }
    .resume-contact-list dd { color: var(--ink); font-variant-numeric: tabular-nums; }
    .resume-side-link { font-size: .8rem; font-weight: 500; }
    .resume-section { margin-bottom: 3.5rem; }
    .resume-section:last-child { margin-bottom: 0; }
    .resume-section__heading { grid-template-columns: 2.1rem minmax(0,1fr) auto; gap: .8rem; padding-bottom: .85rem; border-bottom: 1px solid #a6c0d5; }
    .resume-section__heading span { font: 500 .85rem/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
    .resume-section__heading h2 { font-size: clamp(1.25rem,1.7vw,1.65rem); font-weight: 700; letter-spacing: -.035em; }
    .resume-section__heading em { font: 500 .65rem/1.5 var(--sans); letter-spacing: .13em; }
    .resume-skill-grid { gap: 1.6rem 2rem; padding-top: 1.4rem; }
    .resume-skill-grid article { border: 0; padding: 0; }
    .resume-skill-grid h3 { font-size: 1rem; font-weight: 700; }
    .resume-skill-grid p, .resume-entry__body li { font-size: .9rem; line-height: 1.95; }
    .resume-entry { gap: 1.6rem; padding-block: 1.8rem; }
    .resume-entry:hover { background: transparent; }
    .resume-entry__meta { font-size: .75rem; font-variant-numeric: tabular-nums; }
    .resume-entry__meta time { font-weight: 500; }
    .resume-entry__body h3 { font-size: clamp(1.15rem,1.5vw,1.4rem); font-weight: 700; letter-spacing: -.025em; }
    .resume-entry__body h4 { font-size: .85rem; font-weight: 500; margin-block: .35rem .9rem; }
    .resume-entry__body li { padding-left: 1rem; }
    .resume-entry__body li::before { content: ''; width: 3px; height: 3px; border-radius: 50%; top: .85em; background: #6a92b4; }
    .resume-entry__body > a { font-size: .75rem; font-weight: 500; letter-spacing: .025em; padding-block: .35rem; }
    .resume-entry__body > a:hover, .resume-side-link:hover, .resume-contact-list a:hover, .resume-hero__back:hover { color: var(--red); }
    .resume-game-list > div { font-size: .85rem; }
    .resume-game-list dt { font-weight: 500; }
}
@media screen and (max-width: 1100px) {
    .resume-sheet { grid-template-columns: 210px minmax(0,1fr); gap: 2rem; }
    .resume-entry { grid-template-columns: 1fr; gap: .75rem; }
    .resume-entry__meta { flex-direction: row; flex-wrap: wrap; gap: .4rem 1.2rem; }
}
@media screen and (max-width: 820px) {
    .header-contact { display: none; }
    .resume-hero { min-height: 0; display: grid; grid-template-columns: 1fr; gap: 1.8rem; padding-block: 2rem; }
    .resume-hero__edition { margin: 0; font-size: .58rem; gap: 1rem; }
    .resume-hero__name { display: flex; }
    .resume-hero__name h1 { font-size: clamp(3rem,12vw,4.5rem); }
    .resume-hero__profile { padding-left: 1rem; margin: 0; }
    .resume-hero__profile strong { font-size: 1.15rem; }
    .resume-sheet { display: block; padding-block: 2.5rem 3rem; }
    .resume-sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1.5rem; padding: 0; border: 0; }
    .resume-section__heading { grid-template-columns: 1.6rem minmax(0,1fr) auto; }
    .resume-section__heading em { display: block; font-size: .55rem; letter-spacing: .07em; }
    .resume-entry__meta { margin-bottom: .8rem; }
    .resume-section { margin-bottom: 2.5rem; }
    .resume-skill-grid { gap: 1.4rem; }
}
@media screen and (max-width: 480px) {
    .resume-sidebar { display: block; }
    .resume-contact-list { display: grid; grid-template-columns: 1fr 1.3fr; gap: .8rem 1rem; font-size: .8rem; }
    .resume-contact-list div { margin: 0; }
    .resume-sidebar section { margin-bottom: 1.5rem; padding-bottom: 1.5rem; }
}

/* Shared P3R vocabulary: cobalt planes, cyan selection, fine display type. */
:root { --p3-blue: #034ed7; --p3-deep: #052b85; --p3-cyan: #67edff; --p3-display: 'Cormorant Garamond', Georgia, serif; }
.site-header, .site-header.is-scrolled, .site-header--paper, .page-home .site-header { background: #031d4bf5; }
.site-mark { position: relative; align-items: center; min-height: 44px; color: #fff; }
.site-mark__logo { display: block; width: 76px; height: auto; aspect-ratio: 160/72; margin-left: -7px; fill: currentColor; overflow: visible; }
.site-mark__blade { fill: var(--p3-cyan); transition: transform 260ms var(--ease); transform-box: fill-box; transform-origin: center; }
.site-mark:hover .site-mark__blade { transform: translateX(3px); }
.desktop-nav a { isolation: isolate; padding-inline: .75rem; transition: color 180ms; }
.desktop-nav a::before { content: ''; display: block; position: absolute; inset: 2px 0; z-index: -1; background: var(--p3-cyan); transform: skewX(-16deg) scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: #052b63; }
.desktop-nav a:hover::before, .desktop-nav a[aria-current="page"]::before { transform: skewX(-16deg) scaleX(1); }
.desktop-nav a::after { display: none; }
.header-contact { clip-path: polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%); padding-inline: 1.35rem; }
.header-contact:hover { background: var(--p3-cyan); color: #052b63; }
.header-contact > span { display: none; }
.archive-hero { isolation: isolate; overflow: hidden; background: #dfeefa; }
.archive-hero::before { content: ''; display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; background: linear-gradient(118deg,transparent 64%,#83e9fb 64.1%,#83e9fb 65%,#0355d9 65.1%,#073694); clip-path: none; transform: none; opacity: 1; pointer-events: none; }
.archive-hero h1, .archive-hero h1 em { font-family: var(--p3-display); font-weight: 600; font-size: clamp(4rem,8vw,8rem); line-height: .8; letter-spacing: -.045em; }
.archive-hero h1 em { color: var(--p3-blue); }
.archive-hero h1 b { display: none; }
.archive-hero__meta { color: #315c89; }
.archive-hero__meta span:last-child { color: #d8f7ff; }
.archive-hero__side { color: #fff; }
.archive-hero__side strong { color: #fff; }
.archive-hero__side small { color: #c8f4ff; }
.archive-toolbar { background: transparent; border-width: 0 0 1px; padding-inline: 0; }
.category-filter button { position: relative; border: 0; border-bottom: 1px solid #b5cddd; padding-inline: 1rem; }
.category-filter button.is-active { background: var(--p3-blue); clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); }
.archive-card__index { background: var(--p3-blue); clip-path: polygon(0 0,100% 0,calc(100% - 8px) 100%,0 100%); padding-right: 4px; }
.archive-card__category { background: #043da9; }
.page-works .archive-card .archive-card__media { border: 0; border-bottom: 3px solid transparent; box-shadow: none; filter: none; }
.archive-card:hover .archive-card__media, .archive-card:focus-within .archive-card__media { box-shadow: none; border-bottom-color: var(--p3-blue); }
.resume-section__heading > span { color: var(--p3-blue); }
.resume-section__heading em { font-family: var(--p3-display); font-size: 1rem; }
.site-footer { background: #031d4b; }
@media (max-width: 820px) {
    .archive-hero::before { background: linear-gradient(118deg,transparent 82%,#83e9fb 82.1%,#83e9fb 84%,#0355d9 84.1%); }
    .archive-hero__side, .archive-hero__side strong, .archive-hero__side small { color: var(--ink); }
    .archive-hero__side { left: var(--page-pad); right: auto; bottom: 1.5rem; padding: 0; }
    .archive-hero__meta span:last-child { color: #315c89; }
}
@media (prefers-reduced-motion: reduce) { .desktop-nav a, .desktop-nav a::before { transition: none; } }
.header-contact:focus-visible, .category-filter button.is-active:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
@media print { .site-mark__blade { fill: currentColor; } }
@media (prefers-reduced-motion: reduce) { .site-mark__blade { transition: none; } }

/* v30 image loading: a quiet cyan sweep until the picture arrives, then a short develop-in. */
img.is-img-pending {
    background-color: rgb(8 72 170 / .14);
    background-image: linear-gradient(105deg, transparent 38%, rgb(103 237 255 / .24) 50%, transparent 62%);
    background-size: 260% 100%;
    background-repeat: no-repeat;
    animation: img-pending 1.4s cubic-bezier(.45,0,.25,1) infinite;
}
img.is-img-arrived { animation: img-arrive 560ms cubic-bezier(.16,1,.3,1); }
@keyframes img-pending { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes img-arrive { from { opacity: 0; filter: brightness(1.45) saturate(.5); } }
@media (prefers-reduced-motion: reduce) {
    img.is-img-pending, img.is-img-arrived { animation: none; }
}

/* v30 inner-page motion: works hero cut-in, sliding filter highlight, project hero entrance. */
.category-filter.has-indicator { position: relative; isolation: isolate; }
.category-filter__indicator {
    position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none;
    background: var(--p3-blue); clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%);
    transition: transform 460ms cubic-bezier(.16,1,.3,1), width 460ms cubic-bezier(.16,1,.3,1), height 460ms cubic-bezier(.16,1,.3,1);
}
.category-filter__indicator.is-instant { transition: none; }
.category-filter.has-indicator button.is-active { background: transparent; }
/* The chip being left darkens at once; the chip being reached waits for the highlight. */
.category-filter.has-indicator button, .category-filter.has-indicator button span { transition: color 160ms; }
.category-filter.has-indicator button.is-active, .category-filter.has-indicator button.is-active span { transition: color 180ms 140ms; }
.archive-result-meta strong, #archive-total { display: inline-block; font-variant-numeric: tabular-nums; }
.archive-card__media::after { background: linear-gradient(115deg, transparent 42%, rgb(103 237 255 / .34) 49%, rgb(255 255 255 / .12) 54%, transparent 61%); }
/* Light edge of a diagonal wipe (shared edgeWipe in js/shared.js): a cyan band and a white hairline. */
.edge-wipe { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.edge-wipe--cyan { background: var(--p3-cyan); }
.edge-wipe--white { background: #fff; }
@media (prefers-reduced-motion: no-preference) {
    .page-works .archive-hero::before { animation: archive-panel-in 780ms cubic-bezier(.16,1,.3,1) both; }
    .page-works .archive-hero h1.hero-enter { animation: archive-title-in 660ms 90ms cubic-bezier(.16,1,.3,1) both; }
    .page-works .archive-hero__side.hero-enter { animation: archive-side-in 520ms 280ms cubic-bezier(.16,1,.3,1) both; }
}
@keyframes archive-panel-in { from { transform: translateX(32%); } }
@keyframes archive-title-in {
    from { opacity: 1; clip-path: inset(0 100% -20% 0); transform: translateX(-32px); }
    to { opacity: 1; clip-path: inset(0 0 -20% 0); transform: none; }
}
@keyframes archive-side-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .category-filter__indicator { transition: none; }
    .category-filter.has-indicator button, .category-filter.has-indicator button span { transition: none; }
}
