/* AiNKYR — public marketing site
   Mobile-first. No framework. Space Grotesk (headings) + IBM Plex Mono
   (nav, eyebrows, small technical labels). Cool neutral monochrome
   throughout; warm champagne appears nowhere except the hero globe.

   Direction: a premium technology/advisory two-column hero (content left,
   an animated champagne globe right, AiNKYR's own symbol anchored at its
   core) — restrained, dimensional, no literal instrumentation. */

:root {
  --bg: #09090b;
  --bg-alt: #0f0f11;
  --bg-raised: #151517;
  --ink: #f2f2f1;
  --ink-dim: #9a9a9c;
  --ink-faint: #6c6c6e;
  --line: rgba(242, 242, 241, 0.1);
  --line-strong: rgba(242, 242, 241, 0.22);
  /* warm champagne — reserved exclusively for the hero globe (grid, energy,
     core symbol). Everything else in the interface stays cool monochrome:
     white/gray ink, no champagne in nav, buttons, dividers, or text
     anywhere else. */
  --champagne: #c7b892;
  --champagne-strong: #ddd0ab;
  --champagne-dim: rgba(199, 184, 146, 0.45);
  --champagne-ink: #1a160f;
  --radius: 2px;
  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --wrap: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.14; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; color: var(--ink-dim); }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 680px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 2px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim); margin: 0 0 20px; font-weight: 500;
}
.eyebrow::before { content: ""; display: block; width: 26px; height: 1px; background: var(--line-strong); }

/* ---------- buttons ----------
   Outlined only — thin border, transparent/near-black interior, white
   text. Never a solid fill outside a deliberate hover state. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: var(--radius); border: 1px solid var(--ink); cursor: pointer;
  background: transparent; color: var(--ink);
  padding: 14px 24px; font-size: 14px; line-height: 1; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 12px 18px; font-size: 12.5px; }
.btn-lg { padding: 17px 30px; font-size: 15px; }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
.btn-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.88);
  border-bottom-color: var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand-mark { height: 52px; width: auto; }
.site-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; padding: 0; border-radius: var(--radius);
  background: transparent; border: 1px solid var(--line); cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); margin-inline: auto; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 10px 24px 18px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) {
  padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 500;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; margin-top: 10px; text-align: center; }

/* ---------- hero ---------- */
.hero { padding-block: 20px 0; overflow: hidden; }
.hero-panel {
  border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 40px 20px; margin-inline: 12px;
}
.hero-inner { display: flex; flex-direction: column; }

.hero h1 {
  font-size: clamp(32px, 6.6vw, 58px); letter-spacing: -0.02em; line-height: 1.08;
  max-width: 16ch;
}
.hero .lede {
  font-size: 16px; max-width: 46ch; margin-top: 22px; color: var(--ink-dim);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }

/* ---------- hero visual: the champagne globe ----------
   The approved reference-match concept (see
   prototypes/globe-reference-match-checkpoint-v1.html): a point-cloud
   sphere with a light grid, wrapped in partial, irregular energy ribbons
   that flow via continuous noise. Recolored champagne here; the
   geometry/composition/density/draw logic is otherwise unchanged from the
   approved reference — see script.js. The AiNKYR symbol sits motionless on
   top (.globe-core below) and is never touched by the canvas draw loop. */
.hero-visual { width: min(340px, 74vw); margin: 48px auto 0; }
.globe { position: relative; width: 100%; aspect-ratio: 1; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

.globe-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  height: 60%; width: auto; display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.globe-core-mark {
  height: 100%; width: auto; aspect-ratio: 1020 / 1541;
  -webkit-mask-image: url("/assets/ainkyr-symbol.png");
  mask-image: url("/assets/ainkyr-symbol.png");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-mode: luminance; mask-mode: luminance;
  background: var(--champagne);
  filter: drop-shadow(0 0 14px rgba(221,208,171,0.55));
}

/* ---------- generic sections ---------- */
section { padding-block: 56px; border-top: 1px solid var(--line); }
.hero { border-top: none; }
.approach { background: var(--bg-alt); }
.approach h2 { font-size: clamp(22px, 4vw, 30px); }
.approach p { font-size: 16px; max-width: 60ch; }

.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(22px, 4vw, 30px); }
.section-lede { font-size: 16px; }

/* ---------- solutions: ledger rows ---------- */
.ledger { border-top: 1px solid var(--line); }
.ledger-row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.ledger-row h3 { font-size: 19px; margin-bottom: 8px; }
.ledger-row p { font-size: 15px; max-width: 60ch; margin: 0; }

.section-cta { margin-top: 32px; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- how we work ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 24px; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); letter-spacing: 0.05em; }
.step h3 { font-size: 18px; margin: 6px 0 6px; }
.step p { font-size: 14.5px; }

/* ---------- why ---------- */
.why { background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.why-item h3 { font-size: 17px; margin-bottom: 6px; }
.why-item p { font-size: 14.5px; }

/* ---------- contact ---------- */
/* spam honeypot — off-screen, zero footprint; real visitors never see or
   reach it, so it has no visual presence in the approved form design */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.field-row { display: flex; flex-direction: column; gap: 6px; }
.field-row label { font-size: 13px; font-weight: 600; color: var(--ink-dim); }
.field-row input, .field-row textarea {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-family: var(--font-body); font-size: 15px;
  padding: 13px 14px; min-height: 46px;
}
.field-row textarea { min-height: 110px; resize: vertical; }
.field-row input:focus, .field-row textarea:focus { outline: 1.5px solid var(--ink); outline-offset: 1px; }
.contact-form .btn { margin-top: 4px; }
.form-note { font-size: 13.5px; color: var(--ink); min-height: 1.2em; }
.contact-alt { margin-top: 20px; font-size: 14.5px; }
.contact-alt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); }
.contact-alt a:hover { color: var(--ink); text-decoration-color: var(--line-strong); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; }
.footer-row { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-mark { height: 24px; width: auto; opacity: 0.65; }
.footer-row p { font-size: 13px; margin: 0; color: var(--ink-faint); }
.footer-row a { font-size: 13px; color: var(--ink-dim); text-decoration: none; }
.footer-row a:hover { color: var(--ink); }

/* ================= tablet + up ================= */
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-row { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ================= desktop ================= */
@media (min-width: 900px) {
  .site-nav { display: flex; align-items: center; gap: 34px; }
  .site-nav a {
    text-decoration: none; color: var(--ink-dim); font-size: 12.5px; font-weight: 500;
    font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  }
  .site-nav a:hover { color: var(--ink); }
  .nav-toggle, .mobile-nav { display: none; }
  .brand-mark { height: 64px; }

  .hero { padding-block: 80px; }
  .hero-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: center; gap: 64px;
  }
  .hero-visual { width: 100%; margin: 0; justify-self: center; }
  .lg-only { display: inline; }
  section { padding-block: 88px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 899px) {
  .lg-only { display: none; }
}
