/* ==========================================================================
   법무법인 양지 — shared styles
   ========================================================================== */

:root {
  --navy: #171A34;
  --ink: #14162B;
  --gold: #D2986A;
  --blue: #2A5CAA;
  --bg: #FAFAF9;
  --text: #555555;
  --text-light: #666666;
  --border: #E7E7E5;
  --radius: 0;
  --shadow: 0 10px 30px rgba(0, 0, 0, .05);
  --shadow-lift: 0 18px 44px rgba(23, 26, 52, .10);
  --pad-x: clamp(64px, 6vw, 180px);
  --pad-x-wide: clamp(120px, 13vw, 280px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: #111;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { text-decoration: none; color: inherit; transition: opacity .25s var(--ease); }
a:hover { opacity: .75; }

img { max-width: 100%; display: block; }

/* lawyer profile photos + 위촉장·수상 이미지: no drag-to-save (Safari) */
img.no-context { -webkit-user-drag: none; user-drag: none; }

h1, h2, h3 { word-break: keep-all; }

.serif { font-family: 'Noto Serif KR', serif; }
.sans-heading { font-family: 'Wanted Sans', 'Noto Sans KR', sans-serif; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------------------------------------- nav (home) */

.nav-home {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--pad-x);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}

.nav-home.scrolled {
  background: rgba(20, 22, 43, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding-top: 15px;
  padding-bottom: 15px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
}

.nav-home .nav-logo { height: 52px; width: auto; flex-shrink: 0; filter: brightness(0) invert(1); transition: height .4s var(--ease); }
.nav-home.scrolled .nav-logo { height: 42px; }

.nav-home .nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

.nav-home .nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a.nav-cta {
  padding: 11px 26px;
  background: #fff;
  color: #111;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
  border: none;
  cursor: pointer;
}

/* --------------------------------------------------------- nav (subpages) */

.nav-solid {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--pad-x);
  background: var(--navy);
}

.nav-solid .nav-logo { height: 52px; width: auto; flex-shrink: 0; filter: brightness(0) invert(1); }

.nav-solid .nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

.nav-solid .nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-solid .nav-links a.active { color: var(--gold); }

/* nav link underline micro-interaction (shared) */
.nav-links a { position: relative; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-links a.nav-cta-gold {
  padding: 11px 26px;
  background: var(--gold);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.nav-cta, .nav-cta-gold {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-cta:hover, .nav-cta-gold:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}
.nav-cta::after, .nav-cta-gold::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

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

.page-hero {
  padding: 90px var(--pad-x) 60px;
  text-align: center;
  background: var(--navy);
}

.page-hero .eyebrow { font-size: 13px; letter-spacing: .28em; color: var(--gold); font-weight: 700; margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(30px, 3.4vw, 40px); color: #fff; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.page-hero .page-hero-sub { font-size: 14.5px; color: rgba(255,255,255,.65); margin-top: 18px; white-space: pre-line; }

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

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 560px;
  max-height: 860px;
  overflow: hidden;
  background: #1c2130;
}

/* ---------------------------------------------------- hero sky (sunrise) */

.hero-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #05060f;
}

.sky-layer { position: absolute; inset: 0; }

.sky-night {
  background: linear-gradient(180deg, #05060f 0%, #0b0e22 35%, #171a34 75%, #1c2130 100%);
}

.sky-dawn {
  background: linear-gradient(180deg, #101730 0%, #2b2e52 30%, #4a4368 55%, #8a5a72 78%, #c97a63 100%);
  opacity: 0;
  animation: sky-fade-in 4s var(--ease) 2.4s forwards;
}

.sky-sunrise {
  background: linear-gradient(180deg, #1b2a4d 0%, #33436e 24%, #7a6a83 46%, #c98a6b 66%, #e8a86a 82%, #f5c98a 100%);
  opacity: 0;
  animation: sky-fade-in 4.5s var(--ease) 5.2s forwards;
}

@keyframes sky-fade-in { to { opacity: 1; } }

/* stars — box-shadow dot field, 2 layers twinkling out of phase, fade out once sky brightens */
.hero-stars-wrap {
  position: absolute;
  inset: 0;
  animation: stars-fade-out 2.5s ease-in 5.4s forwards;
}
.hero-stars {
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: transparent;
}
.stars-a {
  animation: twinkle-a 3.4s ease-in-out infinite;
  box-shadow:
  63.94vw 3.35vh 0 0 rgba(255,255,255,0.46), 22.32vw 41.77vh 0 0 rgba(255,255,255,0.62),
  89.22vw 6.69vh 0 0 rgba(255,255,255,0.52), 2.98vw 13.81vh 0 0 rgba(255,255,255,0.55),
  2.65vw 12.74vh 0 0 rgba(255,255,255,0.61), 54.49vw 13.9vh 0 0 rgba(255,255,255,0.59),
  80.94vw 2.35vh 0 0 rgba(255,255,255,0.67), 69.81vw 20.37vh 0 0 rgba(255,255,255,0.41),
  95.72vw 20.18vh 0 0 rgba(255,255,255,0.39), 9.67vw 47.76vh 0 0 rgba(255,255,255,0.59),
  80.71vw 41.41vh 0 0 rgba(255,255,255,0.56), 97.31vw 22.44vh 0 0 rgba(255,255,255,0.57),
  82.94vw 35.4vh 0 0 rgba(255,255,255,0.69), 57.74vw 40.05vh 0 0 rgba(255,255,255,0.37),
  22.79vw 17.63vh 0 0 rgba(255,255,255,0.38), 23.28vw 7.45vh 0 0 rgba(255,255,255,0.46),
  63.57vw 21.7vh 0 0 rgba(255,255,255,0.5), 20.95vw 16.42vh 0 0 rgba(255,255,255,0.72),
  64.8vw 34.89vh 0 0 rgba(255,255,255,0.42), 72.91vw 10.82vh 0 0 rgba(255,255,255,0.5),
  98.95vw 36.56vh 0 0 rgba(255,255,255,0.57), 68.46vw 47.51vh 0 0 rgba(255,255,255,0.66),
  22.9vw 3.73vh 0 0 rgba(255,255,255,0.48), 26.77vw 13.39vh 0 0 rgba(255,255,255,0.73),
  87.64vw 18.99vh 0 0 rgba(255,255,255,0.61), 39.56vw 51.39vh 0 0 rgba(255,255,255,0.53),
  26.49vw 15.32vh 0 0 rgba(255,255,255,0.57), 26.27vw 33.57vh 0 0 rgba(255,255,255,0.71),
  39.94vw 13.84vh 0 0 rgba(255,255,255,0.75), 50.95vw 6.91vh 0 0 rgba(255,255,255,0.37),
  10.96vw 35.88vh 0 0 rgba(255,255,255,0.67), 42.22vw 5.43vh 0 0 rgba(255,255,255,0.5),
  99.61vw 30.57vh 0 0 rgba(255,255,255,0.74), 86.08vw 2.62vh 0 0 rgba(255,255,255,0.64),
  68.17vw 31vh 0 0 rgba(255,255,255,0.46), 64.1vw 8.02vh 0 0 rgba(255,255,255,0.52),
  45.37vw 53.51vh 0 0 rgba(255,255,255,0.7), 26.34vw 29.03vh 0 0 rgba(255,255,255,0.42),
  91.26vw 49.01vh 0 0 rgba(255,255,255,0.47), 63.89vw 34.88vh 0 0 rgba(255,255,255,0.41),
  76.25vw 31.13vh 0 0 rgba(255,255,255,0.66), 53.04vw 2.03vh 0 0 rgba(255,255,255,0.48),
  1.95vw 52.17vh 0 0 rgba(255,255,255,0.7), 83.17vw 18.61vh 0 0 rgba(255,255,255,0.37),
  87.8vw 53.14vh 0 0 rgba(255,255,255,0.38), 48.6vw 5.74vh 0 0 rgba(255,255,255,0.65),
  76.58vw 8.93vh 0 0 rgba(255,255,255,0.54), 54.98vw 16.31vh 0 0 rgba(255,255,255,0.7),
  42.31vw 13.44vh 0 0 rgba(255,255,255,0.57), 72.99vw 12.86vh 0 0 rgba(255,255,255,0.47),
  99.51vw 37.09vh 0 0 rgba(255,255,255,0.53), 51.76vw 8.53vh 0 0 rgba(255,255,255,0.44),
  33.81vw 33.77vh 0 0 rgba(255,255,255,0.44), 22.02vw 5.83vh 0 0 rgba(255,255,255,0.6),
  22.89vw 50.89vh 0 0 rgba(255,255,255,0.69), 7.09vw 14.85vh 0 0 rgba(255,255,255,0.62),
  21.42vw 9.14vh 0 0 rgba(255,255,255,0.72), 57.1vw 27.52vh 0 0 rgba(255,255,255,0.66),
  80.75vw 12.28vh 0 0 rgba(255,255,255,0.39), 43.11vw 24.87vh 0 0 rgba(255,255,255,0.54),
  72.91vw 38.36vh 0 0 rgba(255,255,255,0.74), 9.84vw 23.74vh 0 0 rgba(255,255,255,0.49),
  86.17vw 15.43vh 0 0 rgba(255,255,255,0.43), 44.86vw 24.78vh 0 0 rgba(255,255,255,0.46),
  24.98vw 51.86vh 0 0 rgba(255,255,255,0.53), 86.13vw 31.72vh 0 0 rgba(255,255,255,0.37),
  99.93vw 47.15vh 0 0 rgba(255,255,255,0.74), 92.64vw 47.83vh 0 0 rgba(255,255,255,0.42),
  48.56vw 13.54vh 0 0 rgba(255,255,255,0.51), 5.86vw 22.46vh 0 0 rgba(255,255,255,0.74),
  26.52vw 44.34vh 0 0 rgba(255,255,255,0.53), 42.3vw 53.7vh 0 0 rgba(255,255,255,0.75),
  55.58vw 40.79vh 0 0 rgba(255,255,255,0.41), 29.67vw 54.31vh 0 0 rgba(255,255,255,0.58),
  54.22vw 42.39vh 0 0 rgba(255,255,255,0.37), 58.42vw 29.15vh 0 0 rgba(255,255,255,0.69),
  15.74vw 53.88vh 0 0 rgba(255,255,255,0.38), 18.58vw 34.13vh 0 0 rgba(255,255,255,0.62),
  23.52vw 8.47vh 0 0 rgba(255,255,255,0.71), 24.62vw 34.1vh 0 0 rgba(255,255,255,0.6),
  41.92vw 33.52vh 0 0 rgba(255,255,255,0.56), 93.47vw 13.03vh 0 0 rgba(255,255,255,0.64),
  23.87vw 23.37vh 0 0 rgba(255,255,255,0.62), 30vw 19.07vh 0 0 rgba(255,255,255,0.65),
  7.25vw 26.75vh 0 0 rgba(255,255,255,0.75);
}
.stars-b {
  animation: twinkle-b 4.6s ease-in-out infinite .8s;
  box-shadow:
  99.61vw 5.52vh 0 0 #fff, 26.52vw 46.8vh 0 0 #fff, 87.93vw 19.74vh 0 0 #fff,
  83.37vw 35.77vh 0 0 #fff, 98.72vw 33.39vh 0 0 #fff, 81.71vw 16.37vh 0 0 #fff,
  93.89vw 8.45vh 0 0 #fff, 10.7vw 28.55vh 0 0 #fff, 60.48vw 36.45vh 0 0 #fff,
  63.42vw 14.67vh 0 0 #fff, 90.53vw 42.61vh 0 0 #fff, 42.36vw 15.28vh 0 0 #fff,
  77.11vw 32.58vh 0 0 #fff, 74.12vw 28.48vh 0 0 #fff, 0.97vw 5.61vh 0 0 #fff,
  90.39vw 28.19vh 0 0 #fff, 58.25vw 9.11vh 0 0 #fff, 30.83vw 45.15vh 0 0 #fff,
  86.07vw 45.15vh 0 0 #fff, 24.95vw 6.93vh 0 0 #fff, 88.41vw 21.51vh 0 0 #fff,
  15.46vw 46.63vh 0 0 #fff, 97.62vw 40.92vh 0 0 #fff, 2.48vw 37.36vh 0 0 #fff,
  93.08vw 40.51vh 0 0 #fff, 81.07vw 14.81vh 0 0 #fff, 10.81vw 43.86vh 0 0 #fff,
  22.24vw 41.2vh 0 0 #fff, 30.52vw 40.18vh 0 0 #fff, 2.37vw 11.27vh 0 0 #fff;
}

@keyframes stars-fade-out { to { opacity: 0; } }
@keyframes twinkle-a { 0%, 100% { opacity: .5; } 50% { opacity: .95; } }
@keyframes twinkle-b { 0%, 100% { opacity: .35; } 50% { opacity: .8; } }

/* sunrise glow — no explicit sun disc, just soft horizon-hugging light (color + bloom only) */
.hero-glow-outer {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 65%;
  opacity: 0;
  background: radial-gradient(ellipse 65% 100% at 50% 100%, rgba(255,196,140,.65) 0%, rgba(255,177,110,.32) 45%, rgba(255,177,110,0) 75%);
  filter: blur(18px);
  animation: glow-fade-in 5.5s var(--ease) 4s forwards;
}

.hero-glow-core {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 32%;
  opacity: 0;
  background: radial-gradient(ellipse 40% 100% at 50% 100%, rgba(255,250,235,.85) 0%, rgba(255,220,165,.55) 40%, rgba(255,200,150,0) 78%);
  filter: blur(10px);
  animation: glow-fade-in 5s var(--ease) 4.6s forwards;
}

@keyframes glow-fade-in { to { opacity: 1; } }

.hero .hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,20,.22) 0%, rgba(10,12,20,.12) 45%, rgba(10,12,20,.5) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 0 24px;
}

/* orchestrated load sequence */
.hero-content > * {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in .9s var(--ease) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: .15s; }
.hero-content > *:nth-child(2) { animation-delay: .3s; }
.hero-content > *:nth-child(3) { animation-delay: .5s; }
.hero-content > *:nth-child(4) { animation-delay: .65s; }

@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

.hero-content .eyebrow {
  font-size: 13px;
  letter-spacing: .32em;
  color: rgba(255,255,255,.85);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-content h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.35;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  margin: 0;
  white-space: pre-line;
}

.hero-content .hero-divider {
  width: 52px;
  height: 2px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  margin: 36px 0;
}

.hero-content .hero-sub {
  font-size: 18.5px;
  line-height: 1.85;
  color: rgba(255,255,255,.8);
  font-weight: 400;
  max-width: 480px;
  white-space: pre-line;
}

.hero-scroll {
  position: absolute;
  left: 0; right: 0; bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.hero-scroll .label { font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.75); }
.hero-scroll .line {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.6);
  transform-origin: top;
  animation: scroll-pulse 2.4s var(--ease) infinite;
}

@keyframes scroll-pulse {
  0% { transform: scaleY(0); opacity: .9; }
  55% { transform: scaleY(1); opacity: .7; }
  100% { transform: scaleY(1); opacity: 0; }
}

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

.section { padding: 110px var(--pad-x); }
.section-tight { padding: 60px var(--pad-x) 0; }

.eyebrow-center { font-size: 13px; letter-spacing: .24em; color: var(--blue); font-weight: 700; text-align: center; margin-bottom: 56px; }
.eyebrow { font-size: 13px; letter-spacing: .24em; color: var(--blue); font-weight: 700; margin-bottom: 16px; }

/* gold hairline before left-aligned eyebrows (light sections only) */
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  margin-right: 12px;
  vertical-align: middle;
}
.page-hero .eyebrow::before, .hero-content .eyebrow::before { display: none; }

.section-heading { text-align: center; margin-bottom: 60px; }
.section-heading .eyebrow { text-align: center; }
.section-heading .eyebrow::before { display: none; }
.section-heading h2 { font-size: clamp(26px, 2.6vw, 34px); color: #111; font-weight: 400; margin: 0; letter-spacing: -0.01em; }
.section-heading .heading-sub { font-size: 14.5px; color: #777; margin-top: 14px; }

/* ---------------------------------------------------------------- cards */

.card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover {
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-3-tight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.why-title {
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}
.why-title .accent { color: var(--gold); }

/* WHY YANGJI heading — asymmetric editorial treatment, distinct from centered section-heading pattern */
.why-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

/* WHY YANGJI strengths */
.strength-card { padding: 40px 32px; }
.strength-card .num { font-size: 15px; color: var(--blue); font-weight: 600; margin-bottom: 22px; }
.strength-card .title { font-size: 20px; font-weight: 600; color: #111; margin-bottom: 16px; }
.strength-card .desc { font-size: 14.5px; line-height: 1.85; color: #666; }

/* ABOUT (home) — full-width text, no photo */
.about-full-copy h2 { font-size: clamp(24px, 2.4vw, 32px); color: #111; font-weight: 600; line-height: 1.42; margin: 0 0 28px; letter-spacing: -0.01em; white-space: pre-line; }
.about-full-copy p { font-size: 16px; line-height: 1.9; color: #555; margin: 0; }

/* ABOUT stats — divided row (no cards, thin dividers) */
.about-stat-row { display: flex; margin-top: 64px; }
.about-stat-row .cell { flex: 1; text-align: center; padding: 8px 24px; border-left: 1px solid var(--border); }
.about-stat-row .cell:first-child { border-left: none; }
.about-stat-row .stat-num { font-size: 32px; color: var(--navy); font-weight: 700; line-height: 1; }
.about-stat-row .stat-label { font-size: 13.5px; color: #666; margin-top: 12px; line-height: 1.55; word-break: keep-all; }

/* CORE VALUES (relocated) — centered heading + icon-led 3-column cards */
.value-heading { text-align: center; margin-bottom: 56px; }
.value-heading h2 { font-size: clamp(26px, 2.6vw, 34px); color: #111; margin: 0 0 18px; letter-spacing: -0.01em; }
.value-underline { width: 40px; height: 3px; background: var(--gold); margin: 0 auto; border-radius: 2px; }
.value-card { text-align: center; padding: 12px 20px; }
.value-icon { width: 42px; height: 42px; color: var(--gold); margin: 0 auto 24px; display: block; }
.value-title { font-size: 19px; font-weight: 600; color: #111; margin-bottom: 12px; }
.value-desc { font-size: 14px; line-height: 1.75; color: #666; }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about-photo { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.about-photo:hover img { transform: scale(1.03); }

/* ABOUT — cutout portrait (no card/frame, floats on the section background) */
.about-cutout { display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.about-cutout img { width: 100%; max-width: 420px; height: auto; object-fit: contain; }
.about-copy h2 { font-size: clamp(24px, 2.4vw, 32px); color: #111; font-weight: 600; line-height: 1.42; margin: 0 0 28px; letter-spacing: -0.01em; }
.about-quote { font-size: 17px; color: var(--gold); font-weight: 600; line-height: 1.6; margin-bottom: 24px; word-break: keep-all; }
.about-signature { margin-top: 28px; font-size: 15px; color: #333; }
.about-signature .serif { font-size: 20px; font-weight: 700; margin-left: 6px; }
.about-copy p { font-size: 16px; line-height: 1.9; color: #555; margin: 0; max-width: 560px; }

.about-stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.about-stat-card { padding: 36px 32px; text-align: left; }
.about-stat-card .stat-num { font-size: 36px; color: var(--navy); font-weight: 700; line-height: 1; }
.about-stat-card .stat-label { font-size: 14.5px; color: #666; margin-top: 14px; line-height: 1.6; word-break: keep-all; }

/* LAWYERS (home) */
.lawyer-card { overflow: hidden; }
.lawyer-photo { aspect-ratio: 3/4; position: relative; overflow: hidden; }
.lawyer-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.lawyer-card:hover .lawyer-photo img { transform: scale(1.045); }
.lawyer-body { padding: 28px 28px 30px; }
.lawyer-body .name { font-size: 19px; font-weight: 600; color: #111; margin-bottom: 8px; }
.lawyer-body .role { font-size: 12.5px; color: var(--blue); font-weight: 600; margin-bottom: 14px; }
.lawyer-body .tagline { font-size: 14.5px; font-weight: 600; color: #111; line-height: 1.55; margin-bottom: 10px; word-break: keep-all; }
.lawyer-body .desc { font-size: 13.5px; line-height: 1.75; color: #666; white-space: pre-line; }

/* CREDENTIALS MARQUEE (infinite left-scroll) */
.marquee-section {
  background: #FAFAF9;
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.marquee-item img { width: 100%; height: 100%; object-fit: cover; }
.marquee-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 12.5px;
  color: #aaa;
  background: #F3F5F7;
  word-break: keep-all;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* PRACTICE AREAS (home cards) */
.practice-card { padding: 30px 28px; }
.practice-card .title { font-size: 18px; font-weight: 600; color: #111; margin-bottom: 10px; }
.practice-card .desc { font-size: 13.5px; line-height: 1.7; color: #666; }

.grid-5-tight { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grid-5-tight .practice-card { padding: 26px 20px; }
.grid-5-tight .practice-card .title { font-size: 16.5px; }
.grid-5-tight .practice-card .desc { font-size: 12.5px; line-height: 1.65; }

.practice-other { margin-top: 40px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.practice-other-label { font-size: 12.5px; color: #999; font-weight: 600; white-space: nowrap; }
.practice-other-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.practice-other-tags a {
  padding: 7px 16px;
  background: #F3F5F7;
  color: #666;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.practice-other-tags a:hover { background: #E7EAEE; color: #333; opacity: 1; }

/* ---------------------------------------------------------- case results */

.case-scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
}

.case-flip { flex: 0 0 300px; scroll-snap-align: start; perspective: 1600px; height: 340px; }
.case-flip-grid { perspective: 1600px; height: 320px; }

.case-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
  cursor: pointer;
}
.case-inner.flipped { transform: rotateY(180deg); }

.case-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.case-face-front { background: #fff; }
.case-face-front .category-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(42,92,170,.06);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.case-face-front .case-title { font-size: 18px; font-weight: 700; color: #111; line-height: 1.5; margin-bottom: 14px; }
.case-face-front .case-summary { font-size: 13.5px; line-height: 1.75; color: #666; }
.case-face-front .case-cta { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--blue); }

.case-face-back {
  transform: rotateY(180deg);
  background: var(--navy);
  color: #fff;
}
.case-face-back .verdict-label { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 16px; }
.case-face-back .verdict-text { font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.85); flex: 1; overflow: hidden; }
.case-face-back .board-link { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--gold); }

/* cases.html page-specific: navy accent instead of blue */
.cases-grid .category-tag { color: var(--navy); background: #F3F5F7; }
.cases-grid .case-cta { color: var(--navy); }

/* category filter pills (cases.html) */
.filter-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.filter-pill {
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #444;
  border: 1px solid #E0E0DE;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.filter-pill:hover { border-color: var(--navy); transform: translateY(-1px); }
.filter-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 60px var(--pad-x) 110px; }

.empty-state { padding: 90px var(--pad-x) 130px; text-align: center; }
.empty-state p { font-size: 15.5px; line-height: 1.8; color: #888; margin: 0; }

/* -------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-grid h2 { font-size: clamp(24px, 2.3vw, 30px); color: #111; font-weight: 400; margin: 0 0 28px; letter-spacing: -0.01em; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list .row { font-size: 14.5px; color: var(--text); }
.contact-list .label { color: var(--blue); font-weight: 600; }
.contact-cta {
  margin-top: 30px;
  padding: 15px 34px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 999px;
  display: inline-block;
  background-color: var(--blue);
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s var(--ease);
}
.contact-cta:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(42, 92, 170, .3);
}

.map-wrap { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; position: relative; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3); }
.map-card {
  position: absolute;
  left: 20px; bottom: 20px; right: 20px;
  background: var(--navy);
  color: #fff;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.map-card .map-card-title { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.map-card .map-card-addr { font-size: 14px; line-height: 1.6; }

/* location.html map (4:3) */
.location-map { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; position: relative; }
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3); }

.info-rows { display: flex; flex-direction: column; gap: 22px; }
.info-rows .info-label { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.info-rows .info-value { font-size: 15.5px; line-height: 1.75; color: #333; }

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

.site-footer {
  background: var(--ink);
  padding: 52px var(--pad-x) 32px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .footer-logo { height: 42px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand .footer-name { font-size: 14px; color: #fff; font-weight: 600; margin-top: 14px; }

.footer-contact {
  font-size: 13px;
  line-height: 2.1;
  color: rgba(255,255,255,.55);
  text-align: right;
}
.footer-contact a { color: rgba(255,255,255,.55); }
.footer-contact a:hover { color: rgba(255,255,255,.85); opacity: 1; }

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
}
.footer-bottom-left { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom .rep { font-size: 12px; color: rgba(255,255,255,.4); }
.footer-bottom .copyright { font-size: 12px; color: rgba(255,255,255,.4); }

.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal-links a { font-size: 12px; color: rgba(255,255,255,.55); }
.footer-legal-links a:hover { color: rgba(255,255,255,.85); opacity: 1; }

/* ---------------------------------------------------------------- consult form */

.consult-content { padding: 90px var(--pad-x) 140px; }
.consult-wrap { max-width: 720px; margin: 0 auto; }
.consult-intro { text-align: center; margin-bottom: 52px; }
.consult-intro p { font-size: 15.5px; color: #666; line-height: 1.85; margin: 0; }

.consult-form { display: flex; flex-direction: column; gap: 28px; }
.form-group { display: flex; flex-direction: column; gap: 9px; }
.field-label { font-size: 13.5px; font-weight: 600; color: #222; }
.field-label .req { color: var(--gold); margin-left: 3px; }

.form-input, .form-textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: #111;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42,92,170,.12);
}
.form-textarea { resize: vertical; min-height: 150px; line-height: 1.7; }

.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-option { position: relative; }
.radio-option input[type="radio"] {
  position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%;
}
.radio-option .radio-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: #444;
  background: #fff;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.radio-option input[type="radio"]:checked + .radio-pill { background: var(--navy); color: #fff; border-color: var(--navy); }
.radio-option input[type="radio"]:focus-visible + .radio-pill { outline: 2px solid var(--gold); outline-offset: 2px; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: #F3F5F7;
  border-radius: 12px;
}
.consent-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; }
.consent-row label { font-size: 13.5px; line-height: 1.7; color: #444; }
.consent-row a { color: var(--blue); font-weight: 600; }

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

.consult-submit {
  align-self: flex-start;
  padding: 15px 42px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.consult-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,26,52,.25); }

.consult-note { font-size: 12.5px; color: #999; line-height: 1.7; margin-top: -8px; }

/* -------------------------------------------------------------- thanks page */

.thanks-content { padding: 150px var(--pad-x) 170px; text-align: center; }
.thanks-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px;
}
.thanks-content h1 { font-size: clamp(24px, 2.6vw, 32px); color: #111; font-weight: 600; margin: 0 0 16px; }
.thanks-content p { font-size: 15.5px; color: #666; line-height: 1.85; margin: 0 0 40px; }
.thanks-back {
  display: inline-block;
  padding: 14px 36px;
  background: var(--blue);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 999px;
}

/* ---------------------------------------------------------- legal pages */

.legal-content { padding: 90px var(--pad-x) 130px; }
.legal-inner { max-width: 820px; margin: 0 auto; }
.legal-inner .doc-title { font-size: clamp(24px, 2.6vw, 30px); color: #111; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.legal-inner .doc-meta { font-size: 13.5px; color: #888; margin-bottom: 44px; }
.legal-inner .lead { font-size: 15.5px; line-height: 1.9; color: #444; margin: 0 0 44px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.legal-inner section { margin-bottom: 38px; }
.legal-inner h2 { font-size: 16.5px; font-weight: 700; color: var(--navy); margin: 0 0 14px; }
.legal-inner p { font-size: 14.5px; line-height: 1.85; color: #444; margin: 0 0 10px; }
.legal-inner ol, .legal-inner ul { padding-left: 20px; margin: 0 0 10px; }
.legal-inner li { font-size: 14.5px; line-height: 1.85; color: #444; margin-bottom: 6px; }
.legal-table-wrap { overflow-x: auto; margin: 16px 0 20px; }
.legal-inner table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 480px; }
.legal-inner th, .legal-inner td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; }
.legal-inner th { background: #F3F5F7; font-weight: 600; color: #333; white-space: nowrap; }
.legal-doc-footer { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13.5px; color: #777; line-height: 2; }

/* ---------------------------------------------------------- fees page */

.fee-content { padding: 90px var(--pad-x) 130px; }
.fee-inner { max-width: 880px; margin: 0 auto; }

.fee-intro-notes {
  list-style: none;
  margin: 0 0 64px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fee-intro-notes li { font-size: 14.5px; line-height: 1.8; color: #444; padding-left: 20px; position: relative; }
.fee-intro-notes li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.fee-section { margin-bottom: 76px; }
.fee-section:last-child { margin-bottom: 0; }
.fee-section-head { margin-bottom: 24px; }
.fee-section-num { font-size: 12.5px; letter-spacing: .24em; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.fee-section-title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; color: var(--navy); margin: 0; }
.fee-section-intro { font-size: 15px; line-height: 1.85; color: #555; margin: 14px 0 0; max-width: 640px; }

.fee-highlight-box {
  background: rgba(210, 152, 106, .08);
  border-left: 3px solid var(--gold);
  padding: 26px 30px;
  margin: 0 0 32px;
}
.fee-highlight-box .fee-highlight-title { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.fee-highlight-box p { font-size: 14.5px; line-height: 1.85; color: #444; margin: 0; }

.fee-table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--border); }
.fee-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.fee-table th, .fee-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.fee-table th { background: var(--navy); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.fee-table tbody tr:last-child td { border-bottom: none; }
.fee-table tbody tr:nth-child(even) { background: #FAFAF9; }
.fee-table td:first-child { width: 56%; color: #222; font-weight: 500; }
.fee-row-sub { display: block; font-size: 12.5px; color: #888; font-weight: 400; margin-top: 4px; }

.fee-amount { font-weight: 700; color: var(--navy); font-size: 15px; }
.fee-amount .fee-unit { font-weight: 500; font-size: 13px; color: #555; }
.fee-from {
  display: inline-block;
  margin-left: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(210, 152, 106, .14);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: 2px;
}
.fee-suffix { font-size: 13px; color: #777; margin-left: 4px; }
.fee-text-value { font-size: 14px; color: #555; }

.fee-table-note { font-size: 13px; color: #888; margin: 0 0 48px; }
.fee-section .fee-table-note:last-child { margin-bottom: 0; }

.fee-supplement { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.fee-supplement-term { font-size: 13.5px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.fee-supplement-term .fee-supplement-note { font-weight: 400; color: #999; margin-left: 4px; }
.fee-supplement-desc { font-size: 14px; line-height: 1.8; color: #555; }

/* ------------------------------------------------------- floating rail */

.floating-rail {
  position: fixed;
  right: 28px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 50;
}

.rail-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s var(--ease);
}
.rail-btn:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.rail-btn .rail-label { font-size: 10.5px; color: #333; font-weight: 600; }

.rail-kakao { background: #FEE500; }
.rail-kakao .rail-label { font-size: 10px; color: #391B1B; font-weight: 700; }

.rail-top {
  background: var(--blue);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

/* -------------------------------------------------------- scroll reveal */

.reveal { opacity: 0; }
.reveal.visible { animation: fade-up .7s var(--ease) forwards; }
.reveal.done { animation: none; opacity: 1; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

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

.values-bg { background: #F3F5F7; }
.lawyers-bg { background: #F3F5F7; }
.contact-bg { background: var(--bg); }
.about-bg { background: rgba(42,92,170,.06); }

/* MEMBERS / detail rows (구성원 소개) */
.member-row {
  display: grid;
  grid-template-columns: .45fr 1.55fr;
  gap: 70px;
  align-items: start;
  justify-items: start;
}
.member-photo { width: 100%; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.member-row:hover .member-photo img { transform: scale(1.03); }
.member-role { font-size: 12.5px; color: var(--gold); font-weight: 700; letter-spacing: .1em; margin-bottom: 14px; }
.member-name { font-size: clamp(26px, 2.5vw, 32px); color: #111; font-weight: 600; margin: 0 0 24px; letter-spacing: -0.01em; }
.member-tagline { font-size: 17px; font-weight: 600; color: #111; margin-bottom: 16px; word-break: keep-all; }
.member-bio { font-size: 15.5px; line-height: 1.9; color: #555; margin-bottom: 32px; }
.member-credentials { columns: 2; column-gap: 44px; }
.member-credentials .cred-row { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: #444; break-inside: avoid; margin-bottom: 10px; }
.member-credentials .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.members-list { padding: 110px var(--pad-x-wide); display: flex; flex-direction: column; gap: 110px; }

/* PRACTICE AREAS (subpage list) */
.practice-list { padding: 110px var(--pad-x-wide); display: flex; flex-direction: column; gap: 0; }
.practice-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.practice-row .title { font-size: 26px; font-weight: 600; color: #111; }
.practice-row .desc { font-size: 15.5px; line-height: 1.9; color: #555; margin-bottom: 18px; max-width: 640px; }
.practice-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.practice-tags .tag { padding: 8px 18px; background: #F3F5F7; color: #444; font-size: 13px; font-weight: 500; border-radius: 999px; }

/* --------------------------------------------------------------- utility */

.text-center { text-align: center; }

/* ================================================================ mobile */

@media (max-width: 1200px) {
  .grid-5-tight { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .nav-home, .nav-solid { padding: 20px 24px; }
  .nav-home.scrolled { padding-top: 12px; padding-bottom: 12px; }
  .nav-home .nav-links, .nav-solid .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    display: none;
    z-index: 60;
  }
  .nav-home .nav-links.open, .nav-solid .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-links a::after { display: none; }

  .hero { min-height: 480px; }
  .hero-content .hero-sub { font-size: 14px; }

  /* lighter sky scene on mobile: drop the secondary star layer + ray blend */
  .hero-stars-wrap.wrap-b { display: none; }

  .section, .about-bg { padding: 64px 24px; }
  .section-tight { padding: 40px 24px 0; }
  .page-hero { padding: 64px 24px 40px; }

  .grid-3, .grid-3-tight, .about-grid, .contact-grid, .about-stat-cards { grid-template-columns: 1fr; gap: 32px; }
  .grid-5-tight { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .practice-other { margin-top: 28px; }

  .marquee-item { width: 130px; }
  .marquee-track { gap: 14px; animation-duration: 22s; }
  .about-photo { aspect-ratio: 16/10; }

  .about-stat-cards { margin-top: 40px; gap: 16px; }
  .about-stat-row { flex-direction: column; gap: 20px; }
  .about-stat-row .cell { border-left: none; border-top: 1px solid var(--border); padding: 20px 0 0; }
  .about-stat-row .cell:first-child { border-top: none; padding-top: 0; }

  .why-heading { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; padding-bottom: 28px; }

  .members-list, .practice-list { padding: 64px 24px; }
  .member-row { grid-template-columns: 1fr; }
  .member-photo { max-width: 260px; }
  .member-credentials { columns: 1; }

  .practice-row { grid-template-columns: 1fr; gap: 16px; }

  .cases-grid { grid-template-columns: 1fr; padding: 40px 24px 64px; }

  .site-footer { padding: 40px 24px 24px; }
  .footer-contact { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .legal-content { padding: 56px 24px 90px; }
  .consult-content { padding: 56px 24px 90px; }
  .thanks-content { padding: 90px 24px 110px; }

  .fee-content { padding: 56px 24px 90px; }
  .fee-intro-notes { padding: 22px 20px; margin-bottom: 48px; }
  .fee-section { margin-bottom: 56px; }
  .fee-highlight-box { padding: 20px 20px; }

  .fee-table-wrap { overflow-x: visible; border: none; }
  .fee-table { min-width: 0; }
  .fee-table thead { display: none; }
  .fee-table, .fee-table tbody { display: block; width: 100%; }
  .fee-table tbody tr {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    background: #fff !important;
    padding: 14px 18px;
  }
  .fee-table td {
    display: block;
    width: auto;
    border: none;
    padding: 0;
  }
  .fee-table td:first-child { flex: 1 1 auto; min-width: 0; }
  .fee-table td:last-child { flex: 0 0 auto; white-space: nowrap; text-align: right; }
  .fee-table td[data-label]::before {
    content: attr(data-label) " ";
    display: inline;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--gold);
    margin-right: 2px;
  }

  .floating-rail { right: 16px; bottom: 90px; }
  .rail-btn { width: 54px; height: 54px; }
}

/* ============================================ mobile font-size reduction
   (phones only, ≤768px — buttons/nav keep their size for tap targets) */

@media (max-width: 768px) {
  /* hero-level h1: ~30% smaller than their normal clamp() size */
  .hero-content h1 { font-size: calc(clamp(34px, 4.4vw, 56px) * .70); }
  .page-hero h1 { font-size: calc(clamp(30px, 3.4vw, 40px) * .70); }

  /* section h2-level titles: ~22% smaller */
  .why-title { font-size: calc(clamp(32px, 3.8vw, 46px) * .78); }
  .section-heading h2,
  .value-heading h2 { font-size: calc(clamp(26px, 2.6vw, 34px) * .78); }
  .about-full-copy h2,
  .about-copy h2 { font-size: calc(clamp(24px, 2.4vw, 32px) * .78); }
  .contact-grid h2 { font-size: calc(clamp(24px, 2.3vw, 30px) * .78); }
  .member-name { font-size: calc(clamp(26px, 2.5vw, 32px) * .78); }
  .fee-section-title { font-size: calc(clamp(20px, 2.2vw, 26px) * .78); }
  .legal-inner h2 { font-size: calc(16.5px * .78); }
  .legal-inner .doc-title,
  .thanks-content h1 { font-size: calc(clamp(24px, 2.6vw, 30px) * .78); }

  /* body / description copy: ~15% smaller, never below 12px */
  .hero-content .hero-sub { font-size: max(12px, calc(18.5px * .85)); }
  .about-full-copy p,
  .about-copy p { font-size: max(12px, calc(16px * .85)); }
  .empty-state p,
  .info-rows .info-value,
  .consult-intro p,
  .thanks-content p,
  .legal-inner .lead,
  .member-bio,
  .practice-row .desc { font-size: max(12px, calc(15.5px * .85)); }
  .fee-section-intro { font-size: max(12px, calc(15px * .85)); }
  .page-hero .page-hero-sub,
  .section-heading .heading-sub,
  .strength-card .desc,
  .contact-list .row,
  .legal-inner p,
  .legal-inner li,
  .fee-intro-notes li,
  .fee-highlight-box p { font-size: max(12px, calc(14.5px * .85)); }
  .value-desc { font-size: max(12px, calc(14px * .85)); }
  .lawyer-body .desc,
  .practice-card .desc,
  .case-face-front .case-summary,
  .case-face-back .verdict-text { font-size: max(12px, calc(13.5px * .85)); }
  .member-tagline { font-size: max(12px, calc(17px * .85)); }

  /* small labels: nudge down slightly too, floor at 11px so they stay legible */
  .member-role,
  .lawyer-body .role { font-size: max(11px, calc(12.5px * .9)); }
  .eyebrow,
  .eyebrow-center,
  .page-hero .eyebrow { font-size: max(11px, calc(13px * .9)); }
}

/* ========================================================= reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-content > * { animation: none; opacity: 1; transform: none; }
  .sky-dawn, .sky-sunrise, .hero-glow-outer, .hero-glow-core { opacity: 1; transform: none; }
  .hero-stars-wrap { opacity: 0; }
  .reveal { opacity: 1; }
}
