/* Sérgio Ruiz — advogado | Direito das Sucessões e Planejamento Patrimonial
   Identidade real: roxo #6B4367 / mostarda #E28F26 / cinzas #666868 · #898989
   Sistema: hero/header/footer em tom profundo (plum-charcoal), corpo de conteúdo em creme claro.
   Tipografia: Plus Jakarta Sans (estrutura/institucional) + Fraunces itálico (acento humano/legado).

   Tema dia/noite: NOITE (padrão) = roxo lidera nos elementos estruturais/texto de destaque,
   mostarda oculta em preenchimentos (botões/badges). DIA = inverte a liderança — mostarda passa a
   liderar texto/estrutura, roxo assume os preenchimentos. As superfícies (header/hero/footer escuros,
   conteúdo claro) permanecem as mesmas nos dois temas — só a cor de marca líder muda. Os tons de
   "ink" (texto) usados aqui foram escurecidos/clareados especificamente pra manter contraste AA nas
   duas direções — nunca usar os hex crus da marca como texto pequeno sobre fundo claro/escuro. */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&family=Fraunces:ital,opsz,wght@0,9..144,500;1,9..144,500;1,9..144,600&display=swap');

:root {
  /* raw brand hues — only for backgrounds/fills/decoration, never small text directly */
  --purple: #6B4367;
  --purple-light: #8B6D87;
  --purple-deep: #4A2D48;
  --gold: #E28F26;
  --gold-light: #EAAC63;
  --gold-deep: #9A5F15;
  --gray-dark: #666868;
  --gray-light: #898989;

  /* text-safe derived shades (WCAG AA verified against their target background) */
  --purple-ink-on-dark: #A975A3;   /* purple lightened — readable on bg-dark, ~4.6:1 */
  --gold-ink-on-light: #955C14;    /* gold darkened — readable on bg-light/tint, ~4.7:1 */

  /* fixed surfaces — identical in both themes, only the accent leadership below swaps */
  --bg-dark: #241A26;
  --surface-dark: #2E2233;
  --surface-dark-2: #392A3F;
  --border-dark: #4B3B4F;
  --ink-on-dark: #F8F4F2;
  --ink-on-dark-dim: #CBBCC7;

  --bg-light: #FAF6F3;
  --surface-light: #FFFFFF;
  --surface-light-2: #F3ECEF;
  --border-light: #E6DBE1;
  --ink-on-light: #2A2129;
  --ink-on-light-dim: #666868;

  /* ---- "band" tokens: the non-photo emphasis sections (services strip, page-hero, footer,
     contact panel) — these DO flip fully between night/day, unlike bg-dark/light above which
     stay fixed for photo-backed sections (hero, abordagem) that always need a dark scrim. ---- */
  --band-bg: #241A26;
  --band-surface: #2E2233;
  --band-surface-2: #392A3F;
  --band-border: #4B3B4F;
  --band-ink: #F8F4F2;
  --band-ink-dim: #CBBCC7;
  --band-ink-accent: #EAAC63;
  --band-border-soft: rgba(255,255,255,0.1);
  --header-scrolled-bg: rgba(36, 26, 38, 0.86);
  --header-scrolled-border: rgba(255,255,255,0.08);
  /* dedicated gradient for the featured service card — needs white text AA-safe across
     the whole gradient span, which the raw role-a-vivid/light gold end (#E28F26) can't
     guarantee (2.56:1 with white). Night reuses the purple role pair (already safe). */
  --featured-grad-a: var(--role-a-vivid);
  --featured-grad-b: var(--role-a-vivid-deep);

  /* ---- role tokens: role-a = leading brand color (text/structure), role-b = supporting (fills) ---- */
  --role-a-ink-on-light: var(--purple);
  --role-a-ink-on-dark: var(--gold-light);
  --role-a-vivid: var(--purple);
  --role-a-vivid-light: var(--purple-light);
  --role-a-vivid-deep: var(--purple-deep);
  --role-b-vivid: var(--gold);
  --role-b-vivid-light: var(--gold-light);
  --fill-ink: #241A26; /* text color painted onto role-b-vivid fills (badges/buttons) */
  --btn-shadow: rgba(226, 143, 38, 0.45);

  --shadow-soft: 0 24px 60px -20px rgba(42, 20, 40, 0.35);
  --shadow-tight: 0 8px 24px -10px rgba(42, 20, 40, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
  --radius: 4px;
  --radius-lg: 18px;
}

/* DIA — mostarda lidera, roxo assume os preenchimentos */
:root[data-theme="light"] {
  --role-a-ink-on-light: var(--gold-ink-on-light);
  --role-a-ink-on-dark: var(--purple-ink-on-dark);
  --role-a-vivid: var(--gold);
  --role-a-vivid-light: var(--gold-light);
  --role-a-vivid-deep: var(--gold-deep);
  --role-b-vivid: var(--purple);
  --role-b-vivid-light: var(--purple-light);
  --fill-ink: #FFFFFF;
  --btn-shadow: rgba(107, 67, 103, 0.4);

  /* DIA — bands flip to light, warm, mustard-tinted (mostarda lidera) */
  --band-bg: #FBF2E4;
  --band-surface: #FFFFFF;
  --band-surface-2: #F7E9D0;
  --band-border: #E9D6B4;
  --band-ink: #2A2129;
  --band-ink-dim: #6B5A45;
  --band-ink-accent: #955C14;
  --band-border-soft: rgba(42, 33, 41, 0.1);
  --header-scrolled-bg: rgba(251, 242, 228, 0.88);
  --header-scrolled-border: rgba(42, 33, 41, 0.1);
  /* darker, narrower gold pair than role-a-vivid/light — keeps white card text ≥4.5:1 */
  --featured-grad-a: #A5650F;
  --featured-grad-b: #7A4610;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg-light);
  color: var(--ink-on-light);
  font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--role-a-ink-on-light);
  font-weight: 700;
}
.eyebrow::before {
  content: ''; display: block; width: 26px; height: 2px; background: currentColor;
}
/* on dark surfaces, use the dark-safe ink shade instead */
.hero .eyebrow { color: var(--role-a-ink-on-dark); }
.page-hero .eyebrow, section[data-surface="dark"] .eyebrow, .contact-panel .eyebrow {
  color: var(--band-ink-accent);
}

.accent {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--role-a-ink-on-dark);
}

/* ---------- signature divider: echoes the two-stroke wing mark of the logo ---------- */
.mark-divider {
  display: flex; align-items: flex-end; gap: 5px; margin-bottom: 18px; height: 20px;
}
.mark-divider span {
  display: block; width: 30px; height: 4px; border-radius: 2px;
}
.mark-divider span:first-child { background: var(--role-a-vivid); }
.mark-divider span:last-child { background: var(--role-b-vivid); transform: translateY(4px); width: 20px; }
section[data-surface="dark"] .mark-divider span:first-child,
.hero .mark-divider span:first-child { background: var(--role-a-vivid-light); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-scrolled-border);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .logo-img { height: 40px; width: auto; display: block; flex-shrink: 0; }

/* pages without a photo hero (data-hero="band"): header follows the theme like the rest of
   the page. Pages with a photo hero (data-hero="photo") force light header chrome below,
   since the hero photo always carries a dark scrim regardless of theme. */
.site-header .logo-img-light { display: none; }
:root[data-theme="light"] .site-header .logo-img-dark { display: none; }
:root[data-theme="light"] .site-header .logo-img-light { display: block; }
:root[data-theme="light"] body[data-hero="band"] .main-nav a { color: var(--band-ink-dim); }
:root[data-theme="light"] body[data-hero="band"] .main-nav a:hover,
:root[data-theme="light"] body[data-hero="band"] .main-nav a.active { color: var(--band-ink); border-color: var(--band-ink-accent); }
:root[data-theme="light"] body[data-hero="band"] .btn-ghost { color: var(--band-ink); border-color: var(--band-border); }
:root[data-theme="light"] body[data-hero="band"] .nav-toggle span { background: var(--band-ink); }
:root[data-theme="light"] body[data-hero="band"] .icon-btn,
:root[data-theme="light"] body[data-hero="band"] .lang-switch a,
:root[data-theme="light"] body[data-hero="band"] .theme-toggle { color: var(--band-ink); }

/* photo-hero pages: header chrome always stays dark-safe (light text/logo), scrolled or not,
   in both themes — the hero photo's scrim (and, once scrolled, the header's own opaque
   background below) is always dark, so light text is always correct here. */
body[data-hero="photo"] .site-header .logo-img-dark { display: block !important; }
body[data-hero="photo"] .site-header .logo-img-light { display: none !important; }
body[data-hero="photo"] .site-header .main-nav a { color: var(--ink-on-dark-dim); }
body[data-hero="photo"] .site-header .main-nav a:hover,
body[data-hero="photo"] .site-header .main-nav a.active { color: var(--ink-on-dark); border-color: var(--role-a-ink-on-dark); }
body[data-hero="photo"] .site-header .btn-ghost { color: var(--ink-on-dark); border-color: rgba(255,255,255,0.28); }
body[data-hero="photo"] .site-header .nav-toggle span { background: var(--ink-on-dark); }
body[data-hero="photo"] .site-header.scrolled { background: rgba(36, 26, 38, 0.86); border-bottom-color: rgba(255,255,255,0.08); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-on-dark-dim);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--ink-on-dark); border-color: var(--role-a-ink-on-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- lang switch ---------- */
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-switch a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid transparent;
  background: transparent; cursor: pointer; font-size: 16px; line-height: 1; opacity: 0.55;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.lang-switch a:hover { opacity: 0.85; transform: translateY(-1px); }
.lang-switch a.active { opacity: 1; border-color: var(--role-a-ink-on-dark); cursor: default; }
.lang-switch a:focus-visible { outline: 2px solid var(--role-a-ink-on-dark); outline-offset: 2px; }

/* ---------- theme toggle ---------- */
.theme-toggle {
  position: relative; width: 46px; height: 26px; border-radius: 100px; border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06); cursor: pointer; padding: 0; flex-shrink: 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
:root[data-theme="light"] body[data-hero="band"] .theme-toggle { border-color: var(--band-border); background: rgba(42,33,41,0.06); }
:root[data-theme="light"] body[data-hero="band"] .lang-switch a.active { border-color: var(--band-ink-accent); }
:root[data-theme="light"] body[data-hero="band"] .lang-switch a:focus-visible { outline-color: var(--band-ink-accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--role-a-ink-on-dark); outline-offset: 3px; }
.theme-toggle .knob {
  position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 11px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
:root[data-theme="light"] .theme-toggle .knob { transform: translateX(20px); background: var(--purple-light); }
.theme-toggle .knob::before { content: '🌙'; font-size: 10px; }
:root[data-theme="light"] .theme-toggle .knob::before { content: '☀️'; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em;
  padding: 13px 26px; border-radius: 100px; border: none; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-primary { background: var(--role-b-vivid); color: var(--fill-ink); }
.btn-primary:hover { background: var(--role-b-vivid-light); transform: translateY(-2px); box-shadow: 0 12px 28px -8px var(--btn-shadow); }
.btn-ghost { background: transparent; color: var(--ink-on-dark); border: 1.5px solid rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: var(--role-a-ink-on-dark); color: var(--role-a-ink-on-dark); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--ink-on-light); border: 1.5px solid var(--border-light); }
.btn-outline-dark:hover { border-color: var(--role-a-ink-on-light); color: var(--role-a-ink-on-light); transform: translateY(-2px); }
.btn-outline-dark:focus-visible { outline: 2px solid var(--role-a-ink-on-light); outline-offset: 3px; }
.btn-sm { padding: 10px 18px; font-size: 12.5px; }
.btn:focus-visible { outline: 2px solid var(--role-a-ink-on-dark); outline-offset: 3px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink-on-dark); display: block; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); transform-origin: center; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--role-a-ink-on-dark); outline-offset: 3px; }

@media (max-width: 960px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--band-bg); flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 36px 28px; gap: 6px; transform: translateX(100%); transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }
  body[data-hero="photo"] .main-nav { background: var(--bg-dark); }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--band-border-soft); }
  .header-actions .btn-ghost { display: none; }
  .header-actions { gap: 6px; }
  .nav-toggle { display: flex; }
}
@media (max-width: 480px) {
  .site-header .logo-img { height: 32px; }
  .lang-switch button { width: 28px; height: 28px; font-size: 14px; }
  .theme-toggle { width: 40px; height: 23px; }
  .theme-toggle .knob { width: 17px; height: 17px; }
  :root[data-theme="light"] .theme-toggle .knob { transform: translateX(17px); }
}

/* ---------- section surfaces ---------- */
section { padding: 108px 0; position: relative; }
section[data-surface="dark"] { background: var(--band-bg); color: var(--band-ink); }
section[data-surface="dark"] .eyebrow-txt, section[data-surface="dark"] p { color: var(--band-ink-dim); }
section[data-surface="light"] { background: var(--bg-light); color: var(--ink-on-light); }
section[data-surface="tint"] { background: var(--surface-light-2); color: var(--ink-on-light); }
@media (max-width: 720px) { section { padding: 76px 0; } }

/* ---------- hero v2 — full-bleed photo, gradient overlay ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: var(--ink-on-dark);
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 14, 22, 0.55) 0%, rgba(20, 14, 22, 0.35) 30%, rgba(20, 14, 22, 0.55) 62%, rgba(15, 11, 17, 0.94) 100%),
    linear-gradient(90deg, rgba(15, 11, 17, 0.9) 0%, rgba(15, 11, 17, 0.35) 48%, rgba(15, 11, 17, 0.05) 72%);
}
.hero-icon-bg {
  position: absolute; top: 6%; left: -4%; width: 480px; opacity: 0.07; pointer-events: none; z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: 96px; padding-top: 60px; }
.hero-copy { max-width: 680px; }
.hero-copy h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.3rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.01em;
  margin: 22px 0 26px;
}
.hero-copy p.lead { font-size: 18px; color: var(--ink-on-dark-dim); max-width: 46ch; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .hero { min-height: 92vh; align-items: flex-end; }
  .hero .wrap { padding-bottom: 64px; }
  /* on a narrow tall crop, "center 18%" (tuned for wide desktop framing) cuts off Sérgio
     almost entirely — he sits in the right ~45% of the source photo. Re-anchor there, and
     ease off the desktop's left-heavy horizontal darkening (which assumed a two-column
     text-left/photo-right layout that doesn't exist on mobile — text sits over the whole photo). */
  .hero-bg img { object-position: 78% 22%; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(20, 14, 22, 0.6) 0%, rgba(20, 14, 22, 0.4) 32%, rgba(20, 14, 22, 0.62) 64%, rgba(15, 11, 17, 0.95) 100%),
      linear-gradient(180deg, rgba(15, 11, 17, 0.55) 0%, rgba(15, 11, 17, 0.2) 40%, rgba(15, 11, 17, 0.15) 70%);
  }
  .hero-copy h1 { font-size: clamp(1.9rem, 7.5vw, 2.4rem); margin: 16px 0 18px; }
  .hero-copy p.lead { font-size: 15.5px; margin-bottom: 28px; }
}

/* ---------- scroll cue ---------- */
.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-on-dark-dim); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(180deg, var(--role-a-ink-on-dark), transparent); animation: scrollcue 2.2s ease-in-out infinite; }
@keyframes scrollcue { 0%,100% { transform: scaleY(0.6); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .line { animation: none; } }

/* ---------- section heads ---------- */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.16; font-weight: 800; letter-spacing: -0.01em; }
.section-head p { margin-top: 18px; font-size: 16.5px; color: var(--ink-on-light-dim); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .mark-divider { justify-content: center; }

/* ---------- about v2 — framed portrait card ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.about-photo-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-tight);
  aspect-ratio: 1 / 1.05; border: 1px solid var(--border-light);
}
.about-photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.about-photo-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,26,38,0) 55%, rgba(24,17,26,0.62) 100%);
}
.about-photo-card .corner-dot {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 14px; height: 14px; border-radius: 50%; background: var(--role-b-vivid);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}
.about-photo-card .name-label {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  background: rgba(20, 14, 22, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 14px 18px;
}
.about-photo-card .name-label .name { display: block; font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.about-photo-card .name-label .role { display: block; margin-top: 3px; font-size: 12px; color: rgba(255,255,255,0.72); letter-spacing: 0.02em; }
.about-copy p { color: var(--ink-on-light-dim); margin-bottom: 20px; font-size: 16.5px; }
.about-copy p:last-of-type { margin-bottom: 0; }
.credential-row { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.credential-item { flex: 1; min-width: 180px; border-top: 2px solid var(--role-a-vivid); padding-top: 14px; }
.credential-item .num { font-family: 'Fraunces', serif; font-style: italic; color: var(--role-a-ink-on-light); font-size: 26px; display: block; margin-bottom: 6px; }
.credential-item .lbl { font-size: 13.5px; color: var(--ink-on-light-dim); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } .about-photo-card { max-width: 420px; margin: 0 auto; } }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--band-surface-2); border: 1px solid var(--band-border); border-radius: var(--radius-lg);
  padding: 40px 32px; display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--band-ink-accent); box-shadow: 0 20px 44px -18px rgba(0,0,0,0.5); }
.service-card.featured { background: linear-gradient(160deg, var(--featured-grad-a) 0%, var(--featured-grad-b) 100%); border-color: var(--role-a-vivid-light); }
.service-card.featured h3, .service-card.featured p, .service-card.featured .service-link { color: #fff; }
.service-tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--role-b-vivid); color: var(--fill-ink); padding: 5px 12px; border-radius: 100px;
}
.service-card h3 { font-size: 21px; font-weight: 700; color: var(--band-ink); }
.service-card p { font-size: 15px; color: var(--band-ink-dim); }
.service-card .service-link { margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--band-ink-accent); display: inline-flex; align-items: center; gap: 6px; }
.service-card .service-link svg { transition: transform 0.3s var(--ease); }
.service-card:hover .service-link svg { transform: translateX(4px); }
@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- approach v2 — full-bleed background section ---------- */
.approach-section {
  position: relative; padding: 0; min-height: 640px; display: flex; align-items: center;
  color: var(--ink-on-dark); overflow: hidden;
}
.approach-section .approach-bg { position: absolute; inset: 0; z-index: 0; }
.approach-section .approach-bg img { width: 100%; height: 100%; object-fit: cover; }
.approach-section .approach-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(20,14,22,0.94) 0%, rgba(20,14,22,0.8) 38%, rgba(20,14,22,0.42) 68%, rgba(20,14,22,0.72) 100%);
}
.approach-section .wrap { position: relative; z-index: 1; padding-top: 108px; padding-bottom: 108px; }
.approach-section .section-head-inline { max-width: 620px; }
.approach-list { margin-top: 28px; display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.approach-list li { display: flex; gap: 16px; align-items: flex-start; }
.approach-list .bullet {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.approach-list .bullet img { width: 15px; height: auto; }
.approach-list .txt { font-size: 15.5px; color: var(--ink-on-dark-dim); padding-top: 5px; }
.approach-list .txt strong { color: var(--ink-on-dark); font-weight: 700; }
@media (max-width: 720px) { .approach-section .wrap { padding-top: 76px; padding-bottom: 76px; } }

/* ---------- process v2 — dimensional connector ---------- */
.process-rail { position: relative; }
.process-rail .rail-line {
  position: absolute; top: 27px; left: 6%; right: 6%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--role-a-vivid) 0%, var(--border-light) 40%, var(--border-light) 60%, var(--role-a-vivid) 100%);
  opacity: 0.5;
}
.process-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; counter-reset: step; }
.process-step {
  padding: 0 26px 0 0; position: relative;
}
.process-step .step-num-wrap {
  position: relative; width: 56px; height: 56px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
}
.process-step .step-num-wrap::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--surface-light); border: 2px solid var(--role-a-vivid);
  box-shadow: 0 10px 22px -8px rgba(42,20,40,0.28), inset 0 1px 0 rgba(255,255,255,0.6);
}
.process-step .step-num-wrap::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid var(--role-a-vivid); opacity: 0.25;
}
.process-step .step-num { position: relative; font-family: 'Fraunces', serif; font-style: italic; font-size: 22px; color: var(--role-a-ink-on-light); }
.process-step h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; }
.process-step p { font-size: 14.5px; color: var(--ink-on-light-dim); }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .process-rail .rail-line { display: none; }
}
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ v2 — image cards + progressive disclosure ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin-left: auto; margin-right: auto; }
.faq-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-light); border: 1px solid var(--border-light);
  transition: box-shadow 0.35s var(--ease);
}
.faq-item.has-media { min-height: 108px; color: #fff; border: none; }
.faq-item.has-media .faq-media { position: absolute; inset: 0; z-index: 0; }
.faq-item.has-media .faq-media img { width: 100%; height: 100%; object-fit: cover; }
.faq-item.has-media .faq-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,14,22,0.92) 0%, rgba(20,14,22,0.72) 46%, rgba(20,14,22,0.32) 100%);
}
.faq-item.has-media .corner-dot {
  position: absolute; top: 16px; left: 16px; z-index: 2; width: 10px; height: 10px; border-radius: 50%;
  background: var(--role-b-vivid);
}
.faq-q {
  position: relative; z-index: 1;
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 26px; background: none; border: none; cursor: pointer; text-align: left;
  font-size: 16.5px; font-weight: 700; color: var(--ink-on-light);
}
.faq-item.has-media .faq-q { color: #fff; }
.faq-q:focus-visible { outline: 2px solid var(--role-a-ink-on-light); outline-offset: -2px; }
.faq-item.has-media .faq-q:focus-visible { outline-color: #fff; }
.faq-q .plus { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--role-a-ink-on-light); position: relative; }
.faq-item.has-media .faq-q .plus { border-color: rgba(255,255,255,0.7); }
.faq-q .plus::before, .faq-q .plus::after { content: ''; position: absolute; background: var(--role-a-ink-on-light); top: 50%; left: 50%; transition: transform 0.3s var(--ease); }
.faq-item.has-media .faq-q .plus::before, .faq-item.has-media .faq-q .plus::after { background: #fff; }
.faq-q .plus::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-q .plus::after { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { position: relative; z-index: 1; max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 26px 26px; font-size: 15px; color: var(--ink-on-light-dim); max-width: 68ch; }
.faq-item.has-media .faq-a p { color: rgba(255,255,255,0.85); }

.faq-more-wrap { margin-top: 28px; max-width: 860px; margin-left: auto; margin-right: auto; text-align: center; }
.faq-hidden-group { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-hidden-group .faq-list { margin-top: 14px; }
.faq-toggle-more {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1.5px solid var(--border-light); border-radius: 100px;
  padding: 12px 22px; font-size: 13.5px; font-weight: 700; color: var(--ink-on-light); cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.faq-toggle-more:hover { border-color: var(--role-a-ink-on-light); color: var(--role-a-ink-on-light); }
.faq-toggle-more:focus-visible { outline: 2px solid var(--role-a-ink-on-light); outline-offset: 3px; }
.faq-toggle-more .chev { transition: transform 0.3s var(--ease); }
.faq-toggle-more.open .chev { transform: rotate(180deg); }

/* ---------- articles ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card {
  background: var(--surface-light); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-tight); border-color: var(--role-a-vivid-light); }
.article-card .article-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.article-card .article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.article-card:hover .article-media img { transform: scale(1.05); }
.article-card .article-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,22,0) 55%, rgba(20,14,22,0.5) 100%); }
.article-card .article-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.article-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--role-a-ink-on-light); }
.article-card h3 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.article-card p { font-size: 14.5px; color: var(--ink-on-light-dim); flex-grow: 1; }
.article-card .read-more { font-size: 13px; font-weight: 700; color: var(--role-a-ink-on-light); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 960px) { .articles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .articles-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--role-a-vivid-deep) 0%, var(--role-a-vivid) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 800; max-width: 24ch; }
.cta-band p { color: rgba(255,255,255,0.78); margin-top: 12px; max-width: 46ch; }
.cta-band .btn-primary { background: #fff; color: var(--ink-on-light); }
.cta-band .btn-primary:hover { background: var(--surface-light-2); }
@media (max-width: 720px) { .cta-band { padding: 44px 30px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--band-bg); color: var(--band-ink-dim); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--band-border-soft); }
.footer-brand .logo-img { height: 36px; margin-bottom: 18px; }
.footer-brand .logo-img-light { display: none; }
:root[data-theme="light"] .footer-brand .logo-img-dark { display: none; }
:root[data-theme="light"] .footer-brand .logo-img-light { display: block; }
.footer-brand p { font-size: 14px; max-width: 32ch; }
.footer-col h5 { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--band-ink); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; transition: color 0.25s; }
.footer-col a:hover { color: var(--band-ink-accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; font-size: 12.5px; flex-wrap: wrap; }
.footer-bottom .compliance { max-width: 60ch; opacity: 0.7; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger.in { transition-delay: calc(var(--stagger-i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--band-bg) 0%, var(--band-surface) 100%); color: var(--band-ink);
  padding: calc(var(--header-h) + 76px) 0 76px;
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; margin: 18px 0 16px; letter-spacing: -0.01em; }
.page-hero p { font-size: 17px; color: var(--band-ink-dim); max-width: 60ch; }

/* ---------- service detail blocks ---------- */
.service-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; padding: 72px 0; border-bottom: 1px solid var(--border-light); }
.service-detail:last-child { border-bottom: none; }
.service-detail .idx { font-family: 'Fraunces', serif; font-style: italic; font-size: 60px; color: var(--role-a-ink-on-light); line-height: 1; }
.service-detail h2 { font-size: 1.9rem; font-weight: 800; margin: 14px 0 18px; }
.service-detail p { color: var(--ink-on-light-dim); margin-bottom: 16px; }
.service-detail ul { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.service-detail ul li { font-size: 15px; color: var(--ink-on-light-dim); padding-left: 22px; position: relative; }
.service-detail ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 10px; height: 2px; background: var(--role-b-vivid); }
@media (max-width: 860px) { .service-detail { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.contact-panel { background: var(--band-surface-2); padding: 56px 48px; }
.contact-panel h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; color: var(--band-ink); }
.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--band-border); }
.contact-info-item .lbl { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-ink-accent); width: 130px; flex-shrink: 0; padding-top: 2px; }
.contact-info-item .val { font-size: 15.5px; color: var(--band-ink); }
.contact-photo { position: relative; min-height: 380px; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-panel { padding: 44px 28px; } }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
