/* ==========================================================================
   SD Interactive — Design System
   Tokens & components from design handoff (high-fidelity)
   ========================================================================== */

:root {
  --ink: #0A0F1E;
  --ink-2: #4A5567;
  --ink-3: #8A93A6;
  --line: #E6E9EF;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --teal: #0EA5A5;
  --indigo: #4F46E5;
  --amber: #F59E0B;
  --rose: #E11D74;
  --success: #10B981;
  --danger: #EF4444;
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, 'Noto Sans KR', sans-serif;
  --font-en: Inter, sans-serif;
  --font-serif: 'Newsreader', serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* WEBSITE_STANDARDS §2: 모바일 가로 스크롤 금지 */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe, table { max-width: 100%; }
img { height: auto; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  /* WEBSITE_STANDARDS §3: 한글 단어 단위 줄바꿈 */
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

a { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes sdTickL { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes sdTickR { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes sdDraw { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
@keyframes sdMergeL { from { transform: translateX(0); } to { transform: translateX(14px); } }
@keyframes sdMergeR { from { transform: translateX(0); } to { transform: translateX(-14px); } }
@keyframes sdSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sdBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes sdType { from { width: 0; } to { width: 100%; } }
@keyframes sdArc { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes sdShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(230, 233, 239, 0);
  transition: background 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.brand__sd { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand__word { font-family: var(--font-en); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; color: var(--ink-2); }

.site-nav { display: flex; align-items: center; gap: 32px; font-size: 14.5px; font-weight: 500; }
.site-nav a { color: var(--ink-2); text-decoration: none; transition: color 200ms ease; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--ink); font-weight: 600; }

.header-side { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; gap: 8px; font-family: var(--font-en); font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.lang-switch .on { color: var(--ink); }

.btn-header {
  background: var(--ink); color: #FFFFFF; text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: 9999px;
  transition: background 250ms ease;
}
.btn-header:hover { background: var(--teal); }
.btn-header.is-disabled { background: var(--bg-alt); color: var(--ink-3); pointer-events: none; }

/* Mobile menu */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 250ms ease, opacity 250ms ease; }
.mobile-menu {
  display: none; position: fixed; inset: 68px 0 0 0; z-index: 99;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px);
  padding: 40px 32px; flex-direction: column; gap: 8px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 600;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: rgba(255,255,255,0.97); border-bottom-color: var(--line); }

/* --------------------------------------------------------------------------
   Typography blocks
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal);
}
.eyebrow--muted { color: var(--ink-3); }
.eyebrow--indigo { color: var(--indigo); }
.eyebrow--amber { color: var(--amber); }
.eyebrow--rose { color: var(--rose); }

.section-head { margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin: 0 0 12px; font-size: 40px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; }
.section-head p { margin: 0; font-size: 18px; color: var(--ink-2); font-weight: 500; }

.serif-it { font-family: var(--font-serif); font-style: italic; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 50%, var(--ink) 50%, var(--ink) 100%);
  background-size: 200% 100%; background-position: 100% 0;
  color: #FFFFFF; text-decoration: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 15.5px; font-weight: 600;
  padding: 14px 26px; border-radius: 9999px;
  transition: background-position 250ms var(--ease);
}
.btn-primary:hover { background-position: 0% 0; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  text-decoration: none; font-size: 15.5px; font-weight: 600;
  padding: 13px 26px; border-radius: 9999px; cursor: pointer; font-family: inherit;
  transition: background 200ms ease;
}
.btn-outline:hover { background: var(--bg-alt); }

.arrow-en { font-family: var(--font-en); }

/* --------------------------------------------------------------------------
   Hero (Home)
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 180px 32px 140px; min-height: 560px; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute; top: -160px; right: -80px; width: 640px; height: 500px;
  background: linear-gradient(120deg, rgba(14,165,165,0.15), rgba(79,70,229,0.17) 45%, rgba(245,158,11,0.12));
  filter: blur(56px);
}
.hero__ribbon {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
@media (max-width: 860px) {
  .hero__ribbon { opacity: 0.8; }
}
.hero__inner { max-width: 1200px; margin: 0 auto; position: relative; padding: 0; }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 {
  margin: 0 0 28px; font-size: 68px; line-height: 1.08; font-weight: 650;
  letter-spacing: -0.03em; max-width: 900px;
}
.hero h1 .grad {
  display: block;
  background: linear-gradient(100deg, var(--teal), var(--indigo) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 4px;
}
.hero h1 .plain { display: block; }
.hero__sub {
  margin: 0 0 40px; font-size: 20px; line-height: 1.6; font-weight: 500;
  color: var(--ink-2); max-width: 560px; text-wrap: pretty;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; padding: 160px 32px 88px; }
.page-hero__glow1, .page-hero__glow2 { position: absolute; filter: blur(40px); pointer-events: none; }
.page-hero__glow1 { top: -160px; right: -100px; width: 600px; height: 460px; background: radial-gradient(closest-side, rgba(79,70,229,0.16), transparent 70%); }
.page-hero__glow2 { top: -40px; right: 260px; width: 420px; height: 340px; background: radial-gradient(closest-side, rgba(14,165,165,0.14), transparent 70%); }
.page-hero__inner { max-width: 1200px; margin: 0 auto; position: relative; }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { margin: 0 0 20px; font-size: 54px; line-height: 1.1; font-weight: 650; letter-spacing: -0.03em; max-width: 820px; }
.page-hero__sub { margin: 0; font-size: 19px; line-height: 1.6; font-weight: 500; color: var(--ink-2); max-width: 560px; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Trust ticker
   -------------------------------------------------------------------------- */
.ticker-section { padding: 32px 0 64px; border-top: 1px solid var(--line); }
.ticker-section__label { max-width: 1200px; margin: 0 auto; padding: 0 32px 28px; }
.ticker { overflow: hidden; display: grid; gap: 14px; }
.ticker__row { display: flex; gap: 14px; width: max-content; }
.ticker__row--l { animation: sdTickL 40s linear infinite; }
.ticker__row--r { animation: sdTickR 40s linear infinite; }
.ticker__row:hover { animation-play-state: paused; }
.ticker__pill {
  flex: none; border: 1px solid var(--line); color: var(--ink-2);
  font-family: var(--font-en); font-size: 13.5px; font-weight: 500;
  padding: 9px 18px; border-radius: 9999px;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.ticker__row--l .ticker__pill:hover { background: #F0FAFA; color: var(--teal); border-color: var(--teal); }
.ticker__row--r .ticker__pill:hover { background: #F5F4FE; color: var(--indigo); border-color: var(--indigo); }

/* --------------------------------------------------------------------------
   Statement
   -------------------------------------------------------------------------- */
.statement { padding: 128px 32px; background: var(--bg-alt); position: relative; overflow: hidden; }
.statement__dots {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 720px; height: 720px; pointer-events: none;
}
.statement__inner { max-width: 900px; margin: 0 auto; position: relative; }
.statement__copy {
  margin: 0; font-size: 38px; line-height: 1.45; font-weight: 600;
  letter-spacing: -0.015em; text-wrap: pretty;
}
.statement__copy .w-capital { color: var(--teal); transition: opacity 200ms; }
.statement__copy .w-tech { color: var(--indigo); transition: opacity 200ms; }
.statement__copy .w-trust { color: var(--amber); transition: opacity 200ms; }
.statement__copy span:hover { opacity: 0.75; }
.statement__sign { margin-top: 40px; text-align: right; font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Sections (generic)
   -------------------------------------------------------------------------- */
.section { padding: 128px 32px; }
.section--alt { background: var(--bg-alt); }
.section--bordered { padding: 96px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }

/* --------------------------------------------------------------------------
   Bento (Home services)
   -------------------------------------------------------------------------- */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-areas: 'inv inv mna' 'grow tech mna' 'grow tech pm' 'cta cta pm';
  grid-auto-rows: minmax(120px, auto); gap: 20px;
}
.bento__card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  text-decoration: none; color: var(--ink);
  transition: box-shadow 250ms ease, border-color 250ms ease;
}
.bento__card:hover { box-shadow: 0 20px 40px -20px rgba(10, 15, 30, 0.12); }
.bento__card--inv { grid-area: inv; min-height: 280px; }
.bento__card--inv:hover { border-color: rgba(14, 165, 165, 0.4); }
.bento__card--mna { grid-area: mna; }
.bento__card--mna:hover { border-color: rgba(79, 70, 229, 0.4); }
.bento__card--grow { grid-area: grow; gap: 20px; }
.bento__card--grow:hover { border-color: rgba(245, 158, 11, 0.45); }
.bento__card--tech { grid-area: tech; gap: 20px; }
.bento__card--tech:hover { border-color: rgba(79, 70, 229, 0.4); }
.bento__card--pm { grid-area: pm; }
.bento__card--pm:hover { border-color: rgba(14, 165, 165, 0.4); }
.bento__card h3 { margin: 0 0 10px; font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.bento__card--grow h3, .bento__card--tech h3 { font-size: 20px; }
.bento__card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 400px; }
.bento__card--grow p, .bento__card--tech p { font-size: 14.5px; }
.bento__more { font-size: 14.5px; font-weight: 600; }
.bento__more--sm { font-size: 14px; }
.c-teal { color: var(--teal); } .c-indigo { color: var(--indigo); } .c-amber { color: var(--amber); } .c-rose { color: var(--rose); }
.bento__visual { display: block; margin-bottom: 20px; }
.bento__visual--sm { margin-bottom: 18px; }
.bento__code {
  width: 120px; margin-bottom: 18px; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px;
  font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--indigo); line-height: 1.7;
}
.bento__code div { white-space: nowrap; overflow: hidden; }
.bento__code .out { color: var(--teal); }
.bento__cursor { display: inline-block; width: 6px; height: 11px; background: var(--indigo); margin-left: 2px; vertical-align: -1px; }
.bento__cta {
  grid-area: cta; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--ink); border-radius: 20px; padding: 28px 32px;
  text-decoration: none; color: #FFFFFF; transition: background 250ms ease;
}
.bento__cta:hover { background: #101a35; }
.bento__cta h3 { margin: 0 0 6px; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.bento__cta p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.65); }
.bento__cta .go { flex: none; font-size: 15px; font-weight: 600; color: #5EEAD4; }

/* --------------------------------------------------------------------------
   Metrics + globe
   -------------------------------------------------------------------------- */
.metrics__halo {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 400px;
  background: radial-gradient(closest-side, rgba(79, 70, 229, 0.05), transparent 70%);
  pointer-events: none;
}
.metrics__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.metrics__badges { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; align-content: center; }
.metric { border-top: 2px solid var(--ink); padding: 24px 4px 0; }
.metric__title { font-family: var(--font-en); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.metric__desc { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.globe-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.globe-wrap canvas { width: 100%; max-width: 460px; aspect-ratio: 1; display: block; }
.globe-wrap__caption {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-en); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process__step {
  cursor: pointer; border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  background: #FFFFFF; opacity: 0.45;
  transition: opacity 400ms ease, border-color 400ms ease;
}
.process__step.is-active { opacity: 1; border-color: rgba(14, 165, 165, 0.5); }
.process__track { height: 3px; background: var(--line); border-radius: 2px; margin-bottom: 24px; overflow: hidden; }
.process__bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--indigo)); }
.process__num { font-family: var(--font-en); font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 8px; }
.process__title { font-family: var(--font-en); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.process__sub { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 16px; }
.process__panel { margin: 0; padding: 0 0 0 2px; list-style: none; display: none; gap: 6px; }
.process__step.is-active .process__panel { display: grid; }
.process__panel li { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); display: flex; gap: 8px; }
.process__panel li::before { content: '·'; color: var(--teal); }

/* --------------------------------------------------------------------------
   Track record
   -------------------------------------------------------------------------- */
.track-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.track-head__nda { font-size: 13.5px; color: var(--ink-3); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.track-card {
  position: relative; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
  transition: box-shadow 250ms ease, transform 250ms ease;
}
.track-card:hover { box-shadow: 0 20px 40px -20px rgba(10, 15, 30, 0.12); transform: scale(1.02); }
.track-card__top { display: flex; justify-content: space-between; align-items: center; }
.track-card__year { font-family: var(--font-en); font-size: 13px; font-weight: 700; }
.card-arrow { font-family: var(--font-en); font-size: 16px; color: var(--ink-3); transition: transform 250ms ease; display: inline-block; }
.track-card:hover .card-arrow { transform: rotate(45deg); }
.track-card__title { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 10px; }
.track-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.track-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tag { background: var(--bg-alt); color: var(--ink-2); font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 9999px; }

/* --------------------------------------------------------------------------
   Insights
   -------------------------------------------------------------------------- */
.insight-card {
  border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px; min-height: 200px; cursor: pointer;
  transition: box-shadow 250ms ease, border-color 250ms ease;
}
.insight-card:hover { box-shadow: 0 20px 40px -20px rgba(10, 15, 30, 0.12); border-color: rgba(225, 29, 116, 0.35); }
.insight-card__tag {
  align-self: flex-start; background: rgba(225, 29, 116, 0.08); color: var(--rose);
  font-family: var(--font-en); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 9999px;
}
.insight-card__title { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.4; text-wrap: pretty; }
.insight-card__more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Track record scroller (home) — slow right-to-left drift, user-scrollable
   -------------------------------------------------------------------------- */
.track-scroller {
  overflow-x: auto; cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none;
  margin: 0 -32px; padding: 0 32px; /* bleed to section edges */
}
.track-scroller::-webkit-scrollbar { display: none; }
.track-scroller.is-dragging { cursor: grabbing; }
.track-scroller.is-dragging .track-card { pointer-events: none; }
.track-scroller__track { display: flex; gap: 20px; width: max-content; padding: 6px 2px 26px; }
.track-scroller .track-card { width: 360px; flex: none; }
@media (max-width: 640px) {
  .track-scroller { margin: 0 -20px; padding: 0 20px; }
  .track-scroller .track-card { width: 290px; }
}

/* --------------------------------------------------------------------------
   Insights list + article
   -------------------------------------------------------------------------- */
a.insight-card { text-decoration: none; color: inherit; }
.insight-card__meta { font-family: var(--font-en); font-size: 12.5px; color: var(--ink-3); }

.article-hero { padding: 150px 32px 40px; }
.article-hero__inner { max-width: 720px; margin: 0 auto; }
.article-hero .insight-card__tag { margin-bottom: 20px; display: inline-block; }
.article-hero h1 { margin: 0 0 18px; font-size: 38px; line-height: 1.25; font-weight: 650; letter-spacing: -0.025em; }
.article-hero__meta { font-size: 14px; color: var(--ink-3); }
.article-hero__meta .sep { margin: 0 8px; }

.prose { max-width: 720px; margin: 0 auto; padding: 24px 32px 96px; }
.prose p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.8; color: var(--ink-2); }
.prose p.lede { font-size: 18px; color: var(--ink); font-weight: 500; }
.prose h2 { margin: 44px 0 16px; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul { margin: 0 0 22px; padding-left: 4px; list-style: none; }
.prose li { font-size: 16px; line-height: 1.75; color: var(--ink-2); margin-bottom: 10px; padding-left: 16px; position: relative; }
.prose li::before { content: '·'; color: var(--teal); position: absolute; left: 0; font-weight: 700; }
.prose blockquote {
  margin: 0 0 22px; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal);
  font-size: 17px; color: var(--ink); font-weight: 500;
}

.related-notes { border-top: 1px solid var(--line); padding: 64px 32px 96px; }
.related-notes__inner { max-width: 900px; margin: 0 auto; }
.related-notes h3 { margin: 0 0 24px; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.related-notes .cards-3 { grid-template-columns: 1fr 1fr; }

@media (max-width: 640px) {
  .article-hero { padding: 120px 20px 24px; }
  .article-hero h1 { font-size: 28px; }
  .prose { padding: 16px 20px 64px; }
  .related-notes .cards-3 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal-body { max-width: 720px; margin: 0 auto; padding: 24px 32px 96px; }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.legal-body p { margin: 0 0 16px; }
.legal-body h2 { margin: 36px 0 12px; font-size: 18px; font-weight: 650; color: var(--ink); }
.legal-body ul { margin: 0 0 16px; padding-left: 18px; }
.legal-body li { margin-bottom: 6px; }

/* language switcher links */
.lang-switch a { color: var(--ink-3); text-decoration: none; transition: color 200ms ease; }
.lang-switch a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final-cta { position: relative; overflow: hidden; padding: 140px 32px; text-align: center; }
.final-cta--sub { padding: 120px 32px; }
.grad-rule { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--teal), var(--indigo) 45%, var(--amber)); }
.final-cta__field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Field CTA — sky lighting modes (cycled by the sun/moon toggle) */
.field-cta { min-height: 520px; transition: background 700ms ease; }
.field-cta h2, .field-cta .final-cta__sub { transition: color 400ms ease; }
.field-cta.mode-day { background: linear-gradient(180deg, #FFFFFF 0%, #E3EEFD 40%, #C7DBF9 100%); }
.field-cta.mode-dusk { background: linear-gradient(180deg, #FFFFFF 0%, #FFE9D6 45%, #FFCFA8 100%); }
.field-cta.mode-night { background: linear-gradient(180deg, #0A0F1E 0%, #0D1530 55%, #17224E 100%); }
.field-cta.mode-night h2 { color: #FFFFFF; }
.field-cta.mode-night .final-cta__sub { color: rgba(255, 255, 255, 0.72); }
.field-cta.mode-night .btn-outline { border-color: rgba(255, 255, 255, 0.85); color: #FFFFFF; }
.field-cta.mode-night .btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.sky-toggle {
  position: absolute; top: 24px; right: 28px; z-index: 2;
  width: 40px; height: 40px; border-radius: 10px; padding: 0; cursor: pointer;
  background: #FFFFFF; border: 1px solid var(--line); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -6px rgba(10, 15, 30, 0.18);
  transition: color 200ms ease, transform 200ms ease, background 300ms ease, border-color 300ms ease;
}
.sky-toggle:hover { color: var(--teal); transform: scale(1.06); }
.sky-toggle svg { display: block; }
.field-cta.mode-night .sky-toggle {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: #FFFFFF;
}
.final-cta__inner { max-width: 760px; margin: 0 auto; position: relative; }
.final-cta h2 { margin: 0 0 20px; font-size: 52px; font-weight: 650; letter-spacing: -0.03em; }
.final-cta--sub h2 { font-size: 44px; }
.final-cta__sub { margin: 0 0 40px; font-size: 19px; color: var(--ink-2); font-weight: 500; }
.final-cta__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 32px 40px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr 1fr; gap: 32px; margin-bottom: 56px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer__tagline { font-family: var(--font-en); font-size: 13.5px; color: var(--ink-3); }
.site-footer__col-title {
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
}
.site-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__links a { color: var(--ink-2); text-decoration: none; transition: color 200ms ease; }
.site-footer__links a:hover { color: var(--ink); }
.site-footer__links span { color: var(--ink-3); }
.site-footer__bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
}
.site-footer__bottom .lang-switch { font-weight: 600; }

.site-footer--slim { padding: 48px 32px 40px; }
.site-footer--slim .site-footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center;
}
.site-footer--slim .brand { margin: 0; }
.site-footer--slim .brand__sd { font-size: 17px; }
.site-footer--slim .brand__word { font-size: 12.5px; }
.site-footer__legal { font-size: 12.5px; color: var(--ink-3); }
.site-footer__nav { display: flex; gap: 20px; font-size: 13.5px; }
.site-footer__nav a { color: var(--ink-2); text-decoration: none; }
.site-footer__nav a:hover { color: var(--ink); }
/* Version is white-on-white: invisible normally, readable when text is selected */
.version-tag { color: #FFFFFF; }
.version-tag::selection { color: var(--ink); background: rgba(14, 165, 165, 0.25); }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */
.services-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card {
  display: flex; flex-direction: column; gap: 16px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  text-decoration: none; color: var(--ink);
  transition: box-shadow 250ms ease, border-color 250ms ease;
}
.service-card:hover { box-shadow: 0 20px 40px -20px rgba(10, 15, 30, 0.12); border-color: rgba(14, 165, 165, 0.4); }
.service-card:hover .card-arrow { transform: rotate(45deg); }
.service-card__top { display: flex; justify-content: space-between; align-items: center; }
.service-card__title { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.service-card__sub { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--ink-3); }
.service-card p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.service-card__more { margin-top: auto; font-size: 14.5px; font-weight: 600; }
.service-card--cta {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  background: var(--ink); border-radius: 20px; padding: 32px;
  text-decoration: none; color: #FFFFFF; transition: background 250ms ease;
}
.service-card--cta:hover { background: #101a35; }
.service-card--cta .title { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.service-card--cta p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.65); }
.service-card--cta .go { font-size: 15px; font-weight: 600; color: #5EEAD4; margin-top: 8px; }

.situations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.situation {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 26px;
  display: flex; gap: 14px; align-items: flex-start;
}
.situation__num {
  flex: none; width: 28px; height: 28px; border-radius: 9999px;
  background: rgba(14, 165, 165, 0.1); color: var(--teal);
  font-family: var(--font-en); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.situation p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); font-weight: 500; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Service detail page
   -------------------------------------------------------------------------- */
.svc-tabs { padding: 100px 32px 0; }
.svc-tabs__inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 8px; flex-wrap: wrap; }
.svc-tab {
  text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 8px 16px;
  border-radius: 9999px; border: 1px solid var(--line); color: var(--ink-2); background: transparent;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
.svc-tab:hover { border-color: var(--ink); color: var(--ink); }
.svc-tab.is-active { border-color: var(--ink); color: #FFFFFF; background: var(--ink); }

.svc-hero { position: relative; overflow: hidden; padding: 64px 32px 88px; }
.svc-hero__glow {
  position: absolute; top: -180px; right: -100px; width: 600px; height: 460px;
  background: radial-gradient(closest-side, var(--svc-glow, rgba(14,165,165,0.16)), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.svc-hero__inner { max-width: 1200px; margin: 0 auto; position: relative; }
.svc-hero .eyebrow { margin-bottom: 24px; }
.svc-hero h1 { margin: 0 0 20px; font-size: 52px; line-height: 1.12; font-weight: 650; letter-spacing: -0.03em; max-width: 820px; }
.svc-hero__en { font-family: var(--font-serif); font-style: italic; font-size: 21px; color: var(--ink-3); margin-bottom: 36px; }
.svc-hero .btn-primary { font-size: 15px; padding: 13px 24px; }

.svc-section { padding: 96px 32px; }
.svc-section--alt { background: var(--bg-alt); }
.svc-split { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.svc-split h2, .svc-section .container > h2 { margin: 0; font-size: 34px; font-weight: 650; letter-spacing: -0.025em; }
.svc-split .eyebrow { margin-bottom: 14px; }

.what-list { display: grid; gap: 14px; }
.what-item {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px;
  display: flex; gap: 14px; align-items: flex-start;
}
.what-item__check {
  flex: none; margin-top: 2px; width: 20px; height: 20px; border-radius: 9999px;
  background: var(--svc-tint, rgba(14,165,165,0.12)); color: var(--svc-color, var(--teal));
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.what-item p { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 500; }

.mini-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini-process__step { border-top: 2px solid var(--ink); padding-top: 20px; }
.mini-process__label { font-family: var(--font-en); font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 8px; }
.mini-process__step p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }

.signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.signal { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.signal p { margin: 0; font-size: 15.5px; line-height: 1.65; font-weight: 500; text-wrap: pretty; }

.related-case {
  max-width: 1200px; margin: 0 auto; border: 1px solid var(--line); border-radius: 20px; padding: 40px;
  display: flex; justify-content: space-between; gap: 32px; align-items: center; flex-wrap: wrap;
}
.related-case__body { max-width: 640px; }
.related-case .eyebrow { margin-bottom: 14px; }
.related-case__title { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 10px; }
.related-case p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.related-case__link { flex: none; font-size: 15px; font-weight: 600; color: var(--svc-color, var(--teal)); text-decoration: none; }

.svc-header-margin { margin-bottom: 48px; }
.svc-header-margin .eyebrow { margin-bottom: 14px; }
.svc-header-margin h2 { margin: 0 0 12px; }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.bridge-section { padding: 96px 0 0; background: var(--bg-alt); overflow: hidden; }
.bridge-section .section-head { max-width: 1200px; margin: 0 auto 8px; padding: 0 32px; }
.bridge-wrap { position: relative; height: 420px; }
.bridge-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bridge-label {
  position: absolute; transform: translateX(-50%);
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none;
}
.bridge-label--capital { left: 14%; top: 62%; color: var(--teal); }
.bridge-label--trust { left: 50%; top: 62%; color: var(--amber); }
.bridge-label--tech { left: 86%; top: 62%; color: var(--indigo); }
@media (max-width: 640px) {
  .bridge-section { padding-top: 64px; }
  .bridge-wrap { height: 300px; }
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { border-top: 2px solid var(--ink); padding: 24px 4px 0; }
.pillar--teal { border-top-color: var(--teal); }
.pillar--indigo { border-top-color: var(--indigo); }
.pillar--amber { border-top-color: var(--amber); }
.pillar__en { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.pillar--teal .pillar__en { color: var(--teal); }
.pillar--indigo .pillar__en { color: var(--indigo); }
.pillar--amber .pillar__en { color: var(--amber); }
.pillar__title { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 10px; }
.pillar p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.style-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.style-card__num { font-family: var(--font-en); font-size: 12px; font-weight: 700; color: var(--teal); margin-bottom: 12px; }
.style-card__title { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 8px; }
.style-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }

.net-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.pill-static {
  border: 1px solid var(--line); color: var(--ink-2);
  font-family: var(--font-en); font-size: 13.5px; font-weight: 500;
  padding: 9px 18px; border-radius: 9999px;
}
.pill-static--core { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 600; }

.about-office {
  max-width: 1200px; margin: 0 auto; border: 1px solid var(--line); border-radius: 20px; padding: 40px;
  display: flex; justify-content: space-between; gap: 32px; align-items: center; flex-wrap: wrap;
}
.about-office__body { max-width: 640px; }
.about-office .eyebrow { margin-bottom: 14px; }
.about-office__title { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 10px; }
.about-office p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Track record page
   -------------------------------------------------------------------------- */
.nda-band {
  max-width: 1200px; margin: 0 auto; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 32px;
  display: flex; gap: 16px; align-items: flex-start;
}
.nda-band__icon {
  flex: none; width: 28px; height: 28px; border-radius: 9999px;
  background: rgba(79, 70, 229, 0.1); color: var(--indigo);
  font-family: var(--font-en); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nda-band p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.nda-band strong { color: var(--ink); }

.section-head__link { font-size: 14.5px; font-weight: 600; color: var(--teal); text-decoration: none; white-space: nowrap; }
.section-head__link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-layout {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start;
}
.contact-form { display: grid; gap: 36px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 28px; }

.field { position: relative; padding-top: 18px; }
.field label {
  position: absolute; left: 0; top: 26px; font-size: 16px; color: var(--ink-3);
  pointer-events: none;
  transition: top 180ms ease, font-size 180ms ease, color 180ms ease;
}
.field.is-float label { top: 0; font-size: 12.5px; }
.field.is-focus label { color: var(--teal); }
.field input, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 8px 0; font-size: 16px; font-family: inherit; color: var(--ink);
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; }
.field.is-error input, .field.is-error textarea { border-bottom-color: var(--danger); }
.field__underline {
  height: 2px; margin-top: -2px;
  background: linear-gradient(90deg, var(--teal), var(--indigo));
  transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--ease);
}
.field.is-focus .field__underline { transform: scaleX(1); }
.field.shake { animation: sdShake 300ms ease 2; }

.select-field { display: grid; gap: 10px; }
.select-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.select-field select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 8px 0; font-size: 16px; font-family: inherit; color: var(--ink); cursor: pointer;
}
.select-field select:focus { outline: none; }

.check-group { display: grid; gap: 14px; }
.check-group label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check-group input { width: 16px; height: 16px; accent-color: var(--teal); }
.check-group a { color: var(--ink-2); }

.form-error { display: none; margin-left: 16px; font-size: 14px; color: var(--danger); }
.form-error.is-visible { display: inline; }

.form-success {
  border: 1px solid var(--line); border-radius: 20px; padding: 56px 48px;
  text-align: center; background: var(--bg-alt);
}
.form-success__icon {
  width: 56px; height: 56px; border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12); color: var(--success); font-size: 24px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.form-success h2 { margin: 0 0 12px; font-size: 28px; font-weight: 650; letter-spacing: -0.02em; }
.form-success p { margin: 0 0 28px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }

.contact-aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.aside-card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.aside-card--alt { background: var(--bg-alt); }
.aside-card .site-footer__col-title { margin-bottom: 16px; }
.aside-card__mail { display: block; font-size: 17px; font-weight: 600; color: var(--teal); text-decoration: none; margin-bottom: 12px; }
.aside-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.aside-card strong { color: var(--ink); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */
[data-reveal] { will-change: opacity, transform; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.nf { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 160px 32px 96px; }
.nf h1 { margin: 0 0 16px; font-size: 64px; font-weight: 650; letter-spacing: -0.03em; }
.nf p { margin: 0 0 32px; font-size: 18px; color: var(--ink-2); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 54px; }
  .page-hero h1, .svc-hero h1 { font-size: 44px; }
  .final-cta h2 { font-size: 44px; }
  .statement__copy { font-size: 30px; }
  .metrics__grid { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: 1fr 1fr; }
  .mini-process { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cards-3, .situations, .signals { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-aside { position: static; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .lang-switch { display: none; }
  .nav-toggle { display: flex; }
  .bento { grid-template-columns: 1fr; grid-template-areas: 'inv' 'mna' 'grow' 'tech' 'pm' 'cta'; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-split { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .container, .site-header__inner { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 140px 20px 96px; min-height: 0; }
  .hero h1 { font-size: 40px; }
  .hero__sub { font-size: 17px; }
  .page-hero { padding: 130px 20px 64px; }
  .page-hero h1, .svc-hero h1 { font-size: 34px; }
  .svc-hero { padding: 48px 20px 64px; }
  .svc-tabs { padding: 92px 20px 0; }
  .section, .statement { padding: 80px 20px; }
  .section--bordered, .svc-section { padding: 64px 20px; }
  .final-cta, .final-cta--sub { padding: 96px 20px; }
  .final-cta h2, .final-cta--sub h2 { font-size: 32px; }
  .section-head h2 { font-size: 30px; }
  .statement__copy { font-size: 24px; }
  .metrics__badges { grid-template-columns: 1fr; gap: 28px; }
  .process { grid-template-columns: 1fr; }
  .mini-process { grid-template-columns: 1fr; }
  .cards-3, .situations, .signals, .cards-4 { grid-template-columns: 1fr; }
  .about-office { padding: 28px; }
  .site-footer { padding: 48px 20px 32px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .related-case { padding: 28px; }
  .svc-split h2, .svc-section .container > h2 { font-size: 27px; }
}
