/* Shared rhythm; small colored objects carry the personality. */
:root {
  --card-gap: 14px;
  --soft-shadow: 0 2px 3px rgb(0 0 0 / .025), 0 9px 24px rgb(0 0 0 / .025);
  --sticker-yellow: #f5d75c;
  --sticker-ink: #302a1b;
}
:root[data-theme="dark"] { --soft-shadow: 0 4px 20px rgb(0 0 0 / .12); }
html { scrollbar-gutter: stable; }
body { padding: max(32px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
main { gap: 28px; }
.grid, .hero-side, .hero-side .top-right { gap: var(--card-gap); }
.card { border-radius: 28px; box-shadow: var(--soft-shadow); padding: 30px; }
.hero-side .top-right .card { box-shadow: var(--soft-shadow); }
button, a { touch-action: manipulation; }
section, #top { scroll-margin-top: 24px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 18px; background: var(--inverse); color: var(--inverse-text); border-radius: 16px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.eyebrow { font-size: 12px; font-weight: 500; }
.icon-btn, .lang-btn, .case-close { min-width: 44px; height: 44px; }
.icon-btn, .lang-btn { border: 0; background: var(--card2); }
.hero { position: relative; padding: 30px; min-height: 520px; }
.hero-side { min-height: 520px; }
.hero h1 { font-size: clamp(40px, 4.1vw, 58px); max-width: 14ch; }
.hero .intro { line-height: 1.55; }
.hero .hint { font-size: 12px; margin-top: 14px; }
.hero .actions { margin-top: 24px; }
.btn { min-height: 48px; padding-inline: 22px; }
.portrait.mascot { width: 66px; height: 66px; flex: none; padding: 12px; border: 0; border-radius: 23px; background: var(--sticker-yellow); color: var(--sticker-ink); transform: rotate(-8deg); transition: transform 180ms var(--motion-ease); box-shadow: inset 0 -3px 0 rgb(64 47 0 / .09); }
.mascot svg { width: 100%; height: 100%; overflow: visible; }
.mascot:active { transform: rotate(5deg) scale(.94); }
.mascot .eye-wink { display: none; }
.mascot.is-winking .eye-open { display: none; }
.mascot.is-winking .eye-wink { display: block; }
.now-card { position: relative; }
.now-card h2 { margin-top: 20px; font-size: clamp(25px, 2.1vw, 31px); max-width: 23ch; }
.now-play { display: flex; align-items: center; padding: 22px 5px 26px; gap: 5px; }
.now-sticker { width: 57px; height: 57px; display: grid; place-items: center; border: 3px solid var(--card); border-radius: 19px; box-shadow: 0 3px 5px rgb(0 0 0 / .08); transition: transform 180ms var(--motion-ease); }
.now-sticker:nth-child(1) { background: #e5eafa; color: #546aac; transform: rotate(-12deg); }
.now-sticker:nth-child(2) { background: #f7d6c5; color: #984c32; transform: translateY(6px) rotate(9deg); }
.now-sticker:nth-child(3) { background: #dbece1; color: #3c7855; transform: rotate(-5deg); }
.now-sticker .glyph { width: 26px; height: 26px; }
.now-card .now-lines { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.now-card .now-lines>div { padding: 7px 10px; border: 0; background: var(--card2); border-radius: 10px; font-size: 12px; gap: 7px; }
.now-lines .mini-dot { width: 6px; height: 6px; border-radius: 50%; }
.hero-side .top-mail, .hero-side .top-cta { min-height: 150px; padding: 25px; }
.top-cta { background: #ff786c; color: #391e1a; }
.top-cta .eyebrow { color: #391e1a; }
.top-mail>span:last-child, .top-cta>span:last-child { right: 24px; top: 24px; }
.top-contact-icon { width: 31px; height: 31px; border-radius: 50%; background: rgb(0 0 0 / .035); }
.top-cta .top-contact-icon { transform: rotate(-12deg); transition: transform 180ms var(--motion-ease); }
.section-lead { min-height: 122px; padding-block: 27px; }
.section-lead h2 { font-size: clamp(28px, 3.1vw, 40px); }
.section-lead p { line-height: 1.55; }
.showcase { gap: 20px; min-height: 432px; }
.project-link { border-radius: inherit; }
.case-icon { width: 39px; height: 39px; border-radius: 13px; transform: rotate(-6deg); transition: transform 180ms var(--motion-ease); }
.case-icon .glyph { width: 21px; height: 21px; }
.case-badge { font-size: 12px; padding: 7px 11px; }
.showcase-top>span:last-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--card2); font-size: 18px; }
.showcase .work-art { height: 212px; border-radius: 20px; }
.science-art { background: #e9edf6; }
.science-art>span { transform: rotate(-3deg); }
.science-art::before { width: 220px; height: 220px; top: -114px; right: -72px; border-color: #a8b5ce; box-shadow: 0 0 0 14px #e9edf6, 0 0 0 15px #a8b5ce; }
.science-art::after { content: '+'; position: absolute; left: 25px; bottom: 18px; font-size: 40px; color: #7b8fc4; transform: rotate(15deg); }
.art-dot { color: #7b8fc4; }
.work-art.preview-art { padding: 17px 17px 0; }
.cars-art.preview-art { background: #f6eadb; }
.coffee-art.preview-art { background: #f5e4e9; }
.preview-window { transform: translateY(4px) rotate(-1.5deg); transform-origin: center bottom; transition: transform 180ms var(--motion-ease); }
.coffee .preview-window { transform: translateY(4px) rotate(1.5deg); }
.showcase h3 { font-size: 26px; }
.showcase p { line-height: 1.55; }
.domain, .mini-work .domain { font-size: 12px; }
.small-lead { position: relative; }
.small-lead h3 { font-size: 31px; max-width: 19ch; }
.small-lead p { max-width: 42ch; line-height: 1.55; }
.small-lead .github-activity { padding-top: 19px; }
.github-activity-head, .github-activity-head strong { font-size: 12px; }
.github-activity-head { flex-wrap: wrap; gap: 4px 10px; }
.github-months { font-size: 10px; height: 20px; }
.github-detail { font-size: 11px; margin-top: 10px; min-height: 16px; }
.github-scroll { padding: 3px 2px 4px; touch-action: auto; }
.mini-work { min-height: 238px; gap: 26px; }
.mini-icon { width: 54px; height: 54px; border-radius: 18px; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .04); transform: rotate(-6deg); }
.mini-work:nth-child(even) .mini-icon { transform: rotate(6deg); }
.mini-work h3 { font-size: 24px; line-height: 1.15; }
.mini-work p { max-width: 52ch; line-height: 1.55; }
.method { min-height: 340px; }
.method h3 { max-width: 21ch; }
.method-steps { gap: 8px; }
.step { min-height: 44px; font-size: 13px; padding: 10px 14px; border: 0; }
.step[aria-pressed="true"] { background: var(--sticker-yellow); color: var(--sticker-ink); transform: none; }
.method-copy { margin-top: 22px; }
.method-visual { min-height: 340px; background: var(--card); user-select: none; }
.method-visual .diagram { width: min(77%, 280px); }
.diagram-center span { background: var(--sticker-yellow); color: var(--sticker-ink); width: 99px; height: 99px; font-size: 16px; transform: rotate(-6deg); box-shadow: 0 5px 0 rgb(0 0 0 / .04); }
.orbit-rotor { border-top-color: #7c96ba; border-right-color: #7c96ba; }
.orbit-rotor::after { border-color: #7c96ba; }
.orbit-rotor::before { content: ''; position: absolute; width: 13px; height: 13px; background: #f6a182; border: 3px solid var(--card); box-shadow: 0 0 0 1px #f6a182; border-radius: 50%; left: 12%; top: 12%; }
.diagram-label { font-size: 11px; text-transform: none; }
.orbit-hint { position: absolute; bottom: 14px; inset-inline: 20px; text-align: center; color: var(--muted); font-size: 12px; pointer-events: none; }
.link-card { min-height: 208px; gap: 30px; }
.about-icon { width: 43px; height: 43px; border-radius: 14px; transform: rotate(-5deg); transition: transform 180ms var(--motion-ease); }
.about-icon .glyph { width: 22px; height: 22px; }
.link-card:nth-child(odd) .about-icon { transform: rotate(6deg); }
.link-card .topline>span:last-child { font-size: 20px; }
.link-card h3 { font-size: 24px; }
.link-card p { font-size: 14px; line-height: 1.5; }
.contact { position: relative; min-height: 390px; background: #252525; color: #fafafa; }
.contact .eyebrow, .contact p { color: #d5d5d5; opacity: 1; }
.contact h2 { font-size: clamp(37px, 4.6vw, 60px); max-width: 12ch; margin-top: 28px; position: relative; }
.contact-doodle { position: absolute; right: 34px; top: 28px; width: 100px; height: 100px; color: var(--sticker-yellow); transform: rotate(9deg); pointer-events: none; }
.contact p { max-width: 39ch; line-height: 1.55; }
.contact .btn { background: var(--sticker-yellow); color: var(--sticker-ink); }
.socials a { min-height: 51px; font-size: 15px; }
.footer { font-size: 12px; padding-top: 14px; }
.case-sheet { border-radius: 28px; }
.case-sheet-body { overscroll-behavior: contain; }
body:has(.case-dialog[open]) { overflow: hidden; }
.case-sheet-foot { gap: 16px; }
.case-sheet-art.serious { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .mascot:hover { transform: rotate(6deg) translateY(-2px); }
  .now-card:hover .now-sticker:nth-child(1) { transform: rotate(-17deg) translateY(-3px); }
  .now-card:hover .now-sticker:nth-child(2) { transform: translateY(0) rotate(2deg); }
  .now-card:hover .now-sticker:nth-child(3) { transform: rotate(8deg) translateY(-3px); }
  .top-cta:hover .top-contact-icon { transform: rotate(8deg) translate(2px,-2px); }
  .showcase:hover .case-icon, .mini-work:hover .mini-icon, .link-card:hover .about-icon { transform: rotate(0) scale(1.07); }
  .showcase:hover .preview-window { transform: translateY(-3px) rotate(0); }
  .showcase:hover .science-art>span { transform: translateY(-3px) rotate(0); }
  .icon-btn:hover, .lang-btn:hover { background: var(--accent-soft); }
}
:root[data-theme="dark"] .portrait.mascot { background: var(--sticker-yellow); color: var(--sticker-ink); }
:root[data-theme="dark"] .cars-art.preview-art { background: #383128; }
:root[data-theme="dark"] .coffee-art.preview-art { background: #392e35; }
:root[data-theme="dark"] .science-art::before { box-shadow: 0 0 0 14px #303846, 0 0 0 15px #63728c; border-color: #63728c; }
:root[data-theme="dark"] .case-badge.blue { background: #2a3355; color: #c6d2ff; }
:root[data-theme="dark"] .case-badge.orange { background: #4a3527; color: #ffca9e; }
:root[data-theme="dark"] .case-badge.pink { background: #4a2938; color: #f9b9d2; }
@media (max-width: 950px) {
  .hero, .hero-side { min-height: 0; }
  .hero { min-height: 440px; }
  .hero h1 { max-width: 17ch; }
  .hero-side .now-card { min-height: 332px; }
  .hero-side .top-right { min-height: 332px; height: 100%; }
  .now-card h2 { font-size: 26px; }
  .now-play { padding-block: 20px; }
  .contact-doodle { width: 74px; height: 74px; right: 28px; }
}
@media (max-width: 640px) {
  :root { --card-gap: 10px; }
  body { padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  main { gap: 22px; }
  .card { border-radius: 25px; padding: 25px; }
  .hero { min-height: 0; gap: 35px; }
  .hero h1 { font-size: clamp(37px, 10.6vw, 50px); }
  .hero .intro { font-size: 16px; }
  .portrait.mascot { width: 59px; height: 59px; border-radius: 20px; }
  .hero-side .now-card { min-height: 318px; }
  .hero-side .top-right { min-height: 0; }
  .hero-side .top-mail, .hero-side .top-cta { min-height: 125px; }
  .section-lead { min-height: 0; }
  .section-lead h2 { font-size: 30px; }
  .showcase { min-height: 414px; }
  .showcase .work-art { height: 195px; }
  .case-meta { gap: 7px; }
  .case-badge { font-size: 11px; padding-inline: 9px; }
  .case-icon { width: 35px; height: 35px; }
  .showcase-top>span:last-child { width: 28px; height: 28px; }
  .small-lead h3 { font-size: 29px; }
  .mini-work { min-height: 232px; }
  .mini-work .domain { font-size: 11px; }
  .link-card { min-height: 193px; }
  .contact { min-height: 390px; padding-top: 30px; }
  .contact h2 { margin-top: 50px; }
  .contact-doodle { width: 67px; height: 67px; right: 27px; top: 22px; }
  .case-sheet-body { padding: 22px; }
}
@media (hover: none) {
  .btn:hover, .project:hover, .showcase:hover, .link-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) *, html:not([data-motion="full"]) *::before, html:not([data-motion="full"]) *::after { scroll-behavior: auto; animation: none !important; transition: none !important; }
  html:not([data-motion="full"]) :is(.mascot,.now-sticker,.mini-icon,.about-icon,.case-icon,.preview-window,.showcase:hover,.btn:hover,.link-card:hover) { transform: none !important; }
}

/* Personal portrait and a calendar that fills its card. */
.portrait.profile-avatar { display: block; width: 72px; height: 72px; flex: none; padding: 0; border-radius: 24px; object-fit: cover; background: var(--card2); }
:root { --gh-one: #9be9a8; --gh-two: #40c463; --gh-three: #30a14e; --gh-four: #16863b; }
:root[data-theme="dark"] { --gh-one: #146c35; --gh-two: #21a34c; --gh-three: #39d467; --gh-four: #8bfa9e; }
.github-inner { width: 100%; min-width: 477px; }
.github-months, .github-grid { grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); }
.github-grid { grid-template-rows: repeat(7, auto); }
.github-day { width: 100%; height: auto; aspect-ratio: 1; }

.showcase-top > .expand-icon { width: 26px; height: 26px; flex: none; color: var(--muted); }
.expand-icon svg { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) {
  .showcase:hover .showcase-top > .expand-icon { transform: scale(1.08); }
}

.quote-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; text-decoration: none; transition: transform 180ms var(--motion-ease); }
.quote-identity { display: flex; align-items: center; gap: 18px; }
.quote-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #dfeafd; color: #305ca5; font-size: 64px; line-height: 1; padding-top: 16px; transform: rotate(-8deg); }
.quote-identity h3 { font-size: 28px; }
.quote-identity h3 span { font-size: 20px; color: var(--muted); }
.quote-metric { display: flex; flex-direction: column; text-align: right; }
.quote-metric strong { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.quote-metric > span { color: var(--muted); font-size: 14px; }
.quote-card:active { transform: scale(.99); }
@media (max-width: 640px) { .quote-card { flex-wrap: wrap; gap: 22px; } .quote-metric { text-align: left; } }
@media (prefers-reduced-motion: reduce) { html:not([data-motion="full"]) .quote-card { transition: none; transform: none; } }

/* Keep the process section compact while preserving its controls. */
#method .section-lead { min-height: 0; padding-block: 20px; }
#method .section-lead h2 { font-size: clamp(24px, 2.5vw, 30px); }
#method .method, #method .method-visual { min-height: 0; padding: 24px; }
#method .method h3 { font-size: 26px; max-width: none; }
#method .method-steps { margin-top: 0; padding-top: 18px; gap: 6px; }
#method .step { padding-inline: 10px; }
#method .method-copy { margin-top: 14px; min-height: 66px; }
#method .method-copy p { font-size: 14px; }
#method .method-visual { padding-block: 20px 38px; }
#method .method-visual .diagram { width: 180px; }
#method .diagram-center span { width: 70px; height: 70px; font-size: 13px; }
#method .orbit-hint { bottom: 12px; font-size: 11px; }
@media (max-width: 640px) {
  #method .section-lead { gap: 12px; }
  #method .method h3 { font-size: 24px; }
  #method .method-visual .diagram { width: 142px; }
  #method .diagram-center span { width: 58px; height: 58px; font-size: 11px; }
  #method .diagram-label { font-size: 10px; }
}

/* A compact collection, inspired by the More bots card on yuri.ly. */
.more-projects {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  border: 0;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms var(--motion-ease);
}
.more-projects-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 24px; font-weight: 600; text-wrap: balance; }
.more-projects .expand-icon { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--card2); color: var(--muted); }
.more-projects-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.more-projects-hint { font-size: 12px; color: var(--muted); text-align: right; text-wrap: pretty; }
.project-stack { display: flex; align-items: center; isolation: isolate; padding: 4px 0; }
.project-stack .mini-icon { flex: none; width: 43px; height: 43px; border: 3px solid var(--card); border-radius: 15px; box-shadow: 0 2px 4px rgb(0 0 0 / .08); transition: transform 180ms var(--motion-ease); }
.project-stack .mini-icon + .mini-icon { margin-left: -12px; }
.project-stack .mini-icon:nth-child(1) { transform: rotate(-12deg); }
.project-stack .mini-icon:nth-child(2) { transform: translateY(3px) rotate(8deg); }
.project-stack .mini-icon:nth-child(3) { transform: rotate(-7deg); }
.project-stack .mini-icon:nth-child(4) { transform: translateY(2px) rotate(11deg); }
.project-stack .glyph { width: 21px; height: 21px; }
.project-stack-count { margin-left: 9px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.more-projects:active { transform: scale(.985); }
.more-projects:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; transition: none; }
body:has(#projects-dialog[open]) { overflow: hidden; }
.projects-dialog { width: min(620px, calc(100vw - 32px)); }
.projects-dialog .case-sheet-top { flex: none; padding: 22px 26px 8px; }
.projects-dialog .case-sheet-body { padding: 12px 26px max(26px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.projects-dialog h2 { text-wrap: balance; }
.projects-dialog #projects-dialog-description { margin: 12px 0 24px; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.projects-dialog[open] .case-sheet { animation-duration: 180ms; }
.projects-dialog[open]::backdrop { animation-duration: 180ms; }
.projects-dialog.is-instant[open] .case-sheet, .projects-dialog.is-instant[open]::backdrop { animation: none; }
.project-directory { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.project-directory li { border-bottom: 1px solid var(--line); }
.project-directory a { display: flex; align-items: center; gap: 15px; padding: 17px 4px; border-radius: 12px; text-decoration: none; }
.project-directory a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.project-directory .mini-icon { flex: none; width: 46px; height: 46px; border-radius: 15px; transform: none; }
.project-directory .glyph { width: 23px; height: 23px; }
.project-directory-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.project-directory-copy strong { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.project-directory-copy > span { color: var(--muted); font-size: 13px; line-height: 1.5; text-wrap: pretty; }
.project-directory-arrow { margin-left: auto; color: var(--muted); flex: none; }
.projects-github { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-size: 13px; font-weight: 500; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .more-projects:hover .project-stack .mini-icon:nth-child(1) { transform: translate(-5px, -3px) rotate(-16deg); }
  .more-projects:hover .project-stack .mini-icon:nth-child(2) { transform: translate(-2px, -5px) rotate(-4deg); }
  .more-projects:hover .project-stack .mini-icon:nth-child(3) { transform: translate(2px, -5px) rotate(4deg); }
  .more-projects:hover .project-stack .mini-icon:nth-child(4) { transform: translate(5px, -3px) rotate(16deg); }
  .project-directory a:hover { background: var(--card2); }
}
@media (max-width: 640px) {
  .more-projects { min-height: 157px; }
  .more-projects-heading { font-size: 22px; }
  .projects-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .projects-dialog .case-sheet { max-height: inherit; }
  .projects-dialog .case-sheet-top { padding: 18px 20px 8px; }
  .projects-dialog .case-sheet-body { padding: 10px 20px max(20px, env(safe-area-inset-bottom)); }
  .project-directory a { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) :is(.more-projects, .project-stack .mini-icon) { transition: none !important; transform: none !important; }
  html:not([data-motion="full"]) .projects-dialog[open] .case-sheet, html:not([data-motion="full"]) .projects-dialog[open]::backdrop { animation: none !important; }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
html[data-motion="off"] :is(.more-projects, .project-stack .mini-icon) { transform: none !important; }
@media (max-width: 380px) {
  .more-projects-bottom { flex-wrap: wrap; gap: 12px; }
  .more-projects-hint { width: 100%; text-align: left; }
  .more-projects-hint br { display: none; }
}

.social-link-label { display: inline-flex; align-items: center; gap: 12px; }
.social-link-label .glyph { width: 20px; height: 20px; flex: none; }

/* Reference rhythm: compact cards, generous space between groups. */
:root { --card-gap: 14px; }
main { gap: 40px; }
.card { padding: 24px; }
.hero { padding: 24px; min-height: 440px; }
.hero-side { min-height: 440px; }
.section-lead { min-height: 0; padding-block: 20px; gap: 20px; }
.section-lead h2 { font-size: clamp(25px, 2.6vw, 32px); }
.section-lead p { font-size: 13px; }
.showcase { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 20px; min-height: 264px; }
.showcase-top { grid-column: 1 / -1; gap: 16px; }
.showcase .case-meta { gap: 12px; }
.showcase .case-heading { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
:root .showcase .case-heading .case-badge { padding: 0; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.4; }
.showcase-bottom { grid-column: 1; grid-row: 2; margin-top: 0; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 0; }
.showcase h3 { font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.showcase p { font-size: 15px; line-height: 1.5; margin: 0; }
.showcase-bottom .domain { margin-top: auto; }
.showcase .domain { font-size: 11px; overflow-wrap: anywhere; }
.showcase .work-art { grid-column: 2; grid-row: 2; align-self: stretch; height: auto; min-height: 164px; margin: 0; border-radius: 16px; }
.showcase .preview-art { align-self: center; min-height: 0; padding: 10px; background: var(--card2); overflow: visible; }
.showcase .preview-window { position: relative; height: auto; min-height: 0; width: 100%; transform: none; border-radius: 8px; }
.showcase .preview-window img { width: 100%; height: auto; object-fit: contain; object-position: center; }
.showcase .preview-toolbar { height: 20px; padding-inline: 7px; gap: 6px; font-size: 8px; }
.showcase .preview-dots { flex: none; font-size: 6px; }
.showcase .preview-toolbar > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-sheet-art:is(.discover, .coffee) { height: auto; aspect-ratio: 16 / 10; max-height: 40dvh; margin-inline: 24px; border-radius: 14px; background-size: contain; background-position: center; }
.showcase.coffee .preview-toolbar { display: none; }
.case-sheet-art.coffee { aspect-ratio: 2048 / 1206; }
.showcase .science-art > span { font-size: 34px; }
.showcase .science-art::after { font-size: 28px; left: 16px; bottom: 12px; }
.small-lead { min-height: 0; }
.small-lead h3 { font-size: 26px; margin-top: 12px; }
.small-lead > p { font-size: 13px; margin-bottom: 18px; }
.small-lead .github-activity { margin-top: 0; padding-top: 14px; margin-bottom: 14px; }
.mini-work { min-height: 186px; gap: 18px; }
.mini-icon { width: 42px; height: 42px; border-radius: 14px; }
.mini-work h3 { font-size: 21px; }
.mini-work p { font-size: 13px; margin-top: 8px; }
.link-card { min-height: 158px; }
.contact, .socials { min-height: 280px; }
.contact h2 { font-size: clamp(32px, 3.6vw, 46px); margin-top: 20px; }
@media (hover: hover) and (pointer: fine) {
  .showcase:hover .preview-window { transform: translateY(-3px); }
}
@media (max-width: 640px) {
  main { gap: 28px; }
  .hero, .hero-side { min-height: 0; }
  .card { padding: 24px; }
  .showcase { min-height: 252px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px 12px; }
  .showcase h3 { font-size: 18px; }
  .showcase p { font-size: 13px; }
  .showcase .case-meta { gap: 10px; }
  :root .showcase .case-heading .case-badge { font-size: 11px; }
  .showcase .preview-art { padding: 7px; border-radius: 12px; }
  .showcase .science-art > span { font-size: 25px; }
  .section-lead { gap: 12px; }
}
@media (max-width: 360px) {
  .showcase { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); padding: 20px; }
  .showcase-bottom { grid-column: 1; grid-row: 2; }
  .showcase .work-art { grid-column: 2; grid-row: 2; min-height: 160px; margin: 0; }
  .showcase .preview-art { min-height: 0; padding: 5px; }
  .showcase .science-art > span { font-size: 20px; }
}

/* Explicit icon boxes prevent shrinking in narrow card headers. */
.expand-icon, .showcase-top > .expand-icon, .more-projects .expand-icon {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  min-width: 26px; min-height: 26px; flex: 0 0 26px;
  border-radius: 50%; background: var(--card2); color: var(--muted); line-height: 1;
}
.expand-icon > svg { display: block; width: 12px; height: 12px; min-width: 12px; min-height: 12px; flex: none; }
.link-arrow, .project-directory-arrow { display: inline-grid; place-items: center; width: 24px; height: 24px; min-width: 24px; flex: 0 0 24px; font-size: 20px; line-height: 1; }
.showcase-top .case-meta { min-width: 0; }
.case-badge { min-width: 0; }
.quote-card { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; min-height: 192px; gap: 24px; }
.quote-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quote-identity { gap: 12px; min-width: 0; }
.quote-mark { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border-radius: 14px; background: #e1f2fc; color: #1686b5; transform: rotate(-6deg); }
.quote-mark .glyph { display: block; width: 24px; height: 24px; }
.quote-identity h3 { font-size: 22px; line-height: 1.2; margin-top: 3px; }
.quote-heading > .link-arrow { width: 30px; height: 30px; flex-basis: 30px; border-radius: 50%; background: var(--card2); color: var(--muted); font-size: 18px; }
.quote-metric { text-align: left; gap: 4px; }
.quote-metric strong { font-size: 44px; font-weight: 650; line-height: 1; }
:root[data-theme="dark"] .quote-mark { background: #173c50; color: #70cefa; }
