/* ============================================================
   KHEERAN — Railway Infrastructure Diagnostics
   Design system: "Precision Field Engineering"
   Display: Space Grotesk · Body: Manrope · Mono: IBM Plex Mono
   ============================================================ */

:root {
  /* color primitives */
  --ink-0: #080E1A;
  --ink-1: #0B1322;
  --ink-2: #101A2E;
  --ink-3: #16233C;
  --paper-0: #F5F3ED;
  --paper-1: #FBFAF6;
  --white: #FFFFFF;
  --amber: #F5A300;
  --amber-deep: #D98E00;
  --amber-soft: rgba(245, 163, 0, 0.12);
  --text-dark: #1A2334;
  --text-dark-2: #4A5568;
  --text-light: #E8ECF4;
  --text-light-2: #9AA7BC;
  --line-dark: rgba(230, 236, 244, 0.14);
  --line-light: rgba(16, 26, 46, 0.12);

  /* semantic */
  --bg: var(--paper-0);
  --fg: var(--text-dark);

  /* type */
  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  /* spacing / shape */
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --header-h: 76px;

  --shadow-1: 0 1px 2px rgba(11, 19, 34, 0.05), 0 8px 24px rgba(11, 19, 34, 0.07);
  --shadow-2: 0 12px 40px rgba(11, 19, 34, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 0; list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--amber); color: var(--ink-1); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: inherit;
}

.display-1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); }
.display-2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
}
.eyebrow.on-light { color: var(--amber-deep); }
.eyebrow.on-light::before { background: var(--amber-deep); }

.mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
              color 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
  border: 1px solid transparent;
  min-height: 48px;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.22s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--amber);
  color: var(--ink-1);
  box-shadow: 0 6px 20px rgba(245, 163, 0, 0.28);
}
.btn-primary:hover { background: var(--amber-deep); color: #fff; transform: translateY(-2px); }

.btn-ghost {
  border-color: rgba(232, 236, 244, 0.35);
  color: var(--text-light);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

.btn-ghost-dark {
  border-color: var(--line-light);
  color: var(--text-dark);
}
.btn-ghost-dark:hover { border-color: var(--amber-deep); color: var(--amber-deep); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--amber-deep);
  border-bottom: 1px solid transparent;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; flex: none; }
.link-arrow:hover { gap: 14px; color: var(--amber); }
.link-arrow.on-dark { color: var(--amber); }
.link-arrow.on-dark:hover { color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 14, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.brand img { width: 44px; height: 44px; flex: none; }
/* text block is sized to the logo: KHEERAN cap-top = logo top, tagline baseline = rails */
.brand > span {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 40px;
  white-space: nowrap;
}
.brand .wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.12em;
  color: #fff;
  line-height: 0.74;
  margin-top: 3px;           /* sit KHEERAN level with the train roof (owner request) */
}
.brand .tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.151em;   /* tuned so RAILWAY SOLUTIONS spans exactly the KHEERAN width */
  margin-right: -0.151em;    /* cancel trailing letter-space */
  text-transform: uppercase;
  color: var(--amber);
  line-height: 0.8;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .main-nav > .nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 10px 11px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(232, 236, 244, 0.82);
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  min-height: 44px;
}
.main-nav > a:hover, .main-nav > .nav-item > button:hover,
.main-nav > a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.main-nav > a.active { color: var(--amber); }

.nav-item { position: relative; }
.nav-item .caret { width: 10px; height: 10px; transition: transform 0.25s var(--ease); }
.nav-item.open .caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 300px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  box-shadow: var(--shadow-2);
}
.nav-item.open .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  transition: background 0.18s var(--ease);
}
.nav-dropdown a:hover { background: rgba(245, 163, 0, 0.1); }
.nav-dropdown .dd-title { font-weight: 700; font-size: 14.5px; color: #fff; font-family: var(--font-display); }
.nav-dropdown .dd-desc { font-size: 12.5px; color: var(--text-light-2); margin-top: 2px; line-height: 1.45; }

.header-cta { display: inline-flex; }
.header-cta .btn { padding: 11px 22px; min-height: 44px; font-size: 14px; white-space: nowrap; }
.site-header .container { max-width: 1320px; }

.nav-contact, .nav-cta-mobile { display: none !important; }
@media (max-width: 1200px) {
  .nav-contact { display: inline-flex !important; }
  .nav-cta-mobile {
    display: inline-flex !important;
    margin-top: 18px;
    justify-content: center;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  align-items: center;
  border-radius: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav */
@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--ink-1);
    border-left: 1px solid var(--line-dark);
    padding: 20px 16px 40px;
    transform: translateX(100%);
    transition: transform 0.32s var(--ease);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > a, .main-nav > .nav-item > button { width: 100%; justify-content: space-between; font-size: 16px; padding: 14px 12px; }
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    background: var(--ink-2);
    margin: 2px 0 8px;
    box-shadow: none;
  }
  .nav-item.open .nav-dropdown { display: block; transform: none; }
  .header-cta { display: none; }
}

/* ---------- heroes ---------- */
.hero {
  position: relative;
  min-height: 96svh;
  display: flex;
  align-items: flex-end;
  background: var(--ink-1);
  color: var(--text-light);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(78deg, rgba(8, 14, 26, 0.95) 8%, rgba(8, 14, 26, 0.72) 44%, rgba(8, 14, 26, 0.28) 78%),
              linear-gradient(to top, rgba(8, 14, 26, 0.96) 0%, rgba(8, 14, 26, 0) 42%);
}
.blueprint {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(154, 167, 188, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 167, 188, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 65%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  width: 100%;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 56px;
}
.hero h1 { margin: 22px 0 20px; max-width: 15ch; }
.hero h1 .accent { color: var(--amber); }
.hero .lede { max-width: 56ch; color: rgba(232, 236, 244, 0.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-strip {
  margin-top: 58px;
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light-2);
}
.hero-strip span { display: inline-flex; align-items: center; gap: 9px; }
.hero-strip i {
  width: 7px; height: 7px;
  background: var(--amber);
  display: inline-block;
  transform: rotate(45deg);
}

/* page hero (interior pages) */
.page-hero {
  position: relative;
  background: var(--ink-1);
  color: var(--text-light);
  padding: calc(var(--header-h) + 84px) 0 76px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero-bg { opacity: 0.5; }
.page-hero .hero-bg::after {
  background: linear-gradient(90deg, rgba(8, 14, 26, 0.94) 20%, rgba(8, 14, 26, 0.55) 70%, rgba(8, 14, 26, 0.35)),
              linear-gradient(to top, rgba(8, 14, 26, 0.9), rgba(8, 14, 26, 0) 60%);
}
.page-hero h1 { margin: 20px 0 16px; max-width: 20ch; }
.page-hero .lede { max-width: 62ch; color: rgba(232, 236, 244, 0.85); }
.page-hero .crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-2);
}
.page-hero .crumbs a:hover { color: var(--amber); }
.page-hero .crumbs b { color: var(--amber); font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.section.dark { background: var(--ink-1); color: var(--text-light); }
.section.dark-2 { background: var(--ink-2); color: var(--text-light); }
.section.light { background: var(--paper-0); }
.section.white { background: var(--white); }
.section.tight { padding: clamp(44px, 5vw, 70px) 0; }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin: 18px 0 16px; }
.section-head .lede { color: var(--text-dark-2); }
.dark .section-head .lede, .dark-2 .section-head .lede { color: var(--text-light-2); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split.reverse > .split-media { order: -1; }
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
}
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  width: 100%;
  object-fit: cover;
}
.split-media .frame-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(8, 14, 26, 0.82);
  backdrop-filter: blur(6px);
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid var(--line-dark);
}
.split-body h2 { margin: 18px 0 18px; }
.split-body p + p { margin-top: 16px; }
.split-body .body-copy { color: var(--text-dark-2); }
.dark .split-body .body-copy, .dark-2 .split-body .body-copy { color: var(--text-light-2); }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .card-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: rgba(217, 142, 0, 0.45);
}
.card .icon-chip {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--amber-soft);
  display: grid;
  place-items: center;
  flex: none;
}
.card .icon-chip img { width: 30px; height: 30px; object-fit: contain; }
.card .icon-chip svg { width: 26px; height: 26px; stroke: var(--amber-deep); }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--text-dark-2); font-size: 15.5px; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }

.dark .card, .dark-2 .card {
  background: var(--ink-2);
  border-color: var(--line-dark);
}
.dark .card p, .dark-2 .card p { color: var(--text-light-2); }
.dark .card:hover, .dark-2 .card:hover { border-color: rgba(245, 163, 0, 0.5); box-shadow: 0 16px 44px rgba(0,0,0,0.4); }
.dark .card .icon-chip, .dark-2 .card .icon-chip { background: rgba(245, 163, 0, 0.14); }
.dark .card .icon-chip svg, .dark-2 .card .icon-chip svg { stroke: var(--amber); }

.card .idx {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-light-2);
  letter-spacing: 0.12em;
}
.light .card .idx, .white .card .idx { color: #98A2B3; }

/* image cards (projects / posts) */
.media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(217, 142, 0, 0.45); }
.media-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.media-card:hover .thumb img { transform: scale(1.05); }
.media-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.media-card .body h3 { font-size: 1.14rem; line-height: 1.3; }
.media-card .body p { color: var(--text-dark-2); font-size: 14.5px; line-height: 1.6; }
.media-card .meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-2);
}
.media-card .meta-row .cat { color: var(--amber-deep); font-weight: 600; }
.media-card .meta-row span { white-space: nowrap; }
.media-card .link-arrow { margin-top: auto; padding-top: 10px; font-size: 14px; }
.dark .media-card, .dark-2 .media-card { background: var(--ink-2); border-color: var(--line-dark); }
.dark .media-card .body p, .dark-2 .media-card .body p { color: var(--text-light-2); }
.dark .media-card .meta-row, .dark-2 .media-card .meta-row { color: var(--text-light-2); }
.dark .media-card .meta-row .cat, .dark-2 .media-card .meta-row .cat { color: var(--amber); }

/* ---------- stats band ---------- */
.stats-band {
  border-block: 1px solid var(--line-dark);
  background: var(--ink-2);
  color: var(--text-light);
}
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 44px 28px;
  border-left: 1px solid var(--line-dark);
}
.stat:first-child { border-left: 0; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1;
  color: var(--amber);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat .num small { font-size: 0.45em; font-weight: 600; color: var(--text-light); letter-spacing: 0.04em; }
.stat .lbl {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-2);
}
@media (max-width: 820px) {
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 30px 20px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* ---------- spec list / deliverables ---------- */
.spec-list { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--line-light);
  align-items: baseline;
}
.spec-row .k {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 600;
}
.spec-row .v { color: var(--text-dark); font-size: 15.5px; }
.dark .spec-list, .dark-2 .spec-list { border-top-color: var(--line-dark); }
.dark .spec-row, .dark-2 .spec-row { border-bottom-color: var(--line-dark); }
.dark .spec-row .k, .dark-2 .spec-row .k { color: var(--amber); }
.dark .spec-row .v, .dark-2 .spec-row .v { color: var(--text-light); }
@media (max-width: 640px) { .spec-row { grid-template-columns: 1fr; gap: 6px; } }

.check-list { display: grid; gap: 14px; margin-top: 22px; }
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-dark-2);
  font-size: 15.5px;
}
.dark .check-list li, .dark-2 .check-list li { color: var(--text-light-2); }
.check-list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--amber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D98E00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.dark .check-list li::before, .dark-2 .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5A300' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink-1);
  color: var(--text-light);
  overflow: hidden;
  isolation: isolate;
}
.cta-band .hero-bg { opacity: 0.34; }
.cta-band .hero-bg::after {
  background: linear-gradient(90deg, rgba(8,14,26,0.96) 30%, rgba(8,14,26,0.55));
}
.cta-band .container {
  position: relative;
  padding-block: clamp(72px, 9vw, 120px);
  max-width: 860px;
}
.cta-band h2 { margin: 18px 0 18px; }
.cta-band p { color: var(--text-light-2); max-width: 58ch; }
.cta-band .hero-actions { margin-top: 32px; }

/* ---------- regions strip ---------- */
.regions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.region-chip:hover { border-color: var(--amber); color: var(--amber); background: rgba(245,163,0,0.06); }
.region-chip svg { width: 14px; height: 14px; stroke: var(--amber); }

/* ---------- blog ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-2);
  transition: all 0.2s var(--ease);
  min-height: 44px;
}
.filter-chip:hover { border-color: var(--amber-deep); color: var(--amber-deep); }
.filter-chip.active {
  background: var(--ink-1);
  border-color: var(--ink-1);
  color: var(--amber);
}
.post-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-2);
  margin-bottom: 22px;
}

/* ---------- article (single post) ---------- */
.article-wrap {
  max-width: 780px;
  margin-inline: auto;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-2);
  margin: 20px 0 34px;
}
.article-meta .cat { color: var(--amber-deep); font-weight: 600; }
.article-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 46px;
  box-shadow: var(--shadow-2);
}
.article-hero img { width: 100%; aspect-ratio: 16/8.2; object-fit: cover; }

.prose { color: var(--text-dark-2); font-size: 16.5px; line-height: 1.8; }
.prose > * + *, .prose > div > * + * { margin-top: 20px; }
.prose h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--text-dark);
  margin-top: 48px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  color: var(--text-dark);
  margin-top: 38px;
}
.prose h4 { font-size: 1.05rem; color: var(--text-dark); margin-top: 28px; }
.prose a { color: var(--amber-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--amber); }
.prose strong, .prose b { color: var(--text-dark); font-weight: 700; }
.prose ul, .prose ol { padding-left: 4px; display: grid; gap: 10px; }
.prose ul li { display: flex; gap: 12px; align-items: flex-start; }
.prose ul li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: 10px;
  background: var(--amber);
  transform: rotate(45deg);
}
.prose ol { counter-reset: oli; }
.prose ol li { display: flex; gap: 14px; align-items: baseline; counter-increment: oli; }
.prose ol li::before {
  content: counter(oli, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber-deep);
  font-weight: 600;
  flex: none;
}
.prose img { border-radius: var(--radius-sm); margin-block: 10px; }
.prose blockquote {
  border-left: 3px solid var(--amber);
  padding: 6px 0 6px 24px;
  font-size: 1.12rem;
  color: var(--text-dark);
  font-weight: 500;
  font-style: normal;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line-light); padding: 10px 14px; text-align: left; }
.prose th { background: var(--paper-0); font-family: var(--font-display); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.tag-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper-0);
  border: 1px solid var(--line-light);
  color: var(--text-dark-2);
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 6px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text-dark);
  transition: color 0.2s var(--ease);
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--amber-deep); }
.faq summary .plus {
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.faq summary .plus svg { width: 13px; height: 13px; }
.faq details[open] summary .plus {
  transform: rotate(45deg);
  background: var(--amber);
  border-color: var(--amber);
}
.faq details[open] summary .plus svg { stroke: var(--ink-1); }
.faq .faq-body { padding: 0 6px 26px; color: var(--text-dark-2); max-width: 72ch; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--ink-1);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: grid;
  gap: 26px;
}
.contact-line { display: flex; gap: 16px; align-items: flex-start; }
.contact-line .ic {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(245, 163, 0, 0.14);
  display: grid;
  place-items: center;
}
.contact-line .ic svg { width: 20px; height: 20px; stroke: var(--amber); }
.contact-line .k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-2);
  margin-bottom: 4px;
}
.contact-line a, .contact-line .val { font-weight: 600; font-size: 16.5px; color: #fff; }
.contact-line a:hover { color: var(--amber); }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark-2);
  margin-bottom: 8px;
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 15.5px;
  color: var(--text-dark);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 163, 0, 0.18);
}
.field .err { display: none; color: #C0392B; font-size: 13px; margin-top: 6px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #C0392B; }
.field.invalid .err { display: block; }
.form-status {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
}
.form-status.ok { display: block; background: rgba(46, 125, 50, 0.1); color: #2E7D32; border: 1px solid rgba(46,125,50,0.3); }
.form-status.fail { display: block; background: rgba(192, 57, 43, 0.08); color: #C0392B; border: 1px solid rgba(192,57,43,0.3); }
.form-status.fail a { color: inherit; text-decoration: underline; }
.form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[disabled] { opacity: 0.65; cursor: progress; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-0);
  color: var(--text-light-2);
  border-top: 1px solid var(--line-dark);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: clamp(56px, 7vw, 84px) 0 48px;
}
@media (max-width: 920px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 14.5px; line-height: 1.7; margin-top: 18px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 14.5px; transition: color 0.18s var(--ease); }
.footer-col a:hover { color: var(--amber); }
.footer-contact li { display: flex; gap: 10px; font-size: 14.5px; align-items: baseline; }
.footer-contact .mono { color: var(--amber); font-size: 12px; flex: none; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.rail-divider {
  height: 26px;
  background-image:
    repeating-linear-gradient(90deg, var(--line-light) 0 3px, transparent 3px 34px),
    linear-gradient(var(--line-light), var(--line-light));
  background-size: 100% 100%, 100% 2px;
  background-position: 0 0, 0 50%;
  background-repeat: repeat, no-repeat;
  opacity: 0.6;
}
.dark .rail-divider, .dark-2 .rail-divider {
  background-image:
    repeating-linear-gradient(90deg, var(--line-dark) 0 3px, transparent 3px 34px),
    linear-gradient(var(--line-dark), var(--line-dark));
}

.figure-block { margin-block: 34px; }
.figure-block img { border-radius: var(--radius); box-shadow: var(--shadow-1); width: 100%; }
.figure-block figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-2);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--amber);
  color: var(--ink-1);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { left: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 2026-11-26 refresh: split hero, AI messaging ---------- */
.hero.hero-split { min-height: auto; }
.hero-split .hero-inner { padding-top: calc(var(--header-h) + 52px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
  gap: 52px;
  align-items: center;
}
.hero-split h1 { max-width: 15ch; font-size: clamp(2.3rem, 3.5vw, 3.7rem); }
.hero-figure {
  margin: 0 calc(-1 * max(0px, (100vw - 1240px) / 2 - 24px)) 0 0;
  position: relative;
  border-radius: 14px 0 0 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 163, 0, 0.22);
}
.hero-figure img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 55% 60%; }
.hero-figure figcaption { position: absolute; left: 16px; bottom: 14px; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-figure { margin: 0; border-radius: 14px; }
  .hero-split h1 { max-width: 18ch; }
}

.nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px 1px;
  border-radius: 4px;
  background: var(--amber);
  color: var(--ink-1);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  vertical-align: 2px;
}
.eyebrow .nav-badge { vertical-align: 1px; }

.ai-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.ai-step {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid rgba(232, 236, 244, 0.12);
  border-top: 3px solid var(--amber);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.ai-step-n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--amber); }
.ai-step h3 { font-family: var(--font-display); font-size: 19px; margin: 10px 0 8px; color: #fff; }
.ai-step p { color: var(--text-light-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 980px) { .ai-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ai-steps { grid-template-columns: 1fr; } }

.ai-callout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 30px 32px;
  border-radius: 14px;
  background: var(--ink-1);
  color: var(--text-light);
  border-left: 4px solid var(--amber);
  box-shadow: 0 18px 50px rgba(8, 14, 26, 0.18);
}
.ai-callout .icon-chip { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 12px; background: rgba(245, 163, 0, 0.12); }
.ai-callout .icon-chip img { width: 32px; height: 32px; object-fit: contain; }
.ai-callout h3 { font-family: var(--font-display); font-size: 22px; margin: 8px 0 10px; color: #fff; }
.ai-callout p { color: var(--text-light-2); line-height: 1.65; margin-bottom: 14px; max-width: 70ch; }
.ai-callout.in-article { margin: 40px 0 8px; }
.ai-callout.in-article h3 { font-size: 20px; }
@media (max-width: 560px) { .ai-callout { flex-direction: column; padding: 24px 22px; } }
.ai-feats .card h3 { margin-top: 10px; }
.ai-feats .card p { font-size: 15px; line-height: 1.65; }
@media (max-width: 560px) { .hero-figure figcaption { display: none; } }
