/* GALLERY Screensavers — download site.
 * The gallery's own palette and type (ink, paper, Cormorant, Inter, Plex Mono),
 * with one champagne accent, used sparingly. */

:root {
  --ink: #0a0a0b;
  --coal: #0f0f11;
  --ash: #17171a;
  --paper: #ebe8e1;
  --dim: #a09c93;
  --faint: #6a665f;
  --line: rgb(235 232 225 / 0.09);
  --line-strong: rgb(235 232 225 / 0.18);
  --gold: #c8b48a;
  --gold-hi: #e9dbb8;
  --gold-lo: #8a7650;

  --serif: 'Cormorant Garamond', 'Noto Serif KR', 'AppleMyungjo', 'Nanum Myeongjo', Georgia, serif;
  --sans: 'Inter', 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1320px;
  --pad: clamp(20px, 5vw, 64px);
  --gap-sec: clamp(112px, 15vw, 220px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--paper);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Film grain over everything: the faint tooth of good paper. */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[lang='ko'],
:lang(ko) {
  word-break: keep-all;
  line-break: strict;
}

/* Two languages live side by side in the markup; show one. */
html[data-lang='ko'] body [lang='en'],
html[data-lang='en'] body [lang='ko'] {
  display: none !important;
}

::selection {
  background: rgb(200 180 138 / 0.28);
  color: #fff;
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--paper);
  background: rgb(235 232 225 / 0.05);
  border: 1px solid var(--line);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  word-break: break-all;
}

b {
  font-weight: 500;
  color: var(--paper);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  transition: top 0.2s;
}

.skip:focus {
  top: 16px;
}

/* ───────────────────────────── type voices ───────────────────────────── */
.label {
  margin: 0;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

html[data-lang='ko'] .label {
  letter-spacing: 0.16em;
}

.numeral {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 1.04;
}

.display em,
.statement em {
  font-style: italic;
  color: var(--gold-hi);
}

.display [lang='ko'],
.display:lang(ko) {
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.display [lang='ko'] em {
  font-style: normal;
}

.lede {
  margin: 0;
  max-width: 34em;
  color: var(--dim);
  font-size: 15.5px;
  line-height: 1.85;
}

.faint {
  color: var(--faint);
}

.link {
  color: var(--paper);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  background-image: linear-gradient(var(--line-strong), var(--line-strong));
  transition: color 0.3s var(--ease), background-image 0.3s var(--ease);
}

.link:hover {
  color: var(--gold-hi);
  background-image: linear-gradient(var(--gold), var(--gold));
}

/* ─────────────────────────────── buttons ─────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition:
    color 0.5s var(--ease),
    border-color 0.5s var(--ease),
    background-color 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.btn .ico {
  width: 12px;
  height: 12px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-meta {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: none;
  opacity: 0.62;
  padding-left: 14px;
  border-left: 1px solid currentColor;
  border-left-color: color-mix(in srgb, currentColor 30%, transparent);
}

.btn-solid {
  color: var(--ink);
  background: var(--paper);
}

/* A slow champagne sheen sweeps across on hover. */
.btn-solid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, var(--gold-lo) 0%, var(--gold) 30%, var(--gold-hi) 50%, var(--gold) 70%, var(--gold-lo) 100%);
  transform: translateX(-101%);
  transition: transform 0.9s var(--ease-out);
}

.btn-solid:hover::before,
.btn-solid:focus-visible::before {
  transform: translateX(0);
}

.btn-ghost {
  color: var(--paper);
  padding-inline: 4px;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 16px;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
  transition: background-color 0.5s var(--ease);
}

.btn-ghost:hover {
  color: var(--gold-hi);
}

.btn-ghost:hover::after {
  background: var(--gold);
}

.btn-line {
  color: var(--paper);
  border: 1px solid var(--line-strong);
}

.btn-line:hover {
  color: var(--gold-hi);
  border-color: var(--gold);
}

.btn-sm {
  min-height: 38px;
  padding: 0 18px;
  font-size: 10.5px;
}

/* ─────────────────────────────── header ──────────────────────────────── */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition:
    background-color 0.6s var(--ease),
    border-color 0.6s var(--ease),
    transform 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}

.top.is-scrolled {
  background: rgb(10 10 11 / 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.brand-mark {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
}

.brand-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--dim);
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim);
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.nav a:hover {
  color: var(--paper);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.lang button {
  color: var(--faint);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.lang button[aria-pressed='true'] {
  color: var(--paper);
}

.lang button:hover {
  color: var(--gold-hi);
}

/* ──────────────────────────────── hero ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #070708 url('../img/screens/005.webp') center / cover;
}

.hero-art::after {
  /* Engraved metal in low light: the work, dimmed so the copy can stand on it. */
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(7 7 8 / 0.42);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 2.4s var(--ease);
}

.hero-canvas.is-on {
  opacity: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 44% at 50% 52%, rgb(10 10 11 / 0.9) 0%, rgb(10 10 11 / 0.72) 42%, rgb(10 10 11 / 0) 100%),
    linear-gradient(180deg, rgb(10 10 11 / 0.85) 0%, rgb(10 10 11 / 0) 18%, rgb(10 10 11 / 0) 60%, var(--ink) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding: 140px var(--pad) 120px;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.hero-kicker::before,
.hero-kicker::after {
  content: '';
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-kicker::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-title {
  margin: 34px 0 0;
  font-size: clamp(44px, 6.7vw, 106px);
  text-wrap: balance;
  text-shadow: 0 2px 40px rgb(10 10 11 / 0.6);
}

.hero-title [lang='ko'] {
  display: block;
  font-size: 0.74em;
}

.hero-sub {
  margin: 34px auto 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--dim);
  text-shadow: 0 1px 24px rgb(10 10 11 / 0.9);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 30px;
  margin-top: 52px;
}

.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin-inline: auto;
  padding: 0 var(--pad) 32px;
  color: var(--faint);
}

.hero-foot p {
  margin: 0;
}

.wall {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--dim);
}

.wall .numeral {
  color: var(--gold);
}

.wall-title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--paper);
}

.wall-var {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  transition: opacity 0.8s var(--ease);
}

.wall-note {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.wall-note::before {
  content: '·';
  margin-right: 10px;
}

.wall-dot {
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgb(200 180 138 / 0.5);
  animation: live 2.6s var(--ease) infinite;
}

@keyframes live {
  0% { box-shadow: 0 0 0 0 rgb(200 180 138 / 0.45); }
  70%, 100% { box-shadow: 0 0 0 9px rgb(200 180 138 / 0); }
}

.hero-ver {
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 56px;
  transform: translateX(-50%);
  overflow: hidden;
}

.scroll-cue span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: cue 2.8s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* Entrance of the hero copy. */
.js .rise {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1.6s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveals. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1.3s var(--ease-out),
    transform 1.3s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────── prelude ─────────────────────────────── */
.prelude {
  padding-block: var(--gap-sec) calc(var(--gap-sec) * 0.8);
}

.statement {
  margin: 0 auto;
  max-width: 21em;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.3;
  text-align: center;
  color: var(--paper);
}

.statement [lang='ko'] {
  display: block;
  font-size: 0.8em;
  line-height: 1.65;
  letter-spacing: -0.03em;
}

.statement [lang='ko'] em {
  font-style: normal;
}

.pillars {
  list-style: none;
  margin: clamp(80px, 10vw, 140px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.pillar {
  padding: 44px 40px 8px;
  border-left: 1px solid var(--line);
}

.pillar:first-child {
  border-left: 0;
  padding-left: 0;
}

.pillar:last-child {
  padding-right: 0;
}

.pillar-no {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.pillar-title {
  margin: 22px 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.pillar-title [lang='ko'] {
  font-size: 0.78em;
  letter-spacing: -0.03em;
}

.pillar p {
  margin: 0;
  color: var(--dim);
  line-height: 1.85;
}

/* ─────────────────────────── section headings ────────────────────────── */
.sec-head {
  display: grid;
  gap: 26px;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.sec-title {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 80px);
}

.sec-title [lang='ko'] {
  display: block;
  font-size: 0.78em;
}

.sec-head-split {
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: end;
  gap: 40px 80px;
}

.sec-aside {
  display: grid;
  gap: 28px;
  justify-items: start;
}

/* ────────────────────────────── showcase ─────────────────────────────── */
.showcase {
  padding-block: calc(var(--gap-sec) * 0.6) var(--gap-sec);
}

.showcase .sec-head {
  justify-items: center;
  text-align: center;
}

.showcase .lede {
  text-align: center;
}

.monitor {
  position: relative;
  margin: 0 auto;
  max-width: 1180px;
}

.monitor-frame {
  position: relative;
  padding: clamp(6px, 0.9vw, 12px);
  background: linear-gradient(180deg, #1b1b1e, #0c0c0e);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgb(235 232 225 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    0 50px 120px -30px rgb(0 0 0 / 0.9),
    0 30px 160px -60px rgb(200 180 138 / 0.18);
}

.monitor-glass {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: 3px;
}

.monitor-glass img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 1.4s var(--ease),
    transform 9s linear;
}

.monitor-glass img.is-on {
  opacity: 1;
  transform: scale(1);
}

.monitor-sheen {
  position: absolute;
  inset: clamp(6px, 0.9vw, 12px);
  border-radius: 3px;
  pointer-events: none;
  background: linear-gradient(118deg, rgb(255 255 255 / 0.07) 0%, rgb(255 255 255 / 0) 34%);
  mix-blend-mode: screen;
}

.monitor-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -46px;
  height: 46px;
  background: radial-gradient(ellipse 50% 100% at 50% 0%, rgb(200 180 138 / 0.1), transparent 70%);
  filter: blur(8px);
}

.monitor-cap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.monitor-cap .numeral {
  color: var(--gold);
}

.cap-title {
  font-family: var(--serif);
  font-size: 20px;
  min-height: 1.3em;
  transition: opacity 0.6s var(--ease);
}

.cap-title i {
  color: var(--dim);
  margin-left: 0.4em;
}

.cap-progress {
  align-self: center;
  width: 120px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.cap-progress i {
  display: block;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
}

.cap-note {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* ───────────────────────────── collection ────────────────────────────── */
.collection {
  padding-bottom: var(--gap-sec);
}

.rooms {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: flex;
  gap: 0;
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad);
  overflow-x: auto;
  scrollbar-width: none;
  background: rgb(10 10 11 / 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-block: 1px solid var(--line);
}

.rooms::-webkit-scrollbar {
  display: none;
}

.rooms a {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  font-size: 12.5px;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}

.rooms a + a {
  border-left: 1px solid var(--line);
}

.rooms a::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}

.rooms a:hover,
.rooms a[aria-current='true'] {
  color: var(--paper);
}

.rooms a[aria-current='true']::after {
  transform: scaleX(1);
}

.rooms-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
}

.chapter {
  padding-top: clamp(72px, 9vw, 128px);
}

.chapter-head {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: end;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.chapter-no {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 72px;
  line-height: 0.8;
  color: var(--gold);
}

.chapter-title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
}

.chapter-title [lang='ko'] {
  font-size: 0.8em;
}

.chapter-theme {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--dim);
}

.chapter-theme [lang='ko'] {
  font-style: normal;
  font-size: 15px;
}

.chapter-range {
  color: var(--faint);
  padding-bottom: 6px;
}

.works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(36px, 4vw, 64px) clamp(16px, 2vw, 32px);
}

.work {
  position: relative;
  container-type: inline-size;
}

.work-link {
  display: block;
}

.work-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ash);
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition:
    transform 1.6s var(--ease-out),
    filter 1.2s var(--ease);
  filter: saturate(0.92) brightness(0.94);
}

/* An inset hairline that appears on hover, like a mat around a print. */
.work-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgb(200 180 138 / 0);
  transition:
    border-color 0.8s var(--ease),
    inset 0.8s var(--ease);
}

.work-link:hover .work-img img,
.work-link:focus-visible .work-img img {
  transform: scale(1.045);
  filter: saturate(1.05) brightness(1.04);
}

.work-link:hover .work-img::after,
.work-link:focus-visible .work-img::after {
  inset: 10px;
  border-color: rgb(200 180 138 / 0.55);
}

.work-cap {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  padding-top: 18px;
  padding-right: 72px;
}

.work-no {
  grid-row: span 2;
  padding-top: 5px;
  color: var(--gold);
}

.work-title {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
  transition: color 0.4s var(--ease);
}

.work-title [lang='ko'] {
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.work-alt {
  margin-top: 4px;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.4;
}

.work-alt [lang='en'] {
  letter-spacing: 0;
}

.work-link:hover .work-title {
  color: var(--gold-hi);
}

.work-dl {
  position: absolute;
  right: 0;
  top: 125cqw; /* just under the 4:5 image */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--faint);
  transition: color 0.4s var(--ease);
}

.work-dl svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-dl .numeral {
  font-size: 10px;
}

.work-dl:hover {
  color: var(--gold-hi);
}

/* ─────────────────────────────── install ─────────────────────────────── */
.install {
  padding-block: var(--gap-sec);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgb(200 180 138 / 0.04), transparent 70%),
    var(--coal);
  border-block: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 44px 0 0;
}

.step + .step {
  padding-left: 44px;
  border-left: 1px solid var(--line);
}

.step-no {
  display: block;
  font-size: 12px;
  color: var(--gold);
}

.step-title {
  margin: 26px 0 18px;
  font-size: 40px;
}

.step-title [lang='ko'] {
  font-size: 30px;
}

.step p {
  margin: 0;
  color: var(--dim);
  line-height: 1.9;
}

.step i {
  font-family: var(--serif);
  font-size: 1.12em;
  color: var(--paper);
}

.note {
  display: flex;
  gap: 18px;
  margin-top: clamp(64px, 7vw, 96px);
  padding: 26px 30px;
  border: 1px solid var(--line);
  background: rgb(235 232 225 / 0.015);
}

.note-mark {
  color: var(--gold);
  font-size: 14px;
  line-height: 1.85;
}

.note p {
  margin: 0;
  font-size: 14px;
  color: var(--dim);
  line-height: 1.85;
}

/* ──────────────────────────────── specs ──────────────────────────────── */
.specs {
  padding-block: var(--gap-sec);
}

.specs-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
  gap: 40px 96px;
  align-items: start;
}

.specs .sec-head {
  position: sticky;
  top: 120px;
  margin-bottom: 0;
}

.spec {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.spec > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}

.spec dt {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 3px;
}

.spec dt [lang='ko'] {
  letter-spacing: 0.12em;
  font-size: 12px;
}

.spec dd {
  margin: 0;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.7;
}

.spec dd.numeral {
  font-size: 13px;
}

/* ──────────────────────────────── finale ─────────────────────────────── */
.finale {
  position: relative;
  padding-block: calc(var(--gap-sec) * 1.05);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
  border-top: 1px solid var(--line);
}

.finale-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../img/screens/058.webp') center / cover;
  opacity: 0.32;
  filter: saturate(0.85);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 10%, transparent 75%);
}

.finale-inner {
  display: grid;
  justify-items: center;
}

.finale-title {
  margin: 28px 0 0;
  font-size: clamp(44px, 6.4vw, 100px);
  text-shadow: 0 2px 40px rgb(10 10 11 / 0.7);
}

.finale-title [lang='ko'] {
  display: block;
  font-size: 0.76em;
}

.finale-cta {
  margin-top: 56px;
}

/* ──────────────────────────────── footer ─────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 56px 64px;
  font-size: 12.5px;
  color: var(--faint);
}

.foot-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.foot p {
  margin: 0;
}

.foot-brand .brand-mark {
  display: block;
  color: var(--paper);
  margin-bottom: 14px;
}

.foot-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.foot-links .link,
.foot .link {
  color: var(--dim);
}

.foot-links .link:hover,
.foot .link:hover {
  color: var(--gold-hi);
}

.foot-legal {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

/* ──────────────────────────────── detail ─────────────────────────────── */
.detail {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  overflow: hidden;
}

.detail::backdrop {
  background: rgb(5 5 6 / 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.detail[open] {
  animation: fade 0.6s var(--ease) both;
}

.detail[open] .detail-inner {
  animation: lift 0.9s var(--ease-out) both;
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
}

.detail-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 clamp(32px, 4vw, 72px);
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(64px, 7vh, 96px) var(--pad) 28px;
}

.detail-close {
  position: absolute;
  top: 22px;
  right: var(--pad);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition:
    border-color 0.4s var(--ease),
    transform 0.6s var(--ease);
}

.detail-close svg,
.detail-nav svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-close:hover {
  border-color: var(--gold);
  transform: rotate(90deg);
}

.detail-screen {
  margin: 0;
  align-self: center;
  padding: clamp(6px, 0.7vw, 10px);
  background: linear-gradient(180deg, #1b1b1e, #0c0c0e);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgb(235 232 225 / 0.08),
    0 40px 100px -30px rgb(0 0 0 / 0.9);
}

.detail-glass {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: 3px;
}

.detail-glass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s var(--ease);
}

.detail-glass img.is-loading {
  opacity: 0;
}

.detail-body {
  align-self: center;
  max-height: 100%;
  overflow-y: auto;
  padding: 8px 4px 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.16) transparent;
}

.detail-room .numeral {
  font-size: 10.5px;
  margin-right: 4px;
}

.detail-title {
  margin: 22px 0 0;
  font-size: clamp(40px, 4vw, 64px);
}

.detail-title:lang(ko) {
  font-size: clamp(34px, 3.2vw, 50px);
}

.detail-alt {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--faint);
}

.detail-tagline {
  margin: 30px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--gold-hi);
}

.detail-tagline:lang(ko) {
  font-style: normal;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: -0.02em;
}

.detail-desc {
  margin: 18px 0 0;
  color: var(--dim);
  line-height: 1.85;
  font-size: 14.5px;
}

.detail-vars {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-vars ol {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.detail-vars li {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--paper);
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.detail-vars li:lang(ko) {
  font-size: 13.5px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 36px;
}

.detail-file {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 10.5px;
  word-break: break-all;
}

.detail-nav {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding-top: 22px;
  color: var(--faint);
}

.detail-nav button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--dim);
  transition:
    border-color 0.4s var(--ease),
    color 0.4s var(--ease);
}

.detail-nav button:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
}

html.has-dialog {
  overflow: hidden;
}

/* ───────────────────────────── responsive ────────────────────────────── */
@media (max-width: 1180px) {
  .works {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }

  .top-actions {
    margin-left: auto;
  }

  .sec-head-split,
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .specs .sec-head {
    position: static;
    margin-bottom: 48px;
  }

  .detail-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 28px;
    overflow-y: auto;
    padding-top: 84px;
  }

  .detail-body {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 860px) {
  .pillars,
  .steps {
    grid-template-columns: 1fr;
  }

  .pillar,
  .pillar:first-child,
  .step,
  .step + .step {
    padding: 36px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:first-child {
    padding-top: 0;
  }

  .works {
    grid-template-columns: repeat(2, 1fr);
  }

  .chapter-head {
    grid-template-columns: 56px 1fr;
  }

  .chapter-no {
    font-size: 52px;
  }

  .chapter-range {
    display: none;
  }

  .foot-inner {
    grid-template-columns: 1fr;
  }

  .foot-legal {
    justify-items: start;
    text-align: left;
  }

  .wall-note {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14.5px;
  }

  .top-inner {
    height: 64px;
    gap: 16px;
  }

  .brand-sub {
    display: none;
  }

  .rooms {
    top: 64px;
  }

  .rooms a {
    flex: 0 0 auto;
    padding: 15px 16px;
  }

  .hero-inner {
    padding-top: 120px;
  }

  .hero-cta .btn-solid {
    width: 100%;
    justify-content: center;
  }

  .hero-shade {
    background:
      radial-gradient(ellipse 95% 42% at 50% 50%, rgb(10 10 11 / 0.9) 0%, rgb(10 10 11 / 0.7) 50%, rgb(10 10 11 / 0.2) 100%),
      linear-gradient(180deg, rgb(10 10 11 / 0.85) 0%, rgb(10 10 11 / 0) 18%, rgb(10 10 11 / 0) 60%, var(--ink) 100%);
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 24px;
  }

  .scroll-cue {
    display: none;
  }

  .works {
    gap: 32px 14px;
  }

  .work-cap {
    padding-right: 0;
    grid-template-columns: 1fr;
  }

  .work-no {
    grid-row: auto;
    padding: 0 0 4px;
  }

  .work-title {
    font-size: 18px;
  }

  .work-dl {
    position: static;
    margin-top: 10px;
  }

  .spec > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .monitor-cap {
    grid-template-columns: auto 1fr;
  }

  .cap-progress {
    display: none;
  }

  .btn-meta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .rise,
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
