/* ATLAS — iwantatlas.com
   Brand: G2K Labs system — navy ink, indigo accent, cool neutrals, monoline marks. */

:root {
  --ink: #14264A;
  --body: #3D4A61;
  --muted-text: #5F6B80;
  --accent: #5B5BD6;
  --accent-deep: #4747B8;
  --paper: #FFFFFF;
  --wash: #F4F6F9;
  --line: #E2E6EE;
  --radius: 10px;
  --display: "Avenir Next", "Segoe UI", "Helvetica Neue", -apple-system, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  font-family: var(--text);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand svg { width: 40px; height: 40px; flex: none; }
.brand .brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  color: var(--ink);
  line-height: 1;
}
.brand .brand-sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted-text);
  margin-top: 0.25rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent-deep); }
.site-nav a.btn-primary { color: #fff; }
.site-nav a.btn-primary:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- hero ---------- */
.hero { padding: 5.5rem 0 4.5rem; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero .lede {
  font-size: 1.15rem;
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(320px, 70vw); height: auto; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section.washed { background: var(--wash); }
.section-head { max-width: 62ch; margin-bottom: 2.75rem; }
.section-head h1, .section-head h2 { font-size: 1.9rem; font-weight: 600; margin-bottom: 0.9rem; }

/* split section: copy + figure */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.split h2 { font-size: 1.9rem; font-weight: 600; margin-bottom: 0.9rem; }
.map-figure { margin: 0; }
.map-figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.map-figure figcaption { font-size: 0.88rem; color: var(--muted-text); margin-top: 0.75rem; line-height: 1.5; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.75rem; } }

/* product family cards */
.family-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.family-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.family-card svg { width: 64px; height: 64px; }
.family-card h3 { font-size: 1.2rem; font-weight: 600; }
.family-card .role { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-text); font-weight: 600; }
.family-card p { font-size: 0.96rem; }
.family-card a { margin-top: auto; color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.family-card a:hover { text-decoration: underline; }
.section-head p { color: var(--body); }

/* capability cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
}
.card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.6rem; }
.card p { font-size: 0.98rem; }
.card p + p { margin-top: 0.6rem; }

/* independence chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.chip {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* steps */
/* benefits */
/* CTA band */
.cta-band { background: var(--ink); }
.cta-band .wrap {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 600;
  max-width: 24ch;
}
.cta-band p { color: #B9C2D4; margin-top: 0.5rem; max-width: 48ch; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3.5rem;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.field label .opt { color: var(--muted-text); font-weight: 500; }
.field input, .field textarea {
  font: inherit;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  background: var(--paper);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 0.9rem; color: var(--muted-text); margin-top: 1rem; }
.form-status { margin-top: 1rem; font-size: 0.95rem; color: var(--accent-deep); }

.contact-aside h2 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.contact-aside .block { margin-bottom: 1.75rem; }
.contact-aside p { font-size: 0.98rem; }
.contact-aside a { color: var(--accent-deep); text-decoration: none; }
.contact-aside a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding: 3rem 0 2.5rem;
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.2em;
}
.site-footer .foot-brand svg { width: 30px; height: 30px; }
.site-footer address { font-style: normal; color: var(--muted-text); line-height: 1.7; }
.site-footer a { color: var(--accent-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal {
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted-text);
  font-size: 0.85rem;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  html { scroll-padding-top: 10rem; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(220px, 55vw); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- compact phone header ---------- */
.site-header .wrap { flex-wrap: wrap; }
@media (max-width: 640px) {
  .site-header { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html { scroll-padding-top: 1.5rem; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 0.85rem; padding-top: 1rem; padding-bottom: 1rem; }
  .site-nav { gap: 0.8rem 1.2rem; }
  .site-nav a.btn { padding: 0.55rem 1.2rem; }
}

/* ---------- header co-brand (G2K Labs) ---------- */
.header-cobrand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
}
.header-cobrand svg { width: 26px; height: 26px; flex: none; }
.header-cobrand span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  white-space: nowrap;
}
.header-cobrand:hover span { color: var(--accent-deep); }
@media (max-width: 640px) {
  .header-cobrand { padding-left: 0; border-left: none; }
}

/* ---------- news + linkedin section ---------- */
/* Single-feature layout since the NATIA 2026 card was retired (July 2026):
   the LinkedIn embed centers alone under the section head. */
.news-grid { display: flex; justify-content: center; }
.news-feature { width: 100%; max-width: 560px; }
.news-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.news-card .when { font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; color: var(--accent-deep); }
.news-card h3 { font-size: 1.08rem; font-weight: 600; margin: 0.4rem 0; }
.news-card p { font-size: 0.95rem; }
.news-feature iframe { width: 100%; height: 1000px; border: 0; display: block; background: transparent; }
.li-follow { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; text-decoration: none; color: var(--body); }
.li-follow svg { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.li-follow .li-title { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.li-follow p { font-size: 0.95rem; }
.li-follow .btn { margin-top: auto; }
.li-follow:hover .btn-ghost { background: var(--ink); color: #fff; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .news-feature iframe { height: 1150px; } }
.embed-fallback { font-size: 0.85rem; color: var(--muted-text); margin-top: 0.6rem; }
.embed-fallback a { color: var(--accent-deep); }

/* Cloudflare Turnstile bot check on the contact form; min-height reserves the
   widget box (300x65) so the form does not shift when the script loads late. */
.cf-turnstile { margin-top: 1.25rem; min-height: 65px; }

/* ---------- Package A: motion & interaction polish (July 2026) ----------
   Rule: motion runs once, on entry or action — never loops. Pages are fully
   static without JS; enhance.js checks prefers-reduced-motion before arming
   any motion. */

/* Header: soft shadow once the page is scrolled (header is already sticky) */
.site-header { transition: box-shadow 0.25s ease; }
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(20, 38, 74, 0.08); }

/* Scroll-spy: nav link for the section currently in view */
.site-nav a.is-active { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }

/* Cards: hover feedback */
.card, .family-card, .news-card { transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover, .family-card:hover, .news-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 38, 74, 0.07); }

/* Scroll reveals (classes applied by enhance.js only when motion is allowed) */
html.reveal-armed .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease-out, transform 0.55s ease-out; }
html.reveal-armed .reveal.is-in { opacity: 1; transform: none; }

/* Hero: faint static accent glow */
.hero { background-image: radial-gradient(ellipse 60% 55% at 78% 18%, rgba(91, 91, 214, 0.07), transparent); }

/* Washed sections: near-invisible engineering dot grid over the wash */
.section.washed { background-image: radial-gradient(circle, rgba(226, 230, 238, 0.55) 1px, transparent 1.5px); background-size: 26px 26px; }

@media (prefers-reduced-motion: reduce) {
  .site-header, .card, .family-card, .news-card { transition: none; }
  .card:hover, .family-card:hover, .news-card:hover { transform: none; }
  html.reveal-armed .reveal { opacity: 1; transform: none; transition: none; }
}

/* Page-to-page crossfade on supporting browsers */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@media print { .section.washed, .hero { background-image: none; } }

/* ---------- Package B: blueprint detailing, spotlight, hero ping
   (July 2026) ----------
   Same house rule as Package A: motion runs once, on entry or action. */

/* Section index: drawing-style numbering on section heads */
main { counter-reset: sec; }
.section .section-head > h2::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  display: block;
  width: max-content;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent-deep);
  padding-right: 2.9rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(var(--line), var(--line)) right center / 2.2rem 1px no-repeat;
}

/* Blueprint corner ticks on cards; ticks pick up the accent on hover */
.card, .family-card, .news-card {
  --tick: rgba(20, 38, 74, 0.16);
  position: relative;
}
.card:hover, .family-card:hover, .news-card:hover { --tick: rgba(91, 91, 214, 0.6); }
.card::before, .family-card::before, .news-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick));
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
  background-size: 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px;
  background-repeat: no-repeat;
}

/* Pointer spotlight: a soft glow follows the cursor across cards
   (coordinates set by enhance.js; fine pointers only) */
@media (hover: hover) and (pointer: fine) {
  .card::after, .family-card::after, .news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: radial-gradient(190px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 91, 214, 0.09), transparent 65%);
  }
  .card:hover::after, .family-card:hover::after, .news-card:hover::after { opacity: 1; }
}

/* One-shot locator ping on the hero mark: a single pulse rings the pin
   after the mark finishes drawing itself, then goes still. */
.hero-art svg { overflow: visible; }
.hero-art .ping { opacity: 0; transform-box: fill-box; transform-origin: center; }
html.reveal-armed .hero-art .ping { animation: atlas-ping 1.25s cubic-bezier(0.2, 0.55, 0.4, 1) 1.6s 1 both; }
@keyframes atlas-ping {
  0% { opacity: 0; transform: scale(0.55); }
  15% { opacity: 0.7; }
  100% { opacity: 0; transform: scale(2.05); }
}

@media (prefers-reduced-motion: reduce) {
  .card::after, .family-card::after, .news-card::after { display: none; }
  .hero-art .ping { animation: none; }
}
@media print {
  .card::before, .family-card::before, .news-card::before { display: none; }
}
