@font-face {
  font-family: Geist;
  src: url('/assets/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Bricolage;
  src: url('/assets/bricolage.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #efede8;
  --ink: #202725;
  --muted: #515952;
  --line: #c9c9bd;
  --accent: #426d58;
  --gutter: clamp(18px, 4.25vw, 72px);
  --content: 1540px;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 Geist, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid #a5d0ad; outline-offset: 4px; }
button { font: inherit; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 5; background: white; padding: 10px; }
.skip:focus { top: 10px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, main, .site-footer { width: min(calc(100% - 2 * var(--gutter)), var(--content)); margin-inline: auto; }
.header-inner { min-height: 67px; display: flex; align-items: center; gap: 12px; }
.header-inner nav { margin-left: auto; display: flex; gap: clamp(12px, 2.7vw, 34px); }
.header-inner a { text-decoration: none; font-weight: 600; }
.header-inner nav a { color: var(--muted); padding-block: 19px; }
.header-inner nav a[aria-current], .header-inner nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.mark { font: 800 27px/1 Bricolage, Geist, sans-serif; letter-spacing: -.09em; }
.mark span, h1 span { color: var(--accent); }
.resume { margin-left: clamp(2px, 1.6vw, 18px); padding: 7px 12px; border: 1px solid #a9aca2; border-radius: 5px; }
.resume:hover { background: #dedfd5; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Bricolage, Geist, sans-serif; line-height: .98; letter-spacing: -.052em; }
h1 { font-size: clamp(52px, 7.1vw, 117px); font-weight: 700; }
h2 { font-size: clamp(34px, 4vw, 58px); font-weight: 650; }
.career { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2.4fr); gap: clamp(20px, 6vw, 92px); padding-block: 86px 68px; }
.chapter { border-top: 1px solid var(--line); padding: 22px 0 25px; display: grid; grid-template-columns: clamp(94px, 12vw, 150px) 1fr; gap: 16px; }
.chapter:last-child { border-bottom: 1px solid var(--line); }
.chapter-date, .chapter-org { color: var(--muted); font-weight: 635; font-size: 13px; }
.chapter-date span { display: block; font-weight: 450; }
.chapter h3 { margin-block: 2px 6px; font-size: 24px; line-height: 1.16; letter-spacing: -.04em; font-weight: 665; }
.chapter-body > p:not(.chapter-org) { margin-bottom: 9px; }
.chapter a, .detail a, .section-nav a { text-underline-offset: 3px; font-weight: 600; }
.reader { max-width: 875px; margin-inline: auto; padding-block: 55px 85px; }
.reading-intro h1, .detail h1 { margin-block: 12px 19px; }
.reading-intro p, .detail-intro { font-size: clamp(16px, 2vw, 20px); }
.section-nav { display: flex; flex-wrap: wrap; gap: 17px; padding: 24px 0; }
.reading-section { padding-top: 47px; }
.reading-section h2 { margin-bottom: 26px; }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 30px; margin: 0; }
.skills dt, .schools h3 { font-weight: 650; }
.skills dd { margin: 0; color: var(--muted); }
.schools { display: grid; gap: 14px; }
.subcase { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 27px; }
.subcase h2 { font-size: clamp(29px, 4vw, 41px); margin-bottom: 15px; }
.subcase p { margin-bottom: 10px; }
.site-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 26px 0 46px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer p { color: var(--muted); }
.art-credits { margin-top: 12px; max-width: 34em; font-size: 12px; color: var(--muted); }
.art-credits summary { cursor: pointer; }
.art-credits p { margin-top: 5px; }

:root {
  --header-height: 62px;
  --studio-gutter: var(--gutter);
}
body:has(.journey) .site-header {
  position: sticky;
  z-index: 4;
  top: 0;
  background: var(--paper);
}
.header-inner { min-height: calc(var(--header-height) - 1px); }
.header-inner nav a { padding-block: 14px; }
.journey {
  --chapter-travel: clamp(330px, 68svh, 680px);
  position: relative;
  overflow-anchor: none;
}
.journey::after { content: ""; display: block; height: calc(var(--stops, 2) * var(--chapter-travel)); }
.journey-pin {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  height: calc(100svh - var(--header-height));
  max-height: 1100px;
  position: sticky;
  top: var(--header-height);
  background: var(--paper);
}
.studio-intro {
  padding-block: clamp(12px, 2.2svh, 25px) clamp(12px, 2svh, 21px);
  flex: none;
  display: grid;
}
.story-content { grid-area: 1 / 1; min-inline-size: 0; }
.story-space { visibility: hidden; pointer-events: none; }
.story-period {
  color: var(--accent);
  font-size: 11px;
  font-weight: 710;
  letter-spacing: .067em;
  text-transform: uppercase;
}
.studio-intro h1 { font-size: clamp(44px, 5.25vw, 90px); margin: 3px 0 7px; overflow-wrap: break-word; }
.story-line { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 13px; color: var(--muted); }
.story-line p { line-height: 1.37; }
.story-line strong { color: var(--ink); font-weight: 650; }
.story-line button {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.stage {
  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  min-height: 130px;
  overflow: hidden;
  border-radius: 10px;
  background: #293331;
}
.viewport, .cover, #room { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewport { touch-action: pan-y pinch-zoom; cursor: grab; }
.viewport:active { cursor: grabbing; }
.viewport:focus-visible { outline-offset: -3px; }
.cover { display: block; object-fit: cover; }
.cover.blend, #room { opacity: 0; pointer-events: none; }
/* The still picture shows at once; the live scene fades in over it when ready. */
#room { transition: opacity .45s ease; }
.stage[data-render="live"] #room { opacity: 1; }
.stage[data-render="live"] .cover { visibility: hidden; transition: visibility 0s .5s; }
.stage[data-inspect="true"] .viewport { cursor: pointer; }
.sr-only, .focus-control:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.focus-control, .close-inspect {
  position: absolute;
  bottom: 12px;
  right: 13px;
  z-index: 2;
  border: 1px solid #dbe6df69;
  border-radius: 22px;
  background: #21362de6;
  color: #fffaf1;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 630;
  cursor: pointer;
}
.timeline-controls { flex: none; padding: 6px 0 11px; }
.timeline-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; line-height: 1; font-size: 12px; }
.timeline-meta label { font-weight: 650; }
.timeline-position { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.timeline-position output { font-variant-numeric: tabular-nums; }
#sound { border: 0; border-radius: 50%; padding: 5px; width: 31px; height: 31px; background: none; color: var(--accent); cursor: pointer; }
#sound:hover { background: #dee3d9; }
#sound:disabled { visibility: hidden; }
#sound svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#chapter-range {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 21px;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  color: var(--accent);
}
#chapter-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent) var(--fill, 0%), #c6cabf var(--fill, 0%));
}
#chapter-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -5px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  outline: 1px solid var(--accent);
  background: var(--accent);
}
#chapter-range::-moz-range-track { height: 3px; border-radius: 3px; background: #c6cabf; }
#chapter-range::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--accent); }
#chapter-range::-moz-range-thumb { width: 11px; height: 11px; border: 2px solid var(--paper); outline: 1px solid var(--accent); border-radius: 50%; background: var(--accent); }
.chapter-tabs { display: flex; justify-content: space-between; align-items: center; }
.chapter-tabs button { border: 0; background: none; padding: 3px 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.chapter-tabs button { display: grid; justify-items: center; line-height: 1.2; }
.chapter-tabs button small { font-size: 10.5px; font-weight: 500; color: #80867c; }
.chapter-tabs button:first-child { justify-items: start; }
.chapter-tabs button:last-child { justify-items: end; }
.chapter-tabs button[aria-current="step"] { color: var(--accent); font-weight: 730; }
.chapter-tabs button[aria-current="step"] small { color: var(--accent); }
.chapter-tabs button:hover { text-decoration: underline; }
.chapter-picker { display: none; }
.reading-sheet {
  position: fixed;
  margin: auto auto 0;
  padding: 0;
  width: min(630px, 100%);
  max-width: 100%;
  max-height: min(74svh, 580px);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  background: #f1eee6;
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.reading-sheet::backdrop { background: #111b1768; }
.sheet-inner { padding: clamp(21px, 6vw, 42px); display: grid; gap: 16px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-inner h2 { font-size: clamp(32px, 6vw, 52px); }
.sheet-inner a { font-weight: 650; color: var(--accent); text-underline-offset: 4px; }
.close-sheet { cursor: pointer; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); padding: 7px 10px; font-size: 12px; font-weight: 650; }
body:has(.reading-sheet[open]) { overflow: hidden; }
.skill-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.skill-tags li { font-size: 12px; font-weight: 620; line-height: 1.2; padding: 4px 9px; border-radius: 99px; background: #e1e4d9; color: #34413b; }
.panel-detail, .detail-body { display: grid; gap: 12px; align-content: start; }
.panel-detail { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.panel-detail h2, .detail-body h2 { font-size: clamp(27px, 2.5vw, 38px); }
.detail-lead { color: var(--accent); font-size: 13px; font-weight: 650; }
.detail-links { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; }
.detail-links a { font-weight: 650; color: var(--accent); text-underline-offset: 3px; }
.panel-detail .skills, .detail-body .skills { grid-template-columns: 1fr; gap: 11px; }

@media (min-width: 681px) {
  .journey-pin {
    display: grid;
    grid-template-columns: minmax(290px, 27%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: clamp(22px, 2.6vw, 46px);
  }
  .story-panel {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: clamp(14px, 3svh, 34px) 6px 22px 0;
  }
  .stage { grid-column: 2; grid-row: 1; margin-top: clamp(10px, 2svh, 22px); }
  .timeline-controls { grid-column: 2; grid-row: 2; }
  .studio-intro { padding-block: 0; }
  .studio-intro h1 { font-size: clamp(40px, 3.9vw, 68px); margin: 6px 0 12px; }
  .story-line { display: block; }
  .story-line strong { display: block; margin-bottom: 5px; }
  .story-line button { margin-top: 12px; }
}

@media (max-width: 680px) {
  :root { --header-height: 53px; }
  .header-inner nav a { font-size: 13px; padding-block: 11px; }
  .header-inner nav { gap: 13px; }
  .resume { padding-inline: 8px; font-size: 13px; }
  .journey { --chapter-travel: clamp(292px, 62svh, 560px); }
  .journey-pin { min-height: 385px; }
  .studio-intro { padding-block: 10px 12px; min-height: 133px; }
  .studio-intro h1 { font-size: clamp(32px, 8.2vw, 46px); margin: 4px 0 5px; }
  .story-line { display: block; font-size: 13px; }
  .story-line strong { display: block; }
  .story-line button { display: inline-block; margin-top: 2px; font-size: 12px; }
  .stage { margin-inline: calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); border-radius: 0; min-height: 160px; }
  .timeline-controls { padding-bottom: max(7px, env(safe-area-inset-bottom)); }
  .timeline-meta { font-size: 11px; }
  .chapter-tabs { display: none; }
  .story-panel { display: contents; }
  .panel-detail { display: none !important; }
  .skill-tags { margin-top: 7px; gap: 5px; }
  .skill-tags li { font-size: 11px; padding: 3px 8px; }
  .chapter-picker { display: flex; justify-content: space-between; gap: 13px; }
  .chapter-picker button, .chapter-picker select {
    border: 1px solid #ced3c7;
    border-radius: 5px;
    background: #e5e9df;
    color: var(--ink);
    min-height: 34px;
    cursor: pointer;
  }
  .chapter-picker button { width: 41px; font: 660 21px/1 Geist, system-ui; }
  .chapter-picker button:disabled { opacity: .42; }
  .chapter-picker select { flex: 1; max-width: 225px; min-width: 0; font: 635 12px Geist, system-ui; text-align: center; padding-inline: 8px; }
  .career { grid-template-columns: 1fr; padding-block: 48px; }
  .site-footer { display: grid; }
}
@media (max-height: 590px) and (orientation: landscape) {
  :root { --header-height: 44px; }
  .journey-pin { min-height: 300px; }
  .studio-intro { min-height: 0; padding-block: 5px 8px; }
  .studio-intro h1 { font-size: 31px; margin-block: 2px; }
  .stage { min-height: 100px; }
  .timeline-controls { padding-block: 2px 6px; }
}
