/* Harlow & Reyes — concept by Gabriel Cerezo */
:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --paper-3: #e2d9c7;
  --ink: #16181c;
  --ink-2: #33363d;
  --muted: #5f5d58;
  --ox: #7a2228;
  --ox-deep: #5e181d;
  --ox-light: #e3aaa1;
  --rule: rgba(22, 24, 28, 0.16);
  --rule-strong: rgba(22, 24, 28, 0.4);
  --rule-light: rgba(244, 239, 230, 0.16);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: "kern", "liga";
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--ox); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ox); outline-offset: 3px; }
.sec-ink :focus-visible, .consult :focus-visible { outline-color: var(--ox-light); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn-ox { background: var(--ox); color: var(--paper); }
.btn-ox:hover { background: var(--ox-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ox); }
.btn-line { border-color: var(--rule-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); background: rgba(22, 24, 28, 0.04); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-line-light { border-color: rgba(244, 239, 230, 0.4); color: var(--paper); background: transparent; }
.btn-line-light:hover { border-color: var(--paper); }

/* ---------- Utility bar ---------- */
.utility { background: var(--ink); color: rgba(244, 239, 230, 0.78); font-size: 12px; letter-spacing: 0.04em; }
.utility-in { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.clocks { display: flex; align-items: center; gap: 12px; white-space: nowrap; overflow: hidden; }
.clocks time { color: var(--paper); font-variant-numeric: tabular-nums; margin-left: 4px; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ox-light); }
.lang { display: flex; border: 1px solid rgba(244, 239, 230, 0.25); }
.lang-btn {
  background: none; border: 0; padding: 3px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  color: rgba(244, 239, 230, 0.65); cursor: pointer; min-height: 26px;
}
.lang-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.lang-btn:not([aria-pressed="true"]):hover { color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 230, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.wordmark {
  font-family: var(--display); font-size: 25px; letter-spacing: 0.005em; text-decoration: none; white-space: nowrap; color: var(--ink);
}
.wordmark em { color: var(--ox); font-style: italic; padding: 0 1px; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.menu a:not(.btn) { font-size: 14px; text-decoration: none; color: var(--ink-2); padding: 6px 0; background: linear-gradient(var(--ox), var(--ox)) 0 100% / 0 1px no-repeat; transition: background-size .3s ease, color .2s; }
.menu a:not(.btn):hover { color: var(--ink); background-size: 100% 1px; }
.menu-btn { display: none; }

@media (max-width: 1040px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    background: none; border: 1px solid var(--rule-strong); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s ease, background-color .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 4px var(--gutter) 24px;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .menu.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .menu li { border-bottom: 1px solid var(--rule); }
  .menu a:not(.btn) { display: block; padding: 15px 0; font-family: var(--display); font-size: 22px; background: none; }
  .menu-cta { border: 0 !important; padding-top: 18px; }
  .menu .btn { width: 100%; min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 104px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ox); font-weight: 500;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.kicker::before { content: ""; width: 36px; height: 1px; background: var(--ox); flex-shrink: 0; }
.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(38px, 5.3vw, 78px); line-height: 1.03; letter-spacing: -0.018em;
  text-wrap: balance;
}
.hero-title em { color: var(--ox); }
.hero-lede { margin-top: clamp(24px, 3vw, 34px); font-size: clamp(17px, 1.45vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 22px; font-size: 13px; color: var(--muted); max-width: 52ch; }

.route { margin: 0; border: 1px solid var(--rule); background: var(--paper-2); padding: 18px 18px 14px; position: relative; }
.route::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); pointer-events: none; }
.route svg { width: 100%; height: auto; }
.grat path { stroke: var(--rule); stroke-width: 1; fill: none; }
.equator { stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 2 4; fill: none; }
.g-lab { font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em; fill: var(--muted); }
.arc-shadow { fill: none; stroke: rgba(122, 34, 40, 0.12); stroke-width: 7; stroke-linecap: round; }
.arc { fill: none; stroke: var(--ox); stroke-width: 1.6; stroke-dasharray: 0.012 0.01; }
.js .arc { animation: draw 2.4s cubic-bezier(.6,.1,.2,1) .3s both; stroke-dasharray: 1; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.pin circle { fill: var(--ox); }
.pin .pin-halo { fill: rgba(122, 34, 40, 0.12); }
.city { font-family: var(--display); font-size: 24px; fill: var(--ink); }
.coord { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.08em; fill: var(--muted); }
.dist { font-family: var(--display); font-style: italic; font-size: 17px; fill: var(--ox); }
.route-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--rule); margin-top: 8px; padding: 12px 4px 0; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

.facts { margin: clamp(56px, 7vw, 96px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.facts div { padding: 20px 24px 24px 0; border-right: 1px solid var(--rule); }
.facts div + div { padding-left: 24px; }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-family: var(--display); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.35; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .route { max-width: 460px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(3) { padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 16px 0; border-right: 0; }
  .facts div + div { border-top: 1px solid var(--rule); }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.sec { padding: clamp(80px, 10vw, 140px) 0; }
.sec-ink { background: var(--ink); color: var(--paper); }
.sec-paper2 { background: var(--paper-2); }
.sec-rule { border-top: 1px solid var(--rule); }
.sec-head { margin-bottom: clamp(44px, 6vw, 80px); max-width: 860px; }
.sec-head-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.sec-label { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 22px; }
.sec-label .n { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: none; color: var(--ox); }
.sec-label::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--rule-strong); }
.sec-ink .sec-label { color: rgba(244, 239, 230, 0.7); }
.sec-ink .sec-label .n { color: var(--ox-light); }
.sec-ink .sec-label::after { background: rgba(244, 239, 230, 0.3); }
.sec h2 { font-family: var(--display); font-size: clamp(32px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -0.012em; text-wrap: balance; }
.sec h2 em { color: var(--ox); }
.sec-ink h2 em { color: var(--ox-light); }
.sec-intro { margin-top: 22px; font-size: 17px; color: var(--ink-2); max-width: 58ch; }
.sec-head-split .sec-intro { margin-top: 0; }
.sec-ink .sec-intro { color: rgba(244, 239, 230, 0.78); }
.fine { margin-top: 32px; font-size: 13px; color: var(--muted); }
@media (max-width: 820px) { .sec-head-split { grid-template-columns: 1fr; } }

/* ---------- Practice ---------- */
.practices { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.practice { padding: 32px clamp(20px, 2.6vw, 40px) 40px 0; border-right: 1px solid var(--rule); }
.practice + .practice { padding-left: clamp(20px, 2.6vw, 40px); }
.practice:last-child { border-right: 0; padding-right: 0; }
.p-num { font-family: var(--display); font-style: italic; font-size: 40px; line-height: 1; color: var(--ox); margin-bottom: 26px; }
.practice h3 { font-family: var(--display); font-size: clamp(24px, 2.1vw, 30px); line-height: 1.15; margin-bottom: 14px; }
.p-lede { color: var(--ink-2); margin-bottom: 24px; }
.p-list li { padding: 11px 0 11px 22px; border-top: 1px solid var(--rule); font-size: 15px; position: relative; }
.p-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 1px; background: var(--ox); }
@media (max-width: 920px) {
  .practices { grid-template-columns: 1fr; }
  .practice, .practice + .practice { padding: 32px 0 36px; border-right: 0; }
  .practice + .practice { border-top: 1px solid var(--rule); }
  .practice { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; }
  .practice > * { grid-column: 2; }
  .p-num { grid-column: 1; grid-row: 1 / span 3; font-size: 34px; }
}
@media (max-width: 480px) {
  .practice { grid-template-columns: 1fr; }
  .practice > *, .p-num { grid-column: 1; grid-row: auto; }
  .p-num { margin-bottom: 14px; }
}

/* ---------- Approach ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: t; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: rgba(244, 239, 230, 0.25); }
.timeline li { position: relative; padding: 34px 28px 0 0; counter-increment: t; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 1px solid var(--ox-light); }
.timeline li:first-child::before { background: var(--ox-light); }
.t-when { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ox-light); margin-bottom: 12px; }
.timeline h3 { font-family: var(--display); font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.timeline p:not(.t-when) { color: rgba(244, 239, 230, 0.75); font-size: 15px; }
@media (max-width: 920px) {
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; row-gap: 32px; padding-left: 28px; }
  .timeline::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .timeline li { padding: 0; }
  .timeline li::before { left: -28px; top: 3px; }
}

.fees { margin-top: clamp(64px, 8vw, 104px); border: 1px solid var(--rule-light); }
.fees-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; padding: 22px 28px; border-bottom: 1px solid var(--rule-light); }
.fees-head h3 { font-family: var(--display); font-size: 24px; }
.fees-head p { font-size: 13px; color: rgba(244, 239, 230, 0.65); }
.fees table { width: 100%; border-collapse: collapse; }
.fees th, .fees td { text-align: left; padding: 18px 28px; border-bottom: 1px solid var(--rule-light); font-weight: 400; vertical-align: baseline; }
.fees tbody tr:last-child th, .fees tbody tr:last-child td { border-bottom: 0; }
.fees thead th { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 239, 230, 0.6); padding-top: 14px; padding-bottom: 14px; }
.fees tbody th { font-size: 16px; }
.fees tbody td:nth-child(2) { font-family: var(--display); font-size: 22px; white-space: nowrap; color: var(--paper); }
.fees tbody td:nth-child(3) { color: rgba(244, 239, 230, 0.75); font-size: 15px; white-space: nowrap; }
.fees tbody tr { transition: background-color .2s ease; }
.fees tbody tr:hover { background: rgba(244, 239, 230, 0.04); }
@media (max-width: 680px) {
  .fees thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fees tbody tr { display: grid; grid-template-columns: 1fr auto; padding: 16px 20px; border-bottom: 1px solid var(--rule-light); gap: 4px 16px; }
  .fees tbody tr:last-child { border-bottom: 0; }
  .fees th, .fees td { padding: 0; border: 0; }
  .fees tbody th { grid-column: 1 / -1; }
  .fees-head { padding: 18px 20px; }
}

/* ---------- Matters ---------- */
.matters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.matter { padding: 26px 28px 30px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; transition: background-color .3s ease; }
.matter:hover { background: rgba(255, 255, 255, 0.4); }
.m-meta { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.m-route { margin-top: 26px; font-size: 13px; color: var(--ox); letter-spacing: 0.02em; }
.matter h3 { font-family: var(--display); font-size: 23px; line-height: 1.2; margin: 8px 0 12px; }
.matter p:not(.m-meta):not(.m-route):not(.m-out) { font-size: 15px; color: var(--ink-2); }
.m-out { margin-top: auto; padding-top: 24px; display: flex; align-items: baseline; gap: 12px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.m-out strong { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--ink); flex-shrink: 0; }
@media (max-width: 1000px) { .matters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .matters { grid-template-columns: 1fr; border-left: 0; }
  .matter { border-right: 0; padding: 24px 0 28px; }
}

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.partner { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.portrait svg { width: 100%; height: auto; }
.arch-bg { fill: var(--paper); }
.arch-line { fill: none; stroke: var(--ox); stroke-width: 1; opacity: .5; }
.rosette ellipse { fill: none; stroke: var(--ox); stroke-width: .6; opacity: .28; }
.seal { fill: var(--paper); }
.seal-ring { fill: none; stroke: var(--ox); stroke-width: .8; opacity: .55; }
.mono { font-family: var(--display); font-size: 50px; font-style: italic; fill: var(--ink); letter-spacing: -0.03em; }
.partner-office { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ox); font-weight: 500; }
.partner h3 { font-family: var(--display); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; margin: 10px 0 6px; }
.partner-focus { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--ink-2); margin-bottom: 16px; }
.partner-body > p:not(.partner-office):not(.partner-focus) { font-size: 15px; color: var(--ink-2); }
.creds { margin: 22px 0 0; border-top: 1px solid var(--rule-strong); }
.creds div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.creds dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.creds dd { margin: 0; }
@media (max-width: 1080px) { .partners { grid-template-columns: 1fr; max-width: 760px; } }
@media (max-width: 560px) {
  .partner { grid-template-columns: 1fr; }
  .portrait { max-width: 200px; }
}

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.office { border-top: 1px solid var(--ink); padding-top: 24px; }
.office-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.office h3 { font-family: var(--display); font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -0.015em; }
.office-now { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.office-now time { font-family: var(--display); font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.office-now .tz { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9a958b; }
.status.open { color: #2e5b3e; }
.status.open::before { background: #3c7a50; box-shadow: 0 0 0 3px rgba(60, 122, 80, 0.15); }
address { font-style: normal; font-size: 17px; line-height: 1.55; color: var(--ink-2); margin-bottom: 22px; }
.hours { margin: 0; border-top: 1px solid var(--rule); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .offices { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Insights ---------- */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.insight { border-top: 1px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; }
.i-meta { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ox); margin-bottom: 16px; }
.insight h3 { font-family: var(--display); font-size: clamp(22px, 1.9vw, 26px); line-height: 1.22; margin-bottom: 14px; }
.insight p:not(.i-meta):not(.i-by) { font-size: 15px; color: var(--ink-2); }
.i-by { margin-top: auto; padding-top: 20px; font-family: var(--display); font-style: italic; font-size: 16px; color: var(--muted); }
@media (max-width: 900px) { .insights { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Consultation ---------- */
.consult-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.next { margin-top: 36px; border-top: 1px solid var(--rule-light); }
.next li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
.next span { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--ox-light); line-height: 1.3; }
.next p { color: rgba(244, 239, 230, 0.82); font-size: 15px; }
.confid { margin-top: 24px; font-size: 13px; color: rgba(244, 239, 230, 0.6); }

.form { position: relative; background: #1d2026; border: 1px solid var(--rule-light); padding: clamp(22px, 3.4vw, 44px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin: 0 0 22px; display: flex; flex-direction: column; min-width: 0; }
.field label, .field legend { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244, 239, 230, 0.72); margin-bottom: 10px; padding: 0; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(244, 239, 230, 0.35); border-radius: 0;
  color: var(--paper); padding: 10px 0; font-size: 17px; transition: border-color .2s ease;
}
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ox-light) 50%), linear-gradient(135deg, var(--ox-light) 50%, transparent 50%); background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; cursor: pointer; }
.form select option { background: var(--ink); color: var(--paper); }
.form textarea { resize: vertical; min-height: 110px; line-height: 1.5; border: 1px solid rgba(244, 239, 230, 0.35); padding: 12px 14px; font-size: 16px; }
.form ::placeholder { color: rgba(244, 239, 230, 0.4); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ox-light); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { box-shadow: 0 2px 0 0 var(--ox-light); }
.form .invalid { border-color: #f0a097 !important; }
.chips { border: 0; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; float: left; }
.chips label { position: relative; cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--paper); }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 16px; border: 1px solid rgba(244, 239, 230, 0.3); font-size: 14px; transition: background-color .2s, color .2s, border-color .2s; }
.chips input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--ox-light); outline-offset: 2px; }
.chips label:hover span { border-color: var(--paper); }
.chips.invalid span { border-color: #f0a097; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: rgba(244, 239, 230, 0.8); cursor: pointer; margin-bottom: 26px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ox-light); cursor: pointer; }
.check.invalid span { color: #f0a097; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-err { font-size: 14px; color: #f0a097; }
.form-done {
  position: absolute; inset: 0; background: #1d2026; padding: clamp(28px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
  animation: fadeIn .5s ease both;
}
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.done-k { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ox-light); }
.done-t { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; max-width: 18ch; }
.form-done p:not(.done-k):not(.done-t) { color: rgba(244, 239, 230, 0.75); max-width: 44ch; }
.form-done .btn { margin-top: 10px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 920px) { .consult-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } .form-foot .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); padding: clamp(56px, 7vw, 88px) 0 0; border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; padding-bottom: 48px; }
.foot-mark { font-size: 32px; }
.foot-tag { margin-top: 10px; font-family: var(--display); font-style: italic; font-size: 18px; color: var(--ink-2); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; font-size: 14px; color: var(--ink-2); }
.foot-h { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.foot-cols li { margin-bottom: 6px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--ox); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { border-top: 1px solid var(--rule-strong); padding-top: 22px; padding-bottom: 88px; font-size: 13px; color: var(--muted); display: grid; gap: 14px; }
.foot-legal strong { color: var(--ink); font-weight: 600; }
.foot-legal > p:first-child { max-width: 92ch; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-meta a { color: var(--ink-2); text-underline-offset: 3px; }
.foot-meta a:hover { color: var(--ox); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div:last-child { grid-column: 1 / -1; } }

/* ---------- Badge ---------- */
.badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 40;
  padding: 7px 12px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--rule-strong);
  font-size: 11px; letter-spacing: 0.06em; text-decoration: none;
  box-shadow: 0 6px 20px -10px rgba(22, 24, 28, 0.35);
  transition: background-color .2s, color .2s, opacity .3s ease, transform .3s ease;
}
.badge:hover { background: var(--ink); color: var(--paper); }
.badge.tuck { opacity: 0; transform: translateY(10px); pointer-events: none; }
@media (max-width: 520px) { .badge { left: 10px; bottom: 10px; font-size: 10px; padding: 6px 10px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .arc { stroke-dashoffset: 0; }
}
