/* Advanced IP Design - site stylesheet */

@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0e1a26;
  --ink-2: #33414e;
  --muted: #66727e;
  --rule: #d8dce0;
  --rule-strong: #b9c0c7;
  --paper: #ffffff;
  --paper-2: #f5f4f0;
  --accent: #e2601e;
  --accent-ink: #a8440f;
  --navy: #0e1a26;
  --navy-2: #172636;
  --on-navy: #e9edf1;
  --on-navy-muted: #9aa7b4;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #fbdcc8; }

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

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.15; }
h3 { font-size: 1.32rem; line-height: 1.3; }
h4 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; overflow-wrap: break-word; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label .num { color: var(--accent); }
.label::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.label.plain::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
  padding: 13px 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  text-decoration: none; border-radius: 0; cursor: pointer; line-height: 1.2;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn .arrow { font-family: var(--mono); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.textlink { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; }
.textlink:hover { border-color: var(--accent); }

/* ---------- Family bar ---------- */
.family { background: var(--navy); color: var(--on-navy-muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.family .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.family-links { display: flex; gap: 20px; align-items: center; }
.family-links a { color: var(--on-navy); text-decoration: none; padding: 9px 0; border-bottom: 2px solid transparent; }
.family-links a:hover { color: #fff; }
.family-links a[aria-current="true"] { border-bottom-color: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: rgba(255,255,255,0.97); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; letter-spacing: -0.01em; line-height: 1; }
.brand-sub { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 400; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a.navlink { font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--ink-2); padding: 8px 11px; position: relative; }
.nav a.navlink:hover { color: var(--ink); }
.nav a.navlink[aria-current="page"] { color: var(--ink); }
.nav a.navlink[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2px; background: var(--accent); }
.nav .btn { margin-left: 8px; padding: 10px 16px; font-size: 0.88rem; }
.nav .lang { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-decoration: none; color: var(--ink-2); border: 1px solid var(--rule-strong); padding: 5px 8px; margin-left: 8px; }
.nav .lang:hover { border-color: var(--ink); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule-strong); padding: 9px 12px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); cursor: pointer; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; border-bottom: 1px solid var(--rule); }
.section.tight { padding: 80px 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--navy); color: var(--on-navy); border-bottom: 0; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .label { color: var(--on-navy-muted); }
.section.dark .muted, .section.dark p { color: var(--on-navy-muted); }
.section.dark a { color: #fff; }
.section-head { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; margin-bottom: 64px; align-items: start; }
.section-head h2 { max-width: 18em; }
.section-head .intro { color: var(--ink-2); font-size: 1.08rem; max-width: 38em; margin-top: 18px; }
.section.dark .section-head .intro { color: var(--on-navy-muted); }

/* ---------- Page hero ---------- */
.hero { padding: 96px 0 88px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.hero h1 { margin: 22px 0 28px; max-width: 13em; }
.hero .drawing { border: 1px solid var(--rule); background: #fbfbfa; }

.page-hero { padding: 88px 0 72px; border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin: 20px 0 22px; max-width: 16em; }
.crumbs { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* ---------- Photos ---------- */
.photo { margin: 0; border: 1px solid var(--rule); background: var(--paper-2); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #e7e9ec; }
.photo.tall img { aspect-ratio: 4 / 5; }
.photo figcaption { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--rule); background: #fff; }
.page-hero .hero-grid { align-items: end; }
.cred-text { margin-top: 28px; }
.foot-contact { margin-top: 18px !important; font-size: 0.88rem; line-height: 1.9; }

/* ---------- Photos ---------- */
.portrait img { aspect-ratio: 4 / 5; object-position: center 25%; }
.principal { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.principal:not(:has([data-portrait])) { grid-template-columns: minmax(0, 1fr); }
.principal h2 { margin: 16px 0 18px; }
.principal .lead { margin-bottom: 22px; }
.principal .ticks { margin-bottom: 8px; }

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.fact { padding: 30px 28px 32px; border-right: 1px solid var(--rule); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact .k { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.15; display: block; margin-bottom: 6px; }
.fact .v { font-size: 0.9rem; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.grid-3 > * { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.cell { padding: 36px 32px 38px; display: flex; flex-direction: column; background: var(--paper); }
.section.alt .cell { background: var(--paper); }
.cell .idx { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 26px; }
.cell h3 { margin-bottom: 12px; }
.cell p { color: var(--ink-2); font-size: 0.98rem; }
.cell .more { margin-top: auto; padding-top: 14px; font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.cell .more:hover { color: var(--accent-ink); }
.door h3 { font-size: 1.22rem; }
.door .idx { color: var(--accent-ink); }
.grid-2.cards { gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.grid-2.cards > * { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.platforms { gap: 24px; }
.platforms .cell { border: 1px solid var(--rule); }
.platforms .ticks { margin: 4px 0 8px; }
.more-row { margin-top: 28px; }
.note { margin-top: 32px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--paper-2); font-size: 0.97rem; }
.other-services { margin-top: 48px; }
.other-services h4 { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.other-services ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.other-services a { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.other-services a:hover { border-color: var(--accent); }
.prose h3.sub { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 32px 0 12px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: 0 0 4px; }
.case-meta .kv th { width: 30%; }
a.cell { text-decoration: none; color: inherit; transition: background .15s ease; }
a.cell:hover { background: #faf9f6; }
a.cell:hover .more { color: var(--accent-ink); }

/* ---------- Service rows ---------- */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 3fr 5fr 4fr; gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 110px; }
a.rowlink { color: inherit; text-decoration: none; transition: background .15s ease; }
a.rowlink:hover { background: var(--paper-2); }
a.rowlink .more { display: inline-block; margin-top: 6px; font-size: 0.9rem; font-weight: 500; color: var(--accent-ink); }
.row .idx { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.06em; display: block; margin-bottom: 12px; }
.row h3 { font-size: 1.5rem; }
.row p { color: var(--ink-2); }
.row .deliverables h4 { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--rule); position: relative; font-size: 0.95rem; color: var(--ink-2); }
.ticks li:first-child { border-top: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 1px; background: var(--accent); }
.section.dark .ticks li { border-color: rgba(255,255,255,0.12); color: var(--on-navy); }

/* ---------- Method ---------- */
.method { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.step { padding: 28px 24px 8px 0; position: relative; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--rule); }
.step .n { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.06em; }
.step h3 { margin: 14px 0 10px; font-size: 1.25rem; }
.step p { font-size: 0.94rem; color: var(--ink-2); }
.step .out { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--muted); border-top: 1px dashed var(--rule-strong); padding-top: 10px; margin-top: 14px; line-height: 1.6; }

/* ---------- Group / brands ---------- */
.group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(255,255,255,0.14); }
.group > div { padding: 36px 32px; border-right: 1px solid rgba(255,255,255,0.14); display: flex; flex-direction: column; }
.group > div:last-child { border-right: 0; }
.group .role { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; filter: brightness(1.45); }
.group h3 { font-size: 1.45rem; margin-bottom: 10px; }
.group .domain { font-family: var(--mono); font-size: 0.82rem; margin-top: auto; padding-top: 22px; }
.group .domain a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.group .domain a:hover { border-color: #fff; }
.group .parent { background: var(--navy-2); }
.group-note { margin-top: 28px; font-size: 0.95rem; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }

/* ---------- Experience list ---------- */
.names { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.names li { list-style: none; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 26px 24px; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.names li span { font-family: var(--mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.05em; color: var(--muted); }
.names { padding: 0; margin: 0 0 18px; }
.names li.next { background: var(--paper-2); }
.names li.next a { text-decoration: none; color: var(--accent-ink); }
.names li.next a::after { content: ""; position: absolute; inset: 0; }
.names li { position: relative; }

/* ---------- Credentials ---------- */
.creds { border-top: 1px solid var(--ink); }
.cred { display: grid; grid-template-columns: 3fr 6fr 3fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.cred .code { font-family: var(--mono); font-size: 0.8rem; color: var(--accent-ink); letter-spacing: 0.04em; }
.cred h3 { font-size: 1.18rem; }
.cred .status { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: right; }
.cred .status.progress { color: var(--accent-ink); }

/* ---------- Timeline ---------- */
.timeline { border-left: 1px solid var(--rule-strong); margin-left: 6px; }
.tl { position: relative; padding: 0 0 36px 36px; }
.tl::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--ink); }
.tl.now::before { background: var(--accent); border-color: var(--accent); }
.tl .yr { font-family: var(--mono); font-size: 0.78rem; color: var(--accent-ink); letter-spacing: 0.06em; }
.tl h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.tl p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }

/* ---------- Key/value tables ---------- */
.kv { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.kv th, .kv td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.kv th { width: 34%; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-right: 24px; padding-top: 19px; }
.kv td { font-size: 1rem; }
.kv th, .kv td { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.kv { table-layout: fixed; }
.mono { font-family: var(--mono); font-size: 0.92em; }

.brand-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.brand-table th, .brand-table td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.brand-table thead th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.brand-table tbody th { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.brand-table td { color: var(--ink-2); font-size: 0.97rem; }
.table-scroll { overflow-x: auto; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.45rem; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: 3fr 9fr; gap: 64px; }
.toc { position: sticky; top: 112px; align-self: start; font-size: 0.9rem; }
.toc ol { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--rule); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: block; padding: 9px 0; text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent-ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--rule-strong); border-radius: 0; padding: 12px 14px; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(180,71,27,0.15); }
.field.check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field.check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; -webkit-appearance: auto; appearance: auto; accent-color: var(--ink); }
.field.check label { font-family: var(--sans); font-size: 0.92rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.field .err { color: #b3261e; font-size: 0.85rem; min-height: 0; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #b3261e; }
.form-status { grid-column: 1 / -1; font-size: 0.95rem; }
.form-status.ok { border-left: 3px solid #1f7a4d; padding: 12px 16px; background: #eef7f1; }
.form-status.bad { border-left: 3px solid #b3261e; padding: 12px 16px; background: #fbefee; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-foot p { margin: 0; font-size: 0.88rem; color: var(--muted); max-width: 30em; }
.aside-block { border-top: 1px solid var(--ink); padding-top: 22px; margin-bottom: 40px; }
.aside-block h3 { font-size: 1.1rem; margin-bottom: 10px; }
.aside-block p { color: var(--ink-2); font-size: 0.97rem; }
.notice { border: 1px solid var(--rule-strong); border-left: 3px solid var(--accent); padding: 18px 20px; background: #fff; margin-bottom: 28px; }

/* ---------- CTA ---------- */
.cta { padding: 104px 0; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.cta-grid { display: grid; grid-template-columns: 8fr 4fr; gap: 48px; align-items: end; }
.cta h2 { max-width: 16em; }
.cta p { color: var(--ink-2); max-width: 36em; margin-top: 18px; }
.cta .btn-row { justify-content: flex-end; margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: 0.92rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.foot-top { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr 2fr; gap: 40px; padding: 80px 0 64px; }
.foot-brand .brand { color: #fff; }
.foot-brand .brand-sub { color: var(--on-navy-muted); }
.foot-brand p { margin-top: 22px; max-width: 24em; line-height: 1.6; }
.site-footer h4 { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.foot-legal { border-top: 1px solid rgba(255,255,255,0.12); padding: 24px 0 30px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; line-height: 1.8; }
.foot-legal .links { display: flex; gap: 20px; }
.ext::after { content: " \2197"; font-family: var(--mono); font-size: 0.85em; }

/* ---------- 404 ---------- */
.notfound { padding: 140px 0; }
.notfound .code { font-family: var(--mono); color: var(--accent); letter-spacing: 0.1em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a.navlink { padding: 8px 8px; font-size: 0.88rem; }
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .names { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 24px; gap: 0; }
  .nav.open { display: flex; }
  .nav a.navlink { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .nav a.navlink[aria-current="page"]::after { left: 0; right: auto; width: 24px; bottom: -1px; }
  .nav .btn { margin: 18px 0 0; justify-content: center; padding: 14px; }
  .site-header .wrap { position: relative; }
  .hero-grid, .section-head, .contact-grid, .cta-grid, .two-col, .grid-2, .principal { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .principal .portrait { max-width: 360px; }
  .nav .lang { margin: 14px 0 0; align-self: flex-start; }
  .family-label { display: none; }
  .family .wrap { justify-content: center; }
  .cta .btn-row { justify-content: flex-start; }
  .photo.tall img { aspect-ratio: 4 / 3; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .group { grid-template-columns: 1fr; }
  .group > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .group > div:last-child { border-bottom: 0; }
  .method { grid-template-columns: 1fr 1fr; }
  .step, .step + .step { padding: 24px 20px 12px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .row { grid-template-columns: 1fr; gap: 18px; }
  .cred { grid-template-columns: 1fr; gap: 6px; }
  .cred .status { text-align: left; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 24px 20px 26px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .fact:nth-child(odd) { border-right: 1px solid var(--rule); }
  .fact:nth-child(even) { padding-left: 20px; }
  .fact:nth-last-child(-n+2) { border-bottom: 0; }
  .toc { position: static; }
  .section { padding: 80px 0; }
  .hero { padding: 64px 0; }
  .page-hero { padding: 64px 0 52px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .family-links { gap: 14px; font-size: 0.66rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .names { grid-template-columns: 1fr 1fr; }
  .names li { font-size: 1rem; padding: 18px 16px; min-height: 0; }
  .method { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; padding: 56px 0 40px; }
  .site-footer a { overflow-wrap: anywhere; }
  .brand-table thead { display: none; }
  .brand-table tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .brand-table th, .brand-table td { display: block; border: 0; padding: 2px 0; }
  .brand-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .cell { padding: 28px 22px 30px; }
  .group > div { padding: 28px 22px; }
  .kv th { width: 40%; font-size: 0.68rem; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { font-size: 0.56rem; }
  .section { padding: 64px 0; }
  .cta { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  .family, .site-header, .site-footer, .cta, .nav-toggle { display: none !important; }
  .section, .hero, .page-hero { padding: 24px 0; border: 0; }
  .section.dark { background: #fff; color: #000; }
}
