/* Course portfolio: proportions measured from the supplied portfolio video. */
:root { color-scheme: light; --paper: #fff; --ink: #171717; --muted: #676767; --line: #d9d9d6; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Helvetica Neue", "PingFang SC", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
figure, h1, h2, h3, p, ol, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
ol { list-style: none; padding: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #235f99; outline-offset: 5px; }
.skip-link { position: fixed; top: 8px; left: 12px; padding: 12px 20px; background: var(--ink); color: white; z-index: 20; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.book-nav { position: sticky; top: 0; z-index: 10; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 64px); background: rgb(255 255 255 / 96%); border-bottom: 1px solid #e9e9e6; }
.book-brand, .book-home { min-height: 44px; display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.book-home { gap: 12px; font-weight: 400; }
.book-location { color: var(--muted); font-size: 10px; }
.book-menu { position: relative; }
.book-menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 74px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 11px; }
.book-menu summary::-webkit-details-marker { display: none; }
.book-menu summary::after { content: '+'; font-size: 21px; font-weight: 300; }
.book-menu[open] summary::after { content: '−'; }
.book-menu-panel { position: absolute; right: 0; top: 50px; width: min(330px, calc(100vw - 36px)); padding: 16px 22px; background: white; box-shadow: 0 12px 50px #0002; border: 1px solid var(--line); }
.book-menu-panel a { display: flex; align-items: center; gap: 18px; min-height: 44px; font-size: 12px; }
.book-menu-panel a span { color: var(--muted); font-size: 10px; }
.book { width: min(1360px, 100%); margin-inline: auto; padding-top: clamp(20px, 3vw, 48px); }
.sheet { container-type: inline-size; position: relative; margin: 0 clamp(18px, 3vw, 48px); padding-block: 1.6% 4.6%; scroll-margin-top: 78px; }
.sheet::before, .sheet::after { content: ''; position: absolute; left: 0; width: 10px; height: 3px; background: var(--ink); }
.sheet::before { top: 0; box-shadow: calc(100cqw - 10px) 0 var(--ink); }
.sheet::after { bottom: 2.8%; box-shadow: calc(100cqw - 10px) 0 var(--ink); }
.sheet-meta { display: grid; grid-template-columns: 1fr 1fr auto; margin-left: 13.6%; margin-bottom: 1.4%; font-size: clamp(8px, .68cqw, 10px); line-height: 1.3; color: var(--muted); text-transform: uppercase; gap: 10px; }
.sheet-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 2.3%; margin-left: 13.6%; font-size: clamp(8px, .64cqw, 9px); line-height: 1.4; color: var(--muted); }
.portfolio-cover { padding-bottom: 5%; }
.portfolio-cover .sheet-meta { margin-left: 0; }
.portfolio-image { position: relative; overflow: hidden; height: 34cqw; background: #ece9e4; }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.portfolio-image span { position: absolute; bottom: 16px; left: 18px; color: white; font-size: clamp(9px, .8cqw, 12px); text-shadow: 0 1px 8px #0008; }
.portfolio-title { font-size: 13.8cqw; letter-spacing: .067em; font-weight: 500; line-height: 1.14; margin-top: 1.4%; }
.portfolio-title span { display: block; font-size: clamp(13px, 1.3cqw, 20px); letter-spacing: .08em; font-weight: 400; line-height: 2; }
.contents-sheet { padding-top: 2%; padding-bottom: 8%; }
.contents-layout { display: grid; grid-template-columns: 43% 1fr; gap: 7%; }
.contents-image { overflow: hidden; background: #eee; min-height: 34cqw; }
.contents-image img { width: 100%; height: 100%; max-height: 49cqw; object-fit: cover; }
.contents-copy h2 { font-size: 3.2cqw; font-weight: 600; letter-spacing: -.04em; margin-bottom: 4%; }
.contents-copy > p { font-size: clamp(11px, 1cqw, 14px); line-height: 1.8; color: var(--muted); max-width: 30em; margin-bottom: 6%; }
.contents-list a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; min-height: clamp(44px, 4cqw, 58px); font-size: clamp(11px, 1.1cqw, 16px); border-bottom: 1px solid #ededeb; }
.contents-list a:hover { color: #666; }
.contents-list span, .contents-list em { font-size: clamp(9px, .8cqw, 11px); color: var(--muted); font-style: normal; }
.course-project { margin-top: clamp(32px, 5vw, 80px); }
.project-cover { padding-bottom: 8%; }
.cover-layout { position: relative; }
.cover-art { margin-left: 13.6%; width: 86.4%; aspect-ratio: 1.9; position: relative; overflow: hidden; background: #e9e8e5; }
.cover-art img { width: 100%; height: 100%; object-fit: contain; }
.cover-art::after { content: ''; position: absolute; inset: 58% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / 13%)); pointer-events: none; }
.cover-title { position: absolute; left: 13.15%; bottom: 4.6%; z-index: 1; color: white; font-size: 9.3cqw; font-weight: 800; letter-spacing: -.065em; line-height: .9; white-space: nowrap; }
.cover-serial { position: absolute; left: 7.1%; bottom: 4%; width: 5%; font-size: clamp(12px, 2cqw, 28px); font-weight: 600; line-height: 1.12; text-align: right; }
.cover-serial span { display: block; }
.cover-caption { margin-left: 13.6%; padding-top: 1%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: clamp(9px, .83cqw, 12px); line-height: 1.4; font-weight: 500; }
.cover-caption small { font-size: inherit; font-weight: 400; }
.cover-bottom { margin-left: 13.6%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 9%; font-size: clamp(8px, .64cqw, 9px); line-height: 1.6; color: var(--muted); }
.ink-dark .cover-title { color: #171717; }
.ink-dark .cover-art::after { display: none; }
.project-panda .cover-art img { object-fit: cover; }
.project-hoop .cover-art { background: #dededc; }
.project-hydro .cover-art { background: #eeece8; }
.project-form .cover-art { background: #c6c0b8; }
.project-chair .cover-art { background: #f7f7f5; }
.project-chair .cover-art img { padding: 3% 10% 4% 20%; }
.project-cherry .cover-art img { object-fit: cover; }
.project-thermal .cover-art img { width: 135%; max-width: none; height: auto; position: absolute; top: 0; left: -27%; }
.project-rail .cover-art { background: #fbfbfa; }
.project-rail .cover-art img { padding: 1% 4%; }
.project-vehicle .cover-art { background: #fafafa; }
.project-vehicle .cover-title { font-size: 8.6cqw; }
.spread-heading { position: absolute; top: 4.5%; left: 0; font-size: 2.2cqw; font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.about-layout { display: grid; grid-template-columns: 43% 1fr; gap: 7%; min-height: 49cqw; }
.about-copy { margin-left: 31.6%; padding-top: 27%; padding-bottom: 12%; }
.about-copy h3 { font-size: clamp(18px, 2cqw, 29px); font-weight: 500; letter-spacing: -.03em; line-height: 1.3; margin-bottom: 7%; }
.about-copy p { font-size: clamp(12px, 1cqw, 15px); line-height: 1.85; margin-bottom: 7%; text-align: justify; }
.project-facts { margin-top: 10%; font-size: clamp(10px, .82cqw, 12px); line-height: 1.8; }
.project-facts > div { margin-bottom: 6%; }
.project-facts dt { color: var(--muted); margin-bottom: 2%; font-size: clamp(9px, .7cqw, 10px); }
.about-gallery { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; min-width: 0; }
.media { position: relative; min-width: 0; overflow: hidden; background: #f3f3f0; }
.media a { display: block; width: 100%; height: 100%; min-height: 44px; }
.media img { width: 100%; height: 100%; object-fit: contain; }
.media figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: clamp(9px, .72cqw, 11px); line-height: 1.5; color: #171717; background: rgb(255 255 255 / 92%); pointer-events: none; }
.media figcaption::after { content: '↗'; flex: 0 0 auto; font-size: 16px; }
.media a:hover img { opacity: .93; }
.about-gallery .media { min-height: 23cqw; }
.about-gallery .media img { position: absolute; inset: 0; padding-bottom: 30px; }
.media--scene img { object-fit: cover; }
.media--board-top img { position: absolute; height: auto; top: 0; padding: 0; }
.process-sheet { padding-top: 1.6%; }
.process-sheet .spread-heading { position: static; margin-top: 3%; margin-bottom: 4%; }
.process-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3%; align-items: start; }
.process-layout .media { aspect-ratio: 1.04; }
.process-layout .media img { position: absolute; inset: 0; padding: 2% 2% 30px; }
.process-layout .media--portrait { aspect-ratio: .7; }
.process-copy { margin-left: 13.6%; display: grid; grid-template-columns: 1fr 1fr; gap: 7%; padding-top: 4%; font-size: clamp(11px, .95cqw, 14px); line-height: 1.85; }
.process-copy h3 { font-size: clamp(14px, 1.4cqw, 20px); font-weight: 500; margin-bottom: .7em; }
.source-note { font-size: clamp(10px, .8cqw, 12px); color: var(--muted); line-height: 1.8; }
.source-note a { text-decoration: underline; text-underline-offset: 3px; }
.project-form .about-gallery .media:first-child img { object-fit: cover; }
.project-hydro .about-gallery .media:first-child img { object-fit: cover; }
.project-thermal .about-gallery .media:last-child img { object-fit: contain; }
.project-rail .cover-art img { width: 125%; max-width: none; height: auto; position: absolute; top: -22%; left: -12.5%; padding: 0; }
.project-rail .media--cad-detail img { width: 210%; max-width: none; height: auto; left: -51%; top: -28%; padding: 0; }
.project-rail .media--cad-side img { width: 190%; max-width: none; height: auto; left: -40%; top: -16%; padding: 0; }
.book-outro { padding: clamp(60px, 12vw, 160px) clamp(18px, 3vw, 48px) 70px; }
.book-outro h2 { font-size: clamp(44px, 9vw, 124px); letter-spacing: -.07em; line-height: .95; font-weight: 500; margin-bottom: 40px; }
.book-outro a { display: inline-flex; min-height: 44px; align-items: center; gap: 40px; border-bottom: 1px solid var(--ink); font-size: 13px; }
.book-footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 24px clamp(18px, 4vw, 64px); font-size: 10px; color: var(--muted); }
.image-viewer { padding: 0; border: 0; background: #f7f7f5; width: min(94vw, 1600px); max-width: none; max-height: 94dvh; }
.image-viewer::backdrop { background: rgb(0 0 0 / 80%); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 6px 12px 6px 20px; }
.viewer-caption { font-size: 12px; line-height: 1.5; }
.viewer-close { width: 44px; height: 44px; flex: 0 0 auto; border: 0; background: transparent; font-size: 28px; font-weight: 300; cursor: pointer; }
.viewer-image { width: 100%; height: auto; max-height: calc(94dvh - 58px); object-fit: contain; }
/* A brief cover hold, then the next spread follows the native document scroll. */
.has-scroll-motion .project-cover { padding-block: 0; }
.has-scroll-motion .cover-stage { position: relative; padding-block: 1.6% 8%; }
.has-scroll-motion .project-cover::before, .has-scroll-motion .project-cover::after { display: none; }
.has-scroll-motion .cover-stage::before, .has-scroll-motion .cover-stage::after { content: ''; position: absolute; left: 0; width: 10px; height: 3px; background: var(--ink); box-shadow: calc(100cqw - 10px) 0 var(--ink); }
.has-scroll-motion .cover-stage::before { top: 0; }
.has-scroll-motion .cover-stage::after { bottom: 2.8%; }
.has-scroll-motion .project-cover.is-pinned { height: var(--pin-height); }
.has-scroll-motion .is-pinned .cover-stage { position: sticky; top: 78px; padding-bottom: 3%; }
.has-scroll-motion .is-pinned .cover-bottom { padding-top: 4%; }
.has-scroll-motion .cover-layout { overflow: clip; }
.has-scroll-motion .cover-art { transform: translate3d(0, var(--art-y, 0px), 0) scale(var(--art-scale, 1)); clip-path: inset(0 0 var(--art-clip, 0%) 0); }
.has-scroll-motion .cover-title { transform: translate3d(0, var(--title-y, 0px), 0); }
.has-scroll-motion .cover-serial { transform: translate3d(0, var(--serial-y, 0px), 0); }
.has-scroll-motion .cover-caption { transform: translate3d(0, var(--caption-y, 0px), 0); }
.has-scroll-motion [data-scroll-reveal] { transform: translate3d(0, var(--reveal-y, 0px), 0); opacity: var(--reveal-opacity, 1); }
@media (min-width: 1600px) { .book { padding-top: 54px; } }
@media (max-width: 700px) {
  html { scroll-padding-top: 68px; }
  .book-nav { height: 54px; }
  .book-location { display: none; }
  .book-brand { font-size: 9px; }
  .book-home { font-size: 10px; }
  .book { padding-top: 22px; }
  .sheet { margin-inline: 18px; padding-bottom: 9%; }
  .sheet-meta { font-size: 8px; margin-bottom: 3%; grid-template-columns: 1fr auto; }
  .sheet-meta span:nth-child(2) { display: none; }
  .sheet::before, .sheet::after { width: 7px; height: 2px; box-shadow: calc(100cqw - 7px) 0 var(--ink); }
  .portfolio-image { height: 61cqw; }
  .portfolio-image span { font-size: 9px; left: 12px; bottom: 12px; }
  .portfolio-title { font-size: 13.7cqw; letter-spacing: .05em; margin-block: 2% 8%; }
  .portfolio-title span { font-size: 12px; letter-spacing: .04em; }
  .contents-layout { grid-template-columns: 28% 1fr; gap: 7%; }
  .contents-image { min-height: 100%; }
  .contents-image img { max-height: none; height: 100%; object-fit: cover; }
  .contents-copy h2 { font-size: 23px; }
  .contents-copy > p { font-size: 11px; margin-block: 12px; line-height: 1.8; }
  .contents-list a { grid-template-columns: 18px 1fr; gap: 7px; font-size: 11px; min-height: 44px; line-height: 1.45; }
  .contents-list em { display: none; }
  .course-project { margin-top: 48px; }
  .project-cover { padding-bottom: 15%; }
  .cover-art { aspect-ratio: 1.45; }
  .cover-title { font-size: 10.6cqw; bottom: 8%; }
  .project-vehicle .cover-title { font-size: 9.1cqw; }
  .cover-serial { left: 3%; width: 8%; bottom: 8%; font-size: 14px; }
  .cover-caption { grid-template-columns: 1fr; gap: 3px; padding-top: 3%; font-size: 10px; }
  .cover-caption small { font-size: 9px; color: var(--muted); }
  .cover-bottom { padding-top: 9%; font-size: 8px; }
  .project-thermal .cover-art { aspect-ratio: 1.9; }
  .spread-heading { position: static; font-size: 22px; margin-block: 28px 22px; }
  .about-layout { display: block; }
  .about-copy { margin-left: 13.6%; padding: 0 0 20px; }
  .about-copy h3 { font-size: 23px; margin-bottom: 18px; }
  .about-copy p { font-size: 13px; line-height: 1.85; margin-bottom: 16px; }
  .project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block: 24px 5px; font-size: 11px; }
  .project-facts dt { font-size: 10px; margin-bottom: 6px; }
  .about-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 6px; }
  .about-gallery .media { height: 51cqw; min-height: 0; }
  .media figcaption { padding: 8px; font-size: 9px; min-height: 38px; }
  .about-gallery .media img { padding-bottom: 38px; }
  .about-gallery .media--board-top img { padding: 0; }
  .process-sheet .spread-heading { font-size: 22px; margin-top: 28px; margin-bottom: 22px; }
  .process-layout { gap: 6px; }
  .process-layout .media { aspect-ratio: .78; }
  .process-layout .media img { padding: 2% 2% 38px; }
  .process-copy { margin-left: 13.6%; display: block; padding-top: 22px; font-size: 12px; }
  .process-copy h3 { font-size: 17px; }
  .source-note { font-size: 10px; margin-top: 16px; }
  .sheet-footer { font-size: 8px; padding-top: 6%; }
  .has-scroll-motion .cover-stage { padding-block: 1.6% 15%; }
  .has-scroll-motion .cover-stage::before, .has-scroll-motion .cover-stage::after { width: 7px; height: 2px; box-shadow: calc(100cqw - 7px) 0 var(--ink); }
  .project-thermal .process-layout { grid-template-columns: 1fr; gap: 14px; }
  .project-thermal .process-layout .media { aspect-ratio: .707; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-scroll-motion .cover-art, .has-scroll-motion .cover-title, .has-scroll-motion .cover-serial, .has-scroll-motion .cover-caption, .has-scroll-motion [data-scroll-reveal] { transform: none; clip-path: none; opacity: 1; }
}
