/* =========================================================
   Moon Trial Lawyer — homepage mockup
   Midnight + moonlight, editorial serif. Static design proof.
   ========================================================= */

:root {
  /* palette */
  --midnight: #0B0F1A;
  --midnight-2: #0E1320;
  --ink: #131826;
  --ink-2: #1A2032;
  --paper: #F6F4EE;
  --paper-2: #EFece2;
  --moonlight: #EAEEF6;
  --moon-dim: #AEB7C7;
  --gold: #D9C38C;
  --gold-deep: #B89B5C;
  /* --gold-deep reads fine on dark backgrounds (~7:1+ on midnight) but fails
     WCAG AA (~2.4-2.7:1, needs 4.5:1) as text/links on the site's light
     paper/cream/white backgrounds. Use --gold-ink for any gold-accented text
     that sits on a light section -- do not reuse --gold-deep for that. */
  --gold-ink: #8A6E38;
  --line-dark: rgba(234,238,246,0.14);
  --line-light: rgba(20,24,36,0.12);

  /* typography */
  --font-display: 'Cormorant Garamond', 'Noto Serif KR', Georgia, serif;
  --font-body: 'Inter', 'Pretendard', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  /* default (light) text vars; overridden per section */
  --text-strong: #1A1F2B;
  --text-muted: #535B6B;
  --eyebrow: var(--gold-ink);

  --wrap: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Korean swaps the whole type system to Korean faces */
body.lang-ko {
  --font-display: 'Noto Serif KR', 'Cormorant Garamond', serif;
  --font-body: 'Pretendard', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--midnight);
  color: var(--moonlight);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: #14110A; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- shared section type ---------- */
.section-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: var(--eyebrow); margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-strong);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.section-lead {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 60ch;
  margin-bottom: 8px;
}
body.lang-ko .section-title { font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
body.lang-ko .hero-title { line-height: 1.28; letter-spacing: -0.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  min-height: 48px;
}
.btn-gold { background: var(--gold); color: #16120A; box-shadow: 0 8px 30px rgba(217,195,140,0.22); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(217,195,140,0.34); background: #E6D2A1; }
.btn-ghost { background: rgba(234,238,246,0.04); border-color: rgba(234,238,246,0.34); color: var(--moonlight); }
.btn-ghost:hover { background: rgba(234,238,246,0.10); border-color: var(--moonlight); transform: translateY(-2px); }
.btn-gold-line { background: transparent; border-color: var(--gold-ink); color: var(--gold-ink); }
.btn-gold-line:hover { background: var(--gold); color: #16120A; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11,15,26,0.9); backdrop-filter: blur(12px) saturate(120%);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 6px 30px rgba(0,0,0,0.28);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 110px; gap: 18px; transition: height .32s var(--ease); }
.site-header.scrolled .header-inner { height: 80px; }
.brand-logo { height: 58px; width: auto; transition: height .32s var(--ease); }
.site-header.scrolled .brand-logo { height: 44px; }
.site-header.scrolled .call-link { padding-top: 9px; padding-bottom: 9px; }
.primary-nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
.primary-nav a { font-size: 0.95rem; font-weight: 500; color: var(--moonlight); opacity: .88; position: relative; padding: 6px 0; transition: opacity .2s; }
.primary-nav a:hover { opacity: 1; }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .25s var(--ease); }
.primary-nav a:hover::after { width: 100%; }
.has-sub { position: relative; }
.subnav {
  position: absolute; top: 100%; left: -14px; min-width: 248px;
  background: rgba(14,19,32,0.97); backdrop-filter: blur(14px);
  border: 1px solid var(--line-dark); border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s var(--ease);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { padding: 9px 14px; border-radius: 8px; opacity: .82; }
.subnav a:hover { background: rgba(234,238,246,0.06); opacity: 1; }
.subnav a::after { display: none; }
/* mega dropdown (Services) */
.subnav.mega { min-width: 500px; left: -14px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; padding: 16px; }
.subnav.mega .sub-col { display: flex; flex-direction: column; list-style: none; }
.subnav.mega .sub-head { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding: 4px 14px 8px; }
.subnav.mega a { padding: 7px 14px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.subnav.mega .sub-lead:hover { background: rgba(217,195,140,0.12); }
.subnav.mega .nav-icon { flex: 0 0 auto; display: inline-flex; width: 16px; height: 16px; color: var(--gold-deep); opacity: 0.85; }
.subnav.mega .nav-icon svg { width: 100%; height: 100%; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-toggle { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(234,238,246,0.06); border: 1px solid var(--line-dark); }
.lang-btn {
  display: flex; align-items: center; gap: 6px; background: none; border: none; border-radius: 999px;
  color: var(--moon-dim); font: inherit; cursor: pointer; padding: 7px 14px; font-weight: 600; font-size: 0.85rem;
  text-decoration: none; transition: color .2s, background .2s;
}
.lang-btn .lang-flag { font-size: 1.05rem; line-height: 1; }
.lang-btn.is-active { color: var(--midnight); background: var(--gold); }
.lang-btn:not(.is-active):hover { color: var(--moonlight); background: rgba(234,238,246,0.08); }
.lang-btn[aria-disabled="true"] { cursor: default; }
.lang-btn[aria-disabled="true"]:hover { color: var(--moon-dim); background: none; }
.call-link { padding: 11px 20px; font-size: 0.92rem; border-color: rgba(234,238,246,0.3); color: var(--moonlight); background: rgba(234,238,246,0.04); }
.call-link:hover { border-color: var(--gold); color: var(--gold); }
.phone-ico { font-size: 0.85rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--moonlight); transition: .3s; }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 168px 0 96px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, #141a2b 0%, var(--midnight) 55%),
    var(--midnight);
}
.hero-glow {
  position: absolute; top: -8%; right: 2%; width: 760px; height: 760px; pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(217,195,140,0.18) 0%,
    rgba(234,238,246,0.10) 38%,
    rgba(234,238,246,0.0) 72%);
  filter: blur(8px);
}
.hero-glow.soft { opacity: .65; right: auto; left: 40%; top: -20%; }
.hero-stars { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.4px 1.4px at 14% 32%, rgba(234,238,246,0.7), transparent),
    radial-gradient(1.2px 1.2px at 62% 18%, rgba(234,238,246,0.5), transparent),
    radial-gradient(1.6px 1.6px at 84% 54%, rgba(217,195,140,0.6), transparent),
    radial-gradient(1.1px 1.1px at 38% 66%, rgba(234,238,246,0.45), transparent);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 22px; }
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.7rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -0.015em;
  color: var(--moonlight); margin-bottom: 26px;
}
.hero-tagline {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.3; letter-spacing: -0.005em;
  color: var(--gold); margin-bottom: 22px; max-width: 46ch;
}
.hero-sub { color: var(--moon-dim); font-size: 1.16rem; max-width: 52ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-fineprint { font-size: 0.85rem; color: rgba(174,183,199,0.7); margin-bottom: 30px; }
.hero-faq-jump { display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.hero-faq-jump:hover { color: var(--gold); }
.page-hero.has-image .hero-faq-jump { color: var(--gold); }
.trust-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.trust-strip li { font-size: 0.82rem; color: var(--moon-dim); position: relative; padding-left: 18px; }
.trust-strip li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 2px; }

.hero-portrait { position: relative; justify-self: center; }
.hero-portrait img {
  position: relative; z-index: 2; width: 420px; max-width: 100%; height: 560px;
  border-radius: 6px;
  object-fit: cover; object-position: center 18%;
  filter: grayscale(0.14) contrast(1.03);
  box-shadow: 0 36px 80px rgba(0,0,0,0.50), 0 0 0 1px rgba(234,238,246,0.06);
}
.portrait-glow {
  position: absolute; z-index: 1; top: -6%; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(234,238,246,0.22), rgba(217,195,140,0.10) 45%, transparent 70%);
  filter: blur(6px);
}
.portrait-glow.soft { width: 360px; height: 360px; top: 4%; }

/* ---------- section base bg theming ---------- */
section { position: relative; }
.insider, .process, .final-cta { background: var(--midnight); }
.insider { background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight-2) 100%); --text-strong: var(--moonlight); --text-muted: var(--moon-dim); --eyebrow: var(--gold); padding: 104px 0; border-top: 1px solid var(--line-dark); }
.practice { background: var(--paper); --text-strong:#1A1F2B; --text-muted:#535B6B; --eyebrow: var(--gold-ink); padding: 104px 0; }
.process { --text-strong: var(--moonlight); --text-muted: var(--moon-dim); --eyebrow: var(--gold); padding: 104px 0; background: radial-gradient(110% 80% at 50% 0%, #121829 0%, var(--midnight) 60%); }
.about { background: var(--paper-2); --text-strong:#1A1F2B; --text-muted:#535B6B; --eyebrow: var(--gold-ink); padding: 104px 0; }
.testimonials { background: var(--paper); --text-strong:#1A1F2B; --text-muted:#535B6B; --eyebrow: var(--gold-ink); padding: 104px 0; }
.faq { background: var(--paper-2); --text-strong:#1A1F2B; --text-muted:#535B6B; --eyebrow: var(--gold-ink); padding: 104px 0; }
.final-cta { --text-strong: var(--moonlight); --text-muted: var(--moon-dim); --eyebrow: var(--gold); padding: 104px 0; overflow: hidden; }

/* ---------- insider pillars ---------- */
.insider .section-lead { margin-bottom: 56px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { padding: 34px 30px; background: rgba(234,238,246,0.03); border: 1px solid var(--line-dark); border-radius: var(--radius); transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.pillar:hover { transform: translateY(-4px); border-color: rgba(217,195,140,0.4); background: rgba(234,238,246,0.05); }
.pillar-num { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); display: block; margin-bottom: 14px; }
.pillar h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--moonlight); margin-bottom: 12px; }
.pillar p { color: var(--moon-dim); font-size: 1rem; }

/* ---------- practice grid ---------- */
.practice .section-lead { margin-bottom: 52px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pa-card {
  display: flex; flex-direction: column; padding: 30px 28px; background: #fff;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  box-shadow: 0 1px 2px rgba(20,24,36,0.04);
}
.pa-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(20,24,36,0.13); border-color: rgba(184,155,92,0.5); }
.pa-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: #1A1F2B; margin-bottom: 10px; }
.pa-card p { color: #535B6B; font-size: 0.98rem; flex-grow: 1; margin-bottom: 18px; }
.pa-more { color: var(--gold-ink); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; }
.pa-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px; background: rgba(184,155,92,0.10); color: var(--gold-ink); }
.pa-icon svg { width: 24px; height: 24px; }
.pa-card-feature { background: linear-gradient(160deg, #12182a 0%, #0E1320 100%); border-color: rgba(217,195,140,0.3); }
.pa-card-feature h3 { color: var(--gold); }
.pa-card-feature p { color: var(--moon-dim); }
.pa-card-feature .pa-more { color: var(--gold); }
.pa-card-feature .pa-icon { background: rgba(217,195,140,0.14); color: var(--gold); }

/* About "How I work" value cards — match the light-section card pattern so the
   three principles read as intentional cards, not bare text columns. */
.value-card {
  padding: 30px 28px; background: #fff;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20,24,36,0.04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.value-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(20,24,36,0.13); border-color: rgba(184,155,92,0.5); }
.value-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: #1A1F2B; margin-bottom: 10px; }
.value-card p { color: #535B6B; font-size: 0.98rem; }
.svc-section.light .value-card h3, .svc-section.dark .value-card h3 { color: #1A1F2B; }
.svc-section.light .value-card p, .svc-section.dark .value-card p { color: #535B6B; }

/* image-based practice cards (homepage) */
.pa-stack { display: grid; gap: 22px; margin-bottom: 38px; }
.pa-feature, .pa-imgcard { position: relative; display: flex; overflow: hidden; border-radius: var(--radius); box-shadow: 0 10px 36px rgba(20,24,36,0.16); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pa-feature > img, .pa-imgcard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s var(--ease); }
/* single smooth full-card gradient (no mid-card seam) */
.pa-feature::after, .pa-imgcard::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(7,10,18,0.95) 0%, rgba(7,10,18,0.85) 30%, rgba(7,10,18,0.55) 54%, rgba(7,10,18,0.2) 78%, rgba(7,10,18,0) 100%); }
.pa-feature:hover, .pa-imgcard:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(20,24,36,0.28); }
.pa-feature:hover > img, .pa-imgcard:hover > img { transform: scale(1.05); }
.pa-overlay { position: relative; z-index: 2; align-self: flex-end; width: 100%; padding: 32px 34px; }
.pa-feature { min-height: 392px; }
.pa-feature .pa-overlay { padding: 40px; max-width: 760px; }
.pa-imgcard { min-height: 320px; }
.pa-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pa-tag { display: inline-block; align-self: flex-start; width: fit-content; max-width: 100%; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: #16120A; background: var(--gold); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.pa-feature h3, .pa-imgcard h3 { font-family: var(--font-display); font-weight: 600; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.pa-feature h3 { font-size: 2.3rem; }
.pa-imgcard h3 { font-size: 1.7rem; }
.pa-title-icon { flex: 0 0 auto; display: inline-flex; width: 0.8em; height: 0.8em; color: var(--gold); }
.pa-title-icon svg { width: 100%; height: 100%; }
.practice .pa-title-icon { color: var(--gold-ink); }
.pa-feature p, .pa-imgcard p { color: rgba(234,238,246,0.86); font-size: 1rem; margin-bottom: 16px; max-width: 56ch; }
.pa-feature .pa-more, .pa-imgcard .pa-more { color: var(--gold); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; }
.practice-cta { text-align: center; }
.practice-cta .btn { min-width: 240px; }
.practice-note { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- process steps ---------- */
.process .section-title { margin-bottom: 56px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.step-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: 14px; line-height: 1; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--moonlight); margin-bottom: 10px; }
.step p { color: var(--moon-dim); font-size: 0.98rem; }

/* ---------- about ---------- */
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; max-width: 420px; height: 520px; border-radius: var(--radius); object-fit: cover; object-position: center 20%; filter: grayscale(0.1); box-shadow: 0 26px 60px rgba(20,24,36,0.22); }
.about-photo .portrait-glow.soft { background: radial-gradient(closest-side, rgba(217,195,140,0.26), transparent 70%); z-index: 0; }
.cred-list { list-style: none; margin: 26px 0 30px; display: grid; gap: 12px; }
.cred-list li { padding-left: 26px; position: relative; color: var(--text-muted); font-size: 1.02rem; }
.svc-section.dark .cred-list li { color: var(--moonlight); }
.cred-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-deep); top: 2px; }

/* ---------- deadline band ---------- */
.deadline { background: linear-gradient(120deg, #15110a 0%, #1c2434 55%, #0E1320 100%); padding: 76px 0; border-top: 1px solid rgba(217,195,140,0.18); border-bottom: 1px solid rgba(217,195,140,0.18); }
.deadline-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.deadline h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.7rem); color: var(--moonlight); margin-bottom: 16px; line-height: 1.12; }
.deadline p { color: var(--moon-dim); font-size: 1.08rem; margin-bottom: 28px; }

/* ---------- testimonials ---------- */
.testimonials .section-title { margin-bottom: 44px; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 30px 28px; }
.stars { color: var(--gold-deep); letter-spacing: 2px; margin-bottom: 16px; font-size: 0.95rem; }
.quote blockquote { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.4; color: #2a313e; margin-bottom: 16px; }
.quote figcaption { font-size: 0.88rem; color: #6b7280; font-weight: 600; letter-spacing: 0.02em; }
.disclaimer { margin-top: 28px; font-size: 0.84rem; color: #8a8f99; max-width: 70ch; }
.reviews-soon { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-muted); padding: 24px 0 8px; }

/* ---------- faq ---------- */
.faq-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; color: #1A1F2B; padding: 22px 40px 22px 0; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.5rem; color: var(--gold-ink); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 40px 24px 0; }
.faq-a p { color: #4a515f; font-size: 1.02rem; }

/* ---------- final cta ---------- */
.final-cta { background: radial-gradient(100% 90% at 20% 10%, #141a2b 0%, var(--midnight) 60%); }
.cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 0.9fr; gap: 60px; align-items: center; }
.contact-lines { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.contact-lines a { font-family: var(--font-display); font-size: 1.5rem; color: var(--moonlight); transition: color .2s; }
.contact-lines a:hover { color: var(--gold); }
.cta-form { background: rgba(234,238,246,0.04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 34px 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; color: var(--moon-dim); margin-bottom: 7px; letter-spacing: 0.04em; }
.field input, .field textarea { width: 100%; background: rgba(11,15,26,0.5); border: 1px solid var(--line-dark); border-radius: 10px; padding: 13px 15px; color: var(--moonlight); font: inherit; font-size: 0.98rem; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; }
.form-note { font-size: 0.78rem; color: rgba(174,183,199,0.8); margin-top: 14px; }

/* ---------- services page + practice-area pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: 156px 0 84px;
  background: radial-gradient(100% 90% at 28% 0%, #141a2b 0%, var(--midnight) 60%), var(--midnight);
  --text-strong: var(--moonlight); --text-muted: var(--moon-dim); --eyebrow: var(--gold); }
.page-hero .hero-glow { top: -18%; left: 50%; right: auto; transform: translateX(-50%); opacity: .6; }
.page-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4.2rem); color: var(--moonlight); line-height: 1.04; letter-spacing: -0.015em; margin-bottom: 20px; position: relative; z-index: 2; max-width: 22ch; }
.page-hero .eyebrow, .page-hero .section-lead, .page-hero .hero-cta { position: relative; z-index: 2; }
.page-hero .section-lead { color: var(--moon-dim); font-size: 1.15rem; max-width: 60ch; margin-bottom: 32px; }
.page-hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
body.lang-ko .page-hero h1 { letter-spacing: -0.02em; line-height: 1.22; }

/* Breadcrumb — sits directly below the fixed header */
.breadcrumb-bar { background: #070a12; padding: 124px 0 14px; border-bottom: 1px solid var(--line-dark); }
.breadcrumb-bar + .page-hero { padding-top: 56px; }
@media (max-width: 860px) { .breadcrumb-bar { padding-top: 100px; } }
@media (max-width: 720px) { .breadcrumb-bar + .page-hero { padding-top: 40px; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--moon-dim); }
.breadcrumb a { color: var(--moon-dim); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(174,183,199,0.4); }
.breadcrumb .current { color: var(--moonlight); }

/* Generic services-page sections */
.svc-section { padding: 96px 0; }
.svc-section.light { background: var(--paper); color: #1A1F2B; --text-strong:#1A1F2B; --text-muted:#535B6B; --eyebrow: var(--gold-ink); }
.svc-section.light h1, .svc-section.light h2, .svc-section.light h3, .svc-section.light h4, .svc-section.light p, .svc-section.light li { color: inherit; }
.svc-section.light .section-lead, .svc-section.light p.section-lead { color: #535B6B; }
/* .pa-feature / .pa-imgcard / .pa-card-feature keep their own dark-overlay text
   colors regardless of which .svc-section variant wraps them. The blanket
   "color:inherit" reset above (needed for plain prose like contact info) has
   higher specificity than these components' own color rules, so once a card
   is embedded in a .svc-section it silently inherited near-black prose color
   onto near-black photo overlays / dark card gradients -- effectively
   invisible text. Restored explicitly, for both .light and .dark, so this
   can't recur the next time a component gets nested in a new section type. */
.svc-section.light .pa-feature h3, .svc-section.dark .pa-feature h3,
.svc-section.light .pa-imgcard h3, .svc-section.dark .pa-imgcard h3 { color: #fff; }
.svc-section.light .pa-feature p, .svc-section.dark .pa-feature p,
.svc-section.light .pa-imgcard p, .svc-section.dark .pa-imgcard p { color: rgba(234,238,246,0.86); }
/* .pa-card-feature cards ALSO carry the plain .pa-card class (see
   page-services.php's $is_feature flag) -- ".pa-card-feature h3" and
   ".pa-card h3" restores below have IDENTICAL specificity once both are
   prefixed with ".svc-section.light"/".dark", so whichever is declared
   LATER in this file silently wins and can clobber the other. That's
   exactly what happened here: the .pa-card restore (added after this one)
   overrode the .pa-card-feature gold text back to near-black-on-near-black.
   Fixed by keeping .pa-card in the selector so this rule is structurally
   MORE specific than the plain .pa-card restore, not just later in file
   order -- this can't lose a future reordering. */
.svc-section.light .pa-card.pa-card-feature h3, .svc-section.dark .pa-card.pa-card-feature h3 { color: var(--gold); }
.svc-section.light .pa-card.pa-card-feature p, .svc-section.dark .pa-card.pa-card-feature p { color: var(--moon-dim); }
/* .pa-card (the plain white card, not the dark -feature variant) and
   .section-eyebrow currently render correctly by coincidence -- the section's
   own inherited color/--eyebrow value happens to match their intended color.
   Restore explicitly so a future edit to the section's ambient color can't
   silently break these too. */
.svc-section.light .pa-card h3, .svc-section.dark .pa-card h3 { color: #1A1F2B; }
.svc-section.light .pa-card p, .svc-section.dark .pa-card p { color: #535B6B; }
.svc-section.light .section-eyebrow, .svc-section.dark .section-eyebrow { color: var(--eyebrow); }
.svc-section.dark { background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight-2) 100%); color: var(--moonlight); --text-strong: var(--moonlight); --text-muted: var(--moon-dim); --eyebrow: var(--gold); }
.svc-section .section-lead { margin-bottom: 44px; }
.svc-section .card-grid, .svc-section .pa-row { margin-top: 8px; }

/* Practice-area page body sections */
.area-intro { background: var(--paper); --text-strong:#1A1F2B; --text-muted:#535B6B; --eyebrow: var(--gold-ink); padding: 96px 0; }
.area-statute { background: var(--paper-2); --text-strong:#1A1F2B; --text-muted:#535B6B; --eyebrow: var(--gold-ink); padding: 96px 0; }
.area-deadlines { background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight-2) 100%); --text-strong: var(--moonlight); --text-muted: var(--moon-dim); --eyebrow: var(--gold); padding: 96px 0; }
.area-recover { background: var(--paper); --text-strong:#1A1F2B; --text-muted:#535B6B; --eyebrow: var(--gold-ink); padding: 96px 0; }
.area-why { background: linear-gradient(180deg, var(--midnight-2) 0%, var(--midnight) 100%); --text-strong: var(--moonlight); --text-muted: var(--moon-dim); --eyebrow: var(--gold); padding: 96px 0; position: relative; overflow: hidden; }
.area-faq { background: var(--paper-2); --text-strong:#1A1F2B; --text-muted:#535B6B; --eyebrow: var(--gold-ink); padding: 96px 0; }
.area-related { background: var(--paper); --text-strong:#1A1F2B; --text-muted:#535B6B; --eyebrow: var(--gold-ink); padding: 96px 0; }

.area-section-title { font-family: var(--font-display); font-weight: 500; color: var(--text-strong); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 18px; max-width: 26ch; }
.area-prose { color: var(--text-muted); font-size: 1.07rem; max-width: 70ch; }
.area-prose p { margin-bottom: 16px; }
.area-prose p:last-child { margin-bottom: 0; }
.area-prose strong { color: var(--text-strong); font-weight: 600; }

/* Statute citation box */
.statute-box { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; max-width: 920px; margin-top: 36px; padding: 28px 32px; background: #fff; border: 1px solid var(--line-light); border-left: 3px solid var(--gold-deep); border-radius: var(--radius); box-shadow: 0 4px 18px rgba(20,24,36,0.06); }
.statute-box .statute-label { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 6px; }
.statute-box .statute-name { font-family: var(--font-display); font-size: 1.25rem; color: #1A1F2B; line-height: 1.25; }
.statute-box .statute-detail { color: #4a515f; font-size: 0.98rem; }

/* Deadline cards */
.deadline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 40px; }
.deadline-card { background: rgba(234,238,246,0.04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px 22px; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.deadline-card:hover { transform: translateY(-3px); border-color: rgba(217,195,140,0.45); }
.deadline-card .duration { font-family: var(--font-display); font-size: 2rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 10px; letter-spacing: -0.01em; }
.deadline-card .label { font-family: var(--font-display); font-size: 1.2rem; color: var(--moonlight); margin-bottom: 8px; font-weight: 600; }
.deadline-card .detail { color: var(--moon-dim); font-size: 0.92rem; line-height: 1.5; }

/* Recover list */
.recover-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; margin-top: 36px; max-width: 920px; }
.recover-grid li { list-style: none; position: relative; padding-left: 28px; font-size: 1rem; color: #2a313e; line-height: 1.55; }
.recover-grid li::before { content: "✦"; position: absolute; left: 0; top: 1px; color: var(--gold-deep); font-size: 0.85rem; }

/* Why Moon pillar (single big block) */
.why-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; max-width: 1080px; }
.why-content h2 { font-family: var(--font-display); font-weight: 500; color: var(--moonlight); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.01em; }
.why-content .area-prose { color: var(--moon-dim); }
.area-why .hero-glow { top: -10%; right: -10%; opacity: .4; }

/* Related areas */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.related-card { display: block; padding: 28px 26px; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20,24,36,0.10); border-color: rgba(184,155,92,0.4); }
.related-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: #1A1F2B; margin-bottom: 8px; }
.related-card p { color: #535B6B; font-size: 0.95rem; margin-bottom: 14px; line-height: 1.5; }
.related-card .pa-more { color: var(--gold-ink); font-weight: 600; font-size: 0.88rem; }

/* Korean PI page accent */
.area-hero-bilingual h1 { display: block; }
.area-hero-bilingual .h1-ko { display: block; font-family: var(--font-display); font-weight: 500; color: var(--gold); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 8px; letter-spacing: -0.015em; }
body.lang-ko .area-hero-bilingual .h1-ko { display: none; }

/* Page hero with feature image (right of text) */
.page-hero.has-image .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.page-hero.has-image .hero-text { position: relative; z-index: 2; }
.page-hero-portrait { position: relative; justify-self: center; }
.page-hero-portrait img {
  position: relative; z-index: 2; width: 420px; max-width: 100%; height: 540px;
  border-radius: 6px;
  object-fit: cover; object-position: center 30%;
  filter: grayscale(0.12) contrast(1.03);
  box-shadow: 0 36px 80px rgba(0,0,0,0.50), 0 0 0 1px rgba(234,238,246,0.06);
}
.page-hero-portrait .portrait-glow { width: 460px; height: 460px; top: -10%; opacity: 0.55; }

/* Inline James portrait in the why-section (visual break + face on every sub-page) */
.area-why .why-content { grid-template-columns: 0.62fr 1fr; gap: 56px; }
.area-why-photo { position: relative; }
.area-why-photo img {
  width: 100%; max-width: 340px; height: 440px;
  object-fit: cover; object-position: center 20%;
  border-radius: var(--radius);
  filter: grayscale(0.1);
  box-shadow: 0 22px 50px rgba(0,0,0,0.40);
}
.area-why-photo::before {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(217,195,140,0.22), transparent 70%);
  filter: blur(8px); pointer-events: none; z-index: 0;
}

@media (max-width: 1024px) {
  .page-hero.has-image .wrap { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-portrait { order: 1; }
  /* Mobile hero image = landscape (was 480x360 portrait-leaning; users found it too tall). */
  .page-hero-portrait img { width: 100%; max-width: 560px; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; object-position: center center; }
  .page-hero-portrait .portrait-glow { width: 320px; height: 320px; }
  .area-why .why-content { grid-template-columns: 1fr; }
  .area-why-photo { max-width: 300px; margin: 0 auto; }
  .area-why-photo img { height: 380px; }
}
@media (max-width: 720px) {
  .page-hero.has-image { padding-bottom: 56px; }
  /* Small mobile: same landscape ratio, full-width bleed within the wrap. */
  .page-hero-portrait img { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; object-position: center center; }
  .page-hero-portrait .portrait-glow { width: 240px; height: 240px; }
}

/* ======================================================================
   Per-page visual elements: pull-quote, credentials strip, mid-banner,
   icon-cards, concept callout — same look on every sub-page, content varies
   ====================================================================== */

/* Inline SVG icon: 22px square in the brand gold tone, stroke-only */
.svg-icon { width: 22px; height: 22px; stroke: var(--gold-deep); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.area-deadlines .svg-icon { stroke: var(--gold); width: 26px; height: 26px; }

/* Deadline cards now carry an icon above the duration number */
.deadline-card .deadline-icon { display: inline-flex; padding: 8px; border-radius: 999px; background: rgba(217,195,140,0.10); border: 1px solid rgba(217,195,140,0.18); margin-bottom: 16px; }

/* Recover items: icon-card grid replaces bullet list */
.recover-grid.icon-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; max-width: 960px; }
.recover-grid.icon-cards .recover-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 20px; background: #fff; border: 1px solid var(--line-light); border-radius: 12px; box-shadow: 0 1px 2px rgba(20,24,36,0.03); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.recover-grid.icon-cards .recover-item:hover { border-color: rgba(184,155,92,0.45); transform: translateY(-2px); }
.recover-grid.icon-cards .recover-item .icon-wrap { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(217,195,140,0.10); border: 1px solid rgba(184,155,92,0.20); }
.recover-grid.icon-cards .recover-item .icon-wrap .svg-icon { stroke: var(--gold-deep); width: 22px; height: 22px; }
.recover-grid.icon-cards .recover-item .recover-text { color: #2a313e; font-size: 1rem; line-height: 1.5; }
.recover-grid.icon-cards .recover-item .recover-text::before { content: none; }

/* Statute pull-quote: large gold display number + label */
.pull-quote { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 880px; margin-top: 44px; padding: 36px 40px; background: linear-gradient(180deg, #fff 0%, #faf7ef 100%); border-left: 3px solid var(--gold); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(20,24,36,0.06); }
.pull-quote .pq-eyebrow { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.pull-quote .pq-number { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.6rem); color: #1A1F2B; line-height: 1.04; letter-spacing: -0.015em; }
.pull-quote .pq-detail { color: #535B6B; font-size: 1.05rem; max-width: 60ch; }

/* Concept callout — small structured visual showing the area's signature legal concept */
.concept-callout { margin-top: 40px; max-width: 920px; padding: 30px 32px; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(20,24,36,0.04); }
.concept-callout .cc-eyebrow { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 12px; }
.concept-callout .cc-title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: #1A1F2B; margin-bottom: 18px; line-height: 1.2; }
.concept-callout .cc-tracks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.concept-callout .cc-track { padding: 16px 18px; background: #faf7ef; border: 1px solid rgba(184,155,92,0.22); border-radius: 10px; }
.concept-callout .cc-track .cc-step { display: inline-block; font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 8px; }
.concept-callout .cc-track .cc-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #1A1F2B; margin-bottom: 6px; }
.concept-callout .cc-track .cc-desc { font-size: 0.92rem; color: #535B6B; line-height: 1.5; }

/* Mid-page banner: landscape strip between statute and deadlines */
.mid-banner { padding: 0; }
.mid-banner .mid-banner-frame { position: relative; height: 360px; overflow: hidden; }
.mid-banner .mid-banner-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: grayscale(0.18) contrast(1.05) brightness(0.92); }
.mid-banner .mid-banner-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,26,0.55) 0%, rgba(11,15,26,0.15) 50%, rgba(11,15,26,0.75) 100%); pointer-events: none; }
.mid-banner .mid-banner-caption { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; text-align: center; font-family: var(--font-display); color: var(--moonlight); font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: -0.005em; padding: 0 24px; text-shadow: 0 2px 14px rgba(0,0,0,0.6); }

/* Credentials strip — single shared component, identical on every page */
.credentials-strip { padding: 48px 0; background: var(--midnight); --text-strong: var(--moonlight); --text-muted: var(--moon-dim); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.credentials-strip .cs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: center; }
.credentials-strip .cs-item { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.credentials-strip .cs-item .svg-icon { stroke: var(--gold); width: 24px; height: 24px; }
.credentials-strip .cs-item .cs-text { font-size: 0.92rem; color: var(--moonlight); font-weight: 500; line-height: 1.3; }

/* Responsive */
@media (max-width: 1024px) {
  .statute-box { grid-template-columns: 1fr; gap: 8px; padding: 24px 26px; }
  .why-content { grid-template-columns: 1fr; gap: 28px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .credentials-strip .cs-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .mid-banner .mid-banner-frame { height: 300px; }
}
@media (max-width: 720px) {
  .related-grid { grid-template-columns: 1fr; }
  .recover-grid, .recover-grid.icon-cards { grid-template-columns: 1fr; }
  .page-hero { padding: 116px 0 64px; }
  .area-intro, .area-statute, .area-deadlines, .area-recover, .area-why, .area-faq, .area-related { padding: 64px 0; }
  .credentials-strip { padding: 36px 0; }
  .credentials-strip .cs-grid { grid-template-columns: 1fr; gap: 16px; }
  .pull-quote { padding: 26px 24px; }
  .concept-callout { padding: 24px 22px; }
  .mid-banner .mid-banner-frame { height: 240px; }
}

/* ---------- footer ---------- */
.site-footer { background: #070a12; padding: 76px 0 30px; border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { height: 100px; width: auto; max-width: 100%; opacity: 0.92; margin-bottom: 20px; }
.footer-slogan { font-family: var(--font-display); font-size: 1.18rem; color: var(--moon-dim); max-width: 34ch; margin-bottom: 18px; line-height: 1.3; }
.footer-social {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
}
.footer-social-link {
  display: flex;
  color: var(--gold-deep);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer-social-link svg {
  width: 20px;
  height: 20px;
  color: inherit;
  fill: currentColor;
  transition: color .25s var(--ease);
}
.footer-social-link svg rect,
.footer-social-link svg circle:not(.footer-social-dot) { fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-social-link .footer-social-dot { fill: currentColor; stroke: none; }
.footer-social-link:hover {
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-social-link:focus-visible {
  color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}
/* .footer-social-link is reused on the light Contact-page section too (see
   page-contact.php). --gold-deep/--gold are dark-background tokens -- on a
   light/cream section they'd fail contrast, the exact bug class fixed
   elsewhere on this project. Override with light-safe tokens at specificity
   that beats the base hover/focus rules outright (not by declaration order). */
.svc-section.light .footer-social-link,
.svc-section.light .footer-social-link:hover,
.svc-section.light .footer-social-link:focus-visible { color: var(--gold-ink); }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a, .footer-contact li { color: var(--moon-dim); font-size: 0.94rem; }
.footer-col a:hover { color: var(--moonlight); }
.footer-bottom { padding-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.footer-legal { font-size: 0.82rem; color: var(--moon-dim); }
.footer-disclaimer { font-size: 0.78rem; color: rgba(174,183,199,0.85); max-width: 90ch; }

/* ---------- sticky mobile bar ---------- */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 90; }
.mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; font-weight: 600; font-size: 0.95rem; min-height: 56px; }
.mb-call { background: var(--gold); color: #16120A; }
.mb-consult { background: var(--ink-2); color: var(--moonlight); border-top: 1px solid var(--line-dark); }

/* ---------- reveal motion ----------
   IMPORTANT: opacity:0 initial state is gated on `.has-js` on <html>.
   If JS never runs, fails, or the IntersectionObserver misfires for a
   particular element, text stays fully readable (WCAG AA baseline). The
   inline <head> script flips `no-js` -> `has-js` before first paint, so
   the fade animation still runs in the normal case. */
.reveal { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.has-js .reveal { opacity: 0; transform: translateY(22px); }
.has-js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .has-js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1.2fr 0.8fr; gap: 36px; }
  .pillars, .card-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .call-link { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { height: 84px; }
  .brand-logo { height: 46px; }
  .site-header.scrolled .brand-logo { height: 36px; }
  .hero { padding: 112px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-portrait { order: -1; }
  .hero-portrait img { width: 100%; max-width: 480px; height: 420px; border-radius: 6px; object-position: center 22%; }
  .portrait-glow { width: 340px; height: 340px; }
  .hero-copy { position: relative; z-index: 5; }
  .about-inner, .faq-inner, .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .faq-head { position: static; }
  .about-photo { max-width: 360px; margin: 0 auto; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 56px; }
  section { padding-top: 76px !important; padding-bottom: 76px !important; }
  .pa-row { grid-template-columns: 1fr; }
  .pa-feature { min-height: 340px; }
  .pa-feature .pa-overlay { padding: 28px; }
  .pa-feature h3 { font-size: 1.9rem; }
  .pa-imgcard { min-height: 260px; }
  .site-header.scrolled .header-inner { height: 58px; }
  /* Flag-only lang toggle: CJK labels break per-character when the pill runs
     out of width, wrapping "한국어" onto 3 lines into the hamburger button.
     Text stays in the DOM (visually hidden) so screen readers still get it. */
  .header-actions { gap: 10px; }
  .lang-toggle { gap: 2px; padding: 3px; }
  .lang-btn { padding: 8px 10px; }
  .lang-btn .lang-flag { font-size: 1.2rem; }
  .lang-btn .lang-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .pillars, .card-grid, .quote-grid, .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .header-inner { height: 76px; }
  .brand-logo { height: 42px; }
}

/* ---------- mobile nav drawer ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: rgba(8,11,18,0.98); backdrop-filter: blur(8px);
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; padding: 84px 30px 48px; gap: 0; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu > * { flex-shrink: 0; }
/* hierarchy: parent (top-level) vs group label vs child */
.mobile-menu .mm-parent { font-family: var(--font-display); font-size: 1.5rem; color: var(--moonlight); padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .mm-group { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding: 18px 0 8px; }
.mobile-menu .mm-lead { font-family: var(--font-display); font-size: 1.2rem; color: var(--moonlight); padding: 10px 0 10px 18px; border-bottom: 1px solid rgba(234,238,246,0.07); }
.mobile-menu .mm-child { font-family: var(--font-body); font-size: 1.04rem; color: var(--moon-dim); padding: 11px 0 11px 18px; border-bottom: 1px solid rgba(234,238,246,0.07); }
/* mm-lead/mm-child are cloned from the desktop mega-dropdown links (app.js
   cloneNode), so they inherit the .nav-icon <span><svg> markup too -- but the
   desktop icon sizing rule is scoped to .subnav.mega, which doesn't match
   here. Without this, the SVGs (no width/height attrs, sized only by that
   scoped CSS) fall back to the browser's ~300x150 default and break the
   mobile drawer layout. Re-declare the same treatment for this context. */
.mobile-menu .mm-lead, .mobile-menu .mm-child { display: flex; align-items: center; gap: 12px; }
.mobile-menu .nav-icon { flex: 0 0 auto; display: inline-flex; width: 18px; height: 18px; color: var(--gold-deep); opacity: 0.85; }
.mobile-menu .nav-icon svg { width: 100%; height: 100%; }
.mobile-menu .mm-lead .nav-icon { color: var(--gold); opacity: 1; }
.mobile-menu .mm-call { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--gold); padding-top: 24px; }
/* accordion groups in the mobile drawer */
.mobile-menu .mm-acc-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; border-top: 1px solid var(--line-dark); cursor: pointer; font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding: 20px 0 16px; margin-top: 4px; }
.mobile-menu .mm-acc-toggle .mm-chev { font-size: 1.6rem; line-height: 1; font-weight: 300; transition: transform .3s var(--ease); }
.mobile-menu .mm-acc-toggle[aria-expanded="true"] .mm-chev { transform: rotate(45deg); }
.mobile-menu .mm-acc { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.mobile-menu .mm-acc.open { max-height: 1200px; }
.mobile-menu .mm-acc a { display: block; }
.mobile-menu .mm-close { position: absolute; top: 24px; right: 26px; background: none; border: none; color: var(--moonlight); font-size: 2rem; cursor: pointer; line-height: 1; }

/* =========================================================
   Editorial practice cards (homepage only)
   Overrides the default `.pa-feature` / `.pa-imgcard` "photo + dark gradient
   overlay + white text on top" look on the homepage practice section. That
   template pattern reads as generic AI-website; here we split image from text
   into an editorial magazine layout: image on top (or side for the feature),
   thin gold hairline as a masthead detail, big serif title, cream card
   background. Services page keeps the default look (its cards live inside
   `.svc-section.*` which is not scoped here).
   ========================================================= */
.practice .pa-stack { gap: 32px; }
.practice .pa-row { gap: 26px; }

.practice .pa-feature,
.practice .pa-imgcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFCF4;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(20,24,36,0.05);
  min-height: auto;
}
.practice .pa-feature::after,
.practice .pa-imgcard::after { content: none; display: none; background: none; }

.practice .pa-feature { display: grid; grid-template-columns: 1.05fr 1fr; }
.practice .pa-feature > img,
.practice .pa-imgcard > img {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .6s var(--ease);
}
.practice .pa-feature > img { min-height: 460px; }
.practice .pa-imgcard > img { aspect-ratio: 4/3; height: auto; }

.practice .pa-overlay {
  position: static;
  align-self: stretch;
  z-index: auto;
  background: none;
  color: #1A1F2B;
}
.practice .pa-feature .pa-overlay {
  padding: 56px 52px;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: none;
}
.practice .pa-imgcard .pa-overlay {
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-light);
  position: relative;
}
.practice .pa-imgcard .pa-overlay::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 36px;
  height: 2px;
  background: var(--gold-deep);
}

.practice .pa-tag {
  align-self: flex-start;
  background: none;
  color: var(--gold-ink);
  border: 1px solid rgba(184,155,92,0.5);
  padding: 4px 12px;
  margin-bottom: 22px;
  font-size: 0.7rem;
  font-weight: 600;
}
.practice .pa-feature h3 {
  color: #1A1F2B;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.practice .pa-imgcard h3 {
  color: #1A1F2B;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.practice .pa-feature p,
.practice .pa-imgcard p {
  color: #4a515f;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: none;
}
.practice .pa-feature p { max-width: 44ch; font-size: 1.05rem; }
.practice .pa-feature .pa-more,
.practice .pa-imgcard .pa-more { color: var(--gold-ink); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em; }

.practice .pa-feature:hover,
.practice .pa-imgcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(20,24,36,0.10);
  border-color: rgba(184,155,92,0.4);
}
.practice .pa-feature:hover > img,
.practice .pa-imgcard:hover > img { transform: scale(1.03); }

@media (max-width: 900px) {
  .practice .pa-feature { grid-template-columns: 1fr; }
  .practice .pa-feature > img { min-height: 320px; aspect-ratio: 4/3; height: auto; }
  .practice .pa-feature .pa-overlay { padding: 36px 28px; }
  .practice .pa-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Testimonials redesign (homepage) — editorial pull-quote look
   Replaces the plain white-card/big-stars pattern with a cream card,
   large gold quote glyph as decoration, italic serif blockquote, and
   an attribution row separated by a gold hairline.
   ========================================================= */
.testimonials .quote-grid { gap: 28px; }
.testimonials .quote {
  position: relative;
  background: #FFFCF4;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  padding: 32px 34px 30px;
  box-shadow: 0 1px 3px rgba(20,24,36,0.04);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.testimonials .quote .stars {
  color: var(--gold-ink);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.testimonials .quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #1A1F2B;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
  padding-left: 26px;
}
.testimonials .quote blockquote::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  left: -6px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.testimonials .quote figcaption {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 700;
  padding-top: 18px;
  border-top: 1px solid rgba(184,155,92,0.28);
  position: relative;
  z-index: 1;
}
.testimonials .quote figcaption::before { content: "— "; color: var(--gold-ink); }
.testimonials .quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(20,24,36,0.09);
  border-color: rgba(184,155,92,0.45);
}
.testimonials .disclaimer {
  color: #6b7280;
  font-size: 0.82rem;
  max-width: 68ch;
  margin: 40px auto 0;
  text-align: center;
  line-height: 1.6;
}

/* =========================================================
   Process steps — staggered scroll-in animation
   Each step fades + slides up in sequence when it enters view. The big
   serif number scales in from 0.7 with a slight lag for a small "kicker"
   moment. `.has-js` gate mirrors the base .reveal rules so text stays
   readable if JS ever fails.
   ========================================================= */
.process .step { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.has-js .process .step { transform: translateY(30px); }
.has-js .process .step.in { transform: translateY(0); }
.has-js .process .step:nth-child(1) { transition-delay: 0ms;   }
.has-js .process .step:nth-child(2) { transition-delay: 140ms; }
.has-js .process .step:nth-child(3) { transition-delay: 280ms; }
.has-js .process .step:nth-child(4) { transition-delay: 420ms; }
.process .step-num {
  display: inline-block;
  transform-origin: left center;
  transition: transform 1s var(--ease) .3s, opacity .8s var(--ease) .3s;
}
.has-js .process .step .step-num { transform: scale(0.68); opacity: 0; }
.has-js .process .step.in .step-num { transform: scale(1); opacity: 1; }
.process .step { position: relative; }
.process .step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 1s var(--ease) .5s;
}
.has-js .process .step.in::before { width: 44px; }
@media (prefers-reduced-motion: reduce) {
  .has-js .process .step, .has-js .process .step .step-num, .has-js .process .step::before { transition: none; }
  .has-js .process .step { transform: none; }
  .has-js .process .step .step-num { transform: none; opacity: 1; }
  .has-js .process .step.in::before { width: 44px; }
}

/* =========================================================
   Pillar hover — slowed to an aesthetic pace
   Also adds a small gold accent line that grows in from the left on hover
   as a subtle editorial detail.
   ========================================================= */
.pillar {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease,
              border-color .2s ease,
              background .2s ease,
              box-shadow .2s ease;
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(217,195,140,0.55);
  background: rgba(234,238,246,0.055);
  box-shadow: 0 22px 52px rgba(0,0,0,0.28);
}
.pillar::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: 28px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}
.pillar:hover::after { width: 56px; }

/* =========================================================
   Process step hover — same aesthetic pace as pillar/header links
   Lifts the step card, brightens the border hairline to gold, and
   accelerates the top gold hairline out to full width from its
   scroll-in position.
   ========================================================= */
.process .step {
  padding-top: 22px;
  padding-right: 8px;
  transition: opacity .8s var(--ease),
              transform .2s ease,
              border-top-color .2s ease;
  cursor: default;
}
.process .step:hover {
  transform: translateY(-3px);
  border-top-color: rgba(217,195,140,0.55);
}
.process .step:hover::before { width: 100%; transition-delay: 0s; }
.process .step:hover .step-num { color: #F0E1B4; transition: color .2s ease; }
.process .step .step-num { transition: color .2s ease, transform 1s var(--ease) .3s, opacity .8s var(--ease) .3s; }

/* =========================================================
   Light-context overrides for the "dark-designed" classes
   `.contact-lines`, `.cta-form`, `.form-note` were built for the homepage
   `.final-cta` (midnight background). When the same markup is reused inside
   an `.svc-section.light` (cream), the hard-coded cream text becomes
   cream-on-cream = invisible. These overrides flip every color to a
   light-context value so the classes work in either context.
   ========================================================= */
.svc-section.light .contact-lines a { color: #1A1F2B; }
.svc-section.light .contact-lines a:hover { color: var(--gold-ink); }
.svc-section.light .contact-lines .contact-hours,
.svc-section.light .contact-lines .contact-office { color: #535B6B; }
.svc-section.light .contact-lines .contact-office .office-line { color: #1A1F2B; }

.svc-section.light .cta-form {
  background: #fff;
  border: 1px solid var(--line-light);
  box-shadow: 0 1px 3px rgba(20,24,36,0.04);
}
.svc-section.light .cta-form label { color: #1A1F2B; }
.svc-section.light .cta-form input,
.svc-section.light .cta-form textarea {
  color: #1A1F2B;
  background: #FBF9F2;
  border: 1px solid rgba(20,24,36,0.14);
}
.svc-section.light .cta-form input:focus,
.svc-section.light .cta-form textarea:focus {
  border-color: var(--gold-deep);
  background: #fff;
  outline: none;
}
.svc-section.light .cta-form input::placeholder,
.svc-section.light .cta-form textarea::placeholder { color: #6b7280; }
.svc-section.light .cta-form .form-note { color: #535B6B; }

.svc-section.light .response-note {
  color: #535B6B;
  font-size: 0.95rem;
  text-align: center;
  max-width: 60ch;
  margin: 44px auto 0;
  line-height: 1.6;
}
