/* Michael Zhou — Night lattice, Lens chrome.
   Tokens follow Lattice night: ink #07080b, bone #ece7da, signal #ff5a1f, ice #7fd8ff. */

:root {
  --bg: #07080b;
  --ink: #ece7da;
  --dim: #9d988c;
  --faint: #6c685f;
  --hot: #ff5a1f;
  --ice: #7fd8ff;
  --line: rgb(236 231 218 / 0.14);
  --line-strong: rgb(236 231 218 / 0.32);
  --pad: clamp(18px, 4vw, 56px);
  --measure: 68ch;
  --col: min(clamp(960px, 62vw, 1500px), calc(100% - var(--pad) * 2));
  --f-ui: "Atkinson Hyperlegible Next", "Noto Sans KR", system-ui, sans-serif;
  --f-dot: "Doto", "Atkinson Hyperlegible Next", ui-monospace, monospace;
  color-scheme: dark;
  background: var(--bg);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: auto;
  /* Keep fixed Lattice/Lens layers joined to the page end — rubber-band
     overscroll otherwise reveals a seam under the last glass panel. */
  overscroll-behavior-y: none;
}
html.is-reduced { scroll-behavior: auto; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(17px, 0.72vw, 20px)/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}
html[lang="ko"] { --f-ui: "Noto Sans KR", "Atkinson Hyperlegible Next", system-ui, sans-serif; }
::selection { background: rgb(255 90 31 / 0.35); color: var(--ink); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
.sr-only, .skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 20;
  width: auto; height: auto; margin: 0; clip: auto; overflow: visible;
  padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 999px;
}
.matrix { font-family: var(--f-dot); font-weight: 900; letter-spacing: 0.06em; }

/* no-WebGL: a static dot field so the page is still a lattice */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgb(236 231 218 / 0.28) 1px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: 0;
}
html.no-gl body::before { opacity: 1; }

.field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  /* dvh tracks mobile toolbars better than vh; keeps Lattice flush to the visual viewport */
  width: 100vw; height: 100vh; height: 100dvh;
  display: block; z-index: 0; pointer-events: none;
}

#glass {
  --lg-color-text: #ece7da;
  --lg-color-muted: #9d988c;
  --lg-color-focus: #ff5a1f;
  --lg-font-family: var(--f-ui);
  --lg-radius-panel: 28px;
  --lg-fallback-blur: 18px;
  position: relative;
  z-index: 1;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  color: var(--ink);
  isolation: isolate;
}
#glass > .lg-canvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 1;
  pointer-events: none;
  background: transparent !important;
}
#glass .lg-panel {
  touch-action: pan-y;
  border-radius: 28px;
}
#glass.fallback .lg-surface,
#glass:not(.webgl-ready) .lg-surface {
  background: rgb(7 8 11 / 0.62);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 rgb(236 231 218 / 0.2),
    inset 0 0 0 1px rgb(236 231 218 / 0.1),
    0 24px 50px -32px rgb(0 0 0 / 0.85);
}

.top, .band, .hero, .module, .hero__copy { position: relative; z-index: 2; }

/* top bar — one lens */
.top {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 8px 10px 8px 18px;
  min-height: 58px;
  color: var(--ink);
  background: rgb(7 8 11 / 0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    inset 0 0 0 1px rgb(236 231 218 / 0.12);
}
#glass.webgl-ready .top:not(.is-covered) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.34),
    inset 0 -1px 0 rgb(127 216 255 / 0.12),
    inset 0 0 0 1px rgb(236 231 218 / 0.14);
}
#glass.webgl-ready .lg-surface {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.32),
    inset 0 -1px 0 rgb(127 216 255 / 0.1),
    inset 0 0 0 1px rgb(236 231 218 / 0.12);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 16px;
  white-space: nowrap;
}
.mark__logo { width: 32px; height: 32px; display: block; flex: none; }
.mark__name { font-weight: 600; letter-spacing: -0.03em; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  min-height: 40px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"]::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--hot);
  margin-right: 7px;
}
.motion {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 13px/1 var(--f-ui);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
}
.motion[aria-pressed="false"] { color: var(--dim); }
.motion[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--hot); color: var(--hot); }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-height: 40px;
  padding: 0 4px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.lang button {
  min-height: 32px;
  min-width: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font: 500 12px/1 var(--f-ui);
  letter-spacing: 0.08em;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--hot); }
.lang button:hover { color: var(--ink); }
.lang__bar { color: var(--faint); font-size: 12px; user-select: none; padding: 0 1px; }

/* hero */
.hero {
  min-height: calc(100svh - 82px);
  display: grid;
  align-items: end;
  padding: 8vh var(--pad) clamp(28px, 6vh, 64px);
  user-select: none;
  touch-action: pan-y;
}
.hero h1, .hero__copy { user-select: text; }
.hero h1 {
  position: absolute;
  top: 18vh;
  left: 0;
  right: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.14em;
  max-width: none;
  font-size: clamp(56px, 9vw, 112px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.84;
  pointer-events: none;
}
.hero-name-main, .hero-name-sub {
  display: block;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  white-space: nowrap;
}
/* The lattice draws both words. The heading stays available to assistive tech. */
html.has-field .hero h1 {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hold-hint {
  position: fixed;
  right: clamp(18px, 3vw, 40px);
  bottom: clamp(18px, 4vh, 36px);
  z-index: 6;
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.06em;
  pointer-events: none;
  opacity: 0;
}
.hold-hint.is-on { animation: hold-hint 3.2s ease-in-out infinite; }
@keyframes hold-hint {
  0%, 100% { opacity: 0.16; }
  50% { opacity: 0.62; }
}
html.is-reduced .hold-hint.is-on { animation: none; opacity: 0.5; }
.hero__copy { max-width: 640px; }
.tag { margin: 0; color: var(--dim); font-size: 14px; letter-spacing: 0.01em; }
.sub {
  margin: 10px 0 0;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.intro { margin: 16px 0 0; max-width: var(--measure); color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; }
.ctas a, .cta a, details summary {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  font-size: 15px;
  font-weight: 500;
}
.ctas a { min-height: 44px; display: inline-flex; align-items: center; border-bottom-width: 1px; }
.ctas a:hover, .cta a:hover, details summary:hover { border-bottom-color: var(--hot); color: var(--ink); }
/* Charge follows the pointer: a point, then a ring. The OS arrow stays hidden while it is shown. */
.mz-cursor {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 80;
  pointer-events: none;
}
@media (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
}
html.is-reduced, html.is-reduced * { cursor: auto !important; }
html.is-reduced .station__pull,
html.is-reduced .station:nth-of-type(odd).is-reached .station__pull,
html.is-reduced .station:nth-of-type(even).is-reached .station__pull {
  transform: none;
  opacity: 1;
  transition: none;
}
html.is-reduced .station__body { opacity: 1; transform: none; }
html.is-reduced .future { --p: 1; }

.spill { height: 36vh; }

/* content */
.band, .hero, #spill {
  scroll-margin-top: 96px;
}
.band {
  width: var(--col);
  margin: 0 auto;
  padding: 28px 0 72px;
}
.band--wide { width: var(--col); }
.band--bleed { width: 100%; }
.band--bleed .band__head,
.lead--inset {
  width: var(--col);
  margin-left: auto;
  margin-right: auto;
}
.band__head { margin: 0 0 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.band h2, .contact h2 {
  margin: 0;
  font-size: clamp(32px, 2.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.stamp, .lead { margin: 0; color: var(--dim); }
.stamp { font-family: var(--f-dot); font-weight: 700; letter-spacing: 0.08em; font-size: clamp(15px, 0.66vw, 18px); }
.lead { margin-top: 10px; max-width: var(--measure); }
.band__head .lead { margin-top: 8px; }
.band__head:has(.lead) { display: block; }
.stack { display: grid; gap: 16px; }
.module {
  padding: 26px 28px 28px;
  color: var(--ink);
}
.is-float {
  touch-action: pan-y;
  cursor: grab;
  will-change: transform;
}
.is-float.is-dragging {
  cursor: grabbing;
  z-index: 4;
  touch-action: none;
  user-select: none;
}
.is-float.is-dissolving {
  pointer-events: none;
  will-change: opacity, filter, scale;
  z-index: 5;
}
html.is-reduced .is-float.is-dissolving {
  transition: none;
  filter: none !important;
  scale: none !important;
}

.is-float a, .is-float button, .is-float summary { cursor: pointer; }
html.is-reduced .is-float { cursor: auto; }
.module h3 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-style: italic;
}
.module p { margin: 0; max-width: var(--measure); }
.module p + p { margin-top: 12px; }
.kicker {
  margin: 0;
  color: var(--ice);
  font-family: var(--f-dot);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.meta { color: var(--dim); font-size: 14px; }
.status { color: var(--ink); font-size: 14px; font-weight: 500; }
.follow { color: var(--dim); font-size: 13px; margin-top: 8px; }
.cta { margin-top: 16px !important; }
details { margin-top: 12px; }
details summary { cursor: pointer; width: fit-content; }
details p { margin-top: 10px; }

.notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: 22px;
}
.note {
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 18px 16px;
}
.note figcaption { font-size: 14px; line-height: 1.35; }
.note .follow { margin-top: 8px; }

.ph {
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgb(236 231 218 / 0.06), transparent 42%),
    repeating-linear-gradient(135deg, rgb(127 216 255 / 0.05) 0 1px, transparent 1px 14px);
  box-shadow: inset 0 0 0 1px rgb(236 231 218 / 0.12);
}
.ph-45 { aspect-ratio: 4 / 5; }
.ph-11 { aspect-ratio: 1; }
.ph-32 { aspect-ratio: 3 / 2; }
.ph-1610 { aspect-ratio: 16 / 10; min-height: 180px; }
.ph-43 { aspect-ratio: 4 / 3; }
.band__head:has(.stamp):has(h2) { display: block; }
.band__head .stamp + h2, .band__head h2 + .stamp { margin-top: 8px; }
.chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: end;
  margin: 8px 0 28px;
}
.chapters .stamp { margin: 0 8px 0 0; }
.chapters .stamp span { color: var(--dim); }
.chapters a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
}
.chapters a span {
  color: var(--ice);
  font-family: var(--f-dot);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.chapters a:hover { color: var(--hot); }

.band--timeline { width: var(--col); }
.timeline { position: relative; margin-top: 42px; padding-bottom: 8px; }
.timeline__rail {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgb(236 231 218 / 0.34) 6%, rgb(236 231 218 / 0.22) 94%, transparent);
  pointer-events: none;
}
.timeline__glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff8f2;
  box-shadow:
    0 0 14px 5px rgb(255 236 214 / 0.9),
    0 0 32px 10px rgb(255 90 31 / 0.5);
  pointer-events: none;
}
.station {
  --reveal: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  column-gap: 18px;
  align-items: start;
  margin: 0 0 108px;
}
.station__node {
  grid-column: 2;
  grid-row: 1;
  width: 9px;
  height: 9px;
  margin-top: 10px;
  justify-self: center;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 0 5px var(--bg);
}
.station.is-hit .station__node {
  background: #fff;
  box-shadow: 0 0 0 5px var(--bg), 0 0 14px 4px rgb(255 90 31 / 0.75);
}
.station__card {
  grid-row: 1;
  max-width: clamp(340px, 25vw, 620px);
  padding: clamp(12px, 0.9vw, 20px) clamp(14px, 1vw, 22px);
  border-radius: 18px;
  background: rgb(7 8 11 / 0.42);
  box-shadow: inset 0 0 0 1px rgb(236 231 218 / 0.14);
}
.station:nth-of-type(odd) .station__card { grid-column: 1; justify-self: end; text-align: right; }
.station:nth-of-type(even) .station__card { grid-column: 3; justify-self: start; text-align: left; }
.station__pull {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.15vw, 28px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.2;
  opacity: 0.6;
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease;
}
.station:nth-of-type(odd).is-reached .station__pull { opacity: 1; transform: translateX(16px); }
.station:nth-of-type(even).is-reached .station__pull { opacity: 1; transform: translateX(-16px); }
.station.is-hit .station__pull { color: #fff; }
.station__body {
  opacity: var(--reveal);
  transform: translateY(calc((1 - var(--reveal)) * 14px));
}
.station__body p, .station__body summary { font-size: clamp(14px, 0.85vw, 20px); line-height: 1.5; }
.station .kicker { font-size: clamp(12.5px, 0.66vw, 15px); line-height: 1.4; }
.station .ph figcaption, .station .ph .follow { font-size: clamp(11px, 0.62vw, 15px); }
.station .ph {
  aspect-ratio: auto;
  min-height: 0;
  margin-top: 10px;
  padding: 8px 10px;
}
.station .cta { margin-top: 10px !important; }
.station details { margin-top: 8px; }
.timeline__end { position: relative; z-index: 1; display: flex; justify-content: center; padding: clamp(56px, 7vh, 110px) 0 12px; }
.future {
  position: relative;
  width: min(clamp(680px, 46vw, 1100px), 92vw);
  height: clamp(168px, 12vw, 280px);
  margin: 8px auto 0;
  --p: 0;
}
.future__fallback { display: none; }
html.no-gl .future__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--f-dot);
  font-weight: 900;
  font-size: clamp(42px, 8vw, 72px);
  letter-spacing: 0.18em;
}
.future__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 8px rgb(236 231 218 / 0.35);
  transform: translate(calc(var(--hx) * var(--p) + var(--jx) * (1 - var(--p))), calc(var(--hy) * var(--p) + var(--jy) * (1 - var(--p))));
  opacity: calc(0.15 + 0.85 * var(--p));
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.2vw, 28px);
  align-items: start;
}
.work-grid .module { padding: 14px 14px 16px; }
.work-grid h3 { margin-top: 8px; font-size: clamp(20px, 1.7vw, 26px); }
.work-grid p, .work-grid .role { font-size: clamp(14px, 0.72vw, 18px); }
.work-grid .ph { margin-top: 0; min-height: 0; }
.work-grid .ph-1610 { min-height: 0; aspect-ratio: 16 / 9; }
.work-grid .tags { margin-top: 10px; }
.stamp--quiet { display: block; width: var(--col); margin: 8px auto 0; }
.story { margin-top: 14px; }
.story summary { list-style: none; }
.story summary::-webkit-details-marker { display: none; }
.story p { margin-top: 12px; }
.module--compact h3 { margin-top: 16px; font-size: clamp(22px, 2vw, 28px); }
.case-page { min-height: 100vh; }
.case-page h1 {
  margin: 10px 0 0;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.case-page .module {
  margin-top: 22px;
  border-radius: 28px;
  background: rgb(7 8 11 / 0.55);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    inset 0 0 0 1px rgb(236 231 218 / 0.12);
}
.case-page .top { position: sticky; }
.ph figcaption { font-size: 14px; line-height: 1.35; }
.chapter .ph, .flagship .ph { margin-top: 18px; }
.slot { color: var(--faint); font-style: italic; }
.role { margin-top: 14px !important; color: var(--dim); font-size: 15px; }
.role span {
  display: block;
  margin-bottom: 4px;
  color: var(--ice);
  font-family: var(--f-dot);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-style: normal;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.more-h {
  margin: 36px 0 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  font-family: var(--f-dot);
}
.stack--tight { gap: 12px; }
.module--compact { padding: 20px 22px 22px; }
.module--compact .kicker { font-size: 15px; letter-spacing: 0.02em; color: var(--ink); font-family: var(--f-ui); font-weight: 600; }
.flagship h3 { margin-top: 16px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0 0; }

.marquee {
  margin-top: 28px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee--rev { margin-top: 8px; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-left 46s linear infinite;
}
.marquee--rev .marquee__track { animation-name: marquee-right; animation-duration: 54s; }
.marquee__set {
  display: flex;
  align-items: center;
  margin: 0;
  padding-right: 0.2em;
  white-space: nowrap;
}
.skill {
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
}
.marquee__set .skill:nth-child(4n + 3) { font-style: italic; color: var(--ice); }
.marquee__set .skill:nth-child(4n + 1) { color: rgb(236 231 218 / 0.78); }
.skill--slot { color: var(--faint) !important; font-style: italic; font-size: 0.72em; }
.star {
  color: var(--hot);
  padding: 0 0.42em;
  font-size: 0.42em;
  font-style: normal;
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.band.is-arriving .band__head,
.band.is-arriving > .lead,
.hero.is-arriving .hero__copy {
  animation: arrive 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes arrive {
  from { opacity: 0.2; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.contact { max-width: clamp(720px, 45vw, 1000px); }
.contact p { font-size: clamp(17px, 1.6vw, 20px); }
.colophon {
  margin: 12px 0 0;
  padding-top: 0;
  border-top: 0;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.04em;
}
/* Contact band: keep a little air below the last glass so the page end
   does not sit flush with the viewport edge (which exaggerates any seam). */
#contact.band {
  padding-bottom: max(72px, calc(56px + env(safe-area-inset-bottom, 0px)));
}


@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top { gap: 8px; padding-left: 14px; width: calc(100% - 16px); top: 8px; }
  .nav a { padding: 8px 8px; font-size: 13px; }
}
@media (max-width: 720px) {
  .timeline__rail { left: 16px; }
  .station { grid-template-columns: 28px 1fr; margin-bottom: 72px; }
  .station__node { grid-column: 1; }
  .station__card,
  .station:nth-of-type(odd) .station__card,
  .station:nth-of-type(even) .station__card {
    grid-column: 2;
    justify-self: stretch;
    max-width: none;
    text-align: left;
  }
  .station:nth-of-type(odd).is-reached .station__pull,
  .station:nth-of-type(even).is-reached .station__pull { transform: translateX(8px); }
}
@media (max-width: 640px) {
  .top { flex-wrap: wrap; border-radius: 22px; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .notes { grid-template-columns: 1fr 1fr; }
  .module { padding: 20px 18px 22px; }
  .hero h1 { top: 12vh; font-size: clamp(44px, 14vw, 72px); }
  .spill { height: 52vh; }
  .sub { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hold-hint.is-on { animation: none; opacity: 0.5; }
  .station__pull,
  .station:nth-of-type(odd).is-reached .station__pull,
  .station:nth-of-type(even).is-reached .station__pull { transform: none; opacity: 1; transition: none; }
  .station__body { opacity: 1; transform: none; }
  .future { --p: 1; }
  .marquee__track { animation: none; }
  .marquee__set[aria-hidden="true"] { display: none; }
  .marquee__set { flex-wrap: wrap; white-space: normal; width: min(920px, calc(100% - var(--pad) * 2)); margin: 0 auto; }
  .marquee--rev { display: none; }
  .band.is-arriving .band__head,
  .band.is-arriving > .lead,
  .hero.is-arriving .hero__copy { animation: none; }
}


/* Disclosures: height via grid rows, content fades and slides; indicator rotates. */
details .disc__inner { opacity: 0; }
details.is-open .disc__inner { opacity: 1; }
details > summary { display: inline-flex; align-items: center; gap: 8px; }
details > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}
details.is-open > summary::after { transform: translateY(1px) rotate(225deg); }
details > summary:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  details > summary::after { transition: none !important; }
}
html.is-reduced details > summary::after { transition: none !important; }
.sparkle-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 79; pointer-events: none; }

/* ---- oil round 2 ---- */
/* My role: mono label, body-text value */
.role span:first-child { display: block; font-size: 12.5px; margin-bottom: 4px; }
.role span + span {
  display: block; margin: 0; color: var(--dim);
  font-family: var(--f-ui); font-weight: 400; letter-spacing: 0;
  font-size: clamp(14px, 0.72vw, 17px); line-height: 1.5;
}
/* Contact links: same treatment, external arrow */
.contact .cta a[target="_blank"]::after { content: " ↗"; color: var(--dim); }
/* KR: no extra tracking on dot/mono labels (Hangul falls back and splits) */
html[lang="ko"] :is(.stamp, .kicker, .chapters a span, .more-h, .role span:first-child, .note .kicker) {
  letter-spacing: 0; font-family: var(--f-ui);
}
/* Marquee separator: a visible four-point star, same in both languages */
.star { font-size: 0 !important; padding: 0 clamp(14px, 1.2vw, 26px) !important; display: inline-flex; align-items: center; }
.star::before { content: "✦"; font-size: clamp(16px, 1.4vw, 26px); color: var(--hot); line-height: 1; }
/* Placeholders hidden until real media exists: remove data-placeholders="hide" on <html> to show them again */
html[data-placeholders="hide"] :is(.ph:not(:has(img, video)), .slot, .follow, .skill--slot) { display: none !important; }
html[data-placeholders="hide"] #notes:not(:has(img, video)) { display: none; }
html[data-placeholders="hide"]:not(:has(#notes img, #notes video)) .nav a[href="#notes"] { display: none; }
html[data-placeholders="hide"] .flagship h3 { margin-top: 4px; }
/* Draggable cards: hover lift, focus ring */
.is-float {
  transition: translate 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
@media (hover: hover) {
  .is-float:hover:not(.is-dragging) {
    translate: 0 -3px;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.32), inset 0 0 0 1px rgb(236 231 218 / 0.2), 0 22px 44px -26px rgb(0 0 0 / 0.9) !important;
  }
}
.is-float.is-dragging { translate: 0 -2px; }
.is-float:focus-visible { outline: 2px solid var(--hot); outline-offset: 4px; }
html.is-reduced .is-float { transition: none; translate: none; }
/* Phone nav */
.menu-btn { display: none; }
@media (max-width: 640px) {
  .top { flex-wrap: wrap; row-gap: 0; }
  .menu-btn {
    display: inline-flex; align-items: center; order: 2; margin-left: auto;
    min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
    color: var(--ink); font: 500 13px/1 var(--f-ui); box-shadow: inset 0 0 0 1px var(--line-strong);
  }
  .top .lang { order: 3; }
  .top .motion { order: 4; }
  .top .nav {
    order: 5; width: 100%; margin: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height 0.22s cubic-bezier(0.55, 0, 0.75, 0.2), opacity 0.16s ease, visibility 0s linear 0.22s;
  }
  .top.is-menu .nav {
    max-height: 260px; opacity: 1; visibility: visible; padding-top: 6px;
    transition: max-height 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease 0.04s, visibility 0s;
  }
  .top .mark__name { display: none; }
  .top .motion { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .top .nav { transition: none !important; } }

/* ---- round 3 ---- */
/* Section numbers: larger so they read as structure, not as a tiny eyebrow */
.stamp { font-size: clamp(17px, 0.8vw, 21px) !important; }
.chapters .stamp { font-size: clamp(15px, 0.7vw, 18px) !important; }
/* Tighter timeline */
.station { margin-bottom: clamp(48px, 4.2vw, 84px); }
/* Chapter motifs (dot lattice, stands in for photos) */
.motif {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: radial-gradient(120% 140% at 50% 0%, rgb(255 90 31 / 0.06), transparent 60%), rgb(236 231 218 / 0.025);
  box-shadow: inset 0 0 0 1px rgb(236 231 218 / 0.08);
}
.motif svg { display: block; width: 100%; height: auto; aspect-ratio: 32 / 12; overflow: visible; }
.motif .m-off { fill: rgb(236 231 218 / 0.13); }
.motif .m-on { fill: rgb(236 231 218 / 0.82); filter: drop-shadow(0 0 2px rgb(236 231 218 / 0.5)); }
.motif .m-hot { fill: #ffb48a; filter: drop-shadow(0 0 3px rgb(255 90 31 / 0.9)); }
.motif .m-line { fill: none; stroke: rgb(255 180 138 / 0.45); stroke-width: 1; }
.motif .m-tw { animation: m-twinkle 4.2s ease-in-out infinite; }
@keyframes m-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.station.is-hit .motif { box-shadow: inset 0 0 0 1px rgb(255 90 31 / 0.28); }
.station__body:has(.ph img, .ph video) .motif { display: none; }
html.is-reduced .motif .m-tw { animation: none; }
@media (prefers-reduced-motion: reduce) { .motif .m-tw { animation: none; } }
/* First-visit entrance */
html.is-entering .top { animation: ent-top 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
html.is-entering .field { animation: ent-fade 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both; }
html.is-entering #hold-hint { animation: ent-fade 0.4s ease 0.5s both; }
@keyframes ent-top { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes ent-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- round 4: phone top bar is solid enough that content never shows through ---- */
@media (max-width: 640px) {
  .top, #glass.webgl-ready .top:not(.is-covered), #glass.webgl-ready .top {
    background: rgb(7 8 11 / 0.9) !important;
    backdrop-filter: blur(14px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.3) !important;
  }
}
