/* ============================================================
   Ensis Innovations — company site
   Deep purple + warm paper + a sparing orange. Cinematic video
   where it earns its place; plain, specific copy everywhere else.
   Orange is an accent, never a highlighter — it's the tick in the
   mark, a link, a total. That restraint is the whole point.
   ============================================================ */

:root {
  --void: #16101f;
  --void-2: #1d1430;
  --purple: #482871;
  --purple-lift: #6b3fa0;
  --orange: #ff7f20;
  --orange-deep: #e5641a;

  --paper: #f6f2ea;
  --paper-2: #efe9dc;
  --ink: #1a1422;
  --ink-soft: #56505f;
  --ink-faint: #8a8294;

  --rule: rgba(26, 20, 34, 0.13);
  --rule-strong: rgba(26, 20, 34, 0.4);
  --rule-light: rgba(246, 242, 234, 0.14);

  --max: 1120px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--orange); color: var(--void); }
a { color: inherit; }
img { display: block; }

/* ---- shared type ---- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-size: clamp(2.5rem, 5.8vw, 4.4rem);
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
}

/* label — small mono marker with a brand square. No dash, used sparingly. */
.label, .locate {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
}
.sq {
  width: 7px; height: 7px;
  background: var(--orange);
  display: inline-block;
  margin-right: 0.75rem;
}
.label-light { color: rgba(246, 242, 234, 0.62); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.82rem 1.45rem;
  border: 1.5px solid currentColor;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: translateY(1px) !important; }
.btn-solid { background: var(--orange); color: var(--void); border-color: var(--orange); }
.btn-solid:hover { background: #ffcfa0; border-color: #ffcfa0; transform: translateY(-1px); }
.btn-ghost { color: var(--paper); border-color: rgba(246, 242, 234, 0.32); }
.btn-ghost:hover { background: var(--paper); color: var(--void); border-color: var(--paper); transform: translateY(-1px); }

/* ============================================================
   masthead
   ============================================================ */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(22, 16, 31, 0.8);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule-light);
}
.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand img { height: 21px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(246, 242, 234, 0.7); text-decoration: none;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--void) !important; background: var(--orange);
  padding: 0.5rem 0.95rem; text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-cta:hover { background: #ffcfa0; transform: translateY(-1px); }

/* ============================================================
   hero — cinematic, video-ready
   ============================================================ */
.hero {
  position: relative;
  background: var(--void);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: 0.55;
}
/* tint keeps the brand mood + text legibility over any footage */
.hero-tint {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(22, 16, 31, 0.62) 0%, rgba(22, 16, 31, 0.82) 60%, rgba(22, 16, 31, 0.95) 100%),
    radial-gradient(ellipse 70% 60% at 72% 22%, rgba(107, 63, 160, 0.42), transparent 70%);
}
/* interactive pixel-mosaic layer — orange cells light up near the cursor */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* faint pixel grid, echoing the wordmark's mosaic */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(139, 111, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 111, 184, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 40%, transparent 85%);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) 1.6rem clamp(4.5rem, 10vw, 7.5rem);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .locate { color: rgba(246, 242, 234, 0.66); }
.hero h1 { margin: 1.7rem 0 0; max-width: 17ch; }
.hero .lede {
  margin-top: 1.7rem; max-width: 46ch;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.55;
  color: rgba(246, 242, 234, 0.8);
}
.hero-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ============================================================
   sections
   ============================================================ */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4.5rem, 9vw, 7rem) 1.6rem; }
.section-head { max-width: 40rem; }
.section-head h2 { margin-top: 1.3rem; text-wrap: pretty; }
.milltrack-copy h2, .contact h2 { text-wrap: balance; }

.prose { margin-top: 2.4rem; max-width: 62ch; }
.prose p { margin-bottom: 1.2rem; color: var(--ink); font-size: 1.12rem; line-height: 1.66; }
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* how-we-work notes — quiet, editorial, not boxed cards */
.notes {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  border-top: 1px solid var(--rule);
  padding-top: 2.2rem;
}
.note .k {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--orange-deep);
  display: block;
  margin-bottom: 0.6rem;
}
.note p { color: var(--ink-soft); font-size: 0.98rem; }

/* ============================================================
   media band — full-width video moment
   ============================================================ */
.media {
  position: relative;
  overflow: hidden;
  background: var(--void-2);
  color: var(--paper);
  isolation: isolate;
}
.media-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.5;
}
.media::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 16, 31, 0.9) 0%, rgba(22, 16, 31, 0.55) 55%, rgba(22, 16, 31, 0.35) 100%),
    radial-gradient(ellipse 60% 90% at 15% 50%, rgba(72, 40, 113, 0.5), transparent 70%);
}
.media-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 8.5rem) 1.6rem;
}
.media-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 20ch;
}

/* ============================================================
   MillTrack
   ============================================================ */
.milltrack {
  background: var(--void);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.milltrack::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139, 111, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 111, 184, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 80% at 85% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 50%, #000 20%, transparent 75%);
}
.milltrack-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7rem) 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.milltrack-copy h2 { color: var(--paper); margin-top: 1.3rem; }
.milltrack-copy .mt { font-family: var(--font-display); color: var(--orange); }
.milltrack-copy p { margin-top: 1.3rem; color: rgba(246, 242, 234, 0.78); max-width: 42ch; }
.milltrack-copy .btn { margin-top: 2rem; }

/* worked settlement artifact */
.artifact {
  position: relative;
  background: #f7f4ea;
  color: #1a1a1a;
  border-radius: 2px;
  box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.55);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow: visible;
  transform: rotate(-0.9deg);
  padding-bottom: 0.8rem;
  clip-path: polygon(
    0% 0%, 100% 0%, 100% calc(100% - 8px),
    98% 100%, 96% calc(100% - 8px), 94% 100%, 92% calc(100% - 8px), 90% 100%, 88% calc(100% - 8px), 86% 100%, 84% calc(100% - 8px), 82% 100%, 80% calc(100% - 8px), 78% 100%, 76% calc(100% - 8px), 74% 100%, 72% calc(100% - 8px), 70% 100%, 68% calc(100% - 8px), 66% 100%, 64% calc(100% - 8px), 62% 100%, 60% calc(100% - 8px), 58% 100%, 56% calc(100% - 8px), 54% 100%, 52% calc(100% - 8px), 50% 100%, 48% calc(100% - 8px), 46% 100%, 44% calc(100% - 8px), 42% 100%, 40% calc(100% - 8px), 38% 100%, 36% calc(100% - 8px), 34% 100%, 32% calc(100% - 8px), 30% 100%, 28% calc(100% - 8px), 26% 100%, 24% calc(100% - 8px), 22% 100%, 20% calc(100% - 8px), 18% 100%, 16% calc(100% - 8px), 14% 100%, 12% calc(100% - 8px), 10% 100%, 8% calc(100% - 8px), 6% 100%, 4% calc(100% - 8px), 2% 100%, 0% calc(100% - 8px)
  );
}
.stamp {
  position: absolute;
  top: 46%;
  right: 8%;
  border: 3px double rgba(98, 54, 150, 0.6);
  color: rgba(98, 54, 150, 0.6);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  transform: rotate(-12deg);
  border-radius: 2px;
  user-select: none;
  pointer-events: none;
  z-index: 10;
}
.artifact-head {
  background: var(--void); color: var(--paper);
  display: flex; justify-content: space-between;
  padding: 0.7rem 1.1rem;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.artifact-head .dot { color: var(--orange); }
.artifact-body { padding: 0.6rem 1.1rem 1.1rem; }
.artifact-body table { width: 100%; border-collapse: collapse; }
.artifact-body td {
  padding: 0.34rem 0;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.15);
  font-variant-numeric: tabular-nums;
  transition: background 0.1s ease;
}
.artifact-body tr {
  cursor: help;
}
.artifact-body tr:hover td {
  background: rgba(107, 63, 160, 0.06);
}
.artifact-body td:last-child { text-align: right; white-space: nowrap; }
.artifact-body td i { font-style: normal; color: rgba(22, 16, 31, 0.55); font-size: 0.72rem; }
.artifact-body .strong td { border-top: 1px solid rgba(0, 0, 0, 0.25); font-weight: 600; }
.artifact-body .total td {
  border-top: 2px solid #1a1a1a;
  border-bottom: none;
  font-weight: 700; font-size: 0.95rem;
  padding-top: 0.5rem;
  color: #c95110;
}
.artifact-footer {
  background: rgba(22, 16, 31, 0.04);
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  padding: 0.6rem 1.1rem;
  font-size: 0.68rem;
  color: rgba(22, 16, 31, 0.6);
  text-align: center;
  font-family: var(--font-mono);
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   contact
   ============================================================ */
.contact { border-top: 1px solid var(--rule); }
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 6.5rem) 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: end;
}
.contact h2 { margin-top: 1.2rem; max-width: 22ch; }
.contact-sub { margin-top: 1rem; color: var(--ink-soft); }
.contact .email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  white-space: nowrap;
  transition: color 0.18s ease;
}
.contact .email:hover { color: var(--orange-deep); }

/* ============================================================
   footer
   ============================================================ */
.footer { background: var(--void); color: rgba(246, 242, 234, 0.68); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.6rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: start;
}
.footer img { height: 24px; margin-bottom: 1rem; }
.footer .blurb { max-width: 34ch; font-size: 0.92rem; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; text-align: right; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(246, 242, 234, 0.68); text-decoration: none;
}
.footer-links a:hover { color: var(--orange); }
.footer-meta {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule-light);
  margin-top: 1.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.03em;
  color: rgba(246, 242, 234, 0.5);
}

/* ============================================================
   legal / document pages
   ============================================================ */
.doc-hero { background: var(--void); color: var(--paper); }
.doc-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.6rem 2.5rem;
}
.doc-hero h1 { margin-top: 1.2rem; max-width: 18ch; }
.doc-hero .updated {
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 0.04em;
  color: rgba(246, 242, 234, 0.6);
}
.doc { max-width: 44rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) 1.6rem 5rem; }
.doc .lead { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 2.5rem; }
.doc h2 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em;
  margin: 2.6rem 0 0.9rem; padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  display: flex; gap: 0.8rem; align-items: baseline;
}
.doc h2 .n { font-family: var(--font-mono); font-size: 0.85rem; color: var(--orange-deep); font-weight: 500; }
.doc h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.doc p { margin-bottom: 1rem; }
.doc ul { margin: 0 0 1rem 1.2rem; }
.doc li { margin-bottom: 0.5rem; }
.doc a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 2px; }
.doc .back {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
  display: inline-flex; gap: 0.5rem;
}
.doc .back:hover { color: var(--orange-deep); }

/* ============================================================
   motion / responsive
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner { animation: none; }
  .hero-media, .media-media { display: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .notes { grid-template-columns: 1fr; gap: 2rem; }
  .milltrack-inner { grid-template-columns: 1fr; }
  .artifact { max-width: 24rem; order: 2; }
  .contact-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
}

/* ============================================================
   MillTrack product page (/milltrack)
   ============================================================ */
.mt-logo { margin: 0.6rem 0 1.5rem; }
.mt-logo svg { height: 44px; width: auto; display: block; }

/* steps — one truck, gate to settlement */
.steps {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem 1.6rem;
  border-top: none;
  padding-top: 1rem;
}
.step {
  position: relative;
  padding-top: 1.8rem;
  transition: transform 0.25s ease;
}
.step:hover {
  transform: translateY(-4px);
}
.step-node {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--rule);
  transition: background 0.25s ease;
}
.step-node::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  background: var(--ink-faint);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover .step-node {
  background: var(--orange-deep);
}
.step:hover .step-node::before {
  background: var(--orange);
  transform: translateY(-50%) scale(1.3);
  box-shadow: 0 0 8px var(--orange);
}
.step .step-no {
  font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 0.02em;
  color: var(--orange-deep);
  display: block; margin-bottom: 0.75rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.step h3 i { font-style: normal; color: var(--ink-faint); font-weight: 400; }
.step p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.5; }

/* pillars — why MillTrack */
.pillars-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.6rem 3rem;
}
.pillar-item .pillar-no {
  font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--orange-deep);
  display: block; margin-bottom: 0.8rem;
}
.pillar-item h3 { margin-bottom: 0.7rem; }
.pillar-item p { color: var(--ink-soft); }

/* split — one delivery, two views */
.split-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.screen {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.7rem 1.6rem;
  background: var(--paper-2);
}
.screen-owner { background: var(--void); color: var(--paper); border-color: var(--void); }
.screen h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.2rem; font-weight: 500;
}
.screen-owner h3 { color: rgba(246, 242, 234, 0.55); }
.screen-rows { list-style: none; }
.screen-rows li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px dotted var(--rule);
  font-family: var(--font-mono); font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.screen-owner .screen-rows li { border-color: var(--rule-light); }
.screen-rows li:last-child { border-bottom: none; }
.screen-rows li.money span:last-child { color: var(--orange); }
.screen-note { margin-top: 1.1rem; font-size: 0.88rem; color: var(--ink-soft); }
.screen-owner .screen-note { color: rgba(246, 242, 234, 0.7); }

/* tally band sub-line */
.media-sub {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem; letter-spacing: 0.02em;
  color: rgba(246, 242, 234, 0.6);
}

/* demo CTA */
.mt-cta { background: var(--void); color: var(--paper); text-align: center; }
.mt-cta-inner { max-width: 46rem; margin: 0 auto; padding: clamp(4.5rem, 9vw, 7rem) 1.6rem; }
.mt-cta h2 { color: var(--paper); }
.mt-cta p { margin: 1.3rem auto 2rem; color: rgba(246, 242, 234, 0.78); max-width: 42ch; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .pillars-grid, .split-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   capabilities
   ============================================================ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem 1.8rem;
  margin-top: 3.5rem;
}
.capability-card {
  background: var(--paper-offset);
  border: 1px solid var(--rule-light);
  border-radius: 4px;
  padding: 2.2rem 1.8rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.capability-card:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 63, 160, 0.25);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.05);
}
.capability-card .cap-no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--orange-deep);
  display: block;
  margin-bottom: 0.9rem;
}
.capability-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.capability-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ============================================================
   case studies highlight (homepage) & index
   ============================================================ */
.cases-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
  margin-top: 3.5rem;
}
.case-highlight-card {
  background: var(--paper-offset);
  border: 1px solid var(--rule-light);
  border-radius: 4px;
  padding: 2.5rem 2.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.case-highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.08);
}
.case-highlight-card .case-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.8rem;
}
.case-highlight-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
  color: var(--void);
}
.case-highlight-card .case-summary {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.case-metric {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.8rem;
  margin-top: auto;
}
.case-metric .metric-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange-deep);
  line-height: 1.1;
}
.case-metric .metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
  text-transform: uppercase;
}
.cases-highlight-footer {
  margin-top: 3.5rem;
  text-align: center;
}

/* ============================================================
   case studies detail layouts
   ============================================================ */
.case-detail-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 3.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.6rem 5rem;
}
.case-detail-content .case-section {
  margin-bottom: 2.5rem;
}
.case-detail-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--void);
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 0.4rem;
}
.case-detail-content p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}
.case-detail-sidebar .sidebar-card {
  background: var(--paper-offset);
  border: 1px solid var(--rule-light);
  border-radius: 4px;
  padding: 2.2rem 1.8rem;
  position: sticky;
  top: 6rem;
}
.sidebar-card h4 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 0.5rem;
}
.sidebar-card .sidebar-metric {
  margin-bottom: 1.6rem;
}
.sidebar-card .sidebar-metric .metric-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange-deep);
  line-height: 1.1;
}
.sidebar-card .sidebar-metric .metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.sidebar-info {
  margin-top: 2rem;
  border-top: 1px dashed var(--rule-light);
  padding-top: 1.2rem;
}
.sidebar-info p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.sidebar-info strong {
  color: var(--void);
}
.back {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange-deep);
  text-decoration: none;
  font-weight: 500;
}
.back:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .capabilities-grid { grid-template-columns: 1fr; }
  .cases-highlight-grid { grid-template-columns: 1fr; }
  .case-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .case-detail-sidebar .sidebar-card { position: static; }
}

