/* =========================================================================
   PT Arsindo — shared.css
   Loaded by every page. Tokens, reset, typography, layout, header/nav, buttons, breadcrumb, forms, footer, utilities, print, patch, wa-fab/modal, footer-redesign, search, nav-dropdowns, lang-switcher.
   Generated 2026-05-07 by tools/split-css.php from public_html/style.css.
   Source line ranges: L1-609 L610-753 L2062-2261 L2535-2837 L2838-3066 L3067-3265 L4956-5016.
   Edit either the source or this bundle directly — both work, but if you
   re-run the splitter it consumes the source. Bump BUILD_VER on every edit.
   ========================================================================= */

/* =========================================================================
   PT Arsindo — style.css
   Single stylesheet. No preprocessor, no utility framework.
   Design direction: industrial, generous whitespace, xylem-inspired.
   Conventions: §12 (critical CSS slivers under _inc/critical/ duplicate
   parts of this file by design — keep token values in sync.)
   ========================================================================= */

/* ---------- 1. Design tokens --------------------------------------------- */
:root {
  /* Brand color — primary derived from #3b8ced (HSL 212 84% 58%) */
  --color-primary:        #3b8ced;
  --color-primary-dark:   #1f5fb8;
  --color-primary-darker: #163f7a;
  --color-primary-light:  #d6e7fb;
  --color-primary-wash:   #f1f7fe;

  /* Accent — safety / emergency CTA */
  --color-accent:         #e85d27;
  --color-accent-dark:    #b74317;
  --color-accent-light:   #ffe4d4;

  /* Neutrals */
  --color-bg:             #ffffff;
  --color-surface:        #f7f9fc;
  --color-surface-alt:    #eef2f7;
  --color-text:           #0f1c2e;
  --color-text-muted:     #4d5a6b;
  --color-text-faint:     #7a8696;
  --color-border:         #dde4ec;
  --color-border-strong:  #b9c4d2;
  --color-footer-bg:      #0f1c2e;
  --color-footer-text:    #c8d2e0;
  --color-footer-muted:   #7d8aa0;

  /* Status */
  --color-success: #1f7a4f;
  --color-warning: #b9740d;
  --color-danger:  #b32424;

  /* Type scale — 1.250 modular ratio, base 16px */
  --fs-50:  0.64rem;     /* 10.24px — micro */
  --fs-100: 0.80rem;     /* 12.8px  — small */
  --fs-200: 1.00rem;     /* 16px    — body */
  --fs-300: 1.25rem;     /* 20px    — lead / h6 */
  --fs-400: 1.563rem;    /* 25px    — h5 */
  --fs-500: 1.953rem;    /* 31.25px — h4 */
  --fs-600: 2.441rem;    /* 39.06px — h3 */
  --fs-700: 3.052rem;    /* 48.83px — h2 */
  --fs-800: 3.815rem;    /* 61.04px — h1 */
  --fs-900: 4.768rem;    /* 76.29px — display */

  /* Spacing — 4px base, doubling */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   16px;
  --sp-4:   24px;
  --sp-5:   32px;
  --sp-6:   48px;
  --sp-7:   64px;
  --sp-8:   96px;
  --sp-9:   128px;

  /* Layout */
  --container:        1200px;
  --container-narrow: 880px;
  --container-wide:   1440px;

  /* Breakpoints (reference only — CSS uses inline min-width media queries)
     --bp-sm: 480px
     --bp-md: 768px
     --bp-lg: 1024px
     --bp-xl: 1280px */

  /* Radii */
  --radius-1: 4px;
  --radius-2: 8px;
  --radius-3: 12px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,28,46,.06), 0 1px 1px rgba(15,28,46,.04);
  --shadow-md: 0 4px 12px rgba(15,28,46,.08), 0 2px 4px rgba(15,28,46,.05);
  --shadow-lg: 0 12px 32px rgba(15,28,46,.10), 0 4px 8px rgba(15,28,46,.06);

  /* Transitions */
  --t-fast: 120ms ease-out;
  --t-base: 200ms ease-out;
  --t-slow: 320ms ease-out;

  /* Type stack — Inter self-hosted, system fallbacks */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', monospace;

  /* Line heights */
  --lh-tight: 1.15;
  --lh-snug:  1.3;
  --lh-base:  1.6;

  /* Z scale */
  --z-header:  100;
  --z-overlay: 200;
  --z-modal:   300;

  /* Home design vocabulary, lifted from body.page-home so non-home pages
     can use the same blueprint+editorial language. (2026-05-03 site-wide
     design unification — see CLAUDE.md §7 home design vocabulary.) */
  --ink:                 #0a1322;       /* deep blueprint blue, dark backdrops + ordinals */
  --ink-soft:            #14233b;
  --paper:               #ffffff;
  --paper-soft:          #f4f6fa;
  --rule:                rgba(15, 28, 46, .14);    /* hairline on light bg */
  --rule-strong:         rgba(15, 28, 46, .35);
  --rule-inverse:        rgba(255, 255, 255, .14); /* hairline on dark bg */
  --rule-inverse-strong: rgba(255, 255, 255, .38);
  --signal:              #3b8ced;       /* Arsindo brand blue — accent */
  --signal-hover:        #62a8f5;
  --wa:                  #25D366;       /* WhatsApp brand green */
  --wa-hover:            #1ebe5d;
  --wa-ink:              #075E54;
  --mono:                ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}

/* ---------- 2. Modern reset ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-200);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Safety net for full-bleed CTAs that break out of .wrap via 100vw —
     clip horizontal overflow without disabling sticky-position descendants
     (overflow: clip preserves sticky; overflow: hidden would break the
     transparent-header-over-photo-hero behavior). */
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote, pre {
  margin: 0 0 var(--sp-3);
}
ul, ol { padding-inline-start: 1.25em; }

img, svg, video, canvas, picture { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast);
}
a:hover { color: var(--color-primary-darker); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 2px; }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

::selection { background: var(--color-primary); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. Typography ------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--color-text);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-700); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-600); }
h3 { font-size: var(--fs-500); }
h4 { font-size: var(--fs-400); }
h5 { font-size: var(--fs-300); }
h6 { font-size: var(--fs-200); text-transform: uppercase; letter-spacing: .08em; }

@media (min-width: 768px) {
  h1 { font-size: var(--fs-800); }
  h2 { font-size: var(--fs-700); }
  h3 { font-size: var(--fs-600); }
}

.lead { font-size: var(--fs-300); color: var(--color-text-muted); line-height: var(--lh-snug); }
.eyebrow {
  display: inline-block;
  font-size: var(--fs-100);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-primary-dark);
  margin-bottom: var(--sp-2);
}

small, .small { font-size: var(--fs-100); color: var(--color-text-muted); }

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--sp-6) 0;
}

code, kbd, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2);
  padding: var(--sp-3);
  overflow-x: auto;
}

/* ---------- 4. Layout primitives ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }

@media (min-width: 768px) {
  .container { padding-inline: var(--sp-5); }
}

.section {
  padding-block: var(--sp-7);
}
.section--lg { padding-block: var(--sp-8); }
.section--alt { background: var(--color-surface); }
.section--brand-wash { background: var(--color-primary-wash); }

@media (min-width: 768px) {
  .section { padding-block: var(--sp-8); }
}

.stack > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-5); }

.grid {
  display: grid;
  gap: var(--sp-4);
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; gap: var(--sp-3); }
.flex--wrap { flex-wrap: wrap; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { justify-content: space-between; align-items: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -40px; left: var(--sp-3);
  background: var(--color-text); color: #fff; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-1); z-index: var(--z-overlay);
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-2); color: #fff; }

/* ---------- 5. Header & primary navigation ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  min-height: 72px;
}
.site-header__brand {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 700; font-size: var(--fs-300);
  color: var(--color-text); text-decoration: none;
  line-height: 1;
}
.site-header__brand img { height: 36px; width: auto; }

.nav-primary {
  display: none;
}
.nav-primary ul {
  display: flex; gap: var(--sp-4); list-style: none; margin: 0; padding: 0;
}
.nav-primary a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: var(--sp-2) 0;
  position: relative;
}
.nav-primary a[aria-current="page"],
.nav-primary a.is-active {
  color: var(--color-primary-dark);
}
.nav-primary a[aria-current="page"]::after,
.nav-primary a.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--color-primary);
}
.nav-primary a:hover { color: var(--color-primary-dark); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--color-border);
  border-radius: var(--radius-2);
  color: var(--color-text);
}
.nav-toggle:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }

@media (min-width: 1024px) {
  .nav-primary { display: block; }
  .nav-toggle { display: none; }
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.nav-mobile[aria-hidden="false"] { display: block; }
.nav-mobile ul { list-style: none; margin: 0; padding: var(--sp-3) 0; }
.nav-mobile a {
  display: block; padding: var(--sp-3); color: var(--color-text); text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
}
.nav-mobile a:hover { background: var(--color-surface); color: var(--color-primary-dark); }

@media (min-width: 1024px) {
  .nav-mobile { display: none !important; }
}

/* ---------- 6. Hero — REMOVED 2026-05-04. Superseded by .page-hero (§inner-edit-pass) and .h-hero (§home). */

/* ---------- 7. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: 12px 24px;
  font-size: var(--fs-200);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-2);
  background: var(--color-primary);
  color: #fff;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  min-height: 44px;
}
.btn:hover { background: var(--color-primary-dark); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 2px; }

.btn--secondary {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-border-strong);
}
.btn--secondary:hover {
  background: var(--color-primary-wash);
  border-color: var(--color-primary);
  color: var(--color-primary-darker);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: transparent;
  padding: 12px 12px;
}
.btn--ghost:hover { background: var(--color-surface); color: var(--color-primary-dark); }

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover { background: var(--color-accent-dark); color: #fff; }

.btn--lg { padding: 16px 32px; font-size: var(--fs-300); min-height: 52px; }
.btn--sm { padding: 8px 16px; font-size: var(--fs-100); min-height: 36px; }
.btn--block { display: flex; width: 100%; }

/* ---------- 8. Cards — REMOVED 2026-05-04. No `.card` markup in any page; superseded by section-specific blocks (.h-cap__card, hub-grid, etc.). */

/* ---------- 9. Breadcrumb ------------------------------------------------ */
.breadcrumb {
  font-size: var(--fs-100);
  color: var(--color-text-muted);
  padding-block: var(--sp-3);
}
.breadcrumb ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-1);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--sp-1); }
.breadcrumb li + li::before {
  content: "/"; color: var(--color-text-faint); margin: 0 var(--sp-1);
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary-dark); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: 500; }

/* ---------- 10. Trust block — REMOVED 2026-05-04. _inc/trust.php is orphan (not included by any page); home uses its own .h-cap / cert-ledger blocks under §home. */

/* ---------- 11. Project grid — REMOVED 2026-05-04. _inc/projects.php is included only via ob_start/ob_end_clean to capture $projects_data; its HTML output (.projects, .project-card) is discarded. Home renders its own sortable .h-refs__table. */

/* ---------- 12. CTA blocks — REMOVED 2026-05-04. Real CTAs in _inc/cta-{quote,rental,consult,emergency}.php use .cta--quote/--rental/--consult/--emergency under §pages-redesign, not .cta-block. */

/* ---------- 13. Forms --------------------------------------------------- */
.form-field { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-3); }
.form-field label { font-weight: 600; font-size: var(--fs-100); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-2);
  background: var(--color-bg);
  color: var(--color-text);
  width: 100%;
  min-height: 44px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59,140,237,.18);
}
.form-field__hint { font-size: var(--fs-100); color: var(--color-text-muted); }
.form-field__error { font-size: var(--fs-100); color: var(--color-danger); }
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}

/* contact form (RFQ) */
.contact-form { margin-block: var(--sp-4) var(--sp-6); }
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form__grid { display: grid; gap: var(--sp-3) var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .contact-form__grid { grid-template-columns: 1fr 1fr; }
  .contact-form__field--message { grid-column: 1 / -1; }
}
.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.contact-form__legal { font-size: var(--fs-100); color: var(--color-text-muted); margin: 0; flex: 1 1 240px; }
.form-status {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-2);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-200);
  border: 1px solid var(--color-border);
}
.form-status--success {
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.4);
  color: #146c2e;
}
.form-status--error {
  background: rgba(220,38,38,.06);
  border-color: rgba(220,38,38,.35);
  color: #9b1c1c;
}

/* ---------- 14. Footer --------------------------------------------------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-block: var(--sp-7) var(--sp-5);
  margin-top: var(--sp-8);
}
.site-footer a { color: var(--color-footer-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: var(--fs-100);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: var(--sp-3);
}

.site-footer__grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--sp-2); font-size: var(--fs-100); }

.site-footer__brand { font-weight: 700; font-size: var(--fs-300); color: #fff; margin-bottom: var(--sp-2); }
.site-footer__nap { font-size: var(--fs-100); color: var(--color-footer-muted); }
.site-footer__nap strong { color: #fff; font-weight: 600; }

.site-footer__bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  font-size: var(--fs-100);
  color: var(--color-footer-muted);
}

/* ---------- 15. Misc utilities (sparingly used) ------------------------- */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary-dark); }
.bg-surface  { background: var(--color-surface); }
.no-underline { text-decoration: none; }

.tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--color-primary-light);
  color: var(--color-primary-darker);
  border-radius: var(--radius-pill);
  font-size: var(--fs-100);
  font-weight: 600;
  text-decoration: none;
}
.tag:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

.alert {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-2);
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-wash);
  color: var(--color-text);
}
.alert--accent { border-left-color: var(--color-accent); background: var(--color-accent-light); }
.alert--warning { border-left-color: var(--color-warning); background: #fff5e6; }

/* ---------- 16. Print ---------------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta, .breadcrumb { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================================
   §patch — components missing from initial t3 ship.
   ========================================================================= */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }
:root { --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
html, body { font-family: var(--font-sans); }

.skip-link { position: absolute; left: -9999px; top: 0; padding: .5rem 1rem; background: var(--color-primary); color: #fff; z-index: 1000; text-decoration: none; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

.site-header { background: #fff; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 50; }
/* Nav layout (2026-05-07 v2): logo on the LEFT, everything else right-aligned.
   Lang switcher sits BESIDE the burger menu on the right.
   - Desktop (≥801px): [brand] ───  [nav] [search] [EN|ID]
   - Mobile  (≤800px): [brand] ───────────────────  [EN|ID] [☰]   (nav opens below)
   The right group anchors via margin-left:auto on whichever element is FIRST
   in the right group: nav on desktop, lang-switch on mobile. */
.site-header .wrap {
  display: flex;
  align-items: center;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  gap: 0.75rem;
}
@media (min-width: 801px) {
  .site-header nav { margin-left: auto; }   /* desktop: nav anchors the right group */
}
@media (max-width: 800px) {
  .lang-switch { margin-left: auto; }       /* mobile: lang-switch anchors the right group, hamburger follows */
}
.site-header__brand { font-weight: 700; font-size: 1.125rem; color: var(--color-text); text-decoration: none; letter-spacing: -0.01em; }
.site-header__brand:hover { color: var(--color-primary); }
.brand-mark { display: inline-block; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--color-text); cursor: pointer; padding: .25rem .5rem; }
.site-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.5rem, 2vw, 1.5rem); align-items: center; }
.site-nav a { text-decoration: none; color: var(--color-text-muted); font-size: 0.9375rem; font-weight: 500; padding: .5rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.site-nav a:hover { color: var(--color-primary); }
.site-nav a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }
@media (max-width: 800px) {
  .site-header .wrap { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .site-header nav { display: none; width: 100%; order: 3; }
  .site-header nav.open { display: block; }
  .site-nav { flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem 0; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: .75rem 0; }
  .site-header.nav-open .site-search { order: 2; }
}

.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 6px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1; transition: background .15s, color .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-border-strong); }
.btn--ghost:hover { border-color: var(--color-primary); }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: var(--color-accent-dark); }

body[class^="page-"] { background: var(--color-bg); color: var(--color-text); }
.site-main { min-height: 60vh; padding: clamp(1.5rem, 4vw, 3rem) 0; }
.site-main > .wrap { padding-bottom: 2rem; }

.breadcrumb { font-size: .8125rem; margin-bottom: 1.25rem; color: var(--color-text-muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.breadcrumb li { display: inline; }
.breadcrumb li + li::before { content: "›"; padding-right: .5rem; color: var(--color-text-faint); }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(2rem, 5vw, 4rem) 0; }
.hero__media img, .hero__media .hero__img { width: 100%; height: auto; border-radius: 8px; display: block; }
.hero__copy .eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); margin: 0 0 1rem; }
.hero__copy h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.15; margin: 0 0 1rem; }
.hero__copy .lede { font-size: 1.125rem; color: var(--color-text-muted); margin: 0 0 1.75rem; max-width: 56ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero__motto { font-size: 0.875rem; color: var(--color-text-faint); font-style: italic; margin: 0; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding-top: 1.5rem; } }

.intro, .highlights, .categories, .hub-listing, .blog-index, .trust, .projects { padding: clamp(1.5rem, 4vw, 3rem) 0; border-top: 1px solid var(--color-border); }
.intro h2, .highlights h2, .categories h2, .hub-listing h2, .blog-index h2, .projects h2, .trust h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; }

.card-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; padding: 1.25rem 1.5rem; transition: border-color .15s, box-shadow .15s, transform .05s; }
.card:hover { border-color: var(--color-primary); box-shadow: 0 2px 12px rgba(59, 140, 237, .08); }
.card h3 { margin: 0 0 .5rem; font-size: 1.125rem; }
.card h3 a { color: var(--color-text); text-decoration: none; }
.card h3 a:hover { color: var(--color-primary); }
.card p { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }

.tag-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem .625rem; }
.tag-grid li { display: inline-flex; }
.tag-grid a { display: inline-block; padding: .55rem 1rem; background: var(--color-primary-wash); color: var(--color-primary-dark); border: 1px solid var(--color-primary-light); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.tag-grid a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.post-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
.post-list article { padding: 1.25rem 1.5rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; }
.post-list h3 { margin: 0 0 .25rem; font-size: 1.125rem; }
.post-list h3 a { color: var(--color-text); text-decoration: none; }
.post-list h3 a:hover { color: var(--color-primary); }
.post-list time { font-size: 0.8125rem; color: var(--color-text-faint); }
.post-list p { margin: .5rem 0 0; color: var(--color-text-muted); font-size: 0.9375rem; }

.page--article { max-width: 760px; margin: 0 auto; }
.article-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); }
.article-header h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); line-height: 1.2; margin: 0 0 .75rem; }
.article-meta { font-size: 0.875rem; color: var(--color-text-muted); margin: 0; }
.prose { line-height: 1.7; font-size: 1.0625rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; line-height: 1.3; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; line-height: 1.3; }
.prose h4 { font-size: 1.0625rem; margin: 1.5rem 0 .5rem; line-height: 1.3; }
.prose p { margin: 0 0 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: .375rem; }
.prose a { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { border-left: 4px solid var(--color-primary); padding-left: 1rem; margin: 1.5rem 0; color: var(--color-text-muted); font-style: italic; }
.prose code { background: var(--color-surface-alt); padding: .125rem .375rem; border-radius: 3px; font-size: 0.9em; }
.prose pre { background: var(--color-surface-alt); padding: 1rem; border-radius: 6px; overflow-x: auto; margin: 1.25rem 0; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; border: 1px solid var(--color-border); }
.prose th, .prose td { padding: .625rem .875rem; border-bottom: 1px solid var(--color-border); text-align: left; }
.prose th { background: var(--color-surface); font-weight: 600; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--color-border); margin: 2rem 0; }

.cta-block, [class*="cta-"] { margin: 2.5rem 0; padding: 2rem; border-radius: 8px; background: var(--color-primary-wash); border: 1px solid var(--color-primary-light); text-align: center; }
.cta-block h2, .cta-block h3 { margin: 0 0 .75rem; }
.cta-block p { margin: 0 0 1.25rem; color: var(--color-text-muted); }

.trust ul, .trust .trust__list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.trust li, .trust .trust__item { font-size: 0.8125rem; padding: .5rem .875rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 4px; color: var(--color-text-muted); }

.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding: clamp(2rem, 4vw, 3rem) 0 1.5rem; margin-top: 3rem; }
.site-footer .wrap { display: grid; gap: 2rem; }
.site-footer h3, .site-footer h4 { color: #fff; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 .75rem; }
.site-footer a { color: var(--color-footer-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.site-footer__bottom { padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid #2a3a52; font-size: 0.8125rem; color: var(--color-footer-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }


/* ============================================================================
   §wa-fab + §wa-modal — global persistent WhatsApp button + name/PT modal
   Scoped to all pages (rendered by footer.php). Visible after scroll > 320px.
   ========================================================================= */

.wa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.125rem 0.875rem 0.875rem;
  background: #25D366;
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.20), 0 2px 6px rgba(37,211,102,.35);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .15s ease, box-shadow .15s ease;
  pointer-events: none;
}
.wa-fab.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.wa-fab:hover {
  background: #1ebe5d;
  box-shadow: 0 8px 22px rgba(0,0,0,.22), 0 3px 8px rgba(37,211,102,.45);
}
.wa-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.wa-fab svg { flex-shrink: 0; }
.wa-fab__label { white-space: nowrap; letter-spacing: 0.005em; }
@media (max-width: 600px) {
  .wa-fab {
    padding: 0.875rem;
    right: 1rem;
    bottom: 1rem;
  }
  .wa-fab__label { display: none; }
}

.wa-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 28rem;
  width: 92vw;
  margin: auto;
}
.wa-modal::backdrop {
  background: rgba(10, 19, 34, .65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.wa-modal[open] {
  animation: wa-modal-in .22s ease-out;
}
@keyframes wa-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.wa-modal__form {
  background: #fff;
  border-radius: 6px;
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
}
.wa-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.wa-modal__head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text, #0f1c2e);
  letter-spacing: -0.005em;
}
.wa-modal__close {
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted, #4d5a6b);
  border-radius: 4px;
  transition: background .15s ease, color .15s ease;
}
.wa-modal__close:hover { background: var(--color-surface, #f7f9fc); color: var(--color-text, #0f1c2e); }
.wa-modal__lede {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted, #4d5a6b);
}
.wa-modal__field { display: flex; flex-direction: column; gap: 0.3rem; }
.wa-modal__field label {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted, #4d5a6b);
  font-weight: 600;
}
.wa-modal__field input,
.wa-modal__field textarea {
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border, #dde4ec);
  border-radius: 4px;
  background: #fff;
  color: var(--color-text, #0f1c2e);
  outline: none;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wa-modal__field input:focus,
.wa-modal__field textarea:focus {
  border-color: var(--signal, #3b8ced);
  box-shadow: 0 0 0 3px rgba(59,140,237,.16);
}
.wa-modal__field input:invalid,
.wa-modal__field input:user-invalid { border-color: #b32424; }
.wa-modal__error {
  margin: 0;
  font-size: 0.8125rem;
  color: #b32424;
  background: #fff5f5;
  border: 1px solid #f5c2c2;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}
.wa-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  margin-top: 0.5rem;
}
.wa-modal__cancel {
  background: transparent;
  border: 0;
  color: var(--color-text-muted, #4d5a6b);
  font: inherit;
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.wa-modal__cancel:hover { background: var(--color-surface, #f7f9fc); color: var(--color-text, #0f1c2e); }
.wa-modal__submit {
  background: #25D366;
  color: #fff;
  border: 0;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background .15s ease, gap .2s ease;
}
.wa-modal__submit:hover { background: #1ebe5d; gap: 0.625rem; }
.wa-modal__submit svg { transition: transform .25s ease; }
.wa-modal__submit:hover svg { transform: translateX(3px); }
.wa-modal__privacy {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--color-text-faint, #7a8696);
  font-style: italic;
}


/* ============================================================================
   §footer-redesign — replaces .site-footer__grid layout site-wide.
   Engineering-blueprint vocabulary on a navy band: hairlines, mono labels,
   single-row bottom strip with copyright + legal + socials.
   ========================================================================= */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.875rem;
  line-height: 1.55;
}
body.page-home .site-footer { margin-top: 0; }

.site-footer .wrap.site-footer__inner {
  display: block;
  max-width: 1320px;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.site-footer__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 600px) {
  .site-footer__top { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .site-footer__top { grid-template-columns: 1.5fr 1.1fr 1.4fr 0.9fr; gap: 2.5rem; }
}

.site-footer h2.footer-h,
.site-footer h3.footer-h,
.footer-h {
  font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.55);
  margin: 0 0 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.site-footer__brand .footer-name {
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}
.site-footer__brand .footer-tagline {
  color: var(--color-footer-text);
  font-size: 0.875rem;
  margin: 0 0 1rem;
  max-width: 22rem;
}
.site-footer__brand .footer-motto {
  font-style: italic;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.5);
  margin: 0;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Flagship sub-block inside the brand column — fills the empty vertical
   space below the motto with three product/service highlights. */
.footer-flagship {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255,255,255,.10);
}
.footer-flagship .footer-h {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
}
.footer-flagship__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-flagship__list li {
  position: relative;
  padding-left: 0.875rem;
  font-size: 0.875rem;
}
.footer-flagship__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 1px;
  background: var(--signal, #3b8ced);
}
.footer-flagship__list a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: border-color .2s ease, color .2s ease;
}
.footer-flagship__list a:hover {
  color: #fff;
  border-bottom-color: var(--signal, #3b8ced);
}

/* Workshop II "Coming Soon" placeholder treatment */
.footer-addr__soon {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1875rem 0.5rem;
  background: rgba(59,140,237,.18);
  color: var(--signal, #3b8ced);
  border: 1px solid rgba(59,140,237,.42);
  border-radius: 2px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: max-content;
}
.footer-addr__hint {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.55);
  font-style: italic;
}

.footer-dl {
  margin: 0;
  display: grid;
  gap: 0.875rem;
}
.footer-dl dt {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.45);
  margin: 0 0 0.125rem;
  font-weight: 500;
}
.footer-dl dd {
  margin: 0;
  font-size: 0.9375rem;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.footer-dl dd a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: border-color .2s ease, color .2s ease;
}
.footer-dl dd a:hover { color: #fff; border-bottom-color: var(--signal, #3b8ced); }

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.5rem;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--wa, #25D366);
  border: 1px solid var(--wa, #25D366) !important;
  border-radius: 2px;
  text-decoration: none !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.footer-pill:hover {
  background: var(--wa-hover, #1ebe5d);
  border-color: var(--wa-hover, #1ebe5d) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(37,211,102,.28);
}

.footer-addr {
  font-style: normal;
  display: grid;
  gap: 0.0625rem;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  font-size: 0.875rem;
  color: var(--color-footer-text);
  line-height: 1.5;
}
.footer-addr:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.footer-addr__role {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.site-footer__col .footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.site-footer__col .footer-list li { margin: 0; font-size: 0.9375rem; }
.site-footer__col .footer-list a {
  color: var(--color-footer-text);
  text-decoration: none;
  display: inline-block;
  padding: 0.125rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, padding-left .2s ease;
}
.site-footer__col .footer-list a:hover {
  color: #fff;
  border-bottom-color: var(--signal, #3b8ced);
}

/* Bottom strip */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 0.75rem;
  color: rgba(255,255,255,.55);
}
.site-footer__copy {
  margin: 0;
  font-family: var(--mono, ui-monospace, monospace);
  letter-spacing: 0.02em;
}
.site-footer__copy .sep { margin: 0 0.5rem; opacity: .55; }

.site-footer__legal-nav,
.site-footer__social-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.site-footer__legal-nav li,
.site-footer__social-row li {
  margin: 0;
  font-size: 0.75rem;
  position: relative;
  padding: 0 0.875rem;
}
.site-footer__legal-nav li:first-child,
.site-footer__social-row li:first-child { padding-left: 0; }
.site-footer__legal-nav li:last-child,
.site-footer__social-row li:last-child { padding-right: 0; }
.site-footer__legal-nav li + li::before,
.site-footer__social-row li + li::before {
  content: "·";
  position: absolute;
  left: -2px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.3);
}
.site-footer__legal-nav a,
.site-footer__social-row a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-family: var(--mono, ui-monospace, monospace);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  transition: color .2s ease;
}
.site-footer__legal-nav a:hover,
.site-footer__social-row a:hover {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 700px) {
  .site-footer__bottom { gap: 1rem; }
  .site-footer__copy { width: 100%; }
}

/* ============================================================================
   §search — header search box + /search/ results page
   ========================================================================= */

/* Header search — collapsed to magnifier icon by default; expands on click */
.site-search {
  display: none;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  transition: border-color .15s ease, background .15s ease, padding .2s ease;
  position: relative;
}
.site-search input {
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 0.8125rem;
  width: 0;
  padding: 0;
  opacity: 0;
  color: var(--color-text);
  transition: width .25s ease, padding .25s ease, opacity .15s ease;
}
.site-search input::placeholder { color: var(--color-text-faint); }
.site-search button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  color: var(--color-text-muted);
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.site-search button:hover { color: var(--color-primary); background: rgba(15,28,46,.06); }
.site-search.is-open {
  border-color: var(--color-border);
  background: var(--color-surface, #f7f9fc);
  padding-left: 0.875rem;
}
.site-search.is-open input {
  width: 14rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
  opacity: 1;
}
.site-search.is-open:focus-within {
  border-color: var(--color-primary);
  background: #fff;
}
@media (min-width: 801px) { .site-search { display: inline-flex; } }

/* Home: transparent header — icon is light, expanded form gets translucent surface */
body.page-home .site-search button { color: rgba(255,255,255,.85); }
body.page-home .site-search button:hover { color: #fff; background: rgba(255,255,255,.10); }
body.page-home .site-search.is-open {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}
body.page-home .site-search.is-open input { color: #fff; }
body.page-home .site-search.is-open input::placeholder { color: rgba(255,255,255,.55); }
body.page-home .site-search.is-open:focus-within {
  background: rgba(255,255,255,.95);
  border-color: var(--signal);
}
body.page-home .site-search.is-open:focus-within input { color: var(--ink); }
body.page-home .site-search.is-open:focus-within input::placeholder { color: var(--color-text-faint); }
body.page-home .site-search.is-open:focus-within button { color: var(--ink); }
body.page-home .site-header.is-scrolled .site-search button { color: var(--color-text-muted); }
body.page-home .site-header.is-scrolled .site-search button:hover { color: var(--color-primary); background: rgba(15,28,46,.06); }
body.page-home .site-header.is-scrolled .site-search.is-open {
  background: var(--color-surface);
  border-color: var(--color-border);
}
body.page-home .site-header.is-scrolled .site-search.is-open input { color: var(--color-text); }
body.page-home .site-header.is-scrolled .site-search.is-open input::placeholder { color: var(--color-text-faint); }

/* Mobile-open state: show search expanded inside the nav panel */
@media (max-width: 800px) {
  .site-search {
    display: none;
    width: 100%;
    margin: 0;
    border-radius: 4px;
    padding: 0 0.25rem 0 0.875rem;
  }
  .site-header.nav-open .site-search {
    display: inline-flex !important;
    background: var(--color-surface);
    border-color: var(--color-border);
    margin: 0.5rem 0 0.75rem;
  }
  .site-header.nav-open .site-search input {
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 0;
    opacity: 1;
    color: var(--color-text);
  }
  .site-header.nav-open .site-search button { color: var(--color-text); }
}

/* /search/ results page */
.search-page { max-width: 880px; margin: 0 auto; }
.search-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}
.search-page__intro {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  max-width: 56ch;
}
.search-page__form {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.search-page__form input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  padding: 0.875rem 1rem;
  outline: none;
  color: var(--color-text);
  min-width: 0;
}
.search-page__form input::placeholder { color: var(--color-text-faint); }
.search-page__form button {
  border: 0;
  background: var(--signal);
  color: #fff;
  cursor: pointer;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .15s ease;
}
.search-page__form button:hover { background: var(--signal-hover, #62a8f5); }
.search-page__form:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(59,140,237,.18);
}
.search-page__status {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  min-height: 1.5em;
}
.search-page__results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule, #dde4ec);
}
.search-page__hit {
  border-bottom: 1px solid var(--rule, #dde4ec);
  margin: 0;
}
.search-page__hit a {
  display: block;
  padding: 1.125rem 0;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  transition: padding .15s ease;
}
.search-page__hit a:hover { padding-left: 0.625rem; }
.search-page__hit-type {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  background: rgba(59,140,237,.10);
  padding: 0.125rem 0.4rem;
  margin-bottom: 0.4rem;
  border-radius: 2px;
}
.search-page__hit h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.25rem;
  color: var(--color-text);
  letter-spacing: -0.005em;
}
.search-page__hit a:hover h3 { color: var(--color-primary-darker); }
.search-page__hit p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0 0 0.375rem;
}
.search-page__hit-url {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
}
.search-page__hit mark {
  background: rgba(59,140,237,.18);
  color: inherit;
  padding: 0 2px;
}

/* ============================================================================
   §nav-dropdowns — slim text-only dropdowns on top-level nav items.
   No icons, no marketing copy, no photos. Hairline-separated mono labels.
   ========================================================================= */
.site-nav { position: relative; }
.site-nav li.has-sub {
  position: relative;
}
.site-nav li.has-sub > a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.site-nav .nav-caret {
  opacity: 0.6;
  transition: transform .25s ease, opacity .25s ease;
}
.site-nav li.has-sub:hover > a .nav-caret,
.site-nav li.has-sub:focus-within > a .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 12px 32px rgba(15,28,46,.10), 0 4px 8px rgba(15,28,46,.06);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.site-nav li.has-sub:hover > .nav-sub,
.site-nav li.has-sub:focus-within > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-sub li { width: 100%; }
.nav-sub a {
  display: block;
  padding: 0.625rem 1.125rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.8125rem;
  font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace);
  letter-spacing: 0.02em;
  font-weight: 500;
  border-bottom: 0;
  border-left: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, padding-left .15s ease;
}
.nav-sub a:hover,
.nav-sub a:focus-visible {
  background: var(--color-primary-wash, #f1f7fe);
  color: var(--color-primary-darker, #163f7a);
  border-left-color: var(--signal, #3b8ced);
  padding-left: 1.375rem;
}
/* Flagship sub-nav items: signal-blue square mark + heavier weight.
   Hairline rule separates the flagship cluster from the rest of the list. */
.nav-sub li.is-flagship > a {
  font-weight: 600;
  color: var(--color-text);
}
.nav-sub li.is-flagship > a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  background: var(--signal, #3b8ced);
  vertical-align: 2px;
}
.nav-sub li.is-flagship + li:not(.is-flagship) {
  border-top: 1px solid var(--color-border, rgba(15, 28, 46, .14));
  margin-top: 4px;
  padding-top: 4px;
}

/* Home: dropdown invokes solid white panel even when header is transparent */
body.page-home .nav-sub {
  background: #fff;
  color: var(--color-text);
}
body.page-home .nav-sub a {
  color: var(--color-text);
  text-shadow: none;
}

/* Mobile: hamburger-driven nav. Open state = solid header background,
   nav stretches full width, dropdowns expand inline under parent items. */
@media (max-width: 800px) {
  /* Hide nav by default on mobile (matches existing site-header rules) */
  .site-header nav {
    display: none;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .site-header nav.open { display: block; }

  /* When open, give header a solid background so menu items are readable */
  .site-header.nav-open {
    background: #fff !important;
    border-bottom-color: var(--color-border) !important;
    backdrop-filter: none !important;
  }
  .site-header.nav-open::before { opacity: 0 !important; }
  .site-header.nav-open .site-header__brand,
  .site-header.nav-open .site-nav > li > a {
    color: var(--color-text) !important;
    text-shadow: none !important;
  }
  .site-header.nav-open .nav-toggle {
    color: var(--color-text) !important;
    border-color: var(--color-border) !important;
  }

  /* Site nav items stack column-wise inside the open panel */
  .site-header.nav-open .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    width: 100%;
  }
  .site-header.nav-open .site-nav > li { width: 100%; border-bottom: 1px solid var(--color-border); }
  .site-header.nav-open .site-nav > li:last-child { border-bottom: 0; }
  .site-header.nav-open .site-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    border-bottom: 0;
  }

  /* Dropdown sub-list expands inline under its parent (no overlay) */
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    border-top: 1px solid var(--color-border);
    margin: 0 0 0.75rem;
    padding: 0.5rem 0 0.5rem 1rem;
    border-radius: 0;
    min-width: 0;
    background: transparent;
    display: none;
  }
  /* On mobile, sub-items are collapsed by default. Tapping the parent toggles
     .is-open on its <li>, which reveals just that group (single-open accordion). */
  .site-header.nav-open nav.open .site-nav > li.has-sub > .nav-sub { display: none; }
  .site-header.nav-open nav.open .site-nav > li.has-sub.is-open > .nav-sub { display: block; }
  .nav-sub a {
    padding: 0.5rem 0 0.5rem 1rem;
    font-size: 0.8125rem;
    border-left: 2px solid transparent;
  }
  .nav-sub a:hover {
    padding-left: 1.25rem;
    border-left-color: var(--signal, #3b8ced);
    background: transparent;
  }
  /* Show + animate the caret on mobile so users see the parent is expandable */
  .site-header.nav-open .site-nav li.has-sub > a .nav-caret {
    display: inline-block;
    width: 12px;
    height: 12px;
    transition: transform .2s ease;
  }
  .site-header.nav-open .site-nav li.has-sub.is-open > a .nav-caret {
    transform: rotate(180deg);
  }
}

/* Reduced-motion: kill all reveal/parallax */
@media (prefers-reduced-motion: reduce) {
  body.page-home [data-reveal],
  body.page-home .h-cap__card,
  body.page-home .h-feature__copy { opacity: 1 !important; transform: none !important; }
  body.page-home .h-hero__bg { transform: none !important; }
  .h-hero__scroll svg { animation: none !important; }
}

/* §lang-switcher — bilingual ID/EN pill in header. Active option is a span
   (no self-link), inactive is an anchor to the alternate URL or the lang home.
   Sits next to .site-search inside .site-header > .wrap. Hidden on small
   mobile (≤480px) when nav is closed; surfaces inside the open mobile panel. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  /* No margin-left — sits in the LEFT group next to .site-header__brand,
     spaced by the .wrap gap (2026-05-07 nav-layout rework). */
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono, ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
}
.lang-switch__opt {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color .15s, background .15s;
  cursor: pointer;
}
.lang-switch__opt.is-active {
  color: var(--color-primary);
  background: var(--color-primary-wash, rgba(59, 140, 237, 0.08));
  cursor: default;
}
.lang-switch__opt:not(.is-active):hover {
  color: var(--color-text);
  background: var(--color-surface);
}
/* Photo-hero pages keep the switcher visible on dark backdrops */
body.has-photo-hero .site-header:not(.is-scrolled) .lang-switch {
  border-color: rgba(255, 255, 255, 0.35);
}
body.has-photo-hero .site-header:not(.is-scrolled) .lang-switch__opt {
  color: rgba(255, 255, 255, 0.75);
}
body.has-photo-hero .site-header:not(.is-scrolled) .lang-switch__opt.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
/* Home: under .page-home dark hero header, same dark-backdrop treatment */
body.page-home .site-header:not(.is-scrolled) .lang-switch {
  border-color: rgba(255, 255, 255, 0.35);
}
body.page-home .site-header:not(.is-scrolled) .lang-switch__opt {
  color: rgba(255, 255, 255, 0.75);
}
body.page-home .site-header:not(.is-scrolled) .lang-switch__opt.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
/* 2026-05-07 v2: removed the ≤480px hide-when-nav-closed rule. Per user
   request, the switcher always sits beside the hamburger on mobile. If
   space gets too tight, future option is to shrink padding rather than hide. */
