@font-face {
  font-family: 'Hwalbin Masthead';
  src: url('./hwalbin-masthead.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #111110;
  --surface: #191918;
  --text: #f3f0e9;
  --muted: #b1aea6;
  --line: #353530;
  --accent: #f06b5e;
  --solid: #b9342b;
  --hover: #a52d25;
  --selected: #29201d;
  --header: #111110;
  --header-height: 80px;
  --section-duration: 800ms;
  --section-ease: cubic-bezier(.22, 1, .36, 1);
  --section-distance: 40px;
}
[data-theme=light] {
  color-scheme: light;
  --bg: #f3f0e9;
  --surface: #eae6dd;
  --text: #20201d;
  --muted: #65625b;
  --line: #cec9bd;
  --accent: #a82d24;
  --solid: #b9342b;
  --selected: #e6d9d0;
  --header: #f3f0e9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Helvetica, 'Helvetica Neue', Arial, 'Noto Sans KR', sans-serif; font-size: 16px; line-height: 1.8; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a, button, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
main:focus { outline: none; }
::selection { background: var(--solid); color: #fff; }
[hidden] { display: none !important; }
html[lang=en] body { word-break: normal; }
.wrap { width: min(1248px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--solid); color: #fff; }
.skip:focus { top: 12px; }

/* Shared header and footer branding. */
.header { position: sticky; top: 0; z-index: 30; height: var(--header-height); background: var(--header); }
.header .wrap { display: flex; align-items: center; gap: 36px; height: 100%; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; }
.brand-symbol { display: block; width: 36px; height: 36px; border-radius: 4px; }
.brand-word { font-size: 18px; line-height: 1.2; font-weight: 800; letter-spacing: .035em; }
.nav { display: flex; gap: 32px; align-items: center; margin-left: auto; }
.nav a { position: relative; padding-block: 14px; color: var(--muted); font-size: 14px; transition: color .18s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after { content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 2px; background: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 6px; border-left: 1px solid var(--line); padding-left: 24px; }
.language, .theme { display: grid; place-items: center; min-width: 44px; height: 44px; border: 0; background: none; transition: color .18s; }
.language { font-size: 13px; font-weight: 600; }
.theme { font: 26px/1 Arial, sans-serif; }
.language:hover, .theme:hover { color: var(--accent); }
.menu { display: none; min-height: 44px; padding: 0 4px; border: 0; background: none; font-size: 13px; }

/* Keep the original artwork; crop and desaturate it into a quiet backdrop. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #111110; color: #f3f0e9; }
.hero-background { position: absolute; inset: -32px; z-index: -3; background: url('./hwalbin-fortress-dark.webp') 65% 59% / cover no-repeat; filter: grayscale(1) sepia(.15) brightness(.68) contrast(.82); opacity: .65; pointer-events: none; translate: var(--scene-x, 0px) var(--scene-y, 0px); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #111110 0%, #111110ed 20%, #111110b3 45%, #11111025 78%), linear-gradient(0deg, #111110 0%, #11111000 30%, #11111055 100%); pointer-events: none; }
.hero-inner { position: relative; min-height: calc(100svh - var(--header-height)); padding-top: clamp(48px, 8svh, 86px); padding-bottom: clamp(96px, 12svh, 120px); display: flex; align-items: center; }
.hero-copy { width: 100%; }
.hero-kicker { margin: 0 0 24px; color: #c1bdb4; font-size: 14px; }
.hero-kicker::before { content: ''; display: inline-block; width: 24px; height: 1px; margin: 0 12px 5px 0; background: #d75a4d; }
h1 { display: flex; align-items: flex-start; gap: 22px; margin: 0 0 18px -8px; font: 900 clamp(112px, 12vw, 174px)/1.3 'Hwalbin Masthead', 'Noto Serif KR', 'Batang', serif; letter-spacing: -.075em; white-space: nowrap; }
.title-mark { width: 13px; height: 13px; background: #c74739; margin-top: .22em; flex-shrink: 0; }
.hero-name { color: #c1bdb4; margin: 0 0 32px; font-size: 16px; font-weight: 500; letter-spacing: .14em; }
.hero-desc { max-width: 540px; margin: 0 0 32px; color: #e0dcd3; font-size: 19px; line-height: 1.85; }
.actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 54px; padding: 13px 22px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 15px; font-weight: 500; transition: background .18s, border-color .18s; }
.button:hover { border-color: var(--accent); }
.button.primary { min-width: 168px; background: var(--solid); border-color: var(--solid); color: #fff9f2; }
.button.primary:hover { background: var(--hover); border-color: var(--hover); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 18px; font-size: 14px; transition: color .18s; }
.text-link:hover { color: var(--accent); }
.hero .text-link:hover { color: #f28b7d; }
.arrow { font: 22px/1 Arial, sans-serif; }
.hero-bottom { position: absolute; inset-inline: 0; bottom: 0; min-height: 75px; border-top: 1px solid #ffffff26; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #bbb7af; font-size: 13px; }
.hero-bottom a { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; }
.hero-bottom a:hover { color: #f3f0e9; }

/* The still artwork becomes a scene: camera movement, wind, mist and embers. */
.hero-atmosphere { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; mask-image: linear-gradient(90deg, transparent 8%, #0009 42%, #000 74%); }
.hero-light { position: absolute; inset: -20%; background: radial-gradient(ellipse at 82% 28%, #d79f6826, transparent 42%); opacity: .65; }
.hero-mist { position: absolute; width: 160%; height: 64%; left: -30%; bottom: -8%; background: radial-gradient(ellipse at 26% 60%, #c5c6bb26, transparent 45%), radial-gradient(ellipse at 72% 48%, #c5c6bb33, transparent 42%); opacity: .65; }
.hero-mist-back { bottom: 23%; height: 40%; opacity: .35; }
.hero-particles, .hero-code-rain { position: absolute; inset: 0; }
.scene-particle { position: absolute; left: var(--x); top: 0; width: var(--size); height: var(--size); background: #efa36b; border-radius: 50%; box-shadow: 0 0 9px #e8794d88; opacity: 0; }
.hero-code-rain { opacity: 0; color: #f3a18a; background: radial-gradient(ellipse at 90% 42%, #371a18a6, transparent 73%); mask-image: linear-gradient(0deg, transparent, #000 19%); }
.code-stream { position: absolute; inset: 0 auto auto var(--code-x); writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap; font: 600 var(--code-size)/1 ui-monospace, monospace; letter-spacing: .11em; opacity: var(--code-alpha); mask-image: linear-gradient(transparent 4%, #000 87%); }

@keyframes code-rain-reveal {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); }
  36% { opacity: .72; }
  100% { opacity: 1; clip-path: inset(0); }
}
@keyframes code-fall {
  from { transform: translateY(-100%); }
  to { transform: translateY(var(--travel)); }
}

@keyframes scene-drift {
  from { transform: scale(1.015) translate3d(-.3%, 0, 0); }
  to { transform: scale(1.075) translate3d(.5%, -.5%, 0); }
}
@keyframes mist-drift {
  from { transform: translate3d(-6%, 3%, 0) scale(1); }
  to { transform: translate3d(8%, -3%, 0) scale(1.08); }
}
@keyframes light-drift {
  from { transform: translate3d(0, 0, 0); opacity: .35; }
  to { transform: translate3d(-4%, 3%, 0); opacity: .85; }
}
@keyframes ember-rise {
  0% { transform: translate3d(0, var(--travel), 0) rotate(0deg); opacity: 0; }
  15% { opacity: var(--alpha); }
  55% { transform: translate3d(var(--sway), calc(var(--travel) * .42), 0) rotate(90deg); opacity: var(--alpha); }
  100% { transform: translate3d(var(--drift), -25px, 0) rotate(170deg); opacity: 0; }
}
@keyframes leaf-fall {
  0% { transform: translate3d(0, -25px, 0) rotate(0deg) rotateY(0deg); opacity: 0; }
  15%, 75% { opacity: var(--alpha); }
  50% { transform: translate3d(var(--sway), calc(var(--travel) * .5), 0) rotate(100deg) rotateY(140deg); }
  100% { transform: translate3d(var(--drift), var(--travel), 0) rotate(240deg) rotateY(280deg); opacity: 0; }
}
@keyframes panel-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes panel-return {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media(prefers-reduced-motion:no-preference) {
  :root[data-motion] .hero-background { animation: scene-drift 24s ease-in-out infinite alternate; }
  :root[data-motion] .hero-mist { animation: mist-drift 19s ease-in-out infinite alternate; }
  :root[data-motion] .hero-mist-back { animation-duration: 28s; animation-direction: alternate-reverse; }
  :root[data-motion] .hero-light { animation: light-drift 12s ease-in-out infinite alternate; }
  :root[data-motion] .scene-particle { animation: ember-rise var(--duration) linear var(--delay) infinite; }
  :root[data-theme=light][data-motion] .scene-particle { animation-name: leaf-fall; }
  :root[data-motion] .hero-code-rain { animation: code-rain-reveal 2.4s cubic-bezier(.3, 0, .25, 1) 1.6s both; }
  :root[data-motion] .code-stream { animation: code-fall var(--code-speed) linear var(--code-delay) infinite; }
  :root[data-motion=running] .panel:not([hidden]) { animation: panel-enter .4s ease-out both; }
  :root[data-motion=running] [data-research-direction=backward] .panel:not([hidden]) { animation-name: panel-return; }
  :root[data-motion=paused] .hero-background,
  :root[data-motion=paused] .hero-atmosphere *,
  .hero[data-scene=paused] .hero-background,
  .hero[data-scene=paused] .hero-atmosphere * { animation-play-state: paused; }
  :root[data-motion=running] .button .arrow,
  :root[data-motion=running] .text-link>span:last-child,
  :root[data-motion=running] .record-title>span { transition: transform .25s ease; }
  :root[data-motion=running] .button:hover .arrow,
  :root[data-motion=running] .record-list a:hover .record-title>span { transform: translate(3px, -3px); }
  :root[data-motion=running] .text-link:hover>span:last-child { transform: translateX(4px); }
}

/* A daylight version of the fortress is used for the light theme. */
[data-theme=light] .hero { background: #f3f0e9; color: #20201d; }
[data-theme=light] .hero-background { background-image: url('./hwalbin-fortress-light.webp'); filter: saturate(.65); opacity: .72; }
[data-theme=light] .hero::before { background: linear-gradient(90deg, #f3f0e9 0%, #f3f0e9ed 20%, #f3f0e9b8 45%, #f3f0e933 78%), linear-gradient(0deg, #f3f0e9 0%, #f3f0e900 35%, #f3f0e922 100%); }
[data-theme=light] .hero-kicker, [data-theme=light] .hero-name { color: #625d55; }
[data-theme=light] .hero-desc { color: #34312d; }
[data-theme=light] .hero-bottom { border-color: #20201d33; color: #625d55; }
[data-theme=light] .hero-bottom a:hover, [data-theme=light] .hero .text-link:hover { color: #a82d24; }
[data-theme=light] .hero-light { background: radial-gradient(ellipse at 82% 28%, #ffe8b766, transparent 45%); }
[data-theme=light] .hero-mist { background: radial-gradient(ellipse at 26% 60%, #fff8e966, transparent 45%), radial-gradient(ellipse at 72% 48%, #fff8e955, transparent 42%); }
[data-theme=light] .scene-particle { background: #b83e28; border-radius: 2px 80% 2px 80%; box-shadow: none; width: calc(var(--size) * 1.7); height: var(--size); }
[data-theme=light] .hero-code-rain { color: #742e27; background: radial-gradient(ellipse at 90% 42%, #f3dfc982, transparent 73%); }

/* Each chapter fills the screen, and grows naturally when its content is taller. */
main > section, footer { scroll-snap-align: start; }
main > section { scroll-snap-stop: always; }
.content { display: flex; align-items: center; min-height: calc(100svh - var(--header-height)); padding: clamp(64px, 10svh, 100px) 0; border-bottom: 1px solid var(--line); }
@media(prefers-reduced-motion:no-preference) {
  html { scroll-snap-type: y mandatory; }
  :root[data-motion=running] [data-section-reveal=waiting] [data-section-item] {
    opacity: 0;
    transform: translate3d(0, var(--section-distance), 0);
  }
  :root[data-motion=running] [data-section-reveal=visible] [data-section-item] {
    transition: opacity var(--section-duration) var(--section-ease), transform var(--section-duration) var(--section-ease);
    transition-delay: calc(var(--section-order, 0) * 80ms);
  }
  :root[data-motion=running] [data-section-reveal]:focus-within [data-section-item] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.section-label { display: flex; align-items: center; gap: 18px; }
.section-index { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.section-label h2 { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.4; letter-spacing: -.045em; }
.about-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 72px; }
.about-layout .section-label { align-self: start; }
.about-lead { margin: 0 0 20px; font-size: 29px; line-height: 1.5; font-weight: 600; letter-spacing: -.045em; }
.about-description { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.95; max-width: 680px; }
.team-facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.team-facts>div { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding-top: 16px; font-size: 15px; }
.team-facts dt { color: var(--muted); }
.team-facts dd { margin: 0; }
.public-record-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 20px; }
.public-record-links a { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; }
.team-facts > div:has(.public-record-links) dt { align-self: start; display: flex; align-items: center; min-height: 44px; }
.inline-link { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); }
.inline-link:hover { color: var(--accent); text-decoration-color: currentColor; }
#members {
  --member-line: #303030;
  --member-avatar-bg: #191919;
  --member-muted: #a3a3a3;
  background: #121212;
  color: #ebebeb;
}
[data-theme=light] #members {
  --member-line: var(--line);
  --member-avatar-bg: var(--surface);
  --member-muted: var(--muted);
  background: var(--bg);
  color: var(--text);
}
#members .members-heading {
  display: block;
  margin-bottom: clamp(24px, 3vw, 34px);
}
#members .members-heading > p {
  margin-top: 16px;
  padding-top: 7px;
  border-top: 1px solid var(--member-line);
  color: var(--member-muted);
  font-size: 1rem;
}
.member-icons { position: absolute; }
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.member-card {
  position: relative;
  min-width: 0;
  min-height: 152px;
  padding: 24px;
  border: 1px solid var(--member-line);
  border-radius: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.member-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.member-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}
.member-role {
  display: inline-block;
  margin-inline-start: 8px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.member-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid var(--member-line);
  border-radius: 50%;
  background: var(--member-avatar-bg);
  color: var(--member-muted);
  font: 500 .875rem/1 ui-monospace, monospace;
}
.member-portfolio::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
}
.member-card:has(.member-portfolio:hover) {
  border-color: var(--member-muted);
}
.member-portfolio:focus-visible {
  outline: none;
}
.member-portfolio:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.member-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.member-details {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  color: var(--member-muted);
  font-size: .875rem;
}
.member-details dt { flex: none; }
.member-details dd { margin: 0; }
.member-github {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1;
  color: inherit;
}
.member-github svg { width: 22px; height: 22px; }
.member-github:hover { color: var(--accent); }
.research { background: var(--surface); }
.research[data-research-scroll] { display: grid; align-items: initial; padding: 0; scroll-snap-align: none; scroll-snap-stop: normal; }
.research-scene, .research-track { grid-area: 1 / 1; }
.research-scene { position: sticky; top: var(--header-height); z-index: 1; align-self: start; display: flex; align-items: center; min-height: calc(100svh - var(--header-height)); height: var(--research-scene-height); padding: clamp(64px, 10svh, 100px) 0; translate: 0 var(--research-shift, 0px); }
.research-track { pointer-events: none; }
.research-stop { height: var(--research-scene-height); scroll-snap-align: start; scroll-snap-stop: always; }
[data-research-measuring] .research-scene { height: auto; }
/* Stack the panels in one grid cell to measure the tallest in one layout. */
[data-research-measuring] .panel { grid-area: 1 / 2; animation: none !important; }
[data-research-measuring] .panel[hidden] { display: block !important; visibility: hidden; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 46px; }
.section-heading>p { margin: 0; color: var(--muted); font-size: 15px; }
.research-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 64px; }
.tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tabs button { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 73px; padding: 18px 20px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--muted); text-align: left; font-size: 16px; transition: color .18s, background .18s; }
.tabs button>span:last-child { font-size: 19px; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected=true] { background: var(--selected); color: var(--accent); box-shadow: inset 3px 0 var(--accent); }
.panel { padding: 8px 0; min-width: 0; }
.panel-kicker { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.panel h3 { margin: 0 0 20px; font-size: 28px; letter-spacing: -.04em; line-height: 1.5; font-weight: 600; }
.panel-description { margin: 0; max-width: 620px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.tags { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--muted); font-size: 13px; }
.tags li::before { content: ''; display: inline-block; width: 4px; height: 4px; background: var(--muted); margin: 0 8px 3px 0; }
#activity { align-items: flex-start; }
#activity .section-heading { align-items: flex-start; margin-bottom: clamp(22px, 2.6vw, 38px); }
.activity-navigation { display: grid; justify-items: end; gap: 4px; }
.year-picker { display: inline-grid; grid-template-columns: 44px auto 44px; align-items: center; gap: 5px; }
.year-picker output { min-width: 5.5ch; text-align: center; color: var(--text); font-size: 21px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.year-picker button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: transparent; font-size: 19px; line-height: 1; }
.year-picker button:enabled:hover { border-color: var(--accent); color: var(--accent); }
.year-picker button:disabled { color: var(--muted); opacity: .38; cursor: default; }
.activity-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 64px; }
.activity-layout:has(> .featured-activity[hidden]), .activity-layout:has(> .activity-archive[hidden]) { grid-template-columns: minmax(0, 1fr); }
.activity-empty { margin: 0; padding: 32px 0; color: var(--muted); }
.more-records { margin-top: 10px; padding: 0 4px 0 0; border: 0; background: transparent; }
.featured-activity { padding: 32px 36px; background: var(--surface); border-top: 2px solid var(--accent); }
.record-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; color: var(--muted); font-size: 13px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.featured-activity .record-meta { justify-content: space-between; }
.record-category { color: var(--accent); }
.featured-activity h3 { font-size: 36px; font-weight: 600; line-height: 1.25; letter-spacing: -.035em; margin: 26px 0 0; }
.record-players { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.record-players > :first-child { flex: none; font-weight: 600; }
.featured-activity .record-players { margin: 8px 0 24px; }
.result { display: flex; align-items: baseline; gap: 20px; }
.result strong { color: var(--accent); font-size: 66px; line-height: 1.2; font-weight: 600; letter-spacing: -.055em; }
.result strong span { font-size: 23px; margin-left: 6px; }
.result>span { color: var(--muted); font-size: 14px; }
.featured-activity>p { color: var(--muted); font-size: 15px; margin: 22px 0 18px; line-height: 1.85; }
.archive-heading { margin: 0; padding: 0 0 16px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--line); }
.record-list { padding: 0; margin: 0; list-style: none; }
.record-list li { border-bottom: 1px solid var(--line); }
.record-list a, .record-entry { display: block; padding: 24px 0; }
.record-rank { color: var(--accent); font-weight: 600; }
.record-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; }
.record-title h4 { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.5; letter-spacing: -.025em; }
.record-title>span { font-size: 23px; color: var(--muted); }
.record-list a:hover h4, .record-list a:hover .record-title>span { color: var(--accent); }
.source-note { margin: 19px 0 0; color: var(--muted); font-size: 13px; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; }
.faq-intro { margin: 22px 0 0 36px; color: var(--muted); font-size: 15px; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; min-height: 76px; padding: 23px 0; font-size: 16px; font-weight: 500; line-height: 1.7; }
summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; flex-shrink: 0; font: 22px/1 Arial, sans-serif; color: var(--muted); }
.questions details[open] summary::after { content: '−'; color: var(--accent); }
.questions details p { max-width: 600px; margin: 0 28px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
footer { padding: 38px 0; }
.footer-main { display: flex; align-items: center; gap: 32px; }
.footer-main p { margin: 0 auto 0 0; color: var(--muted); font-size: 13px; }
.flag-dialog { width: min(520px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 28px; border: 1px solid var(--accent); background: var(--surface); color: var(--text); }
.flag-dialog::backdrop { background: #000b; }
.flag-dialog h2 { margin: 0 0 12px; font-size: 24px; }
.flag-dialog p { color: var(--muted); margin: 0 0 20px; }
.flag-dialog code { display: block; padding: 16px; margin-bottom: 24px; color: var(--text); background: var(--bg); font: 14px/1.8 Consolas, monospace; overflow-wrap: anywhere; word-break: break-word; user-select: all; }

@media(min-width:1600px) {
  .hero-background { background-position: center 61%; }
}
@media(min-width:761px) and (max-height:760px) {
  .content { padding-block: 40px; }
  .research-scene { padding-block: 40px; }
}
@media(max-width:1050px) {
  .wrap { width: calc(100% - 64px); }
  .header .wrap { gap: 24px; }
  .nav { gap: 16px; }
  .nav a { white-space: nowrap; }
  .header-tools { padding-left: 16px; }
  .hero-background { background-position: 63% center; }
  .about-layout { gap: 40px; grid-template-columns: 1fr 1.7fr; }
  .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .research-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; }
  .activity-layout { gap: 36px; }
  .featured-activity { padding: 28px; }
  .faq-layout { grid-template-columns: 1fr 1.4fr; gap: 40px; }
  .section-label h2 { font-size: 30px; }
}
@media(max-width:760px) {
  :root { --header-height: 68px; --section-distance: 24px; }
  html { scroll-snap-type: y proximity; }
  .wrap { width: calc(100% - 40px); }
  .header .wrap { gap: 12px; }
  .brand { gap: 9px; }
  .brand-symbol { width: 31px; height: 31px; }
  .brand-word { font-size: 16px; }
  .header-tools { border: 0; padding: 0; gap: 0; margin-left: auto; }
  .language, .theme { min-width: 40px; }
  .menu { display: block; margin-left: 6px; }
  .nav { display: none; position: absolute; top: 67px; inset-inline: 0; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); gap: 0; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; }
  .nav a { padding: 14px 8px; font-size: 16px; }
  .nav a.active::after { right: auto; width: 24px; bottom: 8px; left: 8px; }
  .hero-inner { padding-top: 64px; padding-bottom: 0; align-items: flex-start; flex-direction: column; gap: 48px; }
  .hero-background { background-position: 67% center; opacity: .48; filter: grayscale(1) sepia(.15) brightness(.65) contrast(.8); }
  .hero::before { background: linear-gradient(90deg, #111110b3 0%, #11111070 55%, #11111025), linear-gradient(0deg, #111110 0%, #11111088 40%, #11111055 100%); }
  .hero-kicker { font-size: 13px; margin-bottom: 22px; }
  h1 { font-size: clamp(86px, 23vw, 150px); gap: 13px; margin: 0 0 20px -4px; }
  .title-mark { width: 9px; height: 9px; }
  .hero-name { font-size: 14px; margin-bottom: 28px; }
  .hero-desc { font-size: 17px; max-width: 400px; margin-bottom: 29px; line-height: 1.9; }
  .desktop-break { display: none; }
  .actions { gap: 28px; }
  .button.primary { min-width: 156px; }
  .hero-bottom { position: static; width: 100%; margin-top: auto; padding: 15px 0 21px; min-height: 82px; align-items: flex-start; flex-direction: column; gap: 4px; font-size: 12px; }
  .hero-bottom a { min-height: 36px; }
  .hero-atmosphere { mask-image: linear-gradient(90deg, transparent, #0008 55%, #000); }
  .code-stream:nth-child(even) { display: none; }
  .content { padding: 64px 0; }
  .section-label { gap: 14px; }
  .section-label h2 { font-size: 29px; }
  .section-index { font-size: 12px; }
  .about-layout { grid-template-columns: 1fr; gap: 30px; }
  .about-lead { font-size: 25px; margin-bottom: 16px; }
  .about-description { font-size: 16px; line-height: 1.95; }
  .team-facts { margin-top: 26px; }
  .team-facts>div { grid-template-columns: 82px 1fr; gap: 16px; font-size: 14px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 28px; }
  .section-heading>p { font-size: 15px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .member-card { min-height: 0; padding: 20px; }
  .research-layout { grid-template-columns: 1fr; gap: 30px; }
  [data-research-measuring] .panel { grid-area: 2 / 1; }
  .research-scene { padding: 48px 0; }
  .research-scene .tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .research-scene .tabs button { padding: 12px 14px; font-size: 14px; }
  .research-scene .tabs button:nth-child(odd) { border-right: 1px solid var(--line); }
  .research-scene .panel { min-height: 0; }
  .tabs button { min-height: 60px; padding: 14px 18px; font-size: 16px; }
  .panel { padding: 0; min-height: 302px; }
  .panel-kicker { font-size: 13px; margin-bottom: 14px; }
  .panel h3 { font-size: 24px; margin-bottom: 16px; }
  .panel-description { font-size: 16px; }
  .tags { margin-top: 22px; gap: 8px 18px; }
  .activity-layout { grid-template-columns: 1fr; gap: 36px; }
  .activity-navigation { justify-items: start; }
  .featured-activity { padding: 25px 24px; }
  .featured-activity h3 { font-size: 34px; margin-top: 24px; }
  .result strong { font-size: 60px; }
  .record-list a, .record-entry { padding: 24px 0; }
  .record-title h4 { font-size: 21px; }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-intro { margin: 16px 0 0; }
  .questions summary { min-height: 76px; font-size: 16px; }
  .questions details p { font-size: 16px; margin-right: 18px; }
  footer { padding: 30px 0; }
  .footer-main { display: grid; grid-template-columns: 1fr auto; gap: 18px; }
  .footer-main p { grid-row: 2; }
  .footer-main>.text-link { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) and (max-aspect-ratio: 4/5) {
  .hero-background { background-image: url('./hwalbin-fortress-dark-portrait.webp'); }
  [data-theme=light] .hero-background { background-image: url('./hwalbin-fortress-light-portrait.webp'); }
}
@media(max-width:460px) {
  .member-grid { grid-template-columns: 1fr; }
}
@media(max-width:360px) {
  .header .wrap { width: calc(100% - 28px); gap: 8px; }
  .header .brand-word { font-size: 14px; }
  .header .brand { gap: 7px; }
  .language, .theme { min-width: 36px; }
  .menu { font-size: 12px; margin-left: 4px; }
  h1 { font-size: 80px; gap: 10px; }
  .actions { gap: 22px; }
  .featured-activity { padding: 24px 20px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .hero-background { translate: none; }
  .hero-atmosphere { display: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
