/* ============================================================
   AUSPEX site — SINGLE TOKEN LAYER
   A rebrand is an edit to this :root block only.
   ============================================================ */
:root {
  --navy: #002060;
  --navy-deep: #001338;
  --navy-soft: #0a2f7a;
  --bronze: #996633;
  --bronze-soft: #b98a5a;
  --ice: #cfd9f2;
  --paper: #ffffff;
  --paper-2: #f6f7fa;
  --ink: #16213a;
  --ink-soft: #5a6478;
  --line: #e3e7ef;
  --good: #2e7d5b;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mark: 'Archivo', 'IBM Plex Sans', system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(0, 19, 56, 0.10);
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.35s ease, box-shadow 0.35s ease; }
.nav.solid { background: rgba(0, 19, 56, 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 2rem; }
.mark { font-family: var(--font-mark); font-weight: 700; letter-spacing: 0.34em; color: #fff; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.mark b { color: var(--bronze-soft); font-weight: 700; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ice); text-decoration: none; font-size: 0.86rem; font-weight: 500; opacity: 0.9; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; }
.nav-links a.here { color: #fff; opacity: 1; border-bottom: 2px solid var(--bronze-soft); padding-bottom: 2px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.88rem;
  padding: 0.62rem 1.35rem; border-radius: 7px; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--bronze-soft); outline-offset: 2px; }
.btn-bronze { background: var(--bronze); color: #fff; box-shadow: 0 6px 18px rgba(153, 102, 51, 0.35); }
.btn-bronze:hover { background: #a8743e; box-shadow: 0 10px 24px rgba(153, 102, 51, 0.45); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #0b2a6b 100%);
  padding: 172px 0 120px;
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-in { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--bronze-soft);
  border: 1px solid rgba(185, 138, 90, 0.45); border-radius: 20px; padding: 0.3rem 0.9rem;
}
.hero h1 {
  font-family: var(--font-mark); font-weight: 600; text-wrap: balance;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.08; letter-spacing: -0.01em;
  margin: 1.3rem 0 1.1rem; max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--bronze-soft); }
.hero p.lede { font-size: 1.08rem; color: var(--ice); max-width: 54ch; }
.hero-cta { display: flex; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  color: #fff; background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 70%);
  padding: 148px 0 64px;
}
.page-hero h1 {
  font-family: var(--font-mark); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance;
  font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.12; margin-top: 1.1rem; max-width: 22ch;
}
.page-hero p { color: var(--ice); max-width: 58ch; margin-top: 0.9rem; font-size: 1.02rem; }

/* entrance + scroll animation */
.rise { opacity: 0; transform: translateY(22px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.2s; }
.rise.d3 { animation-delay: 0.34s; } .rise.d4 { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- sections ---------- */
section { padding: 92px 0; }
.sec-head { max-width: 640px; margin-bottom: 3rem; }
.sec-head .eyebrow { color: var(--bronze); border-color: rgba(153,102,51,0.35); }
.sec-head h2 {
  font-family: var(--font-mark); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; margin-top: 1rem; text-wrap: balance;
}
.sec-head p { color: var(--ink-soft); margin-top: 0.8rem; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(153,102,51,0.35); }
.card .glyph {
  width: 40px; height: 40px; border-radius: 9px; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  display: flex; align-items: center; justify-content: center;
}
.card .glyph svg { stroke: var(--bronze-soft); }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.card p { font-size: 0.86rem; color: var(--ink-soft); }
.plat { background: var(--paper-2); }

/* ---------- feature rows (platform page) ---------- */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; padding: 3.2rem 0; border-top: 1px solid var(--line); }
.frow:first-of-type { border-top: 0; }
.frow.flip .ftxt { order: 2; }
.ftxt .eyebrow { color: var(--bronze); border-color: rgba(153,102,51,0.35); }
.ftxt h3 { font-family: var(--font-mark); font-weight: 600; font-size: 1.45rem; margin: 0.9rem 0 0.6rem; letter-spacing: -0.01em; }
.ftxt > p { color: var(--ink-soft); font-size: 0.95rem; }
.ftxt ul { list-style: none; margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.ftxt li { font-size: 0.89rem; color: var(--ink); display: flex; gap: 0.65rem; }
.ftxt li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--bronze); margin-top: 0.5rem; }
.fart {
  border-radius: 14px; border: 1px solid var(--line); background: var(--paper-2);
  min-height: 230px; padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; justify-content: center;
  box-shadow: var(--shadow);
}
.fart .cap { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }

/* module miniatures — one flat, token-colored sketch per module */
.g-cols { display: flex; align-items: flex-end; gap: 12px; height: 120px; }
.g-cols i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--navy-soft), var(--navy)); border-radius: 5px 5px 2px 2px; }
.g-cols i.b { background: linear-gradient(180deg, var(--bronze-soft), var(--bronze)); }

.g-lines { width: 100%; height: 120px; display: block; }

.g-gantt { display: flex; flex-direction: column; gap: 12px; position: relative; padding: 6px 0; }
.g-gantt i { display: block; height: 13px; border-radius: 7px; margin-left: var(--l); width: var(--w); background: linear-gradient(90deg, var(--navy), var(--navy-soft)); }
.g-gantt i.b { background: linear-gradient(90deg, var(--bronze), var(--bronze-soft)); }
.g-gantt::after { content: ''; position: absolute; left: 58%; top: 0; bottom: 0; width: 2px; background: var(--bronze-soft); opacity: 0.55; border-radius: 1px; }

.g-docs { display: flex; flex-direction: column; gap: 12px; }
.g-docs .row { display: flex; align-items: center; gap: 10px; }
.g-docs s { width: 15px; height: 18px; flex: none; text-decoration: none; background: var(--paper); border: 2px solid var(--navy-soft); border-radius: 3px 6px 3px 3px; }
.g-docs i { display: block; height: 10px; border-radius: 5px; width: var(--w); background: linear-gradient(90deg, var(--navy), var(--navy-soft)); opacity: 0.75; }
.g-docs em { margin-left: auto; font-style: normal; font-size: 0.66rem; font-weight: 700; color: var(--bronze); letter-spacing: 0.06em; }

.g-city { display: flex; align-items: flex-end; gap: 9px; height: 120px; border-bottom: 2px solid var(--ink-soft); padding: 0 6px; }
.g-city i { width: var(--w); height: var(--h); background: var(--navy); border-radius: 3px 3px 0 0; opacity: 0.9; }
.g-city i.b { background: var(--bronze); }
.g-city i.soft { background: var(--navy-soft); }

.g-fall { position: relative; height: 130px; }
.g-fall i { position: absolute; width: 18%; left: var(--l); bottom: var(--b); height: var(--h); background: linear-gradient(180deg, var(--navy-soft), var(--navy)); border-radius: 4px; }
.g-fall i.b { background: linear-gradient(180deg, var(--bronze-soft), var(--bronze)); }
.g-fall::before { content: ''; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--line); }

.g-pipe { display: flex; align-items: center; gap: 10px; }
.g-pipe .pg { flex: 1; aspect-ratio: 3 / 4; max-width: 86px; background: var(--paper); border: 2px solid var(--navy-soft); border-radius: 5px; padding: 10px 9px; display: flex; flex-direction: column; gap: 6px; }
.g-pipe .pg i { display: block; height: 6px; border-radius: 3px; background: var(--ice); }
.g-pipe .pg i:first-child { background: var(--navy-soft); width: 60%; }
.g-pipe .pg.done { border-color: var(--bronze); }
.g-pipe .pg.done i:last-child { background: var(--bronze-soft); width: 50%; }
.g-pipe .ar { color: var(--bronze); font-weight: 700; font-size: 1.1rem; flex: none; }

/* ---------- Sam band ---------- */
.sam { background: linear-gradient(150deg, var(--navy-deep), var(--navy) 70%); color: #fff; position: relative; overflow: hidden; }
.sam::after {
  content: ''; position: absolute; right: -180px; top: -180px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(153,102,51,0.28), transparent 65%); pointer-events: none;
}
.sam-cols { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.sam .sec-head { margin-bottom: 1.6rem; }
.sam .sec-head p { color: var(--ice); }
.sam .sec-head .eyebrow { color: var(--bronze-soft); border-color: rgba(185,138,90,0.45); }
.sam ul { list-style: none; display: flex; flex-direction: column; gap: 0.95rem; }
.sam li { display: flex; gap: 0.8rem; font-size: 0.92rem; color: var(--ice); }
.sam li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--bronze-soft); margin-top: 0.5rem; }
.sam li b { color: #fff; font-weight: 600; }

.chat {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 1.3rem; backdrop-filter: blur(4px);
  display: flex; flex-direction: column; gap: 0.75rem; min-width: 0;
}
.chat-head { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.28em; font-weight: 700; color: var(--ice); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px rgba(46,125,91,0.9); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
.msg { border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.83rem; line-height: 1.5; max-width: 92%; opacity: 0; transform: translateY(10px); }
.msg.you { background: rgba(255,255,255,0.09); align-self: flex-end; }
.msg.samr { background: rgba(153,102,51,0.22); border: 1px solid rgba(185,138,90,0.35); align-self: flex-start; }
.msg b { display: block; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-soft); margin-bottom: 0.2rem; }
.msg.you b { color: var(--ice); }
.chat.play .msg { animation: rise 0.6s cubic-bezier(0.2,0.7,0.2,1) forwards; }
.chat.play .m1 { animation-delay: 0.15s; } .chat.play .m2 { animation-delay: 0.9s; }
.chat.play .m3 { animation-delay: 1.7s; } .chat.play .m4 { animation-delay: 2.5s; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; counter-reset: step; }
.step { border-left: 2px solid var(--line); padding: 0.2rem 0 0.2rem 1.4rem; position: relative; }
.step::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--font-mark); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em;
  color: var(--bronze); display: block; margin-bottom: 0.5rem;
}
.step::after { content: ''; position: absolute; left: -2px; top: 0; width: 2px; height: 34px; background: var(--bronze); }
.step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.87rem; color: var(--ink-soft); }

/* ---------- trust ---------- */
.trust { background: var(--paper-2); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.trust-row .card h3 { display: flex; align-items: center; gap: 0.55rem; }
.trust-row .card h3::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--good); flex: none; }

/* ---------- prose (security / company) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--font-mark); font-weight: 600; font-size: 1.35rem; margin: 2.6rem 0 0.7rem; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.9rem; }
.prose li { color: var(--ink-soft); font-size: 0.95rem; margin: 0.35rem 0 0.35rem 1.2rem; }
.prose b { color: var(--ink); }
.tenets { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2.2rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; text-align: center; }
.cta-band h2 { font-family: var(--font-mark); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-wrap: balance; }
.cta-band p { color: var(--ice); max-width: 46ch; margin: 0.9rem auto 0; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- contact ---------- */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.contact .wrap { text-align: center; }
.contact h2 { font-family: var(--font-mark); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-wrap: balance; }
.contact p { color: var(--ice); max-width: 46ch; margin: 0.9rem auto 0; }
.mailcards { display: flex; gap: 1.1rem; justify-content: center; margin-top: 2.4rem; flex-wrap: wrap; }
.mailcard {
  text-decoration: none; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 1.3rem 2rem; min-width: 260px; text-align: left;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.mailcard:hover { transform: translateY(-3px); border-color: var(--bronze-soft); background: rgba(153,102,51,0.14); }
.mailcard span { display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-soft); font-weight: 700; margin-bottom: 0.3rem; }
.mailcard b { font-size: 1.02rem; font-weight: 600; color: #fff; }
.mailcard i { display: block; font-style: normal; font-size: 0.8rem; color: rgba(207,217,242,0.75); margin-top: 0.25rem; }

/* light-ground mail cards (contact page) */
.mailcards.onpaper .mailcard { background: var(--paper); border-color: var(--line); flex: 1 1 340px; min-width: 0; }
.mailcards.onpaper .mailcard b { color: var(--ink); }
.mailcards.onpaper .mailcard i { color: var(--ink-soft); }
.mailcards.onpaper .mailcard:hover { background: var(--paper-2); border-color: rgba(153,102,51,0.4); box-shadow: var(--shadow); }

/* ---------- footer ---------- */
footer { background: var(--navy-deep); color: rgba(207,217,242,0.65); padding: 2.2rem 0; font-size: 0.8rem; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.foot-in .mark { font-size: 0.78rem; }
.foot-links { margin-left: auto; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { text-decoration: none; opacity: 0.85; }
.foot-links a:hover { opacity: 1; color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid, .steps, .trust-row { grid-template-columns: 1fr 1fr; }
  .sam-cols, .frow, .tenets { grid-template-columns: 1fr; }
  .frow { gap: 1.6rem; }
  .frow.flip .ftxt { order: 0; }
  .nav-links a.plain { display: none; }
}
@media (max-width: 580px) {
  .grid, .steps, .trust-row { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 88px; }
  .page-hero { padding: 122px 0 52px; }
  section { padding: 68px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .chat.play .msg { animation: none; opacity: 1; transform: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  .btn, .card, .mailcard { transition: none; }
}
