/* ==========================================================================
   PEATS — ParthaSarthi Engineering & Training Services
   Design system v3 — pure white, fluid 1920×1080 canvas
   --------------------------------------------------------------------------
   The root font-size is fluid: exactly 16px at 1920px wide, ~21px at 2560px,
   32px at 4K, and floors at 15px below ~1800px. Everything is sized in rem,
   so the whole layout scales proportionally to fill any screen.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #0b1220;
  --ink-soft: #2b3445;
  --muted: #5b6577;
  --line: rgba(11, 18, 32, 0.09);
  --line-strong: rgba(11, 18, 32, 0.16);

  --navy: #0b1220;
  --navy-soft: #121c30;

  --accent: #d96a2b;
  --accent-dark: #a64a17;
  --accent-soft: #fdeee3;
  --accent-rgb: 217, 106, 43;

  --success: #1c8a5a;
  --error: #c23b3b;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04), 0 4px 14px rgba(11, 18, 32, 0.05);
  --shadow: 0 2px 4px rgba(11, 18, 32, 0.04), 0 18px 48px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 30px 80px rgba(11, 18, 32, 0.16);

  --radius-sm: 0.875rem;
  --radius: 1.5rem;
  --radius-lg: 2rem;

  --container: min(calc(100% - 6rem), 100rem);
  --header-h: 4.5rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-calm: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --nav-bg: rgba(255, 255, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.7);
  --dot-inactive: rgba(11, 18, 32, 0.18);
  --grid-line: rgba(11, 18, 32, 0.045);
}

:root[data-theme="dark"] {
  --bg: #070b14;
  --bg-soft: #0b1220;
  --surface: #0e1627;
  --surface-strong: #121b2e;
  --ink: #f2f5fa;
  --ink-soft: #cfd6e3;
  --muted: #98a2b5;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --navy: #05080f;
  --navy-soft: #0b1220;
  --accent-soft: rgba(217, 106, 43, 0.16);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --nav-bg: rgba(10, 16, 28, 0.78);
  --glass: rgba(14, 22, 39, 0.7);
  --dot-inactive: rgba(255, 255, 255, 0.22);
  --grid-line: rgba(255, 255, 255, 0.05);
}

/* ── Base ──────────────────────────────────────────────── */
* { box-sizing: border-box; }

html {
  font-size: clamp(15px, 0.8333vw, 32px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
h1 { font-size: clamp(2.5rem, 3.9vw, 9.5rem); max-width: 14ch; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 2.5vw, 6rem); max-width: 20ch; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { line-height: 1.7; color: var(--muted); margin: 0; }
p + p { margin-top: 0.8rem; }

.container { width: var(--container); margin: 0 auto; }
.narrow { max-width: 56rem; }
.site-shell { min-height: 100vh; }

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
:root[data-theme="dark"] .eyebrow { color: #ffb383; }

.skip-link {
  position: fixed; top: -4rem; left: 1rem; z-index: 2000;
  background: var(--navy); color: #fff; padding: 0.8rem 1.2rem;
  border-radius: 999px; font-weight: 600; transition: top 200ms ease;
}
.skip-link:focus { top: 1rem; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #f2a06b);
  z-index: 900; transition: width 90ms linear;
}

/* ==========================================================================
   Loader — wordmark reveal + percent counter (Edolus / Santioni inspired)
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 1500;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  transition: transform 1.25s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.loader::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 12vh;
  background: var(--navy);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: translateY(99%);
  pointer-events: none;
}
.loader.is-done { transform: translateY(-112%); pointer-events: none; }
.loader.is-gone { display: none; }

.loader-glow {
  position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.28), transparent 65%);
  filter: blur(30px); animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { transform: scale(0.92); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; } }

.loader-inner { position: relative; text-align: center; }
.loader-word {
  display: flex; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 22rem);
  letter-spacing: 0.08em; line-height: 1;
  margin: 0; max-width: none; color: #fff;
}
.loader-word span {
  display: inline-block; overflow: hidden; padding: 0.04em 0;
}
.loader-word span i {
  display: inline-block; font-style: normal;
  transform: translateY(115%);
  animation: letterUp 1.2s var(--ease) forwards;
  animation-delay: calc(0.2s + var(--i) * 0.09s);
}
@keyframes letterUp { to { transform: translateY(0); } }

.loader-tag {
  margin-top: 1.4rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.55);
  opacity: 0; animation: fadeIn 1.2s var(--ease-calm) 0.9s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.loader-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 3rem 2.5rem; display: flex; align-items: flex-end; justify-content: space-between;
  font-family: var(--font-mono); color: rgba(255, 255, 255, 0.6);
}
.loader-count { font-size: clamp(2.5rem, 5vw, 9rem); line-height: 1; color: #fff; font-weight: 500; }
.loader-count small { font-size: 0.35em; margin-left: 0.2em; color: var(--accent); }
.loader-hint { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; }
.loader-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: rgba(255, 255, 255, 0.1);
}
.loader-bar i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent), #f2a06b);
  transform: scaleX(0); transform-origin: left;
}

/* ==========================================================================
   Entrance choreography — everything settles into place, calmly
   ========================================================================== */
html.js [data-reveal],
html.js [data-hero] {
  opacity: 0;
  transform: translate3d(0, 2.2rem, 0);
  filter: blur(6px);
  transition: opacity 1.3s var(--ease-calm), transform 1.5s var(--ease), filter 1.3s var(--ease-calm);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
html.js [data-reveal].is-visible,
html.is-ready [data-hero] {
  opacity: 1; transform: none; filter: none;
}
/* Cards inside grids settle one after another */
html.js [data-reveal][data-from="left"]  { transform: translate3d(-2.5rem, 0, 0); }
html.js [data-reveal][data-from="right"] { transform: translate3d(2.5rem, 0, 0); }
html.js [data-reveal][data-from="scale"] { transform: scale(0.94); }
html.js [data-reveal][data-from].is-visible { transform: none; }

/* Headline: each word rises out of a mask */
.split-line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split-line > .w {
  display: inline-block; transform: translateY(112%);
  transition: transform 1.4s var(--ease); transition-delay: calc(var(--wi) * 70ms + 150ms);
}
html:not(.js) .split-line > .w,
html.is-ready .split-line > .w { transform: none; }

/* Rotating word (Cerebrium-style) */
.rotator { display: inline-grid; vertical-align: bottom; position: relative; }
.rotator > span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(0.5em); filter: blur(6px);
  transition: opacity 0.9s var(--ease-calm), transform 1s var(--ease), filter 0.9s var(--ease-calm);
  color: var(--accent); white-space: nowrap;
}
.rotator > span.is-on { opacity: 1; transform: none; filter: none; }
.rotator > span.is-off { opacity: 0; transform: translateY(-0.5em); filter: blur(6px); }

/* ==========================================================================
   Header — floating glass pill (Cerebrium inspired)
   ========================================================================== */
.site-header {
  position: fixed; top: 1rem; left: 0; right: 0; z-index: 800;
  pointer-events: none;
}
.nav-wrap {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.6rem 0.7rem 0.6rem 1.3rem;
  border-radius: 999px;
  background: var(--nav-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  transition: box-shadow 400ms ease, background 400ms ease, transform 700ms var(--ease);
}
.site-header.is-scrolled .nav-wrap { box-shadow: var(--shadow); }

.brand {
  display: inline-flex; align-items: center; gap: 0.8rem; min-width: 0;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.06em;
}
.brand img { width: 2.2rem; height: 2.4rem; object-fit: cover; border-radius: 0.65rem; flex-shrink: 0; }
.brand span { min-width: 0; overflow: hidden; line-height: 1.1; }
.brand-tag {
  display: block; margin-top: 0.15rem; font-family: var(--font-mono); font-size: 0.56rem;
  font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav-actions { display: flex; align-items: center; gap: 1.2rem; }
.site-nav { display: flex; align-items: center; gap: 0.3rem; }
.site-nav a {
  position: relative; padding: 0.55rem 0.9rem; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  transition: color 250ms ease, background 250ms ease;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.site-nav a.is-active, .site-nav a.is-scroll-active { color: var(--ink); background: var(--bg-soft); font-weight: 600; }
.site-nav a.nav-cta {
  margin-left: 0.4rem; padding: 0.7rem 1.3rem;
  background: var(--navy); color: #fff; font-weight: 600;
}
.site-nav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }
:root[data-theme="dark"] .site-nav a.nav-cta { background: var(--accent); }

.theme-toggle {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface-strong); border-radius: 50%;
  color: var(--ink); transition: border-color 250ms ease, transform 350ms var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(18deg); }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.menu-toggle {
  display: none; align-items: center; gap: 0.6rem; padding: 0.6rem 1rem;
  border: 1px solid var(--line); background: var(--surface-strong); border-radius: 999px; font-weight: 500;
}
.menu-toggle-bars { width: 1.1rem; height: 0.75rem; position: relative; }
.menu-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 300ms var(--ease), opacity 200ms ease, top 300ms var(--ease);
}
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 0.3rem; }
.menu-toggle-bars span:nth-child(3) { top: 0.6rem; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { top: 0.3rem; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { top: 0.3rem; transform: rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem; min-height: 3.2rem; padding: 0.9rem 1.7rem; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: transform 400ms var(--ease), box-shadow 400ms ease, background 300ms ease, border-color 300ms ease, color 300ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.99); }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.32); }
.button-primary:hover { background: var(--accent-dark); box-shadow: 0 16px 36px rgba(var(--accent-rgb), 0.38); }
.button-secondary { background: var(--surface-strong); border-color: var(--line-strong); color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); }
.button-ghost-light { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.button-ghost-light:hover { background: rgba(255, 255, 255, 0.16); }
.button-block { width: 100%; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 7rem 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-heading { margin-bottom: 3.5rem; max-width: 48rem; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading h2 { max-width: 18ch; }
.section-heading.center h2 { margin-left: auto; margin-right: auto; }
.section-heading p { margin-top: 1rem; font-size: 1.05rem; }

/* Pages other than home start under the floating header */
.page-hero { padding: calc(var(--header-h) + 7rem) 0 4rem; position: relative; overflow: clip; }
.page-hero .narrow { max-width: 62rem; }
.page-hero h1 { max-width: 18ch; }
.page-hero p { margin-top: 1.4rem; font-size: 1.1rem; max-width: 52ch; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 70%);
}

/* ==========================================================================
   Hero — one full 1920×1080 screen
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: clip;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.orb-a { width: 38rem; height: 38rem; right: -8rem; top: -6rem; background: radial-gradient(circle, rgba(70, 110, 210, 0.22), transparent 70%); animation: drift 22s ease-in-out infinite; }
.orb-b { width: 34rem; height: 34rem; left: -10rem; bottom: -8rem; background: radial-gradient(circle, rgba(120, 140, 175, 0.2), transparent 70%); animation: drift 28s ease-in-out infinite reverse; }
@keyframes drift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  33% { transform: translate3d(-3rem, 2rem, 0) scale(1.08); }
  66% { transform: translate3d(2rem, -2rem, 0) scale(0.95); }
}
:root[data-theme="dark"] .orb { opacity: 0.35; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 5rem; align-items: center;
}
.hero-copy { position: relative; }
.hero-time-greeting {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem;
  padding: 0.45rem 1rem 0.45rem 0.8rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-soft);
  backdrop-filter: blur(10px);
}
.hero-time-greeting .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 0.55rem rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }

.hero h1 { margin-bottom: 1.8rem; }
.hero-text { max-width: 36rem; font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 2.4rem; }
.hero-trust { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 3.2rem; margin-top: 3.4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-trust-item strong { display: block; font-family: var(--font-head); font-size: 2.1rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.hero-trust-item span { display: block; margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.hero-panel {
  position: relative; aspect-ratio: 1.38 / 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy); box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero-panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.18); transition: transform 3.2s var(--ease);
}
html.is-ready .hero-panel img { transform: scale(1.02); }
.hero-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 9, 18, 0.55));
}
.hero-badge {
  position: absolute; z-index: 2; left: 1.4rem; bottom: 1.4rem; max-width: calc(100% - 2.8rem);
  padding: 0.9rem 1.2rem; border-radius: 1rem; color: #fff;
  background: rgba(10, 15, 25, 0.5); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero-badge span { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.hero-badge strong { display: block; margin-top: 0.25rem; font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.hero-chip {
  position: absolute; z-index: 2; right: 1.4rem; top: 1.4rem; padding: 0.55rem 0.9rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); color: var(--ink); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-0.5rem); } }

/* Capability ticker */
.ticker { border-block: 1px solid var(--line); background: var(--bg); overflow: hidden; padding: 1.3rem 0; }
.ticker-track { display: flex; width: max-content; animation: tick 55s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.ticker-track span::after { content: "✦"; color: var(--accent); font-size: 0.7em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.feature-card {
  position: relative; display: flex; flex-direction: column; padding: 2rem 1.8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 700ms var(--ease), box-shadow 700ms var(--ease), border-color 400ms ease;
}
.feature-card:hover { transform: translateY(-0.5rem); box-shadow: var(--shadow); border-color: rgba(var(--accent-rgb), 0.35); }
.feature-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.6rem; border-radius: 0.9rem;
  background: var(--accent-soft); color: var(--accent-dark);
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em;
}
:root[data-theme="dark"] .feature-icon { color: #ffb383; }
.feature-card h3 { margin-bottom: 1.1rem; min-height: 2.6em; }
.feature-card ul { display: grid; gap: 0.75rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.feature-card li { position: relative; padding-left: 1.2rem; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }
.feature-card li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent); }

/* Services — dark band with image cards (all links) */
.section-dark { background: var(--navy); color: #fff; overflow: clip; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 80% 0%, rgba(var(--accent-rgb), 0.18), transparent 70%);
}
.section-dark .container { position: relative; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.7); }
.section-dark .eyebrow { color: #ffb383; }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.service-card {
  position: relative; display: block; isolation: isolate; overflow: hidden;
  aspect-ratio: 3 / 4.1; border-radius: var(--radius);
  background-color: #111a2b; background-size: cover; background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 800ms var(--ease), box-shadow 800ms var(--ease), border-color 400ms ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: inherit; background-size: cover; background-position: center;
  transform: scale(1.001); transition: transform 1.6s var(--ease);
}
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.15) 0%, rgba(8, 13, 22, 0.55) 52%, rgba(8, 13, 22, 0.96) 100%);
  transition: opacity 500ms ease;
}
.service-card:hover { transform: translateY(-0.5rem); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); border-color: rgba(var(--accent-rgb), 0.55); }
.service-card:hover::before { transform: scale(1.09); }
.service-card__overlay { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.7rem; }
.service-card__index { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); margin-bottom: 0.9rem; }
.service-card__overlay h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.service-card__overlay p { font-size: 0.9rem; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.service-card__cta {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.3rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem; font-weight: 600; color: #fff;
}
.service-card__cta svg { width: 1rem; height: 1rem; transition: transform 500ms var(--ease); }
.service-card:hover .service-card__cta svg, .service-card:focus-visible .service-card__cta svg { transform: translateX(0.4rem); }
.service-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.section-dark .section-foot { margin-top: 3rem; text-align: center; }

/* Featured project */
.fp-card {
  display: grid; grid-template-columns: 1.15fr 0.85fr; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.fp-photos { display: grid; grid-template-rows: 1.5fr 1fr; gap: 4px; background: var(--navy); min-height: 34rem; }
.fp-photos a { position: relative; display: block; overflow: hidden; }
.fp-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.fp-photos a:hover img { transform: scale(1.06); }
.fp-photo-label {
  position: absolute; left: 1rem; bottom: 1rem; padding: 0.4rem 0.8rem; border-radius: 999px; color: #fff;
  background: rgba(10, 15, 25, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.fp-info { display: flex; flex-direction: column; gap: 1.1rem; padding: 3rem; }
.fp-badge { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-dark); }
:root[data-theme="dark"] .fp-badge { color: #ffb383; }
.fp-badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); animation: ping 2.4s infinite; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
.fp-info h3 { font-size: 2.2rem; }
.fp-client { font-size: 0.9rem; }
.fp-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; padding: 1.1rem; background: var(--bg-soft); border-radius: 1rem; }
.fp-meta-item { text-align: center; }
.fp-meta-item strong { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--accent-dark); }
:root[data-theme="dark"] .fp-meta-item strong { color: #ffb383; }
.fp-meta-item span { font-size: 0.74rem; color: var(--muted); }
.fp-cta { margin-top: auto; align-self: flex-start; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 0.76rem; font-weight: 600; }
:root[data-theme="dark"] .chip { color: #ffb383; }

/* Stats */
.stats-section { background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.stat-card { padding: 2.6rem 2rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 700ms var(--ease), box-shadow 700ms var(--ease); }
.stat-card:hover { transform: translateY(-0.4rem); box-shadow: var(--shadow); }
.stat-card strong { display: block; font-family: var(--font-head); font-size: clamp(2.8rem, 4.2vw, 9rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.stat-card span { display: block; margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Logos */
.logo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.logo-card { display: grid; place-items: center; min-height: 12rem; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 700ms var(--ease), box-shadow 700ms var(--ease); }
.logo-card:hover { transform: translateY(-0.4rem); box-shadow: var(--shadow); }
.logo-card img { max-height: 7rem; width: auto; object-fit: contain; }

/* Testimonials */
.section-accent { background: var(--bg-soft); }
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; transition: transform 1s var(--ease); }
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.quote-card { display: flex; flex-direction: column; gap: 1.4rem; margin: 0; padding: 3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.quote-card > p { font-family: var(--font-head); font-size: clamp(1.15rem, 1.5vw, 3rem); line-height: 1.5; color: var(--ink); letter-spacing: -0.01em; max-width: 60ch; }
.quote-stars { color: var(--accent); letter-spacing: 0.2em; font-size: 0.95rem; }
.quote-author { display: flex; align-items: center; gap: 0.9rem; }
.quote-avatar { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; flex-shrink: 0; }
.quote-author strong { display: block; font-size: 0.92rem; color: var(--ink); }
.quote-author span { font-size: 0.8rem; color: var(--muted); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.8rem; }
.carousel-arrow { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-strong); transition: all 400ms var(--ease); }
.carousel-arrow:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot { width: 0.55rem; height: 0.55rem; padding: 0; border: none; border-radius: 999px; background: var(--dot-inactive); transition: all 500ms var(--ease); }
.carousel-dot.is-active { width: 1.8rem; background: var(--accent); }

/* ==========================================================================
   Tabs — a proper grid of service tiles
   ========================================================================== */
.tabs { display: grid; gap: 1.6rem; }
.tab-list-wrap { position: relative; }
.tab-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tab-btn {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem;
  min-height: 5.4rem; padding: 1.1rem 1.3rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; line-height: 1.25; color: var(--ink);
  transition: transform 500ms var(--ease), border-color 300ms ease, box-shadow 500ms var(--ease), background 300ms ease, color 300ms ease;
}
.tab-btn:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), 0.5); box-shadow: var(--shadow-sm); }
.tab-btn-num {
  display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 0.7rem;
  background: var(--accent-soft); color: var(--accent-dark);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; transition: background 300ms ease, color 300ms ease;
}
:root[data-theme="dark"] .tab-btn-num { color: #ffb383; }
.tab-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow); }
.tab-btn.is-active .tab-btn-num { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .tab-btn.is-active { background: var(--accent); border-color: var(--accent); }
:root[data-theme="dark"] .tab-btn.is-active .tab-btn-num { background: rgba(255, 255, 255, 0.2); }

.tab-panels { position: relative; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panelIn 800ms var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }
.tab-panel-inner {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start;
  padding: 3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.tab-panel-inner h2 { font-size: clamp(1.7rem, 2.1vw, 5rem); margin-bottom: 1rem; max-width: 16ch; }
.tab-panel-inner ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.tab-panel-inner li {
  position: relative; padding: 1.1rem 1.2rem 1.1rem 2.9rem; background: var(--bg-soft); border-radius: var(--radius-sm);
  font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft);
}
.tab-panel-inner li::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.35rem; width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ==========================================================================
   FAQ, contact, forms
   ========================================================================== */
.accordion { display: grid; gap: 0.8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color 400ms ease, box-shadow 600ms var(--ease); }
.faq-item.is-open { border-color: rgba(var(--accent-rgb), 0.4); box-shadow: var(--shadow-sm); }
.accordion-trigger { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.4rem 1.6rem; background: none; border: none; text-align: left; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.accordion-icon { display: grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: 1.1rem; transition: transform 500ms var(--ease), background 300ms ease, color 300ms ease; }
.faq-item.is-open .accordion-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 700ms var(--ease); }
.accordion-panel-inner { padding: 0 1.6rem 1.6rem; max-width: 70ch; }
.faq-item.is-open .accordion-panel { max-height: 24rem; }

.contact-head { max-width: 46rem; margin-bottom: 2.6rem; }
.contact-head h2 { margin-bottom: 1rem; }
.contact-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.contact-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 1.4rem; align-items: stretch; }
.contact-copy, .contact-pane { border-radius: var(--radius-lg); }
.contact-copy { padding: 2.4rem; background: var(--navy); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-copy::before { content: ""; position: absolute; width: 26rem; height: 26rem; right: -10rem; top: -11rem; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.32), transparent 70%); pointer-events: none; }
.contact-copy > * { position: relative; }
.contact-kicker { margin: 0.4rem 0 0; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #ffb383; }
.contact-kicker:not(:first-child) { margin-top: 1.1rem; }

.book-card { display: grid; gap: 0.5rem; padding: 1.35rem 1.4rem 1.2rem; border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); color: #fff; text-decoration: none; transition: transform 220ms ease, border-color 220ms ease, background 220ms ease; }
.book-card:hover, .book-card:focus-visible { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.09); }
.book-card--primary { border-color: rgba(var(--accent-rgb), 0.7); background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.08)); box-shadow: 0 14px 34px rgba(var(--accent-rgb), 0.18); }
.book-card--primary:hover, .book-card--primary:focus-visible { border-color: var(--accent); background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.4), rgba(var(--accent-rgb), 0.12)); }
.book-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.book-meta b { padding: 0.15rem 0.55rem; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 700; letter-spacing: 0.08em; }
.book-meta span + span::before { content: "·"; margin-right: 0.7rem; opacity: 0.6; }
.book-title { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.2; font-weight: 700; color: #fff; }
.book-text { color: rgba(255, 255, 255, 0.74); font-size: 0.93rem; line-height: 1.55; }
.book-go { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.3rem; font-weight: 600; font-size: 0.92rem; color: #ffb383; }
.book-go svg { transition: transform 220ms ease; }
.book-card:hover .book-go svg, .book-card:focus-visible .book-go svg { transform: translateX(4px); }
.contact-fine { margin: -0.2rem 0 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }

.contact-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; counter-reset: step; }
.contact-steps li { counter-increment: step; position: relative; padding-left: 2.5rem; min-height: 1.7rem; font-size: 0.93rem; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
.contact-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.78rem; font-weight: 700; color: #ffb383; }
.contact-steps b { color: #fff; font-weight: 600; }

.contact-list { display: grid; gap: 0.8rem; margin: 0.8rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }
.contact-ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex-shrink: 0; border-radius: 0.8rem; background: rgba(255, 255, 255, 0.1); color: #ffb383; }

.contact-pane { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 2.4rem; }
.contact-form[hidden] { display: none; }
.contact-form { display: grid; gap: 1.15rem; align-content: start; }
.contact-form-head h3 { font-size: 1.45rem; margin: 0 0 0.35rem; }
.contact-form-head p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { display: grid; gap: 0.5rem; align-content: start; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); font-size: 0.74rem; margin-left: 0.35rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea { width: 100%; padding: 0.9rem 1rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color 250ms ease, box-shadow 250ms ease; }
.contact-form select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a93a6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.contact-form textarea { resize: vertical; min-height: 7.5rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14); }
.field .error-msg, .consent-error { display: none; font-size: 0.78rem; color: var(--error); }
.field.has-error .error-msg, .consent-error.is-visible { display: block; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.84rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--accent); }
.form-status { display: none; margin: 0; font-size: 0.88rem; font-weight: 600; }
.form-status.is-visible { display: block; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }
.form-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.contact-form button[disabled] { opacity: 0.7; cursor: progress; }

.contact-done { display: grid; gap: 1rem; justify-items: start; align-content: center; min-height: 100%; }
.contact-done[hidden] { display: none; }
.contact-done h3 { font-size: 1.6rem; margin: 0; }
.contact-done p { margin: 0; color: var(--muted); max-width: 30rem; }
.contact-done-ico { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: rgba(28, 138, 90, 0.14); color: var(--success); }

.cta-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: 3.2rem; border-radius: var(--radius-lg); background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-panel::before { content: ""; position: absolute; width: 24rem; height: 24rem; left: -8rem; bottom: -12rem; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.35), transparent 70%); }
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; }
.cta-panel .eyebrow { color: #ffb383; }

/* ==========================================================================
   Team / values / projects pages
   ========================================================================== */
:root[data-theme="dark"] 
/* Columns sized in rem, so enlarged phone text drops to fewer columns instead of one word per line */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.4rem; }
.value-card { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.value-card { padding: 2rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 700ms var(--ease), box-shadow 700ms var(--ease); }
.value-card:hover { transform: translateY(-0.4rem); box-shadow: var(--shadow); }
.value-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: 1.3rem; border-radius: 0.85rem; background: var(--accent-soft); color: var(--accent-dark); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; }
:root[data-theme="dark"] .value-icon { color: #ffb383; }
.value-card h4 { margin-bottom: 0.6rem; }
.value-card p { font-size: 0.92rem; }

.outcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.outcome-card { padding: 2.2rem 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 700ms var(--ease), box-shadow 700ms var(--ease); }
.outcome-card:hover { transform: translateY(-0.4rem); box-shadow: var(--shadow); }
.outcome-card strong { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.3rem; border-radius: 0.9rem; background: var(--navy); color: #fff; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; }

.project-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.project-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 800ms var(--ease), box-shadow 800ms var(--ease); }
.project-card:hover { transform: translateY(-0.5rem); box-shadow: var(--shadow); }
.project-card > a { display: block; overflow: hidden; }
.project-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.6s var(--ease); }
.project-card:hover img { transform: scale(1.07); }
.project-card__content { padding: 1.5rem; }
.project-card__content h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.project-card__content p:not(.eyebrow) { font-size: 0.88rem; line-height: 1.6; }
.project-card .eyebrow { margin-bottom: 0.7rem; }
.section-dark .project-card { border-color: rgba(255, 255, 255, 0.1); }
.section-dark .project-card h3 { color: var(--ink); }
.section-dark .project-card p { color: var(--muted); }
.section-dark .project-card .eyebrow { color: var(--accent-dark); }

.notes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.note-card { padding: 1.8rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.note-card strong { display: block; margin-bottom: 0.7rem; font-family: var(--font-head); font-size: 1.1rem; color: #fff; font-weight: 600; }
.note-card p { font-size: 0.9rem; }

.plant-divider { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 3rem; }
.plant-divider::before, .plant-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.plant-divider span { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.plant-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: 3rem; }
.plant-stat { padding: 2rem 1.5rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plant-stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; color: var(--accent-dark); line-height: 1; }
:root[data-theme="dark"] .plant-stat strong { color: #ffb383; }
.plant-stat p { margin-top: 0.7rem; font-size: 0.84rem; }
.plant-gallery-slim { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.plant-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); cursor: zoom-in; }
.plant-card img { width: 100%; height: 26rem; object-fit: cover; transition: transform 1.6s var(--ease); }
.plant-card:hover img { transform: scale(1.05); }
.plant-card__overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; background: linear-gradient(0deg, rgba(8, 13, 22, 0.92), transparent); color: #fff; }
.plant-card__overlay .eyebrow { color: #ffb383; margin-bottom: 0.5rem; }
.plant-card__overlay h3 { font-size: 1.1rem; margin-bottom: 0.3rem; color: #fff; }
.plant-card__overlay p { font-size: 0.84rem; color: rgba(255, 255, 255, 0.78); }
.privacy-note { display: flex; align-items: flex-start; gap: 0.8rem; margin-top: 1.6rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(255, 255, 255, 0.25); font-size: 0.84rem; color: rgba(255, 255, 255, 0.78); }
.privacy-note svg { flex-shrink: 0; margin-top: 0.15rem; }

.infra-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.infra-card { display: flex; align-items: flex-start; gap: 1.1rem; padding: 1.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 700ms var(--ease), box-shadow 700ms var(--ease); }
.infra-card:hover { transform: translateY(-0.4rem); box-shadow: var(--shadow); }
.infra-icon { display: grid; place-items: center; flex-shrink: 0; width: 2.8rem; height: 2.8rem; border-radius: 0.85rem; background: var(--accent-soft); color: var(--accent-dark); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; }
:root[data-theme="dark"] .infra-icon { color: #ffb383; }
.infra-card h4 { margin-bottom: 0.5rem; }
.infra-card p { font-size: 0.88rem; line-height: 1.6; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 1600; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(5, 9, 18, 0.94); }
.lightbox.open { display: flex; animation: fadeIn 400ms ease both; }
.lightbox figure { margin: 0; max-width: min(72rem, 96vw); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 1rem; object-fit: contain; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
.lightbox figcaption { margin-top: 1rem; text-align: center; font-size: 0.86rem; color: rgba(255, 255, 255, 0.72); }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.5rem; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.3rem; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

.back-to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 700; display: grid; place-items: center; width: 3rem; height: 3rem; border: none; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(0.8rem); pointer-events: none; transition: opacity 400ms ease, transform 500ms var(--ease), background 300ms ease; }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--accent-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 5rem 0 2rem; background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-about p { max-width: 34ch; margin-top: 1rem; font-size: 0.92rem; }
.footer-col h4 { margin-bottom: 1.2rem; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { display: grid; gap: 0.8rem; }
.footer-col a { font-size: 0.94rem; font-weight: 500; color: var(--ink-soft); transition: color 250ms ease; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.footer-nav a { font-size: 0.86rem; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { font-size: 0.82rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .service-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { aspect-ratio: 4 / 3.2; }
  .notes-grid, .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
}

@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .nav-wrap { position: relative; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 0.6rem); display: none;
    flex-direction: column; align-items: stretch; gap: 0.2rem; padding: 0.8rem;
    background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; animation: panelIn 500ms var(--ease) both; }
  .site-nav a { padding: 0.9rem 1rem; }
  .site-nav a.nav-cta { margin: 0.4rem 0 0; text-align: center; }
}

@media (max-width: 1100px) {
  .hero { align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-panel { aspect-ratio: 1.5 / 1; }
  .contact-grid, .fp-card, .tab-panel-inner, .footer-top { grid-template-columns: 1fr; }
  .team-grid, .infra-grid, .outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plant-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-photos { min-height: 24rem; }
}

@media (max-width: 760px) {
  :root { --container: calc(100% - 2.4rem); }
  .section { padding: 4.5rem 0; }
  .section-heading { margin-bottom: 2.2rem; }
  .page-hero { padding-top: calc(var(--header-h) + 4.5rem); }
  .hero { padding-top: calc(var(--header-h) + 2.5rem); }
  .hero-trust { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .hero-trust-item strong { font-size: 1.6rem; }
  .brand-tag { display: none; }
  .brand { font-size: 1.1rem; }
  .service-grid, .feature-grid, .stats-grid, .logo-row, .team-grid, .project-gallery,
  .infra-grid, .outcome-grid, .value-grid, .notes-grid, .plant-gallery-slim { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 4 / 4.4; }
  .tab-panel-inner { padding: 1.6rem; gap: 1.6rem; }
  .tab-panel-inner ul { grid-template-columns: 1fr; }
  .tab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .tab-btn { grid-template-columns: 1fr; gap: 0.6rem; min-height: 0; padding: 1rem; font-size: 0.9rem; }
  .contact-copy, .contact-pane, .cta-panel, .fp-info, .quote-card { padding: 1.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .fp-meta { grid-template-columns: 1fr; }
  .fp-meta-item { display: flex; align-items: center; justify-content: space-between; }
  .plant-stats { grid-template-columns: 1fr; }
  .plant-card img { height: 20rem; }
  .loader-foot { padding: 0 1.4rem 1.6rem; }
  .hero-chip { display: none; }
}

@media (max-width: 400px) {
  .theme-toggle { width: 2.2rem; height: 2.2rem; }
  .menu-toggle { padding: 0.5rem 0.8rem; }
  .nav-actions { gap: 0.5rem; }
}

/* Large / ultra-wide canvases: keep the composition filling the screen */
@media (min-width: 2200px) {
  .hero-grid { gap: 7rem; }
}

/* ── Final polish ──────────────────────────────────────── */
html:not(.js) .loader { display: none; }
.site-header.is-hidden .nav-wrap { transform: translateY(-160%); }
.hero h1 { max-width: none; }
.split-line { padding-bottom: 0.2em; margin-bottom: -0.2em; }
.tabs { scroll-margin-top: 7rem; }
.page-hero h1 { max-width: 20ch; }
.site-nav a { white-space: nowrap; }
.site-nav, .nav-actions { flex-shrink: 0; }
.brand { flex-shrink: 1; }

/* ==========================================================================
   Our Team — directory layout (data-driven, see team-data.js)
   ========================================================================== */
.tm-hero { position: relative; overflow: clip; padding: calc(var(--header-h) + 6rem) 0 3rem; }
.tm-hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot-grid, rgba(11, 18, 32, 0.2)) 1px, transparent 1.5px);
  background-size: 1.6rem 1.6rem;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 72% 35%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 85% at 72% 35%, #000 8%, transparent 72%);
}
:root[data-theme="dark"] .tm-hero-bg { --dot-grid: rgba(255, 255, 255, 0.18); }
.tm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 4.5rem; align-items: center; }
.tm-live {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem; padding: 0.45rem 1rem 0.45rem 0.8rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-soft);
}
.tm-live .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #2ecc71; animation: ping 2.4s infinite; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
.tm-hero h1 { font-size: clamp(2.7rem, 4.6vw, 10.5rem); max-width: 11ch; line-height: 1.02; }
.tm-hero h1 span { color: var(--accent); }
.tm-lead { max-width: 36rem; margin-top: 1.6rem; font-size: 1.12rem; line-height: 1.75; }
.tm-stats { display: flex; flex-wrap: wrap; gap: 1rem 3.2rem; margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.tm-stats strong { display: block; font-family: var(--font-head); font-size: 2.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.tm-stats span { display: block; margin-top: 0.55rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.tm-roster {
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 1.2rem 1.1rem; min-height: 24rem; padding: 2.4rem 1.6rem 3rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background-color: var(--bg-soft);
  background-image: radial-gradient(var(--dot-grid, rgba(11, 18, 32, 0.16)) 1px, transparent 1.4px); background-size: 1.2rem 1.2rem;
}
:root[data-theme="dark"] .tm-roster { --dot-grid: rgba(255, 255, 255, 0.14); }
.tm-node { position: relative; display: block; width: 6.2rem; height: 6.2rem; border-radius: 50%; animation: tmBob 7s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
.tm-node:nth-child(even) { margin-top: 1.6rem; }
@keyframes tmBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.45rem); } }
.tm-node-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid var(--surface-strong); box-shadow: var(--shadow-sm); background: var(--bg-soft); transition: transform 600ms var(--ease), box-shadow 600ms var(--ease); }
.tm-node:hover .tm-node-img, .tm-node:focus-visible .tm-node-img { transform: scale(1.12); box-shadow: var(--shadow); }
.tm-node:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tm-node-tip { position: absolute; left: 50%; bottom: calc(100% + 0.5rem); z-index: 3; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: 0.72rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, 6px); pointer-events: none; transition: opacity 300ms ease, transform 400ms var(--ease); }
.tm-node:hover .tm-node-tip, .tm-node:focus-visible .tm-node-tip { opacity: 1; transform: translate(-50%, 0); }

.tm-initials { display: grid; place-items: center; background: linear-gradient(145deg, var(--accent-soft), var(--bg-soft)); color: var(--accent-dark); font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; }
:root[data-theme="dark"] .tm-initials { color: #ffb383; }
.tm-node-img.tm-initials { font-size: 1.5rem; }

/* Sticky team switcher */
.tm-bar-wrap { position: sticky; top: 6.2rem; z-index: 60; padding: 0.4rem 0; pointer-events: none; transition: top 600ms var(--ease); }
html.nav-hidden .tm-bar-wrap { top: 1rem; }
.tm-bar { pointer-events: auto; display: inline-flex; gap: 0.25rem; max-width: 100%; padding: 0.35rem; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); border-radius: 999px; background: var(--nav-bg); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
.tm-bar::-webkit-scrollbar { display: none; }
.tm-chip { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.6rem; padding: 0.65rem 1.1rem; border: 0; border-radius: 999px; background: transparent; font-size: 0.88rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background 400ms var(--ease), color 300ms ease; }
.tm-chip i { padding: 0.12rem 0.5rem; border-radius: 999px; background: var(--bg-soft); font-family: var(--font-mono); font-size: 0.66rem; font-style: normal; color: var(--muted); transition: background 300ms ease, color 300ms ease; }
.tm-chip:hover { color: var(--ink); }
.tm-chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.tm-chip[aria-pressed="true"] i { background: rgba(255, 255, 255, 0.18); color: #fff; }
:root[data-theme="dark"] .tm-chip[aria-pressed="true"] { background: var(--accent); }
.tm-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Team sections */
.tm-main { padding-top: 1.5rem; }
.tm-team { padding: 4rem 0 1.5rem; }
.tm-team + .tm-team { border-top: 1px solid var(--line); }
.tm-team.is-in { animation: tmFade 900ms var(--ease-calm) both; }
@keyframes tmFade { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
.tm-team-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2.6rem; align-items: end; margin-bottom: 2.4rem; }
.tm-num { display: block; font-family: var(--font-head); font-size: clamp(3.4rem, 5.4vw, 8rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); }
.tm-team-id .eyebrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tm-team-copy h2 { max-width: none; font-size: clamp(1.8rem, 2.4vw, 5rem); }
.tm-team-copy p { max-width: 62ch; margin-top: 0.8rem; }
.tm-team-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.tm-stack { display: flex; padding-left: 0.6rem; }
.tm-mini { width: 2.5rem; height: 2.5rem; margin-left: -0.6rem; border: 2px solid var(--bg); border-radius: 50%; object-fit: cover; object-position: center top; background: var(--bg-soft); }
.tm-mini.tm-initials { font-size: 0.8rem; }
.tm-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tm-pill-link { border-color: rgba(var(--accent-rgb), 0.35); background: var(--accent-soft); color: var(--accent-dark); transition: transform 500ms var(--ease), box-shadow 500ms var(--ease); }
.tm-pill-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .tm-pill-link { color: #ffb383; }

.tm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.tm-card { position: relative; display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 1.15rem; align-items: stretch; padding: 0.75rem; border: 1px solid var(--line); border-radius: 1.4rem; background: var(--surface); cursor: pointer; transition: transform 800ms var(--ease), box-shadow 800ms var(--ease), border-color 400ms ease; }
.tm-card:hover { transform: translateY(-0.45rem); box-shadow: var(--shadow); border-color: rgba(var(--accent-rgb), 0.4); }
.tm-photo { position: relative; align-self: start; aspect-ratio: 1 / 1.22; overflow: hidden; border-radius: 1rem; background: var(--bg-soft); }
.tm-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.4s var(--ease); }
.tm-photo .tm-initials { width: 100%; height: 100%; font-size: 2rem; }
.tm-card:hover .tm-img { transform: scale(1.05); }
.tm-badge { position: absolute; left: 0.4rem; right: 0.4rem; bottom: 0.4rem; padding: 0.28rem 0.4rem; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: #0b1220; font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.tm-body { display: flex; min-width: 0; flex-direction: column; padding: 0.35rem 0.3rem 0.2rem 0; }
.tm-body h3 { font-size: 1.08rem; line-height: 1.2; }
.tm-open { color: inherit; }
.tm-open::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.tm-open:focus-visible { outline: none; }
.tm-card:has(.tm-open:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.tm-role { margin-top: 0.35rem; font-size: 0.88rem; line-height: 1.4; color: var(--ink-soft); }
.tm-org { margin-top: 0.45rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); }
:root[data-theme="dark"] .tm-org { color: #ffb383; }
.tm-foot { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: auto; padding-top: 0.9rem; }
.tm-tag { padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tm-go { display: grid; flex-shrink: 0; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); transition: background 400ms ease, color 400ms ease, border-color 400ms ease, transform 600ms var(--ease); }
.tm-go svg { width: 0.9rem; height: 0.9rem; }
.tm-card:hover .tm-go { background: var(--accent); border-color: var(--accent); color: #fff; transform: translate(2px, -2px); }

/* Profile drawer */
.tm-scrim { position: fixed; inset: 0; z-index: 1700; background: rgba(5, 9, 18, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 500ms ease; }
.tm-scrim.is-open { opacity: 1; }
.tm-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1710; width: min(37rem, 100vw); padding: 0.8rem; transform: translateX(106%); transition: transform 700ms var(--ease); }
.tm-drawer.is-open { transform: none; }
.tm-sheet { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 1.7rem; background: var(--surface-strong); box-shadow: var(--shadow-lg); }
.tm-sheet-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); }
.tm-sheet-count { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--muted); }
.tm-sheet-nav { display: flex; gap: 0.4rem; }
.tm-sheet-nav button { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-strong); color: var(--ink); transition: background 300ms ease, color 300ms ease, border-color 300ms ease; }
.tm-sheet-nav button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.tm-sheet-nav svg { width: 1rem; height: 1rem; }
.tm-sheet-body { flex: 1; padding: 1.4rem 1.6rem 1.8rem; overflow-y: auto; overscroll-behavior: contain; }
.tm-sheet-photo { aspect-ratio: 16 / 11; overflow: hidden; border-radius: 1.1rem; background: var(--bg-soft); }
.tm-sheet-img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.tm-sheet-photo .tm-initials { width: 100%; height: 100%; font-size: 4rem; }
.tm-sheet-head { margin: 1.5rem 0 1.3rem; }
.tm-sheet-head h2 { max-width: none; font-size: clamp(1.7rem, 2vw, 2.8rem); }
.tm-sheet-role { margin-top: 0.5rem; font-size: 1rem; color: var(--ink-soft); }
.tm-sheet-role span { color: var(--accent-dark); font-weight: 600; }
:root[data-theme="dark"] .tm-sheet-role span { color: #ffb383; }
.tm-sheet-head .tm-pill { margin-top: 0.9rem; }
.tm-sheet-block { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.tm-label { margin-bottom: 0.8rem; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tm-sheet-block p { font-size: 0.96rem; line-height: 1.7; }
.tm-checks { display: grid; gap: 0.7rem; }
.tm-checks li { position: relative; padding-left: 1.7rem; font-size: 0.93rem; line-height: 1.5; color: var(--ink-soft); }
.tm-checks li::before { content: ""; position: absolute; left: 0; top: 0.22em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.tm-skills { display: grid; gap: 1.1rem; }
.tm-skill-group h4 { margin-bottom: 0.55rem; font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.tm-skill-group ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tm-skill-group li { padding: 0.32rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); font-size: 0.78rem; line-height: 1.3; color: var(--ink-soft); }
.tm-sheet-cta { margin-top: 0.6rem; }

@media (max-width: 1100px) {
  .tm-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .tm-roster { min-height: 0; }
  .tm-team-head { grid-template-columns: auto 1fr; }
  .tm-team-meta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tm-hero { padding-top: calc(var(--header-h) + 4.5rem); }
  .tm-node { width: 4.6rem; height: 4.6rem; }
  .tm-roster { padding: 1.6rem 1rem 2rem; gap: 0.9rem 0.8rem; }
  .tm-team { padding-top: 3rem; }
  .tm-team-head { grid-template-columns: 1fr; gap: 1rem; }
  .tm-grid { grid-template-columns: 1fr; }
  .tm-card { grid-template-columns: 6.2rem minmax(0, 1fr); }
  .tm-drawer { top: auto; width: 100vw; height: 92vh; padding: 0; transform: translateY(106%); }
  .tm-sheet { border-radius: 1.5rem 1.5rem 0 0; }
}

.tm-tag { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   Chat assistant (Netlify-injected widget) — always above the site, site blurs
   behind it while open. The widget gives its window no z-index of its own.
   ========================================================================== */
.pb-win { z-index: 2147483000 !important; }
html::after {
  content: ""; position: fixed; inset: 0; z-index: 2147482000; pointer-events: none;
  background: rgba(8, 13, 24, 0.38);
  -webkit-backdrop-filter: blur(9px) saturate(1.1); backdrop-filter: blur(9px) saturate(1.1);
  opacity: 0; transition: opacity 450ms var(--ease-calm);
}
html.chat-open::after { opacity: 1; pointer-events: auto; cursor: pointer; }
html.chat-open .pb-root { display: none !important; }

/* ==========================================================================
   v5 — editorial layout: capability index, photographic service cards,
   departments. Hairlines and type do the work; colour is used sparingly.
   (Media queries sit at the end of this block so they win over earlier ones.)
   ========================================================================== */

/* ── Text link (replaces filled/ghost buttons in content) ── */
.text-link {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1.7rem; padding-bottom: 0.32rem;
  font-size: 0.95rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-strong);
  transition: border-color 400ms ease, color 400ms ease;
}
.text-link::after { content: "\2192"; font-weight: 400; transition: transform 500ms var(--ease); }
.text-link:hover { border-bottom-color: var(--accent); }
.text-link:hover::after { transform: translateX(0.35rem); }
.text-link.on-dark { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.4); }
.text-link.on-dark:hover { border-bottom-color: #ffb383; }

/* ── What we do: capability index ───────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: 6rem; align-items: start; }
.about-intro { position: sticky; top: calc(var(--header-h) + 3rem); margin-bottom: 0; max-width: none; }
.about-intro h2 { max-width: 13ch; }
.capabilities { border-bottom: 1px solid var(--line-strong); }
.capability { padding: 2.4rem 0 2.7rem; border-top: 1px solid var(--line-strong); transition: border-color 500ms ease; }
.capability:hover { border-top-color: var(--ink); }
.capability h3 { font-size: clamp(1.4rem, 1.75vw, 3.6rem); font-weight: 500; letter-spacing: -0.025em; margin-bottom: 0.8rem; }
.capability > p { max-width: 54ch; font-size: 1rem; }
.capability-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 2.6rem; margin-top: 1.6rem; }
.capability-points li { position: relative; padding-left: 1.4rem; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
.capability-points li::before { content: ""; position: absolute; left: 0; top: 0.82em; width: 0.7rem; height: 1px; background: var(--accent); }

/* ── Services band: photographic cards ──────────────────── */
.service-card--power { background-image: url("assets/img/services/power-plants.jpg"); background-position: 50% 30%; }
.service-card--smelter { background-image: url("assets/img/services/smelters.jpg"); background-position: 32% 50%; }
.service-card--project { background-image: url("assets/img/services/project-management.jpg"); background-position: 30% 50%; }
.service-card--digital { background-image: url("assets/img/services/digital-security.jpg"); background-position: 62% 50%; }
.service-card::after { background: linear-gradient(180deg, rgba(8, 13, 22, 0) 0%, rgba(8, 13, 22, 0.12) 26%, rgba(8, 13, 22, 0.8) 55%, rgba(8, 13, 22, 0.96) 100%); }

/* ── End-to-end digital ─────────────────────────────────── */
.digital-feature {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 32rem; margin-bottom: 4.6rem; border-radius: var(--radius-lg); background: #05080f;
}
.digital-feature__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.digital-feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 8, 15, 0.9) 0%, rgba(5, 8, 15, 0.6) 42%, rgba(5, 8, 15, 0.08) 82%);
}
.digital-feature__copy { max-width: 46rem; padding: 3.6rem; }
.digital-feature__copy .eyebrow { color: #ffb383; }
.digital-feature__copy h2 { color: #fff; max-width: 15ch; }
.digital-feature__copy p:not(.eyebrow) { margin-top: 1.1rem; color: rgba(255, 255, 255, 0.78); }

.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.4rem; margin: 0 0 4.8rem; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.journey li { position: relative; padding-top: 1.8rem; }
.journey li::before { content: ""; position: absolute; top: -0.32rem; left: 0; width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--accent); }
.journey h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 0.55rem; }
.journey p { font-size: 0.9rem; line-height: 1.6; }

.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; }
.offer { padding-top: 2.2rem; border-top: 1px solid var(--line-strong); transition: border-color 500ms ease; }
.offer:hover { border-top-color: var(--ink); }
.offer h3 { font-size: clamp(1.4rem, 1.75vw, 3.6rem); font-weight: 500; letter-spacing: -0.025em; margin-bottom: 0.7rem; }
.offer > p { max-width: 48ch; }
.offer .capability-points { grid-template-columns: 1fr; }

/* ── Services page: departments ─────────────────────────── */
.page-hero--left .narrow { max-width: none; }
.page-hero--left .narrow > p:not(.eyebrow) { max-width: 60ch; }
.page-hero--left h1 { max-width: 18ch; }
.dept-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; margin-top: 3.4rem; }
.dept-link { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 1.3rem; border-top: 1px solid var(--line-strong); transition: border-color 500ms ease; }
.dept-link span { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.dept-link span::after { content: "\2193"; font-weight: 400; color: var(--accent); transition: transform 500ms var(--ease); }
.dept-link small { max-width: 34ch; font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.dept-link:hover { border-top-color: var(--ink); }
.dept-link:hover span::after { transform: translateY(0.25rem); }

.dept { border-top: 1px solid var(--line); }
.dept-alt { background: var(--bg-soft); }
.dept-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; align-items: center; margin-bottom: 3.6rem; }
.dept-head__copy h2 { max-width: 15ch; font-size: clamp(2rem, 2.8vw, 6.5rem); }
.dept-head__copy p:not(.eyebrow) { max-width: 50ch; margin-top: 1.1rem; font-size: 1.02rem; }
.dept-head__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--navy); }
.dept-sub { margin: 5rem 0 2.6rem; }
.dept-sub h3 { font-size: clamp(1.4rem, 1.75vw, 3.6rem); font-weight: 500; letter-spacing: -0.025em; }
.dept-sub p { max-width: 56ch; margin-top: 0.7rem; }

/* Tabs → quiet rail of labels with a rule that lights up */
.tab-list { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0 1.8rem; }
.tab-btn {
  display: block; min-height: 0; padding: 1.1rem 0 1.25rem; text-align: left; background: none;
  border: 0; border-top: 2px solid var(--line); border-radius: 0; box-shadow: none;
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; color: var(--muted);
  transition: color 300ms ease, border-color 300ms ease;
}
.tab-btn:hover { transform: none; box-shadow: none; border-top-color: var(--ink-soft); color: var(--ink); }
.tab-btn.is-active,
:root[data-theme="dark"] .tab-btn.is-active { background: none; border-top-color: var(--accent); color: var(--ink); box-shadow: none; }
.tab-panel-inner {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4.5rem; padding: 2.8rem 0 0;
  background: none; border: 0; border-radius: 0; box-shadow: none;
}
.tab-panel-inner h2 { max-width: 18ch; }
.tab-panel-inner ul { display: block; }
.tab-panel-inner li { padding: 1.05rem 0; background: none; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft); }
.tab-panel-inner li:first-child { border-top: 1px solid var(--line); }
.tab-panel-inner li::before { display: none; }

/* ── Our Team: no ordinal numerals ──────────────────────── */
.tm-team-head { grid-template-columns: minmax(0, 1fr) auto; }
.tm-sheet-count { display: none; }

@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-intro { position: static; }
  .about-intro h2 { max-width: 20ch; }
  .digital-feature { min-height: 28rem; }
  .digital-feature::after { background: linear-gradient(0deg, rgba(5, 8, 15, 0.92) 0%, rgba(5, 8, 15, 0.55) 55%, rgba(5, 8, 15, 0.1) 100%); }
  .digital-feature__copy { padding: 2.4rem; }
  .journey { grid-template-columns: 1fr; gap: 1.8rem; padding-left: 1.9rem; border-top: 0; border-left: 1px solid var(--line-strong); }
  .journey li { padding-top: 0; }
  .journey li::before { top: 0.4rem; left: calc(-1.9rem - 0.31rem); }
  .offers { grid-template-columns: 1fr; gap: 3rem; }
  .dept-nav { grid-template-columns: 1fr; gap: 1.6rem; }
  .dept-head { grid-template-columns: 1fr; gap: 2rem; }
  .tab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-panel-inner { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.2rem; }
  .tm-team-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .capability { padding: 2rem 0 2.2rem; }
  .capability-points { grid-template-columns: 1fr; }
  .digital-feature { min-height: 26rem; margin-bottom: 3.4rem; }
  .digital-feature__copy { padding: 1.7rem; }
  .tab-list { grid-template-columns: 1fr; gap: 0; }
  .tab-btn { padding: 0.9rem 0 0.9rem 1rem; border-top: 0; border-left: 2px solid var(--line); }
  .tab-btn:hover { border-top-color: transparent; border-left-color: var(--ink-soft); }
  .tab-btn.is-active,
  :root[data-theme="dark"] .tab-btn.is-active { border-top-color: transparent; border-left-color: var(--accent); }
}


/* ==========================================================================
   v6 — keyword emphasis, department navigation, filled service tabs
   ========================================================================== */

/* Keywords stand out: kicker lines and bold lead terms */
.capability-kicker { margin-bottom: 0.7rem; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-dark); }
:root[data-theme="dark"] .capability-kicker { color: #ffb383; }
.capability-points li strong { font-weight: 600; color: var(--ink); }
.capability > p { font-size: 1.02rem; color: var(--ink-soft); }
.offer .capability-points li strong { color: var(--ink); }

/* Service cards: keyword chips */
.service-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.service-card__tags li {
  padding: 0.28rem 0.65rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.service-card__index { color: #ffb383; font-weight: 500; }
.service-card__overlay > p:not(.service-card__index) { min-height: 6.4em; }
.service-card__tags { align-content: flex-start; min-height: 3.5rem; }

/* ── Core Services: department chooser ──────────────────── */
.dept-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 3.4rem; }
.dept-card {
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem 1.8rem 1.5rem; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line);
  transition: transform 600ms var(--ease), background 400ms ease, border-color 300ms ease, box-shadow 600ms var(--ease);
}
.dept-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease); }
.dept-card:hover, .dept-card:focus-visible { transform: translateY(-0.35rem); background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow-lg); outline: none; }
.dept-card:hover::before, .dept-card:focus-visible::before { transform: scaleX(1); }
.dept-card__kicker { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-dark); transition: color 300ms ease; }
.dept-card__title { font-family: var(--font-head); font-size: clamp(1.3rem, 1.6vw, 3.2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); transition: color 300ms ease; }
.dept-card__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.dept-card__tags li { padding: 0.36rem 0.78rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 0.78rem; font-weight: 600; color: var(--ink); transition: background 300ms ease, border-color 300ms ease, color 300ms ease; }
.dept-card__go { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; color: var(--ink); transition: color 300ms ease, border-color 300ms ease; }
.dept-card__go i { font-style: normal; font-size: 1.15rem; color: var(--accent); transition: transform 500ms var(--ease); }
.dept-card:hover .dept-card__kicker, .dept-card:focus-visible .dept-card__kicker { color: #ffb383; }
.dept-card:hover .dept-card__title, .dept-card:focus-visible .dept-card__title, .dept-card:hover .dept-card__go, .dept-card:focus-visible .dept-card__go { color: #fff; }
.dept-card:hover .dept-card__tags li, .dept-card:focus-visible .dept-card__tags li { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.dept-card:hover .dept-card__go, .dept-card:focus-visible .dept-card__go { border-top-color: rgba(255, 255, 255, 0.2); }
.dept-card:hover .dept-card__go i { transform: translateY(0.3rem); }

/* Sticky jump bar that follows you down the page */
.dept-rail { position: sticky; top: calc(var(--header-h) + 1.8rem); z-index: 30; margin-top: 2.6rem; transition: top 500ms var(--ease); }
html.nav-hidden .dept-rail { top: 0.9rem; }
.dept-rail__inner {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.5rem; overflow-x: auto; border-radius: 999px;
  background: var(--nav-bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  scrollbar-width: none;
}
.dept-rail__inner::-webkit-scrollbar { display: none; }
.dept-rail__label { flex: none; padding: 0 0.9rem 0 0.7rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.dept-rail a { flex: none; padding: 0.62rem 1.15rem; border-radius: 999px; font-size: 0.92rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background 300ms ease, color 300ms ease; }
.dept-rail a:hover { color: var(--ink); background: var(--bg-soft); }
.dept-rail a[aria-current="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .dept-rail a[aria-current="true"] { background: var(--accent); }
.dept { scroll-margin-top: 5.5rem; }

/* Department header: copy and photo share one aligned block */
.dept-head { align-items: stretch; }
.dept-head__copy { display: flex; flex-direction: column; justify-content: center; }
.dept-head__lead { margin-top: 1.1rem; max-width: 52ch; font-size: 1.08rem; color: var(--ink-soft); }
.dept-keys { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.7rem; }
.dept-keys li { padding: 0.46rem 0.95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.dept-head__img { height: 100%; min-height: 22rem; aspect-ratio: auto; }

/* Service tabs: clear, filled tiles with a keyword line */
.tab-list { gap: 1rem; }
.tab-btn {
  display: grid; grid-template-columns: 1fr; align-items: start; align-content: start; gap: 0.28rem; min-height: 0; padding: 1.1rem 1.3rem 1.2rem; text-align: left; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: none; color: var(--ink);
  transition: transform 500ms var(--ease), background 300ms ease, border-color 300ms ease, box-shadow 500ms var(--ease);
}
.tab-title { font-family: var(--font-head); font-size: 1.04rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.tab-sub { font-size: 0.8rem; font-weight: 500; line-height: 1.4; color: var(--muted); transition: color 300ms ease; }
.tab-btn:hover { transform: translateY(-2px); border-color: var(--ink-soft); box-shadow: var(--shadow-sm); color: var(--ink); }
.tab-btn.is-active,
:root[data-theme="dark"] .tab-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: inset 0 3px 0 var(--accent), var(--shadow); }
.tab-btn.is-active .tab-sub { color: rgba(255, 255, 255, 0.72); }
:root[data-theme="dark"] .tab-btn.is-active { border-color: var(--accent); }

/* Panel list: term first, explanation under it */
.tab-panel-inner ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 2.4rem; align-content: start; }
.tab-panel-inner li { display: grid; gap: 0.18rem; padding: 0.85rem 0 0.85rem 1.1rem; border: 0; border-left: 2px solid var(--line-strong); transition: border-color 300ms ease; }
.tab-panel-inner li:first-child { border-top: 0; }
.tab-panel-inner li:hover { border-left-color: var(--accent); }
.tab-panel-inner li strong { font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.tab-panel-inner li span { font-size: 0.9rem; line-height: 1.5; color: var(--muted); }

@media (max-width: 1100px) {
  .dept-cards { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.4rem; }
  .dept-rail { top: calc(var(--header-h) + 1.4rem); }
  .dept-head__img { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .tab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-panel-inner ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dept-rail__label { display: none; }
  .dept-rail a { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  .dept-card { padding: 1.5rem 1.4rem 1.3rem; }
  .tab-list { grid-template-columns: 1fr; gap: 0.6rem; }
  .tab-btn { padding: 0.95rem 1.1rem; border-radius: var(--radius-sm); border-left: 1px solid var(--line-strong); }
  .tab-btn:hover { border-left-color: var(--ink-soft); }
  .tab-btn.is-active, :root[data-theme="dark"] .tab-btn.is-active { border-left-color: var(--navy); }
  .tab-panel-inner ul { grid-template-columns: 1fr; }
}

/* LinkedIn button (footer) */
.linkedin-btn { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.1rem; padding: 0.6rem 1.05rem; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease; }
.linkedin-btn svg { flex-shrink: 0; color: #0a66c2; transition: color 200ms ease; }
.linkedin-btn:hover, .linkedin-btn:focus-visible { background: #0a66c2; border-color: #0a66c2; color: #fff; transform: translateY(-2px); }
.linkedin-btn:hover svg, .linkedin-btn:focus-visible svg { color: #fff; }
:root[data-theme="dark"] .linkedin-btn svg { color: #6aa9ee; }
:root[data-theme="dark"] .linkedin-btn:hover svg, :root[data-theme="dark"] .linkedin-btn:focus-visible svg { color: #fff; }

/* ── v7: two divisions on one page ─────────────────────────── */
.dept-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.6rem; }
.service-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-division { scroll-margin-top: 4rem; }
.digital-feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; margin-top: 1.8rem; }
.digital-feature { margin-bottom: 4.2rem; }

.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-bottom: 5rem; }
.pillar { display: flex; flex-direction: column; padding: 2rem 2.1rem 1.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 400ms ease, transform 500ms var(--ease), box-shadow 400ms ease; }
.pillar:hover { border-color: var(--ink-soft); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.pillar h3 { margin-bottom: 0.55rem; font-size: clamp(1.25rem, 1.5vw, 3rem); letter-spacing: -0.02em; }
.pillar > p:not(.capability-kicker) { max-width: 60ch; }
.pillar-points { display: grid; gap: 0.7rem; margin: 1.3rem 0 1.5rem; padding: 0; list-style: none; }
.pillar-points li { padding-left: 0.95rem; border-left: 2px solid var(--line-strong); font-size: 0.92rem; line-height: 1.55; color: var(--muted); transition: border-color 300ms ease; }
.pillar-points li strong { color: var(--ink); font-weight: 600; }
.pillar:hover .pillar-points li { border-left-color: var(--accent); }
.pillar .text-link { margin-top: auto; align-self: flex-start; }

.standards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 4rem; margin-top: 1rem; padding-top: 2.4rem; border-top: 1px solid var(--line-strong); }
.standards h3 { margin-bottom: 1rem; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.standards .chip { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.standards-note { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; color: var(--muted); }

@media (max-width: 1100px) {
  .dept-cards--two { grid-template-columns: 1fr; }
  .service-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr; }
  .standards { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 760px) {
  .service-grid--three { grid-template-columns: 1fr; }
  .pillar { padding: 1.6rem 1.4rem 1.5rem; }
  .digital-feature { margin-bottom: 3rem; }
}

/* v7 footer */
.footer-top { grid-template-columns: 1.3fr 0.8fr 1fr 1fr; }
@media (max-width: 1100px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

/* v8 digital page */
.pillars--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.pillars--compact .pillar { text-decoration: none; color: inherit; gap: 0.15rem; padding: 1.6rem 1.5rem 1.4rem; }
.pillars--compact .pillar h3 { font-size: 1.15rem; }
.pillars--compact .pillar > p:not(.capability-kicker) { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.pillars--compact .pillar .text-link { margin-top: auto; padding-top: 1.1rem; }
.page-hero .dept-keys { margin-top: 2rem; }
.page-hero .hero-actions { margin-top: 2rem; }
.deliverables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem 2rem; margin: 0 0 4.8rem; padding: 0; list-style: none; }
.deliverables li { display: grid; gap: 0.3rem; padding: 0.9rem 0 0.9rem 1.1rem; border-left: 2px solid var(--line-strong); transition: border-color 300ms ease; }
.deliverables li:hover { border-left-color: var(--accent); }
.deliverables strong { font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.deliverables span { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 1100px) {
  .pillars--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deliverables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pillars--compact { grid-template-columns: 1fr; }
  .deliverables { grid-template-columns: 1fr; }
}

/* v8 way back home */
.dept-rail a.dept-rail__home { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: 0.4rem; border: 1px solid var(--line-strong); color: var(--ink); }
.dept-rail a.dept-rail__home:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* v9 readability of the engineering cards */
.section-heading--wide { max-width: 58rem; margin-bottom: 3rem; }
.section-heading--wide h2 { max-width: 24ch; }
.section-heading--wide p:not(.eyebrow) { max-width: 66ch; font-size: 1.1rem; line-height: 1.7; color: var(--ink-soft); }
.pillars--eng { margin-bottom: 0; }
.pillar > p:not(.capability-kicker) { font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); }
.pillar-points li { font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); }
.pillar-points li strong { color: var(--ink); }

/* v10 phone + tablet: service cards = photo on top, text on a solid panel (no overflow, always legible) */
@media (max-width: 1100px) {
  .service-card { aspect-ratio: auto; }
  .service-card::after { background: linear-gradient(180deg, rgba(8, 13, 22, 0.05) 0, rgba(8, 13, 22, 0.05) 7rem, #0e1626 13rem, #0e1626 100%); }
  .service-card__overlay { position: relative; inset: auto; margin-top: 11rem; justify-content: flex-start; padding: 1.5rem 1.6rem 1.7rem; }
  .service-card__overlay > p:not(.service-card__index) { min-height: 0; }
  .service-card__tags { min-height: 0; }
  .service-grid--three .service-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .service-grid--three .service-card:last-child { grid-column: auto; }
  .service-card__overlay { margin-top: 9rem; padding: 1.3rem 1.3rem 1.5rem; }
  .service-card::after { background: linear-gradient(180deg, rgba(8, 13, 22, 0.05) 0, rgba(8, 13, 22, 0.05) 5.5rem, #0e1626 11rem, #0e1626 100%); }
}

/* v10 phone + tablet: legible small text, finger-sized targets, tidy stats */
@media (max-width: 1100px) {
  .hero-time-greeting span, .hero-trust-item span, .hero-badge span, .capability-kicker, .service-card__tags li, .fp-photo-label, .fp-badge,
  .chip, .fp-meta-item span, .eyebrow, .stat-card span, .contact-kicker, .book-meta b, .book-meta span, .contact-fine, .field .opt,
  .footer-col h4, .dept-card__kicker, .service-card__index, .dept-rail__label, .tm-stats span, .standards h3 { font-size: 0.8rem; }
  .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .theme-toggle { width: 2.75rem; height: 2.75rem; }
  .carousel-dot { position: relative; }
  .carousel-dot::after { content: ""; position: absolute; inset: -0.9rem -0.35rem; }
  .carousel-dots { gap: 0.8rem; }
}
@media (max-width: 760px) {
  .tm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .tm-stats span { letter-spacing: 0.06em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { justify-content: center; }
  .digital-feature__actions { flex-direction: column; align-items: stretch; }
  .digital-feature__actions .button { justify-content: center; }
  .digital-feature__actions .text-link { justify-content: center; }
}

/* v10 team page + header on small screens */
@media (max-width: 1100px) {
  .tm-pill, .tm-pill i, .tm-org, .tm-tag, .tm-node-tip, .dept-card__tags li, .dept-keys li { font-size: 0.8rem; }
  .tm-pill { min-height: 2.6rem; }
  .menu-toggle { min-height: 2.75rem; }
  .brand { min-height: 2.75rem; }
  .linkedin-btn { min-height: 2.75rem; }
}

/* v11 share-your-requirements page */
.req-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 1.6rem; align-items: start; }
.req-pane { padding: 2.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.req-form { display: grid; gap: 1.15rem; align-content: start; }
.req-form[hidden], .req-done[hidden] { display: none; }
.req-form-head h2 { margin: 0 0 0.35rem; font-size: 1.45rem; }
.req-form-head p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.req-star { color: var(--accent); font-weight: 700; }
.req-form input[type="text"], .req-form input[type="email"], .req-form input[type="tel"], .req-form select, .req-form textarea {
  width: 100%; padding: 0.9rem 1rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.req-form select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a93a6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.req-form textarea { resize: vertical; min-height: 7.5rem; }
.req-form input:focus, .req-form select:focus, .req-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14); }
.field.has-error select { border-color: var(--error); }
.req-form button[disabled] { opacity: 0.7; cursor: progress; }
.req-done { display: grid; gap: 1rem; justify-items: start; align-content: center; min-height: 22rem; }
.req-done h2 { margin: 0; font-size: 1.6rem; max-width: 24ch; outline: none; }
.req-done p { margin: 0; color: var(--muted); max-width: 34rem; }
.req-done-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.req-aside { position: sticky; top: calc(var(--header-h) + 1.6rem); }
.req-aside-box { display: grid; gap: 0.9rem; margin-top: 0.8rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, 0.12); justify-items: start; }
.req-link { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--muted); }
.req-link .text-link { min-height: 0; }
@media (max-width: 1100px) {
  .req-grid { grid-template-columns: 1fr; }
  .req-aside { position: static; }
}
@media (max-width: 760px) {
  .req-pane { padding: 1.5rem; }
  .req-done-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .req-done-actions .button { justify-content: center; }
}
