/* =========================================================================
   SJKIM 소프트웨어 공방 — Industrial Catalog
   회색 종이 · 먹색 잉크 · 신호 주황 하나. 헤어라인과 모노 인덱스로 짠 제품 카탈로그.
   ========================================================================= */

:root {
  --bg: #ebeae4;
  --surface: #f5f4ef;
  --surface-2: #e2e1da;
  --field: #fbfaf7;
  --text: #121211;
  --text-2: #2e2d2a;
  --muted: #74726b;
  --border: #cfcdc5;
  --border-strong: #121211;
  --accent: #ff4f00;
  --accent-strong: #d63f00;
  --accent-soft: rgba(255, 79, 0, 0.1);
  --accent-soft-strong: rgba(255, 79, 0, 0.26);
  --on-accent: #0d0d0c;
  --ink: #121211;
  --on-ink: #ebeae4;
  --stage: #121211;
  --on-stage: #ebeae4;
  --lamp: #ff4f00;
  --ok: #1f8a4c;
  --ok-bg: rgba(31, 138, 76, 0.09);
  --ok-border: rgba(31, 138, 76, 0.32);
  --ok-text: #16663a;
  --warn-bg: rgba(255, 79, 0, 0.07);
  --warn-border: rgba(255, 79, 0, 0.35);
  --danger: #c62d1f;
  --shadow-sm: none;
  --shadow-md: 0 24px 48px -24px rgba(0, 0, 0, 0.35);
  --radius: 4px;
  --radius-sm: 3px;
  --wrap: 1320px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --font-sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, "Pretendard Variable", Pretendard, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0c;
    --surface: #151513;
    --surface-2: #1d1d1a;
    --field: #111110;
    --text: #ebeae4;
    --text-2: #cfcdc5;
    --muted: #8a8880;
    --border: #2b2a27;
    --border-strong: #ebeae4;
    --accent: #ff5a14;
    --accent-strong: #ff7a3d;
    --accent-soft: rgba(255, 90, 20, 0.12);
    --accent-soft-strong: rgba(255, 90, 20, 0.3);
    --ink: #ebeae4;
    --on-ink: #0d0d0c;
    --stage: #050505;
    --on-stage: #ebeae4;
    --ok: #4cc47d;
    --ok-text: #86e0aa;
    --ok-bg: rgba(76, 196, 125, 0.1);
    --ok-border: rgba(76, 196, 125, 0.3);
    --danger: #ff7b6e;
    --shadow-md: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0d0c;
  --surface: #151513;
  --surface-2: #1d1d1a;
  --field: #111110;
  --text: #ebeae4;
  --text-2: #cfcdc5;
  --muted: #8a8880;
  --border: #2b2a27;
  --border-strong: #ebeae4;
  --accent: #ff5a14;
  --accent-strong: #ff7a3d;
  --accent-soft: rgba(255, 90, 20, 0.12);
  --accent-soft-strong: rgba(255, 90, 20, 0.3);
  --ink: #ebeae4;
  --on-ink: #0d0d0c;
  --stage: #050505;
  --on-stage: #ebeae4;
  --ok: #4cc47d;
  --ok-text: #86e0aa;
  --ok-bg: rgba(76, 196, 125, 0.1);
  --ok-border: rgba(76, 196, 125, 0.3);
  --danger: #ff7b6e;
  --shadow-md: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #0d0d0c; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.035em; line-height: 1.15; font-weight: 800; color: var(--text); }
p { margin: 0; }
code, kbd, pre, .mono { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.label, .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { display: block; margin: 0 0 14px; }
.eyebrow b, .label b { color: var(--accent); font-weight: 700; }

.lead { color: var(--muted); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border-strong);
}
.site-header .wrap { display: flex; align-items: stretch; min-height: 58px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid var(--border);
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; display: block; color: var(--text); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark .brand-dot { fill: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1rem; letter-spacing: -0.03em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

.nav { display: flex; align-items: stretch; }
.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  border-right: 1px solid var(--border);
  position: relative;
}
.nav a i { font-style: normal; font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); }
.nav a.is-active i { color: var(--accent); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; padding-left: 16px; }

.lamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  margin-right: 6px;
}
.lamp-bulb { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.lamp.is-on { color: var(--text); border-color: var(--text); }
.lamp.is-on .lamp-bulb { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-strong); animation: blink 2.4s steps(2, jump-none) infinite; }
.lamp-clock { color: var(--text); font-weight: 700; }
@keyframes blink { 50% { opacity: .3; } }

.icon-btn {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  border-radius: 0;
}
.icon-btn:hover { border-color: var(--text); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }
.menu-btn { display: none; }

@media (max-width: 1100px) { .lamp-state, .brand-sub { display: none; } .nav a { padding: 0 13px; } }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .brand { border-right: 0; padding-right: 0; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border-strong);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px var(--gutter); border-right: 0; border-top: 1px solid var(--border); font-size: 1.05rem; }
  .nav a.is-active::after { top: 0; bottom: 0; right: auto; width: 4px; height: auto; }
  .lamp .lamp-text { display: none; }
}

/* ---------------------------------------------------------------- buttons, chips */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--text);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #0d0d0c; }
.btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-ink { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-ink:hover { background: var(--accent); border-color: var(--accent); color: #0d0d0c; }
.btn-line { border-color: var(--border); }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { color: var(--danger); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 0.84rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

.more-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.more-link::after { content: " →"; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; }

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; background: var(--muted); flex-shrink: 0; }
.status-released::before { background: var(--ok); }
.status-beta::before { background: #e5a100; }
.status-dev::before { background: var(--accent); animation: blink 1.6s steps(2, jump-none) infinite; }
.status-paused::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

.empty {
  padding: 48px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px dashed var(--border);
}

/* ---------------------------------------------------------------- app icon */

.app-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--item-accent, var(--text));
  color: var(--bg);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }

/* ---------------------------------------------------------------- sections */

main { display: block; }

.block { padding-top: clamp(64px, 9vw, 120px); }
.block-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-strong);
}
.block-head .eyebrow { margin-bottom: 10px; }
.block-head h2 { font-size: clamp(2rem, 4.8vw, 3.8rem); letter-spacing: -0.06em; line-height: 1; }
.block-head h2 sup { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: var(--accent); letter-spacing: 0; margin-left: 8px; vertical-align: top; position: relative; top: .4em; }
.block-head p { color: var(--muted); max-width: 34rem; margin-top: 12px; font-size: 0.95rem; }

/* ---------------------------------------------------------------- hero */

.hero { padding-top: clamp(28px, 5vw, 64px); }
.hero-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(24px, 4vw, 44px);
}
.hero-top b { color: var(--text); font-weight: 700; }
.hero-top .on { color: var(--accent); }

.hero-title {
  font-size: clamp(3.2rem, 11.4vw, 10.6rem);
  line-height: 0.9;
  letter-spacing: -0.078em;
  font-weight: 800;
  margin: 0;
}
.hero-title .line { display: block; }
.hero-title .hl { color: var(--accent); }
.hero-title .thin { font-weight: 250; }

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(32px, 5vw, 64px);
  align-items: end;
}
.hero-foot p { font-size: clamp(1rem, 1.35vw, 1.15rem); color: var(--text-2); max-width: 31rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.counter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border);
}
.counter a {
  display: block;
  padding: 12px 14px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.counter a:hover { background: var(--text); color: var(--bg); }
.counter a:hover .label { color: inherit; opacity: .7; }
.counter b {
  display: block;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-top: 22px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  .hero-foot { grid-template-columns: 1fr; }
  .counter { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------- ticker */

.ticker {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--accent);
  color: #0d0d0c;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track { display: inline-flex; animation: tick 40s linear infinite; padding: 14px 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-right: 52px;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  letter-spacing: -0.035em;
}
.ticker-item a:hover { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.ticker-item .k { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; border: 1.5px solid currentColor; padding: 2px 7px; }
.ticker-item .sep { width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- catalog index rows */

.index-head, .row {
  display: grid;
  grid-template-columns: 84px 56px minmax(0, 1fr) 170px 88px 76px 40px;
  gap: 0 18px;
  align-items: center;
}
.index-head {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.index-head span:first-child { padding-left: 14px; }
.row {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  position: relative;
  transition: background .12s;
}
.row:hover { color: var(--text); background: var(--surface); }
.row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--item-accent, var(--accent));
  transition: width .2s;
}
.row:hover::before { width: 4px; }
.row-no { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); padding-left: 14px; }
.row-icon .app-icon { width: 48px; height: 48px; border-radius: 11px; font-size: 1.1rem; }
.row-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-main strong { font-size: clamp(1.1rem, 1.9vw, 1.55rem); letter-spacing: -0.045em; font-weight: 800; line-height: 1.15; }
.row-main em { font-style: normal; color: var(--muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-plat, .row-year { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-2); }
.row-go { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); transition: all .15s; }
.row-go svg { width: 16px; height: 16px; }
.row:hover .row-go { background: var(--accent); border-color: var(--accent); color: #0d0d0c; }

@media (max-width: 900px) {
  .index-head { display: none; }
  .row { grid-template-columns: 52px minmax(0, 1fr) 34px; gap: 3px 14px; }
  .row-no { grid-column: 2; grid-row: 1; padding: 0; font-size: 0.66rem; }
  .row-icon { grid-column: 1; grid-row: 1 / span 3; }
  .row-main { grid-column: 2; grid-row: 2; }
  .row-plat { grid-column: 2; grid-row: 3; font-size: 0.68rem; }
  .row-status, .row-year { display: none; }
  .row-go { grid-column: 3; grid-row: 1 / span 3; }
  .row-main em { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

.peek-float {
  position: fixed;
  z-index: 60;
  left: 0; top: 0;
  width: 180px;
  pointer-events: none;
  opacity: 0;
  transform: translate(24px, -50%) scale(.92) rotate(-4deg);
  transition: opacity .15s, transform .25s cubic-bezier(.2, .8, .2, 1);
  background: #1c1c1a;
  padding: 5px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.peek-float.is-wide { width: 340px; border-radius: 8px; }
.peek-float img { display: block; width: 100%; border-radius: 15px; }
.peek-float.is-wide img { border-radius: 4px; }
.peek-float.is-on { opacity: 1; transform: translate(28px, -50%) scale(1) rotate(-4deg); }
@media (hover: none), (max-width: 900px) { .peek-float { display: none; } }

/* ---------------------------------------------------------------- filter tabs */

.tabs {
  display: flex;
  flex-wrap: wrap;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  margin: 0 0 28px;
  width: fit-content;
  max-width: 100%;
}
.tabs a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-2);
}
.tabs a small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); font-weight: 500; }
.tabs a:hover { color: var(--text); background: var(--surface); }
.tabs a.is-active { background: var(--text); color: var(--bg); }
.tabs a.is-active small { color: var(--accent); }

/* ---------------------------------------------------------------- specimen tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border);
}
.tile {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background .15s;
}
.tile:hover { color: var(--text); background: var(--surface); }

.tile-stage {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  display: grid;
  place-items: center;
  background-color: var(--surface-2);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--border);
}
.tile-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 55%, var(--item-accent, transparent), transparent 60%);
  opacity: .22;
}
.tile-stage > .app-icon {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 24px;
  font-size: 2.6rem;
  box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .55);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  z-index: 1;
}
.tile-stage > .app-icon:has(+ .tile-peek) { margin-right: 36%; }
.tile:hover .tile-stage > .app-icon { transform: translateY(-6px) rotate(-5deg); }

.tile-peek {
  position: absolute;
  right: 10%;
  bottom: -24%;
  width: 33%;
  background: #1c1c1a;
  padding: 4px;
  border-radius: 16px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  z-index: 1;
}
.tile-peek img { display: block; width: 100%; border-radius: 12px; }
.tile-peek.is-wide { width: 56%; right: -8%; bottom: -12%; border-radius: 6px; }
.tile-peek.is-wide img { border-radius: 3px; }
.tile:hover .tile-peek { transform: translateY(-12%); }

.tile-stage.is-cover { display: block; }
.tile-cover { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s; }
.tile:hover .tile-cover { transform: scale(1.03); }

.tile-no, .tile-status {
  position: absolute;
  top: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--bg);
  padding: 3px 8px;
  border: 1px solid var(--border);
}
.tile-no { left: 12px; color: var(--text-2); }
.tile-status { right: 12px; }

.tile-info { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-info h3 { font-size: 1.3rem; letter-spacing: -0.045em; }
.tile-info p { color: var(--muted); font-size: 0.9rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  border-top: 1px dashed var(--border);
}

/* ---------------------------------------------------------------- home: journal + tools */

.duo { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--border); }
.post-list a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0;
  color: var(--text);
}
.post-list time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); padding-top: 5px; grid-row: 1 / span 2; }
.post-list strong { font-size: 1.15rem; letter-spacing: -0.03em; font-weight: 700; line-height: 1.35; }
.post-list p { color: var(--muted); font-size: 0.9rem;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.post-list a:hover strong { color: var(--accent); }
@media (max-width: 560px) { .post-list a { grid-template-columns: 1fr; } .post-list time { grid-row: auto; padding: 0; } }

.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--border); }
.tool-grid a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 124px;
  padding: 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.tool-grid a:hover { background: var(--text); color: var(--bg); }
.tool-grid a:hover span { color: inherit; opacity: .7; }
.tool-grid i { font-style: normal; font-family: var(--font-mono); font-size: 0.66rem; color: var(--accent); }
.tool-grid strong { display: block; font-size: 1rem; letter-spacing: -0.02em; }
.tool-grid span { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.4; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- page head */

.page-head { padding: clamp(40px, 6vw, 80px) 0 32px; }
.page-head h1 { font-size: clamp(2.8rem, 8.4vw, 7rem); letter-spacing: -0.075em; line-height: .92; }
.page-head .lead { margin-top: 20px; max-width: 40rem; font-size: 1.05rem; color: var(--text-2); }

.crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs .here { color: var(--text); }

/* ---------------------------------------------------------------- detail */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(36px, 5vw, 64px) 0 clamp(44px, 5vw, 72px);
  align-items: start;
}
.product-id { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.product-id .app-icon { width: 76px; height: 76px; border-radius: 18px; font-size: 2rem; }
.product-id .label { display: grid; gap: 4px; }
.product h1 { font-size: clamp(2.7rem, 6.8vw, 5.8rem); letter-spacing: -0.072em; line-height: .96; }
.product .tagline { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--text-2); margin-top: 20px; max-width: 34rem; line-height: 1.55; letter-spacing: -0.02em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cta-row .btn { flex: 1 1 100%; } }

.spec { border-top: 1px solid var(--border-strong); }
.spec-head {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.spec-head b { color: var(--accent); font-weight: 700; }
.spec dl { margin: 0; }
.spec dl > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.spec dt { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 3px; }
.spec dd { margin: 0; font-weight: 600; min-width: 0; }
.spec dd .chip { margin: 0 4px 4px 0; }
.spec dd a { border-bottom: 1px solid currentColor; }
.spec-actions { padding-top: 16px; display: grid; gap: 8px; }
.dl-note { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); text-align: center; }

/* 스크린샷 무대 */
.stage-band {
  background: var(--stage);
  color: var(--on-stage);
  padding: clamp(32px, 4vw, 56px) 0 clamp(24px, 3vw, 40px);
}
.band-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(235, 234, 228, .55);
  margin-bottom: 26px;
}
.band-head b { color: var(--accent); font-weight: 700; }
.shots {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 24px;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.shots::after { content: ""; flex: 0 0 1px; }
.shot { flex: 0 0 auto; margin: 0; scroll-snap-align: center; cursor: zoom-in; }
.shot-frame {
  display: block;
  padding: 7px;
  background: #1c1c1a;
  border-radius: 34px;
  box-shadow: inset 0 0 0 1px #333, 0 30px 60px -30px rgba(0, 0, 0, .9);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.shot:hover .shot-frame { transform: translateY(-6px); }
.shot-frame img { display: block; height: min(560px, 62vh); width: auto; max-width: none; border-radius: 27px; background: #222; }
.shot.is-landscape .shot-frame { border-radius: 10px; padding: 26px 7px 7px; position: relative; }
.shot.is-landscape .shot-frame::before {
  content: ""; position: absolute; top: 10px; left: 12px; width: 36px; height: 8px;
  background:
    radial-gradient(circle at 4px 4px, #555 3.2px, transparent 3.7px),
    radial-gradient(circle at 18px 4px, #555 3.2px, transparent 3.7px),
    radial-gradient(circle at 32px 4px, #555 3.2px, transparent 3.7px);
}
.shot.is-landscape .shot-frame img { height: min(440px, 50vh); border-radius: 4px; }
.shot figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(235, 234, 228, .72);
  display: flex; gap: 10px;
}
.shot figcaption i { font-style: normal; color: var(--accent); }
@media (max-width: 560px) {
  .shot-frame img { height: 420px; }
  .shot.is-landscape .shot-frame img { height: 190px; }
}

.reading {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: clamp(20px, 5vw, 80px);
  padding-top: clamp(56px, 7vw, 96px);
}
.reading > .label { border-top: 1px solid var(--border-strong); padding-top: 12px; align-self: start; position: sticky; top: 80px; }
@media (max-width: 900px) { .reading { grid-template-columns: 1fr; gap: 16px; } .reading > .label { position: static; } }

.features {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
  counter-reset: feat;
}
.features li { counter-increment: feat; padding: 20px 22px 24px 0; border-bottom: 1px solid var(--border); }
.features li:nth-child(odd) { border-right: 1px solid var(--border); }
.features li:nth-child(even) { padding-left: 22px; }
.features li::before {
  content: counter(feat, decimal-leading-zero);
  display: block;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  color: var(--item-accent, var(--accent));
  margin-bottom: 16px;
}
.features strong { display: block; font-size: 1.15rem; letter-spacing: -0.035em; margin-bottom: 4px; }
.features p { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .features li:nth-child(odd) { border-right: 0; }
  .features li:nth-child(even) { padding-left: 0; }
}

.prose { font-size: 1.06rem; line-height: 1.85; color: var(--text-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.7rem; margin: 2.2em 0 .6em; letter-spacing: -0.045em; color: var(--text); }
.prose h3 { font-size: 1.22rem; margin: 1.8em 0 .5em; color: var(--text); }
.prose h4 { font-size: 1.02rem; margin: 1.4em 0 .4em; color: var(--text); }
.prose p { margin: 1em 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 1em 0; }
.prose li { margin: .35em 0; padding-left: .15em; }
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { font-family: var(--font-mono); color: var(--accent); font-size: .85em; }
.prose a { color: var(--text); border-bottom: 1.5px solid var(--accent); }
.prose a:hover { color: var(--accent); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose img { height: auto; border: 1px solid var(--border); }
.prose code { font-size: .86em; background: var(--surface-2); padding: .12em .4em; }
.prose pre { background: var(--stage); color: var(--on-stage); padding: 18px 20px; overflow-x: auto; font-size: .86rem; line-height: 1.65; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { border-collapse: collapse; width: 100%; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.prose th { background: var(--surface-2); font-family: var(--font-mono); font-size: .8rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }

.maker-note {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.045em;
  color: var(--text);
}
.maker-note::before { content: "“"; color: var(--accent); }
.maker-note::after { content: "”"; color: var(--accent); }
.maker-sign { margin-top: 18px; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 5, 5, .94); }
.lightbox img { display: block; max-width: 92vw; max-height: 84vh; margin: 0 auto; border-radius: 6px; }
.lightbox p { color: #ddd; text-align: center; margin-top: 14px; font-family: var(--font-mono); font-size: .78rem; }
.lightbox .icon-btn { position: fixed; color: #fff; border-color: #444; background: #111; width: 44px; height: 44px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ---------------------------------------------------------------- about */

.statement {
  font-size: clamp(1.7rem, 3.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.28;
  max-width: 62rem;
  margin: 0;
}
.statement em { font-style: normal; color: var(--accent); }
.about-body { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(20px, 5vw, 80px); margin-top: clamp(40px, 5vw, 72px); }
.about-body > .label { border-top: 1px solid var(--border-strong); padding-top: 12px; align-self: start; }
@media (max-width: 900px) { .about-body { grid-template-columns: 1fr; } }

.dayline { margin-top: 36px; }
.dayline-bar { position: relative; display: flex; height: 72px; border: 1px solid var(--border-strong); }
.dayline-bar > span {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 8px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.dayline-bar > span:last-of-type { border-right: 0; }
.dayline-bar > span small { font-family: var(--font-mono); font-size: .62rem; font-weight: 500; opacity: .7; }
.dayline-bar .sleep { background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--border) 6px 7px); color: var(--muted); }
.dayline-bar .work { background: var(--surface-2); color: var(--text-2); }
.dayline-bar .eve { background: var(--surface); color: var(--text-2); }
.dayline-bar .shop { background: var(--accent); color: #0d0d0c; }
.dayline-now { position: absolute; top: -12px; bottom: -12px; width: 2px; background: var(--text); z-index: 2; left: 0; display: none; }
.dayline-now.is-ready { display: block; }
.dayline-now::after {
  content: attr(data-label);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: .64rem;
  background: var(--text);
  color: var(--bg);
  padding: 1px 6px;
  white-space: nowrap;
}
.dayline-scale { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: .64rem; color: var(--muted); }
@media (max-width: 640px) { .dayline-bar > span { font-size: .66rem; padding: 0 4px 6px; } .dayline-bar > span small { display: none; } }

.principles {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--border);
}
.principles li { padding: 18px 20px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.principles li i { display: block; font-style: normal; font-family: var(--font-mono); font-size: .68rem; color: var(--accent); margin-bottom: 44px; }
.principles strong { display: block; font-size: 1.25rem; letter-spacing: -0.035em; margin-bottom: 6px; }
.principles p { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }

.ledger { display: grid; grid-template-columns: repeat(5, 1fr); border-left: 1px solid var(--border); }
.ledger div { padding: 12px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ledger b { display: block; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.06em; margin-top: 16px; line-height: 1; }
@media (max-width: 700px) { .ledger { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- journal */

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.content-grid:not(:has(> .side-rail)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } }
.stage { min-width: 0; }
.side-rail { min-width: 0; position: sticky; top: 80px; }
@media (max-width: 960px) { .side-rail { position: static; } }

.cat-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; border-left: 1px solid var(--border); border-top: 1px solid var(--border); width: fit-content; max-width: 100%; }
.cat-list a { display: block; padding: 9px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .88rem; font-weight: 700; color: var(--text-2); }
.cat-list a:hover { background: var(--surface); color: var(--text); }
.cat-list a.is-active { background: var(--text); color: var(--bg); }

.article-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); }
.article-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.article-list .date { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); padding-top: 9px; grid-row: 1 / span 3; }
.article-list h3 { font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -0.05em; }
.article-list h3 a:hover { color: var(--accent); }
.article-list p { color: var(--muted); font-size: .95rem; max-width: 44rem; }
.article-list .tags { display: flex; gap: 12px; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.article-list .tags a:hover { color: var(--accent); }
@media (max-width: 640px) { .article-list li { grid-template-columns: 1fr; } .article-list .date { grid-row: auto; padding: 0; } }

.meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.meta-line a:hover { color: var(--accent); }

.article-head { padding: clamp(40px, 6vw, 80px) 0 28px; border-bottom: 1px solid var(--border-strong); margin-bottom: 44px; }
.article-head h1 { font-size: clamp(2.3rem, 5.8vw, 4.6rem); letter-spacing: -0.065em; line-height: 1.02; max-width: 18ch; margin-bottom: 24px; }
.article-panel { min-width: 0; }
.article-body { font-size: 1.06rem; line-height: 1.85; color: var(--text-2); max-width: 740px; }
.article-body h2 { font-size: 1.7rem; margin: 2.2em 0 .6em; letter-spacing: -0.045em; }
.article-body h3 { font-size: 1.24rem; margin: 1.8em 0 .5em; }
.article-body p { margin: 1em 0; }
.article-body img { height: auto; }
.article-body a { border-bottom: 1.5px solid var(--accent); }
.article-body pre { background: var(--stage); color: var(--on-stage); padding: 18px 20px; overflow-x: auto; font-size: .86rem; }
.article-body code { font-family: var(--font-mono); font-size: .88em; }
.article-body :not(pre) > code { background: var(--surface-2); padding: .12em .4em; }
.article-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.article-body table { border-collapse: collapse; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 10px; }

.related { margin-top: 72px; }
.related h2 { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; padding-bottom: 10px; border-bottom: 1px solid var(--border-strong); }

/* ---------------------------------------------------------------- web tools (기존 틀 호환) */

.site-shell > .content-grid { max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gutter) 0; }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin: 0 0 28px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden="true"] { opacity: .5; }
.stage > .hero, .hero-compact { padding: 0 0 24px; margin: 0 0 28px; border-bottom: 1px solid var(--border-strong); }
.stage .hero-title, .hero-compact .hero-title { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.065em; line-height: .98; margin: 0 0 14px; }
.hero-kicker { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 0 0 12px; }
.section { margin: 0 0 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 0; padding: 22px; }
.section h2 { font-size: 1.12rem; margin: 0 0 14px; }
.panel-sub { color: var(--muted); font-size: .9rem; }
.portal-related-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; }
.portal-related-links a { border-bottom: 1px solid currentColor; }

.search-box { display: flex; max-width: 680px; margin: 0 0 36px; border: 1px solid var(--border-strong); background: var(--field); }
.search-box input {
  flex: 1; min-width: 0; min-height: 56px; padding: 12px 18px;
  border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem;
}
.search-box input:focus { outline: none; }
.search-box .btn { border: 0; min-height: 56px; }

/* ---------------------------------------------------------------- misc pages */

.error-page { padding-top: clamp(48px, 8vw, 120px); }
.error-page .code { font-size: clamp(7rem, 26vw, 22rem); font-weight: 800; letter-spacing: -0.09em; line-height: .78; color: var(--accent); }
.error-page h1 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); margin: 28px 0 10px; letter-spacing: -.05em; }

.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-left: 1px solid var(--border); border-top: 1px solid var(--border-strong); }
.sitemap-cols section { padding: 18px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sitemap-cols h2 { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 500; margin-bottom: 12px; }
.sitemap-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .94rem; }

.ad-slot { margin: 40px 0; min-height: 90px; overflow: hidden; text-align: center; }
.ad-slot.rail { margin-top: 0; min-height: 250px; }
.ad-slot .adsbygoogle { display: block; width: 100%; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: clamp(96px, 12vw, 160px);
  background: var(--stage);
  color: var(--on-stage);
  padding: clamp(52px, 6vw, 88px) 0 28px;
}
.footer-mega {
  font-size: clamp(3.6rem, 13vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: .88;
  margin: 0 0 clamp(44px, 6vw, 80px);
  color: var(--on-stage);
}
.footer-mega span { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid #333;
}
.footer-grid h2 { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #8a8880; font-weight: 500; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--on-stage); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: #a9a79f; max-width: 30rem; margin-bottom: 22px; }
.footer-brand .btn { color: var(--on-stage); border-color: #444; }
.footer-brand .btn:hover { background: var(--accent); color: #0d0d0c; border-color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 52px; padding-top: 16px; border-top: 1px solid #333;
  font-family: var(--font-mono); font-size: .68rem; color: #8a8880; text-transform: uppercase; letter-spacing: .05em;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  .rise-2 { animation-delay: .1s; }
  .rise-3 { animation-delay: .2s; }
  .hero-title .line { overflow: hidden; padding-bottom: .04em; }
  .hero-title .line > span { display: inline-block; animation: lineup 1s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-title .line:nth-child(2) > span { animation-delay: .07s; }
  .hero-title .line:nth-child(3) > span { animation-delay: .14s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lineup { from { transform: translateY(108%); } to { transform: none; } }
