/* ==========================================================================
   TanPro Technologies — design system
   Single stylesheet. No framework, no build step.
   Palette derived from the TanPro logo: orange wordmark, blue/green swoosh.
   Every graphic on this site is authored in-house (inline SVG / CSS gradients).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink — dark surfaces (hero, footer, CTA bands) */
  --ink-900: #0a1020;
  --ink-800: #111c33;
  --ink-700: #1b2a47;
  --ink-600: #26395c;

  /* Paper — light surfaces */
  --paper:   #ffffff;
  --paper-2: #f5f7fa;
  --paper-3: #eef2f7;
  --line:    #e2e8f0;
  --line-2:  #cbd5e1;

  /* Brand */
  --brand:      #ff3300;   /* sampled from the TanPro wordmark */
  --brand-600:  #d62d00;   /* darker for text/buttons: AA on white */
  --brand-300:  #ff8a63;
  --brand-tint: rgba(255, 51, 0, 0.10);

  --cyan:      #2ba8e0;
  --cyan-700:  #1b6fa8;
  --cyan-tint: rgba(43, 168, 224, 0.10);

  --green: #3fae4a;

  /* Text */
  --text:       #0f172a;
  --muted:      #64748b;
  --on-dark:    #e6edf7;
  --muted-dark: #8fa3bf;

  /* Type */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.20vw, 1.09rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.75rem, 1.50rem + 1.25vw, 2.60rem);
  --step-4:  clamp(2.10rem, 1.65rem + 2.25vw, 3.50rem);
  --step-5:  clamp(2.50rem, 1.80rem + 3.50vw, 4.40rem);

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Shape */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.06);
  --sh-2: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --sh-3: 0 18px 40px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(15, 23, 42, 0.05);
  --sh-brand: 0 10px 30px rgba(255, 51, 0, 0.26);

  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: var(--step-5); letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
h4 { font-size: var(--step-0); letter-spacing: -0.01em; }

p { text-wrap: pretty; }
strong, b { font-weight: 650; }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); font-weight: 350; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}
.sec--dark .eyebrow { color: var(--brand-300); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}
.container--narrow { max-width: 840px; }

.sec { padding-block: var(--section-y); position: relative; }
.sec--tint { background: var(--paper-2); }
.sec--dark { background: var(--ink-900); color: var(--on-dark); }
.sec--dark h1, .sec--dark h2, .sec--dark h3, .sec--dark h4 { color: #fff; }
.sec--dark .lede { color: var(--muted-dark); }

.sec-head { max-width: 760px; margin-bottom: var(--sp-7); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: var(--sp-4); }

.grid { display: grid; gap: var(--sp-5); }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--sp-7); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--brand); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm); font-weight: 600; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--sp-4); text-decoration: none; }

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-size: var(--step-0); font-weight: 600;
  line-height: 1; letter-spacing: -0.01em;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }

.btn--ghost { border-color: var(--line-2); color: var(--text); background: var(--paper); }
.btn--ghost:hover { border-color: var(--text); }

.btn--onDark { border-color: rgba(230, 237, 247, 0.28); color: #fff; }
.btn--onDark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  color: var(--brand-600); text-decoration: none;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Transparent over a dark hero, solid once scrolled or on inner pages */
.hdr--solid,
.hdr.is-stuck {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-1);
}
.hdr__inner { display: flex; align-items: center; gap: var(--sp-5); width: 100%; }

.brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.brand:hover { text-decoration: none; }
/* Lockup: original swoosh mark + a wordmark set in live text so it can take
   a legible colour on each surface. Proportions follow the original artwork —
   "TanPro" roughly twice the size of "Technologies", tightly stacked. */
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand__mark { height: 48px; width: 48px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.52rem;
  letter-spacing: -0.035em;
  color: var(--brand-600);            /* 4.6:1 on white — the original was 3.7:1 */
  transition: color 0.3s var(--ease);
}
.brand__sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.19em;
  color: var(--muted);
  margin-top: 0.26rem;
  transition: color 0.3s var(--ease);
}

/* Over the ink hero, both halves lift to stay readable */
.hdr:not(.hdr--solid):not(.is-stuck) .brand__name { color: var(--brand-300); }
.hdr:not(.hdr--solid):not(.is-stuck) .brand__sub  { color: #cfdaea; }

@media (max-width: 420px) {
  .brand__mark { height: 36px; width: 36px; }
  .brand__name { font-size: 1.3rem; }
  .brand__sub  { font-size: 0.62rem; letter-spacing: 0.16em; }
}

.nav { display: flex; align-items: center; gap: var(--sp-2); }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-display); font-size: 0.94rem; font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0.6rem 0.85rem; border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  background: none; text-decoration: none;
}
.hdr:not(.hdr--solid):not(.is-stuck) .nav__link { color: rgba(255, 255, 255, 0.88); }
.nav__link:hover { color: var(--brand-600); background: var(--brand-tint); text-decoration: none; }
.hdr:not(.hdr--solid):not(.is-stuck) .nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav__link[aria-current="page"] { color: var(--brand-600); }
.hdr:not(.hdr--solid):not(.is-stuck) .nav__link[aria-current="page"] { color: var(--brand-300); }
.nav__link .chev { width: 0.7em; height: 0.7em; transition: transform 0.25s var(--ease); opacity: 0.65; }
.nav__item.is-open > .nav__link .chev { transform: rotate(180deg); }

/* Dropdown */
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 268px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: var(--sp-2);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.nav__item.is-open > .nav__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }

/* Invisible bridge across the 10px gap between the nav link and its dropdown.
   Without it the pointer passes through a strip that belongs to neither
   element, mouseleave fires on .nav__item and the menu closes before it can
   be reached -- the menu was effectively unclickable by mouse. The bridge is
   a child of the menu, so hovering it keeps the pointer inside .nav__item. */
.nav__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  /* Spans the 10px offset between the link and the menu, plus 2px of slack.
     Deliberately not larger: the bridge belongs to the menu, so any height
     beyond the gap would sit over the link and swallow clicks meant for it. */
  top: -12px;
  height: 12px;
}
@media (max-width: 980px) {
  /* The drawer stacks the submenu inline; no gap to bridge there. */
  .nav__menu::before { display: none; }
}
.nav__menu a {
  display: block; padding: 0.6rem 0.8rem; border-radius: var(--r-sm);
  font-size: 0.93rem; font-weight: 500; color: var(--text); text-decoration: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav__menu a span { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.nav__menu a:hover { background: var(--paper-2); color: var(--brand-600); text-decoration: none; }
.nav__menu a:hover span { color: var(--muted); }

.hdr__cta { flex: none; }
.hdr__cta .btn { padding: 0.7rem 1.25rem; font-size: 0.92rem; }

/* Mobile toggle */
.navToggle {
  display: none; flex: none;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  color: var(--text);
}
.hdr:not(.hdr--solid):not(.is-stuck) .navToggle { color: #fff; }
.navToggle span {
  display: block; position: relative; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: background-color 0.2s var(--ease);
}
.navToggle span::before, .navToggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.28s var(--ease), top 0.28s var(--ease);
}
.navToggle span::before { top: -7px; }
.navToggle span::after { top: 7px; }
.navToggle[aria-expanded="true"] span { background: transparent; }
.navToggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.navToggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.navScrim {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(10, 16, 32, 0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
body.nav-open .navScrim { opacity: 1; visibility: visible; }

@media (max-width: 980px) {
  .navToggle { display: flex; }
  .hdr__cta { display: none; }
  .nav {
    position: fixed; top: 0; right: 0; z-index: 99;
    width: min(360px, 86vw); height: 100dvh;
    background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + var(--sp-4)) var(--sp-5) var(--sp-7);
    overflow-y: auto;
    box-shadow: -20px 0 50px rgba(10, 16, 32, 0.18);
    transform: translateX(100%);
    transition: transform 0.36s var(--ease);
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav__link,
  .hdr:not(.hdr--solid):not(.is-stuck) .nav__link { color: var(--text); }
  .nav__link {
    justify-content: space-between; width: 100%;
    padding: 0.85rem 0.5rem; font-size: 1.05rem; font-weight: 600;
    border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .nav__link:hover,
  .hdr:not(.hdr--solid):not(.is-stuck) .nav__link:hover { background: none; color: var(--brand-600); }
  .nav__menu {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; border: 0; box-shadow: none; background: var(--paper-2);
    border-radius: var(--r-sm); padding: var(--sp-2);
    display: none; margin-block: var(--sp-2);
  }
  .nav__item.is-open > .nav__menu { display: block; transform: none; }
  .nav .btn { margin-top: var(--sp-5); width: 100%; }
}

/* --------------------------------------------------------------------------
   7. Hero — mesh gradient + authored SVG, no photography
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--ink-900);
  color: var(--on-dark);
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
}
.hero--page {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Layered radial blends — the "mesh". Pure CSS, ~0 bytes of image. */
.hero__mesh {
  position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(42% 52% at 18% 22%, rgba(255, 51, 0, 0.38) 0%, transparent 62%),
    radial-gradient(40% 46% at 82% 18%, rgba(43, 168, 224, 0.40) 0%, transparent 64%),
    radial-gradient(46% 50% at 68% 82%, rgba(27, 111, 168, 0.44) 0%, transparent 66%),
    radial-gradient(36% 42% at 28% 88%, rgba(63, 174, 74, 0.24) 0%, transparent 62%);
  filter: blur(34px);
  animation: meshDrift 26s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.02); }
}

/* Fine grid + noise overlay for texture */
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
}
.hero__noise {
  position: absolute; inset: 0; z-index: -1; opacity: 0.35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.30'/%3E%3C/svg%3E");
}

.hero__inner { position: relative; display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 981px) {
  .hero__inner--split { grid-template-columns: 1.18fr 0.82fr; gap: var(--sp-8); }
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--sp-5);
  /* Sized so the longest line ("Smart Technology,") fits on one row at every
     width. At the global --step-5 it needed 633px in a 568px column, which
     pushed a 4th line and orphaned the word "Smart". Ceiling 4rem clears it on
     desktop; the 1.75rem floor clears it at 320px, the narrowest phone still
     in use. An earlier 2.2rem floor still overflowed at 320-360px, which
     includes a lot of Android devices. */
  font-size: clamp(1.75rem, 1rem + 3.75vw, 4rem);
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--brand-300) 0%, var(--brand) 42%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lede { color: var(--muted-dark); max-width: 58ch; }
.hero .btn-row { margin-top: var(--sp-6); }

.hero__pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 0.95rem 0.42rem 0.5rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--step--1); font-weight: 500; color: var(--on-dark);
  margin-bottom: var(--sp-5);
}
.hero__pill b {
  background: var(--brand); color: #fff; font-weight: 650;
  padding: 0.16rem 0.6rem; border-radius: var(--r-pill); font-size: 0.78rem;
  letter-spacing: 0.03em; text-transform: uppercase;
}

/* Page-banner variant (inner pages) */
.hero--page h1 { font-size: var(--step-4); }
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: var(--step--1); color: var(--muted-dark); margin-bottom: var(--sp-4);
}
.crumb a { color: var(--muted-dark); text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.crumb svg { width: 0.7em; height: 0.7em; opacity: 0.5; }

/* Orbital motif — echoes the swoosh in the TanPro logo */
.orbit { width: 100%; max-width: 480px; margin-inline: auto; }
.orbit .ring { transform-origin: 250px 250px; }
.orbit .ring--1 { animation: spin 34s linear infinite; }
.orbit .ring--2 { animation: spin 26s linear infinite reverse; }
.orbit .ring--3 { animation: spin 44s linear infinite; }
.orbit .pulse { animation: pulse 3.4s ease-in-out infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: transparent; }
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card__link { position: absolute; inset: 0; border-radius: inherit; text-indent: -9999px; overflow: hidden; }

/* Top accent hairline that grows on hover */
.card--accent::before {
  content: ""; position: absolute; inset: -1px auto auto -1px;
  width: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  transition: width 0.4s var(--ease);
}
.card--accent:hover::before { width: calc(100% + 2px); }

.sec--dark .card {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.10);
}
.sec--dark .card:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); }
.sec--dark .card p { color: var(--muted-dark); }

/* Icon chip */
.ico {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-tint), var(--cyan-tint));
  border: 1px solid var(--line);
  color: var(--brand-600);
  margin-bottom: var(--sp-5);
  transition: transform 0.3s var(--ease);
}
.ico svg { width: 25px; height: 25px; }
.card:hover .ico { transform: scale(1.08) rotate(-4deg); }
.sec--dark .ico {
  background: linear-gradient(140deg, rgba(255, 51, 0, 0.20), rgba(43, 168, 224, 0.18));
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--brand-300);
}

/* Numbered card (process / offerings) */
.card__num {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--brand); margin-bottom: var(--sp-3);
  display: block;
}

/* --------------------------------------------------------------------------
   9. Stat tiles
   -------------------------------------------------------------------------- */
.stats { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.stat {
  padding: var(--sp-5) var(--sp-4);
  border-left: 2px solid rgba(255, 255, 255, 0.14);
}
.sec:not(.sec--dark) .stat { border-left-color: var(--line); }
.stat__n {
  font-family: var(--font-display); font-size: var(--step-4); font-weight: 700;
  line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--brand-300), var(--brand) 55%, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  display: block; margin-bottom: var(--sp-2);
}
.sec:not(.sec--dark) .stat__n {
  background: linear-gradient(120deg, var(--brand), var(--brand-600) 60%, var(--cyan-700));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat__l { font-size: var(--step--1); color: var(--muted-dark); line-height: 1.4; }
.sec:not(.sec--dark) .stat__l { color: var(--muted); }

/* --------------------------------------------------------------------------
   10. Process timeline
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--sp-5); counter-reset: step; }
@media (min-width: 760px)  { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1060px) { .steps--6 { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative; counter-increment: step;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.step__badge {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  line-height: 1; color: var(--paper-3); letter-spacing: -0.05em;
  pointer-events: none;
}
.step__badge::before { content: "0" counter(step); }
.step h3 { margin-bottom: var(--sp-2); position: relative; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   11. Prose — long-form content pages
   -------------------------------------------------------------------------- */
.prose { max-width: 74ch; min-width: 0; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--sp-6); }
.prose p { color: #334155; }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }

.prose ul { margin-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.prose ul li {
  position: relative; padding-left: 1.9rem; color: #334155;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
}

/* Checklist variant */
.check { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.check li { position: relative; padding-left: 2rem; color: #334155; }
.check li::before {
  content: ""; position: absolute; left: 0; top: 0.36em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--cyan-tint);
}
.check li::after {
  content: ""; position: absolute; left: 6px; top: 0.62em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--cyan-700); border-bottom: 2px solid var(--cyan-700);
  transform: rotate(-45deg);
}

/* Pill list — skills, tools, industries */
.pills { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1rem; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: 0.92rem; font-weight: 500; color: var(--text);
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease),
              background-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.pill:hover { border-color: var(--brand); color: var(--brand-600); transform: translateY(-2px); }
.pill svg { width: 1em; height: 1em; color: var(--cyan-700); }
.sec--dark .pill {
  background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); color: var(--on-dark);
}
.sec--dark .pill:hover { border-color: var(--brand-300); color: #fff; }

/* Callout */
.callout {
  border-left: 3px solid var(--brand);
  background: var(--paper-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-5) var(--sp-6);
  margin-block: var(--sp-6);
}
.callout p { color: #334155; }
.callout strong { color: var(--text); }

/* Sticky in-page nav for long content pages */
.toc { position: sticky; top: calc(var(--header-h) + var(--sp-5)); align-self: start; }
.toc h4 {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--sp-4);
}
.toc ol { display: grid; gap: 1px; border-left: 2px solid var(--line); }
.toc a {
  display: block; padding: 0.5rem 0 0.5rem var(--sp-4);
  font-size: 0.92rem; color: var(--muted); text-decoration: none;
  margin-left: -2px; border-left: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.toc a:hover, .toc a.is-active { color: var(--brand-600); border-left-color: var(--brand); text-decoration: none; }

/* Below the two-column breakpoint the contents list sits ABOVE the article in
   a single-column grid. A sticky element there takes the whole grid container
   as its containing block, not its own row, so it pinned at top:100px for the
   article's full 8,700px and the prose scrolled underneath it -- transparent
   background, so both were legible through each other.

   On narrow screens: not sticky, and laid out as wrapping pills rather than a
   442px-tall vertical rail the reader has to scroll past to reach any text. */
@media (max-width: 980px) {
  .toc { position: static; margin-bottom: var(--sp-2); }
  .toc h4 { margin-bottom: var(--sp-3); }
  .toc ol {
    display: flex; flex-wrap: wrap; gap: var(--sp-2);
    border-left: 0;
  }
  .toc a {
    margin-left: 0;
    padding: 0.42rem 0.85rem;
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: 0.86rem;
    background: var(--paper);
  }
  .toc a:hover, .toc a.is-active {
    border-color: var(--brand);
    color: var(--brand-600);
  }
}

.layout-aside { display: grid; gap: var(--sp-7); }
@media (min-width: 981px) { .layout-aside { grid-template-columns: 230px 1fr; gap: var(--sp-8); } }
/* Grid and flex children default to min-width:auto, so a wide child (the
   process-strategy table) refuses to shrink and pushes the page sideways.
   Allowing them to shrink is what lets .table-wrap scroll internally. */
.layout-aside > * { min-width: 0; }

/* --------------------------------------------------------------------------
   12. Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto; max-width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper); -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 720px; }
thead th {
  font-family: var(--font-display); font-size: 0.84rem; font-weight: 650;
  letter-spacing: 0.03em; text-align: left; color: #fff;
  background: var(--ink-800);
  padding: 0.95rem 1.1rem; white-space: nowrap;
}
thead th:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, 0.10); }
tbody td {
  padding: 0.9rem 1.1rem; font-size: 0.92rem; color: #334155;
  border-top: 1px solid var(--line); vertical-align: top;
}
tbody td:not(:last-child) { border-right: 1px solid var(--line); }
tbody tr:nth-child(even) { background: var(--paper-2); }

/* --------------------------------------------------------------------------
   13. Accordion / job board
   -------------------------------------------------------------------------- */
.jobBar {
  display: grid; gap: var(--sp-4); margin-bottom: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .jobBar { grid-template-columns: 1fr auto; align-items: center; } }

.search { position: relative; }
.search svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.search input {
  width: 100%; padding: 0.9rem 1rem 0.9rem 2.9rem;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--paper); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }

.jobCount { font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
.jobCount b { color: var(--text); font-weight: 650; }

.acc { display: grid; gap: var(--sp-3); }
.acc__item {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.acc__item:hover { border-color: var(--line-2); }
.acc__item.is-open { border-color: var(--brand); box-shadow: var(--sh-2); }
.acc__item[hidden] { display: none; }

.acc__btn {
  display: flex; align-items: center; gap: var(--sp-4);
  width: 100%; text-align: left;
  padding: var(--sp-5) var(--sp-5);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: -0.01em; color: var(--text);
}
.acc__btn:hover { color: var(--brand-600); }
.acc__btn .t { flex: 1; }
.acc__btn .loc {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 400;
  color: var(--muted); display: block; margin-top: 3px;
}
.acc__ico {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--brand-600);
  transition: transform 0.3s var(--ease), background-color 0.25s var(--ease);
}
.acc__ico svg { width: 14px; height: 14px; }
.acc__item.is-open .acc__ico { transform: rotate(45deg); background: var(--brand); color: #fff; }

/* Height is driven from JS (measured scrollHeight) rather than the 0fr/1fr
   grid trick, which resolves fr to 0px in some engines. */
.acc__panel { height: 0; overflow: hidden; transition: height 0.34s var(--ease); }
.acc__panelInner { overflow: hidden; }
.acc__body { padding: 0 var(--sp-5) var(--sp-6); border-top: 1px solid var(--line); padding-top: var(--sp-5); }
.acc__body h4 {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-600); margin-block: var(--sp-5) var(--sp-3);
}
.acc__body h4:first-child { margin-top: 0; }
.acc__body p { color: #334155; font-size: 0.95rem; }
.acc__body ul { display: grid; gap: var(--sp-2); margin-top: var(--sp-2); }
.acc__body ul li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; color: #334155; }
.acc__body ul li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
}

.meta { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-5); }
@media (min-width: 640px) { .meta { grid-template-columns: repeat(2, 1fr); } }
.meta > div { background: var(--paper-2); border-radius: var(--r-sm); padding: var(--sp-4); }
.meta dt {
  font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 0.3rem;
}
.meta dd { font-size: 0.93rem; color: var(--text); margin: 0; }

.noResults { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--muted); }
.noResults[hidden] { display: none; }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: 0.45rem; }
.field--2 { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .field--2 { grid-template-columns: 1fr 1fr; } }

.field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.field label .req { color: var(--brand); margin-left: 2px; }
.field .hint { font-size: 0.8rem; color: var(--muted); }

.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--paper); color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}
.field .err { font-size: 0.82rem; color: #dc2626; }
.field .err:empty { display: none; }

/* File input */
.field input[type="file"] { padding: 0.6rem; background: var(--paper-2); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 0.9rem; padding: 0.5rem 1rem; border: 0; border-radius: var(--r-sm);
  background: var(--ink-800); color: #fff; font-weight: 600; font-size: 0.85rem; cursor: pointer;
}

/* Honeypot — must stay reachable to bots but invisible and unfocusable to people */
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.formNote { font-size: 0.85rem; color: var(--muted); }

.alert {
  display: none; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
  font-size: 0.94rem; border: 1px solid transparent;
}
.alert.is-shown { display: flex; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert--ok  { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert--err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.btn .spin { animation: spin 0.8s linear infinite; }

/* Contact detail cards */
.contactCard {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-5); border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--paper);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.contactCard:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.contactCard .ico { margin-bottom: 0; width: 44px; height: 44px; flex: none; }
.contactCard .ico svg { width: 20px; height: 20px; }
.contactCard h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contactCard p, .contactCard a { font-size: 0.94rem; color: var(--muted); }
.contactCard a { text-decoration: none; }
.contactCard a:hover { color: var(--brand-600); text-decoration: underline; }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink-800); color: var(--on-dark);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background:
    radial-gradient(38% 60% at 20% 20%, rgba(255, 51, 0, 0.38), transparent 62%),
    radial-gradient(42% 58% at 82% 78%, rgba(43, 168, 224, 0.40), transparent 64%);
  filter: blur(30px);
}
.cta h2 { color: #fff; margin-bottom: var(--sp-4); }
.cta p { color: var(--muted-dark); max-width: 56ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: var(--sp-6); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.ftr { background: var(--ink-900); color: var(--muted-dark); padding-top: var(--sp-8); }
.ftr__top { display: grid; gap: var(--sp-7); padding-bottom: var(--sp-8); }
@media (min-width: 860px) { .ftr__top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-6); } }

.ftr__brand .brand { margin-bottom: var(--sp-4); }
.ftr__brand .brand__name { color: var(--brand-300); }
.ftr__brand .brand__sub  { color: #cfdaea; }
.ftr__brand p { font-size: 0.92rem; max-width: 34ch; }

.ftr h4 {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 650;
  letter-spacing: 0.13em; text-transform: uppercase; color: #fff;
  margin-bottom: var(--sp-4);
}
.ftr ul { display: grid; gap: 0.65rem; }
.ftr a { color: var(--muted-dark); font-size: 0.92rem; text-decoration: none; transition: color 0.2s var(--ease); }
.ftr a:hover { color: #fff; text-decoration: none; }

.ftr address { font-style: normal; font-size: 0.92rem; line-height: 1.7; }

.social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--muted-dark);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }
.social svg { width: 16px; height: 16px; }

.ftr__bot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  align-items: center; justify-content: space-between;
  font-size: 0.86rem;
}
.ftr__bot nav { display: flex; flex-wrap: wrap; gap: var(--sp-5); }

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.tc { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-6 { margin-bottom: var(--sp-6); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   19. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__mesh, .orbit .ring, .orbit .pulse { animation: none; }
}

@media print {
  .hdr, .navScrim, .cta, .ftr__top, .social, .jobBar, .skip-link { display: none !important; }
  body { color: #000; background: #fff; }
  .hero { background: #fff; color: #000; padding-top: var(--sp-6); }
  .hero h1, .hero h1 .accent { color: #000; -webkit-text-fill-color: #000; }
  .hero__mesh, .hero__grid, .hero__noise { display: none; }
  .acc__panel { height: auto !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
