/* =========================================================
   E-COAST — blueprint / schematic design system
   ========================================================= */
:root {
  --paper:  #FFFFFF;
  --paper2: #E3ECE3;
  --ink:    #1E2E24;
  --ink-2:  #3F4A49;
  --line:   #1E2E24;
  --blue:   #186F37;
  --cyan:   #3D5C8C;
  --amber:  #4E7133;
  --white:  #FFFFFF;

  --display: "Space Grotesk", "Arial Black", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(18px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    linear-gradient(var(--paper2) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, var(--paper2) 1px, transparent 1px) 0 0 / 28px 100%,
    var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: var(--mono); letter-spacing: .01em; }
em { font-style: normal; color: var(--blue); border-bottom: 3px solid var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* corner crosshairs, like a drafting sheet */
.crosshair { position: fixed; width: 26px; height: 26px; z-index: 60; pointer-events: none; opacity: .55; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--ink); }
.crosshair::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.crosshair::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.crosshair.tl { top: 14px; left: 14px; }
.crosshair.tr { top: 14px; right: 14px; }
@media (max-width: 640px) { .crosshair { display: none; } }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 2; }
.brand-mark circle { fill: var(--amber); stroke: none; }
.brand-text { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand-text.small { font-size: 22px; color: var(--white); }

.nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 28px); font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.nav a { text-decoration: none; position: relative; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }
.nav-cta { background: var(--ink); color: var(--paper); padding: 8px 16px; }
.nav-cta:hover { background: var(--amber); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--mono); font-size: 14px; font-weight: 500;
  padding: 14px 22px; border: 2px solid var(--ink);
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--amber); color: var(--ink); box-shadow: 4px 4px 0 var(--amber); }
.btn-line { background: transparent; }
.btn.big { font-size: 16px; padding: 18px 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(28px, 5vw, 60px) var(--gutter) 0;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center;
}
.hero-tag { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 11.5px; opacity: .75; padding-bottom: 16px; }
.hero-title { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; font-weight: 700; letter-spacing: -.01em; }
.ht-line { display: block; }
.ht-accent { color: var(--blue); }
.hero-lede { max-width: 46ch; margin-top: 22px; font-size: 18px; color: var(--ink-2); }
.hero-actions { margin-top: 30px; }

.hero-schema { align-self: stretch; display: flex; align-items: center; }
.schema-svg { width: 100%; height: auto; }
.dim line { stroke: var(--ink); stroke-width: 1; opacity: .55; }
.dim text { font-size: 11px; fill: var(--ink); opacity: .65; }
.trace { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s ease-out forwards .2s; }
.node { fill: var(--paper); stroke: var(--blue); stroke-width: 2.5; opacity: 0; animation: pop .4s ease-out forwards; }
.node.n1 { animation-delay: .3s; } .node.n2 { animation-delay: .7s; } .node.n3 { animation-delay: 1.1s; }
.node.n4 { animation-delay: 1.4s; } .node.n5 { animation-delay: 1.7s; } .node.n6 { animation-delay: 2.0s; } .node.n7 { animation-delay: 2.3s; }
.lbl { font-size: 12px; fill: var(--ink); font-weight: 600; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(56px, 8vw, 100px) var(--gutter); border-top: 2px solid var(--ink); }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.tag { display: inline-block; font-size: 11.5px; padding: 4px 10px; border: 1.5px solid var(--ink); margin-bottom: 18px; }
.h2 { font-size: clamp(32px, 5vw, 54px); line-height: 1.06; font-weight: 700; letter-spacing: -.01em; }
.sec-lede { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 56ch; }

/* ---------- Decode grid ---------- */
.decode-grid {
  list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink);
}
.decode-grid li { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 22px 16px; min-height: 200px; position: relative; }
.decode-grid b { display: block; font-size: 44px; font-weight: 700; color: var(--blue); line-height: 1; }
.decode-grid span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; opacity: .7; }
.decode-grid p { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.decode-grid li:nth-child(3) { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(10,37,64,.06) 8px 9px); }

/* ---------- Stat band ---------- */
.statband { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); color: var(--paper); }
.stat { padding: 44px var(--gutter); border-right: 1px solid rgba(238,242,246,.2); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-size: clamp(42px, 5vw, 64px); font-weight: 600; color: var(--amber); line-height: 1; }
.stat-num small { font-size: .45em; color: var(--paper); margin-left: 2px; }
.stat p { margin-top: 12px; max-width: 30ch; opacity: .9; font-size: 14.5px; }

/* ---------- Programs / parts ---------- */
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.part { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 28px 26px; background: var(--paper); transition: background .2s; }
.part:hover { background: var(--white); }
.part-head { display: flex; justify-content: space-between; font-size: 11.5px; opacity: .7; margin-bottom: 14px; }
.part h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.part p { font-size: 14.5px; color: var(--ink-2); min-height: 66px; }
.spec { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; font-size: 11px; }
.spec li { border: 1px solid var(--ink); padding: 3px 8px; opacity: .8; }

/* ---------- Blueprint / campuses (cyanotype) ---------- */
.blueprint {
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(160deg, #204E33 0%, #1A3D29 60%, #0F241A 100%);
  color: var(--paper);
  padding: clamp(56px, 8vw, 100px) var(--gutter);
  border-top: 2px solid var(--ink);
}
.bp-head .h2 { color: var(--paper); }
.bp-head em { color: var(--cyan); border-bottom-color: var(--cyan); }
.bp-head .tag { border-color: var(--cyan); color: var(--cyan); }
.bp-head .sec-lede { color: color-mix(in srgb, var(--paper) 80%, transparent); }

.sites { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.site {
  border: 1.5px dashed rgba(238,242,246,.5); padding: 28px; position: relative; overflow: hidden;
}
.site-head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--cyan); margin-bottom: 16px; }
.site h3 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.addr { opacity: .9; max-width: 34ch; }
.phone { margin-top: 10px; color: var(--cyan); font-size: 14px; }
.pin { position: absolute; right: 20px; bottom: 20px; width: 56px; height: 56px; fill: none; stroke: rgba(238,242,246,.35); stroke-width: 2; }
.pin .fill { fill: var(--amber); stroke: none; }

/* ---------- Enroll / CTA ---------- */
.enroll { background: var(--amber); color: var(--ink); border-top: 2px solid var(--ink); }
.enroll-inner { padding: clamp(56px, 8vw, 110px) var(--gutter); max-width: 900px; }
.enroll .tag { border-color: var(--ink); }
.enroll em { color: var(--white); border-bottom-color: var(--ink); }
.enroll p { max-width: 50ch; margin-top: 18px; font-size: 18px; }
.enroll .hero-actions { margin-top: 34px; }
.enroll .btn-solid:hover { background: var(--ink); color: var(--amber); box-shadow: 4px 4px 0 var(--ink); }
.enroll .btn-line { border-color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 32px var(--gutter); }
.footer-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.footer-top p { font-size: 13px; opacity: .8; }
.fine { margin-top: 14px; font-size: 11.5px; opacity: .6; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .decode-grid { grid-template-columns: repeat(3, 1fr); }
  .parts { grid-template-columns: repeat(2, 1fr); }
  .sites { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
  .decode-grid { grid-template-columns: repeat(2, 1fr); }
  .decode-grid li { min-height: 160px; }
  .parts { grid-template-columns: 1fr; }
  .statband { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(238,242,246,.2); }
  .stat:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace, .node { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .btn { transition: none; }
}
