/* ═══════════════════════════════════════════════════════════
   twinalps BASE STYLES
   Loaded by every page (index + all subpages).
   Contains: tokens, reset, nav, dropdown, buttons, footer,
   grain, scroll-progress, fine details.
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --paper:        #FAFAF7;
  --paper-2:      #F4F4EE;
  --ink:          #0A0E1A;
  --ink-2:        #1A1F2E;
  --muted:        #5C6370;
  --muted-2:      #9AA0AB;
  --ridge:        #E5E7EC;
  --ridge-2:      #D8DAE0;

  /* ── Brand semantics ──────────────────────────────────────
     Named for meaning, not hue. Blue is a NETWORK signal only
     (Kosovo origin, route, "why Kosovo"); it is NOT the default
     interaction colour. Navy carries CTAs and generic emphasis;
     deep blue marks Austrian contract/legal; blue-grey marks availability. */
  --trust-navy:   #0B1E3F;   /* CTA, primary accents, emphasis */
  --trust-navy-2: #142A54;   /* navy hover / raised state */
  --kosovo-blue:  #2563EB;   /* Kosovo / network signal ONLY */
  --kosovo-blue-bright: #3B82F6;
  --contract-blue:#233F67;   /* Austrian contract / legal markers */
  --availability-blue: var(--kosovo-blue); /* standard blue for availability / positive facts */
  --pending-grey: #7A6F5F;   /* upcoming availability */
  --paper-warm:   #F1EFE7;   /* warm section surface */
  --line-soft:    #E5E7EC;   /* hairlines / borders */

  /* Legacy aliases now resolve to NAVY, not blue. This flips every
     generic accent (hovers, lines, card rules, labels, CTAs) to the
     trust-navy voice in one move. Genuine Kosovo/network signals are
     re-pointed to --kosovo-blue explicitly at their call sites. */
  --blue:         var(--trust-navy);
  --blue-bright:  var(--trust-navy);
  --blue-soft:    #93B4F5;
  --blue-deep:    #0B1E3F;
  --blue-deeper:  #050D24;

  --red:          var(--contract-blue);
  --red-soft:     color-mix(in srgb, var(--contract-blue) 8%, transparent);
  --ok:           var(--availability-blue);

  /* Technical panel / table surfaces */
  --panel:        #FFFFFF;
  --panel-2:      #F4F4EE;

  /* Scroll-rhythm band surfaces (homepage) */
  --band-warm:    #F1EFE7;
  --band-blue:    #EBF0FB;
  --band-ink:     #0B1E3F;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-2:   cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-sm:    0 1px 2px rgba(10, 14, 26, 0.04);
  --shadow-md:    0 4px 12px rgba(10, 14, 26, 0.06), 0 1px 2px rgba(10, 14, 26, 0.04);
  --shadow-lg:    0 12px 40px rgba(10, 14, 26, 0.08), 0 4px 12px rgba(10, 14, 26, 0.04);

}

[data-theme="dark"] {
  --paper:        #0A0E1A;
  --paper-2:      #131826;
  --ink:          #F4F5F8;
  --ink-2:        #C9CDD6;
  --muted:        #9CA3AF;
  --muted-2:      #6B7280;
  --ridge:        #1F2433;
  --ridge-2:      #2A3142;

  --trust-navy:   #E7ECF6;   /* on dark, "navy" emphasis reads as near-white ink */
  --trust-navy-2: #FFFFFF;
  --kosovo-blue:  #3B82F6;
  --kosovo-blue-bright: #60A5FA;
  --contract-blue:#B7C9E5;
  --availability-blue: var(--kosovo-blue);
  --pending-grey: #CFC4B2;
  --paper-warm:   #12171F;
  --line-soft:    #1F2433;

  --blue:         var(--trust-navy);
  --blue-bright:  var(--trust-navy);
  --blue-soft:    #93B4F5;

  --red:          var(--contract-blue);
  --red-soft:     color-mix(in srgb, var(--contract-blue) 12%, transparent);
  --ok:           var(--availability-blue);

  --panel:        #131826;
  --panel-2:      #0F1420;

  --band-warm:    #12171F;
  --band-blue:    #0E1730;
  --band-ink:     #0E1A33;

  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg:    0 12px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);

}

/* ── Reset ───────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "calt";
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

/* ── Font utilities ──────────────────────────────────────── */
.font-display      { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; letter-spacing: -0.02em; }
.font-italic-accent{ font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }
.font-mono         { font-family: 'Manrope', ui-monospace, monospace; }
.tabular           { font-variant-numeric: tabular-nums; }

/* ── Focus states ────────────────────────────────────────── */
*:focus { outline: none; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--trust-navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

/* ── Eyebrow ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ── Grain overlay ───────────────────────────────────────── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.06; }

/* ── Scroll progress bar ─────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%; z-index: 110;
  background: linear-gradient(to right,
    rgba(11, 30, 63, 0.0) 0%,
    rgba(11, 30, 63, 0.55) 40%,
    var(--trust-navy) 100%);
  transition: width 0.08s linear;
  pointer-events: none;
}
[data-theme="dark"] .scroll-progress {
  background: linear-gradient(to right,
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.35) 40%,
    rgba(255, 255, 255, 0.7) 100%);
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 1024px) { .nav-inner { padding: 0 40px; } }

.nav.scrolled {
  background: rgba(250, 250, 247, 0.96);
  border-bottom-color: var(--ridge);
  box-shadow: 0 10px 30px -24px rgba(10, 14, 26, 0.28);
}
[data-theme="dark"] .nav.scrolled {
  background: rgba(10, 14, 26, 0.96);
  border-bottom-color: var(--ridge);
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.75);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand svg { display: block; transition: transform 0.5s var(--ease-out); }
.brand:hover svg { transform: translateY(-1px); }
.brand-name {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500; font-size: 19px; letter-spacing: -0.018em;
}

.nav-links {
  display: none; align-items: center; gap: 32px;
  list-style: none; padding: 0; margin: 0;
}
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-links a {
  position: relative;
  color: rgba(10, 14, 26, 0.78);
  text-decoration: none; font-size: 14px;
  transition: color 0.2s var(--ease-out);
}
[data-theme="dark"] .nav-links a { color: rgba(244, 245, 248, 0.78); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active { color: var(--ink); }
/* Active nav item carries a short ink underline rather than a blue tint */
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1.5px; background: var(--ink); border-radius: 1px;
}

.nav-cta {
  display: none; font-size: 13.5px; font-weight: 500;
  padding: 9px 16px; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  text-decoration: none;
  transition: background 0.25s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }
.nav-cta:hover { background: var(--trust-navy-2); transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(10, 14, 26, 0.5); }
[data-theme="dark"] .nav-cta:hover { background: var(--paper); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.7); }
@media (prefers-reduced-motion: reduce) { .nav-cta:hover { transform: none; } }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px;
  background: transparent; border: 1px solid var(--ridge-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer; flex-shrink: 0;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  position: relative; overflow: hidden;
}
.theme-toggle:hover { border-color: var(--ink); background: rgba(10, 14, 26, 0.04); }
[data-theme="dark"] .theme-toggle { border-color: rgba(255, 255, 255, 0.18); }
[data-theme="dark"] .theme-toggle:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.theme-toggle .theme-icon { width: 16px; height: 16px; position: absolute; transition: transform 0.5s var(--ease-out), opacity 0.3s var(--ease-out); }
.theme-toggle .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.6); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

.menu-btn { display: inline-flex; background: transparent; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
@media (min-width: 960px) { .menu-btn { display: none; } }

.mobile-menu { display: none; border-top: 1px solid var(--ridge); background: var(--paper); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 16px 24px; margin: 0; }
.mobile-menu li { padding: 10px 0; }
.mobile-menu a { color: var(--ink); text-decoration: none; font-size: 15px; }
.mobile-menu .mobile-menu-group { padding: 12px 0; }
.mobile-menu .mobile-menu-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font: 700 10px/1.2 'Manrope', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mobile-menu .mobile-submenu {
  margin: 0;
  padding: 2px 0 0 14px;
  border-left: 1px solid var(--ridge);
}
.mobile-menu .mobile-submenu li { padding: 7px 0; }
.mobile-menu .mobile-submenu a { font-size: 14.5px; }
[data-theme="dark"] .mobile-menu { background: var(--paper); border-top-color: var(--ridge); }
[data-theme="dark"] .mobile-menu a { color: var(--ink); }

/* ── Dropdown ────────────────────────────────────────────── */
.has-dropdown { position: relative; }
.has-dropdown .dropdown {
  position: absolute; top: calc(100% + 14px); left: -16px;
  min-width: 210px; padding: 8px;
  background: var(--panel);
  border: 1px solid var(--ridge);
  border-radius: 6px;
  box-shadow: 0 12px 28px -18px rgba(10, 14, 26, 0.28);
  list-style: none; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s 0.25s;
  z-index: 200;
}
[data-theme="dark"] .has-dropdown .dropdown {
  background: var(--panel);
  border-color: var(--ridge);
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.75);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s;
}
.dropdown li a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px; white-space: nowrap;
  color: var(--ink); text-decoration: none;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
[data-theme="dark"] .dropdown li a { color: var(--ink); }
.dropdown li a:hover, .dropdown li a.active {
  background: var(--paper-2); color: var(--ink);
}
[data-theme="dark"] .dropdown li a:hover,
[data-theme="dark"] .dropdown li a.active {
  background: rgba(255, 255, 255, 0.06); color: var(--ink);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 14px 22px; border-radius: 6px;
  text-decoration: none; border: 1px solid transparent;
  overflow: hidden; cursor: pointer; will-change: transform;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.2),
    var(--shadow-md);
}
.btn-primary:hover {
  background: var(--trust-navy-2);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.15),
    var(--shadow-lg);
}
.btn svg { transition: transform 0.3s var(--ease-out); }
.btn-primary:hover svg { transform: translateX(2px); }

[data-theme="dark"] .btn-primary {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.1),
    var(--shadow-md);
}
[data-theme="dark"] .btn-primary:hover { background: var(--paper); color: var(--ink); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ridge-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(10, 14, 26, 0.03); }
[data-theme="dark"] .btn-ghost { border-color: rgba(255, 255, 255, 0.18); }
[data-theme="dark"] .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--ridge);
  background: var(--panel);
  position: relative; overflow: hidden;
}
[data-theme="dark"] footer {
  background: var(--panel);
  border-top-color: var(--ridge);
}
.footer-mark {
  position: absolute; bottom: -28px; left: 0; right: 0;
  text-align: center;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 600;
  font-size: clamp(120px, 22vw, 320px); letter-spacing: -0.04em;
  background: linear-gradient(to top,
    rgba(11, 30, 63, 0.16) 0%, rgba(11, 30, 63, 0.10) 35%, rgba(11, 30, 63, 0.0) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; pointer-events: none; line-height: 1; user-select: none;
}
[data-theme="dark"] .footer-mark {
  background: linear-gradient(to top,
    rgba(147, 180, 245, 0.10) 0%, rgba(147, 180, 245, 0.05) 35%, rgba(147, 180, 245, 0.0) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.footer-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 64px 24px 48px;
}
@media (min-width: 1024px) { .footer-inner { padding: 64px 40px 48px; } }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; text-decoration: none; color: var(--ink); }
.footer-meta { font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; font-size: 12px; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 28px; font-size: 13.5px; }
.footer-links a { color: rgba(10, 14, 26, 0.7); text-decoration: none; transition: color 0.2s var(--ease-out); }
[data-theme="dark"] .footer-links a { color: rgba(244, 245, 248, 0.72); }
.footer-links a:hover { color: var(--ink); }
[data-theme="dark"] .footer-links a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ridge);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; font-size: 11.5px; color: var(--muted);
}

/* ── Fine details ────────────────────────────────────────── */

/* Branded text selection */
::selection { background: var(--ink); color: var(--paper); }
[data-theme="dark"] ::selection { background: var(--ink); color: var(--paper); }

/* Refined underline offset on all links */
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Normalize browser autofill against the site palette */
.field:-webkit-autofill,
.field:-webkit-autofill:hover,
.field:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 120px var(--paper) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}

/* Anchor targets clear the fixed nav */
:target { scroll-margin-top: 90px; }

/* Tabular nums on monospace elements - numbers align in columns */
.eyebrow, .breadcrumb, .footer-bottom, .footer-meta,
.deliver-num, .cross-num, .path-label, .field-label,
.hours-note, .form-footer-note, .chip, .shape-spec li {
  font-variant-numeric: tabular-nums;
}

/* Scroll reveal - below-fold elements animate in via IntersectionObserver */
.reveal,
[data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.in,
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.40s; }

/* Character counter */
.char-counter {
  display: block; text-align: right;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; font-size: 11px;
  font-variant-numeric: tabular-nums; color: var(--muted-2);
  margin-top: 6px; letter-spacing: 0.04em;
  transition: color 0.2s var(--ease-out);
}
.char-counter.near-limit { color: var(--pending-grey); }
.char-counter.over-limit  { color: var(--contract-blue); }

/* ═══════════════════════════════════════════════════════════
   ALPINE MOTIF - the connective brand device (used site-wide)
   Twin-peak rule divider + faint topographic contour backdrop.
   ═══════════════════════════════════════════════════════════ */

/* Section divider: a hairline broken by the twin-peaks mark.
   Markup: <div class="rule-peak" aria-hidden="true"><svg …peaks…/></div> */
.rule-peak {
  display: flex; align-items: center; gap: 18px;
  width: 100%; margin: 0; color: var(--muted-2);
}
.rule-peak::before, .rule-peak::after {
  content: ''; height: 1px; flex: 1 1 auto; background: var(--ridge);
}
.rule-peak svg { flex: none; display: block; color: var(--ridge-2); }
[data-theme="dark"] .rule-peak svg { color: var(--muted-2); }

/* Faint topographic contour backdrop for hero sections.
   Parent needs position:relative; isolation. Contour SVG sits inside. */
.contour-bg {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 80% 0%, #000 30%, transparent 78%);
}
.contour-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.contour-bg path { fill: none; stroke: var(--ridge); stroke-width: 1; vector-effect: non-scaling-stroke; }
.contour-bg .peak { stroke: var(--ridge-2); }
[data-theme="dark"] .contour-bg path { stroke: var(--ridge); opacity: 0.9; }

/* Scroll rhythm - alpine bands, motifs, and editorial watermarks. */
.band { position: relative; overflow: hidden; isolation: isolate; }
.band > .container { position: relative; z-index: 2; }
.band--warm { background: var(--band-warm); }
.band--blue { background: var(--band-blue); }
.band--ink  { background: var(--band-ink); }

.sec-motif { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sec-motif svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sec-motif--flip svg { transform: scaleY(-1); }
.sec-motif .contour { fill: none; stroke: var(--ridge-2); stroke-width: 1.25; vector-effect: non-scaling-stroke; opacity: 0.75; }
.sec-motif .ridge { fill: var(--ridge-2); opacity: 0.30; }
[data-theme="dark"] .sec-motif .contour { stroke: rgba(255,255,255,0.08); }
[data-theme="dark"] .sec-motif .ridge { fill: rgba(255,255,255,0.05); }
.band--ink .sec-motif .contour { stroke: rgba(255,255,255,0.11); opacity: 1; }
.band--ink .sec-motif .ridge { fill: rgba(255,255,255,0.06); }
.band--blue .sec-motif .contour { stroke: color-mix(in srgb, var(--kosovo-blue) 34%, var(--ridge)); opacity: 0.55; }

.sec-watermark {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; font-weight: 700;
  line-height: 0.8; letter-spacing: 0; white-space: nowrap;
  color: var(--ink); opacity: 0.035;
}
[data-theme="dark"] .sec-watermark { color: #fff; opacity: 0.05; }
.band--ink .sec-watermark { color: #fff; opacity: 0.06; }

/* Dark-band defaults for shared section typography and panels. */
.band--ink .eyebrow,
.band--ink .breadcrumb,
.band--ink .breadcrumb a { color: rgba(244,245,248,0.62); }
.band--ink .breadcrumb .current,
.band--ink .h2,
.band--ink .section-h2,
.band--ink .page-h1 { color: #F7F8FA; }
.band--ink .section-intro,
.band--ink .page-lede,
.band--ink .page-hero-meta,
.band--ink .page-hero-meta span,
.band--ink .page-proof-row,
.band--ink .page-proof-copy { color: rgba(244,245,248,0.74); }
.band--ink .page-hero-meta strong,
.band--ink .page-proof-row strong,
.band--ink .page-proof-title,
.band--ink .page-proof-panel h3,
.band--ink .module h3,
.band--ink .deliverable-card h3,
.band--ink .stack-group h3,
.band--ink .eng-role,
.band--ink .step h3,
.band--ink .cross-card h3,
.band--ink .cta-block h2 { color: #F7F8FA; }
.band--ink .tag,
.band--ink .chip {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: rgba(244,245,248,0.82);
}

/* Trust-section ledger on dark: keys/labels dim, values bright. */
.band--ink .ledger-label { color: rgba(244,245,248,0.58); }
.band--ink .oversight-photo {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
}
.band--ink .oversight-body h3 { color: #F7F8FA; }
.band--ink .oversight-body p { color: rgba(244,245,248,0.74); }
.band--ink .oversight-body .link { color: var(--blue-bright); }

/* Role-mix panel stays clean white so it separates from the blue band. */
.band--blue .composition { background: var(--panel); box-shadow: var(--shadow-md); }
[data-theme="dark"] .band--blue .composition { background: var(--panel); }

/* ═══════════════════════════════════════════════════════════
   COMPONENT VOCABULARY - three strict, differentiated styles.
   These deliberately do NOT share a hover or an accent rule.
   .ledger-row  → flat facts (trust / terms / proof). No hover.
   .profile-tile→ image-led recruiting dossier. No icon.
   .service-slab→ editorial text-first map cell. Minimal hover.
   ═══════════════════════════════════════════════════════════ */

/* Split section header - varies the rhythm away from centred stacks. */
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
}
.section-head--split .section-intro,
.section-head--split .h2 { max-width: none; }
@media (max-width: 820px) {
  .section-head--split { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}

/* ── Ledger: flat, dense, hairline rows. No hover, tabular. ── */
.ledger { border-top: 1px solid var(--line-soft); }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(120px, 210px) 1fr;
  gap: 12px 28px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
@media (max-width: 560px) { .ledger-row { grid-template-columns: 1fr; gap: 4px; } }
.ledger-row > .k {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
}
.ledger-row > .v { font-size: 15px; line-height: 1.55; color: var(--ink); font-variant-numeric: tabular-nums; }
.ledger-row > .v strong { font-weight: 700; color: var(--ink); }
.ledger-row > .v .sub { color: var(--muted); }
.ledger-row .avail { color: var(--availability-blue); font-weight: 600; }
.band--ink .ledger,
.band--ink .ledger-row { border-color: rgba(255,255,255,0.12); }
.band--ink .ledger-row > .v { color: #F7F8FA; }
.band--ink .ledger-row > .v .sub { color: rgba(244,245,248,0.7); }

/* ── Service slab: editorial map cell, text-first, no icon. ── */
.service-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r, 6px);
  overflow: hidden;
  margin-top: 36px;
}
@media (min-width: 720px) {
  .service-map {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(150px, auto);
  }
  /* Uneven emphasis: one large cell spans two rows, two medium cells
     stack beside it, one wide cell runs the full width beneath. */
  .service-slab--lg { grid-row: span 2; }
  .service-slab--wide { grid-column: 1 / -1; }
}
.service-slab {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 28px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background 0.3s var(--ease-out);
}
/* Ghost index numeral - the map's cartographic signature. */
.service-slab::before {
  content: attr(data-idx);
  position: absolute;
  right: 14px; top: -8px;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(72px, 8vw, 120px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--ink) 5%, transparent);
  pointer-events: none;
  font-variant-numeric: lining-nums;
  transition: color 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}
/* Arrow that surfaces on hover - the "this is a door" cue. */
.service-slab::after {
  content: '\2192';
  position: absolute;
  right: 26px; bottom: 22px;
  font-size: 21px; line-height: 1;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.service-slab:hover { background: var(--paper-2); }
.service-slab:hover::before {
  color: color-mix(in srgb, var(--trust-navy) 13%, transparent);
  transform: translateY(4px);
}
.service-slab:hover::after { opacity: 1; transform: translateX(0); }
[data-theme="dark"] .service-slab:hover { background: rgba(255,255,255,0.035); }
[data-theme="dark"] .service-slab::before { color: rgba(255,255,255,0.05); }
[data-theme="dark"] .service-slab:hover::before { color: rgba(255,255,255,0.11); }
.service-slab-kicker {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-2);
}
.service-slab h3 {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700; font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.12; letter-spacing: 0; color: var(--ink);
  margin: 12px 0 8px;
  transition: color 0.3s var(--ease-out);
}
.service-slab p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 46ch; }
[data-theme="dark"] .service-slab p { color: var(--ink-2); }
.service-slab .service-tags,
.service-slab-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 20px; padding-right: 44px; }
.service-slab-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .service-slab::before, .service-slab::after { transition: none; }
  .service-slab:hover::before { transform: none; }
}

/* ── Profile tile: image-led recruiting dossier, no icon. ──── */
.bench-dossier {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r, 6px); overflow: hidden; margin-top: 32px;
}
@media (min-width: 760px) { .bench-dossier { grid-template-columns: 1fr 1fr; } }
.profile-tile {
  display: grid; grid-template-columns: 68px 1fr; gap: 18px;
  padding: 20px 22px; background: var(--panel); align-items: start;
}
.profile-tile img {
  width: 68px; height: 84px; object-fit: cover; border-radius: 3px;
  border: 1px solid var(--line-soft); background: var(--paper-2);
}
.profile-name { font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 0; color: var(--ink); }
.profile-role { font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.profile-exp { font-size: 12px; color: var(--muted); margin-top: 8px; }
.profile-specs { margin-top: 12px; display: grid; gap: 0; }
.profile-spec {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.profile-spec .k { font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.profile-spec .v { color: var(--ink); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.profile-spec .v.avail { color: var(--availability-blue); }
.band--warm .profile-tile,
.band--warm .service-slab { background: var(--panel); }

/* Semantic section motion shared by About and service pages. */
[data-motion-scene] {
  --motion-delay: 0ms;
  position: relative;
}
[data-motion-scene] .section-head,
[data-motion-scene] .page-hero-copy,
[data-motion-scene] .about-hero-grid > div:first-child,
[data-motion-scene] .page-proof-panel,
[data-motion-scene] .about-hero-media,
[data-motion-scene] .modules,
[data-motion-scene] .deliverables-grid,
[data-motion-scene] .stack-groups,
[data-motion-scene] .steps,
[data-motion-scene] .bench-row,
[data-motion-scene] .cross-grid,
[data-motion-scene] .split,
[data-motion-scene] .founders-lead,
[data-motion-scene] .founder-grid,
[data-motion-scene] .cta-block {
  opacity: 0;
  transform: translateY(16px);
  clip-path: inset(0 0 7% 0);
  transition:
    opacity 0.72s cubic-bezier(.22, 1, .36, 1) var(--motion-delay),
    transform 0.78s cubic-bezier(.22, 1, .36, 1) var(--motion-delay),
    clip-path 0.78s cubic-bezier(.22, 1, .36, 1) var(--motion-delay);
}
[data-motion-scene].is-active .section-head,
[data-motion-scene].is-active .page-hero-copy,
[data-motion-scene].is-active .about-hero-grid > div:first-child,
[data-motion-scene].is-active .page-proof-panel,
[data-motion-scene].is-active .about-hero-media,
[data-motion-scene].is-active .modules,
[data-motion-scene].is-active .deliverables-grid,
[data-motion-scene].is-active .stack-groups,
[data-motion-scene].is-active .steps,
[data-motion-scene].is-active .bench-row,
[data-motion-scene].is-active .cross-grid,
[data-motion-scene].is-active .split,
[data-motion-scene].is-active .founders-lead,
[data-motion-scene].is-active .founder-grid,
[data-motion-scene].is-active .cta-block {
  opacity: 1;
  transform: none;
  clip-path: inset(0);
}
[data-motion-scene] .page-proof-panel,
[data-motion-scene] .about-hero-media,
[data-motion-scene] .modules,
[data-motion-scene] .deliverables-grid,
[data-motion-scene] .stack-groups,
[data-motion-scene] .steps,
[data-motion-scene] .bench-row,
[data-motion-scene] .cross-grid,
[data-motion-scene] .founder-grid {
  --motion-delay: 90ms;
}
[data-motion-scene] .section-head::after {
  content: '';
  display: block;
  width: min(132px, 28vw);
  height: 1px;
  margin-top: 22px;
  background: var(--kosovo-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.78s cubic-bezier(.22, 1, .36, 1) 120ms;
}
[data-motion-scene].is-active .section-head::after { transform: scaleX(1); }
.page-hero[data-motion-scene]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(36vw, 440px);
  height: 2px;
  background: var(--kosovo-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(.22, 1, .36, 1) 320ms;
  pointer-events: none;
}
.page-hero[data-motion-scene].is-active::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) { [data-parallax] { transform: none !important; } }

/* Reduced motion - must be last */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  [data-reveal],
  [data-motion-scene] .section-head,
  [data-motion-scene] .page-hero-copy,
  [data-motion-scene] .about-hero-grid > div:first-child,
  [data-motion-scene] .page-proof-panel,
  [data-motion-scene] .about-hero-media,
  [data-motion-scene] .modules,
  [data-motion-scene] .deliverables-grid,
  [data-motion-scene] .stack-groups,
  [data-motion-scene] .steps,
  [data-motion-scene] .bench-row,
  [data-motion-scene] .cross-grid,
  [data-motion-scene] .split,
  [data-motion-scene] .founders-lead,
  [data-motion-scene] .founder-grid,
  [data-motion-scene] .cta-block {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  [data-motion-scene] .section-head::after,
  .page-hero[data-motion-scene]::after { transform: scaleX(1) !important; }
}
