/* Layout: photographic page banners (from the lab's existing site) under a transparent header,
   a Sogang-crimson band on Home, then calm white/warm-grey content sections. Orange is the highlight. */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f3f1;
  --card: #ffffff;
  --ink: #1d1717;
  --muted: #6d6261;
  --line: #ebe3e0;
  --crimson: #890f0f;
  --crimson-deep: #5c0a0a;
  --crimson-text: #9b1414;
  --orange: #ff9900;
  --orange-text: #c26a00;
  --orange-soft: #fff1dc;
  --night: #140b0b;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --figure-bg: #ffffff;
  --shadow: 0 1px 2px rgba(40, 10, 10, 0.06), 0 8px 24px -12px rgba(40, 10, 10, 0.18);
  --font: "Plus Jakarta Sans", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  --font-ko: "Noto Sans KR", "Plus Jakarta Sans", "Malgun Gothic", system-ui, sans-serif;
  --wrap: 74rem;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121010; --bg-alt: #1a1615; --card: #1f1a19; --ink: #f3eeec; --muted: #ab9f9d; --line: #2e2726;
    --crimson-text: #f0787a; --orange-text: #ffb04a; --orange-soft: #3a2a14;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121010; --bg-alt: #1a1615; --card: #1f1a19; --ink: #f3eeec; --muted: #ab9f9d; --line: #2e2726;
  --crimson-text: #f0787a; --orange-text: #ffb04a; --orange-soft: #3a2a14;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 8rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
.ko { font-family: var(--font-ko); word-break: keep-all; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson-text); }
.eyebrow.on-dark { color: var(--orange); }
.num { font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 0.925rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn.primary { background: var(--orange); color: #1d1100; }
.btn.primary:hover { background: #ffad33; }
.btn.ghost { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn.ghost:hover { background: rgba(255,255,255,0.12); }
.link-more { font-weight: 600; font-size: 0.925rem; color: var(--crimson-text); text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips button { flex-shrink: 0; padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; cursor: pointer; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.chips button:hover { color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.chips button .c { font-weight: 500; opacity: 0.7; margin-left: 0.3rem; font-size: 0.78rem; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--orange-soft); color: var(--orange-text); white-space: nowrap; }
.pill.crimson { background: color-mix(in srgb, var(--crimson) 12%, transparent); color: var(--crimson-text); }
.pill.grey { background: var(--bg-alt); color: var(--muted); }
[data-lb] { cursor: zoom-in; }
.zoom { overflow: hidden; }
.zoom img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.zoom:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .zoom img { transition: none; } .zoom:hover img { transform: none; } }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, box-shadow .3s; }
.top.solid { background: rgba(20, 11, 11, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.top .bar { display: flex; align-items: center; gap: 1.25rem; height: 4.25rem; position: relative; }
.brand { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; flex-shrink: 0; }
.brand img { height: 2.5rem; width: auto; display: block; }
.brand .sep { width: 1px; height: 1.6rem; background: rgba(255,255,255,0.3); }
.nav { display: flex; gap: 0.15rem; margin-left: auto; }
.nav a { color: rgba(255,255,255,0.86); text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 0.5rem 0.75rem; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav a[aria-current="page"] { color: var(--orange); }
.nav .nav-foot, .hx-dlg .lang, .hx-dlg .en-only { display: none; }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1.5px solid rgba(255,255,255,0.45); color: #fff; border-radius: 999px; padding: 0.45rem 0.95rem; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
@media (max-width: 920px) {
  .menu-btn { display: inline-block; }
  /* phone menu (option A): an ivory sheet under the header, quiet list with arrows, lab name + e-mail at the bottom */
  .top .bar { position: static; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - 4.25rem - env(safe-area-inset-top, 0px)); height: calc(100dvh - 4.25rem - env(safe-area-inset-top, 0px)); overflow-y: auto; background: #f0eee6; flex-direction: column; padding: 0.75rem 24px 1.5rem; gap: 0; }
  .nav.open { display: flex; }
  .nav a { display: flex; justify-content: space-between; align-items: center; padding: 0.95rem 0; border-radius: 0; border-bottom: 1px solid rgba(20,20,19,0.08); color: #141413; font-size: 1.2rem; font-weight: 600; white-space: normal; }
  .nav a::after { content: "→"; font-weight: 400; font-size: 1rem; color: rgba(20,20,19,0.3); }
  .nav a:hover { background: none; color: #141413; }
  .nav a[aria-current="page"], .nav a[aria-current="page"]::after { color: #b4553a; }
  .nav.open a { animation: nav-in .45s cubic-bezier(.2,.7,.1,1) both; }
  .nav.open a:nth-child(2) { animation-delay: .03s; } .nav.open a:nth-child(3) { animation-delay: .06s; } .nav.open a:nth-child(4) { animation-delay: .09s; }
  .nav.open a:nth-child(5) { animation-delay: .12s; } .nav.open a:nth-child(6) { animation-delay: .15s; } .nav.open a:nth-child(7) { animation-delay: .18s; }
  .nav .nav-foot { display: block; margin-top: auto; padding-top: 1.5rem; font-size: 0.8rem; line-height: 1.7; color: #5e5d59; }
  .nav .nav-foot b { color: #141413; font-weight: 700; }
  .top:has(.nav.open) { background: #f0eee6; box-shadow: 0 1px 0 rgba(20,20,19,0.08); }
  .top:has(.nav.open) .menu-btn { color: #141413; border-color: rgba(20,20,19,0.3); }
  html:has(.nav.open) { overflow: hidden; }
  .brand .sogang, .brand .sep { display: none; }
}

/* ---------- banners ---------- */
.banner { position: relative; color: var(--on-dark); background: var(--night); overflow: hidden; isolation: isolate; }
.banner > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,6,6,0.82) 0%, rgba(14,6,6,0.55) 45%, rgba(14,6,6,0.2) 100%), linear-gradient(0deg, rgba(14,6,6,0.6) 0%, transparent 45%); }
/* bottom padding also covers the space the removed subtitle used, so banners keep their height */
.banner .wrap { padding-block: calc(env(safe-area-inset-top, 0px) + 8.5rem) 6rem; }
.banner .crumb { font-size: 0.8rem; color: var(--on-dark-muted); font-weight: 500; }
.banner .crumb a { text-decoration: none; }
.banner .crumb a:hover { color: #fff; }
.banner h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800; margin-top: 0.6rem; }
.banner .sub { max-width: 42rem; color: var(--on-dark-muted); margin-top: 0.8rem; font-size: 1.05rem; }
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 4.25rem); z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.7rem; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav .wrap > button { flex-shrink: 0; background: none; border: 0; padding: 0.5rem 0.9rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.subnav .wrap > button:hover { color: var(--crimson-text); background: color-mix(in srgb, var(--crimson) 9%, transparent); }

/* ---------- sections ---------- */
.sec { padding-block: clamp(3.5rem, 8vw, 6rem); }
.sec.alt { background: var(--bg-alt); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; margin-top: 0.5rem; }

/* ---------- home ---------- */
/* Home: calm ivory page (Anthropic-like layout), bold black/white grotesk look (Media Lab-like), quiet reveals */
.hx { --ivory: #f0eee6; --ink2: #141413; --dim: #87867f; --clay: #d97757; --slate: #141413; background: var(--ivory); color: var(--ink2); }
.hx-sec { padding-block: clamp(5rem, 10vw, 8.5rem); }
.hx-line { border-top: 1px solid rgba(20,20,19,0.1); }
.hx-h { font-size: clamp(2.2rem, 4.8vw, 4.2rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.hx .dim { color: var(--dim); }
.ln { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.14em; }
.ln > span { display: inline-block; }
/* hero: black, live research simulation, one big sentence at the bottom */
.hx-hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--slate); color: #fff; overflow: hidden; isolation: isolate; display: grid; align-items: end; }
.hx-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgba(20,20,19,0.94) 0%, rgba(20,20,19,0.6) 35%, rgba(20,20,19,0.12) 70%); }
.hx-hero .hero-cap { top: 5.5rem; bottom: auto; }
.hx-hero-in { width: 100%; padding-bottom: clamp(3rem, 9vh, 6.5rem); }
.hx-kicker { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; color: rgba(240,238,230,0.7); margin-bottom: 1.5rem; }
.hx-kicker .o { color: var(--clay); font-weight: 800; }
/* four short lines of about the same length: "We design / the future / of energy and / healthcare." a little smaller than the original headline */
.hx-big { font-size: clamp(2.8rem, 7.8vw, 7.8rem); font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; }
.hx-big .ln > span { white-space: nowrap; }
/* seasonal full stop: stays a dot, then squishes and pops into the icon like jelly, holds ~5s, pops back; 17s cycle (first pop ~3s after load) */
.hx-dot.icon { position: relative; display: inline-block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hx-dot.icon::after { content: ""; position: absolute; left: -0.05em; right: -0.35em; top: 0.25em; bottom: 0; } /* bigger click/tap area */
.hx-dot.icon:focus-visible { outline: 2px solid var(--clay, #d97757); outline-offset: 2px; border-radius: 4px; }
.hx-dot.icon .pd { display: inline-block; transform-origin: 50% 82%; animation: dot-pop 17s cubic-bezier(.3,.7,.4,1) -4s infinite; }
.hx-dot.icon svg { position: absolute; left: 0.06em; bottom: 0.052em; width: 0.5em; height: 0.5em; overflow: visible; transform-origin: 30% 100%; transform: scale(0); animation: icon-pop 17s cubic-bezier(.3,.7,.4,1) -4s infinite; }
@keyframes dot-pop {
  0%, 41.18% { transform: scale(1); }
  43.53% { transform: scale(1.45, 0.55); }
  45.29%, 89.12% { transform: scale(0); }
  91.18% { transform: scale(0.75, 1.3); }
  92.94% { transform: scale(1.18, 0.85); }
  94.71% { transform: scale(0.94, 1.06); }
  96.47%, 100% { transform: scale(1); }
}
@keyframes icon-pop {
  0%, 45.59% { transform: scale(0); }
  47.94% { transform: scale(1.28, 0.74); }
  49.82% { transform: scale(0.86, 1.16); }
  51.71% { transform: scale(1.07, 0.94); }
  53.53% { transform: scale(0.98, 1.02); }
  55%, 85.29% { transform: scale(1); }
  87.35% { transform: scale(1.22, 0.8); }
  89.41%, 100% { transform: scale(0); }
}
/* Seollal: the magpie pops out of the dot, flaps up and perches on the "e", then flies back down and pops into the dot again */
.hx-dot.fly svg { animation-name: magpie-fly; transform-origin: 55% 82%; } /* turn around and land on the feet */
.hx-dot .wing { opacity: 0; }
.hx-dot.fly .wing { animation: wing-show 17s linear -4s infinite; }
.hx-dot .wu, .hx-dot .wd { animation: wing-pose .26s linear infinite; } /* cartoon flapping: wing-up and wing-down poses swap ~4 times a second */
.hx-dot .wd { animation-delay: -.13s; }
@keyframes wing-pose { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
.hx-dot.fly .fold { animation: fold-hide 17s linear -4s infinite; } /* the folded-wing patch hides while the wings are open */
@keyframes fold-hide { 0%, 54.8% { opacity: 1; } 55.2%, 61% { opacity: 0; } 61.4%, 79.3% { opacity: 1; } 79.7%, 85% { opacity: 0; } 85.4%, 100% { opacity: 1; } }
@keyframes wing-show { 0%, 54.8% { opacity: 0; } 55.2%, 61% { opacity: 1; } 61.4%, 79.3% { opacity: 0; } 79.7%, 85% { opacity: 1; } 85.4%, 100% { opacity: 0; } }
@keyframes magpie-fly {
  0%, 45.59% { transform: scale(0); }
  47.94% { transform: scale(1.28, 0.74); }
  49.82% { transform: scale(0.86, 1.16); }
  51.71% { transform: scale(1.07, 0.94); }
  53.5% { transform: scale(1); }
  55% { transform: scale(-1, 1); }
  58% { transform: translate(-0.32em, -0.8em) scale(-1, 1) rotate(8deg); }
  61% { transform: translate(-0.6em, -0.46em) scale(-1.08, 0.88); }
  62.5% { transform: translate(-0.6em, -0.46em) scale(-1, 1); }
  64%, 79% { transform: translate(-0.6em, -0.46em) scale(1); }
  82% { transform: translate(-0.32em, -0.8em) scale(1) rotate(8deg); }
  85.29% { transform: scale(1); }
  87.35% { transform: scale(1.22, 0.8); }
  89.41%, 100% { transform: scale(0); }
}
/* birthday cake: flames flicker, then blow out while the cake is showing, with a wisp of smoke (same 17s clock) */
.hx-dot .flame, .hx-dot .fl, .hx-dot .smoke { transform-box: fill-box; transform-origin: 50% 100%; }
.hx-dot .flame { animation: flame-out 17s ease-in -4s infinite; }
.hx-dot .fl { animation: flicker .5s ease-in-out infinite alternate; }
.hx-dot .flame:nth-of-type(2) .fl { animation-delay: -.2s; } .hx-dot .flame:nth-of-type(3) .fl { animation-delay: -.35s; }
.hx-dot .smoke { opacity: 0; animation: smoke-up 17s ease-out -4s infinite; }
@keyframes flicker { from { transform: scale(0.92, 1.06) rotate(-3deg); } to { transform: scale(1.05, 0.94) rotate(3deg); } }
@keyframes flame-out { 0%, 73% { transform: scale(1); opacity: 1; } 74.5% { transform: scale(0.7, 1.15) skewX(-14deg); opacity: 1; } 76%, 100% { transform: scale(0, 0.2); opacity: 0; } }
@keyframes smoke-up { 0%, 75.5% { opacity: 0; transform: translateY(0) scaleY(0.6); } 77.5% { opacity: 0.85; } 85% { opacity: 0; transform: translateY(-3px) scaleY(1); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hx-dot.icon .pd, .hx-dot.icon svg, .hx-dot .flame, .hx-dot .fl, .hx-dot .smoke, .hx-dot .wing, .hx-dot .wu, .hx-dot .wd, .hx-dot .fold { animation: none; } }
/* intro + research cards */
.hx-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: end; }
.hx-copy { display: grid; gap: 1rem; color: #5e5d59; font-size: 1.02rem; }
.hx-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.hx-sec .hx-intro + .hx-head { margin-top: clamp(4rem, 8vw, 6.5rem); }
.hx-head h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; }
.hx-link { font-size: 0.9rem; font-weight: 700; color: inherit; text-underline-offset: 4px; }
.hx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.hx-card { display: grid; align-content: start; gap: 0.55rem; color: inherit; text-decoration: none; }
.hx-fig { display: block; overflow: hidden; background: var(--slate); margin-bottom: 0.6rem; }
.hx-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx-card .hx-fig { aspect-ratio: 4 / 5; }
.hx-no { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; color: var(--clay); }
.hx-card b { font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.hx-card:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.hx-sub { font-size: 0.9rem; color: #5e5d59; }
/* news cards */
/* Group News: rounded photo cards, one at a time (photo left, text right on wide screens; stacked on phones) */
/* prev / next: plain white chevrons sitting on the card's left and right edges */
.hn-stage { position: relative; }
.hn-prev, .hn-next { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 3.2rem; height: 4.5rem; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; opacity: 0.4; transform: translateY(-50%); transition: opacity .35s ease; }
.hn-prev { left: 0.35rem; }
.hn-next { right: 0.35rem; }
.hn-prev svg, .hn-next svg { width: 1.9rem; height: 1.9rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45)); transition: transform .3s cubic-bezier(.2,.75,.1,1); }
/* on a mouse screen the arrows stay hidden until the pointer is over the card */
@media (hover: hover) { .hn-prev, .hn-next { opacity: 0; } .hn-stage:hover .hn-prev, .hn-stage:hover .hn-next { opacity: 0.55; } }
.hn-stage .hn-prev:hover, .hn-stage .hn-next:hover { opacity: 1; }
.hn-prev:hover svg { transform: translateX(-4px); }
.hn-next:hover svg { transform: translateX(4px); }
.hn-prev:focus-visible, .hn-next:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: -6px; border-radius: 12px; }
.hx-news { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hx-news::-webkit-scrollbar { display: none; }
.hn-card { flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(1.25rem, 3vw, 2.75rem); border-radius: 28px; background: #141413; color: #f0eee6; padding: clamp(0.9rem, 1.6vw, 1.25rem) 3.6rem; }
.hn-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(30px) saturate(1.35) brightness(0.5); transform: scale(1.15); }
/* a soft vignette over the tint so the photo and the white type sit forward */
.hn-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 100% at 30% 40%, transparent 40%, rgba(10,10,9,0.45)); }
.hn-card > :not(.hn-bg) { position: relative; z-index: 1; }
.hn-fig { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.hn-fig img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* news without a photo: just the words, larger, in the middle of the card */
.hn-card.text-only { grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; text-align: center; }
.hn-card.text-only .hn-txt { max-width: 38rem; justify-items: center; }
.hn-card.text-only .hn-date { justify-self: center; }
.hn-card.text-only b { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.hn-card.text-only .hx-sub { font-size: 1.1rem; }
.hn-txt { display: grid; gap: 0.8rem; align-content: center; }
.hn-date { justify-self: start; font-size: 0.75rem; font-weight: 700; background: rgba(240,238,230,0.16); padding: 0.3rem 0.7rem; border-radius: 999px; }
.hn-card b { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: #fff; }
.hn-card .hx-sub { display: grid; gap: 0.35rem; font-size: 1rem; line-height: 1.6; color: rgba(240,238,230,0.8); overflow-wrap: anywhere; }
.hn-card .hx-sub a { color: #f2a585; font-weight: 700; }
/* each card rises in when it slides into view (the shared reveal observer adds .in) */
.hn-card.rv .hn-fig, .hn-card.rv .hn-txt > * { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.75,.1,1); }
.hn-card.rv .hn-txt > :nth-child(1) { transition-delay: .12s; }
.hn-card.rv .hn-txt > :nth-child(2) { transition-delay: .22s; }
.hn-card.rv .hn-txt > :nth-child(3) { transition-delay: .32s; }
.hn-card.rv.in .hn-fig, .hn-card.rv.in .hn-txt > * { opacity: 1; transform: none; }
/* story progress: small dots, the current one stretches into a pill that fills with clay, then the next card slides in */
.hn-bars { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.2rem; }
.hn-bars button { flex: none; width: 0.5rem; height: 1.25rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; transition: width .6s cubic-bezier(.2,.75,.1,1); }
.hn-bars button.on { width: 3rem; }
.hn-bars i { display: block; height: 0.5rem; border-radius: 999px; background: rgba(20,20,19,0.16); overflow: hidden; transition: background .3s ease; }
.hn-bars i::after { content: ""; display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d97757, #b4553a); transform: scaleX(0); transform-origin: left; }
.hn-bars .on i::after { animation: hn-fill 7s linear forwards; }
.hn-bars.paused .on i::after { animation-play-state: paused; }
.hn-bars button:not(.on):hover i { background: rgba(20,20,19,0.38); }
@keyframes hn-fill { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hn-bars .on i::after { animation: none; transform: none; } }
@media (max-width: 760px) {
  .hn-prev, .hn-next { display: none; }
  .hn-card { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 0.8rem 0.8rem 1.3rem; }
  .hn-txt { padding: 0 0.3rem; gap: 0.6rem; }
  .hn-card b { font-size: 1.25rem; }
  .hn-card .hx-sub { font-size: 0.92rem; }
}
.hx-blank { display: grid; place-items: center; width: 100%; height: 100%; color: var(--clay); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hx-meta { font-size: 0.78rem; font-weight: 600; color: var(--dim); }
/* photo strip on black */
.hx-dark { background: var(--slate); color: #f0eee6; }
.hx-dark .dim { color: rgba(240,238,230,0.42); }
.hx-strip { overflow: hidden; height: clamp(10rem, 19vw, 17rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hx-track { display: flex; gap: 6px; height: 100%; width: max-content; animation: drift-x var(--dur, 80s) linear infinite; }
.hx-track img { height: 100%; width: auto; flex: none; display: block; }
/* gap is included so the second copy lines up exactly where the first began */
@keyframes drift-x { to { transform: translateX(calc(-50% - 3px)); } }
@media (prefers-reduced-motion: reduce) { .hx-strip { overflow-x: auto; } .hx-track { animation: none; } }
/* first-screen button + "Join our journey" card (dialog) on ivory */
.hx-cta { margin-top: 2.25rem; display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.6rem; border-radius: 999px; border: 0; background: var(--crimson); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .25s; }
.hx-cta:hover { background: #a51616; }
/* a thin gold spark travels once around the border at an even speed, then rests (every 4s).
   gold = the glow colour of the cover simulations (SPR_GOLD in js/scenes.js); the rect is sized by JS */
.hx-cta { position: relative; }
.cta-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* a gold line draws itself once around the border, flashes once when it closes, holds, fades slowly, repeats (12s, slow tempo) */
.cta-ring rect { fill: none; stroke-linecap: round; animation-duration: 12s; animation-iteration-count: infinite; }
.cta-ring .trail { stroke: rgb(255,214,110); stroke-width: 1.5; stroke-dasharray: 100 100; filter: drop-shadow(0 0 2px rgba(255,190,60,0.8)); animation-name: cta-trail; animation-timing-function: cubic-bezier(.55,0,.45,1); }
@keyframes cta-trail {
  0% { stroke-dashoffset: 100; opacity: 1; }
  30% { stroke-dashoffset: 0; stroke: rgb(255,214,110); stroke-width: 1.5; filter: drop-shadow(0 0 2px rgba(255,190,60,0.8)) drop-shadow(0 0 0 rgba(255,170,40,0)); }
  38% { stroke-dashoffset: 0; stroke: rgb(255,238,180); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(255,210,100,0.9)) drop-shadow(0 0 8px rgba(255,170,40,0.5)); }
  50% { stroke-dashoffset: 0; stroke: rgb(255,214,110); stroke-width: 1.5; filter: drop-shadow(0 0 2px rgba(255,190,60,0.8)) drop-shadow(0 0 0 rgba(255,170,40,0)); opacity: 1; }
  70% { stroke-dashoffset: 0; opacity: 1; }
  90%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
/* the label glows at the same moment the line closes (same 12s clock as the line) */
.hx-cta { animation: cta-text 12s cubic-bezier(.55,0,.45,1) infinite; }
@keyframes cta-text { 0%, 30% { text-shadow: 0 0 0 rgba(255,214,110,0); } 38% { text-shadow: 0 0 6px rgba(255,214,110,0.95), 0 0 1px rgba(255,250,225,0.9); } 50%, 100% { text-shadow: 0 0 0 rgba(255,214,110,0); } }
@keyframes nav-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .nav.open a { animation: none; } .cta-ring { display: none; } .hx-cta { animation: none; } }
.hx-dlg { width: min(64rem, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: auto; padding: clamp(1.75rem, 4vw, 3.25rem); border: 0; border-radius: 18px; background: #f0eee6; color: #141413; box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7); }
.hx-dlg::backdrop { background: rgba(20,20,19,0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hx-dlg[open] { animation: dlg-in .45s cubic-bezier(.2,.75,.1,1); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.hx-x { position: absolute; top: 0.4rem; right: 0.4rem; width: 2.4rem; height: 2.4rem; border: 0; background: transparent; color: #141413; font-size: 1.35rem; line-height: 1; cursor: pointer; opacity: 0.7; }
.hx-x:hover { opacity: 1; }
.hx .hx-dlg .join .en, .hx .hx-dlg .join .closing { color: #5e5d59; }
@media (prefers-reduced-motion: reduce) { .hx-dlg[open] { animation: none; } }
/* phones: the Join card stays a popup (page dimmed around it) with calmer type and Korean lines that break between words */
.hx-dlg .ko { word-break: keep-all; }
@media (max-width: 640px) {
  /* the card itself stays put and only its inside scrolls, so the close button can sit right in the corner */
  .hx-dlg { width: calc(100% - 32px); max-height: calc(100dvh - 64px); border-radius: 18px; padding: 0; overflow: hidden; }
  .hx-dlg .join { max-height: calc(100dvh - 64px); overflow-y: auto; padding: 1.1rem 20px 1.75rem; scrollbar-width: none; }
  .hx-dlg .join::-webkit-scrollbar { display: none; }
  .hx-x { top: 0.3rem; right: 0.3rem; background: #f0eee6; border-radius: 8px; z-index: 1; }
  .hx-dlg .join { gap: 2rem; }
  .hx-dlg .join .txt { gap: 1rem; }
  .hx-dlg .join h2 { font-size: 1.7rem; letter-spacing: -0.035em; padding: 0.3rem 2rem 0 0; }
  .hx-dlg .join .lead { font-size: 1.02rem; line-height: 1.75; }
  .hx-dlg .join .ko { font-size: 0.95rem; line-height: 1.75; }
  .hx-dlg .notice { box-shadow: none; border-radius: 0; padding: 1rem 1.1rem; background: #faf9f5; border: 0; border-left: 3px solid var(--clay); font-size: 0.92rem; line-height: 1.7; }
  .hx-dlg .join .en, .hx-dlg .join .closing { font-size: 0.88rem; line-height: 1.7; }
  .hx-dlg .join .en { padding-top: 1rem; border-top: 1px solid rgba(20,20,19,0.12); }
  /* phones: one language at a time so the whole card fits at a glance */
  .hx-dlg .lang { display: inline-flex; justify-self: start; padding: 3px; border-radius: 999px; background: rgba(20,20,19,0.07); }
  .hx-dlg .lang button { border: 0; background: none; padding: 0.4rem 0.95rem; border-radius: 999px; font: 600 0.82rem/1 inherit; font-family: inherit; color: #5e5d59; cursor: pointer; }
  .hx-dlg .lang button[aria-pressed="true"] { background: #fff; color: #141413; box-shadow: 0 1px 3px rgba(20,20,19,0.15); }
  .hx-dlg[data-lang="ko"] .join .en, .hx-dlg[data-lang="ko"] .join .closing, .hx-dlg[data-lang="en"] .join .ko { display: none; }
  /* English mode mirrors the Korean layout: two paragraphs in the same type, then the same notice box */
  .hx-dlg[data-lang="en"] .join .en, .hx-dlg[data-lang="en"] .join .closing { border-top: 0; padding-top: 0; font-size: 0.95rem; line-height: 1.75; color: #141413; }
  .hx-dlg[data-lang="en"] .join .en-only { display: grid; }
  .hx-dlg .join .photo { display: none; }
}
.hx .join .closing { color: #5e5d59; font-size: 0.95rem; }
.hx .mail { color: #b4553a; }
.hx .notice { color: var(--ink2); background: #faf9f5; border-color: rgba(20,20,19,0.1); border-left-color: var(--clay); }
.hx .notice b { color: #b4553a; }
/* reveals (.rv added by JS): lines slide up out of their mask, card images wipe up */
.rv .ln > span { transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2,.75,.1,1); }
.rv .ln + .ln > span { transition-delay: .12s; }
.rv.in .ln > span { transform: none; }
/* research cards and the photo strip wipe in; news photos are never cropped, they only fade in with the card */
.hx-card.rv .hx-fig, .hx-strip.rv { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s cubic-bezier(.2,.75,.1,1) var(--d, 0s); }
.hx-card.rv .hx-fig img { transform: scale(1.12); transition: transform 1.6s cubic-bezier(.2,.75,.1,1) var(--d, 0s); }
.rv.in .hx-fig, .hx-strip.rv.in { clip-path: inset(0 0 0 0); }
.rv.in .hx-fig img { transform: none; }
.hx-card.rv > :not(.hx-fig) { opacity: 0; transition: opacity .9s ease calc(var(--d, 0s) + .35s); }
.hx-card.rv.in > * { opacity: 1; }
@media (max-width: 860px) {
  .hx-intro, .hx-cards { grid-template-columns: minmax(0, 1fr); }
  .hx-card .hx-fig { aspect-ratio: 16 / 10; }
}
.hero-cap { position: absolute; right: clamp(16px, 4vw, 40px); bottom: 1.4rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.62); letter-spacing: 0.02em; pointer-events: none; }
.hero-cap .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255,153,0,0.6); animation: pulse 2s infinite; }
.hero-cap .scalebar { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: 0.6rem; padding-left: 0.9rem; border-left: 1px solid rgba(255,255,255,0.2); }
.hero-cap button { pointer-events: auto; margin-left: 0.6rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); color: #fff; border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.72rem; font-weight: 600; cursor: pointer; }
.hero-cap button:hover { background: rgba(255,255,255,0.18); }
.hero-cap .scalebar i { display: block; width: 3.2rem; height: 3px; background: rgba(255,255,255,0.7); border-radius: 2px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,153,0,0.55); } 70% { box-shadow: 0 0 0 8px rgba(255,153,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,153,0,0); } }
@media (max-width: 860px) { .hero-cap { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-cap .dot { animation: none; } }

.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tcard { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; display: flex; align-items: flex-end; isolation: isolate; box-shadow: var(--shadow); background: var(--night); }
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,6,6,0.92) 0%, rgba(14,6,6,0.35) 55%, rgba(14,6,6,0.05) 100%); }
.tcard .in { padding: 1.5rem; display: grid; gap: 0.6rem; }
.tcard h3 { font-size: 1.45rem; font-weight: 800; }
.tcard p { font-size: 0.875rem; color: rgba(255,255,255,0.78); }
.tcard .go { font-size: 0.85rem; font-weight: 700; color: var(--orange); }
@media (max-width: 860px) { .tcards { grid-template-columns: minmax(0, 1fr); } .tcard { aspect-ratio: 16 / 10; } }

.ncards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.ncard { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .25s; }
.ncard:hover { transform: translateY(-3px); }
.ncard .ph { aspect-ratio: 16 / 10; background: var(--figure-bg); border-bottom: 1px solid var(--line); }
.ncard .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ncard .in { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: 0.5rem; align-content: start; }
.ncard .meta { display: flex; gap: 0.6rem; align-items: center; font-size: 0.8rem; color: var(--muted); }
.ncard h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.4; }
.ncard p { font-size: 0.875rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) { .ncards { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ncard:hover { transform: none; } }
.nmini { margin-top: 1.5rem; display: grid; }
.nmini a { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0.25rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.nmini a:first-child { border-top: 1px solid var(--line); }
.nmini a:hover .t { color: var(--crimson-text); }
.nmini .d { font-size: 0.85rem; color: var(--muted); }
.nmini .t { font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .nmini a { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; } .nmini .t { white-space: normal; } .nmini .pill { justify-self: start; } }

.join { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3rem; align-items: center; }
.join .txt { display: grid; gap: 1.1rem; }
.join h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; }
.join .lead { font-size: 1.05rem; }
.notice { display: grid; gap: 0.35rem; padding: 1.2rem 1.4rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--orange); box-shadow: var(--shadow); }
.notice b { color: var(--crimson-text); font-size: 1.05rem; font-weight: 700; }
.mail { font-weight: 700; color: var(--crimson-text); }
.join .photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(40,10,10,0.5); max-width: 20rem; justify-self: center; }
.join .photo img { display: block; width: 100%; }
@media (max-width: 860px) { .join { grid-template-columns: minmax(0, 1fr); } .join .photo { max-width: 15rem; } }

.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 11rem; gap: 0.75rem; }
.mosaic button { all: unset; position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--line); }
.mosaic button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.mosaic button:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic .cap { position: absolute; inset: auto 0 0 0; padding: 2rem 0.9rem 0.75rem; background: linear-gradient(0deg, rgba(14,6,6,0.85), transparent); color: #fff; font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.mosaic .cap span { display: block; font-weight: 500; font-size: 0.72rem; opacity: 0.75; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9rem; } }

/* ---------- research ---------- */
/* each thrust opens with a cinematic photo header, then an editorial body */
.th-hero { position: relative; color: #fff; background: var(--night); overflow: hidden; isolation: isolate; }
.th-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.th-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,5,5,0.9) 0%, rgba(12,5,5,0.6) 50%, rgba(12,5,5,0.15) 100%); }
.th-hero .wrap { position: relative; padding-block: clamp(5rem, 11vw, 8.5rem) clamp(3rem, 6vw, 4.5rem); }
.th-no { position: absolute; right: clamp(16px, 4vw, 40px); bottom: -0.18em; font-size: clamp(8rem, 22vw, 17rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,153,0,0.55); pointer-events: none; }
.th-hero h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; margin-top: 0.7rem; }
.th-lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 600; color: rgba(255,255,255,0.85); margin-top: 0.8rem; max-width: 40rem; }
.th-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; max-width: 70%; }
.th-tags span { font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.8rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; background: rgba(255,255,255,0.06); }
.th-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.th-intro .txt { display: grid; gap: 1rem; color: var(--muted); align-content: start; font-size: 1.02rem; }
.th-points { display: grid; border-top: 2px solid var(--ink); align-content: start; }
.th-points li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.5rem; padding-block: 0.95rem; border-bottom: 1px solid var(--line); font-weight: 500; }
.th-points .n { font-weight: 800; color: var(--orange-text); font-size: 0.9rem; padding-top: 0.12em; }
.th-closing { grid-column: 1 / -1; display: grid; gap: 0.5rem; padding: 1.5rem 0 0 1.5rem; border-left: 2px solid var(--orange); font-size: 1.1rem; font-weight: 600; max-width: 56rem; }
@media (max-width: 860px) { .th-intro { grid-template-columns: minmax(0, 1fr); } .th-tags { max-width: none; } }
.projects { display: grid; padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.proj { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.25rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.proj:nth-child(even) .fig { order: 2; }
.proj .fig button { all: unset; cursor: zoom-in; display: block; width: 100%; background: var(--figure-bg); }
.proj .fig img { display: block; width: 100%; }
.proj .k { display: flex; align-items: baseline; gap: 0.6rem; font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--orange); }
.proj .k i { font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.proj h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 800; margin-top: 0.9rem; letter-spacing: -0.02em; }
.proj .txt { display: grid; gap: 0.75rem; margin-top: 0.9rem; font-size: 0.95rem; color: var(--muted); }
.proj .refs { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.proj .ref { display: grid; gap: 0.15rem; padding-left: 1rem; border-left: 2px solid var(--orange); font-size: 0.85rem; }
.proj .ref .pill { justify-self: start; margin-bottom: 0.25rem; }
.proj .ref a { font-weight: 600; text-decoration: none; }
.proj .ref a:hover { color: var(--crimson-text); }
.proj .ref i { color: var(--muted); }
@media (max-width: 860px) { .proj { grid-template-columns: minmax(0, 1fr); } .proj:nth-child(even) .fig { order: 0; } }

/* ---------- team ---------- */
.pi { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2.5rem 3.5rem; align-items: start; }
.pi .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--line); }
.pi .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pi h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-top: 0.5rem; }
.pi .role { color: var(--muted); margin-top: 0.4rem; font-size: 1.05rem; }
.contact-rows { display: grid; gap: 0.5rem; margin-top: 1.5rem; font-size: 0.95rem; }
.contact-rows div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; }
.contact-rows span:first-child { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.cv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.cv h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson-text); font-weight: 700; margin-bottom: 1.1rem; }
.tl { display: grid; gap: 1.1rem; }
.tl li { display: grid; gap: 0.1rem; padding-left: 1.2rem; border-left: 2px solid var(--line); }
.tl li.now { border-left-color: var(--orange); }
.tl .when { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.tl .what { font-weight: 700; }
.tl .sub { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 860px) { .pi { grid-template-columns: minmax(0, 1fr); } .pi .photo { max-width: 15rem; } .cv { grid-template-columns: minmax(0, 1fr); } }
.group-title { display: flex; align-items: center; gap: 1rem; margin: 3rem 0 1.25rem; font-size: 1.15rem; font-weight: 800; }
.group-title:first-child { margin-top: 0; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.people { display: grid; gap: 1rem; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(6rem, 8.5rem) minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); align-items: start; padding: clamp(1.1rem, 2vw, 1.6rem); }
/* every portrait as the same circle, level with the name (matches the original round photos) */
.person .av { aspect-ratio: 1; border-radius: 50% !important; align-self: start; background: #e7e5e9; overflow: hidden; }
.person .av img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.person .in { padding: 0.2rem 0 0; display: grid; gap: 0.5rem; align-content: start; justify-items: start; }
.person .nm { font-size: 1.15rem; font-weight: 800; }
.person .pill { justify-self: start; }
.person dl { margin: 0.4rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 0.7rem 2.5rem; font-size: 0.88rem; justify-self: stretch; }
.person dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.person dd { margin: 0.15rem 0 0; }
.person dd a { text-decoration: none; font-weight: 600; }
.person dd a:hover { color: var(--crimson-text); }
.person .em { font-size: 0.85rem; color: var(--crimson-text); font-weight: 600; overflow-wrap: anywhere; }
.person .pubs { justify-self: stretch; margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 0.86rem; }
.person .pubs summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.person .pubs .none { margin-top: 0.6rem; color: var(--muted); }
.person .pubs ol { margin-top: 0.6rem; display: grid; gap: 0.55rem; padding-left: 1.2rem; list-style: decimal; }
.person .pubs a { text-decoration: none; font-weight: 600; }
.person .pubs a:hover { color: var(--crimson-text); }
.alumni { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.alum { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; display: grid; gap: 0.45rem; align-content: start; }
.alum .nm { font-size: 1.1rem; font-weight: 800; }
.alum .pos { font-size: 0.9rem; font-weight: 600; color: var(--crimson-text); }
.alum .pos.none { color: var(--muted); font-weight: 500; }
.alum .edu { font-size: 0.82rem; color: var(--muted); display: grid; gap: 0.1rem; }
.alum details { margin-top: 0.35rem; font-size: 0.82rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.alum summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.alum details ol { margin-top: 0.6rem; display: grid; gap: 0.55rem; padding-left: 1.1rem; list-style: decimal; color: var(--muted); }
.alum details a { color: var(--crimson-text); font-weight: 600; }

/* ---------- publications ---------- */
.pubbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.search { flex: 0 1 22rem; min-width: 0; }
.search input { width: 100%; font: 0.95rem var(--font); padding: 0.65rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.ylabel { font-size: 1.6rem; font-weight: 800; color: var(--crimson-text); padding: 2.25rem 0 0.5rem; display: flex; align-items: baseline; gap: 0.75rem; }
.ylabel small { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.ylabel:first-child { padding-top: 0; }
.pub { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.pub.has-cover { grid-template-columns: 3rem minmax(0, 1fr) 6.5rem; }
.pub .cover { align-self: start; display: block; }
@media (max-width: 640px) { .pub.has-cover { grid-template-columns: 3rem minmax(0, 1fr) 4.5rem; } }
.pub .cover img { display: block; width: 100%; height: auto; box-shadow: 0 6px 16px -8px rgba(20, 20, 19, 0.45); }
.pub .n { font-weight: 800; color: var(--muted); font-size: 0.95rem; opacity: 0.6; }
.pub .t { font-weight: 700; line-height: 1.45; }
.pub .t a { text-decoration: none; }
.pub .t a:hover { color: var(--crimson-text); text-decoration: underline; text-underline-offset: 3px; }
.pub .a { font-size: 0.875rem; color: var(--muted); margin-top: 0.3rem; }
.pub .a b { color: var(--ink); }
.pub .a u, .legend u { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pub .v { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; margin-top: 0.55rem; font-size: 0.875rem; }
.pub .v i { font-weight: 600; }
.pub .v .vol { color: var(--muted); }
.legend { font-size: 0.85rem; color: var(--muted); }
.empty { padding: 2rem 0; color: var(--muted); }
.plist { display: grid; }
.plist li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.plist .n { font-weight: 800; color: var(--muted); opacity: 0.6; }
.plist .t { font-weight: 600; }
.plist .a { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }
.pubsec + .pubsec { margin-top: 4.5rem; }
.pubsec > h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.25rem; }

/* ---------- news ---------- */
/* News page: a tidy record on ivory */
.nlog-sec { background: #f0eee6; }
.nlog { max-width: 60rem; }
.nlog-year { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--crimson-text); padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: 0.6rem; border-bottom: 2px solid var(--crimson); }
.nlog-year:first-child { padding-top: 0; }
.nlog-row { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.3rem 2rem; padding-block: 1.4rem; border-bottom: 1px solid rgba(20,20,19,0.1); }
.nlog-date { font-size: 1rem; font-weight: 800; color: var(--crimson-text); padding-top: 0.05rem; }
.nlog-body h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }
.nlog-text { display: grid; gap: 0.35rem; margin-top: 0.45rem; color: #5e5d59; font-size: 0.96rem; }
.nlog-text a { color: var(--crimson-text); font-weight: 600; }
@media (max-width: 640px) { .nlog-row { grid-template-columns: minmax(0, 1fr); } }
/* "View photo" folds the photos open right below the item, like the original site */
.nlog-pics { margin-top: 0.7rem; }
.nlog-photo { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid transparent; background: color-mix(in srgb, var(--crimson) 9%, #faf9f5); color: var(--crimson-text); font-size: 0.82rem; font-weight: 600; cursor: pointer; list-style: none; }
.nlog-photo::-webkit-details-marker { display: none; }
.nlog-photo::after { content: "▾"; font-size: 0.75rem; transition: transform .2s; }
.nlog-pics[open] .nlog-photo::after { transform: rotate(180deg); }
.nlog-photo:hover { border-color: var(--crimson-text); }
.nlog-pics > div { display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.nlog-pics img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .nlog-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- photo ---------- */
/* album = giant year + kind filter, then a timeline: sticky date/title on the left, uncropped photos on the right */
.album-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.album-year { font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--crimson-text); }
.timeline { position: relative; display: grid; }
.timeline::before { content: ""; position: absolute; left: 0.3rem; top: 0.6rem; bottom: 0; width: 1px; background: var(--line); }
.ev { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.ev-meta { position: sticky; top: 9.5rem; align-self: start; padding-left: 2rem; display: grid; gap: 0.55rem; justify-items: start; }
.ev-meta::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--k, var(--muted)); transition: background .35s, transform .35s; }
.ev.cur .ev-meta::before { background: var(--k, var(--muted)); transform: scale(1.25); }
.ev-tag { --k: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--k); }
.ev-tag[data-k="conf"], .ev:has([data-k="conf"]) { --k: var(--crimson-text); }
.ev-tag[data-k="celebrate"], .ev:has([data-k="celebrate"]) { --k: #c2417a; }
.ev-tag[data-k="life"], .ev:has([data-k="life"]) { --k: #3c7a6e; }
.ev-date { color: var(--muted); font-size: 0.85rem; }
.ev-date b { color: var(--ink); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-right: 0.2rem; }
.ev-meta h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.015em; }
/* justified rows: each tile's width = its aspect ratio x --row, so a row shares one height and nothing is cropped */
.gal { --row: 12rem; --cap: 99; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem; }
@media (max-width: 640px) { .gal { --row: 6.5rem; --cap: 2.5; gap: 0.35rem; } .gal .ph.wide { flex-basis: 100% !important; max-width: none !important; order: -1; } } /* phones: group shots (first photo, or the event's wide: list) go first at full width */ /* --cap: a lone tile on the last row grows at most 2.5x on phones */
.gal .ph { display: block; overflow: hidden; background: var(--line); min-width: 0; }
.gal img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .ev { grid-template-columns: minmax(0, 1fr); padding-left: 2rem; }
  .ev-meta { position: relative; top: 0; padding-left: 0; }
  .ev-meta::before { left: -2rem; }
}

/* photo wall ("Our journey"): one screen, a dim mosaic of every photo, lighting up one at a time */
.dark-wall { overflow-x: clip; background: #0d0606; color: #fff; padding-block: 0; }
.jn-stage { position: relative; width: 100vw; margin-inline: calc(50% - 50vw); height: calc(100vh - 8rem); min-height: 26rem; overflow: hidden; isolation: isolate; }
.jn-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.jn-row { display: flex; gap: 4px; }
.jn-tile { position: relative; overflow: hidden; flex: none; }
.jn-tile img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.32) saturate(0.35); transition: filter 1.4s ease; }
.jn-tile.lit img { filter: brightness(1) saturate(1); transition-duration: 0.25s; }
/* soft dark pool in the middle so the title stays readable over the photos */
.jn-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(38% 34% at 50% 50%, rgba(13,6,6,0.82) 0%, rgba(13,6,6,0.5) 55%, transparent 100%); }
.jn-center { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; text-align: center; gap: 0.8rem; pointer-events: none; padding: 1rem; }
.jn-center h2 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; text-shadow: 0 4px 40px rgba(0,0,0,0.6); }
.jn-cap { min-height: 3.2em; display: grid; gap: 0.2rem; font-size: clamp(0.95rem, 1.5vw, 1.1rem); color: rgba(255,255,255,0.85); text-shadow: 0 2px 16px rgba(0,0,0,0.8); }
.jn-cap span { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.jn-cap b { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--orange); }

/* the Photo wall tab is a special page: orange instead of the usual crimson */
#albumTabs button[data-v="wall"] { border-color: var(--orange); color: var(--orange-text); }
#albumTabs button[data-v="wall"]::before { content: "✦"; margin-right: 0.35rem; }
#albumTabs button[data-v="wall"][aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #1d1100; }

/* ---------- lectures ---------- */
.lects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.lect { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border-top: 4px solid var(--crimson); }
.lect h2 { font-size: 1.3rem; font-weight: 800; margin-top: 0.3rem; }
.lect ul { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.lect li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.9rem; align-items: center; padding: 0.85rem 1rem; border-radius: 10px; background: var(--bg-alt); }
.lect li .i { width: 2.4rem; height: 2.4rem; border-radius: 8px; background: var(--orange-soft); color: var(--orange-text); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; }
.lect li b { display: block; font-weight: 700; }
.lect li small { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 760px) { .lects { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
footer { background: var(--night); color: var(--on-dark-muted); padding-block: 3.5rem calc(env(safe-area-inset-bottom, 0px) + 2rem); font-size: 0.9rem; }
footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 2.5rem; }
footer .logos { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
footer .logos img { height: 2.3rem; width: auto; }
footer .logos .sep { width: 1px; height: 1.8rem; background: rgba(255,255,255,0.2); }
footer .about { margin-top: 1.25rem; max-width: 30rem; }
footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
footer .rows { display: grid; gap: 0.45rem; }
footer .copy-btn { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.75rem; cursor: pointer; margin-left: 0.5rem; }
footer .bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; letter-spacing: 0.04em; }
@media (max-width: 860px) { footer .cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(10, 5, 5, 0.94); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(env(safe-area-inset-top, 0px) + 0.75rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem); color: #fff; }
.lb .bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.9rem; font-weight: 600; }
.lb .stage { display: grid; place-items: center; min-height: 0; padding-block: 1rem; }
.lb .stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; }
.lb .ctl { display: flex; justify-content: center; align-items: center; gap: 1rem; }
.lb button { font-weight: 600; font-size: 0.875rem; color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.5rem 1.1rem; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,0.2); }
.lb .cnt { font-size: 0.8rem; opacity: 0.7; }

/* images: square corners everywhere (person cards included, since the card clips the photo) */
.hn-pics button, .join .photo, .thrust-top .vis, .pi .photo, .person, .lb .stage img { border-radius: 0; }
.hn-pics button, .proj .fig, .proj:nth-child(even) .fig, .person { border: 0; }

/* click-to-copy e-mail addresses */
.mail, .em, #mail { cursor: copy; }
.toast { position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 1rem); z-index: 100; padding: 0.7rem 1.2rem; border-radius: 999px; background: #141413; color: #f0eee6; font: 600 0.9rem/1.3 var(--font-ko); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
/* phones: small round photo beside name/position/email, details full width below */
@media (max-width: 640px) {
  .person { grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0.35rem; padding: 1.1rem; }
  .person .in { display: contents; }
  .person .av { grid-row: 1 / span 3; align-self: center; }
  .person .nm, .person .pill, .person .em { grid-column: 2; justify-self: start; max-width: 100%; }
  .person .pill { white-space: normal; }
  .person dl, .person .pubs { grid-column: 1 / -1; }
}
