/* ===========================================================================
   Evolute Systems — evolutesystems.com

   Palette and type follow brand/README.md. Two decisions worth stating:

   1. Light ground, not dark. The category default for an AI company is a
      near-black hero. The brand's own strongest idea is the Glass Box — a
      system you can see into — so the site is built on a technical white
      ground with engineering-drawing conventions rather than a black box
      with a glow.
   2. Hierarchy is capped at three levels (display / section+row title /
      body), per the brand's Maximum Hierarchy Rule. The mono face is a
      utility marker, not a fourth level.
   =========================================================================== */

:root {
  --navy:      #0F172A;   /* brand primary — ink and deepest layer          */
  --blue:      #1D4E89;   /* mark, middle layer                             */
  --cyan:      #06B6D4;   /* brand accent — see brand/README.md, value TBC  */
  --slate:     #475569;   /* body text                                      */
  --paper:     #F7F8FA;   /* cool ground — deliberately not warm cream      */
  --white:     #FFFFFF;
  --rule:      #DCE2EA;   /* hairlines, registration marks                  */
  --rule-ink:  #94A3B8;   /* schematic signal lines — strokes only, never
                             text: 2.8:1 on white, below the AA floor       */
  --annotation:#5F6E85;   /* mono annotation text — 5.2:1 white, 4.9:1 paper */

  --shell: 1160px;
  --step:  clamp(1.25rem, 3.2vw, 2.25rem);

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--step); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--navy); color: var(--white);
  padding: .75rem 1.25rem; text-decoration: none;
}
.skip:focus { left: 0; }

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

/* --- the mono marker: system status, codes, annotations ------------------ */
.mono, .marker {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--annotation);
}

/* ===========================  TOP BAR  ================================== */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .85rem var(--step);
  background: rgba(247, 248, 250, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 26px; height: auto; display: block; }
.brand-word {
  font-weight: 800; font-size: .95rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy);
}
.brand-word em { font-style: normal; font-weight: 400; color: var(--annotation); margin-left: .4em; }

.bar-nav { display: flex; align-items: center; gap: 1.6rem; }
.bar-nav a {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate); text-decoration: none;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.bar-nav a:hover { color: var(--navy); border-bottom-color: var(--cyan); }
.bar-cta { color: var(--navy) !important; }

@media (max-width: 640px) {
  .bar-nav { gap: 1rem; }
  .bar-nav a:first-child { display: none; }
}

/* =============================  HERO  =================================== */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.marker { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.4rem; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .18);
}

/* LEVEL 1 — display
   Two tones carry the argument rather than decorating it: the first sentence
   is the concession (muted), the second is the problem (full ink). No forced
   line breaks — they fragment badly the moment the column narrows. */
h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 15ch;
}
h1 .h1-a { color: var(--annotation); }  /* 4.9:1 on paper — the lighter grey
                                           read at only 2.5:1, under the 3:1
                                           floor for large text */
h1 .h1-b { color: var(--navy); }

.lede { margin: 0 0 1.1rem; max-width: 46ch; font-size: 1.02rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  background: var(--navy); color: var(--white);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--navy);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.btn-quiet { background: transparent; color: var(--navy); border-color: var(--rule); }
.btn-quiet:hover { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-lg { padding: 1rem 2rem; font-size: .85rem; }

/* ------------------  SIGNATURE: the mark, working  ---------------------- */
.schematic { margin: 0; }
.schematic svg { width: 100%; height: auto; display: block; }

.node rect { fill: var(--white); stroke: var(--rule); stroke-width: 1; }
.node text {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; fill: var(--slate);
}
.core-label, .out-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; fill: var(--annotation);
  text-anchor: middle;
}
.ly-1 { fill: var(--navy); }
.ly-2 { fill: var(--blue); }
.ly-3 { fill: var(--cyan); }

.schematic figcaption {
  margin-top: 1rem;
  font-size: .78rem;
  color: var(--annotation);
  border-top: 1px solid var(--rule);
  padding-top: .7rem;
}
.schematic figcaption .mono { color: var(--navy); margin-right: .5rem; }

/* signal travelling the feed lines into the core */
.feed path { stroke-dasharray: 3 7; animation: flow 2.4s linear infinite; }
.out { stroke-dasharray: 3 7; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }

@media (prefers-reduced-motion: reduce) {
  .feed path, .out { animation: none; stroke-dasharray: none; }
}

/* ============================  BANDS  =================================== */
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--rule); background: var(--white); }
.band-ink { background: var(--navy); border-top-color: var(--navy); }
.band-end { background: var(--paper); }

/* LEVEL 2 — section and row titles */
.sec-title {
  margin: 0 0 .6rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy);
}
.band-ink .sec-title { color: var(--white); }

.sec-lede { margin: 0 0 2.6rem; max-width: 52ch; }

/* -----------------------  capability datasheet  ------------------------- */
.sheet { border-top: 1px solid var(--rule); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: .4rem clamp(1.5rem, 4vw, 3.5rem);
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background .2s ease;
}
.row:hover { background: var(--paper); }
.row h3 {
  grid-row: span 2;
  margin: 0;
  font-size: 1rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy);
}
.row-out  { margin: 0; color: var(--slate); max-width: 60ch; }
.row-note { margin: 0; }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: .55rem; }
  .row h3 { grid-row: auto; }
}

/* ---------------------------  approach  --------------------------------- */
.approach {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin-top: 2.4rem;
}
.ap { border-top: 2px solid var(--cyan); padding-top: 1.1rem; }
.ap h3 {
  margin: 0 0 .7rem;
  font-size: .95rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--white);
}
.ap p { margin: 0; color: #B9C3D2; font-size: .95rem; }

/* ---------------------------  contact  ---------------------------------- */
.contact { text-align: center; }
.contact-lede { margin: 0 auto 2rem; max-width: 46ch; }
.contact-note { margin-top: 1.6rem; }

/* ----------------------------  footer  ---------------------------------- */
.foot { border-top: 1px solid var(--rule); padding: 1.6rem 0; background: var(--paper); }
.foot-in { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; }

/* ==========================  REVEAL  ==================================== */
.pre { opacity: 0; transform: translateY(14px); }
.in  { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
