/* The island shares the portfolio’s self-hosted type and theme tokens. */
:root {
  --quest-display: var(--display);
  --quest-body: var(--body);
}
.quest-shell { font-family: var(--quest-body); background: var(--bg); color: var(--ink); }
.quest-shell :where(p) { text-wrap: pretty; }
.quest-shell .site-header { background: var(--bg); border-color: var(--line); }
.quest-shell .brand { font-weight: 600; letter-spacing: -.03em; }
.quest-shell .nav-world svg, .quest-button svg, .island-pass svg {
  width: 1.22em; height: 1.22em; flex: none;
}
.quest-shell .nav-world { color: var(--accent-ink); }
.quest-shell .nav-links [aria-current="page"] { text-decoration: underline; text-underline-offset: .43em; }
.quest-shell .nav-contact { background: var(--action); color: #090909; padding-inline: .85rem; border-radius: 3px; }
.quest-shell .theme-toggle { color: var(--ink); }
.quest-cover {
  --accent-ink: #f7b79e; --sky-ink: #9cc9ee; --pink: #f3a2d9; --mint-ink: #9ad3b2;
  position: relative; isolation: isolate; overflow: hidden;
  color: #eeeee8; background: #090909; border-bottom: 1px solid #373831;
  view-timeline: --island-cover block;
}
.quest-landscape { position: absolute; inset: 0 0 0 14%; z-index: -2; overflow: hidden; }
.island-print, .island-print picture, .island-lights { position: absolute; inset: 0; width: 100%; height: 100%; }
.island-print {
  transform: translate3d(var(--art-x,0px),var(--art-y,0px),0) scale(1.035);
  transition: transform 650ms var(--ease-out);
}
.quest-landscape img { display: block; height: 100%; width: 100%; object-fit: cover; object-position: center; }
.island-lights { opacity: 0; pointer-events: none; }
.quest-cover[data-running] .island-lights { opacity: 1; }
.lights-mobile { display: none; }
.light-thread { stroke-linecap: round; stroke-width: 1; stroke-dasharray: 12 120; stroke-dashoffset: 16; }
.sky-thread { stroke-width: .68; }
.light-thread, .lighthouse-glow { animation: island-thread 8s ease-in-out infinite paused; }
.sky-thread.blue { animation-delay: -4s; }
.sculpture-thread { animation-duration: 5.6s; }
.sculpture-thread.copper { animation-delay: -2.8s; }
.lighthouse-glow { animation: island-lens 6s ease-in-out infinite paused; }
.quest-cover[data-running="true"] :is(.light-thread,.lighthouse-glow) { animation-play-state: running; }
@keyframes island-thread {
  0% { opacity: 0; stroke-dashoffset: 14; }
  14% { opacity: .85; }
  65% { opacity: .7; }
  80%, 100% { opacity: 0; stroke-dashoffset: -104; }
}
@keyframes island-lens { 0%, 72%, 100% { opacity: .15; } 36% { opacity: .95; } }
.quest-cover::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg,#090909 5%,rgba(9,9,9,.98) 23%,rgba(9,9,9,.89) 34%,rgba(9,9,9,.53) 46%,transparent 65%),
              linear-gradient(0deg,rgba(9,9,9,.34),transparent 23%);
}
.quest-cover::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('constellation.svg') center / cover; opacity: 0;
  transition: opacity 460ms ease;
}
.constellation-mode .quest-cover::after { opacity: .88; }
.constellation-mode .quest-cover h1 { color: var(--pink); }
.quest-cover-inner { min-height: clamp(490px,41vw,690px); display: flex; align-items: center; padding-block: clamp(3.6rem,5vw,6.5rem); }
.cover-copy { width: min(46%,40rem); }
.cover-byline, .quest-kicker, .art-kind, .island-kind {
  font: 600 .79rem/1.4 var(--quest-body); letter-spacing: .105em; text-transform: uppercase;
}
.cover-byline { color: #dddcd5; }
.cover-byline span { margin-inline: .5em; color: #f7b79e; }
.quest-cover h1, .collection-heading h2, .archive-head h1,
.island-page h1, .island-page h2 {
  font-family: var(--quest-display); font-weight: 700; letter-spacing: -.025em;
}
.quest-cover h1 {
  font-size: clamp(5.65rem,13.45vw,12.3rem); line-height: .98; letter-spacing: -.045em;
  margin: .08em 0 .11em -.026em;
}
.quest-cover .name-letters { vertical-align: top; }
.quest-cover .name-letters > span { --tint: var(--accent-ink); --lift: -.045em; transform-origin: center 80%; }
.quest-cover .name-letters > span:nth-child(2) { --tint: var(--sky-ink); --lift: -.085em; }
.quest-cover .name-letters > span:nth-child(3) { --tint: var(--pink); --lift: -.06em; }
.quest-cover .name-letters > span:nth-child(4) { --tint: var(--mint-ink); --lift: -.09em; }
.quest-cover .name-arriving > span { animation-name: samu-arrive; animation-duration: 720ms; }
@keyframes samu-arrive {
  0% { opacity: .1; color: var(--tint); transform: translateY(.23em) rotate(2deg); }
  58% { opacity: 1; }
  74% { transform: translateY(-.025em) rotate(-.45deg); }
  100% { opacity: 1; transform: none; }
}
.quest-cover .name-trigger:focus-visible .name-letters > span { color: var(--tint); transform: translateY(var(--lift)); }
@media (hover: hover) and (pointer: fine) {
  .quest-cover .name-trigger:hover .name-letters > span { color: var(--tint); transform: translateY(var(--lift)); }
}
.collection-heading em, .archive-head em { font-style: normal; }
.exhibit[data-place="field-station"] .art-kind { color: var(--mint-ink); }
.exhibit[data-place="stage"] .art-kind { color: var(--pink); }
.exhibit[data-place="workshop"] .art-kind { color: var(--sky-ink); }
.quest-cover .hero-role { max-width: 25ch; margin: 0 0 .65rem; font-size: clamp(1.65rem,2.4vw,2.35rem); }
.quest-cover .hero-intro { max-width: 42ch; margin: 0; font-size: clamp(1rem,1.2vw,1.13rem); line-height: 1.5; color: #deded7; }
.quest-actions { display: flex; gap: .7rem 1.1rem; align-items: center; flex-wrap: wrap; margin-top: 1.45rem; }
.quest-button {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .72rem 1.12rem; border: 1px solid transparent; border-radius: 5px;
  font: 600 .94rem/1.3 var(--quest-body); text-decoration: none; cursor: pointer;
}
.quest-button.primary {
  color: #211a17; border-color: #ffd5c4;
  background: linear-gradient(145deg,#ffe3d6,#f7b79e 60%,#f2b4ad);
  box-shadow: inset 0 1px 0 #ffebe1, 0 3px 12px #030f232b;
}
.quest-button.primary:hover { background: #ffd9c5; color: #201917; }
.quest-button.glass { color: #eeeee8; background: #17181ae8; border-color: #939999; }
.quest-button.glass:hover { background: #2e3031; color: #fff; border-color: #eeeee8; }
.quest-button.cover-cv { color: #eeeee8; padding-inline: .28rem; text-decoration: underline; text-underline-offset: .3em; }
.quest-button.cover-cv:hover, .quest-button.cover-cv:focus-visible { color: var(--accent-ink); }
.cover-cv svg { transition: transform var(--motion-base) var(--ease-out); }
.cover-cv:is(:hover,:focus-visible) svg { transform: translateY(2px); }
.cover-art-controls { position: absolute; display: flex; align-items: center; right: clamp(1rem,3.2vw,3.5rem); bottom: 1.25rem; gap: .4rem; }
.cover-art-controls :is(.quest-button,.art-motion-toggle) {
  color: #eeeee8; background: #101115e8; border: 1px solid #979991; border-radius: 3px; min-height: 44px;
}
.cover-art-controls .quest-button { padding: .5rem .85rem; font-size: .875rem; }
.cover-art-controls .art-motion-toggle { width: 44px; padding: 0; }
.cover-art-controls .art-motion-toggle:is(:hover,:focus-visible) { color: var(--accent-ink); border-color: currentColor; }
.cover-art-controls .art-motion-toggle svg { width: 18px; height: 18px; }
.quest-kicker { color: var(--accent-ink,#f7b79e); margin-bottom: .75rem; }
.quest-selected { padding-block: clamp(3.1rem,5.1vw,6rem) clamp(3.5rem,6vw,6.5rem); }
.collection-heading, .archive-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.collection-heading { margin-bottom: 1.8rem; }
.collection-heading h2, .archive-head h1 { font-size: clamp(3.15rem,5.65vw,6.35rem); line-height: .99; }
.collection-heading em, .archive-head em { color: var(--accent-ink); }
.underlink, .exhibit-action {
  color: var(--accent-ink); display: inline-flex; align-items: center; min-height: 40px;
  font: 600 .97rem/1.35 var(--quest-body); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: .3em;
}
.exhibition { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 2.3rem 1.45rem; }
.exhibit { grid-column: span 3; min-width: 0; }
.exhibit:nth-child(1), .exhibit:nth-child(2) { grid-column: span 6; }
.exhibit > a { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.exhibit-art, .record-art { overflow: hidden; background: var(--surface); }
.exhibit-art { aspect-ratio: 1.82; border-radius: 4px; border: 1px solid var(--line); }
.exhibit:nth-child(-n+2) .exhibit-art { aspect-ratio: 2.04; }
.exhibit-art img, .record-art img { display: block; height: 100%; width: 100%; object-fit: cover; }
.exhibit-art img { transition: transform .35s ease; }
.exhibit > a:hover .exhibit-art img, .exhibit > a:focus-visible .exhibit-art img { transform: scale(1.025); }
.exhibit-caption { padding-top: 1rem; }
.art-kind { color: var(--accent-ink); font-size: .76rem; letter-spacing: .085em; }
.exhibit h3 { font-family: var(--quest-body); font-weight: 500; font-size: clamp(1.38rem,1.9vw,2.1rem); letter-spacing: -.045em; margin: .26rem 0 .42rem; line-height: 1.1; }
.exhibit:nth-child(-n+2) h3 { font-size: clamp(2rem,3vw,3.1rem); }
.exhibit-summary, .record-summary { color: var(--muted); font-size: 1rem; line-height: 1.53; }
.exhibit-summary { max-width: 58ch; }
.exhibit-action { margin-top: .25rem; font-size: .9rem; }
.quest-career { align-items: center; }
.quest-career h2 { margin-bottom: 1rem; }
.quest-career .hero-art { min-width: 0; overflow: clip; view-timeline: --hero block; }
.quest-career .quest-kicker { font-size: .8rem; color: var(--accent-ink); }
.quest-shell .about-photo { transform: none; }
.archive-main { padding-block: clamp(3.2rem,6vw,6rem) 6rem; min-height: 75vh; }
.archive-head { align-items: center; padding-bottom: 2.2rem; }
.archive-head h1 { margin: .12em 0 .17em; }
.archive-head > div > p:last-child { color: var(--muted); font-size: 1.1rem; max-width: 37em; }
.island-pass {
  display: grid; align-items: center; grid-template-columns: 87px 1fr 1.2rem; gap: .85rem;
  padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 5px;
  color: var(--ink); text-decoration: none; background: var(--surface);
}
.island-pass:hover { color: var(--accent-ink); border-color: currentColor; }
.island-pass img { width: 87px; height: 61px; object-fit: cover; border-radius: 2px; }
.island-pass span { font-size: .78rem; color: var(--muted); }
.island-pass strong { display: block; color: var(--ink); font-weight: 600; font-size: .98rem; }
.archive-controls { border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .65rem 0; }
.filter-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .75rem; }
.filter-buttons button, #clear-index {
  background: none; border: 0; color: var(--muted); cursor: pointer; font: 500 .92rem/1.35 var(--quest-body);
  padding: .65rem .12rem; min-height: 42px;
}
.filter-buttons button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px var(--accent-ink); }
.filter-buttons button:hover, #clear-index { color: var(--accent-ink); }
.index-search { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line); border-radius: 3px; padding-inline: .7rem; background: var(--surface); }
.index-search svg { width: 18px; color: var(--muted); }
.index-search input { min-height: 41px; width: 9.4rem; border: 0; background: transparent; color: var(--ink); font: 400 1rem var(--quest-body); }
.index-search input::placeholder { color: var(--muted); }
.index-status { display: flex; justify-content: space-between; align-items: center; min-height: 3.55rem; color: var(--muted); font-size: .91rem; }
.catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 clamp(1.4rem,3vw,3rem); }
.project-record { display: grid; grid-template-columns: clamp(68px,8.2vw,135px) minmax(0,1fr); gap: 1.2rem; border-top: 1px solid var(--line); padding: 1.45rem 0 1.55rem; scroll-margin-top: 6.5rem; }
.record-art { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; }
.record-art img { min-width: 0; }
.record-art.symbol-art { background: linear-gradient(140deg,#272826,#242725 40%,#292932); color: #9cc9ee; }
.place-icon { width: 2.6rem; height: 2.6rem; }
.record-body h2 { font: 550 clamp(1.4rem,2vw,1.83rem)/1.14 var(--quest-body); letter-spacing: -.04em; margin: .32rem 0 .5rem; }
.record-links { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin-top: .45rem; }
.record-links a { display: inline-flex; align-items: center; min-height: 38px; font-size: .92rem; color: var(--accent-ink,#f7b79e); font-weight: 600; text-underline-offset: .22em; }
.empty-search { color: var(--muted); padding-block: 2rem; }
.quest-shell [hidden], .island-page [hidden] { display: none !important; }
@media (max-width: 1050px) {
  .exhibit { grid-column: span 6; }
  .quest-shell .nav { gap: 15px; }
  .quest-shell .nav-links { gap: 18px; }
  .archive-head { align-items: flex-end; }
  .filter-buttons { gap: .1rem .55rem; }
}
@media (max-width: 750px) {
  .catalog { grid-template-columns: 1fr; }
  .archive-head { align-items: flex-start; flex-direction: column; gap: 1.3rem; }
  .cover-copy { width: 54%; }
  .index-search input { width: 12rem; }
  .quest-shell .nav-links.is-open { gap: 0; }
}
@media (max-width: 680px) {
  .quest-cover-inner { min-height: 0; width: min(calc(100% - 40px),490px); padding: 1.3rem 0 2.1rem; margin-top: clamp(180px,49vw,310px); }
  .quest-landscape { inset: 0 0 auto; height: clamp(230px,63vw,370px); }
  .quest-landscape::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#090909 0%,rgba(9,9,9,.80) 12%,transparent 41%); }
  .quest-cover::before { background: none; }
  .lights-wide { display: none; }
  .lights-mobile { display: inline; }
  .cover-art-controls { top: .65rem; bottom: auto; right: .7rem; gap: .3rem; }
  .cover-copy { width: 100%; }
  .quest-cover h1 { font-size: clamp(5.05rem,26vw,8.35rem); margin-block: .08em .10em; }
  .quest-cover .hero-role { font-size: clamp(1.45rem,5.7vw,1.75rem); max-width: 25ch; }
  .quest-cover .hero-intro { max-width: 38ch; }
  .quest-actions { margin-top: 1.2rem; gap: .55rem 1rem; }
  .quest-button { padding: .65rem .78rem; font-size: .9rem; }
  .cover-byline { font-size: .73rem; }
  .collection-heading { align-items: flex-end; gap: .7rem; }
  .collection-heading h2, .archive-head h1 { font-size: clamp(2.55rem,8.5vw,3.8rem); }
  .collection-heading .underlink { font-size: .88rem; }
  .exhibition { gap: 1.7rem 1rem; }
  .exhibit, .exhibit:nth-child(1), .exhibit:nth-child(2) { grid-column: 1 / -1; }
  .exhibit .exhibit-art, .exhibit:nth-child(-n+2) .exhibit-art { aspect-ratio: 1.96; }
  .exhibit h3, .exhibit:nth-child(-n+2) h3 { font-size: 1.82rem; }
  .quest-selected { padding-block: 2.7rem; }
  .quest-career .hero-art { max-width: 100%; overflow: hidden; }
  .archive-controls { align-items: stretch; }
  .index-search { width: 100%; }.index-search input { width: 100%; }
  .project-record { grid-template-columns: 68px minmax(0,1fr); gap: .8rem; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 681px) {
    .quest-cover[data-paused="false"] .island-print {
      animation: island-recede linear both; animation-timeline: --island-cover; animation-range: exit 0% exit 100%;
    }
    @keyframes island-recede { to { translate: 0 1.1%; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .quest-cover .island-lights { display: none; }
  .island-print, .quest-cover .name-trigger:is(:hover,:focus-visible) .name-letters > span, .cover-cv:is(:hover,:focus-visible) svg { transform: none; }
  .exhibit > a:hover .exhibit-art img, .exhibit > a:focus-visible .exhibit-art img { transform: none; }
  .exhibit-art img { transition: none; }
}
