/* v33：自前ホストのMedium 1本。既存のフォールバックは維持。 */
@font-face {
  font-family: 'Shippori Mincho';
  src: url('./assets/fonts/ShipporiMincho-Medium-subset.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root {
  --paper: #f3efe5;
  --paper-deep: #e9e1d1;
  --ink: #171713;
  --muted: #655f55;
  --line: rgba(23, 23, 19, .28);
  --red: #d33d2f;
  --blue: #3158a7;
  --shadow: 10px 10px 0 rgba(23, 23, 19, .12);
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 99; padding: 8px 12px; background: white; }
.skip-link:focus { top: 12px; }

.site-header {
  min-height: 72px; padding: 0 4vw; border-bottom: 1px solid var(--ink);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  position: sticky; top: 0; z-index: 20; background: var(--paper);
  font-size: 13px; letter-spacing: .04em;
}
.wordmark { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; text-decoration: none; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-header nav a:hover { border-color: var(--ink); }
.edition { justify-self: end; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.hero {
  min-height: calc(94svh - 72px); padding: 28px 3.5vw 30px 6vw; display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(500px, 1fr); gap: 3vw; align-items: center;
  border-bottom: 1px solid var(--ink); position: relative; overflow: hidden;
}
.eyebrow { margin: 0 0 18px; font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; line-height: .94; }
.hero h1 span { display: block; font-size: clamp(64px, 9.2vw, 146px); letter-spacing: -.09em; }
.hero h1 small { display: block; margin-top: 20px; font: 600 clamp(19px, 2vw, 31px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .035em; }
.lead { max-width: 700px; margin: 32px 0 0; font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(22px, 2vw, 32px); line-height: 1.48; }
.nowrap { white-space: nowrap; }
.hero-note { max-width: 600px; margin: 18px 0 0; color: var(--muted); }
.hero-links { display: flex; align-items: center; gap: 24px; margin-top: 26px; }
.location-chip { display: inline-block; padding: 10px 15px 9px; border: 1px solid var(--ink); background: #ef7d32; color: var(--ink); font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; transform: rotate(-1.5deg); }
.button { display: inline-block; padding: 13px 18px; border: 1px solid var(--ink); background: var(--red); color: #fff; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.button:hover { background: var(--ink); color: var(--paper); }
.text-link { font-weight: 700; }
.portrait-card { margin: 0; width: 100%; max-width: 660px; justify-self: end; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.portrait-frame { height: clamp(590px, calc(94svh - 142px), 860px); border: 1px solid var(--ink); background: #fff; overflow: hidden; }
.portrait-frame picture { display: block; width: 100%; height: 100%; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.portrait-card figcaption { margin-top: 15px; display: flex; justify-content: space-between; gap: 10px; font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.portrait-card figcaption span { color: var(--muted); text-align: right; }
.internet-status { min-height: 44px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 22px; padding: 0 4vw; overflow: hidden; border-bottom: 1px solid rgba(243,239,229,.34); background: var(--ink); color: var(--paper); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.internet-online { display: flex; align-items: center; gap: 8px; color: #e76c59; }
.internet-online i { width: 7px; height: 7px; display: block; border-radius: 50%; background: currentColor; animation: internetBlink 1.1s steps(2,end) infinite; }
.internet-ticker { min-width: 0; overflow: hidden; white-space: nowrap; }
.internet-ticker-track { width: max-content; display: flex; animation: internetTicker 104s linear infinite; }
.internet-ticker-track span { padding-right: 64px; }
.internet-update { color: rgba(243,239,229,.66); white-space: nowrap; }

.work-bridge { min-height: 58px; display: grid; grid-template-columns: 1.2fr repeat(5,auto) 1fr; gap: 20px; align-items: center; padding: 0 7vw; border-bottom: 1px solid var(--ink); background: var(--paper); font: 700 11px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.work-bridge > span:first-child { color: var(--red); }
.work-bridge a { justify-self: end; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
.work-bridge a:hover { color: var(--red); border-color: var(--red); }

@keyframes internetBlink { 50% { opacity: .22; } }
@keyframes internetTicker { to { transform: translateX(-50%); } }

.section { padding: 110px 7vw; border-bottom: 1px solid var(--ink); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; column-gap: 5vw; align-items: end; margin-bottom: 54px; }
.section-heading .eyebrow { grid-column: 1; }
.section-heading h2 { grid-column: 1; margin: 0; font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; font-size: clamp(48px, 7vw, 102px); letter-spacing: -.06em; line-height: 1; }
.section-heading h2 .heading-en { display: block; margin-top: .08em; font-size: .62em; line-height: 1.05; letter-spacing: -.04em; white-space: nowrap; }
.section-heading > p:last-child { grid-column: 2; margin: 0 0 8px; max-width: 520px; color: var(--muted); font-size: 16px; }

.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.featured-card { background: var(--paper); }
.featured-card > a { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; }
.featured-wide { grid-column: 1 / -1; }
.featured-wide > a { grid-template-columns: 1fr 1fr; grid-template-rows: none; min-height: 520px; }
.featured-wide.reverse > a { grid-template-columns: 1fr 1fr; }
.featured-wide.reverse .featured-image { order: 2; }
.featured-image { min-height: 380px; overflow: hidden; background: #fff; border-bottom: 1px solid var(--ink); }
.featured-wide .featured-image { min-height: 520px; border-bottom: 0; border-right: 1px solid var(--ink); }
.featured-wide.reverse .featured-image { border-right: 0; border-left: 1px solid var(--ink); }
.featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.featured-image.warm img { object-fit: contain; padding: 11%; background: #fff; }
.featured-image.brand-red { background: #c01920; }
.featured-image.brand-red img { object-fit: contain; padding: 7%; background: #c01920; }
.featured-card a:hover .featured-image img { transform: scale(1.025); }
.featured-body { padding: clamp(28px, 4vw, 58px); display: flex; flex-direction: column; align-items: flex-start; }
.number, .tag { margin: 0 0 22px; color: var(--red); font: 700 11px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; }
.featured-body h3 { margin: 0; font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(32px, 4vw, 62px); line-height: 1.15; font-weight: 500; letter-spacing: -.045em; }
.title-stacked span { display: block; white-space: nowrap; }
.featured-body .role { margin: 20px 0 6px; padding: 4px 8px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; }
.featured-body > p:last-of-type { max-width: 470px; margin: 20px 0; color: var(--muted); }
.visit { margin-top: auto; padding-top: 25px; border-bottom: 1px solid var(--ink); font-weight: 700; }
.other-card { display: grid; grid-template-columns: 1fr 1fr; }
.other-visual { min-height: 500px; padding: 45px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--red); color: #fff; border-right: 1px solid var(--ink); }
.other-visual span { font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.other-visual strong { font: 800 clamp(70px, 10vw, 150px)/.77 "Helvetica Neue", sans-serif; letter-spacing: -.09em; }

.method { padding-bottom: 64px; background: var(--ink); color: var(--paper); }
.method .section-heading h2 { color: var(--paper); }
.method-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.45); }
.method-list li { padding: 30px 24px 20px 0; border-right: 1px solid rgba(255,255,255,.28); min-height: 230px; }
.method-list li + li { padding-left: 24px; }
.method-list li:last-child { border-right: 0; }
.method-list span { color: #e76c59; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.method-list strong { display: block; margin: 28px 0 18px; font-family: "Shippori Mincho", "Yu Mincho", serif; font-size: 28px; font-weight: 500; }
.method-list p { margin: 0; color: rgba(243,239,229,.72); font-size: 14px; }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 24px; }
.archive-card a { text-decoration: none; }
.archive-image { aspect-ratio: 16/10; overflow: hidden; border: 1px solid var(--ink); background: white; box-shadow: 6px 6px 0 var(--paper-deep); }
.archive-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.archive-image.square img { object-fit: contain; padding: 5%; }
.archive-card a:hover img { transform: scale(1.03); }
.archive-card .tag { margin: 18px 0 8px; color: var(--blue); }
.archive-card h3 { margin: 0; font-family: "Shippori Mincho", "Yu Mincho", serif; font-size: clamp(22px, 2vw, 30px); font-weight: 500; line-height: 1.35; }
.archive-more-wrap { margin-top: 72px; text-align: right; }
.archive-more { display: inline-block; padding: 16px 0 10px; border-bottom: 2px solid var(--ink); font-family: "Shippori Mincho", "Yu Mincho", serif; font-size: clamp(20px, 2vw, 28px); font-weight: 700; text-decoration: none; }
.archive-more:hover { color: var(--red); border-color: var(--red); }
.archive.continuation { padding-top: 0; }
#works.selected { padding-bottom: 56px; }
.archive.continuation .section-heading { padding-top: 48px; }

.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; background: var(--paper-deep); }
.about h2 { margin: 0; font: 500 clamp(52px, 7vw, 100px)/1 "Shippori Mincho", "Yu Mincho", serif; letter-spacing: -.06em; }
.kana { margin: 14px 0 0; color: var(--muted); }
.about-copy { font-family: "Shippori Mincho", "Yu Mincho", serif; font-size: clamp(19px, 2vw, 28px); line-height: 1.85; }
.about-copy > p { margin: 0 0 1.5em; }
.profile-punchline { margin-top: 2.2em !important; padding-top: 1.1em; border-top: 1px solid var(--ink); color: var(--red); font-weight: 700; }
.about-data { margin-top: 50px; border-top: 1px solid var(--ink); font: 14px/1.5 "Helvetica Neue", sans-serif; }
.about-data div { display: grid; grid-template-columns: 100px 1fr; padding: 15px 0; border-bottom: 1px solid var(--line); }
.about-data dt { color: var(--muted); }
.about-data dd { margin: 0; font-weight: 700; }

.contact { text-align: center; padding-top: 82px; padding-bottom: 82px; }
.contact h2 { margin: 0 0 24px; font: 500 clamp(48px, 7vw, 100px)/1 "Shippori Mincho", "Yu Mincho", serif; letter-spacing: -.07em; }
.contact > p { margin: 0 auto 34px; max-width: 620px; color: var(--muted); }
.button.dark { background: var(--ink); }


footer { padding: 24px 4vw; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
footer p { margin: 0; }
footer p:nth-child(2) { color: #4f4a42; }
footer a { justify-self: end; }

.photo-original-page .portrait-frame { background: #fff; }
.photo-original-page .portrait-frame picture { display: flex; align-items: center; justify-content: center; }
.photo-original-page .portrait-frame img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.works-hero { min-height: 64svh; padding: 5vw 7vw 4vw; display: grid; grid-template-columns: 1.1fr .9fr; gap: 7vw; align-items: end; border-bottom: 1px solid var(--ink); }
.works-hero > .eyebrow { grid-column: 1 / -1; align-self: start; }
.works-hero h1 { margin: 0; font: 500 clamp(70px, 10vw, 150px)/.86 "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: -.09em; }
.works-intro { padding-bottom: 6px; }
.works-intro > p { max-width: 520px; margin: 0 0 38px; font-family: "Shippori Mincho", "Yu Mincho", serif; font-size: clamp(20px, 2vw, 28px); line-height: 1.75; }
.category-jump { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
.category-jump a { min-height: 48px; padding: 14px 0; display: flex; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.category-jump a:hover { color: var(--red); }
.works-index { padding: 0 7vw; }
.work-group { padding: 100px 0 30px; border-bottom: 1px solid var(--ink); scroll-margin-top: 70px; }
.work-group > header { display: grid; grid-template-columns: 80px 1fr; align-items: baseline; margin-bottom: 32px; }
.work-group > header > span { color: var(--red); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.work-group h2 { margin: 0; font: 500 clamp(34px, 5vw, 72px)/1 "Shippori Mincho", "Yu Mincho", serif; letter-spacing: -.045em; }
.work-table { border-top: 1px solid var(--ink); }
.work-row { display: grid; grid-template-columns: minmax(260px, 1.15fr) minmax(260px, .85fr) 32px; gap: 28px; align-items: center; min-height: 76px; padding: 13px 8px 13px 80px; border-bottom: 1px solid var(--line); text-decoration: none; }
.work-row strong { font-family: "Shippori Mincho", "Yu Mincho", serif; font-size: clamp(18px, 1.7vw, 25px); font-weight: 500; line-height: 1.4; }
.work-row span { color: var(--muted); font-size: 13px; }
.work-row b { justify-self: end; color: var(--red); font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
a.work-row:hover { background: var(--paper-deep); }
.experience { margin: 110px 0; padding: 65px; background: var(--ink); color: var(--paper); }
.experience h2 { margin: 0 0 50px; font: 500 clamp(42px, 6vw, 82px)/1 "Shippori Mincho", "Yu Mincho", serif; letter-spacing: -.06em; }
.experience dl { margin: 0; }
.experience dl div { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.3); }
.experience dt { color: #e76c59; font: 700 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.experience dd { margin: 0; display: grid; grid-template-columns: minmax(180px,.6fr) 1fr; gap: 24px; }
.experience dd strong { font: 500 25px/1.4 "Shippori Mincho", "Yu Mincho", serif; }
.experience dd span { color: rgba(243,239,229,.72); }
.works-back { padding: 60px 7vw 100px; text-align: right; }
.works-back a { font-family: "Shippori Mincho", "Yu Mincho", serif; font-size: 24px; font-weight: 700; }

.view-switch { width: fit-content; display: flex; align-items: stretch; gap: 0; margin: 0 0 24px; border: 1px solid var(--ink); font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.view-switch a, .view-switch strong { padding: 8px 11px; text-decoration: none; }
.view-switch span { display: none; }
.view-switch strong { background: var(--ink); color: var(--paper); }
.timeline-hero { padding: 4vw 7vw 3vw; border-bottom: 1px solid var(--ink); }
.timeline-hero h1 { max-width: 980px; margin: 0; font: 500 clamp(64px, 8.5vw, 132px)/.9 "Shippori Mincho", "Yu Mincho", serif; letter-spacing: -.08em; }
.timeline-hero > p:last-of-type { max-width: 620px; margin: 28px 0 24px auto; font-family: "Shippori Mincho", "Yu Mincho", serif; font-size: clamp(19px, 1.7vw, 25px); }
.timeline-hero .view-switch { justify-content: flex-end; }
.timeline { display: grid; grid-template-columns: minmax(180px,.32fr) minmax(0,1fr); gap: 7vw; }
.timeline.alt { background: var(--paper-deep); }
.timeline-year span { color: var(--red); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.timeline-year h2 { margin: 18px 0 0; font: 500 clamp(52px,7vw,100px)/1 "Shippori Mincho", "Yu Mincho", serif; letter-spacing: -.06em; }
.timeline-list { border-top: 1px solid var(--ink); }
.timeline-row { display: grid; grid-template-columns: 110px 1fr; gap: 0; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline-row .when { color: var(--red); font: 700 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.timeline-row > div { position: relative; padding-left: 30px; border-left: 1px solid var(--ink); }
.timeline-row > div::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.timeline-row h3 { margin: 0 0 8px; font: 500 clamp(23px,2.5vw,36px)/1.3 "Shippori Mincho", "Yu Mincho", serif; }
.timeline-row h3 a { text-decoration: none; }
.timeline-row p { max-width: 700px; margin: 0; color: var(--muted); }
.timeline-row .latest-episode { margin: 0 0 7px; color: var(--ink); font-weight: 700; }
.timeline-row.has-thumb > div { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 20px; }
.timeline-thumb { width: 76px; height: 57px; margin-top: 2px; object-fit: cover; background: var(--paper-deep); border: 1px solid var(--line); }
.timeline-copy { min-width: 0; }
.timeline-row small { display: block; margin-top: 12px; font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.timeline-row.detail-ready small { color: var(--blue); }
.timeline-note { grid-column: 2; margin: 0 0 30px; color: var(--muted); }
.compact-work-list { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.compact-work-list span { min-height: 58px; padding: 14px 12px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.compact-work-list span:nth-child(odd) { border-right: 1px solid var(--line); }
.detail-hero { min-height: calc(92svh - 72px); display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.detail-copy { padding: 8vw 6vw; display: flex; flex-direction: column; justify-content: flex-end; }
.detail-copy h1 { margin: 0; white-space: nowrap; font: 500 clamp(72px,10vw,150px)/.85 "Shippori Mincho", "Yu Mincho", serif; letter-spacing: -.09em; }
.detail-lead { max-width: 520px; margin: 40px 0 0; font-family: "Shippori Mincho", "Yu Mincho", serif; font-size: clamp(22px,2.2vw,32px); }
.detail-logo { display: grid; place-items: center; padding: 10%; background: #c01920; border-left: 1px solid var(--ink); }
.detail-logo img { width: 100%; height: 100%; object-fit: contain; }
.detail-body { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; }
.detail-body h2 { margin: 0; font: 500 clamp(42px,5vw,76px)/1.12 "Shippori Mincho", "Yu Mincho", serif; letter-spacing: -.055em; }
.detail-text { font-family: "Shippori Mincho", "Yu Mincho", serif; font-size: clamp(18px,1.8vw,25px); }
.detail-text > p { margin: 0 0 1.5em; }
.scope-list { margin: 45px 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); font: 14px/1.4 "Helvetica Neue", sans-serif; }
.scope-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-external { display: inline-block; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-family: "Helvetica Neue", sans-serif; font-weight: 700; text-decoration: none; }
.detail-why { background: var(--ink); color: var(--paper); }
.detail-why > p:last-child { max-width: 1050px; margin: 40px 0 0; font: 500 clamp(30px,4vw,58px)/1.45 "Shippori Mincho", "Yu Mincho", serif; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(390px, 1fr); padding-left: 5vw; }
  .portrait-frame { height: clamp(540px, calc(90svh - 130px), 760px); }
}

@media (min-width: 861px) and (max-height: 760px) {
  .hero { min-height: calc(100svh - 72px); padding-top: 22px; padding-bottom: 24px; }
  .hero h1 span { font-size: clamp(64px, 8.7vw, 126px); }
  .hero h1 small { margin-top: 12px; }
  .lead { margin-top: 24px; font-size: clamp(21px, 1.8vw, 27px); line-height: 1.42; }
  .hero-note { margin-top: 10px; }
  .hero-links { margin-top: 18px; }
  .portrait-frame { height: calc(100svh - 126px); }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 62px; }
  .site-header nav { gap: 15px; }
  .edition { display: none; }
  .hero { min-height: auto; padding: 64px 6vw 30px; grid-template-columns: 1fr; }
  .hero h1 span { font-size: clamp(68px, 21vw, 120px); }
  .lead { margin-top: 38px; }
  .portrait-card { width: min(72vw, 430px); justify-self: end; margin-top: 18px; }
  .portrait-frame { height: min(72vh, 590px); }
  .work-bridge { grid-template-columns: repeat(2,1fr); gap: 10px 18px; padding: 18px 6vw; }
  .work-bridge a { justify-self: start; }
  .section { padding: 80px 6vw; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 22px; }
  .featured-grid { display: block; border-bottom: 0; }
  .featured-card { border-bottom: 1px solid var(--ink); }
  .featured-wide { grid-column: auto; }
  .other-card { display: block; }
  .other-visual { min-height: 380px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .featured-wide > a, .featured-wide.reverse > a { display: grid; grid-template-columns: 1fr; }
  .featured-wide.reverse .featured-image { order: 0; }
  .featured-wide .featured-image, .featured-wide.reverse .featured-image { min-height: 0; aspect-ratio: 1/1; border: 0; border-bottom: 1px solid var(--ink); }
  .featured-image { min-height: 0; aspect-ratio: 1/1; }
  .featured-body { min-height: 340px; }
  .method-list { grid-template-columns: 1fr 1fr; }
  .method-list li:nth-child(2) { border-right: 0; }
  .method-list li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.28); }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .works-hero { min-height: auto; padding: 80px 6vw; grid-template-columns: 1fr; gap: 50px; }
  .works-hero > .eyebrow { grid-column: 1; }
  .work-row { padding-left: 24px; grid-template-columns: minmax(230px, 1fr) minmax(210px, .9fr) 28px; }
  .experience { margin: 80px 0; padding: 45px; }
  .experience dl div { grid-template-columns: 120px 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 45px; }
  .timeline-note, .compact-work-list { grid-column: 1; }
  .detail-hero { min-height: auto; grid-template-columns: 1fr; }
  .detail-copy { min-height: 540px; padding: 80px 6vw; }
  .detail-logo { min-height: 560px; border-left: 0; border-top: 1px solid var(--ink); }
  .detail-body { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr auto; }
  footer p:nth-child(2) { display: none; }
}

@media (max-width: 540px) {
  .site-header nav a:nth-child(2) { display: none; }
  .site-header { padding: 0 18px; }
  .hero { padding: 42px 20px 28px; }
  .hero h1 span { font-size: clamp(60px, 18vw, 82px); }
  .hero h1 small { margin-top: 20px; font-size: 18px; }
  .lead { margin-top: 30px; font-size: 22px; line-height: 1.48; }
  .hero-note { margin-top: 12px; font-size: 15px; }
  .hero-links { margin-top: 24px; align-items: center; flex-direction: row; gap: 20px; }
  .portrait-card { width: calc(100% + 40px); max-width: none; margin: 26px -20px 0; }
  .portrait-frame { height: 430px; border-left: 0; border-right: 0; }
  .portrait-frame img { object-position: 50% 68%; }
  .portrait-card figcaption { padding: 0 20px; }

  .internet-status { grid-template-columns: auto minmax(0,1fr); gap: 16px; padding: 0 20px; }
  .internet-update { display: none; }
  .work-bridge { padding: 18px 20px; }
  .section { padding: 70px 20px; }
  .section-heading { margin-bottom: 35px; }
  .section-heading h2 { font-size: 50px; }
  .featured-body { padding: 28px 22px; min-height: 320px; }
  .featured-body h3 { font-size: 34px; }
  .method-list { grid-template-columns: 1fr; }
  .method-list li, .method-list li + li { padding: 26px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.28); min-height: 0; }
  .archive-grid { grid-template-columns: 1fr; gap: 38px; }
  .archive-image { aspect-ratio: 16/9; }
  .about-copy { font-size: 19px; }
  .works-hero { padding: 58px 20px 65px; gap: 34px; }
  .works-hero h1 { font-size: 72px; }
  .category-jump { grid-template-columns: 1fr; }
  .category-jump a:nth-child(even) { padding-left: 0; border-left: 0; }
  .works-index { padding: 0 20px; }
  .work-group { padding: 72px 0 24px; }
  .work-group > header { grid-template-columns: 42px 1fr; margin-bottom: 26px; }
  .work-group h2 { font-size: 36px; }
  .work-row { grid-template-columns: 1fr 22px; gap: 7px 16px; min-height: 0; padding: 18px 0; }
  .work-row span { grid-column: 1; grid-row: 2; }
  .work-row b { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .experience { margin: 70px -20px; padding: 45px 20px; }
  .experience dl div { grid-template-columns: 1fr; gap: 10px; }
  .experience dd { grid-template-columns: 1fr; gap: 4px; }
  .works-back { padding: 30px 20px 70px; }
  .timeline-hero { padding: 58px 20px 65px; }
  .timeline-hero h1 { font-size: 58px; }
  .timeline-hero > p:last-of-type { margin-top: 40px; }
  .timeline-hero .view-switch { justify-content: flex-start; }
  .timeline { gap: 32px; }
  .timeline-row { grid-template-columns: 72px 1fr; gap: 14px; padding: 22px 0; }
  .timeline-row.has-thumb > div { grid-template-columns: 1fr; gap: 12px; }
  .timeline-thumb { width: 72px; height: 54px; }
  .timeline-row h3 { font-size: 23px; }
  .compact-work-list { grid-template-columns: 1fr; }
  .compact-work-list span:nth-child(odd) { border-right: 0; }
  .detail-copy { min-height: 470px; padding: 70px 20px; }
  .detail-copy h1 { font-size: 82px; }
  .detail-logo { min-height: 390px; padding: 13%; }
  .detail-body h2 { font-size: 44px; }
  .detail-why > p:last-child { font-size: 31px; }
  .contact h2 { font-size: 56px; }
  footer { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v15: isolated, reversible enhancements */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.hero { transition:background-color .65s ease,color .65s ease; isolation:isolate; }
.hero-copy { position:relative; z-index:2; }
.sky-toggle { cursor:pointer; min-height:44px; transition:background-color .3s,color .3s; }
.sky-toggle:hover { background:#ff9a51; }
.sky-toggle:focus-visible, .section-nav button:focus-visible { outline:3px solid #3158a7; outline-offset:5px; }
.hero.is-night { background:#111d35; color:#f3efe5; }
.hero.is-night .hero-note, .hero.is-night figcaption span { color:#c1cbdd; }
.hero.is-night .sky-toggle { background:#f3efe5; color:#111d35; border-color:#f3efe5; }
.hero.is-night .sky-toggle:focus-visible { outline-color:#f6c96c; }
.hero .portrait-frame { transition:opacity .65s; }
.hero.is-night .portrait-frame { opacity:.4; }
.hero-sky { position:absolute; z-index:3; pointer-events:none; width:clamp(200px,18vw,260px); top:34px; right:5vw; opacity:0; transition:opacity .3s; }
.hero.is-night .hero-sky { opacity:1; }
.dipper { display:block; width:100%; overflow:visible; }
.dipper-line { stroke:#bed0ec; stroke-width:1; stroke-dasharray:1; stroke-dashoffset:1; opacity:0; }
.dipper-star { fill:#fff6db; opacity:0; }
.is-night .dipper-star { animation:starOn .4s ease both; animation-delay:calc(var(--star) * .17s + .2s); }
.is-night .dipper-line { animation:lineOn .8s ease 1.55s both; }
@keyframes starOn { from { opacity:0; } to { opacity:1; } }
@keyframes lineOn { from { opacity:0; stroke-dashoffset:1; } to { opacity:.8; stroke-dashoffset:0; } }
.profile-stars { transition:color .6s,text-shadow .6s; }
.profile-stars.is-lit { color:#3158a7; text-shadow:0 0 14px #5679bd55; }
section[id] { scroll-margin-top:90px; }
/* Dedicated right rail: never covers the content or photo. */
@media (min-width:1101px) { body:has(.section-nav) { padding-right:110px; } }
.section-nav { position:fixed; z-index:25; top:50%; right:8px; transform:translateY(-50%); font:700 10px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.025em; }
.section-nav ol { list-style:none; padding:9px 5px; margin:0; border:1px solid #17171340; background:#f3efe5f5; }
.section-nav a { display:flex; gap:7px; align-items:center; min-height:44px; padding:6px; text-decoration:none; color:#655f55; }
.section-nav a[aria-current] { color:#171713; background:#e9e1d1; box-shadow:inset 2px 0 #d33d2f; }
.section-nav a span { color:#a0392c; }
.section-nav-toggle { display:none; }
.visitor-counter { padding:36px 7vw; border-bottom:1px solid var(--ink); }
.visitor-counter h2 { margin:0 0 20px; font:700 10px/1.4 ui-monospace,monospace; letter-spacing:.12em; color:var(--muted); }
.visitor-counter dl { margin:0; display:flex; gap:36px; }
.visitor-counter dl div { display:flex; gap:14px; align-items:center; }
.visitor-counter dt { font:700 11px/1 ui-monospace,monospace; }
.visitor-counter dd { margin:0; min-width:70px; padding:8px 12px; text-align:center; color:var(--paper); background:var(--ink); font:500 26px/1 ui-monospace,monospace; font-variant-numeric:tabular-nums; }
.counter-status { font:700 10px/1.7 ui-monospace,monospace; margin:18px 0 6px; }
.counter-note { font-size:11px; color:var(--muted); max-width:650px; margin:0; }
.not-found { background:#111d35; color:#f3efe5; min-height:100svh; display:grid; place-items:center; padding:50px 24px; }
.not-found main { max-width:680px; width:100%; }
.not-found h1 { font:600 clamp(100px,23vw,220px)/1 ui-monospace,monospace; letter-spacing:-.08em; margin:0 0 28px; }
.lost-copy { font:500 clamp(20px,3.5vw,34px)/1.8 "Shippori Mincho", "Yu Mincho",serif; }
.lost-copy span { color:#bacce8; }
.not-found .dipper { width:200px; margin:0 0 30px auto; }
.not-found .dipper-star { opacity:1; }
.not-found .dipper-line { opacity:.8; stroke-dashoffset:0; }
.lost-home { display:inline-block; padding:14px 0; font:700 14px/1 ui-monospace,monospace; }
.not-found a:focus-visible { outline-color:#f6c96c; }
@media (max-width:1100px) {
 .section-nav { top:auto; bottom:14px; right:14px; transform:none; }
 .section-nav-toggle { display:block; min-height:44px; min-width:86px; border:1px solid var(--ink); background:var(--paper); color:var(--ink); font:700 12px/1 ui-monospace,monospace; cursor:pointer; margin-left:auto; padding:12px; }
 .section-nav ol { display:none; position:absolute; bottom:52px; right:0; min-width:150px; }
 .section-nav.is-open ol { display:block; }
 footer { padding-bottom:80px; }
}
@media (max-width:860px) { .hero-sky { top:auto; bottom:290px; right:7vw; width:260px; } }
@media (max-width:540px) {
 .hero-sky { bottom:270px; right:16px; width:230px; }
 .visitor-counter { padding:30px 20px; }
 .visitor-counter dl { gap:22px; flex-wrap:wrap; }
 .visitor-counter dl div { gap:8px; }
 .visitor-counter dd { min-width:58px; }
 section[id] { scroll-margin-top:78px; }
}
@media (prefers-reduced-motion:reduce) {
 .is-night .dipper-star { opacity:1; }
 .is-night .dipper-line { opacity:.8; stroke-dashoffset:0; }
}

/* v27: semantic punctuation frames content by its visible glyph, not its em box */
.likes { padding-top:56px; padding-bottom:56px; background:var(--paper); border-top:1px solid var(--ink); border-bottom:1px solid var(--ink); }
.likes-heading { display:grid; grid-template-columns:.8fr 1.2fr; gap:5vw; align-items:end; margin-bottom:26px; }
.likes-heading h2 { margin:6px 0 0; white-space:nowrap; font:500 clamp(42px,4vw,62px)/1 "Shippori Mincho", "Yu Mincho","Hiragino Mincho ProN",serif; letter-spacing:-.055em; }
.likes-heading .eyebrow { width:max-content; margin:0; padding:5px 8px 4px; border:1px solid var(--ink); background:#ef7d32; color:var(--ink); }
.likes-heading > p { max-width:570px; margin:0 0 5px; color:var(--muted); }
.likes-list { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); border:1px solid var(--ink); background:var(--paper); }
.like-item { position:relative; min-width:0; min-height:112px; padding:14px 8px 12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; border:0; border-right:1px solid var(--ink); background:transparent; color:var(--ink); cursor:pointer; }
.like-item:last-child { border-right:0; }
.like-item::after { content:""; position:absolute; inset:6px; border:1px solid transparent; pointer-events:none; }
.like-item:hover,.like-item:focus-visible,.like-item.is-active { background:#ef7d32; color:var(--ink); }
.like-item:focus-visible { outline:3px solid var(--blue); outline-offset:3px; z-index:2; }
.like-icon { width:46px; height:46px; display:grid; place-items:center; }
.like-icon svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.like-name { min-height:2.4em; display:grid; place-items:center; font-size:12px; font-weight:700; line-height:1.2; text-align:center; }
.likes-detail { min-height:54px; margin:0; padding:16px 18px; display:grid; grid-template-columns:minmax(130px,.32fr) 1fr; align-items:center; border:1px solid var(--ink); border-top:0; background:var(--paper); color:var(--ink); font-size:15px; }
.likes-detail strong { font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.11em; text-transform:uppercase; }
.likes-detail span { padding-left:20px; border-left:1px solid rgba(23,23,19,.35); }
.selected,.archive,.about,.likes,.contact { position:relative; overflow:hidden; isolation:isolate; }
.selected > *,.archive > *,.about > *,.likes > *,.contact > * { position:relative; z-index:1; }
.hero::before,.selected::before,.archive-more-wrap::after,.likes::after,.contact::after,footer::after {
 position:absolute; z-index:0; pointer-events:none; color:var(--ink);
 font-family:"Shippori Mincho", "Yu Mincho","Hiragino Mincho ProN",serif; font-weight:500; line-height:.7;
}
.hero::before { content:"“"; top:34px; left:2.2vw; font-size:72px; }
.selected::before { content:"「"; top:74px; left:1vw; font-size:82px; transform:rotate(-2deg); }
.archive-more-wrap { position:relative; }
.archive-more-wrap::after { content:"」"; right:-6vw; bottom:-34px; font-size:76px; transform:rotate(2deg); }
.likes::after { content:"、"; right:1vw; bottom:42px; font-size:100px; }
.contact::after { content:"”"; right:3vw; bottom:34px; font-size:82px; }
footer { position:relative; overflow:hidden; isolation:isolate; padding-right:5.5vw; }
footer::after { content:"。"; right:1vw; bottom:16px; font-size:46px; }
@media (min-width:1101px) {
 .likes,.contact { overflow:visible; }
 .likes::after { right:max(-4.8vw, -96px); bottom:10px; }
 .contact::after { right:-.5vw; bottom:12px; }
 /* The legacy photo comparison page has no fixed right rail; keep its quote in-view. */
 .photo-original-page .contact::after { right:0; }
}
@media (min-width:861px) {
 .like-item:hover::before,.like-item:focus-visible::before,.like-item.is-active::before { content:""; position:absolute; z-index:2; left:0; right:0; bottom:-1px; height:2px; background:#ef7d32; pointer-events:none; }
}
.contact { text-align:left; }
.contact > .eyebrow,.contact > h2,.contact > p { max-width:1080px; margin-left:auto; margin-right:auto; }
.contact > p { margin-bottom:52px; }
.contact-form { max-width:1080px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:26px 22px; }
.form-field { display:flex; flex-direction:column; gap:9px; }
.form-wide { grid-column:1 / -1; }
.form-field label { font:700 10px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.12em; }
.form-field input,.form-field select,.form-field textarea { width:100%; border:1px solid var(--ink); border-radius:0; padding:15px 16px; background:#fffdf7; color:var(--ink); font:inherit; }
.form-field input,.form-field select { min-height:54px; }
.form-field textarea { min-height:190px; resize:vertical; }
.form-field input:focus,.form-field select:focus,.form-field textarea:focus { outline:3px solid var(--blue); outline-offset:2px; }
.form-submit { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.form-submit button { min-height:54px; padding:15px 22px; border:1px solid var(--ink); background:var(--ink); color:var(--paper); font-weight:700; cursor:pointer; }
.form-submit button:hover { background:var(--red); }
.form-submit small { color:var(--muted); font:700 9px/1.5 ui-monospace,monospace; letter-spacing:.08em; text-align:right; }
.form-status { min-height:1.5em; margin:0; color:var(--red); font-weight:700; }
.footer-links { justify-self:end; display:flex; gap:18px; }
.footer-links a:first-child { opacity:.5; font-size:9px; }
@media (max-width:860px) {
 .likes-heading { grid-template-columns:1fr; gap:18px; }
 .likes-list { grid-template-columns:repeat(4,1fr); }
 .like-item { border-bottom:1px solid var(--ink); }
 .like-item:nth-child(4n) { border-right:0; }
 .like-item:nth-last-child(-n+4) { border-bottom:0; }
 .site-header nav a:nth-child(3) { display:none; }
}
@media (max-width:540px) {
 .likes { padding-top:40px; padding-bottom:40px; }
 .likes-heading { margin-bottom:24px; }
 .likes-heading h2 { font-size:42px; }
 .likes-heading > p { font-size:12px; }
 .likes-list { grid-template-columns:repeat(4,1fr); }
 .like-item { min-height:90px; padding:10px 4px 8px; gap:5px; }
 .like-icon { width:34px; height:34px; }
 .like-name { font-size:10px; }
 .likes-detail { min-height:78px; padding:12px; grid-template-columns:1fr; gap:7px; }
 .likes-detail span { padding:8px 0 0; border-left:0; border-top:1px solid rgba(23,23,19,.35); font-size:14px; line-height:1.5; }
 .hero::before { top:20px; left:8px; font-size:48px; }
 .selected::before { top:32px; left:-7px; font-size:50px; transform:translateX(-.42em) rotate(-2deg); }
 .archive-more-wrap::after { right:-5vw; bottom:-23px; font-size:52px; transform:translateX(.55em) rotate(2deg); }
 /* Keep the comma fully visible in the narrow gutter between the card and the page rule. */
 .likes::after { right:-6px; bottom:24px; font-size:62px; transform:translateX(.56em); }
 .contact::after { right:4px; bottom:16px; font-size:52px; transform:translateX(.48em); }
 footer::after { right:-5px; bottom:12px; font-size:38px; transform:translateX(.35em); }
 .contact-form { grid-template-columns:1fr; }
 .form-field,.form-wide { grid-column:1; }
 .form-submit { align-items:stretch; flex-direction:column; }
 .form-submit small { text-align:left; }
 footer { grid-template-columns:1fr; }
 .footer-links { justify-self:start; }
}

/* v31: 仕事をひとつのグリッドへ。行の高さは全文に応じて伸ばす。 */
#works.works-unified { padding-bottom:86px; }
.works-unified .section-heading { grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:end; }
.works-unified .section-heading h2 { font-size:clamp(42px,4.4vw,64px); line-height:1.18; letter-spacing:-.055em; }
.works-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:24px; row-gap:0; }
.work-card { min-width:0; grid-row:span 4; display:grid; grid-template-rows:subgrid; row-gap:0; margin-bottom:24px; border:1px solid var(--ink); background:var(--paper); }
.work-link { grid-row:1 / -1; display:grid; grid-template-rows:subgrid; row-gap:0; min-width:0; text-decoration:none; }
.work-image { min-width:0; aspect-ratio:4 / 3; overflow:hidden; border-bottom:1px solid var(--ink); background:#fff; }
.work-image img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.work-logo, .work-logo img { background:#c01920; }
.work-logo img { object-fit:contain; padding:7%; }
.work-link:hover .work-image img { transform:scale(1.025); }
.work-artwork { background:#fff; }
.work-artwork img { object-fit:contain; object-position:center; }
.work-artwork-newbalance { background:rgb(15,77,188); }
.work-link:hover .work-artwork img { transform:none; }
.work-title { margin:0; padding:18px 20px 0; min-height:calc(2lh + 18px); font:500 25px/1.3 "Shippori Mincho", "Yu Mincho","Hiragino Mincho ProN",serif; letter-spacing:-.025em; overflow-wrap:anywhere; }
.work-role { margin:0; padding:12px 20px 0; min-height:calc(2lh + 12px); color:var(--red); font-size:12px; font-weight:700; line-height:1.6; overflow-wrap:anywhere; }
.work-desc { margin:0; padding:14px 20px 24px; font-size:14px; line-height:1.75; color:var(--muted); overflow-wrap:anywhere; }
.work-text-card { background:var(--paper-deep); }
.text-card-body, .all-works-link { grid-row:1 / -1; min-width:0; min-height:220px; padding:28px 20px; }
.text-card-body { display:flex; flex-direction:column; justify-content:flex-start; }
.text-card-body h3, .all-works-link h3 { margin:0; font:500 25px/1.3 "Shippori Mincho", "Yu Mincho","Hiragino Mincho ProN",serif; letter-spacing:-.025em; }
.sns-line { margin:20px 0 0; font-size:14px; line-height:1.75; overflow-wrap:anywhere; }
.all-works-link { display:flex; align-items:flex-start; text-decoration:none; }
.all-works-link h3 { width:100%; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.all-works-link:hover { background:#ef7d32; }
.all-works-link h3 > span[aria-hidden] { font-family:ui-monospace,monospace; flex-shrink:0; }
.all-works-label { min-width:0; flex:1; overflow-wrap:anywhere; }
.likes-list { grid-template-columns:repeat(7,minmax(0,1fr)); }
/* 一覧・プロフィールの見た目を変えないため、追加規則は新クラスに限定。 */
@media (max-width:1100px) and (min-width:541px) {
 .works-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px) {
 .works-unified .section-heading { display:block; }
 .likes-list { grid-template-columns:repeat(12,minmax(0,1fr)); }
 .like-item { grid-column:span 3; border-right:1px solid var(--ink); border-bottom:1px solid var(--ink); }
 .like-item:nth-child(4) { border-right:0; }
 .like-item:nth-child(n+5) { grid-column:span 4; border-bottom:0; }
 .like-item:last-child { border-right:0; }
 .like-item:nth-child(4) { border-bottom:1px solid var(--ink); }
}
@media (max-width:540px) {
 #works.works-unified { padding-bottom:46px; }
 .works-grid { grid-template-columns:minmax(0,1fr); }
 .works-unified .section-heading h2 { font-size:42px; }
 .work-title { font-size:25px; }
 .work-role { font-size:12px; }
 .work-desc, .sns-line { font-size:14px; }
 .work-card { margin-bottom:24px; }
 .all-works-link { min-height:104px; padding:24px 20px; align-items:center; }
 .like-item { min-height:100px; padding:10px 6px; }
 .like-name { height:auto; min-height:2lh; line-height:1.5; }
}


/* v41: top lead breaks only at phrase boundary */
.lead .nobr { display: inline-block; }

/* v41: keep the opening bracket left of WORKS on narrow PC/tablet widths */
@media (min-width:861px) { .selected::before { left:min(1vw, calc(7vw - 67px)); } }
@media (min-width:541px) and (max-width:860px) { .selected::before { left:min(1vw, calc(6vw - 67px)); } }

/* v41: small start year on each top work card (mixed old/new on purpose) */
.work-year { display:inline-block; margin-left:8px; padding:1px 5px 0; border:1px solid currentColor; color:var(--muted); font:700 10px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.06em; white-space:nowrap; vertical-align:5px; }

/* v41: break only at phrase/item boundaries (likes detail, works intro) */
#likes-copy { word-break:keep-all; overflow-wrap:anywhere; }
.section-heading > p.works-intro, .works-intro { word-break:keep-all; overflow-wrap:anywhere; }
