/* ===============================================================
   ARVID ACOUSTIC — Homepage Stylesheet
   Three variants controlled by [data-variant="sonic|arch|warm"]
   =============================================================== */

/* Korean brand typeface: Nanum Gothic Bold. Loaded once, then used as a
   fallback for the Latin display fonts so Korean glyphs render in this
   face while English glyphs stay in Inter / Space Grotesk / Fraunces. */
@font-face {
  font-family: "Nanum Gothic Bold";
  src: url("../assets/fonts/NanumGothicBold.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  /* Restrict to Korean unicode ranges so browsers only fetch the file
     when a Korean glyph is needed on the page. */
  unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 350ms ease, color 350ms ease;
}

/* ---------- Variant: SONIC (dark waveform) ---------- */
body[data-variant="sonic"] {
  --bg: #0a0d12;
  --bg-elev: #10141b;
  --bg-line: rgba(230, 232, 236, 0.08);
  --fg: #e6e8ec;
  --fg-muted: rgba(230, 232, 236, 0.55);
  --fg-dim: rgba(230, 232, 236, 0.35);
  --accent: #f5c14a;
  --accent-2: #7ac6ff;
  --font-body: "Inter", "Nanum Gothic Bold", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Nanum Gothic Bold", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "Nanum Gothic Bold", ui-monospace, monospace;
}

/* ---------- Variant: ARCH (minimal off-white) ---------- */
body[data-variant="arch"] {
  --bg: #f6f4ef;
  --bg-elev: #ffffff;
  --bg-line: rgba(26, 37, 64, 0.15);
  --fg: #1a2540;
  --fg-muted: rgba(26, 37, 64, 0.62);
  --fg-dim: rgba(26, 37, 64, 0.35);
  --accent: #b25d3c;
  --accent-2: #1a2540;
  --font-body: "Inter", "Nanum Gothic Bold", system-ui, sans-serif;
  --font-display: "Fraunces", "Nanum Gothic Bold", "Georgia", serif;
  --font-mono: "JetBrains Mono", "Nanum Gothic Bold", ui-monospace, monospace;
}

/* ---------- Variant: WARM (editorial dark) ---------- */
body[data-variant="warm"] {
  --bg: #1a1613;
  --bg-elev: #221d19;
  --bg-line: rgba(244, 231, 211, 0.12);
  --fg: #f4e7d3;
  --fg-muted: rgba(244, 231, 211, 0.62);
  --fg-dim: rgba(244, 231, 211, 0.35);
  --accent: #c9a06a;
  --accent-2: #b25d3c;
  --font-body: "Inter", "Nanum Gothic Bold", system-ui, sans-serif;
  --font-display: "Fraunces", "Nanum Gothic Bold", "Georgia", serif;
  --font-mono: "JetBrains Mono", "Nanum Gothic Bold", ui-monospace, monospace;
}

/* ===============================================================
   Nav
   =============================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 26px 44px;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--bg-line);
  font-family: "Nanum Gothic Bold", var(--font-body);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.nav__logo {
  height: 57px;
  width: auto;
  display: block;
  /* The uploaded horizontal logo has white letters, so it needs a dark
     backdrop. On the light Arch variant we invert the luminance. */
  transition: filter 200ms ease;
}
body[data-variant="arch"] .nav__logo,
body[data-variant="arch"] .foot__logo {
  /* On the light Arch background, the white text is invisible.
     Invert luminance while preserving hue via hue-rotate. */
  filter: invert(0.85) hue-rotate(180deg) saturate(1.6) brightness(0.9);
}
.nav__links { display: flex; gap: 32px; justify-content: center; }
.nav__links a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 160ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}
.nav__links a b {
  font-family: "Nanum Gothic Bold", var(--font-body);
  font-weight: 700;
  color: var(--fg);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.nav__links a em {
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.nav__links a:hover b { color: var(--accent); }
.nav__links a:hover em { color: var(--fg-muted); }
.nav__btn {
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--bg-line);
  padding: 13px 22px;
  border-radius: 999px;
  font-family: "Nanum Gothic Bold", var(--font-body);
  font-size: 20px;
  letter-spacing: 0.02em;
  transition: all 160ms ease;
}
.nav__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 900px) {
  .nav { grid-template-columns: auto auto; padding: 14px 24px; }
  .nav__links { display: none; }
}

/* ===============================================================
   Hero — shared
   =============================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  padding: 44px;
  overflow: hidden;
}
/* Give the first hero breathing room under the sticky nav. */
.nav + .hero { padding-top: 24px; }

/* ============ Hero: SONIC ============ */
.hero-sonic {
  color: #e6e8ec;
  background: radial-gradient(ellipse at top, #131924 0%, #0a0d12 60%);
}
.hero-sonic__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(230,232,236,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,232,236,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-sonic__canvas {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 60%;
  opacity: 0.55;
  filter: blur(0.3px);
  pointer-events: none;
}
.hero-sonic__inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero-sonic__meta {
  font-family: "Nanum Gothic Bold", var(--font-body);
  font-size: 24px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  display: flex; align-items: center; gap: 14px;
}
.hero-sonic__meta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero-sonic__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8.5vw, 148px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}
.hero-sonic__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero-sonic__acronym {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-family: "Nanum Gothic", sans-serif;
  font-weight: 700;
  font-size: 15.6px; /* 13px × 1.2 */
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  padding-top: 24px;
  border-top: 1px solid var(--bg-line);
}
.hero-sonic__ac-item { display: flex; align-items: baseline; gap: 8px; }
.hero-sonic__ac-item b {
  color: var(--accent);
  font-family: "Nanum Gothic", sans-serif;
  font-size: 26.4px; /* 22px × 1.2 */
  font-weight: 800;
}
.hero-sonic__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-top: 24px;
}
.hero-sonic__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-sonic__lede em {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fg-dim);
  font-style: italic;
  padding-left: 12px;
  border-left: 2px solid var(--bg-line);
}
.hero-sonic__stats {
  display: flex;
  gap: 48px;
}
.hero-sonic__stats > div { display: flex; flex-direction: column; }
.hero-sonic__stats b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-sonic__stats span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 8px;
}

/* ============ Hero: ARCH ============ */
.hero-arch {
  color: #1a2540;
  background: #f6f4ef;
  padding: 0;
  min-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.hero-arch__grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  pointer-events: none;
}
.hero-arch__col {
  border-right: 1px dashed rgba(26,37,64,0.08);
}
.hero-arch__col:last-child { border-right: none; }
.hero-arch__topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 20px 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid rgba(26,37,64,0.12);
}
.hero-arch__body {
  position: relative;
  z-index: 2;
  padding: 80px 44px 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.hero-arch__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 32px;
}
.hero-arch__label span { color: var(--accent); margin-right: 8px; }
.hero-arch__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 156px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero-arch__title-em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.hero-arch__acronym {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.hero-arch__acronym-ko { color: var(--fg); }
.hero-arch__diagram {
  position: absolute;
  right: 44px;
  bottom: 100px;
  width: 380px;
  height: 300px;
  opacity: 0.9;
}
.hero-arch__foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 20px 44px;
  border-top: 1px solid rgba(26,37,64,0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hero-arch__foot-r { display: flex; gap: 24px; }
@media (max-width: 900px) {
  .hero-arch__diagram { display: none; }
}

/* ============ Hero: WARM ============ */
.hero-warm {
  color: #f4e7d3;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(201,160,106,0.15), transparent 70%),
    #1a1613;
  min-height: 96vh;
}
.hero-warm__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-warm__inner {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 80px;
}
.hero-warm__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 40px;
}
.hero-warm__mark { color: var(--accent); font-size: 18px; }
.hero-warm__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-warm__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-warm__t-line:nth-child(2) { padding-left: 12%; }
.hero-warm__t-line:nth-child(3) { padding-left: 4%; }
.hero-warm__split {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.hero-warm__lede {
  font-size: 20px;
  line-height: 1.7;
  color: var(--fg);
  max-width: 520px;
}
.hero-warm__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
  border-top: 1px solid var(--bg-line);
}
.hero-warm__aside-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding-top: 16px;
  border-bottom: 1px solid var(--bg-line);
  padding-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}
.hero-warm__aside-row span {
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-warm__aside-row div { color: var(--fg-muted); }
.hero-warm__plate {
  margin-top: 64px;
  padding: 32px 40px;
  border: 1px solid var(--bg-line);
  border-radius: 4px;
  background: color-mix(in oklab, var(--bg-elev) 90%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-warm__plate-inner {
  display: flex;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  justify-content: space-between;
}
.hero-warm__plate-num {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 400;
}
.hero-warm__plate-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
@media (max-width: 900px) {
  .hero-warm__split { grid-template-columns: 1fr; gap: 40px; }
  .hero-warm__t-line { padding-left: 0 !important; }
  .hero-warm__plate-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ===============================================================
   Section
   =============================================================== */
.sec {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 44px;
  border-top: 1px solid var(--bg-line);
}
.sec--wide { max-width: 1500px; }
.sec__head {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 72px;
}
.sec__kicker {
  /* 모든 섹션 키커 통일: 나눔고딕 볼드 · 24px (About 기준) */
  font-family: "Nanum Gothic", sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.sec__title-block { display: flex; flex-direction: column; gap: 12px; }
.sec__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
body[data-variant="sonic"] .sec__title { font-weight: 500; }
.sec__title-en {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.5;
  max-width: 520px;
}
.sec__aside { color: var(--fg-muted); font-size: 14px; }
@media (max-width: 900px) {
  .sec { padding: 80px 24px; }
  .sec__head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
}

/* ---------- Intro ---------- */
.intro__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 820px;
}
.intro__pair { display: flex; flex-direction: column; gap: 8px; }
.intro__ko {
  margin: 0;
  font-size: 20px;
  line-height: 1.65;
  color: var(--fg);
}
.intro__en {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-muted);
  font-style: italic;
  padding-left: 16px;
  border-left: 2px solid var(--bg-line);
}
.intro__scope {
  font-family: "Nanum Gothic Bold", var(--font-body);
  font-size: 14.4px;
  border-left: 1px solid var(--bg-line);
  padding-left: 24px;
}
.intro__scope-label {
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-size: 14.4px;
}
.intro__scope ul { list-style: none; padding: 0; margin: 0; }
.intro__scope li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--bg-line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.intro__scope li span {
  color: var(--fg);
  font-family: "Nanum Gothic Bold", var(--font-body);
  font-size: 15.6px;
}
.intro__scope li em {
  font-style: italic;
  color: var(--fg-dim);
  font-size: 12.6px;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}
.intro__scope li:last-child { border-bottom: none; }

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bg-line);
  border: 1px solid var(--bg-line);
}
.service-card {
  background: var(--bg);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 380px;
  transition: background 200ms ease;
}
.service-card:hover { background: var(--bg-elev); }
.service-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-card__idx { color: var(--accent); font-size: 14px; }
.service-card__tag { color: var(--fg-muted); }
.service-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.service-card__title-en {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-top: -12px;
}
.service-card__desc {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.service-card__desc-en {
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  margin: 0;
  font-style: italic;
  flex: 1;
}
.service-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px dashed var(--bg-line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}
.service-card__bullets li { display: flex; align-items: flex-start; gap: 10px; }
.service-card__bullets li > span {
  width: 6px; height: 6px;
  background: var(--accent);
  display: inline-block;
  margin-top: 6px;
  flex-shrink: 0;
}
.service-card__bullets li > div { display: flex; flex-direction: column; gap: 1px; }
.service-card__bullets li b { color: var(--fg-muted); font-weight: 400; }
.service-card__bullets li em { color: var(--fg-dim); font-size: 10.5px; letter-spacing: 0.06em; font-style: italic; }
@media (max-width: 1100px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services__grid { grid-template-columns: 1fr; } }

/* ---------- Technology ---------- */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tech-card {
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--bg-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: transform 220ms ease, border-color 220ms ease;
}
.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.tech-card__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.tech-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}
.tech-card__title-en {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  font-style: italic;
  margin-top: -6px;
}
.tech-card__body {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.tech-card__body-en {
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  font-style: italic;
  margin: 0;
  padding-top: 6px;
  border-top: 1px dashed var(--bg-line);
}
@media (max-width: 1000px) { .tech__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .tech__grid { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  max-width: 900px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 130px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--bg-line);
}
.timeline__item {
  display: grid;
  grid-template-columns: 120px 20px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px dashed var(--bg-line);
}
.timeline__item:last-child { border-bottom: none; }
.timeline__year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}
.timeline__year b {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-right: 4px;
}
.timeline__dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  justify-self: center;
  align-self: center;
  transform: translateY(-2px);
}
.timeline__title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  color: var(--fg);
}
.timeline__title-en {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.timeline__note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  margin-top: 6px;
  letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .timeline::before { left: 90px; }
  .timeline__item { grid-template-columns: 80px 20px 1fr; }
}

/* ---------- Projects ---------- */
.projects__tabs {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--bg-line);
  border-bottom: 1px solid var(--bg-line);
  margin-bottom: 12px;
}
.projects__tab {
  flex: 1;
  padding: 22px 20px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--bg-line);
  color: var(--fg-muted);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 200ms ease;
  position: relative;
}
.projects__tab:last-child { border-right: none; }
.projects__tab:hover { color: var(--fg); background: var(--bg-elev); }
.projects__tab.is-active {
  color: var(--fg);
  background: var(--bg-elev);
}
.projects__tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}
.projects__tab-en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.projects__tab-ko {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
}
.projects__tab-n {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-dim);
  margin-top: 4px;
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--bg-line);
  transition: transform 260ms ease, border-color 260ms ease;
  cursor: default;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklab, var(--accent) 18%, transparent) 0 8px,
      transparent 8px 16px
    ),
    var(--bg);
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease, filter 400ms ease;
  filter: saturate(0.9);
}
.project-card:hover .project-card__media img {
  transform: scale(1.04);
  filter: saturate(1.05);
}
.project-card__ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.project-card__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.35) 65%, transparent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}
.project-card__overlay em {
  font-style: normal;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.project-card__meta-tl {
  position: absolute;
  left: 12px; top: 12px;
  display: flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #fff;
  z-index: 2;
}
.project-card__meta-tl span {
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 3px;
}
.project-card { cursor: pointer; }
.project-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-card__name {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  color: var(--fg);
}
.project-card__name-en {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}
.project-card__desc {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fg-muted);
  padding-top: 10px;
  border-top: 1px dashed var(--bg-line);
}
.projects__empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px dashed var(--bg-line);
  border-radius: 4px;
}
.projects__empty em { font-style: italic; color: var(--fg-dim); font-size: 11.5px; }
@media (max-width: 1000px) { .projects__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .projects__grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .projects__tabs { flex-wrap: wrap; }
  .projects__tab { flex: 1 1 50%; border-bottom: 1px solid var(--bg-line); }
}

/* ---------- Team ---------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.team-card {
  padding: 24px;
  border: 1px solid var(--bg-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
}
.team-card__portrait {
  aspect-ratio: 1;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-elev) 0 8px,
    var(--bg) 8px 16px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.team-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.team-card__name em {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-dim);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.team-card__role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.team-card__cert {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-top: auto;
}
@media (max-width: 1000px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .team__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact__cta {
  padding: 40px;
  background: var(--bg-elev);
  border: 1px solid var(--bg-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__cta-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact__phone {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
  line-height: 1.1;
}
.contact__phone:hover { color: var(--accent); }
.contact__hours {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}
.contact__table { margin: 0; padding: 0; }
.contact__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--bg-line);
  font-size: 14px;
}
.contact__row:first-child { padding-top: 0; }
.contact__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 2px;
}
.contact__row dd {
  margin: 0;
  color: var(--fg);
  line-height: 1.5;
  white-space: pre-line;
}
@media (max-width: 800px) {
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact__row { grid-template-columns: 100px 1fr; }
}

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--bg-line);
  padding: 48px 44px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.foot__logo {
  display: block;
  height: clamp(56px, 8vw, 100px);
  width: auto;
  max-width: 100%;
}

.foot__acronym {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: "Nanum Gothic", sans-serif;
  font-weight: 700;
  font-size: 18px; /* 12 × 1.5 */
  color: var(--fg-muted);
}
.foot__acronym b {
  color: var(--accent);
  margin-right: 4px;
  font-family: "Nanum Gothic", sans-serif;
  font-weight: 800;
  font-size: 21px; /* 14 × 1.5 */
}
.foot__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  line-height: 1.6;
  text-align: right;
  letter-spacing: 0.06em;
}
@media (max-width: 800px) {
  .foot { grid-template-columns: 1fr; padding: 40px 24px; }
  .foot__meta { text-align: left; }
}


/* ===============================================================
   Admin mode
   =============================================================== */
.admin-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: rgba(20, 22, 28, 0.9);
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 180ms ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.admin-fab:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.28); }
.admin-fab.is-on {
  background: #f5c14a;
  color: #1a1613;
  border-color: #f5c14a;
}
.admin-fab__icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.admin-fab.is-on .admin-fab__icon { background: rgba(0,0,0,0.15); }
.admin-fab__label { font-weight: 600; }

.admin-strip {
  position: fixed;
  left: 20px;
  bottom: 76px;
  z-index: 59;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(20, 22, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #eee;
  max-width: 360px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.admin-strip__title { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.admin-strip__title b { font-weight: 600; }
.admin-strip__title em {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
.admin-strip__actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-strip__btn {
  padding: 6px 10px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  color: #eee;
  font-size: 10.5px;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 140ms ease;
}
.admin-strip__btn:hover { border-color: #f5c14a; color: #f5c14a; }
.admin-strip__btn.is-attn {
  background: rgba(245, 193, 74, 0.14);
  border-color: rgba(245, 193, 74, 0.5);
  color: #f5c14a;
  animation: adminAttn 1.8s ease-in-out infinite;
}
.admin-strip__btn--danger:hover { border-color: #f77; color: #f77; }
@keyframes adminAttn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 193, 74, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(245, 193, 74, 0); }
}

/* ── Admin modal ─────────────────────────────────────────────────────── */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 12, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 160ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.admin-modal__card {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow: auto;
  background: #1a1c22;
  color: #eee;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  font-family: var(--font-body, system-ui, sans-serif);
}
.admin-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-modal__head h3 {
  margin: 0;
  font-size: 16px;
  font-family: var(--font-display, sans-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.admin-modal__close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #eee;
  cursor: pointer;
  font-size: 12px;
}
.admin-modal__close:hover { border-color: #f5c14a; color: #f5c14a; }
.admin-modal__body { padding: 20px 24px 24px; }
.admin-modal__intro {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
}
.admin-modal__intro code {
  background: rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono, monospace);
}
.admin-modal__steps {
  margin: 0 0 20px;
  padding-left: 20px;
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  line-height: 1.75;
}
.admin-modal__steps li { padding-bottom: 4px; }
.admin-modal__steps b { color: #f5c14a; }
.admin-modal__steps a {
  color: #f5c14a;
  border-bottom: 1px solid rgba(245,193,74,0.4);
  text-decoration: none;
}
.admin-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.admin-modal__field span {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.admin-modal__field input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #eee;
  font-size: 14px;
  font-family: var(--font-mono, monospace);
  outline: none;
  transition: border-color 140ms ease, background 140ms ease;
}
.admin-modal__field input:focus {
  border-color: #f5c14a;
  background: rgba(245, 193, 74, 0.06);
}
.admin-modal__test {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid;
}
.admin-modal__test.is-ok  { color: #7fe0a0; border-color: rgba(127, 224, 160, 0.4); background: rgba(127, 224, 160, 0.08); }
.admin-modal__test.is-err { color: #f77;    border-color: rgba(255, 119, 119, 0.4); background: rgba(255, 119, 119, 0.08); }
.admin-modal__foot {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-modal__btn {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: #eee;
  font-size: 12.5px;
  cursor: pointer;
  font-family: var(--font-body, system-ui, sans-serif);
  transition: all 140ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-modal__btn:hover:not(:disabled) { border-color: #f5c14a; color: #f5c14a; }
.admin-modal__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.admin-modal__btn--primary {
  background: #f5c14a;
  color: #1a1613;
  border-color: #f5c14a;
  font-weight: 600;
}
.admin-modal__btn--primary:hover:not(:disabled) {
  background: #ffce5c;
  border-color: #ffce5c;
  color: #1a1613;
}
.admin-modal__btn--danger:hover:not(:disabled) { border-color: #f77; color: #f77; }

.admin-modal__json-preview {
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}
.admin-modal__json-header {
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-modal__json-preview pre {
  margin: 0;
  padding: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}


/* Drop overlay injected onto each .project-card while admin is active */
.project-card { position: relative; }
.admin-drop {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(15, 17, 24, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 2px dashed rgba(245, 193, 74, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 160ms ease;
}
.admin-drop.is-drag {
  background: rgba(245, 193, 74, 0.18);
  border-color: #f5c14a;
}
.admin-drop__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: #fff;
  text-align: center;
}
.admin-drop__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(245, 193, 74, 0.9);
  color: #1a1613;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.admin-drop__label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-drop__label b { font-size: 13px; font-weight: 600; font-family: var(--font-display, sans-serif); letter-spacing: 0; }
.admin-drop__label em { font-style: italic; opacity: 0.75; }
.admin-drop__reset {
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.admin-drop__reset:hover { border-color: #f5c14a; color: #f5c14a; }

/* Hide the drop overlay when admin is off (portal shouldn't mount then, but belt & braces) */
body:not(.admin-on) .admin-drop { display: none; }

@media (max-width: 800px) {
  .admin-strip { left: 12px; right: 12px; max-width: none; bottom: 68px; }
  .admin-fab { left: 12px; bottom: 12px; }
}


/* ── Project detail modal ────────────────────────────────────────────── */
.pdetail {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(6, 8, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  animation: pdetailFade 220ms ease;
}
@keyframes pdetailFade { from { opacity: 0; } to { opacity: 1; } }
.pdetail__card {
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow: auto;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg-line);
  border-radius: 4px;
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  animation: pdetailScale 260ms ease;
}
@keyframes pdetailScale {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.pdetail__close {
  position: absolute;
  right: 14px; top: 14px;
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.pdetail__close:hover { border-color: var(--accent); color: var(--accent); }
.pdetail__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-elev);
  overflow: hidden;
}
.pdetail__media img { width: 100%; height: 100%; object-fit: cover; }
.pdetail__ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim);
}
.pdetail__body {
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pdetail__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.pdetail__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.pdetail__name-en {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
  letter-spacing: 0.03em;
}
.pdetail__facts {
  margin: 12px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--bg-line);
  border-bottom: 1px solid var(--bg-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.pdetail__facts > div { display: flex; flex-direction: column; gap: 2px; }
.pdetail__facts dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.pdetail__facts dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--fg);
}
.pdetail__desc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdetail__desc p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-muted);
}
.pdetail__desc-en {
  font-family: var(--font-mono);
  font-size: 12px !important;
  font-style: italic;
  color: var(--fg-dim) !important;
  line-height: 1.65 !important;
  padding-left: 14px;
  border-left: 2px solid var(--bg-line);
}
@media (max-width: 780px) {
  .pdetail__card { grid-template-columns: 1fr; max-width: 560px; }
  .pdetail__body { padding: 24px 22px 28px; }
  .pdetail__facts { grid-template-columns: 1fr; gap: 10px; }
}


/* ── Admin extensions: card toolbar, add button, editor modal, tabs ─── */
.admin-drop__toolbar {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.admin-drop__toolbar button {
  width: 26px; height: 26px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease, color 120ms ease;
}
.admin-drop__toolbar button:hover:not(:disabled) {
  background: rgba(245, 193, 74, 0.35);
  color: #f5c14a;
}
.admin-drop__toolbar button.is-danger:hover:not(:disabled) {
  background: rgba(255, 119, 119, 0.3);
  color: #f77;
}
.admin-drop__toolbar button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-add-btn {
  grid-column: 1 / -1;
  padding: 24px;
  background: transparent;
  border: 2px dashed rgba(245, 193, 74, 0.5);
  color: #f5c14a;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 160ms ease;
  min-height: 100px;
}
.admin-add-btn:hover {
  background: rgba(245, 193, 74, 0.08);
  border-color: #f5c14a;
}

.admin-modal__card--wide { max-width: 780px; }

.admin-modal__tabs {
  display: flex;
  gap: 4px;
  margin: -8px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-modal__tab {
  padding: 8px 14px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 140ms ease;
}
.admin-modal__tab:hover { border-color: rgba(255,255,255,0.28); color: #eee; }
.admin-modal__tab.is-active {
  background: rgba(245, 193, 74, 0.15);
  border-color: rgba(245, 193, 74, 0.5);
  color: #f5c14a;
}

/* Editor form */
.admin-editor { display: flex; flex-direction: column; gap: 16px; }
.admin-editor__row { display: flex; gap: 14px; }
.admin-editor__row--2 > * { flex: 1; }
.admin-editor__row--3 > * { flex: 1; }
.admin-editor__row .admin-modal__field { margin-bottom: 0; }

.admin-editor__row--image {
  gap: 20px;
  padding: 12px 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
}
.admin-editor__image {
  position: relative;
  width: 200px;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.admin-editor__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-editor__image-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.admin-editor__image-busy {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #f5c14a;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.admin-editor__image-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  flex: 1;
}
.admin-editor__hint {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  line-height: 1.55;
  font-family: var(--font-mono, monospace);
  margin-top: 4px;
}
.admin-editor__err {
  color: #f77;
  font-size: 11.5px;
  font-family: var(--font-mono, monospace);
  padding: 6px 8px;
  background: rgba(255, 119, 119, 0.1);
  border-radius: 4px;
}

.admin-modal__field textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #eee;
  font-size: 13.5px;
  font-family: var(--font-body, sans-serif);
  line-height: 1.55;
  outline: none;
  resize: vertical;
  transition: border-color 140ms ease, background 140ms ease;
}
.admin-modal__field textarea:focus {
  border-color: #f5c14a;
  background: rgba(245, 193, 74, 0.06);
}

@media (max-width: 640px) {
  .admin-editor__row { flex-direction: column; }
  .admin-editor__image { width: 100%; }
}


/* ===============================================================
   Mobile scaling — desktop stays as-is; downshift only on narrow screens.
   =============================================================== */
@media (max-width: 900px) {
  html { scroll-padding-top: 64px; }
  section[id] { scroll-margin-top: 64px; }

  .nav { padding: 14px 20px; gap: 16px; grid-template-columns: auto auto; }
  .nav__logo { height: 34px; }
  .nav__cta { display: none; }
  .nav__links { display: none; }

  .hero { padding: 24px 20px; min-height: auto; }
  .nav + .hero { padding-top: 16px; }
  .hero-sonic__inner { padding-top: 24px; gap: 24px; }
  .hero-sonic__meta { font-size: 13px; letter-spacing: 0.08em; gap: 8px; }
  .hero-sonic__meta .dot { width: 6px; height: 6px; }
  .hero-sonic__title { font-size: clamp(40px, 12vw, 68px); line-height: 1; }
  .hero-sonic__acronym { gap: 14px 20px; padding-top: 16px; font-size: 13.2px; /* 11 × 1.2 */ }
  .hero-sonic__ac-item b { font-size: 19.2px; /* 16 × 1.2 */ }
  .hero-sonic__bottom { grid-template-columns: 1fr; gap: 24px; margin-top: 8px; }
  .hero-sonic__lede { font-size: 15px; }
  .hero-sonic__lede em { font-size: 11px; }
  .hero-sonic__stats { gap: 24px; }
  .hero-sonic__stats b { font-size: 36px; }
  .hero-sonic__stats span { font-size: 10px; }

  .sec { padding: 64px 20px; }
  .sec__head { gap: 16px; margin-bottom: 32px; }
  .sec__title { font-size: clamp(24px, 6vw, 34px) !important; line-height: 1.15; }
  .sec__kicker { font-size: 22px; /* 모든 섹션 통일 */ }
  .sec__title-en { font-size: 12px; }

  .intro__ko { font-size: 16px; line-height: 1.55; }
  .intro__en { font-size: 12px; }

  .service-card { padding: 26px 22px 28px; min-height: 0; gap: 14px; }
  .service-card__title { font-size: 20px; }
  .service-card__desc { font-size: 14px; }
  .service-card__desc-en { font-size: 11px; }
  .tech-card { padding: 22px; min-height: 0; }
  .tech-card__title { font-size: 18px; }
  .tech-card__body { font-size: 13px; }
  .tech-card__body-en { font-size: 11px; }

  .timeline__item { padding: 14px 0; gap: 12px; }
  .timeline__year b { font-size: 15px; }
  .timeline__year { font-size: 11px; }
  .timeline__title { font-size: 15px; }
  .timeline__title-en { font-size: 10.5px; }

  .projects__tab { padding: 14px 14px; }
  .projects__tab-en { font-size: 9.5px; }
  .projects__tab-ko { font-size: 14px; }
  .projects__grid { gap: 14px; margin-top: 24px; }
  .project-card__body { padding: 14px 16px 18px; }
  .project-card__name { font-size: 15px; }
  .project-card__name-en { font-size: 10.5px; }

  .contact__cta { padding: 28px 24px; }
  .contact__cta-line { font-size: 10px; }
  .contact__phone { font-size: clamp(28px, 7vw, 44px); }

  .foot { padding: 40px 20px; gap: 24px; }
  .foot__logo { height: 52px !important; }
  .foot__acronym { gap: 14px; font-size: 16.5px; /* 11 × 1.5 */ }
  .foot__meta { font-size: 10px; text-align: left; }
}

@media (max-width: 640px) {
  .nav { padding: 12px 16px; }
  .nav__logo { height: 30px; }

  .hero { padding: 20px 16px; }
  .hero-sonic__title { font-size: clamp(34px, 11vw, 56px); }
  .hero-sonic__acronym { padding-top: 12px; }
  .hero-sonic__stats { gap: 18px; flex-wrap: wrap; }
  .hero-sonic__stats b { font-size: 30px; }

  .sec { padding: 56px 16px; }
  .sec__title { font-size: clamp(21px, 6.8vw, 28px) !important; }

  .projects__grid { grid-template-columns: 1fr; }
  .projects__tabs { flex-wrap: wrap; }
  .projects__tab { flex: 1 1 45%; padding: 12px 10px; border-bottom: 1px solid var(--bg-line); }

  .services__grid { grid-template-columns: 1fr !important; }
  .tech__grid { grid-template-columns: 1fr !important; }

  .contact__grid { grid-template-columns: 1fr; gap: 24px; }
  .contact__row { grid-template-columns: 96px 1fr; gap: 12px; font-size: 12.5px; }
  .contact__row dt { font-size: 10px; }

  .foot { grid-template-columns: 1fr; }
  .foot__logo { height: 44px !important; }

  .timeline::before { left: 72px; }
  .timeline__item { grid-template-columns: 64px 16px 1fr; gap: 12px; }

  .admin-fab { padding: 8px 12px 8px 10px; font-size: 10px; }
  .admin-fab__icon { width: 18px; height: 18px; font-size: 10px; }

  .pdetail { padding: 20px 12px; }
  .pdetail__card { max-width: 100%; }
  .pdetail__name { font-size: 22px !important; }
  .pdetail__body { padding: 20px 18px 22px; }
}


/* ===============================================================
   Hamburger menu (mobile-only)
   =============================================================== */
.nav__burger {
  display: none;
  background: transparent;
  border: 1px solid var(--bg-line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease;
}
.nav__burger:hover { border-color: var(--accent); }
.nav__burger-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}
.nav__burger-icon i {
  display: block;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 260ms ease, opacity 200ms ease, background 200ms ease;
  transform-origin: center;
}
.nav__burger-icon.is-open i:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--accent); }
.nav__burger-icon.is-open i:nth-child(2) { opacity: 0; }
.nav__burger-icon.is-open i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--accent); }

.nav__mobile {
  position: fixed;
  left: 0; right: 0;
  top: 0;
  z-index: 39;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 90px 24px 32px;
  border-bottom: 1px solid var(--bg-line);
  transform: translateY(-100%);
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  display: none;
  max-height: 100vh;
  overflow-y: auto;
}
.nav__mobile.is-open { transform: translateY(0); }
.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav__mobile-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--bg-line);
  text-decoration: none;
  color: var(--fg);
  transition: padding 160ms ease, color 160ms ease;
}
.nav__mobile-links a:hover {
  padding-left: 12px;
  color: var(--accent);
}
.nav__mobile-links a b {
  font-family: "Nanum Gothic Bold", var(--font-body);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.01em;
}
.nav__mobile-links a em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav__mobile-cta {
  display: block;
  margin-top: 24px;
  padding: 16px 20px;
  text-align: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-family: "Nanum Gothic Bold", var(--font-body);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav__mobile-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 900px) {
  .nav__burger { display: inline-flex; }
  .nav__mobile { display: block; }
}


/* ===============================================================
   Background music floating player (bottom-right)
   =============================================================== */
.music-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
  background: rgba(20, 22, 28, 0.9);
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 200ms ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.music-fab:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}
.music-fab:disabled { opacity: 0.5; cursor: wait; }
.music-fab.is-playing {
  background: var(--accent);
  color: #0a0d12;
  border-color: var(--accent);
}
.music-fab__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.music-fab.is-playing .music-fab__icon { background: rgba(0,0,0,0.15); }
.music-fab__note { line-height: 1; }
.music-fab__label { font-weight: 600; white-space: nowrap; }

/* Equalizer bars while playing */
.music-fab__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 12px;
}
.music-fab__bars i {
  width: 2px;
  background: currentColor;
  border-radius: 1px;
  animation: musicBars 900ms ease-in-out infinite;
}
.music-fab__bars i:nth-child(1) { animation-delay: 0ms;   height: 40%; }
.music-fab__bars i:nth-child(2) { animation-delay: 150ms; height: 80%; }
.music-fab__bars i:nth-child(3) { animation-delay: 300ms; height: 55%; }
.music-fab__bars i:nth-child(4) { animation-delay: 200ms; height: 70%; }
@keyframes musicBars {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

@media (max-width: 640px) {
  .music-fab {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px 8px 10px;
    font-size: 10px;
  }
  .music-fab__icon { width: 20px; height: 20px; font-size: 11px; }
  /* Hide label on very small screens to keep the pill tiny */
  .music-fab__label { display: none; }
}
