/* Fonts (Barlow, Barlow Condensed) are linked from each page <head> by scripts/build.js. */

/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */
:root {
  --primary:        #f37442;
  --primary-dark:   #d95e2c;
  --primary-light:  #fff4f0;
  --accent:         #cc9900;
  --dark:           #16213e;
  --dark-2:         #1d2c50;
  --text:           #3d3d3d;
  --text-light:     #6b7280;
  --bg:             #ffffff;
  --bg-alt:         #f7f8fa;
  --border:         #e8ecf0;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body:    "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm:      0 1px 4px rgba(0,0,0,0.06), 0 2px 10px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.08), 0 8px 40px rgba(0,0,0,0.05);
  --shadow-lg:      0 12px 48px rgba(0,0,0,0.12), 0 24px 80px rgba(0,0,0,0.07);
  --shadow-primary: 0 8px 28px rgba(243,116,66,0.38);

  --radius:         16px;
  --radius-sm:      10px;
  --radius-xs:      6px;
  --radius-lg:      24px;

  --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h:       84px;
  --header-scroll:  66px;

  --container-w:    1280px;
}

/* ============================================================
   DARK THEME VARIABLES
============================================================ */
[data-theme="dark"] {
  --bg:           #0f1117;
  --bg-alt:       #161b27;
  --text:         #cbd5e1;
  --text-light:   #94a3b8;
  --border:       rgba(255,255,255,0.08);
  --primary-light: rgba(243,116,66,0.15);
  --dark-2:       #253256;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.4),  0 2px 10px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.5), 0 8px 40px rgba(0,0,0,0.35);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.6), 0 24px 80px rgba(0,0,0,0.4);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s ease, color 0.35s ease;
}

a    { text-decoration: none; color: inherit; transition: color var(--transition); }
img  { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.14;
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}
p    { margin: 0; }
button { font-family: inherit; }
input, textarea { font-family: var(--font-body); }

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 26px;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
============================================================ */
.section-head { max-width: 60ch; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05; margin-bottom: 14px; }
.section-head p  { font-size: 16.5px; line-height: 1.7; color: var(--text-light); }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-head-row h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05; }
.section-head-row .section-head { margin-bottom: 0; }

.text-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-dark);
  white-space: nowrap;
  transition: color var(--transition);
}
.text-link:hover { color: var(--primary); }

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-primary);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary:hover  { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 36px rgba(243,116,66,0.48); }
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

.btn-ghost-invert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 26px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.28);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-ghost-invert:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); transform: translateY(-3px); }

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 42px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 14px 36px rgba(243,116,66,0.4);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.btn-primary-lg:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(243,116,66,0.48); }

.btn-primary, .btn-ghost, .btn-ghost-invert, .btn-primary-lg { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(1); opacity: 0; } }

/* ============================================================
   SKIP LINK
============================================================ */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ============================================================
   SCROLL PROGRESS BAR
============================================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.08); }

.header-flex {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: nowrap;
  height: var(--header-h);
  transition: height 0.3s ease;
}
.site-header.scrolled .header-flex { height: var(--header-scroll); }

.logo-link { display: flex; align-items: center; flex-shrink: 1; min-width: 0; margin-right: auto; }
.logo-img {
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: height var(--transition), padding var(--transition);
}
.site-header.scrolled .logo-img { height: 34px; }
.logo-img--dark { display: none; }
[data-theme="dark"] .logo-img--light { display: none; }
[data-theme="dark"] .logo-img--dark  { display: block; }

.main-nav { display: flex; align-items: center; gap: 26px; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-xs);
  transition: color var(--transition);
  position: relative;
}
.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.28s ease;
}
.nav-list li a:hover  { color: var(--primary); }
.nav-list li a.active { color: var(--primary); }
.nav-list li a:hover::after,
.nav-list li a.active::after { width: 55%; }

.nav-contact-btn { padding: 11px 22px; font-size: 14.5px; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.4s ease;
}
.theme-toggle:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); transform: rotate(22deg); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none;  }
[data-theme="dark"] .theme-toggle .icon-moon { display: none;  }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none; border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-alt); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
[data-theme="dark"] .hamburger span { background: #e2e8f0; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(310px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 1100;
  padding: 90px 28px 40px;
  box-shadow: -6px 0 48px rgba(0,0,0,0.14);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.38s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}
.mobile-menu-close {
  position: absolute; top: 22px; right: 22px;
  width: 38px; height: 38px;
  background: var(--bg-alt);
  border: none; border-radius: 50%;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover { background: var(--primary); color: #fff; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-list a {
  display: block;
  padding: 15px 18px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav-list a:hover,
.mobile-nav-list a.active { background: var(--primary-light); color: var(--primary); }
.mobile-nav-contact { margin-top: 14px; text-align: center; }

.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(22,33,62,0.55);
  z-index: 1050;
  opacity: 0; pointer-events: none;
  transition: opacity 0.38s ease;
  backdrop-filter: blur(2px);
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: all; }

/* ============================================================
   PAGE HERO (dark navy banner)
============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1.5px),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 45%, #0f1a33 100%);
  background-size: 28px 28px, auto;
  background-position: -6px -6px, 0 0;
  color: #fff;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,116,66,0.3), transparent 70%);
  pointer-events: none;
}
.page-hero--company::before,
.page-hero--work::before { background: radial-gradient(circle, rgba(204,153,0,0.22), transparent 70%); top: auto; bottom: -200px; right: auto; left: -100px; }
.page-hero--contact::before { top: -140px; left: 40%; right: auto; }

.page-hero-inner {
  position: relative;
  padding-block: clamp(56px, 6.5vw, 104px);
}
.page-hero--contact .page-hero-inner { padding-bottom: clamp(88px, 10vw, 150px); }

.page-hero h1 {
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1;
  color: #fff;
  max-width: 18ch;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  max-width: 60ch;
  color: rgba(255,255,255,0.72);
}

/* ============================================================
   HOME HERO
============================================================ */
.home-hero {
  padding-bottom: 0;
  background-image:
    linear-gradient(160deg, rgba(10,14,27,0.93) 0%, rgba(15,21,40,0.87) 45%, rgba(10,17,34,0.94) 100%),
    url('../images/hero-bg.webp');
  background-size: auto, cover;
  background-position: 0 0, center 40%;
  background-repeat: no-repeat, no-repeat;
}
.home-hero .page-hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 56px;
  align-items: center;
  padding-bottom: clamp(56px, 6vw, 96px);
}

.home-hero h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  color: #fff;
  max-width: none;
  margin-bottom: 24px;
}
.home-hero-gradient {
  background: linear-gradient(100deg, var(--primary), #ffb694);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.home-hero p { margin-bottom: 34px; }
.home-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.terminal-window {
  border-radius: 18px;
  background: #12172a;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 34px 80px rgba(0,0,0,0.44);
  overflow: hidden;
  animation: term-float 7s ease-in-out infinite;
}
@keyframes term-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  background: #1a2035;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot--r { background: #ff5f56; }
.terminal-dot--y { background: #ffbd2e; }
.terminal-dot--g { background: #27c93f; }
.terminal-title { margin-left: 10px; font-size: 12px; color: rgba(255,255,255,0.42); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-body { padding: 22px 20px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; line-height: 2.05; }
.terminal-line { display: flex; gap: 10px; color: rgba(255,255,255,0.5); }
.terminal-line--ok { color: #34d399; }
.terminal-line--muted { color: rgba(255,255,255,0.6); }
.terminal-mark { color: rgba(255,255,255,0.32); }
.terminal-cursor {
  width: 8px; height: 16px;
  background: var(--primary);
  display: inline-block;
  animation: term-blink 1.1s step-end infinite;
}
@keyframes term-blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

.marquee-wrap {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.09);
  padding: 20px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
}

/* ============================================================
   SECTIONS — SHARED
============================================================ */
.section { padding: clamp(60px, 6.5vw, 100px) 0; }
.section-tint { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tint + .section-tint { border-top: none; }

/* ============================================================
   CARD GRID / CARD
============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card-grid--tight { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(22,33,62,0.05);
  transition: transform 0.32s cubic-bezier(.2,.7,.3,1), box-shadow 0.32s ease, border-color 0.32s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(243,116,66,0.35); }
.card:hover .card-icon { background: var(--primary); color: #fff; transform: scale(1.06) rotate(-4deg); }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p  { font-size: 15px; line-height: 1.65; color: var(--text-light); }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--primary-dark);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon--invert { background: rgba(255,255,255,0.1); color: #ffb694; }
.card--feature:hover .card-icon--invert { background: rgba(255,255,255,0.16); color: #ffb694; transform: none; }

.card--feature {
  grid-column: span 2;
  min-width: 0;
  padding: 34px;
  background: linear-gradient(150deg, var(--dark), var(--dark-2));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.card--feature::before {
  content: '';
  position: absolute;
  top: -90px; right: -70px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,116,66,0.28), transparent 70%);
}
.card--feature h3 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); }
.card--feature p { color: rgba(255,255,255,0.74); max-width: 46ch; margin-bottom: 22px; }
@media (max-width: 700px) { .card--feature { grid-column: span 1; } }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
}
.tag--soft { background: var(--primary-light); color: var(--primary-dark); }
.tag--outline { border: 1px solid rgba(243,116,66,0.4); color: var(--primary-dark); }
.tag--invert { background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.82); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   TIMELINE (principles / phases)
============================================================ */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.timeline-item {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--border);
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: -9px; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 8px rgba(243,116,66,0.2);
}
.timeline-item--tint::before { box-shadow: 0 0 0 5px var(--bg-alt); }
.timeline-num {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.timeline-item h3 { font-size: 22px; margin-bottom: 10px; }
.timeline-item p { font-size: 15px; line-height: 1.65; color: var(--text-light); }

/* ============================================================
   SPLIT SECTION (heading rail + vertical timeline)
============================================================ */
.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 56px;
  align-items: start;
}
.split-section-head { position: sticky; top: calc(var(--header-h) + 28px); }

.vtimeline { display: flex; flex-direction: column; }
.vtimeline-item { display: flex; gap: 22px; position: relative; padding-bottom: 40px; }
.vtimeline-item:last-child { padding-bottom: 0; }
.vtimeline-item::before {
  content: '';
  position: absolute;
  left: 23px; top: 48px; bottom: 4px;
  width: 2px;
  background: var(--border);
}
.vtimeline-item:last-child::before { display: none; }
.vtimeline-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  position: relative;
  z-index: 1;
}
.vtimeline-item h3 { font-size: 21px; margin-bottom: 8px; }
.vtimeline-item p { font-size: 15px; line-height: 1.65; color: var(--text-light); }

@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; gap: 32px; }
  .split-section-head { position: static; }
}

/* ============================================================
   INSIGHT LIST (editorial rows)
============================================================ */
.insight-list { border-top: 1px solid var(--border); }
.insight-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 4px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: padding-left var(--transition), background var(--transition);
}
.insight-row:hover { padding-left: 16px; background: var(--bg-alt); }
.insight-index { font-family: var(--font-heading); font-weight: 600; font-size: 20px; color: var(--primary); }
.insight-row h3 { font-size: 22px; margin-bottom: 8px; }
.insight-row p { font-size: 15px; line-height: 1.65; color: var(--text-light); max-width: 62ch; }

/* ============================================================
   STACK
============================================================ */
.stack-group-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary-dark); margin-bottom: 16px;
}
.stack-items { display: flex; flex-direction: column; gap: 10px; }
.stack-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-light); }
.stack-item-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ============================================================
   CASE STUDIES — home teaser card
============================================================ */
.case-card {
  display: block;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(.2,.7,.3,1), box-shadow 0.32s ease, border-color 0.32s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(243,116,66,0.35); }
.case-card-banner {
  height: 132px;
  background: linear-gradient(140deg, var(--dark), #243459);
  position: relative;
  overflow: hidden;
}
.case-card-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(300px 160px at 80% 20%, rgba(243,116,66,0.34), transparent 70%);
}
.case-card-sector {
  position: absolute; left: 24px; bottom: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ffb694;
}
.case-card-body { padding: 26px; }
.case-card-body h3 { font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.case-card-body p { font-size: 15px; line-height: 1.65; color: var(--text-light); margin-bottom: 18px; }

/* ============================================================
   CASE STUDIES — work page wide card
============================================================ */
.case-note {
  max-width: 70ch;
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 40px;
}
.case-wide {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.case-wide-panel {
  background: linear-gradient(150deg, var(--dark), #243459);
  color: #fff;
  padding: 38px;
  position: relative;
  overflow: hidden;
}
.case-wide-panel::before {
  content: '';
  position: absolute; bottom: -120px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243,116,66,0.3), transparent 70%);
}
.case-wide-panel-inner { position: relative; }
.case-wide--reverse .case-wide-panel { order: 2; }
.case-wide--reverse .case-wide-body { order: 1; }
.case-wide-panel h2 { font-size: clamp(27px, 2.8vw, 38px); line-height: 1.1; color: #fff; margin-bottom: 20px; }
.case-wide-body { padding: 38px; display: flex; flex-direction: column; gap: 22px; }
.case-field-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: #93a0b5; margin-bottom: 7px;
}
.case-field-label--accent { color: var(--primary-dark); }
.case-wide-body p { font-size: 15.5px; line-height: 1.7; color: var(--text); }

/* ============================================================
   SERVICES PAGE
============================================================ */
.service-detail-card { display: flex; flex-direction: column; }
.service-detail-points {
  display: flex; flex-direction: column; gap: 9px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: auto;
}
.service-detail-points div { font-size: 14px; color: var(--text-light); }

.engagement-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px;
}
.engagement-card--featured {
  border-color: var(--primary);
  box-shadow: 0 10px 34px rgba(243,116,66,0.16);
}
.engagement-card--featured:hover { border-color: var(--primary); }
.engagement-card h3 { font-size: 26px; margin-bottom: 6px; }
.engagement-terms { font-size: 14px; color: var(--primary-dark); }
.engagement-divider { border-top: 1px solid var(--border); padding-top: 16px; }
.engagement-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #93a0b5; margin-bottom: 6px; }
.engagement-best { font-size: 15px; margin-bottom: 16px; }
.engagement-how { font-size: 15px; line-height: 1.65; color: var(--text-light); }

/* ============================================================
   COMPANY PAGE
============================================================ */
.leadership-card { text-align: left; }
.leadership-role { font-family: var(--font-heading); font-weight: 600; font-size: 20px; color: var(--dark); margin-bottom: 8px; }
[data-theme="dark"] .leadership-role { color: #e2e8f0; }
.leadership-bio { font-size: 14px; line-height: 1.65; color: var(--text-light); }

.careers-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: clamp(28px, 4vw, 44px);
}
.careers-panel h2 { margin-bottom: 10px; }
.careers-panel > p { font-size: 16px; color: var(--text-light); margin-bottom: 24px; max-width: 60ch; }
.disciplines-row { margin-bottom: 22px; }
.careers-body { font-size: 15.5px; line-height: 1.75; color: var(--text); max-width: 65ch; margin-bottom: 26px; }

/* ============================================================
   CTA BANNER
============================================================ */
.cta-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: clamp(40px, 5vw, 72px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -140px; left: 50%;
  width: 560px; height: 560px; margin-left: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,116,66,0.3), transparent 68%);
}
.cta-banner-inner { position: relative; }
.cta-banner h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.06; color: #fff; margin-bottom: 16px; }
.cta-banner p { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.72); max-width: 52ch; margin: 0 auto 30px; }

/* ============================================================
   CONTACT PAGE
============================================================ */
.contact-grid {
  margin-top: -90px;
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  align-items: start;
  padding-bottom: clamp(60px, 6vw, 100px);
}
.contact-form-card {
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 26px 70px rgba(22,33,62,0.14);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-success[hidden] { display: none; }
.form-success {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--primary-light);
  border: 1px solid rgba(243,116,66,0.3);
  font-size: 15px;
  color: var(--primary-dark);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.input, .textarea {
  border-radius: 11px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  min-height: 46px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--primary); background: var(--bg); }
.input::placeholder, .textarea::placeholder { color: var(--text-light); }

.need-options { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.need-option {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.need-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.need-option input { accent-color: var(--primary); }

.contact-info-stack { display: flex; flex-direction: column; gap: 16px; padding-top: 34px; }
.contact-info-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 22px 24px;
}
.contact-info-label { font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: #93a0b5; margin-bottom: 6px; }
.contact-info-value { font-size: 17px; color: var(--dark); }
[data-theme="dark"] .contact-info-value { color: #e2e8f0; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.68); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.3fr);
  grid-template-areas: "brand nav contact";
  gap: 48px;
  padding: 72px 0 48px;
}
.footer-brand       { grid-area: brand; }
.footer-nav         { grid-area: nav; }
.footer-contact-col { grid-area: contact; }

.footer-logo-link { display: inline-block; margin-bottom: 16px; }
.footer-logo { height: 40px; width: auto; object-fit: contain; display: block; }
.footer-tagline { font-size: 15px; line-height: 1.7; max-width: 34ch; margin-bottom: 24px; }
.footer-cta { padding: 12px 22px; font-size: 14.5px; }
.footer-cta svg { width: 16px; height: 16px; transition: transform var(--transition); }
.footer-cta:hover svg { transform: translateX(3px); }

.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #ffb694; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a {
  display: inline-block;
  padding: 7px 0;
  font-size: 15px;
  color: inherit;
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-links a.active { color: #fff; }
.footer-links a.active { font-weight: 600; }

.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 0;
  font-size: 15px;
  color: inherit;
  overflow-wrap: anywhere;
}
a.footer-contact-item { transition: color var(--transition); }
a.footer-contact-item:hover { color: #fff; }
.footer-contact-icon {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #ffb694;
  transition: background var(--transition), color var(--transition);
}
.footer-contact-icon svg { width: 18px; height: 18px; }
a.footer-contact-item:hover .footer-contact-icon { background: var(--primary); color: #fff; }
.footer-contact-label { display: block; font-size: 12.5px; color: rgba(255,255,255,0.45); margin-bottom: 2px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid rgba(255,255,255,0.09);
  padding: 22px 0 30px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-top-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  font: inherit;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-top-btn svg { width: 14px; height: 14px; }
.footer-top-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.site-footer a:focus-visible,
.site-footer button:focus-visible { outline: 2px solid #ffb694; outline-offset: 3px; border-radius: 4px; }

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "brand brand" "nav contact";
    gap: 40px 32px;
  }
}
@media (max-width: 575.98px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "nav" "contact";
    gap: 32px;
    padding: 56px 0 32px;
  }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .footer-links a { padding: 10px 0; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
============================================================ */
/* Hidden only once JS is known to run, so content never stays invisible without it. */
.js .reveal-up, .js .reveal-left, .js .reveal-right {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(.2,.7,.3,1), transform 0.75s cubic-bezier(.2,.7,.3,1);
}
.js .reveal-up    { transform: translateY(24px); }
.js .reveal-left  { transform: translateX(-28px); }
.js .reveal-right { transform: translateX(28px); }
.reveal-up.revealed, .reveal-left.revealed, .reveal-right.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal-up, .js .reveal-left, .js .reveal-right { opacity: 1; transform: none; }
  .marquee-track, .terminal-window, .terminal-cursor { animation: none; }
}

/* ============================================================
   DARK THEME — ELEMENT OVERRIDES
============================================================ */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 { color: #e2e8f0; }
[data-theme="dark"] .page-hero h1,
[data-theme="dark"] .home-hero h1,
[data-theme="dark"] .card--feature h3,
[data-theme="dark"] .case-wide-panel h2,
[data-theme="dark"] .cta-banner h2,
[data-theme="dark"] .footer-brand-name { color: #fff; }
[data-theme="dark"] .card { box-shadow: none; }
[data-theme="dark"] .terminal-window { border-color: rgba(255,255,255,0.14); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 991.98px) {
  .main-nav  { display: none; }
  .hamburger { display: flex; }
  .card--feature { padding: 26px; }
  .case-wide-panel, .case-wide-body { padding: 28px; }
}

@media (max-width: 575.98px) {
  :root { --header-h: 72px; --header-scroll: 60px; }
  .header-flex { gap: 12px; }
  .logo-img { height: 34px; }
  .site-header.scrolled .logo-img { height: 30px; }
  .home-hero-ctas { flex-direction: column; align-items: stretch; }
  .home-hero-ctas a { justify-content: center; }
}

/* ============================================================
   PRINT
============================================================ */
@media print {
  .site-header, .skip-link, .mobile-menu, .mobile-menu-overlay { display: none !important; }
}
