/* ============================================================
   Jeongmyeong Law — Corporate (reference-aligned) design system
   v2 — reference: daeryunlaw-comp.com tone
   ============================================================ */

:root {
  --ink: #111418;
  --ink-soft: #3a3d42;
  --mute: #7a808a;
  --paper: #ffffff;
  --paper-soft: #f6f7f9;
  --paper-deep: #ffffff;
  --navy: #0b1d3a;
  --navy-deep: #061128;
  --navy-ink: #1d3f76;
  --accent: #c8202a;
  --rule: #e3e6ea;
  --rule-soft: #eef0f3;

  /* Sans first (Pretendard). Serif reserved for English headlines only. */
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --serif: 'Noto Serif KR', 'Times New Roman', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --step-0: 12px;
  --step-1: 14px;
  --step-2: 16px;
  --step-3: 18px;
  --step-4: 22px;
  --step-5: 28px;
  --step-6: 34px;
  --step-7: 42px;
  --step-8: 52px;
  --step-9: 64px;

  --container: 1280px;
  --gutter: 24px;
  --rhythm: 80px;
  --radius: 4px;
  --radius-sharp: 2px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-card: 0 1px 0 var(--rule), 0 6px 22px -14px rgba(11,29,58,.18);
  --shadow-lift: 0 12px 36px -16px rgba(11,29,58,.32);
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --rhythm: 48px; --step-9: 40px; --step-8: 32px; --step-7: 28px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-2);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01','tnum';
}

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

/* Headings — sans by default (corporate). Serif only via .serif-en helper. */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: var(--step-8); letter-spacing: -0.03em; }
h2 { font-size: var(--step-6); }
h3 { font-size: var(--step-4); font-weight: 600; }
h4 { font-size: var(--step-3); font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.serif-en {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-ink);
  margin-bottom: 14px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--rhythm) 0; }
.section--soft { background: var(--paper-soft); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 18px var(--gutter);
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
}
.nav__brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--navy); color: #fff;
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  border-radius: var(--radius-sharp);
  letter-spacing: -0.02em;
}
.nav__brand-name {
  color: var(--ink); font-size: var(--step-3); font-weight: 700; letter-spacing: -0.02em;
}
.nav__brand-sub {
  display: block;
  font-family: var(--sans); font-size: 10px; color: var(--mute);
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; margin-top: 1px;
}

.nav__menu {
  display: flex; gap: 40px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav__menu a {
  font-size: var(--step-1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 0; position: relative; color: var(--ink);
}
.nav__menu a::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: 4px;
  height: 2px; background: var(--accent);
  transition: left .25s var(--ease), right .25s var(--ease);
}
.nav__menu a:hover::after, .nav__menu a[aria-current="page"]::after { left: 0; right: 0; }

.nav__utility { display: flex; align-items: center; gap: 12px; }
.nav__phone {
  font-family: var(--mono); font-size: var(--step-1); color: var(--navy);
  padding: 9px 14px; border: 1px solid var(--rule); border-radius: var(--radius-sharp);
  font-weight: 500; transition: all .2s var(--ease);
}
.nav__phone:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.nav__cta {
  background: var(--navy); color: #fff;
  padding: 11px 20px; border-radius: var(--radius-sharp); font-size: var(--step-1);
  font-weight: 600; transition: background .2s var(--ease);
}
.nav__cta:hover { background: var(--navy-deep); }

.nav__burger {
  display: none; width: 40px; height: 40px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s var(--ease); }

@media (max-width: 960px) {
  .nav__menu, .nav__utility { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__menu {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 16px var(--gutter);
  }
  .nav.is-open .nav__menu a { padding: 16px 0; border-bottom: 1px solid var(--rule-soft); width: 100%; }
  .nav.is-open .nav__menu a::after { display: none; }
  .nav.is-open .nav__menu a:last-child { border-bottom: 0; }
  .nav.is-open .nav__burger span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
  border-bottom: 4px solid var(--accent);
}
@media (max-width: 768px) { .hero { padding: 72px 0 64px; } }

.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(11,29,58,.92) 0%, rgba(11,29,58,.55) 65%, rgba(11,29,58,.18) 100%),
    url('/assets/img/hero-bg.jpg');
  background-size: cover; background-position: 75% center;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  font-size: var(--step-0); letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,.7); font-weight: 600;
  margin-bottom: 28px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.2);
  display: inline-block;
}
.hero__title {
  font-family: var(--serif); font-weight: 400; color: #fff;
  font-size: clamp(40px, 6.4vw, 78px); letter-spacing: -0.025em; line-height: 1.08;
  margin: 0 0 28px;
}
.hero__title em { font-style: italic; color: rgba(255,255,255,.92); font-weight: 300; }
.hero__lede {
  font-size: var(--step-3); color: rgba(255,255,255,.78); max-width: 640px;
  line-height: 1.65;
}
.hero__cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px;
}
.hero__cta-row a {
  padding: 14px 24px; border-radius: var(--radius-sharp);
  font-size: var(--step-1); font-weight: 600; letter-spacing: 0.04em;
  transition: all .2s var(--ease);
}
.hero__cta-row a.is-primary { background: var(--accent); color: #fff; }
.hero__cta-row a.is-primary:hover { background: #a51a22; }
.hero__cta-row a.is-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.hero__cta-row a.is-secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.hero__cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: rgba(255,255,255,.55); letter-spacing: 0.3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-weight: 600;
}
.hero__cue::after {
  content: ''; width: 14px; height: 22px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.85) 25%, transparent 26%);
  background-size: 100% 200%;
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { background-position: 0% 0%; opacity: 1; } 70% { background-position: 0% 70%; opacity: .35; } 100% { background-position: 0% 70%; opacity: 0; } }

/* ---------- Stat strip (independent section, below hero or stand-alone) ---------- */
.stat-strip {
  background: var(--navy-deep); color: #fff;
}
.stat-strip__inner {
  max-width: var(--container); margin: 0 auto; padding: 36px var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat-strip__item {
  text-align: center; padding: 12px 16px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat-strip__item:last-child { border-right: 0; }
.stat-strip__num {
  display: block;
  font-family: var(--mono); font-size: clamp(28px, 3vw, 40px); font-weight: 500;
  color: #fff; letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px;
}
.stat-strip__label {
  font-size: var(--step-0); color: rgba(255,255,255,.6); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600;
}
@media (max-width: 768px) {
  .stat-strip__inner { grid-template-columns: 1fr 1fr; gap: 0; padding: 24px var(--gutter); }
  .stat-strip__item:nth-child(2) { border-right: 0; }
  .stat-strip__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* ---------- Search bar (decorative — backend wired post-MVP) ---------- */
.search-bar {
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0;
}
.search-bar__inner {
  max-width: 820px; margin: 0 auto; padding: 0 var(--gutter);
}
.search-bar__label {
  font-size: var(--step-3); font-weight: 700; color: var(--ink); margin-bottom: 14px; text-align: center;
}
.search-bar__box {
  display: flex; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden;
}
.search-bar__box input {
  flex: 1; border: 0; padding: 16px 20px; font: inherit; color: var(--ink); background: transparent;
}
.search-bar__box input:focus { outline: 0; }
.search-bar__box button {
  background: var(--navy); color: #fff; padding: 0 28px; font-weight: 600; font-size: var(--step-1);
  letter-spacing: 0.04em;
}

/* ---------- Page header (non-home) ---------- */
.page-head {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--rule);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-head__bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, var(--paper-soft) 30%, rgba(246,247,249,.6) 100%);
  background-size: cover; background-position: right center;
  opacity: 1;
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head__crumb { font-size: var(--step-0); color: var(--mute); margin-bottom: 14px; letter-spacing: 0.05em; }
.page-head__crumb::before { content: '— '; color: var(--accent); }
.page-head h1 {
  font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 6px; color: var(--ink);
}
.page-head__sub {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: var(--step-3); color: var(--navy-ink); letter-spacing: 0.04em;
  display: block; margin-bottom: 18px;
}
.page-head__lede {
  font-size: var(--step-2); color: var(--ink-soft); max-width: 760px; line-height: 1.7;
}
.page-head--compact { padding: 48px 0 40px; margin-bottom: 24px; }

.hero-shot {
  margin: 0;
  background: var(--navy);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.hero-shot img {
  display: block;
  width: 100%;
  height: clamp(160px, 24vh, 280px);
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .9s var(--ease);
  filter: brightness(.78);
}
.hero-shot img.is-loaded { opacity: 1; }
.hero-shot::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,29,58,.25) 0%, rgba(11,29,58,.0) 50%, rgba(11,29,58,.18) 100%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .hero-shot img { opacity: 1; transition: none; } }

/* ---------- Section header ---------- */
.section-head { margin-bottom: 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-head__aside { color: var(--ink-soft); font-size: var(--step-2); line-height: 1.7; max-width: 480px; justify-self: end; }
@media (max-width: 768px) { .section-head { grid-template-columns: 1fr; gap: 16px; } .section-head__aside { justify-self: start; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 16px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid--3, .card-grid--4, .card-grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-deep);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  transition: all .22s var(--ease);
  min-height: 200px;
  position: relative;
}
.card:hover {
  border-top-color: var(--accent);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.card:hover .card__arrow { transform: translateX(6px); color: var(--accent); }

.card__index {
  font-family: var(--mono); font-size: var(--step-0); color: var(--mute); letter-spacing: 0.1em; margin-bottom: 14px; font-weight: 500;
}
.card h3 { font-size: var(--step-4); margin-bottom: 10px; color: var(--ink); }
.card p { font-size: var(--step-1); line-height: 1.65; flex-grow: 1; color: var(--ink-soft); }
.card__arrow { margin-top: 18px; transition: transform .2s var(--ease), color .2s var(--ease); color: var(--navy); font-size: var(--step-3); }

/* ---------- Insight / News cards ---------- */
.editorial-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.editorial-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 160px 1fr 60px; gap: 32px; align-items: start;
  transition: background .2s var(--ease);
}
.editorial-item:hover { background: var(--paper-soft); padding-left: 16px; padding-right: 16px; }
.editorial-item__meta { font-size: var(--step-0); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); padding-top: 4px; font-weight: 600; }
.editorial-item__meta strong { display: inline-block; color: var(--navy-ink); margin-bottom: 6px; padding: 3px 10px; background: var(--paper-soft); border-radius: 2px; font-size: 11px; }
.editorial-item__meta-date { display: block; margin-top: 6px; font-family: var(--mono); font-weight: 500; }
.editorial-item__body h3 { font-size: var(--step-3); margin-bottom: 8px; line-height: 1.4; font-weight: 600; }
.editorial-item__body p { font-size: var(--step-1); color: var(--ink-soft); margin: 0; }
.editorial-item__arrow { justify-self: end; color: var(--mute); padding-top: 4px; font-size: var(--step-3); }
.editorial-item:hover .editorial-item__arrow { color: var(--accent); }
@media (max-width: 768px) {
  .editorial-item { grid-template-columns: 1fr; gap: 8px; }
  .editorial-item__arrow { justify-self: start; }
}

/* ---------- Stats (homepage section) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule); }
.stat { padding: 32px 24px; border-right: 1px solid var(--rule); background: #fff; text-align: center; }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--mono); font-size: clamp(32px, 4vw, 48px); color: var(--navy); letter-spacing: -0.03em; display: block; margin-bottom: 6px; line-height: 1; font-weight: 500; }
.stat__label { font-size: var(--step-1); color: var(--mute); font-weight: 500; }
@media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }

/* ---------- Professionals (monogram cards) ---------- */
.lawyer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .lawyer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lawyer-grid { grid-template-columns: 1fr; } }

.lawyer {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: 28px 22px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: all .22s var(--ease);
}
.lawyer:hover { border-color: var(--navy); box-shadow: var(--shadow-lift); transform: translateY(-2px); }

.lawyer__monogram {
  width: 76px; height: 76px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-ink) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: var(--step-5); letter-spacing: -0.02em;
  border-radius: var(--radius-sharp);
  margin-bottom: 18px;
}
.lawyer__name { font-size: var(--step-3); margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.lawyer__role { font-size: var(--step-1); color: var(--accent); margin-bottom: 14px; letter-spacing: 0.02em; font-weight: 600; }
.lawyer__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.lawyer__tag { font-size: 11px; padding: 3px 9px; background: var(--paper-soft); border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-soft); font-weight: 500; }
.lawyer__bio { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }

/* ---------- Two-column ---------- */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field label { font-size: var(--step-0); letter-spacing: 0.05em; color: var(--ink-soft); font-weight: 600; }
.form__field input, .form__field select, .form__field textarea {
  border: 1px solid var(--rule); background: #fff;
  padding: 12px 14px; font: inherit; color: var(--ink);
  border-radius: var(--radius-sharp);
  transition: border-color .2s var(--ease);
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: 0; border-color: var(--navy);
}
.form__field textarea { min-height: 140px; resize: vertical; }
.form__submit {
  background: var(--navy); color: #fff;
  padding: 16px 32px; border-radius: var(--radius-sharp);
  font-size: var(--step-2); font-weight: 600; letter-spacing: 0.04em;
  transition: background .2s var(--ease); justify-self: start;
}
.form__submit:hover { background: var(--navy-deep); }
.form__note { font-size: var(--step-0); color: var(--mute); }

/* ---------- Contact channels ---------- */
.channels { display: grid; gap: 0; border: 1px solid var(--rule); }
.channel { padding: 18px 20px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; background: #fff; }
.channel:last-child { border-bottom: 0; }
.channel__label { font-size: var(--step-0); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.channel__value { font-family: var(--mono); font-size: var(--step-3); color: var(--navy); font-weight: 500; }
.channel__hint { font-size: var(--step-0); color: var(--mute); }

/* ---------- Partners ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 960px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
.partner {
  aspect-ratio: 2/1; background: #fff; border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  color: var(--mute); font-family: var(--serif); font-size: var(--step-3); letter-spacing: 0.04em;
  transition: all .2s var(--ease);
}
.partner:hover { color: var(--navy); border-color: var(--navy); }

/* ---------- Global presence ---------- */
.globe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 768px) { .globe { grid-template-columns: repeat(2, 1fr); } }
.city { padding: 24px 22px; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--navy); }
.city__name { font-size: var(--step-4); margin-bottom: 6px; font-weight: 700; color: var(--ink); }
.city__coord { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: 0.04em; }
.city__note { font-size: var(--step-1); color: var(--ink-soft); margin-top: 10px; }

/* ---------- Anchor menu (services) ---------- */
.anchor-nav {
  position: sticky; top: 75px; z-index: 30;
  background: #fff; border-bottom: 1px solid var(--rule);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  box-shadow: 0 1px 0 var(--rule-soft);
}
.anchor-nav__inner { max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter); display: flex; gap: 24px; }
.anchor-nav a {
  font-size: var(--step-1); color: var(--ink-soft); white-space: nowrap; padding: 6px 0;
  border-bottom: 2px solid transparent; font-weight: 500;
}
.anchor-nav a:hover, .anchor-nav a.is-active { color: var(--navy); border-bottom-color: var(--accent); font-weight: 700; }

/* ---------- Service detail block ---------- */
.svc-block { padding: 40px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
@media (max-width: 768px) { .svc-block { grid-template-columns: 1fr; gap: 16px; } }
.svc-block__index { font-family: var(--mono); font-size: var(--step-1); color: var(--accent); letter-spacing: 0.1em; font-weight: 600; }
.svc-block h2 { font-size: var(--step-5); margin: 8px 0 0; font-weight: 700; color: var(--ink); }
.svc-block__list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.svc-block__list li { padding-left: 18px; position: relative; font-size: var(--step-2); color: var(--ink-soft); }
.svc-block__list li::before { content: '·'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 100px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.timeline-item__year { font-family: var(--mono); font-size: var(--step-3); color: var(--navy); letter-spacing: -0.02em; font-weight: 600; }
.timeline-item__body { font-size: var(--step-2); color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: #0a0d12; color: rgba(255,255,255,.72); padding: 64px 0 28px; margin-top: 64px; border-top: 4px solid var(--accent); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: #fff; font-family: var(--sans); font-size: var(--step-0); letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { font-size: var(--step-1); font-weight: 500; transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer__brand { font-size: var(--step-4); color: #fff; margin-bottom: 14px; font-weight: 700; }
.footer__addr { font-size: var(--step-1); line-height: 1.75; }
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: var(--step-0); }

/* ---------- Quick CTA floating (desktop) ---------- */
.quick-cta {
  position: fixed; right: 20px; bottom: 96px; z-index: 40;
  display: flex; flex-direction: column; gap: 8px;
}
.quick-cta a {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 6px 18px -8px rgba(11,29,58,.22);
  color: var(--navy); transition: all .2s var(--ease);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-align: center; line-height: 1.1;
}
.quick-cta a:hover { background: var(--navy); color: #fff; transform: translateX(-2px); }
.quick-cta a.is-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.quick-cta a.is-accent:hover { background: #a51a22; }
@media (max-width: 960px) { .quick-cta { display: none; } }

/* ---------- Sticky mobile CTA ---------- */
.mob-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--rule);
  padding: 10px var(--gutter);
}
.mob-cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mob-cta a {
  padding: 13px; text-align: center; font-size: var(--step-1); letter-spacing: 0.04em;
  border-radius: var(--radius-sharp); font-weight: 600;
}
.mob-cta a.is-primary { background: var(--accent); color: #fff; }
.mob-cta a.is-secondary { background: var(--paper-soft); border: 1px solid var(--rule); color: var(--navy); }
@media (max-width: 768px) { .mob-cta { display: block; } body { padding-bottom: 70px; } }

/* ---------- Map placeholder ---------- */
.map-box {
  background: linear-gradient(135deg, var(--paper-soft) 0%, var(--rule) 100%);
  aspect-ratio: 16/9; border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; color: var(--mute);
  font-family: var(--mono); font-size: var(--step-1); letter-spacing: 0.05em;
  position: relative; overflow: hidden;
}
.map-box::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, transparent 49%, rgba(11,29,58,.08) 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(11,29,58,.08) 50%, transparent 51%);
  background-size: 40px 40px;
}
.map-box span { position: relative; z-index: 1; padding: 10px 20px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-sharp); font-weight: 500; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .hero__cue::after { animation: none; }
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- Utility ---------- */
.text-mute { color: var(--mute); }
.text-accent { color: var(--accent); }
.mt-rh { margin-top: var(--rhythm); }
.mb-rh { margin-bottom: var(--rhythm); }
