/* Neurepas marketing site
   Tokens come from the Waypoint (3A) brand kit, extended with one restrained
   accent, a warm sand, and an elevation scale. Do not add colors outside this set. */

:root {
  /* Brand */
  --slate: #2F3F63;
  --slate-deep: #253352;
  --slate-muted: #5A6B8C;
  --ink: #22201D;
  --paper: #F0ECE4;
  --stone: #6F6A61;

  /* Extended surfaces */
  --surface: #FAF8F5;              /* cards sit slightly above the paper */
  --sand: #E4DED3;                 /* warm gray for dividers and fills */
  --rule: rgba(34, 32, 29, 0.14);
  --rule-soft: rgba(34, 32, 29, 0.08);
  --slate-tint: rgba(47, 63, 99, 0.06);
  --slate-tint-2: rgba(47, 63, 99, 0.10);

  /* The one accent, reserved for status and interactive affordances. */
  --accent: #2E6F5E;
  --accent-soft: rgba(46, 111, 94, 0.12);

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(34, 32, 29, 0.04), 0 2px 8px rgba(34, 32, 29, 0.04);
  --shadow-2: 0 2px 4px rgba(34, 32, 29, 0.04), 0 12px 28px rgba(34, 32, 29, 0.08);
  --shadow-3: 0 8px 20px rgba(34, 32, 29, 0.07), 0 30px 60px rgba(34, 32, 29, 0.12);

  --font-head: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --site-max: 76rem;
  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(2.35rem, 4.6vw, 3.5rem); max-width: 15ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); max-width: 20ch; }
h3 { font-size: 1.1875rem; letter-spacing: -0.02em; line-height: 1.25; }

p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1em; }

.muted { color: var(--stone); }
.lead { font-size: 1.1875rem; color: var(--stone); }

/* Eyebrow */

.eyebrow {
  font-family: var(--font-body);
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--stone);
  opacity: 0.5;
  flex: none;
}

/* Layout */

.wrap {
  max-width: var(--site-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: clamp(3.5rem, 7vw, 6.5rem); padding-bottom: clamp(3.5rem, 7vw, 6.5rem); }
.section-head { max-width: 46rem; }
.section-head h2 + p { margin-top: 1.25rem; }

/* Header: sticky and frosted once the page scrolls. */

.site-header-outer {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header-outer.is-stuck {
  background: rgba(240, 236, 228, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--rule-soft);
  box-shadow: 0 1px 20px rgba(34, 32, 29, 0.05);
}

.site-header {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3125rem;
  letter-spacing: -0.035em;
  flex: none;
}
.brand img { width: 28px; height: 28px; }

.site-nav { display: flex; gap: 2rem; margin-left: auto; align-items: center; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  position: relative;
  padding: 0.25rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--slate);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a.button::after { display: none; }
/* .site-nav a sets Ink and outranks .button on specificity, which left the
   nav CTA as dark text on a navy fill. Restate the button colours here. */
.site-nav a.button { color: #fff; }
.site-nav a.button:hover { color: #fff; }
.nav-cta { margin-left: 0.5rem; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--slate);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--slate);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  box-shadow: var(--shadow-1);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.button:hover {
  background: var(--slate-deep);
  border-color: var(--slate-deep);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.button.small { font-size: 0.875rem; padding: 0.5rem 0.9rem; }

.button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--slate);
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.8rem 0.25rem;
}
.button-ghost .arrow { transition: transform 0.25s var(--ease); }
.button-ghost:hover { text-decoration: none; }
.button-ghost:hover .arrow { transform: translateX(4px); }

/* Chips */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--stone);
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 100px;
  padding: 0.35rem 0.8rem;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ============ HERO ============ */

.hero {
  position: relative;
  overflow-x: clip;   /* the glow and grid bleed, but never past the viewport */
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  gap: 3rem 3rem;
  align-items: center;
}
.hero-copy { min-width: 0; }
/* A painted underline rather than a pseudo element, so the phrase can wrap
   across lines and still be underlined on each one. */
.hero h1 .accent-word {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% 0.05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: underline-in 0.9s var(--ease) 0.6s forwards;
}
@keyframes underline-in { to { background-size: 100% 0.05em; } }

.hero-copy p.lead { margin-top: 1.5rem; }
.hero .actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

/* Soft glow and grid behind the product shot. */
.hero-stage { position: relative; min-width: 0; }
.hero-glow {
  position: absolute;
  inset: -18% -22% -22% -12%;
  background:
    radial-gradient(46% 46% at 62% 38%, rgba(47, 63, 99, 0.16), transparent 70%),
    radial-gradient(40% 40% at 28% 74%, rgba(46, 111, 94, 0.10), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  animation: glow-drift 16s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-1.5%, 2%, 0) scale(1.05); }
}
.hero-grid-lines {
  position: absolute;
  inset: -10% -14%;
  background-image:
    linear-gradient(to right, rgba(34, 32, 29, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 32, 29, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(58% 58% at 50% 45%, #000 40%, transparent 78%);
  mask-image: radial-gradient(58% 58% at 50% 45%, #000 40%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

/* Browser frame */

.frame {
  position: relative;
  z-index: 2;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-3);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: linear-gradient(to bottom, #FBFAF8, #F3F0EA);
  border-bottom: 1px solid var(--rule-soft);
}
.frame-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(34, 32, 29, 0.16); flex: none; }
.frame-bar .frame-url {
  width: auto;
  height: 16px;
  flex: 1;
  margin-left: 10px;
  border-radius: 4px;
  background: rgba(34, 32, 29, 0.05);
}
.frame img { border: 0; border-radius: 0; }

.hero-shot { position: relative; z-index: 2; animation: float-slow 9s ease-in-out infinite; }
.hero-shot .frame { width: 107%; }   /* the product runs past its column */
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.hero-shot .frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: left top;
}

/* Floating product notifications */

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  box-shadow: var(--shadow-2);
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
  animation: float-card 7s ease-in-out infinite;
}
.float-card .fc-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--slate-tint);
  display: grid;
  place-items: center;
  flex: none;
}
.float-card .fc-icon svg { width: 15px; height: 15px; display: block; }
.float-card strong { font-weight: 500; display: block; color: var(--ink); font-size: 0.8125rem; }
.float-card em { font-style: normal; color: var(--stone); font-size: 0.75rem; }
.float-card.is-done .fc-icon { background: var(--accent-soft); }

.fc-1 { top: 4%;  left: -13%; animation-delay: 0s; }
.fc-2 { top: 33%; right: -4%; animation-delay: 1.4s; }
.fc-3 { bottom: 20%; left: -16%; animation-delay: 2.6s; }
.fc-4 { bottom: 2%; right: 0%; animation-delay: 3.6s; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* The path that links the floating cards back to the product. */
.hero-links {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.hero-links path {
  fill: none;
  stroke: var(--slate);
  stroke-width: 1;
  stroke-opacity: 0.28;
  stroke-dasharray: 5 7;
  animation: dash-flow 5s linear infinite;
}
@keyframes dash-flow { to { stroke-dashoffset: -48; } }

/* ============ NODE WORKFLOW (Why Neurepas) ============ */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem 4.5rem;
  align-items: start;
}
/* Sized for a short paragraph rather than a single line. */
.pull {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1875rem, 1.7vw, 1.4375rem);
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 1.5rem 0 0;
  max-width: 30ch;
  border-left: 2px solid var(--accent);
  padding-left: 1.15rem;
}
/* Scoped past .why-copy p, which sets 1rem and would otherwise win. */
.why-copy p.source { font-size: 0.8125rem; line-height: 1.5; margin-top: 1.5rem; }
.why-copy { margin-top: 1.75rem; }
.why-copy p { color: var(--stone); font-size: 1rem; }

.flow { display: grid; gap: 0; position: relative; }
.flow-node {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  align-items: start;
  position: relative;
  padding-bottom: 1.5rem;
}
.flow-node:last-child { padding-bottom: 0; }
.flow-node::before {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 2.25rem;
  bottom: -0.25rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--rule), var(--rule-soft));
}
.flow-node:last-child::before { display: none; }
.flow-dot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-1);
}
.flow-dot svg { width: 17px; height: 17px; display: block; }
.flow-body { padding-top: 0.35rem; }
.flow-body h3 { font-size: 1rem; }
.flow-body p { font-size: 0.9375rem; color: var(--stone); margin-top: 0.15rem; max-width: 30rem; }
.flow-node.is-problem .flow-dot { border-color: rgba(34, 32, 29, 0.2); background: var(--sand); }
.flow-node.is-win .flow-dot { border-color: var(--accent); background: var(--accent-soft); }

/* ============ CARDS ============ */

.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--rule);
}
.card .icon { width: 30px; height: 30px; display: block; margin-bottom: 0.35rem; }
.card p { max-width: none; font-size: 0.9375rem; color: var(--stone); }

/* The extra line that appears on hover. */
.card .reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s var(--ease), opacity 0.3s var(--ease);
}
.card .reveal > span { overflow: hidden; font-size: 0.875rem; color: var(--slate); }
.card:hover .reveal, .card:focus-within .reveal { grid-template-rows: 1fr; opacity: 1; }

/* Transition line between problem and solution */
.turn {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.turn-line { flex: 1; height: 1px; background: linear-gradient(to right, var(--rule), transparent); }
.turn h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* ============ SOLUTION CARDS ============ */

.solution {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.solution:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--rule); }
.solution-art {
  height: 118px;
  background: var(--slate-tint);
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  overflow: hidden;
}
.solution-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.solution-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.solution-body p { max-width: none; font-size: 0.9375rem; color: var(--stone); }
.solution-body .button-ghost { margin-top: auto; padding: 0.4rem 0; font-size: 0.9375rem; }

/* ============ PLATFORM SHOWCASE ============ */

.showcase-stage { position: relative; margin-top: 3rem; }
.showcase-shot { position: relative; z-index: 2; }
.showcase-shot .frame img { width: 100%; }

.ui-fragments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.fragment {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.fragment:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.fragment .fr-icon { width: 26px; height: 26px; border-radius: 7px; background: var(--slate-tint); display: grid; place-items: center; flex: none; }
.fragment .fr-icon svg { width: 15px; height: 15px; }
.fragment .fr-label { font-size: 0.875rem; font-weight: 500; }
.fragment .fr-meta { font-size: 0.75rem; color: var(--stone); }

/* Horizontal step rail */

.rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.5rem;
  position: relative;
}
.rail::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 1.1rem;
  height: 1px;
  background: var(--rule);
}
.rail-step { position: relative; padding-top: 3rem; }
.rail-step .rail-dot {
  position: absolute;
  top: 0; left: 0;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-head);
  color: var(--slate);
  box-shadow: 0 0 0 5px var(--paper);
}
.rail-step:last-child .rail-dot { border-color: var(--accent); color: var(--accent); }
.rail-step h3 { font-size: 1rem; }
.rail-step p { font-size: 0.875rem; color: var(--stone); margin-top: 0.25rem; max-width: 18rem; }

/* ============ TRUST BAND (dark) ============ */

.band-dark {
  background: var(--slate);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.band-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 60% at 82% 12%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(30% 50% at 8% 96%, rgba(46, 111, 94, 0.18), transparent 72%);
  pointer-events: none;
}
.band-dark > * { position: relative; z-index: 1; }
.band-dark h2 { color: #fff; }
.band-dark .eyebrow { color: rgba(240, 236, 228, 0.7); }
.band-dark .eyebrow::before { background: rgba(240, 236, 228, 0.5); }
.band-dark .lead { color: rgba(240, 236, 228, 0.82); }

.badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.badge {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.badge:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.badge svg { width: 22px; height: 22px; flex: none; }
/* The seventh badge spans the row so the grid never leaves an orphan. */
.badge-wide { grid-column: 1 / -1; }
.badge span { font-size: 0.9375rem; color: #fff; line-height: 1.35; }

/* ============ CLOSING CTA ============ */

.cta-band { background: var(--slate); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(240, 236, 228, 0.85); margin-top: 1rem; }
.cta-band .button { background: #fff; color: var(--slate); border-color: #fff; margin-top: 2rem; }
.cta-band .button:hover { background: var(--paper); border-color: var(--paper); }

/* ============ PLATFORM PAGE ============ */

.hero-lead { padding-bottom: 0; }

.shot-band { background: var(--slate-tint); padding-top: 2.5rem; padding-bottom: 3rem; }
.shot figure { margin: 0; }
.shot img { width: 100%; background: #fff; }
.shot figcaption {
  margin-top: 1.25rem;
  max-width: none;
  text-align: center;
  color: var(--stone);
  font-size: 0.9375rem;
}
.shot figcaption strong {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-right: 0.4rem;
}

/* Two column intro pattern kept for the platform and contact pages */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem 4rem;
  align-items: start;
}

.about { max-width: var(--measure); }
.about p + p { margin-top: 1em; }

/* ============ CONTACT ============ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem 5rem;
  align-items: start;
  margin-top: 2.5rem;
}
.contact-grid p + p { margin-top: 1.25rem; }

form { display: grid; gap: 1.25rem; max-width: 34rem; }
label { display: block; font-weight: 500; margin-bottom: 0.4rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(47, 63, 99, 0.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
form .button { justify-self: start; }
.form-note { color: var(--stone); font-size: 0.9375rem; }

/* ============ FOOTER ============ */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--stone);
  font-size: 0.9375rem;
}
.site-footer .brand { font-size: 1.125rem; }
.site-footer .brand img { width: 22px; height: 22px; }
.site-footer a { color: var(--stone); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ============ SCROLL REVEAL ============ */

/* Gated on .js so the page is fully readable without JavaScript.
   Uses the standalone translate property, not transform, so component
   hover lifts are never cancelled by the reveal finishing. */
.js .reveal-up {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}
.js .reveal-up.is-in { opacity: 1; translate: 0 0; }
.js .reveal-up[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal-up[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal-up[data-delay="3"] { transition-delay: 0.24s; }
.js .reveal-up[data-delay="4"] { transition-delay: 0.32s; }

/* ============ RESPONSIVE ============ */

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui-fragments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
  .rail::before { display: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero-shot .frame { width: 100%; }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .float-card { display: none; }      /* the frame goes full width on small screens */
  .hero-links { display: none; }
  .hero-shot { animation: none; }
  .hero-shot .frame img { aspect-ratio: 16 / 10; }
  .site-nav { gap: 1.4rem; }
  .site-nav a { font-size: 0.875rem; }
}

@media (max-width: 760px) {
  .card-grid, .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
  .ui-fragments { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .rail-step { padding-top: 0; padding-left: 3.1rem; }
  .rail-step .rail-dot { top: -0.15rem; }
  .split, .contact-grid, .field-row { grid-template-columns: 1fr; }
  .turn { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .turn h3 { white-space: normal; }
  .turn-line { width: 100%; flex: none; }
  h1 { max-width: 100%; }
  .site-header { gap: 1rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
  .site-nav { gap: 1rem; }
  .nav-desktop-only { display: none; }
  /* Less dead space between the header and the eyebrow on a phone. */
  .hero { padding-top: 1rem; }
}

/* Below this the links plus the CTA no longer fit on one row; Contact is
   the same destination, so the CTA steps aside. 520 covers the widest
   current phones, which sit at 430. */
@media (max-width: 520px) {
  .nav-cta { display: none; }
}

@media (max-width: 420px) {
  .site-nav a { font-size: 0.8125rem; }
}

/* Respect the user's motion preference. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .js .reveal-up { opacity: 1; translate: 0 0; }
  .hero h1 .accent-word { background-size: 100% 0.05em; }
}
