/* Shared editorial system · October 2026 */
:root {
  --page-gutter: clamp(22px, 4.4vw, 112px);
  --page-width: 1920px;
  --paper: #f7f7f4;
  --ink: #20211f;
  --muted: #74766f;
  --rule: #d8d9d2;
  --section-space: clamp(64px, 6vw, 116px);
}
html { scroll-padding-top: 94px; }
body { background: var(--paper); color: var(--ink); }
body .text-muted { color: var(--muted); }
body .border-line { border-color: var(--rule); }
body :is(.page-wide, .max-w-5xl, .max-w-6xl, .max-w-7xl) {
  width: 100%; max-width: var(--page-width) !important;
  margin-inline: auto; padding-inline: var(--page-gutter);
}
body :is(section, main, article) { min-width: 0; }
body .section-title { font-family: 'Noto Serif SC', serif; font-size: clamp(24px, 2vw, 34px); line-height: 1.4; letter-spacing: -.025em; }
body p.text-sm { font-size: 14px; line-height: 1.95; }
body header.fixed { background: rgba(247,247,244,.94); box-shadow: none !important; }
body header.fixed nav { height: 78px; }
#navBrand { letter-spacing: .2em; font-weight: 500; }
#navSlot { gap: clamp(24px, 3vw, 56px); font-size: 12px; }
.nav-link[aria-current="page"]::after { width: 100%; }
:is(a, button, [tabindex]):focus-visible { outline: 2px solid #888b7e; outline-offset: 6px; }
#menuBtn { min-width: 40px; min-height: 40px; padding: 8px; }
#mobileMenu { padding: 20px var(--page-gutter) 28px; line-height: 2.8; }

/* Category opening: oversized title and a restrained right-hand introduction. */
.page-intro { padding-top: clamp(138px, 10vw, 190px); padding-bottom: clamp(50px, 5vw, 88px); }
.page-intro > div { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 8%; align-items: end; }
.page-intro > div > p:first-child { grid-column: 1 / -1; margin-bottom: 28px; font-size: 10px; letter-spacing: .24em; }
.page-intro h1 { font-size: clamp(42px, 5.1vw, 88px); letter-spacing: -.05em; line-height: 1.18; }
.page-intro > div > p:last-child { margin: 0; max-width: 31rem; justify-self: end; padding-bottom: 4px; }
body section > :is(.page-wide, .max-w-6xl)[class*="py-"] { padding-block: var(--section-space); }
body .grid.mb-14, body .project-board-section .grid.mb-12 { align-items: end; margin-bottom: clamp(30px, 3vw, 56px); }

/* Home: a type-led cover, a framed portrait and compact editorial entries. */
#top { min-height: min(900px, 100svh); padding-top: 78px; }
#top > .grid { padding-block: 80px; grid-template-columns: 1.5fr 1fr; gap: 8%; align-items: center; }
#top > .grid > div { grid-column: auto; min-width: 0; }
#heroName { font-size: clamp(54px, 6.5vw, 112px); letter-spacing: -.055em; }
#top h2 { font-size: clamp(32px, 3.7vw, 64px); margin-top: 24px; }
#heroTag { font-size: 10px; letter-spacing: .23em; }
#heroIntro { max-width: 34rem; }
#top .aspect-\[3\/4\] { aspect-ratio: 5 / 6; max-height: 580px; padding: 12px; border: 1px solid var(--rule); background: transparent; }
#heroGhost { font-size: 22vw; bottom: -4vw; opacity: .65; }
#top > .animate-bounce { animation: none; bottom: 22px; }
#aboutLead { font-size: clamp(21px, 1.7vw, 30px); line-height: 1.8; }
#about .space-y-4 { line-height: 1.9; }
#statGrid { padding-block: 56px; }
#statGrid > div { border-left: 1px solid #42433e; padding-left: 24px; }
#statGrid .stat-num { font-size: clamp(36px, 4vw, 64px); letter-spacing: -.06em; }
.entry-card, .sport-card { border: 0; border-top: 1px solid var(--rule); background: transparent; padding-top: 16px; }
.entry-card:hover, .sketch-card:hover { box-shadow: none; transform: translateY(-4px); }
.entry-cover { aspect-ratio: 5 / 4; }
.entry-body, .sport-card-body { padding: 24px 0 0; }
.entry-body > .flex { align-items: start; gap: 16px; }
.entry-body h3 { font-size: 26px; }
.entry-index { top: 16px; left: 18px; font-size: 22px; }
.entry-more { opacity: 1; transform: none; margin-top: 22px; }

/* Work reel: one continuous perforated track, including unexposed frames. */
.filmstrip-section {
  --frame-width: clamp(210px, 11.8vw, 290px);
  --film-height: calc(var(--frame-width) * 1.25);
  --film-gap: clamp(14px, 1.1vw, 24px);
  background: #161715; color: #eceee7; padding-block: clamp(44px, 4vw, 72px) 32px;
}
.film-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 32px; }
.film-heading h2 { font-size: clamp(32px, 3vw, 48px); font-weight: 300; }
.film-eyebrow { font: 10px 'Inter', sans-serif; letter-spacing: .2em; color: #a3a69a; margin-bottom: 12px; }
.film-heading-note { color: #a3a69a; font-size: 12px; line-height: 1.8; text-align: right; }
.film-window { position: relative; }
.film-window::before, .film-window::after {
  content: ''; position: absolute; inset-block: 0; width: clamp(18px, 3vw, 72px);
  pointer-events: none; z-index: 4;
}
.film-window::before { left: 0; background: linear-gradient(90deg, #161715, transparent); }
.film-window::after { right: 0; background: linear-gradient(-90deg, #161715, transparent); }
.filmstrip-scroller {
  overflow-x: auto; overflow-y: hidden; padding: 0; border: 0; background: transparent;
  scroll-behavior: auto; scrollbar-width: none; touch-action: pan-x pan-y;
  overscroll-behavior-x: contain; cursor: grab;
}
.filmstrip-scroller::-webkit-scrollbar { display: none; }
.filmstrip-scroller.dragging { cursor: grabbing; user-select: none; }
.filmstrip-track {
  position: relative; display: flex; align-items: flex-start; justify-content: center;
  width: max-content; min-width: 100%; margin: 0; padding: 42px 28px;
  gap: var(--film-gap); perspective: none; border-block: 1px solid #34362f;
}
.film-perf { position: absolute; left: 0; right: 0; height: 10px; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(90deg, transparent 0 12px, #686b60 12px 22px, transparent 22px 36px); opacity: .5;
}
.film-perf-top { top: 10px; }
.film-perf-bottom { bottom: 10px; }
.film-perf::before { display: none; }
.film-items, .film-leaders { display: flex; flex: none; gap: var(--film-gap); padding: 0; }
.film-frame { display: block; flex: none; width: var(--frame-width); border: 0; background: transparent;
  transform: none; color: inherit; transition: opacity .25s; will-change: auto;
}
.film-no { display: flex; justify-content: space-between; padding: 0 0 12px; color: #a3a69a;
  font: 9px 'Inter', sans-serif; letter-spacing: .13em; line-height: 14px;
}
.film-cover { position: relative; overflow: hidden; height: var(--film-height); aspect-ratio: auto; background: #242621; }
.film-cover img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) brightness(.9); transition: filter .45s, transform .65s; }
.film-caption { padding-top: 18px; min-height: 106px; }
.film-role { color: #a3a69a; font: 10px 'Inter', sans-serif; letter-spacing: .05em; margin: 0 0 9px; }
.film-title { font: 300 clamp(17px, 1.05vw, 22px)/1.6 'Noto Serif SC', serif; margin: 0; padding-right: 18px; }
.film-open { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: #eef0e6; color: #222; opacity: 0; transform: translateY(8px); transition: .25s;
}
.film-frame:hover .film-cover img, .film-frame:focus-visible .film-cover img, .film-frame.is-current .film-cover img { filter: grayscale(0) brightness(1); }
.film-frame:hover .film-cover img { transform: scale(1.025); }
.film-frame:hover .film-open, .film-frame:focus-visible .film-open { opacity: 1; transform: none; }
.film-dummy { flex: none; width: clamp(84px, 5vw, 128px); height: auto; display: block;
  overflow: visible; background: transparent; border: 0; box-shadow: none; color: #7a7e71;
}
.film-dummy::before, .film-dummy::after { display: none; }
.film-blank { height: var(--film-height); position: relative; border: 1px solid #404338;
  background: linear-gradient(125deg, #24271f, #1c1e19 65%, #282b22);
}
.film-blank::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; font: 300 24px 'Inter', sans-serif; color: #454a3c; }
.film-blank-label { display: block; padding-top: 20px; font: 8px 'Inter', sans-serif; letter-spacing: .15em; white-space: nowrap; color: #7a7e71; }
.film-controls { display: flex; align-items: center; gap: 24px; padding-top: 25px; }
.film-position { min-width: 86px; font: 11px 'Inter', sans-serif; letter-spacing: .1em; color: #d7dbce; }
.film-progress { flex: 1; height: 1px; background: #41443a; }
.film-progress span { display: block; height: 1px; width: 0; background: #d7dbce; }
.film-control-hint { font-size: 10px; color: #a3a69a; letter-spacing: .08em; }
.film-buttons { display: flex; gap: 8px; }
.film-buttons button { width: 44px; height: 44px; border: 1px solid #565a4d; border-radius: 50%; color: #e9eddf; transition: .2s; }
.film-buttons button:hover { background: #e9eddf; color: #161715; }
.film-buttons button:disabled { opacity: .25; }
#toolGrid { gap: 32px; }
#toolGrid article { border: 0; border-top: 1px solid var(--rule); padding: 20px 0 0; background: transparent; }
#toolGrid h3 { font-size: 23px; }

/* Architecture: consistently sized paired covers across the project list. */
.architecture-list { gap: 56px; counter-reset: project; }
.architecture-card-row { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: clamp(32px, 4vw, 72px); padding-bottom: 56px; counter-increment: project; }
.architecture-card-content::before { content: '0' counter(project) ' / ARCHITECTURE'; display: block; margin-bottom: 26px; font: 10px 'Inter', sans-serif; letter-spacing: .18em; color: var(--muted); }
.architecture-card-content > .flex { display: block; }
.architecture-card-content h3 { font-size: clamp(24px, 2vw, 34px); line-height: 1.55; }
.architecture-card-content > .flex > span { display: block; margin-top: 12px; }
.architecture-more { margin-top: 28px; padding-bottom: 8px; border-bottom: 1px solid #777; font-size: 11px; }
.architecture-cover { aspect-ratio: 2.45 / 1; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.architecture-cover-pair { grid-template-columns: minmax(0, .36fr) minmax(0, 1fr); gap: clamp(10px, 1.2vw, 22px); }
.architecture-cover img,
.architecture-cover-pair img:first-child,
.architecture-cover-pair img:last-child { width: 100%; height: 100%; min-width: 0; min-height: 0; aspect-ratio: auto; object-fit: cover; object-position: center; }
.sketch-wall { column-gap: 24px; }
.sketch-card { margin-bottom: 24px; padding: 12px; box-shadow: none; background: #fcfcfa; }
.sketch-meta { padding: 14px 0 2px; font-size: 9px; }
#awardList li { padding-block: 23px; }
.award-category { color: #73766d; font-size: 11px; }

/* Detail pages: a wider image opening and a consistent drawing sequence. */
.project-hero-section { padding-top: clamp(132px, 9vw, 174px); padding-bottom: 72px; }
.project-hero-section > div > .grid { grid-template-columns: .75fr 2fr; align-items: center; gap: clamp(32px, 4vw, 76px); }
.project-hero-section > div > .grid > div { grid-column: auto; min-width: 0; }
.project-hero-section h1 { font-size: clamp(40px, 4.3vw, 72px); line-height: 1.25; letter-spacing: -.045em; }
.project-cover-pair { grid-template-columns: .36fr 1fr; align-items: stretch; gap: clamp(10px, 1.2vw, 22px); }
.project-cover-frame { display: flex; flex-direction: column; border: 0; overflow: visible; }
.project-cover-primary .project-cover-image { aspect-ratio: auto; height: auto; object-fit: contain; }
.project-cover-secondary { position: relative; min-height: 0; }
.project-cover-secondary .project-cover-image { position: absolute; inset: 0 0 30px; width: 100%; height: calc(100% - 30px); aspect-ratio: auto; object-fit: cover; }
.project-cover-frame figcaption { font-size: 9px; letter-spacing: .06em; height: 30px; padding: 10px 0 0; }
.project-cover-secondary figcaption { margin-top: auto; }
.project-board-section { background: var(--paper); }
.project-board-section-alt { background: #eeefe9; }
.project-board-frame { border: 0; box-shadow: none; }
.project-board-frame figcaption { padding: 18px 0; background: var(--paper); font-size: 10px; }
.project-board-image:hover { transform: none; }
.project-facts div { padding-block: 14px; }

/* Leisure is presented as an image journal. */
.sport-main { border: 0; background: #eeefe9; grid-template-columns: 1.6fr 1fr; }
.sport-main-body { padding: clamp(26px, 4vw, 72px); }
.sport-main-body h3 { font-size: clamp(32px, 3vw, 52px); }
.sport-main-img { aspect-ratio: 3 / 2; }
#sportRest { gap: 32px; margin-top: 40px; }
#photoGrid { gap: 24px; }
#photoGrid > div { aspect-ratio: 4 / 5; }
#photoGrid > div:nth-child(3n + 2) { margin-top: 52px; }

/* Reading pages keep a text measure, while covers use the wider canvas. */
.reading-page header nav { max-width: var(--page-width); padding-inline: var(--page-gutter); }
.reading-page .max-w-3xl { max-width: 900px; }
.reading-page > section:first-of-type { padding-top: 148px; }
#workTitle { font-size: clamp(34px, 4vw, 64px); line-height: 1.45; }
#workCoverWrap { max-width: 1320px !important; }
.prose-reader { overflow-wrap: anywhere; }
.prose-reader table { display: block; overflow-x: auto; max-width: 100%; }
.prose-reader :is(th, td) { padding: 12px; border-bottom: 1px solid var(--rule); }
.prose-reader img { filter: none; }
.prose-reader pre { overflow-x: auto; }
#siteFooter { background: #20211e; }
#siteFooter > div:first-child { position: relative; padding-bottom: 96px; }
#siteFooter .font-serif { font-size: clamp(30px, 3.4vw, 54px); }
#siteFooter .site-motto {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 3.1vw, 50px);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1.15;
}
#siteFooter .space-y-2 { line-height: 1.9; }
.site-record {
  color: rgba(255,255,255,.46);
  font: inherit;
  letter-spacing: .04em;
  transition: color .2s ease;
}
.site-copyright { white-space: nowrap; }
#siteFooter .site-copyright {
  position: absolute;
  left: var(--page-gutter);
  right: var(--page-gutter);
  bottom: 28px;
  text-align: center;
}
.reading-page > footer .site-copyright { text-align: center; }
.site-record-separator { color: rgba(255,255,255,.25); }
.site-record:hover { color: rgba(255,255,255,.9); }
#localEditorBar { left: 16px; right: auto; width: fit-content; font-size: 10px; opacity: .85; max-width: calc(100vw - 32px); padding: 5px; }
#localEditorBar:hover, .local-editing #localEditorBar { opacity: 1; }
#localEditorBar .local-editor-title, #localEditorBar .local-editor-tip { display: none; }
body:not(.local-editing) #localEditorBar [data-editor-action="save"],
body:not(.local-editing) #localEditorBar [data-editor-action="reset"] { display: none; }
#localEditorBar:not([data-message])::after { display: none; }

@media (max-width: 1100px) {
  .architecture-card-row { grid-template-columns: 1.7fr 1fr; gap: 28px; }
  .project-hero-section > div > .grid { grid-template-columns: 1fr 1.7fr; }
  .project-cover-pair { grid-template-columns: .4fr 1fr; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 80px; }
  body header.fixed nav { height: 68px; }
  .page-intro { padding-top: 112px; padding-bottom: 44px; }
  .page-intro > div { display: block; }
  .page-intro > div > p:last-child { margin-top: 24px; }
  .page-intro > div > p:first-child { margin-bottom: 20px; }
  #top { min-height: 680px; }
  #top > .grid { display: block; padding-block: 64px 88px; }
  #heroGhost { font-size: 30vw; bottom: 12px; }
  #statGrid { gap: 32px 18px; padding-block: 40px; }
  #statGrid > div { text-align: left; padding-left: 16px; }
  #entryGrid { gap: 40px; }
  .entry-cover { aspect-ratio: 4 / 3; }
  .filmstrip-section { --frame-width: min(72vw, 310px); --film-gap: 16px; padding-top: 36px; }
  .film-heading-note { display: none; }
  .film-heading { padding-bottom: 24px; }
  .film-dummy { width: 105px; }
  .filmstrip-track { padding-block: 34px; }
  .film-caption { min-height: 92px; }
  .film-title { font-size: 20px; }
  .film-controls { gap: 14px; padding-top: 18px; }
  .film-control-hint { display: none; }
  .film-buttons button { width: 40px; height: 40px; }
  .architecture-card-row { grid-template-columns: 1fr; gap: 24px; padding-bottom: 36px; }
  .architecture-list { gap: 36px; }
  .architecture-card-content::before { margin-bottom: 12px; }
  .architecture-cover-pair { grid-template-columns: .34fr 1fr; }
  .architecture-more { margin-top: 20px; }
  .project-hero-section { padding-top: 112px; padding-bottom: 44px; }
  .project-hero-section > div > .grid { grid-template-columns: 1fr; gap: 40px; }
  .project-cover-pair { grid-template-columns: .34fr 1fr; }
  .project-cover-frame figcaption { font-size: 8px; letter-spacing: 0; overflow: hidden; }
  .sketch-wall { column-gap: 14px; }
  .sketch-card { padding: 8px; margin-bottom: 14px; }
  #awardList li { flex-wrap: wrap; gap: 8px; }
  #awardList li > span:last-child { width: 100%; justify-content: space-between; }
  #gameExpList li { gap: 12px; }
  #gameExpList li > span:last-child { gap: 10px; }
  #gameExpList .w-20 { width: 4rem; }
  .sport-main { grid-template-columns: 1fr; }
  #photoGrid { gap: 14px; }
  #photoGrid > div:nth-child(3n + 2) { margin-top: 0; }
  #photoGrid > div:nth-child(even) { margin-top: 24px; }
  .reading-page > section:first-of-type { padding-top: 112px; }
  #siteFooter > div:first-child { padding-block: 44px 86px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
