/* ENM brand foundation, shared by all three design options.
   Palette and lettering follow the live site (the MA framework poster):
   blueprint paper #2B3D65, white ink, aqua accent #A2DBE1, and tints and transparencies of these only. */
:root {
  --paper: #2B3D65;
  --paper-deep: #1F2E50;      /* darker tint of the paper */
  --paper-night: #18233D;     /* darkest tint of the paper, used for depth */
  --ink: #FFFFFF;
  --ink-soft: rgba(255,255,255,0.78);
  --ink-faint: rgba(255,255,255,0.35);
  --aqua: #A2DBE1;
  --grid-fine: rgba(255,255,255,0.07);
  --grid-bold: rgba(255,255,255,0.15);
  --mono: 'Share Tech Mono', 'Courier New', monospace;
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.paper-grid {
  background-image:
    linear-gradient(var(--grid-bold) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px),
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Eyebrows and labels */
.eyebrow { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--aqua); }
.annot { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

/* Double frame from the poster */
.frame2 { border: 1.5px solid rgba(255,255,255,0.75); outline: 1px solid rgba(255,255,255,0.28); outline-offset: -8px; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; padding: 12px 18px; border: 1px solid var(--ink); color: var(--paper); background: var(--ink);
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--aqua); border-color: var(--aqua); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: rgba(162,219,225,0.15); }

/* 2D / 3D switch, as on the live site */
.view-switch { display: flex; border: 1px solid rgba(255,255,255,0.7); background: rgba(31,46,80,0.85); }
.view-switch a, .view-switch span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 9px 14px; color: var(--ink); text-decoration: none; }
.view-switch span[aria-current] { background: var(--ink); color: var(--paper); }
.view-switch a:hover, .view-switch a:focus-visible { background: rgba(162,219,225,0.25); }

/* Label for the prototype itself */
.proto-tag { position: fixed; left: 12px; bottom: 12px; z-index: 90; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper); background: var(--aqua); padding: 4px 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Shared layout pieces ── */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px 28px; background: rgba(24,35,61,0.78); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255,255,255,0.18); }
.brand { display: flex; align-items: flex-start; gap: 4px; text-decoration: none; }
.brand img { height: 13px; width: auto; margin-top: 4px; }
.brand .tm { font-size: 9px; color: var(--aqua); }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); border-color: var(--aqua); }
h1, h2, h3 { font-weight: normal; letter-spacing: .03em; }
.routes { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.route { background: var(--paper-deep); border: 1px solid rgba(255,255,255,.5); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.route p:not(.eyebrow) { font-size: 14px; line-height: 1.6; flex: 1; color: var(--ink-soft); }
.route .btn { align-self: flex-start; font-size: 11px; padding: 10px 12px; }
.contact { max-width: 760px; margin: 120px auto; padding: 40px; background: var(--paper-deep); border: 1px solid rgba(255,255,255,.5); }
.contact h2 { font-size: 30px; margin: 8px 0 12px; }
.site-foot { background: var(--paper-night); border-top: 1px solid rgba(255,255,255,.25); padding: 48px 28px 70px; display: grid; gap: 14px; max-width: 100%; }
.site-foot p { max-width: 900px; margin: 0 auto; width: 100%; font-size: 14px; color: var(--ink-soft); }
.node .q { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin-top: 10px; }
.node h3 { font-size: 20px; line-height: 1.35; margin-top: 6px; }

/* First screens of the case study and glossary */
.first-screen { min-height: 100vh; padding: 120px 6vw 60px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 6vw; align-items: center; position: relative; }
.first-screen h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.05; margin: 14px 0 18px; }
.first-screen .lede { font-size: 20px; color: var(--aqua); max-width: 34ch; margin-bottom: 26px; }
.specs { display: grid; gap: 12px; margin-bottom: 22px; max-width: 60ch; }
.specs dd { font-size: 15px; color: var(--ink-soft); }
.fs-text { background: var(--paper); padding: 28px; border: 1px solid rgba(255,255,255,.35); }
.fs-figure { background: var(--paper-deep); padding: 16px; justify-self: center; max-width: 380px; }
.fs-figure img { width: 100%; height: auto; display: block; }
.fs-figure figcaption { margin-top: 10px; }
.terms { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 24px; }
.terms a { display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border: 1px solid rgba(255,255,255,.45); text-decoration: none; }
.terms a:hover, .terms a:focus-visible { background: rgba(162,219,225,.18); }
.term h2 { font-size: 26px; margin-bottom: 6px; }
.gl { grid-template-columns: 1fr; max-width: 1100px; margin: 0 auto; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .site-head { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 16px; overflow-x: auto; }
  .view-switch { margin-left: auto; }
  .view-switch a, .view-switch span { padding: 7px 10px; font-size: 11px; }
  .routes { grid-template-columns: 1fr; }
  .first-screen { grid-template-columns: 1fr; padding: 130px 16px 40px; gap: 28px; }
  .fs-text { padding: 20px; }
  .contact { margin: 70px 16px; padding: 24px; }
  .site-foot { padding: 36px 16px 60px; }
}

/* Compact route bar: the four routes, visible on the first screen */
.route-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.route-bar .btn { font-size: 11px; padding: 9px 12px; }
