/* =============================================================
   Lumanic AI · Design System
   "Quantitative Lab" aesthetic
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,30..100,0..1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  /* Color tokens */
  --ink: #050805;
  --ink-2: #0A0F0A;
  --paper: #FAFAF6;
  --paper-2: #E8E9E3;
  --bone: #1A1F1A;
  --line: #1F2620;
  --line-2: #2A3328;

  --green: #9FE870;
  --green-soft: #C8E8AA;
  --green-deep: #163300;
  --green-mid: #2A4D14;
  --green-glow: rgba(159, 232, 112, 0.5);

  --mute: #6E7B6C;
  --faint: #A8B0A4;
  --dim: #4A524A;

  /* Type */
  --display: "Fraunces", "Pretendard", "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Menlo", "Monaco", "Consolas", monospace;

  /* Spacing */
  --max: 1440px;
  --pad: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(5rem, 10vw, 9rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv01", "cv11";
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--green); color: var(--ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

/* Subtle global grain texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.6) 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

/* =============================================================
   Layout primitives
   ============================================================= */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; }

/* =============================================================
   Top navigation
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(5, 8, 5, 0.65);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.nav__brand { display: flex; align-items: center; gap: 0.65rem; }
.nav__brand img {
  height: 22px;
  width: auto;
  filter: brightness(1);
}
.nav__brand-mark {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}

.nav__menu {
  display: flex; align-items: center; gap: 2.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__link {
  position: relative;
  color: var(--faint);
  padding: 0.4rem 0;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--green);
  transition: width 0.4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--paper); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link.is-active::after { background: var(--green); }

.nav__lang {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: border-color 0.3s var(--ease);
}
.nav__lang:hover { border-color: var(--green); }
.nav__lang-opt {
  color: var(--dim);
  padding: 0 0.2rem;
  transition: color 0.3s var(--ease);
  cursor: pointer;
}
.nav__lang-opt.is-active { color: var(--green); }
.nav__lang-sep { color: var(--dim); }

/* Mobile nav */
.nav__toggle { display: none; }
@media (max-width: 768px) {
  .nav__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 2rem var(--pad); background: rgba(5, 8, 5, 0.96); backdrop-filter: blur(20px); gap: 1.5rem; align-items: flex-start; border-bottom: 1px solid var(--line); }
  .nav__menu.is-open { display: flex; }
  .nav__toggle { display: flex; flex-direction: column; gap: 4px; padding: 0.5rem; cursor: pointer; }
  .nav__toggle span { width: 22px; height: 1px; background: var(--paper); transition: transform 0.3s var(--ease); }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 7rem 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  top: 0; right: 0;
  width: 58%; height: 100%;
  z-index: 0;
}
@media (max-width: 900px) {
  .hero__bg { width: 100%; opacity: 0.4; }
}
.hero__bg canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 75% 50%, transparent 0%, rgba(5,8,5,0.6) 95%),
    linear-gradient(90deg, var(--ink) 0%, transparent 25%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
  max-width: 60%;
}
@media (max-width: 900px) {
  .hero__inner { max-width: 100%; }
}

.hero__eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.hero__eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
  animation: pulse 2.5s infinite var(--ease);
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }

.hero__title {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--green);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.hero__title .ko {
  display: none;
  font-family: var(--sans);
  font-weight: 250;
  letter-spacing: -0.04em;
  font-size: 0.78em;
}
.hero__title .ko em {
  font-style: normal;
  color: var(--green);
  font-weight: 400;
  font-family: var(--sans);
  letter-spacing: -0.04em;
}
:root[lang="ko"] .hero__title .en { display: none; }
:root[lang="ko"] .hero__title .ko { display: inline; }

.hero__sub {
  max-width: 560px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: var(--faint);
  font-weight: 400;
}

.hero__meta {
  display: flex; gap: 2.5rem; align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.hero__meta-item { display: flex; align-items: center; gap: 0.5rem; }
.hero__meta-num { color: var(--paper); font-weight: 500; font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 768px) {
  .hero__meta { gap: 1.5rem 2rem; }
  .hero__meta-item { flex-basis: 100%; }
}

/* HUD corner markers — like a CAD interface */
.hud {
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--green);
  border-style: solid;
  border-width: 0;
  z-index: 3;
  opacity: 0.6;
  pointer-events: none;
}
.hud--tl { top: 7rem; left: var(--pad); border-top-width: 1px; border-left-width: 1px; }
.hud--tr { top: 7rem; right: var(--pad); border-top-width: 1px; border-right-width: 1px; }
.hud--bl { bottom: 2rem; left: var(--pad); border-bottom-width: 1px; border-left-width: 1px; }
.hud--br { bottom: 2rem; right: var(--pad); border-bottom-width: 1px; border-right-width: 1px; }

.hud-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--mute);
  text-transform: uppercase;
  z-index: 3;
  pointer-events: none;
}
.hud-label--tr { top: 7rem; right: calc(var(--pad) + 40px); }
.hud-label--bl { bottom: 2rem; left: calc(var(--pad) + 40px); }

/* =============================================================
   Section header
   ============================================================= */
.section { padding: var(--section) 0; position: relative; }
.section--bordered { border-top: 1px solid var(--line); }

.section__head {
  display: grid;
  grid-template-columns: minmax(150px, 200px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 768px) { .section__head { grid-template-columns: 1fr; gap: 1.5rem; } }

.section__index {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.section__title {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section__title em {
  font-style: italic;
  color: var(--green);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.section__lead {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--faint);
  max-width: 60ch;
}

/* =============================================================
   Cards / grids
   ============================================================= */
.grid { display: grid; gap: 2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(180deg, rgba(159, 232, 112, 0.02) 0%, transparent 60%);
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(159,232,112,0.04) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card:hover { border-color: var(--green-mid); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }

.card__tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
}
.card__tag::before { content: ""; width: 18px; height: 1px; background: var(--green); }

.card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.card__sub {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-bottom: 1.5rem;
}
.card__body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--faint);
}

/* =============================================================
   Stat / large numbers
   ============================================================= */
.stat {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.stat__num {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
  font-variation-settings: "opsz" 144;
}
.stat__num em {
  font-style: italic;
  color: var(--green);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.stat__lbl {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.stat__rule {
  width: 32px; height: 2px;
  background: var(--green);
}

/* =============================================================
   Footer
   ============================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 4rem 0 2.5rem;
  margin-top: var(--section);
}
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
@media (max-width: 768px) { .footer__top { grid-template-columns: 1fr; gap: 2.5rem; } }
.footer__brand img { height: 28px; margin-bottom: 1.5rem; }
.footer__tagline {
  max-width: 32ch;
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer__col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a {
  font-size: 0.9rem;
  color: var(--faint);
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--green); }
.footer__bot {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--dim);
}

/* =============================================================
   Common utilities
   ============================================================= */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.mono { font-family: var(--mono); }
.faint { color: var(--faint); }
.mute  { color: var(--mute);  }
.dim   { color: var(--dim);   }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--green);
  border-radius: 2px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--green-soft); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { background: rgba(159,232,112,0.05); border-color: var(--green); color: var(--green); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* =============================================================
   Reveal-on-scroll
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   Page-specific: Tech
   ============================================================= */
.pillar {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.pillar__letter {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: 5rem;
  line-height: 1;
  color: var(--green);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.pillar__name {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.pillar__kpi {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 500;
}
.pillar__modules {
  font-size: 0.9rem;
  color: var(--mute);
  line-height: 1.7;
}

/* Comparison table */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.cmp-table th, .cmp-table td {
  padding: 1rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.cmp-table th {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom-color: var(--line-2);
}
.cmp-table td.lbl { color: var(--paper); font-weight: 500; }
.cmp-table td.dim-cell { color: var(--dim); font-style: italic; }
.cmp-table .cmp-table__us { color: var(--green); font-weight: 500; }
.cmp-table th.cmp-table__us { color: var(--green); }
.cmp-table tr:hover td { background: rgba(159,232,112,0.02); }

/* =============================================================
   Page-specific: Services
   ============================================================= */
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 900px) { .service { grid-template-columns: 1fr; gap: 2.5rem; } }

.service__name {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.service__tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 2rem;
}
.service__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--faint);
  margin-bottom: 2rem;
}
.service__details { display: grid; gap: 1.5rem; }
.service__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.service__row:last-child { border-bottom: none; }
.service__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 0.15rem;
}
.service__value { color: var(--paper); font-size: 0.95rem; line-height: 1.6; }
.service__status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--green);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--green-mid);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.service__status::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

/* =============================================================
   Page-specific: Team
   ============================================================= */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .team-grid { grid-template-columns: 1fr; } }

.member {
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(159, 232, 112, 0.02) 0%, transparent 70%);
  transition: border-color 0.4s var(--ease);
}
.member:hover { border-color: var(--green-mid); }
.member__role {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.member__name {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.member__title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--mute);
  margin-bottom: 1.25rem;
}
.member__bio {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.member__bio li {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--faint);
  padding-left: 1rem;
  position: relative;
}
.member__bio li::before {
  content: "—";
  position: absolute;
  left: 0; top: 0;
  color: var(--green);
}

/* =============================================================
   Page-specific: Contact
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

.contact-card {
  padding: 2.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(159, 232, 112, 0.03) 0%, transparent 70%);
}
.contact-card h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.contact-email {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 350;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  display: inline-block;
  position: relative;
  transition: color 0.3s var(--ease);
}
.contact-email::after {
  content: ""; position: absolute; left: 0; bottom: 0.05em;
  width: 0; height: 1px; background: var(--green);
  transition: width 0.5s var(--ease);
}
.contact-email:hover { color: var(--green); }
.contact-email:hover::after { width: 100%; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mute);
  margin-top: 0.5rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.copy-btn:hover { color: var(--green); border-color: var(--green); }

/* Page header for inner pages */
.page-head {
  padding: 10rem 0 4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 5rem;
  align-items: end;
}
@media (max-width: 768px) { .page-head__inner { grid-template-columns: 1fr; gap: 1.5rem; } }
.page-head__index {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.page-head__title {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
}
.page-head__title em {
  font-style: italic;
  color: var(--green);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.page-head__lead {
  margin-top: 2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--faint);
  max-width: 60ch;
}

/* Hide elements per language */
:root[lang="en"] .ko-only { display: none; }
:root[lang="ko"] .en-only { display: none; }

/* Korean: italic em looks awkward in Pretendard.
   Override to use color emphasis only without italic slant. */
:root[lang="ko"] .page-head__title em,
:root[lang="ko"] .section__title em,
:root[lang="ko"] .cta__text em,
:root[lang="ko"] .stat__num em,
:root[lang="ko"] .ip-strip__num em {
  font-style: normal;
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
}

/* Korean page-head titles slightly smaller to fit naturally */
:root[lang="ko"] .page-head__title {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-family: var(--sans);
  font-weight: 250;
  letter-spacing: -0.03em;
}
:root[lang="ko"] .page-head__title em {
  font-family: var(--sans);
  font-weight: 400;
}
:root[lang="ko"] .section__title {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: -0.02em;
}
:root[lang="ko"] .section__title em {
  font-family: var(--sans);
  font-weight: 500;
}
:root[lang="ko"] .cta__text {
  font-family: var(--sans);
  font-weight: 300;
}
:root[lang="ko"] .cta__text em {
  font-family: var(--sans);
  font-weight: 500;
}

/* CTA section */
.cta-section {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}
@media (max-width: 768px) { .cta { grid-template-columns: 1fr; } }
.cta__text {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.cta__text em { font-style: italic; color: var(--green); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1; }

/* IP / Patent strip */
.ip-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .ip-strip { grid-template-columns: repeat(2, 1fr); } }
.ip-strip__cell {
  padding: 2rem 1rem;
  border-right: 1px solid var(--line);
  text-align: left;
}
.ip-strip__cell:last-child { border-right: none; }
.ip-strip__num {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 350;
  line-height: 1;
  margin-bottom: 0.85rem;
}
.ip-strip__num em { color: var(--green); font-style: italic; font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 50; }
.ip-strip__lbl {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.35rem;
}
.ip-strip__sub { color: var(--faint); font-size: 0.85rem; }

/* Architecture stack visual for services page */
.stack-viz {
  margin-top: 4rem;
  padding: 3rem 2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(159,232,112,0.02) 0%, transparent 100%),
    radial-gradient(circle at 50% 50%, rgba(159,232,112,0.04) 0%, transparent 60%);
  position: relative;
}
.stack-viz::before {
  content: "ARCHITECTURE / 시스템";
  position: absolute;
  top: 1rem; left: 2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--mute);
}
.stack { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-top: 2rem; }
.stack__row { display: flex; gap: 1rem; width: 100%; max-width: 720px; }
.stack__box {
  flex: 1;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line-2);
  text-align: center;
  position: relative;
  background: var(--ink-2);
  transition: all 0.3s var(--ease);
}
.stack__box:hover { border-color: var(--green-mid); background: rgba(159,232,112,0.03); }
.stack__box-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}
.stack__box-sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.stack__row--core .stack__box {
  border-color: var(--green-mid);
  background: rgba(159,232,112,0.04);
}
.stack__row--core .stack__box-title { color: var(--green); }
.stack__arrow {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, var(--green) 0%, transparent 100%);
  margin: 0 auto;
}
