/* Barry Han — portfolio
   Flat and editorial, after his own PDF: white paper, one red for the projects,
   blue for practice, green for side work, Fig. numbers running through the whole story. */

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --soft: #737373;
  --line: #e8e8e8;
  --red: #d22b31;
  --blue: #00aeef;
  --green: #40ae49;
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --bar: 58px;
  --gut: clamp(16px, 3vw, 40px);
  --maxw: 1440px;
  --space: clamp(64px, 9vw, 140px);
  --ease: cubic-bezier(.2, .75, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--f); font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
em { font-style: normal; color: var(--red); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; line-height: 1.5; }
.label { margin: 0 0 14px; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* marks: Barry's own project pictograms, cut from colour */
.mark { display: inline-block; height: 1em; background: var(--mc, var(--red)); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; vertical-align: middle; }
.shape { display: inline-block; aspect-ratio: 1; height: 1em; vertical-align: middle; }
.shape-tri { background: var(--blue); clip-path: polygon(50% 4%, 100% 96%, 0 96%); aspect-ratio: 1.12; }
.shape-sq { background: var(--green); }
.mark-sm, .shape-sm { height: 22px; }
.mark-rail, .shape-rail { height: 17px; }

/* ---------- bar ---------- */

.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--gut);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; font-variation-settings: "wdth" 108; white-space: nowrap; justify-self: start; }
.eyes { width: 30px; height: 30px; overflow: visible; }
.eyes-face { fill: var(--ink); }
.eyes-white { fill: var(--bg); }
.pupil { fill: var(--ink); }
.eyes .eye path, .eyes .pupil { transform-box: fill-box; transform-origin: 50% 0; transition: transform .14s; }
.eyes.blink .eye path, .eyes.blink .pupil { transform: scaleY(.1); }
.rail { display: flex; align-items: center; gap: 4px; }
.rail a { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; transition: background-color .2s; }
.rail a .mark, .rail a .shape { opacity: .28; transition: opacity .3s, transform .4s var(--ease); }
.rail a:hover .mark, .rail a:hover .shape, .rail a.is-on .mark, .rail a.is-on .shape { opacity: 1; }
.rail a.is-on .mark, .rail a.is-on .shape { transform: scale(1.18); }
.rail-label {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font: 500 12px/1 var(--f-mono); padding: 6px 8px; background: var(--ink); color: var(--bg);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.rail a:hover .rail-label, .rail a:focus-visible .rail-label { opacity: 1; }
.bar-end { display: flex; gap: 22px; justify-self: end; font-size: 15px; }
.bar-end a { text-decoration: none; }
.bar-end a:hover { color: var(--red); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress i { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ---------- cover ---------- */

.cover {
  min-height: 100svh; padding: calc(var(--bar) + clamp(24px, 4vw, 48px)) var(--gut) clamp(28px, 4vw, 48px);
  display: grid; grid-template-rows: auto 1fr auto auto; gap: clamp(24px, 4vh, 48px);
  max-width: var(--maxw); margin: 0 auto;
}
.cover-head { display: flex; justify-content: space-between; gap: 16px; color: var(--soft); text-transform: uppercase; }
.cover-title {
  align-self: center; margin: 0;
  font: 800 clamp(58px, 10.5vw, 176px)/.9 var(--f); font-variation-settings: "wdth" 104; letter-spacing: -.04em;
}
.cover-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.cover-lede { margin: 0; max-width: 34em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.skyline ol { list-style: none; margin: 0; padding: 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); height: clamp(170px, 26vh, 260px); }
.skyline li { flex: 1; min-width: 0; display: flex; justify-content: center; }
.skyline a { display: grid; justify-items: center; gap: 10px; text-decoration: none; min-width: 0; max-width: 100%; }
.skyline .mark { max-width: 100%; height: calc(var(--h) * clamp(120px, 20vh, 200px)); transition: transform .45s var(--ease); transform-origin: bottom; }
.skyline a:hover .mark { transform: translateY(-8px); }
.skyline li { position: relative; }
.skyline a > .mono { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap; opacity: 0; transition: opacity .25s; }
.skyline a:hover > .mono, .skyline a:focus-visible > .mono { opacity: 1; }
.skyline a > .mono b { color: var(--red); margin-right: 6px; font-weight: 500; }
.cover-start { justify-self: start; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; padding: 12px 0; }
.cover-start span { display: inline-block; margin-left: 6px; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* ---------- thread ---------- */

.thread { max-width: var(--maxw); margin: 0 auto; padding: var(--space) var(--gut); border-top: 1px solid var(--line); }
.thread-title { margin: 0 0 clamp(36px, 5vw, 64px); max-width: 24em; font: 600 clamp(26px, 3.2vw, 48px)/1.16 var(--f); letter-spacing: -.02em; }
.matrix { overflow-x: auto; }
.matrix table { width: 100%; border-collapse: collapse; min-width: 720px; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); padding: 16px 8px; }
.matrix thead th { vertical-align: bottom; border-bottom: 2px solid var(--ink); }
.matrix thead a { display: grid; justify-items: center; gap: 6px; text-decoration: none; }
.matrix thead .mono { color: var(--red); }
.th-name { font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
.matrix tbody th { text-align: left; font-weight: 600; font-size: clamp(16px, 1.3vw, 19px); width: 26%; }
.matrix td { text-align: center; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 0; padding: 0; background: var(--red); cursor: help; transition: transform .25s var(--ease); }
.dot:hover, .dot.is-on { transform: scale(1.5); }
.dash { display: inline-block; width: 10px; height: 1px; background: var(--line); vertical-align: middle; }
.matrix-note { min-height: 3em; margin: 18px 0 0; font-size: 14px; }

/* ---------- chapters ---------- */

.chapter { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.ch-open {
  min-height: calc(100svh - var(--bar)); padding: clamp(40px, 8vh, 90px) 0 clamp(40px, 6vh, 70px);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: end;
}
.ch-mark { align-self: stretch; display: flex; align-items: flex-end; }
.mark-xl { height: min(46vh, 420px); max-width: 100%; transform: translateY(12%) rotate(-4deg); opacity: 0; transition: transform 1.2s var(--ease), opacity .8s; }
.ch-open.in .mark-xl { transform: none; opacity: 1; }
.ch-no { color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.ch-title { margin: 0 0 14px; font: 800 clamp(52px, 8.4vw, 140px)/.9 var(--f); font-variation-settings: "wdth" 102; letter-spacing: -.045em; }
.ch-line { margin: 0 0 30px; font: 500 clamp(22px, 2.4vw, 38px)/1.1 var(--f); color: var(--red); letter-spacing: -.01em; }
.ch-meta { margin: 0; display: grid; border-top: 2px solid var(--ink); }
.ch-meta div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ch-meta dt { color: var(--soft); text-transform: uppercase; }
.ch-meta dd { margin: 0; }

.chapter > * + * { margin-top: var(--space); }
.chapter > .ch-open + .hero-fig { margin-top: 0; }

/* figures */
.fig { margin: 0; }
.fig-img { display: block; width: 100%; padding: 0; border: 0; background: var(--tone, #eee); cursor: zoom-in; overflow: hidden; }
.fig-img img { width: 100%; height: auto; transition: opacity .3s, transform .8s var(--ease); }
.fig-img:hover img { opacity: .93; }
.fig figcaption { margin-top: 10px; color: var(--soft); }
.fig figcaption b { color: var(--red); font-weight: 500; margin-right: 10px; }
.hero-fig { margin-inline: calc(-1 * var(--gut)); }
.fig-hero .fig-img img { height: min(92vh, 62vw); object-fit: cover; }
.fig-hero figcaption { padding-inline: var(--gut); }

.text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.text .label { grid-column: 1 / span 3; margin-top: 8px; }
.text-body { grid-column: 4 / span 7; }
.text-body p { margin: 0 0 .8em; font-size: clamp(20px, 1.75vw, 26px); line-height: 1.45; letter-spacing: -.005em; }
.lede { margin-inline: auto; max-width: 21em; font: 500 clamp(28px, 3.5vw, 56px)/1.14 var(--f); letter-spacing: -.025em; }
.quote { margin-inline: auto; max-width: 26em; text-align: center; }
.quote p { margin: 0; font: italic 400 clamp(24px, 2.6vw, 40px)/1.25 var(--f); letter-spacing: -.01em; }
.quote::before { content: "“"; display: block; font: 800 clamp(70px, 8vw, 120px)/.6 var(--f); color: var(--red); margin-bottom: 18px; }
.wide { max-width: 1180px; margin-inline: auto; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.5vw, 36px); align-items: start; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.side { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.side > .fig { grid-column: 1 / span 7; }
.side-text { grid-column: 9 / span 4; }
.side.is-flip > .fig { grid-column: 6 / span 7; grid-row: 1; }
.side.is-flip .side-text { grid-column: 1 / span 4; grid-row: 1; }
.side-text p:not(.label) { margin: 0 0 .8em; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; }
.facts-row { list-style: none; margin-inline: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 36px); }
.facts-row li { border-top: 3px solid var(--ink); padding-top: 16px; font: 700 clamp(22px, 2.4vw, 38px)/1.08 var(--f); letter-spacing: -.02em; }
.facts-row .mono { display: block; color: var(--red); margin-bottom: 14px; font-weight: 500; }

/* pinned figure with stepped text */
.pin { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.pin-fig { grid-column: 1 / span 7; position: sticky; top: calc(var(--bar) + 24px); height: calc(100svh - var(--bar) - 48px); align-self: start; }
.pin-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.pin-slide.is-on { opacity: 1; pointer-events: auto; }
.pin-slide .fig { width: 100%; }
.pin-slide .fig-img img { max-height: calc(100svh - var(--bar) - 120px); object-fit: contain; background: var(--bg); }
.pin-slide .fig-img { background: transparent; }
.pin-steps { grid-column: 9 / span 4; list-style: none; margin: 0; padding: 20vh 0; }
.pin-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .22; transition: opacity .5s; }
.pin-step.is-on { opacity: 1; }
.pin-step .mono { color: var(--red); }
.pin-step h3 { margin: 10px 0 12px; font: 700 clamp(26px, 2.6vw, 40px)/1.05 var(--f); letter-spacing: -.02em; }
.pin-step p { margin: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; }

/* horizontal strips */
.hs { position: relative; margin-inline: calc(-1 * var(--gut)); }
.hs-sticky { position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hs-label { padding-inline: var(--gut); margin: 0; }
.hs-count { color: var(--soft); }
.hs-track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gut); width: max-content; will-change: transform; }
.hs-item { width: min(40vw, 620px); flex: none; }
.hs-item .fig-img img { aspect-ratio: 1; object-fit: cover; }
.hs-process .hs-track { align-items: stretch; }
.step { width: clamp(240px, 22vw, 320px); flex: none; border-top: 3px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; }
.step-no { font: 800 clamp(64px, 7vw, 110px)/.85 var(--f); color: var(--red); letter-spacing: -.05em; }
.step h3 { margin: 18px 0 10px; font: 700 clamp(22px, 1.9vw, 28px)/1.1 var(--f); letter-spacing: -.015em; }
.step p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink); }
.step-return { background: var(--red); color: #fff; border-top-color: var(--red); padding: 18px 20px 22px; }
.step-return .step-no, .step-return p { color: #fff; }
.loop { width: 120px; margin-top: auto; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.loop-note { opacity: .85; margin-top: 6px; }

/* the air loop, drawn over the real section */
.pin-air .pin-fig { display: flex; align-items: center; grid-column: 1 / span 8; }
.airsec { width: 100%; margin: 0; }
.airsec-svg { display: block; width: 100%; height: auto; max-height: calc(100svh - var(--bar) - 110px); overflow: hidden; }
.air-base { opacity: .5; filter: grayscale(1) contrast(1.15); }
.night-tint { fill: #0e2436; opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.air-g { opacity: .1; transition: opacity .7s var(--ease); }
.flow-body { fill: none; stroke: url(#air-temp); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; opacity: .16; }
.flow-dots { fill: none; stroke: url(#air-temp); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .1 15; animation: air-dots 1.1s linear infinite; }
@keyframes air-dots { to { stroke-dashoffset: -15.1; } }
.air-bead { stroke-width: 3; fill: #fff; }
.air-bead.cool { stroke: #00aeef; }
.air-bead.warm { stroke: #d22b31; }
.air-g .air-bead { opacity: 0; transition: opacity .5s; }
.sun { opacity: .15; transition: opacity .7s var(--ease); }
.sun circle { fill: #d22b31; }
.sun line { stroke: #d22b31; stroke-width: 4; stroke-linecap: round; }
.sun .heat { fill: none; stroke: #d22b31; stroke-width: 2.5; stroke-dasharray: 8 7; animation: air-dots .9s linear infinite; }
.moon { fill: #fff; stroke: #0e2436; stroke-width: 3; opacity: 0; transition: opacity .7s var(--ease); }
.callout circle { fill: #fff; stroke: var(--ink); stroke-width: 2; transition: fill .4s, stroke .4s; }
.callout text { font: 500 21px var(--f-mono); text-anchor: middle; fill: var(--ink); transition: fill .4s; }
.air-legend text { font: 500 13px var(--f-mono); fill: var(--soft); }
.airsec figcaption { margin-top: 8px; }
.open-fig { border: 0; background: none; padding: 0; color: var(--red); cursor: zoom-in; text-decoration: underline; text-underline-offset: 3px; }

/* one step at a time: 0 in, 1 rooms, 2 stack, 3 chimney, 4 night purge (everything) */
.airsec[data-step="0"] .g1, .airsec[data-step="1"] .g1, .airsec[data-step="1"] .g2,
.airsec[data-step="2"] .g2, .airsec[data-step="2"] .g3,
.airsec[data-step="3"] .g3, .airsec[data-step="3"] .g4, .airsec[data-step="4"] .air-g { opacity: 1; }
.airsec[data-step="0"] .g1 .air-bead, .airsec[data-step="1"] .g2 .air-bead, .airsec[data-step="2"] .g3 .air-bead,
.airsec[data-step="3"] .g4 .air-bead, .airsec[data-step="4"] .air-bead { opacity: 1; }
.airsec[data-step="0"] .c1 circle, .airsec[data-step="1"] .c2 circle, .airsec[data-step="2"] .c3 circle,
.airsec[data-step="3"] .c4 circle, .airsec[data-step="4"] .c5 circle { fill: var(--ink); }
.airsec[data-step="0"] .c1 text, .airsec[data-step="1"] .c2 text, .airsec[data-step="2"] .c3 text,
.airsec[data-step="3"] .c4 text, .airsec[data-step="4"] .c5 text { fill: #fff; }
.airsec[data-step="3"] .sun { opacity: 1; }
.airsec[data-step="4"] .sun { opacity: 0; }
.airsec[data-step="4"] .moon { opacity: 1; }
.airsec[data-step="4"] .night-tint { opacity: .16; }
.airsec[data-step="4"] .flow-dots { stroke: #00aeef; animation-duration: .6s; }
.airsec[data-step="4"] .flow-body { stroke: #00aeef; }
.airsec[data-step="4"] .air-bead.warm { stroke: #00aeef; }

/* questions */
.questions { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.q-lead { grid-column: 1 / span 9; margin: 0 0 12px; font: 600 clamp(28px, 3.3vw, 52px)/1.14 var(--f); letter-spacing: -.025em; }
.questions ol { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 60px); }
.questions li { counter-increment: q; padding: 20px 0 20px 48px; position: relative; border-top: 1px solid var(--line); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; }
.questions li::before { content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 23px; font: 500 12px var(--f-mono); color: var(--red); }

/* the height ruler */
.height { height: 260svh; }
.height-sticky { position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.height-fig { grid-column: 1 / span 6; position: relative; }
.height-fig .fig-img img { max-height: calc(100svh - var(--bar) - 110px); object-fit: contain; background: var(--bg); }
.height-fig .fig-img { background: transparent; }
.ruler { position: absolute; right: -8px; top: 6%; bottom: 12%; width: 1px; background: var(--ink); }
.ruler-mark { position: absolute; left: -8px; width: 16px; height: 2px; background: var(--red); bottom: calc(var(--k, 0) * 100%); }
.ruler-val { position: absolute; left: 22px; top: -9px; white-space: nowrap; color: var(--red); font-size: 13px; }
.height-text { grid-column: 8 / span 5; }
.height-text p:not(.label) { margin: 0 0 .8em; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; }
.height-top { color: var(--red); font-size: 14px !important; }

/* bridges between chapters */
.bridge { display: block; text-decoration: none; text-align: center; padding: clamp(90px, 18vh, 200px) var(--gut); max-width: var(--maxw); margin: var(--space) auto 0; border-top: 1px solid var(--line); }
.bridge p { margin: 0 auto 28px; max-width: 17em; font: 600 clamp(28px, 4vw, 62px)/1.1 var(--f); letter-spacing: -.03em; }
.bridge-next { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .08em; }
.bridge:hover .bridge-next { color: var(--red); }

/* ---------- practice, art ---------- */

.practice, .art, .about, .contact { max-width: var(--maxw); margin: 0 auto; padding: var(--space) var(--gut); }
.section-open { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 44px); align-items: end; margin-bottom: clamp(50px, 7vw, 100px); }
.section-open .shape { height: clamp(90px, 14vw, 200px); }
.section-title { margin: 0; font: 800 clamp(44px, 6.6vw, 110px)/.92 var(--f); letter-spacing: -.045em; }
.practice .label { color: var(--blue); }
.art .label { color: var(--green); }
.practice .fig figcaption b { color: var(--blue); }
.art .fig figcaption b { color: var(--green); }

.timeline { display: grid; }
.t-item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: clamp(28px, 4vw, 50px) 0; border-top: 2px solid var(--ink); }
.t-when { grid-column: 1 / span 2; display: grid; align-content: start; gap: 10px; justify-items: start; }
.t-when .mono { font-size: 14px; }
.built { background: var(--blue); color: #fff; padding: 3px 8px; text-transform: uppercase; letter-spacing: .08em; }
.t-what { grid-column: 3 / span 10; }
.t-what h3 { margin: 0 0 6px; font: 700 clamp(24px, 2.6vw, 40px)/1.05 var(--f); letter-spacing: -.02em; }
.t-role { margin: 0 0 16px; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.t-what > p:not(.t-role) { margin: 0 0 26px; max-width: 42em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.t-figs { display: grid; gap: clamp(14px, 1.8vw, 24px); align-items: start; }
.t-figs-2 { grid-template-columns: 1fr 1fr; }
.t-figs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.art-grid { columns: 4 220px; column-gap: clamp(14px, 1.8vw, 24px); }
.art-item { break-inside: avoid; margin-bottom: clamp(20px, 2.4vw, 34px); }

/* ---------- about, contact, return ---------- */

.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; border-top: 1px solid var(--line); }
.about-photo { grid-column: 1 / span 4; margin: 0; }
.about-photo img { width: 100%; height: auto; }
.about-photo figcaption { margin-top: 10px; color: var(--red); }
.about-copy { grid-column: 6 / span 7; }
.about-copy .section-title { margin-bottom: 28px; }
.about-big { margin: 0 0 20px; font: 500 clamp(22px, 2.1vw, 32px)/1.3 var(--f); letter-spacing: -.015em; }
.about-copy > p:not(.about-big):not(.label) { margin: 0 0 28px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 38em; }
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--soft); text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; }

.contact { border-top: 1px solid var(--line); }
.contact-title { margin: 0 0 clamp(30px, 4vw, 56px); font: 800 clamp(64px, 12vw, 200px)/.88 var(--f); letter-spacing: -.055em; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.contact-list li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.contact-list a { flex: 1; display: grid; grid-template-columns: 140px 1fr; align-items: baseline; gap: 16px; padding: 18px 0; text-decoration: none; }
.contact-list .mono { color: var(--soft); text-transform: uppercase; }
.contact-list strong { font: 600 clamp(22px, 2.6vw, 40px)/1.1 var(--f); letter-spacing: -.02em; overflow-wrap: anywhere; transition: color .2s; }
.contact-list a:hover strong { color: var(--red); }
.copy { border: 1px solid var(--ink); background: none; padding: 7px 12px; cursor: pointer; }
.copy:hover { background: var(--ink); color: var(--bg); }

.return { padding: clamp(90px, 16vh, 180px) var(--gut) 28px; text-align: center; border-top: 1px solid var(--line); }
.return-link { display: inline-grid; justify-items: center; gap: 22px; text-decoration: none; }
.return-marks { display: flex; gap: 18px; align-items: flex-end; height: 48px; }
.return-marks .mark { height: 48px; transition: transform .6s var(--ease); }
.return-link:hover .mark { animation: boomerang 1s var(--ease); }
.return-link:hover .mark:nth-child(2) { animation-delay: .06s; }
.return-link:hover .mark:nth-child(3) { animation-delay: .12s; }
.return-link:hover .mark:nth-child(4) { animation-delay: .18s; }
.return-link:hover .mark:nth-child(5) { animation-delay: .24s; }
@keyframes boomerang { 40% { transform: translateY(-40px) rotate(-200deg); } 100% { transform: none; } }
.return-text { font: 700 clamp(26px, 3.4vw, 52px)/1 var(--f); letter-spacing: -.03em; }
.return-link:hover .return-text { color: var(--red); }
.foot { margin: clamp(60px, 10vh, 120px) 0 0; color: var(--soft); }

/* ---------- reveal ---------- */

.rv { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv .fig-img img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease) .1s, opacity .3s; }
.rv.in .fig-img img { clip-path: inset(0); }

/* ---------- viewer ---------- */

.viewer { position: fixed; inset: 0; z-index: 95; background: rgba(255, 255, 255, .98); }
.v-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.v-stage.is-panning { cursor: grabbing; }
.v-img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-select: none; background: var(--tone, #fff); }
.v-top { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: 14px var(--gut); pointer-events: none; }
.v-top > * { pointer-events: auto; }
.v-count { color: var(--red); }
.v-cap { color: var(--ink); }
.v-close { margin-left: auto; padding: 8px 14px; background: var(--bg); border: 1px solid var(--ink); cursor: pointer; }
.v-close:hover { background: var(--ink); color: var(--bg); }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border: 1px solid var(--ink); background: var(--bg); font-size: 20px; cursor: pointer; }
.v-nav:hover { background: var(--ink); color: var(--bg); }
.v-prev { left: var(--gut); }
.v-next { right: var(--gut); }
.v-zoom { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--ink); }
.v-zoom button { min-width: 34px; height: 32px; border: 0; background: none; cursor: pointer; padding: 0 10px; }
.v-zoom button:hover { background: var(--line); }
.v-zoom span { min-width: 48px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 96; transform: translate(-50%, 20px); opacity: 0; padding: 9px 16px; background: var(--ink); color: var(--bg); pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .bar { grid-template-columns: auto 1fr auto; }
  .rail { justify-self: center; }
}

@media (max-width: 860px) {
  :root { --bar: 54px; }
  .bar { grid-template-columns: auto 1fr; }
  .bar-end { display: none; }
  .rail { justify-self: end; gap: 0; }
  .rail a { width: 30px; height: 34px; }
  .rail-label { display: none; }
  .cover-head span:nth-child(3) { display: none; }
  .cover-foot { grid-template-columns: minmax(0, 1fr); }
  .skyline ol { height: 130px; gap: 6px; }
  .skyline .mark { height: calc(var(--h) * 110px); }
  .matrix table { min-width: 560px; }
  .matrix tbody th { width: 34%; font-size: 15px; }

  .ch-open { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: 70px; }
  .ch-mark { order: 2; }
  .mark-xl { height: 28vh; }
  .fig-hero .fig-img img { height: 70vh; }
  .text, .side, .air, .questions, .pin, .height-sticky, .t-item, .about { grid-template-columns: minmax(0, 1fr); }
  .text .label, .text-body, .side > .fig, .side-text, .side.is-flip > .fig, .side.is-flip .side-text,
  .air-svg, .air-text, .q-lead, .pin-fig, .pin-steps, .height-fig, .height-text, .t-when, .t-what, .about-photo, .about-copy { grid-column: 1; grid-row: auto; }
  .pair, .trio, .t-figs-2, .t-figs-3 { grid-template-columns: minmax(0, 1fr); }
  .facts-row, .questions ol { grid-template-columns: minmax(0, 1fr); }
  .facts-row { gap: 22px; }

  .pin-fig { top: var(--bar); height: 46svh; z-index: 2; background: var(--bg); }
  .pin-air .pin-fig { grid-column: 1; }
  .airsec-svg { max-height: 40svh; }
  .airsec figcaption { display: none; }
  .pin-slide .fig-img img { max-height: 40svh; }
  .pin-slide .fig figcaption { display: none; }
  .pin-steps { padding: 6vh 0 10vh; }
  .pin-step { min-height: 50vh; }

  .hs { margin-inline: calc(-1 * var(--gut)); }
  .hs-sticky { position: static; height: auto; overflow: visible; }
  .hs-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .hs-item { width: 80vw; scroll-snap-align: start; }
  .step { width: 76vw; scroll-snap-align: start; }

  .height { height: auto; }
  .height-sticky { position: static; height: auto; }
  .ruler { display: none; }
  .about-photo { max-width: 60%; }
  .contact-list a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .v-nav { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: none; width: 44px; height: 44px; }
  .v-zoom [data-zoom="fit"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv, .mark-xl { opacity: 1; transform: none; }
  .rv .fig-img img { clip-path: none; }
}
