/* ============================================================
   WASELIX / styles
   Precision dark. Near-black canvas, warm off-white ink,
   one electric accent, hairline structure.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* surface */
  --ink:        #07080A;
  --ink-2:      #0B0D10;
  --ink-3:      #111419;
  --ink-4:      #171B21;

  /* ink */
  --fg:         #F2F0EC;   /* warm off-white, not pure #fff */
  --fg-2:       #9CA2A9;
  --fg-3:       #787E85;   /* lifted to clear 4.5:1 on --ink */

  /* lines */
  --line:       rgba(242, 240, 236, 0.09);
  --line-2:     rgba(242, 240, 236, 0.16);
  --line-3:     rgba(242, 240, 236, 0.28);
  /* interactive boundaries only: 3:1 non-text contrast (WCAG 1.4.11) */
  --line-ui:    rgba(242, 240, 236, 0.40);

  /* accent */
  --acc:        #3BE8FF;
  --acc-dim:    rgba(59, 232, 255, 0.14);
  --acc-glow:   rgba(59, 232, 255, 0.07);
  --bad:        #FF6B6B;
  --mark-node:  var(--acc);

  /* type */
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-hero: clamp(2.6rem, 5.4vw, 4.75rem);
  --t-h2:   clamp(1.95rem, 5vw, 4rem);
  --t-h3:   clamp(1.15rem, 1.5vw, 1.45rem);
  --t-lead: clamp(1.02rem, 1.45vw, 1.3rem);
  --t-body: 1rem;
  --t-mono: 0.6875rem;

  /* space */
  --s1: 0.5rem;  --s2: 1rem;   --s3: 1.5rem;  --s4: 2.5rem;
  --s5: 4rem;    --s6: 6rem;   --s7: 9rem;

  --gutter: 1.375rem;
  --maxw: 1440px;
  --nav-h: 64px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* expo.out */
}

@media (min-width: 900px) {
  :root { --gutter: 3rem; --nav-h: 72px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 4.5rem; }
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--fg-2);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--fg);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

::selection { background: var(--acc); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 3. Structure primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Fixed hairline column grid: the "precision" signature.
   Desktop only, purely decorative. */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid-lines i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.grid-lines i:nth-child(1) { left: var(--gutter); }
.grid-lines i:nth-child(2) { left: 25%; }
.grid-lines i:nth-child(3) { left: 50%; }
.grid-lines i:nth-child(4) { left: 75%; }
.grid-lines i:nth-child(5) { right: var(--gutter); left: auto; }
@media (min-width: 1100px) { .grid-lines { display: block; } }

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(4.5rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}
.section--flush { border-top: 0; }

/* section kicker: mono index + label + rule */
.kicker {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--s4);
}
.kicker .rule {
  flex: 1;
  height: 1px;
  background: var(--line-2);
  transform-origin: left center;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 54ch;
  letter-spacing: -0.01em;
}

/* ---------- 4. Reveal states (no-JS safe) ---------- */
/* Hidden only once JS confirms GSAP is live; see app.js */
.js-ready [data-reveal] { opacity: 0; }
.js-ready [data-split] { opacity: 0; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 48px;
  padding: 0 1.375rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  --btn-bg: var(--acc);
  --btn-fg: var(--ink);
  --btn-bd: var(--acc);
  font-weight: 600;
}
.btn--primary:hover { --btn-bg: #8CF3FF; --btn-bd: #8CF3FF; }

.btn--ghost:hover { --btn-bd: var(--line-3); background: var(--ink-3); }

.btn--lg { min-height: 56px; padding: 0 1.75rem; font-size: 0.9375rem; }

/* text link with a rule that wipes in */
.tlink {
  position: relative;
  color: var(--fg);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--acc), var(--acc));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.4s var(--ease), color 0.25s var(--ease);
}
.tlink:hover { background-size: 100% 1px; color: var(--acc); }

/* ---------- 6. Nav ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--acc);
  color: var(--ink);
  font-weight: 600;
}
.skip:focus { left: 0; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
}
.nav.is-stuck {
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--fg);
}
.brand__mark { width: 26px; height: 26px; color: var(--fg); flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__word {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  padding-top: 1px;
}
.brand:hover { --mark-node: #8CF3FF; }

.nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav__links a {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--fg-2);
  border-radius: 2px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--fg); background: var(--ink-3); }

.nav__cta { display: none; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
}

/* mobile menu */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: var(--nav-h) var(--gutter) var(--s5);
  background: var(--ink);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu.is-open { visibility: visible; }
.menu a {
  display: block;
  padding: 0.5rem 0;
  font-size: clamp(2rem, 11vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}
.menu a:last-of-type { border-bottom: 0; }
.menu__foot {
  margin-top: var(--s4);
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
@media (min-width: 900px) { .menu { display: none; } }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + var(--s5));
  padding-bottom: var(--s4);
  overflow: hidden;
}
/* one soft accent field, top-right. No blob soup. */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at center, var(--acc-glow) 0%, transparent 62%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: var(--s5); }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: var(--s3);
}
.status__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  flex: none;
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--acc);
  opacity: 0;
}

.hero h1 {
  font-size: var(--t-hero);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: var(--s3);
}
.hero h1 em {
  font-style: normal;
  color: var(--fg-3);
}

.hero__lead { margin-bottom: var(--s4); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--s4);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hero__tags span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__tags span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--line-3);
  transform: rotate(45deg);
}

/* mobile flow strip, replaces the diagram below 1000px */
.flowstrip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: var(--s3) 0 0;
  border-top: 1px solid var(--line);
  margin-top: var(--s4);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.flowstrip b {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  font-weight: 400;
  border-radius: 2px;
}
.flowstrip b.is-core { border-color: var(--acc); color: var(--acc); }
.flowstrip i { color: var(--fg-3); font-style: normal; }
@media (min-width: 1000px) { .flowstrip { display: none; } }

/* the system diagram */
.diagram { display: none; }
@media (min-width: 1000px) { .diagram { display: block; } }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.dg-node rect {
  fill: var(--ink-2);
  stroke: var(--line-2);
  stroke-width: 1;
}
.dg-node text {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  fill: var(--fg-2);
}
.dg-wire { fill: none; stroke: var(--line-2); stroke-width: 1; }
.dg-pulse { fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-dasharray: 16 420; }
.dg-core rect { fill: var(--ink-3); stroke: var(--acc); stroke-width: 1; }
.dg-core text {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  fill: var(--fg);
}
.dg-core .dg-sub {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  fill: var(--fg-3);
}
.dg-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--fg-3);
}

.scrollcue {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--s5);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.scrollcue .track {
  position: relative;
  width: 1px;
  height: 36px;
  background: var(--line-2);
  overflow: hidden;
}
.scrollcue .track i {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 12px;
  background: var(--acc);
}
@media (min-width: 900px) { .scrollcue { display: flex; } }

/* ---------- 9. Stance (positioning) ---------- */
.stance__grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .stance__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); }
}
.stance h2 { font-size: var(--t-h2); }
.stance h2 u {
  text-decoration: none;
  color: var(--acc);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  text-decoration-color: var(--acc-dim);
}

.pointlist { display: grid; gap: 0; }
.pointlist > div {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--s2);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}
.pointlist > div:last-child { border-bottom: 1px solid var(--line); }
.pointlist dt,
.pointlist h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem;
}
.pointlist .idx {
  font-family: var(--mono);
  font-size: var(--t-mono);
  color: var(--fg-3);
  letter-spacing: 0.1em;
  padding-top: 0.35rem;
}
.pointlist p { font-size: 0.9375rem; line-height: 1.65; max-width: 48ch; }

/* ---------- 10. Services ---------- */
.svc {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 700px)  { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4) var(--s3) var(--s4);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background-color 0.4s var(--ease);
  isolation: isolate;
}
@media (min-width: 900px) { .card { padding: var(--s4); } }
@media (hover: hover) {
  .card:hover { background: var(--ink-3); }
  /* cursor-tracked accent field */
  .card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(
      380px circle at var(--mx, 50%) var(--my, 0%),
      var(--acc-dim), transparent 68%
    );
    transition: opacity 0.45s var(--ease);
  }
  .card:hover::after { opacity: 1; }
}
/* top edge lights up */
.card__edge {
  position: absolute;
  top: 0;              /* was -1px, which .card's overflow:hidden clipped entirely */
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease);
}
.card:hover .card__edge { transform: scaleX(1); }

.card__idx {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  color: var(--fg-3);
}
.card h3 {
  font-size: var(--t-h3);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.card p:not(.card__idx) { font-size: 0.9375rem; line-height: 1.65; flex: 1; }

/* ---------- 11. Process ---------- */
/* A five row table, not a scroll experience. Deleted the sticky aside,
   the scrubbed progress meter and the per-step headline stack: too much
   machinery for five short items, and it read as template filler. */
.steps { list-style: none; padding: 0; margin: 0; }

.srow {
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-template-areas:
    "n t"
    ". d"
    ". o";
  gap: 0.25rem 0.875rem;
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
  transition: background-color 0.3s var(--ease);
}
.srow:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
  .srow {
    grid-template-columns: 3.5rem minmax(7rem, 9rem) minmax(0, 1fr) minmax(11rem, 17rem);
    grid-template-areas: "n t d o";
    align-items: baseline;
    gap: var(--s3);
    padding: 1.125rem 0;
  }
}
@media (hover: hover) and (min-width: 900px) {
  .srow:hover { background: var(--ink-2); }
  .srow:hover .srow__n { color: var(--acc); }
}

.srow__n {
  grid-area: n;
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  color: var(--fg-3);
  transition: color 0.3s var(--ease);
}
.srow__t {
  grid-area: t;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.srow__d {
  grid-area: d;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 52ch;
}
.srow__o {
  grid-area: o;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--fg-3);
}
.srow__o::before { content: "→"; color: var(--acc); margin-right: 0.5rem; }

/* ---------- 12. Commitments ---------- */
.commit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 800px) { .commit { grid-template-columns: repeat(3, 1fr); } }
.commit > div {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) {
  .commit > div { padding: var(--s4) var(--s3) var(--s4) 0; border-bottom: 0; }
  .commit > div + div { border-left: 1px solid var(--line); padding-left: var(--s3); }
}
.commit h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--s2);
  max-width: 16ch;
}
.commit p { font-size: 0.9375rem; line-height: 1.65; max-width: 36ch; }

/* ---------- 13. Integrations ---------- */
.igroups__note {
  margin-top: var(--s3);
  font-size: 0.875rem;
  color: var(--fg-3);
}

/* industries */
.inds { display: grid; }
.ind {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}
.ind:last-child { border-bottom: 1px solid var(--line); }
.ind h3 {
  font-size: clamp(1.1rem, 2.6vw, 1.75rem);
  letter-spacing: -0.03em;
  flex: none;
}
.ind p {
  font-size: 0.875rem;
  color: var(--fg-3);
  text-align: right;
  max-width: 40ch;
  line-height: 1.5;
}

/* ---------- 14. FAQ (native details) ---------- */
.faq { display: grid; }
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) 0;
  cursor: pointer;
  list-style: none;
  color: var(--fg);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--acc); }
.faq summary .pm {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
}
.faq summary .pm::before,
.faq summary .pm::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}
.faq summary .pm::before { top: 5.5px; left: 0; width: 12px; height: 1px; }
.faq summary .pm::after { left: 5.5px; top: 0; width: 1px; height: 12px; }
.faq details[open] summary .pm::after { transform: rotate(90deg); opacity: 0; }

/* native open/close height transition, no JS */
.faq .ans {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease);
}
.faq details[open] .ans { grid-template-rows: 1fr; }
.faq .ans > div { overflow: hidden; }
.faq .ans p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 64ch;
  padding-bottom: var(--s3);
}
@media (prefers-reduced-motion: reduce) {
  .faq .ans { transition: none; }
}

/* ---------- 15. Contact ---------- */
.contact {
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 9rem);
}
.contact::before {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle at center, var(--acc-glow), transparent 64%);
  pointer-events: none;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}
@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s6); }
}
.contact h2 {
  font-size: var(--t-h2);
  margin-bottom: var(--s3);
}
.contact__direct {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--s2);
}
.contact__direct div { display: grid; gap: 0.125rem; }
.contact__direct dt,
.contact__direct .l {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.contact__direct .v { color: var(--fg); font-size: 0.9375rem; }

/* form */
.form { display: grid; gap: var(--s3); }
.form__row { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.field label span { color: var(--acc); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.875rem 0.875rem;
  background: var(--ink-2);
  border: 1px solid var(--line-ui);
  border-radius: 2px;
  color: var(--fg);
  font-size: 0.9375rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
  appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-3); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--acc);
  background: var(--ink-3);
  box-shadow: 0 0 0 3px var(--acc-dim);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA2A9' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 11px;
  padding-right: 2.25rem;
  cursor: pointer;
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--bad); }
.field .err {
  font-size: 0.75rem;
  color: var(--bad);
  min-height: 1rem;
  line-height: 1.3;
}
.field .err:empty { min-height: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
}
.form__note { font-size: 0.75rem; color: var(--fg-3); max-width: 38ch; line-height: 1.5; }

.form__status {
  display: none;
  gap: 0.625rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font-size: 0.875rem;
  line-height: 1.5;
  background: var(--ink-2);
}
.form__status.is-shown { display: flex; }
.form__status.is-ok { border-color: var(--acc); color: var(--fg); }
.form__status.is-err { border-color: var(--bad); color: var(--fg); }
.form__status b { color: var(--acc); font-weight: 600; }
.form__status.is-err b { color: var(--bad); }

.btn[aria-busy="true"] { pointer-events: none; opacity: 0.6; }

/* ---------- 16. Footer ---------- */
.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding-block: var(--s4) var(--s3);
}
.foot__top {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
  padding-bottom: var(--s4);
}
@media (min-width: 800px) {
  .foot__top { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s5); }
}
.foot__blurb { font-size: 0.875rem; max-width: 34ch; margin-top: var(--s2); }
.foot h4 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--s2);
}
.foot ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.foot ul a { font-size: 0.875rem; color: var(--fg-2); transition: color 0.2s var(--ease); }
.foot ul a:hover { color: var(--acc); }
.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.foot__bar a:hover { color: var(--fg-2); }

/* big footer wordmark */
.foot__word {
  font-size: clamp(3.5rem, 19vw, 17rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: var(--ink-4);
  padding-block: var(--s3) var(--s2);
  user-select: none;
  overflow: hidden;
}

/* ---------- 17. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-ready [data-reveal],
  .js-ready [data-split] { opacity: 1 !important; }
}

/* ---------- 18. Patches ---------- */

/* menu: CSS-only fallback so it still opens if GSAP never loads */
.menu.is-open { clip-path: inset(0% 0% 0% 0%); }

/* SplitText line masks clip descenders (g, y, p) by one or two pixels.
   Extend the clip box down and pull the layout back up. */
.ln-mask { padding-bottom: 0.14em !important; margin-bottom: -0.14em !important; }

/* live status ring on the hero dot */
@keyframes wx-ping {
  0%   { transform: scale(0.8); opacity: 0.9; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}
.status__dot::after { animation: wx-ping 2.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
@media (prefers-reduced-motion: reduce) {
  .status__dot::after { animation: none; }
}

/* ghost button needed a touch more edge to read as a button */
.btn--ghost { --btn-bd: var(--line-ui); }
/* the CTA in the mobile menu is the primary action, mark it */
.menu a:last-of-type { color: var(--acc); }

/* tap targets: brand lockup and nav links were under 44px */
.brand { min-height: 44px; }
.nav__links a { padding-block: 0.75rem; }

/* stacked on mobile the deliverable sat flush against the description */
@media (max-width: 899px) { .srow__o { margin-top: 0.25rem; } }

/* ---------- 19. Integration groups ---------- */
/* Replaced 26 undifferentiated chips. Four named classes of system say the
   same thing at a tenth of the cognitive load, and reuse the .srow language. */
.igroups { display: grid; }
.igroup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}
.igroup:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .igroup {
    grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
    gap: var(--s3);
    align-items: baseline;
    padding: 1.125rem 0;
  }
}
.igroup__l {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.igroup__v {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 62ch;
}

/* ---------- 20. Submit confirmation ---------- */
/* [hidden] must beat the display rules below it */
[hidden] { display: none !important; }

.done {
  display: grid;
  gap: var(--s3);
  justify-items: start;
  padding: var(--s4);
  border: 1px solid var(--acc);
  border-radius: 2px;
  background: var(--ink-2);
}
.done:focus { outline: none; }
.done:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.done__k {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc);
}
.done__h {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.done__l { list-style: none; padding: 0; display: grid; gap: 0.625rem; }
.done__l li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 48ch;
}
.done__l li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  background: var(--acc);
  transform: rotate(45deg);
}

/* ---------- 21. Persistent CTA on mobile ---------- */
/* Below 900px the only route to the form was the hamburger or the page
   bottom, across ~14,000px of scroll. */
.cta-short { display: none; }
@media (max-width: 899px) {
  .nav.is-stuck .nav__cta {
    display: inline-flex;
    min-height: 40px;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
  }
  .nav.is-stuck .nav__cta .cta-long { display: none; }
  .nav.is-stuck .nav__cta .cta-short { display: inline; }
  .nav__inner { gap: 0.5rem; }
}
