/* A working notebook: photo mounts, album tabs, connecting lines and paper folds. */
:root {
  --print-shadow: 0 12px 30px #332e251a;
  --lift-shadow: 0 18px 36px #27301e1c;
}
html { scrollbar-color: #b2ad98 var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { text-wrap: balance; }
.site-header { background: var(--ivory); }
#main-nav a { position: relative; padding-inline: 14px; border-radius: 99px; transition: color .18s, background .18s; }
#main-nav a.active { background: var(--yellow); text-decoration: none; }
#main-nav a:not(.active):is(:hover,:focus-visible) { background: var(--blue); color: var(--ivory); text-decoration: none; }
.menu-toggle { color: var(--blue); background: var(--sky); border-color: #b8c2eb; }
.menu-toggle span { background: currentColor; }
.menu-toggle:is(:hover,:focus-visible,[aria-expanded="true"]) { background: var(--blue); color: var(--ivory); }
.brand-mark { transition: transform .35s var(--ease); }
.wordmark:hover .brand-mark { transform: rotate(-9deg); }
.header-credit { max-width: 155px; text-align: center; line-height: 1.4; }
.header-credit span { display: block; white-space: nowrap; }
.wordmark small { font-size: 12px; }
.text-link { gap: 16px; padding: 8px 9px 8px 21px; min-height: 52px; }
.text-link > b { width: 32px; height: 32px; display: grid; place-items: center; background: var(--sky); border-radius: 50%; color: var(--blue); transition: transform .2s var(--ease), background .2s; }
.text-link:hover > b { transform: rotate(-35deg); background: var(--yellow); }
.section-jump { border-color: transparent; background: var(--blue); color: var(--ivory); font-size: 16px; }
.section-jump > b { background: var(--yellow); }
.section-jump:is(:hover,:focus-visible) { background: var(--yellow); color: var(--blue-dark); transform: translateY(-3px); box-shadow: 0 7px 16px #293da01f; }
.section-jump:is(:hover,:focus-visible) > b { transform: translateY(2px); background: var(--blue); color: var(--yellow); }
.section-jump:active { transform: translateY(1px); box-shadow: none; }

/* The cover is a composition of prints, with the secondary frame kept uncropped. */
.hero { padding-block: clamp(48px, 5.4vw, 78px) clamp(44px, 4.8vw, 70px); overflow: clip; }
/* Reserve the print's right overhang so the visible composition, not just its grid, is centered. */
.hero-grid { position: relative; left: 8px; width: min(calc((100% - 2 * var(--pad)) * .95), 1220px); padding-inline-end: 20px; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); gap: clamp(23px, 1.9vw, 26px); }
.hero-statement { position: relative; z-index: 2; }
.hero-title { font-size: clamp(47px, 6.4vw, 90px); font-weight: 760; line-height: 1.08; }
.hero-type-human { font-weight: 620; }
.hero-type-connect { font-weight: 800; }
.hero-intro { margin-top: 24px; font-size: clamp(18px, 1.56vw, 21px); line-height: 1.65; }
.hero-intro-line { overflow: visible; }
.hero-folio { left: clamp(8px, 1.1vw, 16px); padding: 0 0 46px 16px; margin-block: 12px 12px; transform: scale(.95); transform-origin: center; }
.hero-folio::before { content: ''; position: absolute; inset: -11px -8px 57px 35px; background: var(--yellow); border-radius: 16px; transform: rotate(4deg); z-index: -1; }
.hero-media { position: relative; aspect-ratio: 1.43; padding: 8px; background: var(--ivory); border-radius: 16px; box-shadow: var(--print-shadow); transform: rotate(1.4deg); }
.hero-media img { border-radius: 10px; object-position: 74% 50%; }
.folio-cut { width: 56%; left: -26px; bottom: 0; padding: 8px; border-radius: 12px; background: var(--ivory); transform: rotate(-6deg); box-shadow: 0 10px 24px #251c2633; }
.folio-cut::before { content: ''; position: absolute; width: 52px; height: 17px; top: -7px; left: 38%; background: #ffe5a9e6; transform: rotate(4deg); }
.folio-cut img { border-radius: 6px; }
.folio-thread { position: absolute; z-index: -2; width: 120%; height: 112%; left: -15%; top: -1%; overflow: visible; color: var(--blue); }
.folio-thread path { stroke-dasharray: 1100; stroke-dashoffset: 0; }
.folio-seal { position: absolute; display: grid; place-items: center; right: -16px; top: -28px; width: 77px; height: 77px; padding: 9px; background: var(--yellow); border: 5px solid var(--paper); border-radius: 22px; transform: rotate(12deg); }
.folio-seal img { width: 100%; height: 100%; }

/* Real film frames lead; paper tabs and one clear action make the album tangible. */
.projects { position: relative; border: 0; padding-block: clamp(48px, 4.5vw, 64px); }
.projects::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12'%3E%3Crect x='8' y='3' width='12' height='6' rx='2' fill='%23fbf7ed'/%3E%3C/svg%3E") repeat-x; }
.projects-intro { align-items: center; }
.projects-intro h2 { font-size: clamp(36px, 4.4vw, 60px); }
.projects-intro p { max-width: 39em; }
.projects-count { padding: 8px 17px; border: 0; background: var(--paper); transform: rotate(3deg); }
.project-list { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 28px; margin-top: 28px; align-items: stretch; }
.project-gallery-card { --album-paper: var(--ivory); grid-column: auto; display: flex; overflow: visible; border: 0; background: transparent; border-radius: 16px; position: relative; transition: transform .3s var(--ease); }
.card-luxiai { --album-paper: #fff8e6; }
.card-news { --album-paper: #f4f1ff; }
.card-field { --album-paper: #fff2e6; }
.card-donga { --album-paper: #f2f4e9; }
.card-luxiai, .card-donga { grid-column: auto; }
.album-tab { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 42px; width: 100%; padding-inline: 20px; color: var(--blue-dark); font-size: 13px; font-weight: 720; }
.album-tab > span:first-child { position: relative; background: var(--album-paper); padding: 10px 20px 9px; border-radius: 12px 12px 0 0; margin-left: -20px; min-width: 138px; text-align: center; }
.project-gallery-visual, .card-luxiai .project-gallery-visual, .card-donga .project-gallery-visual { height: auto; aspect-ratio: 2 / 1; grid-template-columns: minmax(0,1fr); border: 8px solid var(--album-paper); border-bottom: 0; border-radius: 0 14px 0 0; background: var(--album-paper); }
.card-luxiai .project-gallery-visual { grid-template-columns: minmax(0,1fr); gap: 0; }
.card-luxiai .project-gallery-visual .cover-frame img { object-position: 50% 15%; }
.card-field .project-gallery-visual { grid-template-columns: minmax(0,1fr); gap: 0; }
.cover-frame { border-radius: 7px; }
.card-field .cover-frame:first-child img { object-position: 42% center; }
.card-field .cover-frame:last-child img { object-position: 50% center; }
.project-list .project-gallery-copy { justify-content: start; padding: 18px 24px 16px; border-radius: 0 0 14px 14px; background: var(--album-paper); flex: 1; box-shadow: 0 10px 20px #39412e0b; }
.project-gallery-copy > strong, .card-luxiai .project-gallery-copy > strong { font-size: clamp(25px, 2.6vw, 36px); margin: 0 0 9px; line-height: 1.24; }
.project-description { font-size: 16px; line-height: 1.65; min-height: 3.3em; margin-bottom: 14px; max-width: 40em; }
.project-gallery-hover-label, .card-luxiai .project-gallery-hover-label { margin-top: auto; padding-top: 12px; }
.project-logo-slot { display: flex; align-items: center; flex: 0 1 168px; min-width: 0; width: 168px; max-width: 48%; height: 44px; background: none; border-radius: 0; padding: 0; }
.project-logo-slot img { object-position: left center; }
/* Compensate for each original logo's clear space, without stretching its artwork. */
.project-logo-slot .logo-luxiai { width: 146px; height: 54px; max-width: calc(100% + 14px); flex-shrink: 0; transform: translateX(-14px); }
.project-logo-slot .logo-news { width: 100%; height: auto; filter: none; }
.project-logo-slot .logo-field { width: 120px; max-width: 100%; height: 38px; }
.project-logo-slot .logo-donga { width: 52px; height: 52px; transform: translateX(-4px); }
.project-card-action { flex: none; gap: 10px; min-height: 44px; padding: 6px 8px 6px 15px; border-radius: 99px; background: var(--blue); color: var(--ivory); transition: background .2s, color .2s; }
.project-gallery-hover-label b { width: 30px; height: 30px; background: var(--yellow); color: var(--blue); }
.project-gallery-card:is(:hover,:focus-visible) .project-card-action { background: var(--blue-dark); }
.project-gallery-card:is(:hover,:focus-visible) .project-card-action .direction-icon { transform: translateX(2px); }
.project-card-action .direction-icon { transition: transform .2s var(--ease); }
.album-invitation { position: absolute; display: inline-flex; align-items: center; gap: 15px; padding: 15px 22px; background: var(--yellow); color: var(--blue-dark); border-radius: 99px; font-size: 16px; font-weight: 760; left: 50%; top: 50%; transform: translate(-50%,-35%) rotate(-5deg); opacity: 0; transition: opacity .2s, transform .3s var(--ease); white-space: nowrap; pointer-events: none; }
.project-gallery-card:hover { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .project-gallery-card:is(:hover,:focus-visible) { transform: translateY(-5px); }
  .project-gallery-card:is(:hover,:focus-visible) .album-invitation { opacity: 1; transform: translate(-50%,-50%) rotate(-5deg); }
  .project-gallery-card:is(:hover,:focus-visible) .project-gallery-hover-label b { background: var(--yellow); color: var(--blue); }
}
.project-gallery-card:active { transform: translateY(1px); }

/* The portrait is a mounted print, not a second gallery card. */
.about { padding-block: clamp(56px, 5.6vw, 80px); background: #f1eadf; border-top: 1px solid #ded2bf; overflow: clip; }
.about-layout { position: relative; left: clamp(12px, 1.7vw, 24px); width: min(100% - 2 * var(--pad), 1200px); grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(36px, 4.2vw, 60px); }
.about-portrait { position: relative; padding: 12px 12px 0; background: var(--ivory); box-shadow: var(--print-shadow); transform: rotate(-2deg); isolation: isolate; }
.about-portrait::before { content: ''; position: absolute; inset: -16px 17px 13px -14px; background: var(--peach); border-radius: 14px; transform: rotate(5deg); z-index: -1; }
.about-portrait::after { content: ''; position: absolute; width: 72px; height: 23px; top: -12px; left: calc(50% - 36px); background: #ffe5a9e6; transform: rotate(4deg); }
.about-portrait img { aspect-ratio: 1.34; object-position: 51% center; }
.about-portrait figcaption { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 7px 17px; color: var(--blue); }
.about-portrait figcaption strong { font-size: 22px; letter-spacing: -.025em; font-weight: 800; }
.about-portrait figcaption span { font-size: 12px; line-height: 1.4; text-align: right; font-weight: 650; }
.about h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.23; }
.about-greeting { margin-bottom: 16px; font-size: 24px; color: var(--sub); }
.about-name { position: relative; display: inline-block; }
.about-name::after { content: ''; position: absolute; inset: auto -.03em .06em; height: .22em; background: var(--yellow); z-index: -1; transform: rotate(-3deg); }
.about-copy { isolation: isolate; }
.about-body { font-size: 20px; line-height: 1.75; border-top: 0; padding-top: 0; margin-block: 24px 26px; }
.about-body p + p { margin-top: 14px; }

/* Career pages share their columns, so the long empty sidebar disappears. */
.resume { display: block; position: relative; padding-block: 56px; border-top: 1px solid var(--line); }
.resume-head { position: relative; top: auto; padding: 0 210px 36px 0; }
.resume-head h2 { max-width: 17em; font-size: clamp(36px, 4vw, 56px); }
.resume-head h2 br { display: none; }
.resume-head p { max-width: 42em; }
.resume-date { position: absolute; right: 0; bottom: 40px; margin: 0; font-size: 17px; padding: 10px 16px; border-radius: 12px; transform: rotate(3deg); }
.resume-chronicle { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 0 32px; border-top: 0; }
.chronicle-entry { grid-column: span 3; display: block; padding-block: 25px 30px; border-top: 1px solid var(--line); border-bottom: 0; }
.chronicle-entry:nth-of-type(n+5) { grid-column: span 2; }
.chronicle-entry time { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.chronicle-entry time strong { font-size: 43px; font-weight: 650; letter-spacing: -.04em; }
.chronicle-entry time span { font-size: 12px; }
.chronicle-dot { display: none; }
.chronicle-story header small { color: var(--blue); font-size: 12px; }
.chronicle-story h3 { font-size: clamp(22px, 2.25vw, 31px); margin-block: 6px 12px; }
.chronicle-story header > p { font-size: 16px; line-height: 1.7; }
.chronicle-detail { margin-top: 20px; gap: 18px; }
.chronicle-result { position: relative; border-radius: 4px 12px 12px 12px; transform: rotate(-2deg); min-width: 155px; }
.chronicle-result::after { content: ''; position: absolute; width: 15px; height: 15px; left: 0; top: 0; background: var(--paper); clip-path: polygon(0 0,100% 0,0 100%); }
.chronicle-detail li + li { margin-top: 2px; }
.chronicle-entry:nth-of-type(n+5) time { display: block; }
.chronicle-entry:nth-of-type(n+5) time strong { font-size: 34px; }
.chronicle-entry:nth-of-type(n+5) h3 { font-size: 23px; }
.chronicle-list p { grid-template-columns: minmax(140px,.75fr) minmax(0,1.25fr); gap: 16px; font-size: 15px; }
.chronicle-entry:nth-of-type(n+5) .chronicle-list p { display: block; }
.chronicle-entry:nth-of-type(n+5) .chronicle-list span { display: block; margin-top: 4px; }
.resume-accolades { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 30px; }
.accolade-section { padding: 23px 27px; border: 0; background: var(--yellow); }
.accolade-licenses { background: var(--sky); }
.accolade-section header { margin-bottom: 15px; }
.accolade-section header b { font-size: 13px; border: 1px solid currentColor; border-radius: 50%; width: 27px; height: 27px; display: grid; place-items: center; }
.accolade-row { border-color: #293da026; }
.accolade-section .accolade-row { color: #65502d; }
.accolade-licenses .accolade-row { color: #4b537e; }

/* The toolbox keeps the existing skill values and makes each discipline distinct. */
.skills { padding-block: 56px; }
.skills-heading { width: 100%; max-width: 1060px; margin-inline: auto; text-align: center; }
.skills h2 { font-size: clamp(32px, 3.9vw, 54px); line-height: 1.19; }
.tool-deck { grid-template-columns: 1fr; gap: 16px; margin-top: 0; }
.tool-group { position: relative; display: grid; grid-template-columns: 208px minmax(0,1fr); align-items: center; gap: 28px; padding: 20px 24px; background: var(--sky); border-radius: 14px; }
.tool-group:nth-child(2) { background: var(--peach); }
.tool-group:nth-child(3) { background: var(--sage); }
.tool-group h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px 0 0; min-height: 60px; border-bottom: 0; border-right: 1px solid #293da02b; font-size: 20px; }
.tool-group .skill-lines { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.tool-group:nth-child(2) .skill-lines { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tool-glyph { width: 32px; height: 32px; flex: none; color: var(--blue); }
.skill-lines > div { min-height: 73px; grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; padding-block: 12px; border-color: #293da026; }
.skill-lines > div::after { height: 2px; opacity: .7; }
.skill-icon { width: 33px; height: 33px; border-radius: 8px; background: var(--ivory); }
.skill-lines strong { font-size: 16px; }
.skill-lines small { font-size: 12px; margin-top: 5px; }
.tool-group .skill-lines small { color: #4b537e; }
.tool-group:nth-child(2) .skill-lines small { color: #72543f; }
.tool-group:nth-child(3) .skill-lines small { color: #4c5a43; }
.skill-lines b { font-size: 13px; }

/* An open correspondence card closes the notebook. */
.contact { background: var(--blue); padding-top: 32px; }
.contact-inner { gap: clamp(24px, 4.8vw, 68px); position: relative; border: 0; background: var(--ivory); padding: 38px 44px; margin-bottom: 28px; }
.contact-message { position: relative; padding-left: 0; }
.contact-emblem { width: 72px; height: 56px; display: block; color: var(--blue); margin-bottom: 14px; transform: rotate(-6deg); }
.contact h2 { font-size: clamp(29px, 3.5vw, 48px); }
.contact-links { padding-left: 32px; border-left: 1px dashed #9da5cc; gap: 0; }
.contact-links a { min-height: 70px; border: 0; border-radius: 0; padding: 14px 0; background: transparent; font-size: clamp(15px, 1.75vw, 22px); }
.contact-links a + a { border-top: 1px solid #c2c8e6; }
.contact-links a > span { text-decoration: underline; text-decoration-color: #293da066; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.contact-links a:is(:hover,:focus-visible) { background: transparent; color: var(--blue); }
.contact-links a:is(:hover,:focus-visible) > span { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.contact-links a > b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); transition: transform .22s var(--ease); }
.contact-links a:is(:hover,:focus-visible) > b { transform: translate(3px,-3px); background: var(--blue); color: var(--yellow); }
.contact-message p { color: var(--sub); }
.site-colophon { color: var(--ivory); border-color: #ffffff4d; padding-block: 13px; }
.site-colophon a { padding-inline: 15px; border: 1px solid #ffffff66; border-radius: 99px; transition: background .2s, color .2s; }
.site-colophon a:is(:hover,:focus-visible) { background: var(--ivory); color: var(--blue); text-decoration: none; }
.colophon-brand img { border-radius: 8px; background: var(--yellow); padding: 3px; width: 31px; height: 31px; }

/* Carry the same photo-mount and paper language through the project albums. */
.detail-top button { padding: 8px 14px; border-radius: 99px; background: var(--sky); transition: background .2s, color .2s, transform .2s; }
.detail-top button:is(:hover,:focus-visible) { background: var(--blue); color: var(--ivory); }
.detail-top button:hover span { text-decoration: none; }
.detail-top button:active { transform: translateY(1px); }
.detail-hero { padding-block: 40px; }
.detail-cover { padding: 10px; background: var(--ivory); box-shadow: var(--print-shadow); transform: rotate(1.2deg); }
.cover-luxiai .detail-cover { background: var(--yellow); }
.detail-frames { aspect-ratio: 1.8; }
.cover-field .detail-frames { grid-template-columns: 1.15fr 1fr; gap: 5px; }
.detail-logo { height: 43px; }
.detail-body { padding-top: 35px; }
/* Keep the introduction together and aligned with the work sections below. */
.detail-intro { grid-template-columns: minmax(0,1fr); gap: 12px; margin-bottom: 36px; }
.detail-intro p { max-width: 72ch; font-size: 18px; line-height: 1.75; }
.duty-block { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 17px 0; }
.duty-block > span { width: 28px; height: 28px; display: grid; place-items: center; background: var(--sky); border-radius: 50%; flex: none; }
.duties-grid { gap: 0 36px; }
.work-item { padding: 18px 12px; border-radius: 12px; background: var(--ivory); }
.work-item:is(:hover,:focus-visible,[aria-expanded="true"],:active) { background: var(--yellow); }
.work-action { gap: 12px; padding: 6px 8px 6px 14px; min-height: 44px; transition: background .2s, color .2s; }
.work-action .expand-icon { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--yellow); color: var(--blue); }
.work-item:is(:hover,[aria-expanded="true"]) .work-action { background: var(--blue-dark); }
.work-entry { padding-block: 5px; }
.work-entry.open .work-panel { padding-inline: 12px; }
.work-copy > small { font-size: 12px; }

@media (min-width: 761px) and (max-width: 1050px) {
  .hero-grid { gap: 24px; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); }
  .hero-title { font-size: clamp(42px, 5.95vw, 62px); }
  .hero-intro { font-size: 17px; }
  .folio-cut { left: -8px; }
  .about-layout { gap: 42px; }
  .about h2 { font-size: 3.85vw; }
  .about-body { font-size: 17px; }
  .resume-chronicle { gap: 0 30px; }
  .chronicle-entry time { flex-wrap: wrap; gap: 4px 10px; }
  .tool-deck { gap: 14px; }
  .tool-group { display: block; }
  .tool-group h3 { min-height: 0; padding: 0 0 12px; margin-bottom: 6px; border-right: 0; border-bottom: 1px solid #293da02b; }
  .tool-group .skill-lines { gap: 16px; }
  .tool-group { padding-inline: 17px; }
  .tool-group h3 { font-size: 18px; }
  .tool-glyph { width: 31px; height: 31px; }
  .skill-lines strong { font-size: 16px; }
  .contact-inner { padding-inline: 28px; grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-links { padding-left: 22px; }
  .contact-links a { grid-template-columns: 1fr auto; }
  .contact-links a small { grid-column: 1/-1; }
}
@media (max-width: 760px) {
  .hero { padding-block: 36px 45px; }
  .detail-intro { gap: 8px; margin-bottom: 32px; }
  .detail-intro p { font-size: 17px; }
  .hero-grid { left: 0; grid-template-columns: 1fr; gap: 32px; padding-inline-end: 0; }
  .hero-title { font-size: clamp(41px, 10.2vw, 64px); line-height: 1.1; }
  .hero-intro { font-size: 17px; margin-top: 19px; }
  .hero-folio { left: 0; width: min(92%, 480px); padding: 0 0 30px 12px; margin-block: 12px 0; }
  .hero-media { aspect-ratio: 1.64; padding: 6px; }
  .hero-folio::before { inset: -8px -4px 39px 24px; }
  .folio-cut { left: -9px; width: 52%; padding: 5px; bottom: 0; }
  .folio-cut::before { width: 40px; height: 13px; top: -6px; }
  .folio-seal { top: -21px; right: -14px; width: 60px; height: 60px; padding: 6px; border-width: 4px; border-radius: 17px; }
  .folio-thread { left: -11%; width: 116%; }
  .projects { padding-block: 44px 50px; }
  .projects-intro { display: block; }
  .projects-intro h2 { font-size: clamp(32px, 7.8vw, 48px); }
  .projects-intro p { font-size: 16px; max-width: 30em; }
  .projects-count { margin-top: 18px; padding: 4px 11px; font-size: 12px; transform: none; }
  .projects-count b { font-size: 20px; }
  .project-list { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 26px; margin-top: 24px; }
  .project-list .project-gallery-card { grid-column: auto; display: flex; }
  .project-list .card-luxiai { grid-column: auto; }
  .project-list .card-donga { grid-column: auto; }
  .project-gallery-visual, .card-luxiai .project-gallery-visual, .card-donga .project-gallery-visual { height: auto; aspect-ratio: 2 / 1; }

  .album-tab { font-size: 12px; padding-inline: 12px; }
  .album-tab > span:first-child { min-width: auto; padding-inline: 12px; margin-left: -12px; }
  .project-list .project-gallery-copy { padding: 17px 19px; }
  .project-gallery-copy > strong, .card-luxiai .project-gallery-copy > strong { font-size: 25px; }
  .project-description { font-size: 15px; margin-bottom: 17px; }
  .project-logo-slot { width: 152px; }
  .project-gallery-hover-label { gap: 7px; font-size: 13px; }
  .project-card-action { gap: 6px; }
  .project-gallery-hover-label b { width: 28px; height: 28px; }
  .album-invitation { display: none; }
  .about { padding-block: 56px; }
  .about-layout { left: 0; grid-template-columns: 1fr; gap: 45px; }
  .about-copy { text-align: center; }
  .about-portrait { width: min(96%, 500px); justify-self: center; padding: 9px 9px 0; }
  .about-portrait img { aspect-ratio: 1.5; }
  .about-portrait figcaption { padding: 12px 5px; }
  .about h2 { font-size: clamp(31px, 7.5vw, 43px); }
  .about-greeting { font-size: 19px; margin-bottom: 12px; }
  .about-body { font-size: 16px; margin-block: 19px 23px; text-wrap: balance; }
  .resume { padding-block: 43px 50px; }
  .resume-head { padding: 0 0 26px; }
  .resume-head h2 { font-size: clamp(32px, 7.6vw, 43px); }
  .resume-head p { font-size: 16px; }
  .resume-date { position: static; margin-top: 16px; font-size: 13px; padding: 6px 12px; transform: rotate(-2deg); }
  .resume-chronicle { grid-template-columns: 1fr 1fr; gap: 0 26px; }
  .resume-chronicle .chronicle-entry { grid-column: 1/-1; padding-block: 23px 26px; }
  .chronicle-entry time { margin-bottom: 15px; }
  .chronicle-entry time strong { font-size: 37px; }
  .chronicle-detail { margin-top: 15px; }
  .chronicle-entry:nth-of-type(n+6) { grid-column: auto; }
  .chronicle-entry:nth-of-type(5) time { display: flex; }
  .chronicle-entry:nth-of-type(n+5) .chronicle-list p { display: block; }
  .chronicle-entry:nth-of-type(n+6) h3 { font-size: 21px; }
  .resume-accolades { gap: 16px; margin-top: 0; padding-top: 23px; }
  .accolade-section { padding: 20px; }
  .skills { padding-block: 43px 50px; }
  .skills-heading { text-align: left; }
  .skills h2 { font-size: clamp(31px, 7.6vw, 43px); }
  .tool-deck { grid-template-columns: 1fr; gap: 18px; margin-top: 1px; }
  .tool-group { display: block; padding: 21px; }
  .tool-group h3 { padding: 0 0 12px; min-height: 0; border-right: 0; border-bottom: 1px solid #293da02b; }
  .tool-group .skill-lines, .tool-group:nth-child(2) .skill-lines { grid-template-columns: 1fr; gap: 0; }
  .skill-lines > div { min-height: 65px; }
  .contact { padding-top: 28px; }
  .contact-inner { grid-template-columns: 1fr; padding: 25px; gap: 22px; margin-bottom: 22px; }
  .contact-emblem { width: 61px; height: 46px; margin-bottom: 13px; }
  .contact h2 { font-size: clamp(29px, 7vw, 42px); }
  .contact-message p { font-size: 15px; }
  .contact-links { padding: 13px 0 0; border-left: 0; border-top: 1px dashed #9da5cc; max-width: none; }
  .contact-links a { min-height: 58px; font-size: 17px; grid-template-columns: 50px minmax(0,1fr) 30px; gap: 6px; }
  .contact-links a > b { width: 28px; height: 28px; }
  .detail-hero { padding-block: 28px; }
  .detail-cover { transform: rotate(.7deg); }
  .detail-frames { aspect-ratio: 2; }
  .work-item { padding-inline: 9px; }
  .work-entry.open .work-panel { padding-inline: 0; }
}
@media (max-width: 510px) {
  .hero-intro { font-size: 16px; }
  .hero-title { font-size: clamp(37px, 10.2vw, 52px); }
  .hero-intro-line:last-child { max-width: 22em; margin-inline: auto; }
  .project-list { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 26px; }
  .project-list .project-gallery-card { grid-column: 1; }
  .project-gallery-visual, .card-luxiai .project-gallery-visual, .card-donga .project-gallery-visual { aspect-ratio: 2 / 1; }
  .project-list .project-gallery-copy { padding: 17px 20px; }
  .project-logo-slot { width: 144px; }
  .project-gallery-hover-label { font-size: 14px; }
  .project-gallery-hover-label b { width: 28px; height: 28px; background: var(--yellow); }
  .project-description { min-height: auto; }
  .chronicle-list p { display: block; }
  .chronicle-list span { display: block; margin-top: 4px; }
  .resume-accolades { grid-template-columns: 1fr; }
  .contact-inner { padding: 23px 20px; }
  .contact-links a { font-size: clamp(14px, 4.05vw, 17px); }
  .contact-links small { font-size: 11px; }
  .site-colophon { font-size: 12px; }
}
@media (max-width: 360px) {
  .project-gallery-hover-label { flex-wrap: wrap; gap: 10px; }
  .project-logo-slot { flex-basis: 144px; max-width: 100%; }
  .project-card-action { width: 100%; justify-content: space-between; }
  .contact-links a { grid-template-columns: minmax(0,1fr) 30px; font-size: 16px; }
  .contact-links a small { grid-column: 1/-1; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .folio-thread path { stroke-dashoffset: 0; }
  .project-gallery-card:is(:hover,:focus-visible), .wordmark:hover .brand-mark, .text-link:hover, .text-link:hover > b, .section-jump:is(:hover,:focus-visible,:active), .section-jump:is(:hover,:focus-visible) > b, .project-gallery-card:is(:hover,:focus-visible) .project-card-action .direction-icon, .detail-top button:active, .contact-links a:is(:hover,:focus-visible) > b { transform: none; }
}
