/* ==========================================================================
   ALOFT — design tokens, v2
   Concept: an instrument panel at dusk. Warm paper text and amber/copper
   gauge-light accents against a deep night panel, reading cloud
   infrastructure as altitude bands (edge / services / bare metal).
   ========================================================================== */

:root {
  /* color */
  --night: #0B1A26;
  --panel: #10222F;
  --panel-line: #1B3140;
  --paper: #F4EFE4;
  --paper-dim: #C9CDC7;
  --mist: #93A6B2;
  --amber: #E7A24A;
  --copper: #C97B4A;
  --line: rgba(244, 239, 228, 0.12);

  /* type */
  --f-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --f-body: 'Work Sans', -apple-system, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;

  /* scale */
  --radius: 16px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* -------------------------------- eyebrow -------------------------------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(231, 162, 74, 0.16);
}

/* -------------------------------- headings -------------------------------- */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--paper);
}
h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1.05; font-weight: 480; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.2rem; font-weight: 560; }

p { margin: 0; color: var(--mist); }
.lede { font-size: 1.18rem; color: var(--paper-dim); max-width: 46ch; font-weight: 400; }

/* -------------------------------- nav -------------------------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 26, 38, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  font-family: var(--f-display);
  font-weight: 560;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--paper);
}
.brand .unit {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  color: var(--amber);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.navlinks {
  display: flex;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.navlinks a {
  text-decoration: none;
  color: var(--mist);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.navlinks a:hover, .navlinks a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--amber);
}

@media (max-width: 720px) {
  .navlinks { gap: 20px; font-size: 11.5px; }
  .wrap { padding: 0 20px; }
}

/* -------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--night);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(231,162,74,0.25); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--paper);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-arrow::after { content: "→"; font-family: var(--f-body); }

/* -------------------------------- sections -------------------------------- */
section { padding: 92px 0; }
section.tight { padding: 60px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

/* -------------------------------- cards -------------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 30px;
}

.readout {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--amber);
  letter-spacing: 0.08em;
}

/* -------------------------------- footer -------------------------------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 56px 0 44px;
  margin-top: 40px;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--mist);
}
.foot-grid a { text-decoration: none; color: var(--mist); }
.foot-grid a:hover { color: var(--amber); }

/* -------------------------------- utility -------------------------------- */
.stack { display: grid; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* -------------------------------- custom cursor -------------------------------- */
/* Only enabled by script.js when the device has a precise pointer and the
   visitor hasn't asked for reduced motion — keyboard/touch/reduced-motion
   users keep the normal system cursor. */
html.custom-cursor, html.custom-cursor a, html.custom-cursor button, html.custom-cursor input, html.custom-cursor textarea {
  cursor: none;
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width .2s ease, height .2s ease, margin .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.cursor-ring.cursor-hover {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(231, 162, 74, 0.12);
}
