@import url('../shared/presentation.css');
/* Direction C01 — Colour Temperature.
   Every tonal value comes from tone.json (see scripts/measure_tone.py).
   The page is lit by the work you are looking at; the two signal colours,
   tungsten amber and daylight blue, never move so controls stay recognisable. */

@font-face { font-family: Barlow; src: url('../direction-02/fonts/barlow-condensed-700.ttf') format('truetype'); font-weight: 700; font-display: swap }
@font-face { font-family: Manrope; src: url('../direction-02/fonts/manrope-400.ttf') format('truetype'); font-weight: 400; font-display: swap }
@font-face { font-family: Instrument; src: url('../direction-02/fonts/instrument-serif.ttf') format('truetype'); font-style: normal; font-display: swap }
@font-face { font-family: Instrument; src: url('../direction-02/fonts/instrument-serif-italic.ttf') format('truetype'); font-style: italic; font-display: swap }

/* Registered so the page can warm and cool as one continuous move.
   Any mix of two measured tones stays between them in luminance, so the
   contrast checked in check_design.py holds for every intermediate step. */
@property --paper { syntax: '<color>'; inherits: true; initial-value: #ffedd4 }
@property --line  { syntax: '<color>'; inherits: true; initial-value: #e1d0bf }
@property --ink   { syntax: '<color>'; inherits: true; initial-value: #27221c }
@property --muted { syntax: '<color>'; inherits: true; initial-value: #6d665f }
@property --deep  { syntax: '<color>'; inherits: true; initial-value: #20180f }

:root {
  --paper: #ffedd4;
  --line: #e1d0bf;
  --ink: #27221c;
  --muted: #6d665f;
  --deep: #20180f;
  --amber: #8c4500;
  --daylight: #1d60ad;
  --amber-lit: #e6a973;
  --gutter: clamp(20px, 3.1vw, 66px);
  --head: 74px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --tone-shift: .55s var(--ease);
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--head);
  scrollbar-gutter: stable;
  transition: --paper var(--tone-shift), --line var(--tone-shift), --ink var(--tone-shift), --muted var(--tone-shift), --deep var(--tone-shift);
}
html.is-scrubbing { transition: none }

* { box-sizing: border-box }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.65 Manrope, 'Doit Korean','Apple SD Gothic Neo', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body:has(dialog[open]) { overflow: hidden }
h1, h2, h3, p, ol { margin: 0 }
ol, ul { padding: 0; list-style: none }
a { color: inherit; text-decoration: none }
img { display: block; width: 100%; height: auto }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer }
button:disabled { opacity: .32; cursor: default }
::selection { background: var(--ink); color: var(--paper) }
:focus-visible { outline: 2px solid var(--daylight); outline-offset: 4px }
[hidden] { display: none !important }

.micro { font: 9px/1.6 Manrope, sans-serif; letter-spacing: .07em; text-transform: uppercase }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.signal-dot { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--amber); vertical-align: middle }
.underlink { display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 3px; min-height: 44px }
.skip { position: fixed; z-index: 90; left: 16px; top: -120px; padding: 14px 22px; background: var(--ink); color: var(--paper) }
.skip:focus { top: 14px }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 46px);
  height: var(--head); padding: 0 var(--gutter); max-width: 1860px; margin: auto;
}
.wordmark { font: 400 clamp(17px, 1.5vw, 21px)/1 Instrument, serif; letter-spacing: -.01em; white-space: nowrap; display: flex; align-items: center; min-height: 44px }
.wordmark i { color: var(--amber); font-style: normal; font-size: .75em; margin-left: 2px }
.header-note { color: var(--muted); letter-spacing: .04em; text-transform: none }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2vw, 34px) }
.site-header nav a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: 11px; letter-spacing: .01em }
.site-header nav sup { font: 700 8px Barlow, sans-serif; color: var(--amber); align-self: flex-start; margin-top: 14px }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 5px }
.contact-link { border: 1px solid var(--line); border-radius: 40px; padding: 0 16px }
.contact-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); text-decoration: none }

/* ---------- scene ---------- */
.scene {
  max-width: 1860px; margin: auto; padding: clamp(4px, 1vw, 20px) var(--gutter) clamp(14px, 1.6vw, 24px);
  min-height: calc(100svh - var(--head));
  display: grid; gap: clamp(22px, 3vw, 58px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: 'readout frame' 'meter meter';
  align-items: end;
}
.scene-readout { grid-area: readout; max-width: 640px; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 24px }
.scene-intro { padding-top: clamp(10px, 2vw, 34px) }
.scene-intro .micro { color: var(--muted) }
.scene-intro-line { margin-top: 12px; font-size: 12.5px; line-height: 1.85; color: var(--ink) }
.reading-label { color: var(--muted); letter-spacing: .09em; border-top: 1px solid var(--line); padding-top: 10px }
.reading-label span { text-transform: none; letter-spacing: .02em; font-size: 9px; opacity: .85 }
.kelvin { display: flex; align-items: baseline; gap: .04em; margin: clamp(6px, 1vw, 16px) 0 0; line-height: .78 }
.kelvin b { font: 700 clamp(88px, 11.6vw, 208px)/.78 Barlow, sans-serif; letter-spacing: -.012em; font-variant-numeric: tabular-nums }
.kelvin i { font: 700 clamp(30px, 3.4vw, 62px)/1 Barlow, sans-serif; font-style: normal; color: var(--amber) }
.scene-category { color: var(--muted); margin-top: clamp(12px, 1.6vw, 22px) }
.scene-title { font: 700 clamp(34px, 3.9vw, 70px)/1 Barlow, sans-serif; text-transform: uppercase; letter-spacing: .004em; margin-top: 6px }
.scene-line { font: italic clamp(21px, 2.1vw, 34px)/1.15 Instrument, serif; color: var(--amber); margin-top: clamp(10px, 1.2vw, 18px) }
.scene-korean { color: var(--muted); font-size: 12.5px; max-width: 40ch; margin-top: 14px }
.scene-open { margin-top: clamp(6px, 1vw, 14px); font-size: 12px }

.scene-frame { grid-area: frame; justify-self: end; width: fit-content; max-width: 100% }
.frame-link { position: relative; display: block; aspect-ratio: 3 / 4; height: min(63svh, 720px); max-width: 100%; margin-left: auto }
.frame-rule { position: absolute; inset: -14px; border: 1px solid var(--line); pointer-events: none }
.frame-rule::before, .frame-rule::after {
  content: ''; position: absolute; left: -1px; right: -1px; height: 9px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 22px);
}
.frame-rule::before { top: -1px }
.frame-rule::after { bottom: -1px }
.frame-stack { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--line) }
.frame-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.frame-stack .is-entering { z-index: 2; border-inline-start: 2px solid var(--amber) }
.frame-stack .is-entering.from-cool { border-inline-start: 0; border-inline-end: 2px solid var(--daylight) }
.frame-open {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: var(--paper); color: var(--ink); padding: 8px 12px;
  font: 9px/1 Manrope, sans-serif; letter-spacing: .09em;
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.frame-link:hover .frame-open, .frame-link:focus-visible .frame-open { opacity: 1; transform: none }
.frame-meta { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted) }
.frame-meta span:last-child { margin-left: auto }
.swatch { width: 13px; height: 13px; border: 1px solid var(--line); background: var(--average, #a2896d); flex: none }

/* ---------- the meter ---------- */
.meter { grid-area: meter; align-self: end }
.meter-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; color: var(--muted) }
.meter-end { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap }
.end-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block }
.end-dot.warm { background: var(--amber) }
.end-dot.cool { background: var(--daylight) }
.meter-help { text-transform: none; letter-spacing: .02em; text-align: center; flex: 1 }
.meter-help .touch-help { display: none }

.meter-track { position: relative; height: 84px; margin-top: 10px }
.meter-band {
  position: absolute; left: 0; right: 0; top: 20px; height: 5px;
  background: var(--line);
  background: linear-gradient(90deg, color-mix(in oklab, var(--amber) 62%, var(--paper)), color-mix(in oklab, var(--daylight) 62%, var(--paper)));
}
.meter-ticks {
  position: absolute; left: 0; right: 0; top: 7px; height: 12px;
  background:
    repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 4%),
    repeating-linear-gradient(90deg, transparent 0 0);
  opacity: .45;
}
.meter-fill { position: absolute; left: 0; top: 23px; height: 2px; width: var(--at, 0%); background: var(--ink) }
#scale {
  position: absolute; left: 0; top: 0; width: 100%; height: 46px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: ew-resize;
}
#scale::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 38px; border-radius: 2px;
  background: var(--ink); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); cursor: ew-resize;
}
#scale::-moz-range-thumb {
  width: 12px; height: 38px; border-radius: 2px; border: 2px solid var(--paper);
  background: var(--ink); box-shadow: 0 0 0 1px var(--ink); cursor: ew-resize;
}
#scale:focus { outline: none }
#scale:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px var(--daylight) }
#scale:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px var(--daylight) }

.meter-marks { position: absolute; left: 0; right: 0; top: 44px; height: 40px }
.meter-marks li { position: absolute; left: var(--at); top: 0; transform: translateX(-50%); --lead: 19px }
.meter-marks li:nth-child(even) { top: 20px; --lead: 39px }
.meter-marks li::before { content: ''; position: absolute; left: 50%; top: calc(var(--lead) * -1); width: 1px; height: var(--lead); background: var(--line) }
.meter-marks li.is-current::before { background: var(--ink) }
.meter-marks button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 9px 8px;
  color: var(--muted); white-space: nowrap;
}
.mark-k { font: 700 11px/1 Barlow, sans-serif; letter-spacing: .02em }
.mark-name { font: 8px/1 Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .25s }
.meter-marks button:hover, .meter-marks button:focus-visible { color: var(--ink) }
.meter-marks button:hover .mark-name, .meter-marks button:focus-visible .mark-name, .meter-marks button.is-current .mark-name { opacity: 1 }
.meter-marks button.is-current { color: var(--ink) }
.meter-marks button.is-current .mark-k { color: var(--amber) }

/* ---------- section furniture ---------- */
.index { max-width: 1860px; margin: auto; padding: clamp(60px, 7vw, 132px) var(--gutter) 0 }
.studio { background: var(--deep); color: var(--paper); margin-top: clamp(66px, 8vw, 150px); padding: clamp(50px, 6vw, 104px) 0 clamp(56px, 6vw, 110px) }
.studio-inner { max-width: 1860px; margin: auto; padding: 0 var(--gutter) }
.studio .section-head { border-top-color: #ffffff33 }
.studio .section-kicker, .studio .section-note { color: var(--line) }
.studio .signal-dot { background: var(--amber-lit) }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 60px); border-top: 1px solid var(--line); padding-top: 18px }
.section-kicker { color: var(--muted); grid-column: 1 / -1 }
.section-head h2 { font: 700 clamp(38px, 5.4vw, 104px)/.92 Barlow, sans-serif; text-transform: uppercase; letter-spacing: .002em; margin-top: clamp(10px, 1.6vw, 26px) }
.section-note { color: var(--muted); font-size: 12.5px; max-width: 46ch; align-self: end; margin-bottom: 8px }
.sort { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: clamp(18px, 2vw, 30px) }
.sort button {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 40px;
  font: 9px/1 Manrope, sans-serif; letter-spacing: .09em;
}
.sort button[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink) }

/* ---------- index ---------- */
.index-body { display: grid; grid-template-columns: minmax(0, .58fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 86px); margin-top: clamp(26px, 3vw, 54px) }
.index-preview { position: sticky; top: calc(var(--head) + 24px); align-self: start }
.preview-frame { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--line) }
.preview-frame img { width: 100%; height: 100%; object-fit: cover }
#preview-caption { margin-top: 12px; color: var(--muted) }
.index-list li { border-top: 1px solid var(--line) }
.index-list li:last-child { border-bottom: 1px solid var(--line) }
.index-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(14px, 1.8vw, 30px); align-items: center; padding: clamp(16px, 1.8vw, 26px) 0; min-height: 92px }
.row-thumb { display: none; width: 54px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line) }
.row-thumb img { width: 100%; height: 100%; object-fit: cover }
.row-k { font: 700 clamp(22px, 2.2vw, 34px)/1 Barlow, sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; min-width: 3.4em }
.row-k i { font-size: .55em; font-style: normal; color: var(--muted); margin-left: 2px }
.row-title { font: 400 clamp(19px, 1.7vw, 27px)/1.15 Instrument, serif; letter-spacing: -.005em; display: block }
.row-category { color: var(--muted); display: block; margin-top: 4px }
.row-bar { display: block; position: relative; height: 1px; background: var(--line); margin-top: 14px }
.row-bar::after { content: ''; position: absolute; left: var(--at); top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--amber)); transform: translateX(-50%); transition: transform .3s var(--ease) }
.row-go { color: var(--muted); display: inline-flex; gap: 12px; align-items: center; white-space: nowrap }
.row-go b { font-size: 15px; color: var(--ink) }
.index-list a:hover .row-title, .index-list a:focus-visible .row-title { color: var(--amber) }
.index-list a:hover .row-bar::after, .index-list a:focus-visible .row-bar::after { transform: translateX(-50%) scale(1.9) }
.index-list a:hover .row-go b, .index-list a:focus-visible .row-go b { transform: translate(3px, -3px) }
.row-go b { display: inline-block; transition: transform .3s var(--ease) }

/* ---------- studio ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1px; background: #ffffff33; margin-top: clamp(30px, 4vw, 60px); border: 1px solid #ffffff33 }
.services a { background: var(--deep); padding: clamp(24px, 3vw, 46px); display: flex; flex-direction: column; gap: 10px; min-height: 236px; transition: background .4s var(--ease), color .4s var(--ease) }
.services a:hover, .services a:focus-visible { background: var(--paper); color: var(--deep) }
.service-index { color: var(--amber-lit) }
.services a:hover .service-index, .services a:focus-visible .service-index { color: var(--amber) }
.services h3 { font: 400 clamp(26px, 2.6vw, 42px)/1.08 Instrument, serif; letter-spacing: -.01em }
.services p { color: var(--line); font-size: 12.5px }
.services a:hover p, .services a:focus-visible p { color: var(--muted) }
.service-go { margin-top: auto; display: inline-flex; gap: 10px; align-items: center }
.service-go b { font-size: 15px }

/* ---------- footer ---------- */
.footer { max-width: 1860px; margin: auto; padding: clamp(70px, 9vw, 150px) var(--gutter) clamp(30px, 4vw, 60px) }
.footer > .micro { color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px }
.footer-cta {
  display: block; margin: clamp(16px, 2vw, 30px) 0 clamp(40px, 5vw, 80px); position: relative;
  font: 400 clamp(46px, 8.4vw, 150px)/.94 Instrument, serif; letter-spacing: -.02em;
}
.footer-cta { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px }
.footer-cta-go { font-family: Manrope, sans-serif; font-size: clamp(22px, 2.4vw, 40px); line-height: 1.2; color: var(--amber); transition: transform .4s var(--ease) }
.footer-cta:hover .footer-cta-go { transform: translate(6px, -6px) }
.footer-cta:hover { color: var(--amber) }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px clamp(18px, 3vw, 46px); align-items: center; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px }
.footer-bottom .wordmark { font-size: 17px; color: var(--ink); text-transform: none; letter-spacing: -.01em }
.footer-bottom a:not(.wordmark):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px }
.study-note { margin-top: 22px; font-size: 10px; line-height: 1.8; color: var(--muted); max-width: 70ch }

/* ---------- project ---------- */
.project-view { max-width: 1860px; margin: auto; padding: 0 var(--gutter) clamp(60px, 8vw, 120px) }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 4px 0 16px; color: var(--muted) }
.project-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 9px/1 Manrope, sans-serif; letter-spacing: .09em; text-transform: uppercase }
.project-back:hover { color: var(--ink) }
.project-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 70px); padding: clamp(34px, 5vw, 86px) 0 clamp(30px, 4vw, 60px) }
.project-heading h1 { font: 700 clamp(46px, 7.4vw, 136px)/.9 Barlow, sans-serif; text-transform: uppercase; letter-spacing: .002em }
.project-info { display: flex; flex-direction: column; gap: 12px; align-self: end }
.project-info .micro { color: var(--muted) }
.project-subtitle { font: italic clamp(20px, 1.9vw, 30px)/1.2 Instrument, serif; color: var(--amber) }
.project-info p:last-of-type { color: var(--muted); font-size: 12.5px; max-width: 44ch }
.project-range { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 6px; color: var(--muted) }
.project-range span { position: relative; flex: 1; height: 1px; background: var(--line); max-width: 220px }
.project-range span::before { content: ''; position: absolute; left: var(--from); right: calc(100% - var(--to)); top: -1px; height: 3px; background: var(--amber) }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 1.8vw, 32px); align-items: start }
.project-gallery.single { grid-template-columns: minmax(0, 1fr); max-width: min(100%, 720px); margin-inline: auto }
.project-photo { display: block; position: relative }
.project-photo img { width: 100%; height: auto; background: var(--line) }
.project-photo span { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font: 9px/1 Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase }
.project-photo i { font-style: normal; font-size: 13px; color: var(--ink); transition: transform .3s var(--ease) }
.project-photo:hover i, .project-photo:focus-visible i { transform: scale(1.35) }
.project-photo:hover span, .project-photo:focus-visible span { color: var(--ink) }
.project-end { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(50px, 7vw, 120px) 0 clamp(20px, 3vw, 40px) }
.project-end p { font: 400 clamp(32px, 4.4vw, 76px)/1 Instrument, serif; letter-spacing: -.02em }
.project-note { font-size: 10px; line-height: 1.8; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; max-width: 74ch }
.project-note a { text-decoration: underline; text-underline-offset: 3px }

.missing { max-width: 1860px; margin: auto; padding: clamp(70px, 14vh, 180px) var(--gutter) }
.missing .micro { color: var(--amber) }
.missing h1 { font: 400 clamp(34px, 5vw, 78px)/1.05 Instrument, serif; letter-spacing: -.02em; margin: 16px 0 26px }

/* ---------- viewer ---------- */
#viewer {
  width: 100%; max-width: none; height: 100%; max-height: none; border: 0; padding: 0; margin: 0;
  background: var(--deep); color: var(--paper); display: none; flex-direction: column;
}
#viewer[open] { display: flex }
#viewer::backdrop { background: #06040288 }
.viewer-head, .viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); flex: none }
.viewer-head h2 { font: 400 clamp(20px, 2vw, 30px)/1.1 Instrument, serif; margin-top: 4px }
#viewer-kelvin { color: var(--line); font: 700 11px/1 Barlow, sans-serif; letter-spacing: .1em }
.circle-button { width: 46px; height: 46px; border: 1px solid #ffffff3d; border-radius: 50%; display: grid; place-items: center; font-size: 17px }
.circle-button:hover:not(:disabled) { background: var(--paper); color: var(--deep) }
#viewer-stage { flex: 1; min-height: 0; display: grid; place-items: center; overflow: auto; padding: 0 var(--gutter); touch-action: pan-y; overscroll-behavior: contain }
#viewer-stage.is-zoomed { place-items: start; cursor: grab; touch-action: none }
#viewer-stage.is-panning { cursor: grabbing }
#viewer-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain }
#viewer-stage.is-zoomed #viewer-image { max-width: none; max-height: none }
#viewer-loading, #viewer-error { grid-area: 1 / 1; text-align: center; color: var(--line) }
#viewer-error button { border: 1px solid #ffffff55; border-radius: 40px; padding: 12px 20px; margin-top: 14px; min-height: 44px }
.viewer-nav { display: flex; align-items: center; gap: 14px }
#viewer-count { color: var(--line); min-width: 62px; text-align: center }
.viewer-help { color: var(--line); opacity: .75 }
#viewer-zoom { border: 1px solid #ffffff3d; border-radius: 40px; padding: 0 20px; min-height: 46px; font-size: 11px }
#viewer-zoom:hover { background: var(--paper); color: var(--deep) }

/* ---------- transitions ---------- */
::view-transition-group(selected-frame) { animation-duration: .58s; animation-timing-function: var(--ease) }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .34s }

/* ---------- narrow screens ---------- */
@media (max-width: 1080px) {
  .scene { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(18px, 2.4vw, 34px) }
  .index-body { grid-template-columns: minmax(0, .5fr) minmax(0, 1fr) }
  .section-head { grid-template-columns: minmax(0, 1fr) }
  .section-note { margin-bottom: 0 }
}

@media (max-width: 760px) {
  :root { --head: 62px }
  .header-note { display: none }
  .site-header { gap: 12px }
  .site-header nav { gap: 14px }
  .contact-link { padding: 0 13px }

  .scene {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'readout' 'frame' 'meter';
    grid-template-rows: auto auto auto;
    align-content: start; gap: 20px; min-height: calc(100svh - var(--head)); padding-bottom: 26px;
  }
  .scene-readout { max-width: none; gap: 14px }
  .scene-intro { padding-top: 4px }
  .scene-intro-line { display: none }
  .kelvin b { font-size: 19.5vw }
  .kelvin i { font-size: 8vw }
  .scene-title { font-size: 8.4vw }
  .scene-line { font-size: 5.2vw }
  .scene-korean { font-size: 12px; max-width: none }
  .scene-open { font-size: 11px }
  .scene-frame { width: 100%; justify-self: stretch }
  .frame-link { aspect-ratio: 3 / 4; height: auto; width: 100%; max-height: 56svh; touch-action: pan-y }
  .scene-open { display: none }
  .reading-label { padding-top: 8px }
  .reading-label span { display: none }
  .kelvin { margin-top: 4px }
  .scene-category { margin-top: 10px }
  .scene-korean { margin-top: 10px; font-size: 11.5px }
  .meter {
    position: sticky; bottom: 0; z-index: 5; margin-top: 10px;
    background: var(--paper); border-top: 1px solid var(--line); padding: 9px 0 10px;
  }
  .frame-rule { inset: -8px }
  .frame-open { opacity: 1; transform: none; right: 8px; bottom: 8px }
  .frame-meta { margin-top: 16px; font-size: 8px }

  .meter-head { flex-wrap: wrap; gap: 8px }
  .meter-help { order: 3; flex-basis: 100%; text-align: left }
  .meter-help .pointer-help { display: none }
  .meter-help .touch-help { display: inline }
  .meter-track { height: 66px }
  /* Narrow screens keep the ticks but only label the current work; the marks
     are made inert in app.js so the slider stays the single touch target. */
  .meter-marks { top: 44px; height: 22px; pointer-events: none }
  .meter-marks li:nth-child(even) { top: 0; --lead: 19px }
  .mark-name { display: none }
  .mark-k { opacity: 0 }
  .meter-marks button.is-current .mark-k { opacity: 1 }
  .meter-marks button { padding: 3px 6px }
  .project-range span { display: none }

  .index-preview { display: none }
  .index-body { grid-template-columns: minmax(0, 1fr) }
  .index-list a { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; min-height: 104px }
  .row-thumb { display: block }
  .row-k { grid-column: 2; min-width: 0; font-size: 20px }
  .row-main { grid-column: 2 }
  .row-go { grid-column: 3 }
  .index-list a { grid-template-areas: 'thumb kelvin go' 'thumb main main' }
  .row-thumb { grid-area: thumb; align-self: center }
  .row-k { grid-area: kelvin; align-self: end }
  .row-main { grid-area: main }
  .row-go { grid-area: go; align-self: end }
  .row-bar { margin-top: 10px }

  .project-heading { grid-template-columns: minmax(0, 1fr); padding-top: 26px }
  .project-gallery { gap: 14px }
  .viewer-head, .viewer-footer { padding: 10px 16px }
  .viewer-help { display: none }
  #viewer-stage { padding: 0 8px }
  .footer-cta { font-size: 13vw }
}

@media (hover: none) {
  .frame-open { opacity: 1; transform: none }
}

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

/* Proposal detail pass — 2026-10-06. Composition remains direction-specific. */
 .scene-korean{font-size:14px;line-height:1.95}.scene-intro-line{font-size:14px;line-height:1.9}.services p{font-size:14px;line-height:1.85}.study-note{font-size:11px;line-height:1.9}.project-info p{font-size:14px;line-height:1.95}.underlink{font-size:12px}.kelvin b{font-variant-numeric:tabular-nums}.services a:focus-visible{outline-offset:-5px}
@media(max-width:760px){.scene-korean,.scene-intro-line,.services p,.project-info p{font-size:13px}.study-note{font-size:10px}}
