/* Components. Brand devices: capsule + Sky depth offset, spark, diamond rhythm, brandmark (BG §05). */

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons: capsule, 48 px tall, radius = half height (BG §08) ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: var(--white); --btn-depth: var(--sky);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: var(--radius-capsule);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  box-shadow: -6px 6px 0 0 var(--btn-depth);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translate(2px, -2px); box-shadow: -8px 8px 0 0 var(--btn-depth); }
.btn:active { transform: translate(-2px, 2px); box-shadow: -3px 3px 0 0 var(--btn-depth); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
/* On navy: white capsule, navy text (BG: "primary White or Sky on navy"). */
.on-dark .btn, .btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-depth: var(--sky); }
.btn--sky { --btn-bg: var(--sky); --btn-fg: var(--navy); --btn-depth: var(--white); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; transform: none; background: var(--cloud); }
.on-dark .btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); }
.on-dark .btn--ghost:hover { background: var(--navy-raised); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-small); box-shadow: -4px 4px 0 0 var(--btn-depth); }
.btn--sm:hover { box-shadow: -5px 5px 0 0 var(--btn-depth); }
.btn--header { min-height: 44px; padding: 0 20px; box-shadow: -4px 4px 0 0 var(--btn-depth); }
.btn--header:hover { box-shadow: -5px 5px 0 0 var(--btn-depth); }
body:not([data-hero="light"]) .site-header:not(.is-solid):not(.mega-open) .btn--header { --btn-bg: var(--white); --btn-fg: var(--navy); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; color: var(--link); text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--link-hover); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Labels and brand devices ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-overline);
  letter-spacing: var(--track-overline); text-transform: uppercase; color: var(--blue);
}
.on-dark .eyebrow { color: var(--sky); }
.eyebrow__mark { width: 22px; height: 22px; flex: none; }

.spark { display: inline-block; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--amber); vertical-align: super; }
.spark--dot { width: 12px; height: 12px; vertical-align: middle; }

.diamonds { display: inline-flex; gap: 9px; align-items: center; }
.diamonds i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--navy); }
.diamonds i:nth-child(even) { background: var(--sky); }
.on-dark .diamonds i:nth-child(odd) { background: var(--white); }
.diamonds--lg { gap: 12px; }
.diamonds--lg i { width: 10px; height: 10px; }

.brandmark { width: 40px; height: 40px; }

/* Capsule highlight bar with Sky depth (as in the profiles' "Our promise" bar). */
.highlight {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-6);
  padding: var(--sp-5) clamp(1.5rem, 1rem + 2vw, 2.75rem); margin: 0 0 12px 12px;
  border-radius: var(--radius-capsule); background: var(--navy); color: var(--white);
  box-shadow: -12px 12px 0 0 var(--sky);
}
.highlight .eyebrow { color: var(--sky); }
.highlight__text { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); letter-spacing: -0.01em; }
@media (max-width: 600px) { .highlight { border-radius: var(--radius-lg); } }

.chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: var(--radius-capsule);
  background: var(--mist); border: 1px solid var(--line); color: var(--navy);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.01em;
}
.on-dark .chip { background: transparent; border-color: var(--sky); color: var(--cloud); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }

.pill {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-capsule);
  background: var(--sky); color: var(--navy); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap;
}

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card h3 { font-size: 1.1875rem; }
.card p { color: var(--text-muted); font-size: var(--fs-small); }
.card .link-arrow { margin-top: auto; }
.card--link:hover { border-color: var(--navy); box-shadow: -10px 10px 0 0 var(--sky); }
.card a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card a.stretched:focus-visible { outline: none; }
.card:has(a.stretched:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.section--cloud .card, .section--mist .card { border-color: transparent; }

/* Pillar card: navy, 3D tilt on hover (fine pointers only, see main.js). */
.pillar-card {
  --tilt-x: 0deg; --tilt-y: 0deg;
  position: relative; display: flex; flex-direction: column; gap: var(--sp-4);
  min-height: 340px; padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); border-radius: var(--radius-lg);
  background: var(--navy); color: var(--white); overflow: hidden; isolation: isolate;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pillar-card.is-tilting { transition: box-shadow var(--dur) var(--ease); }
.pillar-card:hover, .pillar-card:focus-within { box-shadow: -12px 12px 0 0 var(--sky); }
.pillar-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern-lattice); opacity: 0.07; }
.pillar-card__num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-small); color: var(--sky); }
.pillar-card__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); color: var(--white); }
.pillar-card__desc { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); }
.pillar-card p { color: var(--navy-text-muted); font-size: var(--fs-small); }
.pillar-card .link-arrow { margin-top: auto; color: var(--white); }
.pillar-card .link-arrow:hover { color: var(--sky); }
.pillar-card > * { transform: translateZ(24px); }
.pillar-card--light { background: var(--cloud); color: var(--text); }
.pillar-card--light .pillar-card__name { color: var(--navy); }
.pillar-card--light .pillar-card__desc, .pillar-card--light .pillar-card__num { color: var(--blue); }
.pillar-card--light p { color: var(--text); }
.pillar-card--light .link-arrow { color: var(--blue); }

/* Service card */
.service-card { gap: var(--sp-2); }
.service-card__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.service-card__num { font-family: var(--font-display); font-weight: 800; letter-spacing: 0; color: var(--blue); }
.service-card h3 { font-size: 1.125rem; }

/* Stat block: only real figures (brief §6). */
.stats { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); list-style: none; margin: 0; padding: 0; }
.stat { display: grid; align-content: start; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 2px solid var(--navy); }
.on-dark .stat { border-color: var(--sky); }
.stat__value { display: flex; align-items: flex-start; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 2rem + 3vw, 4rem); line-height: 0.95; letter-spacing: -0.02em; color: var(--heading); }
.stat__value .spark--dot { margin-top: 0.15em; }
.stat__label { font-size: var(--fs-small); color: var(--text-muted); max-width: 26ch; }

/* Engagement model card with duration pill */
.engage { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); list-style: none; margin: 0; padding: 0; }
.engage-card { display: grid; gap: var(--sp-3); align-content: start; padding: var(--sp-5); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.on-dark .engage-card { background: transparent; border-color: var(--navy-line); }
.engage-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); }
.engage-card h3 { font-size: 1.1875rem; }
.engage-card p { color: var(--text-muted); font-size: var(--fs-small); }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); counter-reset: step; position: relative; }
.step { position: relative; display: grid; gap: var(--sp-2); align-content: start; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-small);
  box-shadow: -4px 4px 0 0 var(--sky);
}
.on-dark .step::before { background: var(--white); color: var(--navy); }
.step::after { content: ""; position: absolute; top: 20px; left: 52px; right: -12px; height: 2px; background: var(--line); }
.on-dark .step::after { background: var(--navy-line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.125rem; }
.step p { font-size: var(--fs-small); color: var(--text-muted); }
@media (max-width: 767px) { .step::after { display: none; } }

/* Commitment strip */
.commitments { list-style: none; margin: 0; padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: var(--radius); background: var(--cloud); display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.commitments li { display: grid; align-content: start; gap: var(--sp-1); grid-template-columns: auto 1fr; column-gap: var(--sp-3); align-items: start; }
.commitments li::before { content: ""; grid-row: span 2; width: 8px; height: 8px; margin-top: 0.55em; transform: rotate(45deg); background: var(--blue); }
.commitments strong { font-family: var(--font-display); color: var(--navy); }
.commitments span { font-size: var(--fs-small); color: var(--text-muted); }

/* Bullet list with diamond markers */
.diamond-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.diamond-list li { position: relative; padding-left: 22px; }
.diamond-list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--blue); }
.on-dark .diamond-list li::before { background: var(--sky); }

/* FAQ accordion: native details/summary, keyboard-ready. */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  min-height: 64px; padding: var(--sp-3) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; transition: transform var(--dur) var(--ease); color: var(--blue); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__body { padding: 0 0 var(--sp-5); max-width: 70ch; color: var(--text-muted); }

/* Breadcrumbs */
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); }
.breadcrumb li + li::before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--sky); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--navy); padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); }
.cta-band__inner { display: grid; gap: var(--sp-6); align-items: center; }
.cta-band h2 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.5rem); max-width: 18ch; }
.cta-band p { color: var(--navy-text-muted); max-width: 46ch; margin-top: var(--sp-4); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); align-items: center; }
.cta-band__capsule { position: absolute; right: -80px; bottom: -70px; width: 380px; height: 140px; border-radius: var(--radius-capsule); background: var(--blue); box-shadow: -22px 22px 0 0 var(--sky); opacity: 0.4; pointer-events: none; }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } .cta-band__actions { justify-content: flex-end; } }

/* Data table (brand architecture levels, company facts) */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.data-table th, .data-table td { padding: var(--sp-4) var(--sp-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--navy); color: var(--white); font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.data-table tbody th { font-family: var(--font-display); color: var(--navy); }
.data-table tr:last-child > * { border-bottom: 0; }

/* Form fields */
.field { display: grid; gap: var(--sp-2); }
.field label { font-weight: 700; font-size: var(--fs-small); color: var(--heading); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--white); color: var(--graphite);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--cloud), 0 0 0 5px var(--blue); }
.field__hint { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- Page hero (dark) ---------- */
.hero { position: relative; overflow: hidden; background: var(--deep); padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 5rem)); padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.hero--gradient { background: var(--gradient-hero); }
.hero__inner { position: relative; display: grid; gap: var(--sp-6); }
.hero h1 { color: var(--white); }
.hero .lead { margin-top: var(--sp-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-6); }

/* Hero entrance runs in CSS, so it never waits for JavaScript. */
.hero-anim { animation: rise 720ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.is-loading .hero-anim { animation-play-state: paused; }

/* ---------- Small 3D scenes (anim/scene-box.js): poster first, canvas fades in once live ---------- */
.scene-box { position: relative; overflow: hidden; }
.scene-box__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 600ms var(--ease); }
.scene-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 800ms var(--ease); }
.scene-box.is-live canvas { opacity: 1; }
.scene-box.is-live .scene-box__poster { opacity: 0; }

/* ---------- Tilt (generic) ---------- */
[data-tilt] { will-change: transform; }

/* ---------- Custom cursor (desktop fine pointers only; created by cursor.js) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none;
  width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  border: 1.5px solid var(--sky); box-shadow: 0 0 0 1px var(--scrim);
  opacity: 0; transition: width var(--dur) var(--ease), height var(--dur) var(--ease), margin var(--dur) var(--ease), opacity var(--dur-fast) var(--ease), background-color var(--dur) var(--ease);
}
.cursor.is-visible { opacity: 1; }
.cursor.is-active { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--sky-wash); }
.cursor.is-pressed { width: 22px; height: 22px; margin: -11px 0 0 -11px; }

/* ---------- Page loader: first visit only, ≤ 1.2 s, set up by the inline head script ---------- */
.loader { display: none; }
.is-loading .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--deep); animation: loader-out 300ms var(--ease) 900ms forwards;
}
.loader svg { width: 88px; height: 88px; overflow: visible; }
.loader__d { fill: transparent; stroke: var(--sky); stroke-width: 14; stroke-dasharray: 1; stroke-dashoffset: 1; animation: loader-draw 620ms var(--ease-in-out) 60ms forwards, loader-fill 260ms var(--ease) 600ms forwards; }
@keyframes loader-draw { to { stroke-dashoffset: 0; } }
@keyframes loader-fill { to { fill: var(--white); stroke-width: 0; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Page transition: navy capsule wipe ---------- */
.page-wipe {
  position: fixed; left: -25vw; bottom: -40vh; z-index: var(--z-wipe); pointer-events: none;
  width: 150vw; height: 180vh; border-radius: var(--radius-capsule);
  background: var(--navy); box-shadow: -40px 40px 0 0 var(--sky);
  transform: translate(-110%, 0) rotate(-12deg); visibility: hidden;
}
.page-wipe.is-in { visibility: visible; transform: translate(0, 0) rotate(-12deg); transition: transform 380ms var(--ease-in-out); }
.is-arriving .page-wipe { visibility: visible; transform: translate(0, 0) rotate(-12deg); }
.page-wipe.is-out { visibility: visible; transform: translate(110%, 0) rotate(-12deg); transition: transform 460ms var(--ease-in-out); }
