/* NexaSphere Ltd — sphere / orbit concept. Tokens first; no framework, no build step. */

:root {
  /* Palette (brand kit: Forest, Beige, Ivory, Ink) */
  --forest: #123D2F;
  --forest-deep: #0C2C21;
  --forest-soft: #1B4A3A;
  --beige: #B5A071;
  --beige-ink: #7A6636;        /* beige darkened for text on ivory (4.9:1) */
  --ivory: #F5F2EA;
  --ivory-2: #ECE6D8;
  --paper: #FBFAF6;
  --ink: #24352D;
  --muted: #55635B;
  --on-dark: #F5F2EA;
  --on-dark-dim: rgba(245, 242, 234, .74);
  --line: rgba(18, 61, 47, .16);
  --line-dark: rgba(245, 242, 234, .16);
  --scrim: 18, 61, 47;         /* --forest as a triplet for gradients */

  /* Type */
  --f-display: "Red Hat Display", "Segoe UI", Arial, sans-serif;
  --f-text: "Red Hat Text", "Segoe UI", Arial, sans-serif;
  --t-hero: clamp(44px, 6.6vw, 96px);
  --t-h2: clamp(32px, 3.9vw, 56px);
  --t-h3: clamp(20px, 1.6vw, 24px);
  --t-lead: clamp(18px, 1.45vw, 21px);
  --t-body: 16.5px;
  --t-small: 14.5px;
  --t-label: 12.5px;

  /* Space */
  --pad-x: clamp(20px, 5.5vw, 80px);
  --section-py: clamp(72px, 9vw, 128px);
  --nav-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  max-width: 1440px; margin: 0 auto; overflow-x: hidden;
  background: var(--ivory); color: var(--ink);
  font: 400 var(--t-body)/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
}
html { background: var(--forest-deep); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; color: inherit; }
h2 { font-size: var(--t-h2); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--beige); outline-offset: 3px; }
.scope :focus-visible, .services :focus-visible, .parties :focus-visible, .principles :focus-visible, .contact-form :focus-visible { outline-color: var(--forest); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--beige); color: var(--forest-deep); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { padding: 0 var(--pad-x); }

/* ---------- Labels ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font: 600 var(--t-label)/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--beige-ink);
}
.label-ring { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.label-ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.label-on-dark { color: var(--beige); }

/* ---------- Buttons: sharp rectangles with an orbit dot ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 24px; border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 15.5px/1 var(--f-text); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; transition: transform .35s var(--ease); }
.btn-dot::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; top: -3.5px; left: 2.5px; }
.btn:hover .btn-dot { transform: rotate(180deg); }
.btn-primary { background: var(--beige); color: var(--forest-deep); }
.btn-primary:hover { background: #C6B386; }
.btn-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark-dim); }
.btn-line { min-height: 42px; padding: 0 18px; border-color: rgba(181, 160, 113, .7); color: var(--on-dark); font-size: 14.5px; }
.btn-line:hover { background: var(--beige); color: var(--forest-deep); border-color: var(--beige); }
.btn-solid { background: var(--forest); color: var(--on-dark); }
.btn-solid:hover { background: var(--forest-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--forest); color: var(--on-dark);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line-dark); background: rgba(var(--scrim), .97); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; padding: 0 var(--pad-x); }
.brand { flex: none; display: block; }
.brand img { width: clamp(168px, 15vw, 214px); height: auto; }
.main-nav { flex: 1; display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: clamp(18px, 2.4vw, 38px); margin: 0 auto; }
.main-nav ul a {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: 15px; font-weight: 500; color: var(--on-dark-dim); text-decoration: none; transition: color .2s;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--beige); transform: scale(0); transition: transform .25s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.active { color: var(--on-dark); }
.main-nav ul a.active::after, .main-nav ul a:hover::after { transform: scale(1); }
.nav-contact { display: none; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(64px, 8vw, 110px) var(--pad-x) 0;
  background: var(--forest); color: var(--on-dark); text-align: center;
}
.hero-sphere {
  position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(96vh, 940px, 128vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  pointer-events: none;
}
.globe { width: 100%; height: 100%; overflow: visible; }
.globe-lines { fill: none; stroke: var(--on-dark); stroke-width: 1.2; }
.globe-rim { stroke-opacity: .34; }
.parallels { stroke-opacity: .16; }
.meridians { stroke-opacity: .2; }
.globe-orbits { fill: none; stroke: var(--beige); stroke-width: 1.4; stroke-opacity: .42; }
.orbit-c { stroke-dasharray: 2 9; stroke-opacity: .5; }
.node { fill: var(--beige); }
.node-b { fill: var(--on-dark); }

.hero-copy { max-width: 860px; position: relative; }
.eyebrow-place::before { content: " · "; }
.eyebrow { margin-bottom: 26px; font: 600 var(--t-label)/1.4 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--beige); }
.hero h1 { font-size: var(--t-hero); font-weight: 500; line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.hero-lead { max-width: 640px; margin: 28px auto 0; font-size: var(--t-lead); line-height: 1.55; color: var(--on-dark-dim); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

.hero-index {
  position: relative; width: 100%; margin-top: clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}
.hero-index li + li { border-left: 1px solid var(--line-dark); }
.hero-index a {
  display: flex; align-items: baseline; justify-content: center; gap: 14px; padding: 26px 16px 30px;
  text-decoration: none; color: var(--on-dark-dim); transition: color .2s, background-color .25s;
}
.hero-index a:hover { color: var(--on-dark); background: rgba(245, 242, 234, .04); }
.idx-num { min-width: 2.4ch; font: 600 13px/1 var(--f-text); font-variant-numeric: tabular-nums; color: var(--beige); letter-spacing: .1em; }
.idx-name { font: 500 17px/1.3 var(--f-display); }

/* ---------- Section head ---------- */
section { position: relative; }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 5.5vw, 76px); }
.section-head h2 { text-wrap: balance; }
.section-head-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.section-head-split > p { color: var(--on-dark-dim); max-width: 470px; }

/* ---------- Scope ---------- */
.scope { padding: var(--section-py) 0; }
.scope-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.scope h2 { margin-bottom: 28px; text-wrap: balance; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--ink); margin-bottom: 18px; }
.scope-copy > p:not(.label):not(.lead) { color: var(--muted); max-width: 560px; }
.nexus { margin: 0; }
.nexus svg { width: 100%; max-width: 540px; margin: 0 auto; overflow: visible; }
.nx { fill: rgba(18, 61, 47, .045); stroke: var(--forest); stroke-width: 1.4; }
.nx-b { stroke: var(--beige-ink); fill: rgba(181, 160, 113, .1); }
.nx-c { stroke-dasharray: 3 7; }
.nx-label { font: 600 17px/1 var(--f-display); fill: var(--forest); letter-spacing: -.005em; }
.nx-core { fill: var(--forest); }
.nexus figcaption { margin-top: 18px; text-align: center; font-size: var(--t-small); color: var(--muted); }
.motion .nexus .nx { transition: transform 1.2s var(--ease); transform-box: fill-box; transform-origin: center; }
.motion .nexus:not(.in) .nx-a { transform: translate(-22px, -10px); }
.motion .nexus:not(.in) .nx-b { transform: translate(22px, -10px); }
.motion .nexus:not(.in) .nx-c { transform: translate(0, 24px); }

/* ---------- Services ---------- */
.services { padding: var(--section-py) 0; background: var(--paper); border-top: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.orbit-map { position: sticky; top: calc(var(--nav-h) + 40px); }
.orbit-map svg { width: 100%; max-width: 440px; margin: 0 auto; overflow: visible; }
.om-ring { fill: none; stroke: var(--line); stroke-width: 1.5; transition: stroke .4s, stroke-width .4s; }
.om-ring.on { stroke: var(--beige); stroke-width: 5; }
.om-tag circle { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.om-tag text { font: 600 13px/1 var(--f-text); fill: var(--muted); text-anchor: middle; transition: fill .4s; }
.om-tag.on circle { fill: var(--forest); stroke: var(--forest); }
.om-tag.on text { fill: var(--on-dark); }
.om-core { fill: var(--forest); }
.motion .orbit-map svg > g, .motion .orbit-map svg > circle.om-ring { transition: stroke .4s, stroke-width .4s; }
.om-caption { margin-top: 26px; text-align: center; font-size: var(--t-small); color: var(--muted); }
.om-current { font-weight: 600; color: var(--forest); }
.om-name { color: var(--ink); font-weight: 500; }

.accordion { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc summary {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; gap: 16px; align-items: center;
  padding: 30px 0; cursor: pointer; list-style: none;
}
.svc summary::-webkit-details-marker { display: none; }
.svc-num { font: 600 14px/1 var(--f-text); font-variant-numeric: tabular-nums; color: var(--beige-ink); letter-spacing: .08em; }
.svc-head { display: flex; flex-direction: column; gap: 6px; }
.svc-title { font: 500 clamp(24px, 2.3vw, 34px)/1.15 var(--f-display); letter-spacing: -.015em; color: var(--forest); }
.svc-tagline { color: var(--muted); font-size: 16px; }
.svc-toggle { width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 50%; position: relative; transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.svc-toggle::before, .svc-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: var(--forest); transition: transform .4s var(--ease), background-color .3s; }
.svc-toggle::after { transform: rotate(90deg); }
.svc summary:hover .svc-toggle { border-color: var(--forest); }
.svc[open] .svc-toggle { background: var(--forest); border-color: var(--forest); transform: rotate(180deg); }
.svc[open] .svc-toggle::before, .svc[open] .svc-toggle::after { background: var(--on-dark); }
.svc[open] .svc-toggle::after { transform: rotate(0deg); }
.svc-body { padding: 0 0 38px 72px; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 24px; row-gap: 26px; }
.svc-icon { grid-row: span 1; width: 56px; height: 56px; padding: 6px; border: 1px solid var(--line); border-radius: 50%; background: var(--ivory); }
.svc-body > p { color: var(--ink); max-width: 620px; }
.caps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.caps li { position: relative; padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.caps li::before { content: ""; position: absolute; left: 0; top: 20px; width: 9px; height: 9px; border: 1.5px solid var(--beige-ink); border-radius: 50%; }
.motion .svc[open] .svc-body { animation: svc-in .5s var(--ease); }
@keyframes svc-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Cycle (arc) ---------- */
.cycle { padding: var(--section-py) 0; background: var(--forest); color: var(--on-dark); overflow: hidden; }
.arc { position: relative; --arc-h: 150px; }
.arc-line { position: absolute; left: 0; top: 0; width: 100%; height: var(--arc-h); overflow: visible; }
.arc-line path { fill: none; stroke: var(--beige); stroke-width: 1.5; stroke-opacity: .65; stroke-dasharray: 3 8; }
.arc-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.arc-steps li { position: relative; padding: calc(var(--arc-h) * var(--arc-y) + 44px) clamp(10px, 1.4vw, 22px) 0; text-align: center; }
.arc-node {
  position: absolute; left: 50%; top: calc(var(--arc-h) * var(--arc-y)); width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: var(--forest); border: 1.5px solid var(--beige);
}
.arc-node::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--beige); }
.step-num { display: block; margin-bottom: 10px; font: 600 12.5px/1 var(--f-text); letter-spacing: .14em; color: var(--beige); }
.arc-steps h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; margin-bottom: 12px; }
.arc-steps p { font-size: 15px; line-height: 1.55; color: var(--on-dark-dim); max-width: 230px; margin: 0 auto; }

/* ---------- Parties ---------- */
.parties { padding: var(--section-py) 0; }
.parties-grid { display: grid; grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr); align-items: stretch; }
.party { padding: clamp(28px, 3.4vw, 48px); background: var(--paper); border: 1px solid var(--line); }
.party h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; color: var(--forest); padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.party li { position: relative; padding: 13px 0 13px 28px; color: var(--ink); line-height: 1.45; }
.party li + li { border-top: 1px dashed var(--line); }
.party li::before { content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--forest); background: radial-gradient(circle, var(--beige) 0 2.5px, transparent 3px); }
.party-link { display: flex; align-items: center; align-self: center; }
.party-line { flex: 1; height: 1.5px; background: repeating-linear-gradient(90deg, var(--beige-ink) 0 4px, transparent 4px 10px); }
.party-mark { flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--forest); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--ivory), 0 0 0 11px var(--line); }
.party-mark img { width: 42px; height: auto; }

/* ---------- Principles ---------- */
.principles { padding: var(--section-py) 0; background: var(--ivory-2); }
.principle-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); border-top: 1px solid var(--line); }
.principle-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.p-num { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--forest); display: grid; place-items: center; font: 500 22px/1 var(--f-display); color: var(--forest); }
.principle-list h3 { color: var(--forest); margin: 4px 0 8px; }
.principle-list p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding: var(--section-py) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; }
.contact-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(32px, 4.4vw, 64px); background: var(--forest); color: var(--on-dark);
}
.contact-orbit { position: absolute; z-index: -1; right: -120px; bottom: -130px; width: 420px; fill: none; stroke: var(--beige); stroke-opacity: .28; stroke-width: 1.2; }
.contact-panel h2 { margin-bottom: 20px; }
.contact-panel > p:not(.label) { color: var(--on-dark-dim); max-width: 440px; }
.contact-details { margin: 40px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact-details div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.contact-details dt { font: 600 var(--t-label)/1.9 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--beige); }
.contact-details dd { margin: 0; color: var(--on-dark); }
.contact-details a { text-decoration: none; border-bottom: 1px solid rgba(181, 160, 113, .6); }
.contact-details a:hover { border-bottom-color: var(--beige); }

.contact-form { padding: clamp(32px, 4.4vw, 64px); background: var(--paper); border: 1px solid var(--line); border-left: 0; display: flex; flex-direction: column; gap: 26px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 600 var(--t-label)/1.4 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.optional { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1.5px solid rgba(18, 61, 47, .34); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 17px/1.5 var(--f-text);
  transition: border-color .2s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23123D2F' stroke-width='1.6'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover, .field select:hover { border-bottom-color: var(--forest); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--forest); box-shadow: 0 1.5px 0 0 var(--forest); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: #A3352B; box-shadow: 0 1.5px 0 0 #A3352B; }
.turnstile-wrap { min-height: 24px; }
.form-status { font-size: var(--t-small); color: var(--muted); }
.form-status a, .form-note a, .form-msg a { color: var(--forest); font-weight: 600; }
.form-status:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.form-note { flex: 1 1 220px; font-size: 13.5px; color: var(--muted); }
.form-msg { padding: 16px 18px; font-size: 15px; border-left: 3px solid; }
.form-msg-ok { background: rgba(18, 61, 47, .07); border-color: var(--forest); color: var(--forest); }
.form-msg-err { background: rgba(163, 53, 43, .07); border-color: #A3352B; color: #7E2920; }
.form-msg:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--on-dark-dim); padding: clamp(56px, 6vw, 88px) 0 32px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, 1fr); gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { width: 220px; height: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 420px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h2 { font: 600 var(--t-label)/1.4 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--beige); margin-bottom: 6px; }
.footer-col a { text-decoration: none; color: var(--on-dark); }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--beige); }
.footer-col address { font-style: normal; max-width: 260px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 26px; font-size: 14px; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--on-dark-dim); text-decoration: none; }
.footer-legal a:hover { color: var(--on-dark); }

/* ---------- Secondary pages ---------- */
.page-hero { background: var(--forest); color: var(--on-dark); padding: clamp(64px, 8vw, 112px) var(--pad-x) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: -140px; top: -180px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(181, 160, 113, .35); box-shadow: inset 0 0 0 70px rgba(245, 242, 234, .025); }
.page-hero h1 { font-size: clamp(40px, 5vw, 72px); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; margin-bottom: 20px; }
.page-hero p:not(.label) { max-width: 640px; color: var(--on-dark-dim); font-size: var(--t-lead); }
.legal { padding: clamp(48px, 6vw, 88px) var(--pad-x) var(--section-py); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; color: var(--forest); margin: 40px 0 12px; letter-spacing: -.01em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink); margin-bottom: 12px; }
.legal-body a { color: var(--forest); font-weight: 600; }
.error-page { min-height: calc(100vh - var(--nav-h) - 120px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.error-page .btn { margin-top: 32px; }
.header-simple .header-inner { justify-content: space-between; }
.footer-compact { padding-top: 0; }
.footer-compact .footer-bottom { border-top: 0; }

/* ---------- Reveal ---------- */
.motion .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal-stagger > * { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion .reveal-stagger.in > * { opacity: 1; transform: none; }
.motion .reveal-stagger.in > :nth-child(2) { transition-delay: .1s; }
.motion .reveal-stagger.in > :nth-child(3) { transition-delay: .2s; }
.motion .reveal-stagger.in > :nth-child(4) { transition-delay: .3s; }
.motion .reveal-stagger.in > :nth-child(5) { transition-delay: .4s; }
.motion .hero .reveal:nth-child(2) { transition-delay: .08s; }
.motion .hero .reveal:nth-child(3) { transition-delay: .16s; }
.motion .hero .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --nav-h: 68px; }
  .scope-grid, .services-grid, .section-head-split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .nexus svg { max-width: 460px; }
  .orbit-map { position: static; display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 28px; }
  .orbit-map svg { max-width: 180px; margin: 0; }
  .om-caption { margin: 0; text-align: left; font-size: 16px; }
  .svc-body { padding-left: 72px; }
  .arc { --arc-h: 110px; }
  .arc-steps h3 { font-size: 21px; }
  .arc-steps p { font-size: 14.5px; }
  .parties-grid { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); }
  .party-mark { width: 60px; height: 60px; }
  .party-mark img { width: 34px; }
  .contact-form { border-left: 1px solid var(--line); border-top: 0; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --t-body: 16px; }
  .header-inner { gap: 16px; justify-content: space-between; }
  .brand img { width: 164px; }
  .menu-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; margin-right: -8px; padding: 0;
    background: none; border: 0; color: var(--on-dark); cursor: pointer; position: relative; z-index: 2;
  }
  .menu-icon { position: relative; width: 26px; height: 14px; }
  .menu-icon i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
  .menu-icon i:first-child { top: 0; }
  .menu-icon i:last-child { top: 12px; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { top: 6px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { top: 6px; transform: rotate(-45deg); }
  .main-nav {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 1;
    flex-direction: column; align-items: stretch; gap: 0; padding: 18px var(--pad-x) 36px;
    background: var(--forest); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .main-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
  .main-nav ul { flex-direction: column; gap: 0; margin: 0 0 28px; }
  .main-nav ul li { border-bottom: 1px solid var(--line-dark); }
  .main-nav ul a { display: flex; padding: 20px 0; font: 500 28px/1.1 var(--f-display); color: var(--on-dark); }
  .main-nav ul a::after { display: none; }
  .main-nav .btn-line { min-height: 52px; font-size: 16px; }
  .nav-contact { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 32px; font-size: 15px; }
  .nav-contact a { color: var(--on-dark-dim); text-decoration: none; }

  .hero { padding-top: 56px; min-height: 0; }
  .hero-sphere { width: 150vw; top: 38%; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 54px); }
  .hero-lead { font-size: 17px; }
  .eyebrow-place { display: block; margin-top: 4px; }
  .eyebrow-place::before { content: none; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin-left: auto; margin-right: auto; }
  .hero-index { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .hero-index li + li { border-left: 0; border-top: 1px solid var(--line-dark); }
  .hero-index a { justify-content: flex-start; padding: 18px 4px; }

  .orbit-map { grid-template-columns: 112px minmax(0, 1fr); gap: 20px; margin-bottom: 8px; }
  .orbit-map svg { max-width: 112px; }
  .om-caption { font-size: 15px; }
  .svc summary { grid-template-columns: 34px minmax(0, 1fr) 36px; gap: 12px; padding: 24px 0; }
  .svc-toggle { width: 36px; height: 36px; }
  .svc-title { font-size: 23px; }
  .svc-tagline { font-size: 15px; }
  .svc-body { padding-left: 0; grid-template-columns: minmax(0, 1fr); }
  .caps { grid-template-columns: minmax(0, 1fr); }

  .arc-line { display: none; }
  .arc-steps { grid-template-columns: minmax(0, 1fr); padding-left: 8px; }
  .arc-steps::before { content: ""; position: absolute; left: 18px; top: 12px; bottom: 12px; width: 1.5px; background: repeating-linear-gradient(180deg, rgba(181, 160, 113, .65) 0 3px, transparent 3px 10px); }
  .arc-steps li { padding: 0 0 36px 44px; text-align: left; }
  .arc-steps li:last-child { padding-bottom: 0; }
  .arc-node { left: 11px; top: 11px; margin: -11px 0 0 -11px; }
  .arc-steps p { margin: 0; max-width: none; }

  .parties-grid { grid-template-columns: minmax(0, 1fr); }
  .party-link { flex-direction: column; height: 120px; }
  .party-line { width: 1.5px; flex: 1; background: repeating-linear-gradient(180deg, var(--beige-ink) 0 4px, transparent 4px 10px); }

  .principle-list { grid-template-columns: minmax(0, 1fr); }
  .principle-list li { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 26px 0; }
  .p-num { width: 44px; height: 44px; font-size: 19px; }

  .contact .wrap { padding: 0; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact-details div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .contact-form { border-left: 0; border-right: 0; }
  .form-foot .btn { width: 100%; }

  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-brand img { width: 190px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .nexus .nx { transform: none !important; transition: none !important; }
  .btn, .btn-dot, .svc-toggle, .svc-toggle::before, .svc-toggle::after, .main-nav { transition: none !important; }
  .btn:hover, .btn:active { transform: none; }
  .svc[open] .svc-body { animation: none; }
}
