/* Hallmark · macrostructure: Portfolio Grid · tone: editorial · anchor hue: 13
 * theme: Atelier · nav: N3 adapted sidebar · footer: Ft2 · enrichment: supplied portrait
 * audience: course evaluator and collaborators · purpose: read resume and projects
 * pre-emit critique: P4 H4 E4 S5 R4 V4 */
@import url("tokens.css");
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 6rem; }
body { margin: 0; overflow-x: clip; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .3em; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
a, button, summary { touch-action: manipulation; }
button, nav a, .text-link, .contact-links a, footer a, .topline a { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 5px; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure, dl { margin: 0; }
h1, h2, h3, h4 { font-style: normal; overflow-wrap: anywhere; min-width: 0; }
h1, h2, .hero-statement, .school h3, .contact-section h2 { font-family: var(--font-display); }
.skip-link { position: fixed; top: -6rem; left: 1rem; padding: 1rem; background: var(--color-ink); color: var(--color-paper); z-index: var(--z-float); }
.skip-link:focus { top: 1rem; }
.sidebar { padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--color-rule); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); background: var(--color-paper); }
.brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; line-height: 1.4; font-weight: 700; }
.brand-mark { font-family: var(--font-outlier); color: var(--color-accent); font-size: 3rem; font-weight: 400; line-height: 1; }
.brand small { display: block; font-weight: 400; font-size: .625rem; letter-spacing: .1em; margin-top: .25rem; color: var(--color-muted); }
.menu-toggle { border: 1px solid var(--color-rule); background: transparent; min-height: 44px; padding: .5rem .75rem; }
.sidebar nav { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem var(--space-md); }
.sidebar nav a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; text-decoration: none; color: var(--color-muted); min-height: 44px; border-bottom: 1px solid transparent; }
.sidebar nav a[aria-current] { color: var(--color-accent); font-weight: 700; border-bottom-color: var(--color-accent); }
.sidebar nav a span:last-child { opacity: 0; }
.sidebar nav a[aria-current] span:last-child { opacity: 1; }
.sidebar-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.sidebar-bottom > p, .sidebar-note { display: none; }
.theme-toggle { display: flex; align-items: center; gap: var(--space-xs); border: 0; background: transparent; padding: .5rem 0; min-height: 44px; font-size: var(--text-sm); color: var(--color-muted); }
.theme-toggle > span:first-child { font-size: 1.25rem; }
main { max-width: 1280px; margin-inline: auto; padding-inline: var(--space-lg); }
.topline { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule); font-size: .6875rem; color: var(--color-muted); letter-spacing: .035em; }
.topline a { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--text-sm); text-decoration: none; min-height: 44px; }
.hero { padding-top: var(--space-xl); display: grid; gap: var(--space-xl); }
.intro-line { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.small-square { width: 6px; height: 6px; flex-shrink: 0; background: var(--color-accent); }
h1 { font-size: var(--text-display); line-height: 1.16; font-weight: 400; letter-spacing: .025em; margin-top: var(--space-lg); }
.latin-name { display: block; font-family: var(--font-outlier); font-size: 1.1em; letter-spacing: -.055em; line-height: 1.05; margin-top: .5rem; }
.period { color: var(--color-accent); }
.hero-statement { font-size: 1.5rem; line-height: 1.55; margin-top: var(--space-lg); }
.hero-description { font-size: .9375rem; color: var(--color-muted); max-width: 40em; margin-top: var(--space-md); line-height: 1.9; }
.text-link { display: inline-flex; align-items: center; gap: 2rem; text-decoration: none; min-height: 44px; border-bottom: 1px solid var(--color-accent); color: var(--color-accent); margin-top: var(--space-lg); font-size: .875rem; }
.portrait-panel { padding: var(--space-lg); background: var(--color-panel); color: var(--color-ink); width: 100%; max-width: 380px; justify-self: center; }
.portrait-top, .portrait-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .6875rem; }
.portrait-top > span:last-child { font-size: 1.5rem; color: var(--color-accent); }
.portrait-stage { position: relative; display: grid; place-items: center; padding-block: var(--space-xl); isolation: isolate; }
.integral { position: absolute; inset: 0; color: var(--color-accent); opacity: .13; font-size: 18rem; font-family: var(--font-outlier); line-height: 1; text-align: right; z-index: -1; }
.portrait-stage img { display: block; width: 168px; height: auto; max-width: 100%; }
.portrait-panel figcaption { display: flex; flex-direction: column; gap: .25rem; margin-bottom: var(--space-lg); }
.portrait-panel figcaption strong { font-size: 1rem; font-weight: 400; }
.portrait-panel figcaption span { font-size: .75rem; color: var(--color-muted); }
.portrait-bottom { border-top: 1px solid var(--color-rule); padding-top: var(--space-sm); font-size: .625rem; letter-spacing: .08em; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--color-rule); padding-block: var(--space-lg); gap: var(--space-lg); }
.facts dt { font-size: .75rem; color: var(--color-muted); }
.facts dd { margin: .25rem 0 0; font-family: var(--font-outlier); font-size: 2.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.facts dd span { font-family: var(--font-body); font-size: .8125rem; color: var(--color-muted); }
.facts .fact-note dd { font-family: var(--font-body); font-size: .9375rem; line-height: 1.6; margin-top: .5rem; }
section:not(.hero) { padding-top: var(--space-2xl); }
.section-heading { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.section-heading h2 { font-size: var(--text-heading); line-height: 1.4; font-weight: 400; letter-spacing: -.025em; }
.section-heading p { color: var(--color-muted); font-size: .875rem; margin-top: var(--space-xs); }
.section-aside { font-family: var(--font-outlier); color: var(--color-muted); font-size: .875rem; }
.project-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button { background: transparent; padding: .5rem .75rem; border: 1px solid transparent; font-size: .8125rem; min-height: 44px; color: var(--color-muted); border-radius: var(--radius-sm); }
.filters button[aria-pressed="true"] { border-color: var(--color-accent); color: var(--color-accent); }
#filter-status { font-size: .75rem; color: var(--color-muted); }
.project-grid { display: grid; gap: var(--space-xl); }
.project-card { min-width: 0; border-bottom: 1px solid var(--color-rule); }
.project-visual { height: 250px; position: relative; padding: var(--space-lg); display: flex; flex-direction: column; justify-content: space-between; overflow: clip; }
.visual-caption { font-size: .6875rem; letter-spacing: .04em; }
.plex-visual { background: var(--color-visual); color: var(--color-visual-ink); }
.plex-word { font-family: var(--font-outlier); font-size: 4.5rem; line-height: 1; letter-spacing: -.06em; }
.plex-word > span { display: block; font-family: var(--font-body); font-size: .8125rem; letter-spacing: .15em; margin-top: .75rem; }
.flow { display: flex; align-items: center; justify-content: space-between; gap: .25rem; font-size: .625rem; }
.flow span { border-bottom: 1px solid currentColor; padding-bottom: .5rem; }
.flow i { font-style: normal; }
.link-visual { background: var(--color-orbit); color: var(--color-orbit-ink); }
.knowledge-orbit { width: 190px; height: 166px; border: 1px solid currentColor; border-radius: 50%; align-self: center; position: relative; margin-top: 1.5rem; }
.orbit-core { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; font-family: var(--font-outlier); font-size: 2.5rem; letter-spacing: -.06em; }
.orbit-core > span { font-family: var(--font-body); font-size: .6875rem; letter-spacing: .1em; }
.orbit-node { position: absolute; background: var(--color-orbit); color: var(--color-orbit-ink); font-size: .625rem; padding: .25rem .5rem; white-space: nowrap; }
.node-top { top: -1rem; left: 50%; transform: translateX(-50%); }
.node-left { bottom: 1rem; left: -1.5rem; }
.node-right { bottom: 1rem; right: -1.5rem; }
.care-visual { background: var(--color-care); color: var(--color-care-ink); }
.care-mark { align-self: center; position: relative; display: grid; place-items: center; font-family: var(--font-display); font-size: 4.5rem; width: 130px; height: 130px; }
.care-ring { position: absolute; width: 150px; height: 125px; border: 1px solid currentColor; border-radius: 50%; transform: rotate(-30deg); }
.care-words { display: flex; justify-content: center; gap: 2.5rem; font-size: .75rem; }
.project-screenshot { background: var(--color-screenshot); color: var(--color-accent-ink); }
.project-logo { background: var(--color-logo-paper); color: var(--color-care-ink); }
.project-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: var(--space-sm); object-fit: contain; }
.project-logo .project-image { padding: var(--space-lg); }
.project-info { padding-block: var(--space-lg); }
.project-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .6875rem; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.project-info h3 { font-size: 1.125rem; font-weight: 700; margin-block: var(--space-sm) var(--space-xs); }
.project-info > p { font-size: .875rem; color: var(--color-muted); line-height: 1.85; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: var(--space-md); font-size: .6875rem; color: var(--color-muted); }
.tags span::before { content: "/ "; opacity: .65; }
details { margin-top: var(--space-lg); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: .8125rem; cursor: pointer; color: var(--color-accent); }
summary::-webkit-details-marker { display: none; }
summary > span { font-size: 1.25rem; transition: transform var(--dur-short) var(--ease-out); }
details[open] summary > span { transform: rotate(45deg); }
.detail-body { padding-block: var(--space-md); font-size: .875rem; }
.detail-body h4 { font-size: .8125rem; margin-block: 1rem .5rem; }
.detail-body p { color: var(--color-muted); }
.more-work { padding-block: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.more-work p { font-size: .875rem; color: var(--color-muted); }
.more-work > div { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.more-work a { font-size: .8125rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.education-grid { display: grid; gap: var(--space-xl); }
.school { padding: var(--space-lg); background: var(--color-paper-2); color: var(--color-ink); }
.school-date { font-size: .75rem; color: var(--color-muted); }
.school h3 { font-size: 2rem; font-weight: 400; margin-top: var(--space-lg); }
.degree { margin-top: .25rem; font-size: .9375rem; }
.school > p:not(.degree) { font-size: .8125rem; color: var(--color-muted); margin-top: var(--space-md); }
.course-list { margin-top: var(--space-lg); }
.course-list > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--color-rule); padding-block: .65rem; font-size: .8125rem; }
.course-list dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--color-accent); }
.language { line-height: 1.9; }
.honors h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.honors ul { list-style: none; padding: 0; margin: var(--space-md) 0 0; }
.honors li { display: flex; flex-direction: column; gap: .5rem; border-bottom: 1px solid var(--color-rule); padding-block: var(--space-md); }
.honors li span { font-size: .75rem; color: var(--color-accent); }
.honors li strong { font-size: .9375rem; font-weight: 400; }
.skill-list { border-top: 1px solid var(--color-rule); }
.skill-list article { display: grid; gap: var(--space-sm); padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule); }
.skill-list h3 { font-size: 1rem; font-weight: 400; }
.skill-list p { font-size: .875rem; }
.skill-list div > span { color: var(--color-muted); font-size: .8125rem; }
.skill-mark { display: none; color: var(--color-accent); }
.contact-section { margin-top: var(--space-2xl); border-top: 1px solid var(--color-rule); padding-bottom: var(--space-2xl); }
.contact-kicker { color: var(--color-accent); font-size: .8125rem; }
.contact-section h2 { font-size: clamp(1.875rem, 3.5vw, 3.5rem); font-weight: 400; line-height: 1.4; margin-top: var(--space-md); }
.contact-section h2 > span { display: inline-block; margin-left: var(--space-md); color: var(--color-accent); }
.contact-section h2 + p { color: var(--color-muted); font-size: .875rem; margin-top: var(--space-md); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-lg); }
.contact-actions a { font-family: var(--font-outlier); font-size: clamp(1.2rem, 2.3vw, 1.8rem); text-decoration: none; border-bottom: 1px solid var(--color-rule); min-height: 44px; display: inline-flex; align-items: center; }
.contact-actions button { padding: .5rem 1rem; min-height: 44px; border: 1px solid var(--color-rule); background: transparent; font-size: .75rem; border-radius: var(--radius-sm); }
#copy-status { min-height: 1.75rem; margin-top: .5rem; color: var(--color-accent); font-size: .75rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: .5rem var(--space-lg); }
.contact-links a, .contact-links button { border: 0; background: transparent; padding: 0; font-size: .8125rem; min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; }
footer { padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: space-between; align-items: center; font-size: .6875rem; color: var(--color-muted); }
footer a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
#back-to-top { position: fixed; bottom: var(--space-lg); right: var(--space-lg); width: 44px; height: 44px; border: 1px solid var(--color-rule); border-radius: 50%; background: var(--color-paper); color: var(--color-accent); z-index: var(--z-float); }
@media (hover: hover) {
  .text-link:hover, .topline a:hover, .more-work a:hover, .contact-links a:hover, .contact-links button:hover, footer a:hover { color: var(--color-accent); text-decoration: underline; }
  .filters button:hover, .contact-actions button:hover, .menu-toggle:hover, #back-to-top:hover { background: var(--color-paper-2); color: var(--color-accent); }
  summary:hover, .theme-toggle:hover, .sidebar nav a:hover { color: var(--color-accent); }
}
button:active { transform: translateY(1px); }
@media (min-width: 40rem) {
  main { padding-inline: var(--space-xl); }
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); align-items: center; gap: var(--space-xl); padding-top: var(--space-xl); }
  .portrait-panel { padding: var(--space-lg); }
  .portrait-stage img { width: 156px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); padding-block: var(--space-xl); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); align-items: start; }
  .project-care { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-lg); }
  .project-care .project-visual { height: 100%; min-height: 300px; }
  .project-care .project-info { padding-top: var(--space-sm); }
  .education-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-xl); }
  .skill-list article { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) 1rem; align-items: center; gap: var(--space-md); }
  .skill-mark { display: block; }
  section:not(.hero) { padding-top: var(--space-3xl); }
}
@media (min-width: 64rem) {
  html { scroll-padding-top: 3rem; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 220px; padding: var(--space-xl) var(--space-lg); flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; border-bottom: 0; border-right: 1px solid var(--color-rule); z-index: var(--z-sticky); }
  .brand { gap: var(--space-md); }
  .brand small { font-size: .6rem; }
  .sidebar nav { display: flex; flex-direction: column; margin-top: var(--space-2xl); gap: var(--space-sm); }
  .sidebar nav a { font-size: .875rem; }
  .sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .sidebar-bottom > p { display: block; font-family: var(--font-display); font-size: .9375rem; color: var(--color-muted); line-height: 1.9; }
  .sidebar-note { display: block; font-size: .625rem; color: var(--color-muted); margin-top: var(--space-sm); }
  main { margin-left: 220px; padding-inline: var(--space-xl); }
  .topline { padding-block: var(--space-lg); }
  .hero { padding-top: var(--space-2xl); gap: var(--space-xl); }
  .hero-description { max-width: 34em; }
  .hero-statement br { display: none; }
  .section-heading { flex-direction: row; justify-content: space-between; align-items: end; gap: var(--space-lg); }
  .portrait-panel { max-width: 310px; }
  .portrait-stage { padding-block: var(--space-xl); }
  .portrait-stage img { width: 170px; }
  .project-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .project-visual { height: 280px; }
  .more-work { flex-direction: row; justify-content: space-between; align-items: center; }
  .education-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-2xl); }
}
@media (min-width: 90rem) {
  .sidebar { width: 248px; padding-inline: var(--space-xl); }
  main { margin-left: 248px; padding-inline: var(--space-2xl); }
  .hero { gap: var(--space-2xl); grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .portrait-panel { max-width: 340px; padding: var(--space-lg) var(--space-xl); }
  .portrait-stage { padding-block: 2rem; }
  .portrait-stage img { width: 180px; }
}
@media (min-width: 100rem) { main { margin-right: auto; margin-left: max(248px, calc((100% - 1032px) / 2)); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root, :root[data-theme="dark"] { --color-paper: oklch(99% .005 75); --color-paper-2: oklch(97% .008 75); --color-ink: oklch(20% .01 28); --color-muted: oklch(40% .01 28); --color-accent: oklch(35% .07 13); --color-rule: oklch(80% .01 55); }
  .sidebar, .topline, .project-toolbar, #back-to-top, .contact-actions button, .contact-links, .more-work, footer a { display: none !important; }
  main { margin: 0; padding: 0; max-width: none; }
  .hero { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); padding-top: 0; }
  h1 { font-size: 2.5rem; }
  .hero-statement { font-size: 1.25rem; }
  .portrait-panel { background: var(--color-paper-2); color: var(--color-ink); padding: 1rem; }
  .portrait-stage { padding-block: .5rem; }
  .portrait-stage img { width: 100px; }
  .portrait-bottom, .portrait-top, .integral { display: none; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .project-visual { display: none; }
  .project-grid, .project-care { display: block; }
  .project-card, .education-grid, .skill-list article { break-inside: avoid; }
  section:not(.hero) { padding-top: 2rem; }
  .contact-section { margin-top: 2rem; padding-bottom: 1rem; }
  @page { size: A4; margin: 15mm; }
}

/* Screen adaptations: compact touch navigation, proportional images, readable copy. */
@media screen {
  body { -webkit-text-size-adjust: 100%; }
  main { min-width: 0; }
  .project-info > p, .hero-description { font-size: 1rem; }
  .project-meta, .tags { font-size: .75rem; }
  .project-visual { height: auto; aspect-ratio: 16 / 10; }
  .project-image { padding: var(--space-xs); }
  .project-care .project-visual { aspect-ratio: auto; }
  .skill-list p { overflow-wrap: anywhere; }
  #back-to-top { bottom: max(var(--space-lg), env(safe-area-inset-bottom)); right: max(var(--space-md), env(safe-area-inset-right)); }
}
@media screen and (max-width: 63.999rem) {
  html { scroll-padding-top: calc(6rem + env(safe-area-inset-top)); }
  .sidebar { position: sticky; top: 0; z-index: var(--z-sticky); display: grid; grid-template-columns: minmax(0, 1fr) 44px auto; grid-template-areas: "brand theme menu" "nav nav nav"; gap: 0 var(--space-xs); padding: max(var(--space-sm), env(safe-area-inset-top)) max(var(--space-md), env(safe-area-inset-right)) var(--space-sm) max(var(--space-md), env(safe-area-inset-left)); }
  .brand { grid-area: brand; min-width: 0; }
  .brand-mark { font-size: 2.5rem; }
  .brand small { font-size: .5625rem; letter-spacing: .07em; }
  .sidebar-bottom { grid-area: theme; display: block; }
  .theme-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; }
  #theme-label { display: none; }
  .theme-toggle > span:first-child { font-size: 1.5rem; }
  .menu-toggle { grid-area: menu; font-size: .875rem; padding-inline: var(--space-xs); }
  .sidebar nav { grid-area: nav; margin-top: var(--space-sm); padding-bottom: var(--space-xs); max-height: calc(100dvh - 6rem); overflow-y: auto; }
  .sidebar nav a { font-size: .875rem; }
  .topline { padding-block: var(--space-xs); min-height: 64px; }
  .section-aside { font-size: .8125rem; }
}
@media screen and (max-width: 47.999rem) {
  main { padding-inline: max(var(--space-md), env(safe-area-inset-left)) max(var(--space-md), env(safe-area-inset-right)); }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: var(--space-lg); gap: var(--space-lg); }
  .intro-line { font-size: .75rem; }
  h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); margin-top: var(--space-md); }
  .hero-statement { font-size: 1.25rem; margin-top: var(--space-md); }
  .hero-statement br { display: none; }
  .hero-description { line-height: 1.8; margin-top: var(--space-sm); }
  .text-link { margin-top: var(--space-md); font-size: .875rem; }
  .portrait-panel { max-width: none; padding: var(--space-md); display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "photo note" "photo caption" "foot foot"; align-items: center; gap: var(--space-sm) var(--space-md); }
  .portrait-top { grid-area: note; font-size: .75rem; }
  .portrait-top > span:last-child, .integral { display: none; }
  .portrait-stage { grid-area: photo; padding: 0; }
  .portrait-stage img { width: 88px; }
  .portrait-panel figcaption { grid-area: caption; margin: 0; }
  .portrait-panel figcaption strong { font-size: .9375rem; }
  .portrait-panel figcaption span { font-size: .75rem; }
  .portrait-bottom { grid-area: foot; font-size: .625rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: var(--space-lg); gap: var(--space-lg); }
  .facts dd { font-size: 2.25rem; }
  section:not(.hero) { padding-top: var(--space-xl); }
  .section-heading h2 { font-size: clamp(1.5rem, 6.5vw, 1.875rem); }
  .project-toolbar { gap: var(--space-xs); }
  .filters { gap: .25rem; }
  .filters button { font-size: .875rem; padding-inline: .75rem; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .project-care { display: block; }
  .project-care .project-visual { height: clamp(220px, 64vw, 280px); min-height: 0; }
  .project-care .project-info { padding-top: var(--space-lg); }
  .project-logo .project-image { padding: var(--space-md); }
  .project-info h3 { font-size: 1.125rem; }
  .project-info > p { line-height: 1.8; }
  summary, .detail-body, .detail-body h4 { font-size: .875rem; }
  .education-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .school { padding: var(--space-lg); }
  .course-list > div, .school > p:not(.degree), .honors li span { font-size: .875rem; }
  .skill-list article { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .skill-list p { font-size: .9375rem; }
  .skill-list div > span { font-size: .875rem; }
  .skill-mark { display: none; }
  .contact-section { margin-top: var(--space-xl); padding-bottom: var(--space-xl); }
  .contact-section h2 { font-size: clamp(1.625rem, 7vw, 2.25rem); }
  .contact-section h2 > span { margin-left: var(--space-xs); }
  .contact-actions { gap: var(--space-sm); }
  .contact-actions a { font-size: clamp(1.25rem, 5.5vw, 1.5rem); }
  .contact-actions button { font-size: .875rem; }
  footer { padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom)); font-size: .75rem; gap: var(--space-xs) var(--space-lg); }
}
@media screen and (min-width: 64rem) {
  .sidebar { overflow-y: auto; }
  .project-care .project-visual { min-height: 300px; }
}
@media screen and (min-width: 64rem) and (max-height: 48rem) {
  .sidebar { padding-block: var(--space-lg); }
  .sidebar nav { margin-top: var(--space-lg); gap: .25rem; }
  .sidebar-bottom { gap: var(--space-xs); padding-top: var(--space-md); }
  .sidebar-bottom > p { display: none; }
  .sidebar-note { margin: 0; }
}
