/* ==========================================================================
   Carolina Cam Inc. — Computer-Aided Magic
   Product research, engineering & development.
   Single stylesheet. Dark, technical, restrained. No dependencies.
   ========================================================================== */

:root {
  /* Brand palette (unchanged from the original identity) */
  --bg: #060a13;
  --bg-2: #0a1120;
  --surface: #0d1526;
  --surface-2: #121d33;
  --line: rgba(148, 178, 230, 0.12);
  --line-strong: rgba(148, 178, 230, 0.24);
  --text: #e9eef8;
  --text-2: #b0bcd2;
  --text-3: #8391ab;
  --cyan: #38d5ff;
  --blue: #3d6ff5;
  --grad: linear-gradient(90deg, var(--cyan), var(--blue));
  --spark: #ff8a2a;
  --spark-2: #ff7414;
  --ok: #3ddc97;

  --radius: 8px;
  --radius-sm: 6px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --header-h: 72px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Blueprint grid, faded out below the fold */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 80%);
  opacity: 0.4;
  pointer-events: none;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface-2); color: var(--text); padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Eyebrow: the logo's double underline, used as a section marker ----------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--grad);
  box-shadow: 0 5px 0 0 rgba(56, 213, 255, 0.45);
  transform: translateY(-2px);
  flex: none;
}
.eyebrow .idx { color: var(--text-3); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
  font-family: var(--font);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--spark); color: #170900; }
.btn-primary:hover { background: #ff9a45; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Text link: label + extending rule (replaces arrow icons) */
.link-line {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text);
  padding: 6px 0;
}
.link-line::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--grad);
  transition: width 0.25s ease;
}
.link-line:hover { text-decoration: none; color: var(--cyan); }
.link-line:hover::after { width: 52px; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 19, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.nav-links .btn { display: inline-flex; margin-left: 12px; color: #170900; padding: 0 16px; border-radius: var(--radius-sm); box-shadow: none; }
.nav-links a.btn[aria-current] { box-shadow: none; border-radius: var(--radius-sm); padding: 0 16px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(6, 10, 19, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a[aria-current] { box-shadow: inset 3px 0 0 var(--cyan); padding-left: 14px; }
  .nav-links .btn { margin: 16px 0 0; border-bottom: 0; }
}

/* Sections ----------------------------------------------------------------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
/* Heading left, supporting text right */
.head-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 72px); align-items: end; max-width: none; }
.head-split h2 { margin-bottom: 0; }
@media (max-width: 860px) { .head-split { grid-template-columns: 1fr; align-items: start; } }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 78% 42%, rgba(61, 111, 245, 0.20), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(56, 213, 255, 0.06), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.9rem); margin-bottom: 26px; letter-spacing: -0.04em; line-height: 1.02; }
.hero h1 .sub {
  display: block;
  font-size: 0.46em;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-2);
  margin-top: 0.5em;
}
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(1.06rem, 1.4vw, 1.18rem); color: var(--text-2); max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 34px 0 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; background: var(--cyan); border-radius: 1px; }

/* CAD viewport: corner brackets instead of a boxed card */
.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 600px; justify-self: end; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual .corner { position: absolute; width: 22px; height: 22px; border-color: var(--line-strong); border-style: solid; border-width: 0; }
.hero-visual .tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero-visual .tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero-visual .bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero-visual .br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  line-height: 1.7;
  pointer-events: none;
}
.hud b { color: var(--cyan); font-weight: 500; }
.hud-tl { top: 16px; left: 20px; }
.hud-tr { top: 16px; right: 20px; text-align: right; }
.hud-br { bottom: 16px; right: 20px; text-align: right; }

/* Capability strip along the bottom of the hero */
.hero-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: clamp(36px, 5vw, 56px) 0 0; border-top: 1px solid var(--line); }
.hero-strip li { border-right: 1px solid var(--line); }
.hero-strip li:last-child { border-right: 0; }
.hero-strip a { display: block; height: 100%; padding: 22px 22px 26px; color: inherit; transition: background 0.2s ease; position: relative; }
.hero-strip li:first-child a { padding-left: 0; }
.hero-strip a::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--grad); transition: width 0.3s ease; }
.hero-strip a:hover { text-decoration: none; background: rgba(56, 213, 255, 0.03); }
.hero-strip a:hover::before { width: 100%; }
.hero-strip .k { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); letter-spacing: 0.1em; margin-bottom: 10px; }
.hero-strip strong { display: block; font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.hero-strip .d { color: var(--text-3); font-size: 0.9rem; }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; justify-self: center; margin-top: 8px; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip li:nth-child(2) { border-right: 0; }
  .hero-strip li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-strip li:nth-child(3) a { padding-left: 0; }
}
@media (max-width: 560px) {
  .hero-strip a { padding: 18px 12px 20px 14px; }
  .hero-strip li:nth-child(odd) a { padding-left: 0; }
  .hero-strip strong { font-size: 0.95rem; }
  .hero-strip .d { font-size: 0.84rem; }
  .hud-br { display: none; }
}

/* Inner page hero */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); max-width: 900px; }
.page-hero .lede { color: var(--text-2); font-size: clamp(1.06rem, 1.5vw, 1.2rem); max-width: 720px; }
.page-hero .hero-ctas { margin-top: 30px; }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }
.page-hero-grid .figure { max-width: 440px; justify-self: end; width: 100%; }
@media (max-width: 900px) { .page-hero-grid .figure { justify-self: start; } }

/* Index / spec panel used in page heroes */
.panel { border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(10, 17, 32, 0.7); padding: 6px 22px 8px; }
.panel-title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); padding: 14px 0 10px; margin: 0; }
.index { list-style: none; margin: 0; padding: 0; counter-reset: idx; }
.index a { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 8px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.95rem; }
.index a::before { counter-increment: idx; content: "0" counter(idx); font-family: var(--font-mono); font-size: 0.74rem; color: var(--cyan); }
.index a::after { content: ""; width: 14px; height: 1px; background: var(--line-strong); align-self: center; transition: width 0.2s ease, background 0.2s ease; }
.index a:hover { color: var(--text); text-decoration: none; }
.index a:hover::after { width: 26px; background: var(--cyan); }
.spec-list { margin: 0; padding: 0; display: grid; grid-template-columns: max-content 1fr; }
.spec-list dt, .spec-list dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.spec-list dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-right: 20px; padding-top: 15px; }
.spec-list dd { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.spec-list dd small { display: block; color: var(--text-3); font-weight: 400; font-size: 0.86rem; }

/* Figures (technical illustrations) */
.figure { position: relative; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(ellipse at 50% 40%, rgba(61, 111, 245, 0.10), transparent 70%), var(--bg-2); padding: clamp(14px, 2vw, 22px); }
.figure img { width: 100%; height: auto; }
.figure figcaption { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.figure figcaption b { color: var(--cyan); font-weight: 500; }
.figure-bare { border: 0; background: none; padding: 0; }
.card-fig { margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: radial-gradient(ellipse at 50% 45%, rgba(61, 111, 245, 0.12), transparent 70%), var(--bg); padding: 12px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.card-fig img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.svc:hover .card-fig img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .svc:hover .card-fig img { transform: none; } }

/* Timeline (About) */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 7px; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--cyan); border-radius: 50%; }
.timeline li:last-child::before { background: var(--cyan); }
.timeline .y { display: block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--cyan); }
.timeline .t { color: var(--text-2); font-size: 0.96rem; }

/* Mono tag list */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.chips li { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 4px; padding: 6px 10px; }

/* Jump links (in-page navigation) */
.jump {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 30px 0 0;
}
.jump a {
  display: inline-block;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-2);
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.jump a:hover { color: var(--text); border-color: var(--cyan); text-decoration: none; }

/* Grids -------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.split-wide { grid-template-columns: 0.85fr 1.15fr; }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }

/* Cards: flat, hairline, minimal radius */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}
.card p { color: var(--text-2); }
.card h3 { margin-bottom: 10px; }
.icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  border: 1px solid rgba(56, 213, 255, 0.28);
  color: var(--cyan);
  margin-bottom: 20px;
}
.icon svg { width: 22px; height: 22px; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(56, 213, 255, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 14px;
}
.tag-spark { color: var(--spark); border-color: rgba(255, 138, 42, 0.45); }

/* Square-bullet list used throughout */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 12px; color: var(--text-2); }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.62em; border-radius: 1px; background: var(--grad); }
.ticks-2 { grid-template-columns: 1fr 1fr; column-gap: 28px; }
@media (max-width: 560px) { .ticks-2 { grid-template-columns: 1fr; } }

/* Home: two business pillars ---------------------------------------------- */
.pillars { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 20px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.pillar::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--line-strong); }
.pillar-primary { background: linear-gradient(180deg, rgba(61, 111, 245, 0.10), var(--surface) 60%); border-color: var(--line-strong); }
.pillar-primary::before { background: var(--grad); }
.pillar .label {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 18px;
}
.pillar-primary .label { color: var(--cyan); }
.pillar h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 14px; }
.pillar p { color: var(--text-2); font-size: 1.04rem; }
.pillar .ticks { margin: 22px 0 30px; }
.pillar .link-line { margin-top: auto; align-self: flex-start; }

/* Home: featured concept-to-product panel --------------------------------- */
.feature {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 138, 42, 0.35);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 138, 42, 0.08), transparent 55%),
    var(--surface);
  margin-bottom: 20px;
}
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.feature .q { color: var(--text); font-size: 1.12rem; font-weight: 500; margin-bottom: 12px; }
.feature p { color: var(--text-2); }
.feature .hero-ctas { margin-top: 28px; }
.feature-side { border-left: 1px solid var(--line); padding-left: clamp(0px, 4vw, 48px); }
@media (max-width: 900px) { .feature-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; } }
.side-label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; font-weight: 500; }
.fineprint { color: var(--text-3); font-size: 0.86rem; margin-top: 22px; line-height: 1.55; }

/* Service cards (home) */
.svc { display: flex; flex-direction: column; }
.svc .num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); margin-bottom: 20px; letter-spacing: 0.08em; }
.svc h3 { font-size: 1.25rem; }
.svc p { margin-bottom: 22px; }
.svc .link-line { margin-top: auto; align-self: flex-start; }

/* Process ------------------------------------------------------------------ */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; }
.process li { position: relative; padding: 28px 22px 4px 0; border-top: 1px solid var(--line-strong); }
.process li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 14px;
}
.process li::after { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--grad); }
.process h3 { font-size: 1.06rem; margin-bottom: 8px; }
.process p { color: var(--text-2); font-size: 0.95rem; }
.process-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); }
.process-6 li { padding-bottom: 28px; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } .process li { padding-bottom: 24px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.process-note { color: var(--text-3); font-size: 0.9rem; margin-top: 28px; }

/* Mission statement -------------------------------------------------------- */
.statement { max-width: 980px; }
.mission-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; } .mission-grid .figure-bare { max-width: 300px; } }
.statement blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: pretty;
}
.statement blockquote em { font-style: normal; color: var(--cyan); }
.statement p { color: var(--text-2); font-size: 1.08rem; max-width: 760px; margin-top: 26px; }
.statement .link-line { margin-top: 14px; }
.statement .lead-statement { color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; letter-spacing: -0.015em; margin-top: 0; }

/* Band: a contained highlight panel */
.band {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(61, 111, 245, 0.16), transparent 55%),
    var(--bg-2);
}
.band h2 { margin-bottom: 0; }

/* Definition list (company details) */
.details { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 8px 0 0; }
.details dt, .details dd { padding: 11px 0; border-top: 1px solid var(--line); margin: 0; }
.details dt { color: var(--text-3); font-size: 0.88rem; padding-right: 24px; }
.details dd { color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .details { grid-template-columns: 1fr; }
  .details dd { border-top: 0; padding-top: 0; }
}

.after-grid { margin-top: 28px; }
.h3 { font-size: 1.04rem; letter-spacing: -0.01em; }

/* Facts strip -------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facts > div { padding: 22px 24px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.facts .v { font-weight: 600; }
.facts .d { color: var(--text-3); font-size: 0.88rem; margin-top: 4px; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(2n) { border-right: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts > div:last-child { border-bottom: 0; }
}

/* Values / ruled feature list ---------------------------------------------- */
.ruled { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); list-style: none; padding: 0; margin: 0; }
.ruled li { border-top: 1px solid var(--line-strong); padding: 24px 0 30px; }
.ruled h3 { font-size: 1.1rem; margin-bottom: 8px; }
.ruled p { color: var(--text-2); font-size: 0.97rem; }
.ruled-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .ruled { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ruled, .ruled-2 { grid-template-columns: 1fr; } }

/* Services page: service blocks -------------------------------------------- */
.service {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px);
  padding: clamp(56px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; padding-top: clamp(40px, 5vw, 64px); }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; } }
.service .num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan); letter-spacing: 0.1em; margin-bottom: 14px; }
.service h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.service .intro { font-size: 1.1rem; color: var(--text); }
.service p { color: var(--text-2); }
.service h3 { font-size: 0.98rem; font-family: var(--font); font-weight: 600; letter-spacing: 0; margin: 26px 0 10px; color: var(--text); }
.service-aside { display: grid; gap: 16px; align-content: start; }
.spec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px 24px; }
.spec .side-label { margin-bottom: 12px; }
.spec .ticks li { font-size: 0.96rem; }

/* Price rows inside a spec panel */
.prices { list-style: none; padding: 0; margin: 0; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-strong); }
.prices li:first-child { padding-top: 0; }
.prices li:last-child { border-bottom: 0; padding-bottom: 0; }
.prices .n { color: var(--text); font-weight: 500; }
.prices .n small { display: block; color: var(--text-3); font-weight: 400; font-size: 0.84rem; }
.prices .p { font-family: var(--font-mono); color: var(--text); white-space: nowrap; font-size: 0.95rem; }
.prices .p small { color: var(--text-3); font-size: 0.78rem; }
.spec .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Engagement pricing cards */
.offer { display: flex; flex-direction: column; }
.offer .price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 4px; }
.offer .price small { font-family: var(--font); font-size: 0.85rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.offer .meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-3); margin-bottom: 18px; letter-spacing: 0.04em; }
.offer .ticks { margin-bottom: 24px; }
.offer .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }

/* Additional capabilities table */
.cap-table { width: 100%; border-collapse: collapse; }
.cap-table th, .cap-table td { text-align: left; padding: 18px 16px 18px 0; border-top: 1px solid var(--line); vertical-align: top; }
.cap-table th { font-weight: 600; width: 26%; }
.cap-table td { color: var(--text-2); }
.cap-table td.p { font-family: var(--font-mono); color: var(--text); white-space: nowrap; width: 1%; padding-right: 20px; }
.cap-table td.a { width: 1%; padding-right: 0; }
@media (max-width: 760px) {
  .cap-table, .cap-table tbody, .cap-table tr, .cap-table th, .cap-table td { display: block; width: auto; }
  .cap-table tr { border-top: 1px solid var(--line); padding: 18px 0; }
  .cap-table th, .cap-table td { border: 0; padding: 0 0 6px; }
  .cap-table td.a { padding-top: 8px; }
}

/* Technology page: tool roles ---------------------------------------------- */
.tool { display: grid; grid-template-columns: 180px 1fr 1fr; gap: clamp(20px, 4vw, 48px); padding: 34px 0; border-top: 1px solid var(--line); }
.tool:last-child { border-bottom: 1px solid var(--line); }
.tool .abbr { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.tool .abbr span { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-top: 10px; }
.tool h3 { font-size: 1.08rem; }
.tool p { color: var(--text-2); }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; gap: 12px; } }

/* AI pipeline / side-by-side (kept from v1) */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pipeline li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.pipeline .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); }
.pipeline .t strong { display: block; font-size: 0.98rem; }
.pipeline .t span { color: var(--text-3); font-size: 0.86rem; }
.pipeline .who { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.who-ai { color: var(--cyan); border: 1px solid rgba(56, 213, 255, 0.35); }
.who-human { color: var(--spark); border: 1px solid rgba(255, 138, 42, 0.45); }

/* Formats strip */
.formats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.formats li {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-2);
}

/* Callouts ----------------------------------------------------------------- */
.note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.95rem;
}
.note strong { color: var(--text); }
.note-warn { border-left-color: var(--spark); }

/* FAQ ---------------------------------------------------------------------- */
.faq { display: grid; gap: 0; max-width: 880px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.04rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 22px; margin: 0; max-width: 760px; }

/* CTA band ----------------------------------------------------------------- */
.cta {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: end;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 64px);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(61, 111, 245, 0.16), transparent 55%),
    var(--bg-2);
}
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--text-2); font-size: 1.08rem; max-width: 620px; }
.cta .hero-ctas { flex-direction: column; align-items: stretch; justify-self: end; min-width: 240px; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta .hero-ctas { justify-self: start; min-width: 0; flex-direction: row; } }

/* Forms -------------------------------------------------------------------- */
.form-shell { display: grid; grid-template-columns: 1.45fr 0.55fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; } }
.form-card { padding: clamp(22px, 4vw, 38px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-section { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 22px; }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.field label, .field .label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; }
.field .opt { color: var(--text-3); font-weight: 400; }
.field .hint { color: var(--text-3); font-size: 0.84rem; margin-top: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 160px; resize: vertical; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2338d5ff' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
select option, select optgroup { background: var(--surface); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 213, 255, 0.16); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
[aria-invalid="true"] { border-color: #ff7a7a !important; }

.dropzone {
  position: relative;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag, .dropzone:focus-within { border-color: var(--cyan); background: rgba(56, 213, 255, 0.04); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone svg { width: 28px; height: 28px; color: var(--cyan); margin: 0 auto 10px; }
.dropzone strong { display: block; }
.dropzone span { color: var(--text-3); font-size: 0.86rem; }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2); padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.file-list li.bad { color: #ff9c9c; border-color: rgba(255, 120, 120, 0.4); }

.field label.checkbox { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 0.95rem; font-weight: 400; margin: 0; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cyan); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.project-only[hidden] { display: none !important; }

.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(61, 220, 151, 0.08); border: 1px solid rgba(61, 220, 151, 0.4); color: #c4f6df; }
.form-status.err { background: rgba(255, 110, 110, 0.08); border: 1px solid rgba(255, 110, 110, 0.4); color: #ffd6d6; }

.side-card .h3 { margin-bottom: 12px; }
.side-card + .side-card { margin-top: 16px; }
.side-card ol { padding-left: 1.2em; color: var(--text-2); margin: 0; display: grid; gap: 8px; }
.side-card p { font-size: 0.95rem; }

/* Prose (legal pages) ------------------------------------------------------ */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Footer ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 36px; margin-top: 24px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--text); }
.footer-brand img { height: 28px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--text-3); font-size: 0.92rem; max-width: 340px; }
.footer-brand .tagline { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.85rem; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--text); }

/* Reveal-on-scroll (only when JS is running) ------------------------------ */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Print: legal pages and service info print cleanly */
@media print {
  body { background: #fff; color: #000; }
  body::before, .site-header, .site-footer, .cta, .hero-ctas { display: none; }
  a { color: #000; }
}
.mission-fig img { width: 118%; max-width: none; margin-left: -9%; }
@media (max-width: 900px) { .mission-fig img { width: 100%; margin-left: 0; } }

/* Four-step collaboration row (Technology) */
.process-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 36px); }
@media (max-width: 1000px) { .process-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process-4 { grid-template-columns: 1fr; } }

/* Compact file-format row */
.formats-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.formats-row .eyebrow { margin-bottom: 10px; }
@media (max-width: 760px) { .formats-row { grid-template-columns: 1fr; } }
