/* =========================================================
   Abogados EC — v3 design tokens
   ========================================================= */
:root {
  --ink: #0F1419;
  --ink-2: #171D24;
  --ink-3: #2A323C;
  --paper: #FAFAF7;
  --paper-2: #F2F0EA;
  --line: #E3E0D7;
  --text: #14181D;
  --muted: #5B6370;
  --muted-dark: #A2AAB4;
  --on-dark: #F4F3EE;

  --accent: #B48C42;
  --accent-strong: #8A6A2A;
  --accent-soft: #F4ECDD;
  --ok: #2E7A58;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 10vw, 136px);
  --shadow: 0 1px 2px rgba(15,20,25,.04), 0 12px 32px -12px rgba(15,20,25,.14);
  --shadow-lg: 0 2px 4px rgba(15,20,25,.04), 0 32px 64px -24px rgba(15,20,25,.28);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body, h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-variation-settings: "opsz" 144;
}
h1 em, h2 em { font-style: italic; color: var(--accent-strong); }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { left: 12px; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--on-dark); }
.btn-primary:hover { background: var(--ink-3); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.section-dark .btn-primary { background: var(--accent); color: var(--ink); }
.section-dark .btn-primary:hover { background: #C9A25A; }

.text-link {
  display: inline-flex; gap: 6px; font-weight: 600; font-size: 0.95rem;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: gap .2s var(--ease);
}
.text-link:hover { gap: 10px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,20,25,.72);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--on-dark);
  transition: background-color .25s var(--ease);
}
.site-header.is-scrolled { background: rgba(15,20,25,.94); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); flex-shrink: 0; }
.brand-mark g { stroke: var(--ink); }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-name span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; margin-left: 4px; color: var(--accent); vertical-align: 0.35em; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 0.92rem; color: var(--muted-dark);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav a:hover { color: var(--on-dark); background: rgba(255,255,255,.07); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.site-header .btn-primary { background: var(--accent); color: var(--ink); }
.site-header .btn-primary:hover { background: #C9A25A; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-toggle span { width: 18px; height: 1.5px; background: var(--on-dark); transition: transform .2s var(--ease); }
body.nav-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.nav-open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu { display: none; border-top: 1px solid rgba(255,255,255,.08); background: var(--ink); }
.mobile-menu .wrap { display: flex; flex-direction: column; padding-block: 12px 24px; }
.mobile-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
.mobile-menu .btn { margin-top: 20px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  margin-top: -73px;
  padding-block: calc(73px + clamp(64px, 9vw, 128px)) clamp(64px, 8vw, 112px);
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15,20,25,.96) 0%, rgba(15,20,25,.86) 38%, rgba(15,20,25,.45) 70%, rgba(15,20,25,.55) 100%),
    linear-gradient(0deg, rgba(15,20,25,.9) 0%, transparent 35%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero .kicker { color: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 3.8vw, 4.9rem); margin-bottom: 24px; }
.hero h1 em { color: var(--accent); }
.hero-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: #C3C9D0; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background: var(--accent); color: var(--ink); }
.hero .btn-primary:hover { background: #C9A25A; }
.hero .btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: var(--on-dark); }
.hero .btn-ghost:hover { border-color: var(--on-dark); }

/* Case card (signature) */
.case-card {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.case-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.case-id { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.case-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; color: var(--accent-strong);
  background: var(--accent-soft); padding: 5px 10px; border-radius: 999px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; }
.case-title { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -0.015em; line-height: 1.2; }
.case-meta { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.case-amount {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-block: 20px; padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
}
.case-amount span { font-size: 0.82rem; color: var(--muted); }
.case-amount strong { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 500; }

.case-steps { position: relative; display: grid; gap: 16px; }
.case-steps::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line); border-radius: 2px;
}
.case-steps li { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.step-dot {
  position: relative; z-index: 1;
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: #fff; border: 2px solid var(--line);
}
.case-steps b { display: block; font-size: 0.92rem; font-weight: 600; }
.case-steps small { display: block; font-size: 0.8rem; color: var(--muted); }
.case-steps li:not(.is-done):not(.is-current) b { color: var(--muted); font-weight: 500; }
.case-steps .is-done .step-dot { background: var(--ok); border-color: var(--ok); }
.case-steps .is-done .step-dot::after {
  content: ""; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.case-steps .is-current .step-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.case-steps .is-current .step-dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent);
}
.case-note {
  margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .pulse::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
    animation: pulse 2s var(--ease) infinite;
  }
  @keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }

  .case-card.is-visible .case-steps li { animation: step-in .5s var(--ease) both; }
  .case-card.is-visible .case-steps li:nth-child(1) { animation-delay: .25s; }
  .case-card.is-visible .case-steps li:nth-child(2) { animation-delay: .4s; }
  .case-card.is-visible .case-steps li:nth-child(3) { animation-delay: .55s; }
  .case-card.is-visible .case-steps li:nth-child(4) { animation-delay: .7s; }
  @keyframes step-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
}

/* Institutions strip */
.authority { background: var(--ink-2); color: var(--on-dark); border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); }
.authority-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px 48px; padding-block: 32px; }
.authority-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); }
.seals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.seal { display: flex; align-items: center; gap: 14px; }
.seal-mark {
  flex-shrink: 0;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.02em; color: var(--accent);
  border: 1px solid rgba(180,140,66,.55);
  box-shadow: inset 0 0 0 4px var(--ink-2), inset 0 0 0 5px rgba(180,140,66,.3);
  background: radial-gradient(circle at 30% 25%, rgba(180,140,66,.16), transparent 60%);
}
.seal:first-child .seal-mark { font-size: 0.72rem; letter-spacing: 0.04em; }
.seal-name { font-size: 0.88rem; line-height: 1.35; color: #D5D9DE; }

/* Photos */
.photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.problem-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.problem-grid .section-head { margin-bottom: 0; }
.photo-problem { aspect-ratio: 3 / 2; box-shadow: var(--shadow-lg); }
.stamp {
  position: absolute; right: 24px; bottom: 24px;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: #F3D7CF; padding: 10px 16px;
  border: 2px solid rgba(214,92,72,.85); border-radius: 6px;
  background: rgba(60,18,12,.55);
  transform: rotate(-6deg);
  backdrop-filter: blur(2px);
}

.strategy-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.photo-strategy { aspect-ratio: 4 / 5; position: sticky; top: 104px; box-shadow: var(--shadow-lg); }
.photo-strategy figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 24px 22px;
  background: linear-gradient(0deg, rgba(15,20,25,.9), transparent);
  color: var(--on-dark); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3;
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: var(--section); }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .kicker { color: var(--accent); }
.section-dark h2 em { color: var(--accent); }
.section-dark p { color: var(--muted-dark); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-bottom: 18px; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 1.08rem; }

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

.pain {
  padding: 28px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
}
.pain-tag {
  display: inline-block; margin-bottom: 36px;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.02em; color: var(--accent-strong);
  padding: 5px 10px; border: 1px dashed #D3C3A2; border-radius: 6px; background: var(--accent-soft);
}
.pain h3 { margin-bottom: 8px; font-size: 1.12rem; }
.pain p { color: var(--muted); font-size: 0.95rem; }

/* Bento services */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 28px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.service:hover { border-color: #CFCABC; transform: translateY(-2px); box-shadow: var(--shadow); }
.service-icon { width: 36px; height: 36px; color: var(--accent-strong); margin-bottom: 36px; }
.service h3 { margin-bottom: 8px; font-size: 1.12rem; }
.service p { color: var(--muted); font-size: 0.95rem; }

.service-feature {
  grid-column: span 2; grid-row: span 2;
  background: var(--ink); color: var(--on-dark); border-color: var(--ink);
  display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.service-feature { isolation: isolate; }
.feature-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  transition: transform .8s var(--ease);
}
.service-feature:hover .feature-bg { transform: scale(1.04); }
.service-feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,20,25,.55) 0%, rgba(15,20,25,.35) 35%, rgba(15,20,25,.92) 78%);
  pointer-events: none;
}
.service-feature:hover { border-color: var(--ink); }
.service-feature .service-icon { color: var(--accent); width: 44px; height: 44px; }
.service-feature h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.1; margin-top: auto; margin-bottom: 14px; }
.service-feature p { color: var(--muted-dark); font-size: 1.02rem; max-width: 440px; margin-bottom: 28px; }
.service-feature .text-link { color: var(--accent); align-self: flex-start; }

/* Timeline */
.timeline { display: grid; position: relative; }
.timeline li { position: relative; padding: 0 0 36px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 6px; top: 18px; bottom: -2px; width: 1px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; top: 4px; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.timeline li:last-child::after { background: var(--accent); }
.tl-step { display: block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 6px; }
.timeline h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: 0.98rem; max-width: 52ch; }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.calc-copy h2 { margin-bottom: 20px; }
.calc-copy p { font-size: 1.05rem; max-width: 480px; }
.calc-copy .fine { font-size: 0.8rem; margin-top: 24px; max-width: 440px; opacity: .85; }

.calc-card {
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
}
.calc-fields { display: grid; gap: 16px; }
.calc-out { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ink-3); display: grid; gap: 14px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc-row span { font-size: 0.9rem; color: var(--muted-dark); }
.calc-row strong { font-family: var(--font-mono); font-weight: 500; font-size: 1.2rem; color: var(--on-dark); }
.calc-total strong { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--accent); }
.calc-out .btn { margin-top: 8px; }

/* Fields */
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 0.85rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(180,140,66,.18); }
.field-hint { font-size: 0.8rem; color: var(--muted); }

.calc-card .field label { color: var(--on-dark); }
.calc-card .field input { background: var(--ink); border-color: var(--ink-3); color: var(--on-dark); font-family: var(--font-mono); }
.calc-card .field-hint { color: var(--muted-dark); }

/* Split: sectors + reasons */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split h2 { margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 14px; border-radius: 999px; font-size: 0.9rem;
  background: #fff; border: 1px solid var(--line);
}
.reasons { display: grid; gap: 0; border-top: 1px solid var(--line); }
.reason { padding-block: 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.reason p { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 112px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 22px; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-weight: 400; font-size: 1.3rem; color: var(--accent-strong);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 62ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy h2 { margin-bottom: 20px; }
.contact-copy p { font-size: 1.05rem; max-width: 460px; }
.contact-mail {
  display: inline-block; margin-top: 32px;
  font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.015em;
  color: var(--on-dark); border-bottom: 1px solid var(--accent); padding-bottom: 4px;
}
.contact-mail:hover { color: var(--accent); }

.contact-form {
  background: var(--paper); color: var(--text);
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px);
  display: grid; gap: 16px;
}
.contact-form .btn-primary { background: var(--ink); color: var(--on-dark); }
.contact-form .btn-primary:hover { background: var(--ink-3); }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--ink-3); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: 48px 32px; }
.footer-brand .brand-name { color: var(--on-dark); }
.footer-brand .brand-name span { color: var(--accent); }
.footer-brand p { margin-top: 10px; max-width: 340px; font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; }
.footer-nav a { font-size: 0.92rem; }
.footer-nav a:hover { color: var(--on-dark); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  padding-block: 20px 32px; border-top: 1px solid var(--ink-3); font-size: 0.8rem;
}
.footer-bottom p:last-child { max-width: 520px; }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: flex; }
  body.nav-open .mobile-menu { display: block; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .service-feature { grid-column: span 2; grid-row: auto; min-height: 320px; }
  .reason { grid-template-columns: 1fr; gap: 6px; }
  .seals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .authority-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-grid, .calc-grid, .split, .faq-grid, .contact-grid, .problem-grid, .strategy-grid { grid-template-columns: 1fr; }
  .photo-strategy { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .hero::before { background: linear-gradient(180deg, rgba(15,20,25,.82) 0%, rgba(15,20,25,.9) 60%, rgba(15,20,25,.97) 100%); }
  .faq-grid .section-head { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
  .pain-tag { margin-bottom: 20px; }
  .case-card { max-width: 480px; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .bento { grid-template-columns: 1fr; }
  .service-feature { grid-column: auto; min-height: 0; }
  .service-icon { margin-bottom: 24px; }
  .timeline li { padding-left: 34px; }
  .seals { grid-template-columns: 1fr; }
  .stamp { right: 14px; bottom: 14px; font-size: 0.7rem; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .case-card { padding: 20px; }
  .footer-bottom { flex-direction: column; }
}
