/* ==========================================================================
   Titan Technology — Design System
   Direction: "Instrument panel" — bordered spec cards, blue rule dividers,
   mono readouts, corner registration marks on the signature panels.
   ========================================================================== */

:root {
  /* Ink & ground */
  --ink:        #0A1626;
  --ink-soft:   #14263D;
  --slate:      #55677D;
  --slate-2:    #647589;
  --paper:      #EAE8E1;
  --card:       #FFFFFF;
  --line:       #DCE4EC;
  --line-soft:  #E8EDF3;

  /* Brand — sampled from the Titan mark */
  --blue:       #0350FE;
  --blue-deep:  #003BC4;
  --cyan:       #10DAF2;
  --brand-grad: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 100%);
  --blue-wash:  rgba(3, 80, 254, 0.06);
  --blue-line:  rgba(3, 80, 254, 0.28);

  /* Status */
  --signal:     #0A7F4E;
  --signal-bg:  rgba(10, 127, 78, 0.11);

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Metrics — tighter radii, flatter/harder shadows for the instrument look */
  --wrap: 1180px;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 0 rgba(10, 22, 38, .06);
  --shadow:    5px 5px 0 rgba(10, 22, 38, .05), 0 1px 0 rgba(10,22,38,.04);
  --shadow-lg: 7px 7px 0 rgba(10, 22, 38, .06), 0 1px 0 rgba(10,22,38,.04);
  --shadow-blue: 5px 5px 0 rgba(3, 80, 254, .14);
  --tick: var(--blue);
  --header-h: 74px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Kinetic background (kinetic-grid.js) — a single canvas fixed behind the
   whole page. It paints its own paper-toned fill each frame, so it shows
   through the hero and plain paper sections; white cards, the footer,
   and every other opaque surface still sit cleanly on top. Falls back to
   the plain --paper body background under reduced motion / no JS. */
.kinetic-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body.has-kinetic .hero { background: transparent; }
body.has-kinetic .hero::before { display: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--blue); color: #fff; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

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

/* --------------------------------------------------------------------------
   Corner registration marks — reserved for the signature instrument panels
   -------------------------------------------------------------------------- */

.ticked {
  position: relative;
  background-image:
    linear-gradient(to right, var(--tick) 2px, transparent 2px),
    linear-gradient(to bottom, var(--tick) 2px, transparent 2px),
    linear-gradient(to left,  var(--tick) 2px, transparent 2px),
    linear-gradient(to bottom, var(--tick) 2px, transparent 2px),
    linear-gradient(to right, var(--tick) 2px, transparent 2px),
    linear-gradient(to top,   var(--tick) 2px, transparent 2px),
    linear-gradient(to left,  var(--tick) 2px, transparent 2px),
    linear-gradient(to top,   var(--tick) 2px, transparent 2px);
  background-repeat: no-repeat;
  background-size: 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px;
  background-position: top -1px left -1px, top -1px left -1px, top -1px right -1px, top -1px right -1px,
                        bottom -1px left -1px, bottom -1px left -1px, bottom -1px right -1px, bottom -1px right -1px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.026em;
  font-stretch: 105%;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.012em; font-stretch: 100%; }

p { text-wrap: pretty; }

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--slate);
  line-height: 1.7;
  max-width: 62ch;
}

/* Mono utility label — the spine of the whole system */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
  opacity: .55;
}

.eyebrow.on-dark { color: var(--cyan); }
.eyebrow.on-dark::before { background: var(--cyan); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

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

.section { padding-block: clamp(44px, 5.6vw, 80px); }
.section--tight { padding-block: clamp(32px, 4vw, 52px); }
.section--paper { background: var(--paper); }
.section--white { background: #fff; border-top: 2px solid var(--blue-line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 68ch; margin-bottom: clamp(26px, 3.4vw, 42px); }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head h2 { margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 2px solid var(--blue-line);
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.site-header.is-stuck {
  box-shadow: 0 6px 24px -14px rgba(10, 22, 38, .28);
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--blue);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -.02em;
  font-stretch: 108%;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--slate);
  padding: 8px 13px;
  border-radius: var(--r-sm);
  transition: color .18s ease, background .18s ease;
}

.nav-links a:hover { color: var(--ink); background: rgba(10, 22, 38, .045); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links a .letter { display: inline-block; font-variant-numeric: tabular-nums; }
.nav-links a .letter.is-dropping {
  animation: letterDrop .7s cubic-bezier(.22,.61,.36,1);
}
@keyframes letterDrop {
  0%   { transform: translateY(0); }
  32%  { transform: translateY(68%); }
  58%  { transform: translateY(-10%); }
  78%  { transform: translateY(3%); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links a .letter.is-dropping { animation: none; }
}

.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.005em;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease,
              background .18s ease, border-color .18s ease, color .18s ease;
}

.btn svg { flex-shrink: 0; }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn--brand {
  background: var(--blue);
  color: #fff;
}
.btn--brand:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-blue); }

.btn--onDark {
  background: #fff;
  color: var(--ink);
}
.btn--onDark:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 rgba(0,0,0,.28); }

.btn--outlineDark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn--outlineDark:hover { border-color: #fff; transform: translateY(-2px); }

.btn--sm { padding: 9px 16px; font-size: .88rem; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .93rem;
  color: var(--blue);
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

/* Engineering grid + brand wash — the working fallback when JS/the canvas
   below isn't running (no-JS, reduced motion). Hidden once the kinetic
   background boots, so the two grids never double up. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 22, 38, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 22, 38, .05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -280px; right: -180px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(16, 218, 242, .18), rgba(3, 80, 254, .12) 42%, transparent 68%);
  pointer-events: none;
  animation: floatY 11s ease-in-out infinite;
}

.hero .wrap { position: relative; z-index: 1; padding-block: clamp(28px, 4vw, 56px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-sub {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--blue);
  letter-spacing: -.015em;
  margin-bottom: 4px;
}

/* Readout strip — used for the About page credentials line */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--blue-line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 620px;
}
.trust-strip div { background: #fff; padding: 16px 20px; border-top: 2px solid var(--blue-line); }
.trust-strip dt {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 5px;
}
.trust-strip dd { font-size: .92rem; font-weight: 500; color: var(--ink); line-height: 1.4; }
@media (max-width: 780px) {
  .trust-strip { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Hero — open layout (no boxed chrome). A split hero on the homepage
   (copy + the intake ticket), a single-column hero everywhere else.
   -------------------------------------------------------------------------- */

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 7.5vw, 108px);
}
.hero-inner--split { grid-template-columns: 1.05fr .95fr; }
.hero-inner--single { max-width: 66ch; }

.hero-headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-block: 16px 18px;
}

@media (max-width: 1020px) {
  .hero-inner--split { grid-template-columns: 1fr; }
}


.intake {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 3px;
}

.intake-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: calc(var(--r-lg) - 3px) calc(var(--r-lg) - 3px) 0 0;
  border-bottom: 2px solid var(--cyan);
}

.intake-top .tag {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.intake-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.72);
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-bg);
}

.intake-body {
  padding: 22px 20px 20px;
  position: relative;
  background-image:
    linear-gradient(to right, var(--blue) 2px, transparent 2px),
    linear-gradient(to bottom, var(--blue) 2px, transparent 2px),
    linear-gradient(to left,  var(--blue) 2px, transparent 2px),
    linear-gradient(to bottom, var(--blue) 2px, transparent 2px);
  background-repeat: no-repeat;
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px;
  background-position: bottom left, bottom left, bottom right, bottom right;
}

.intake-q {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -.015em;
  margin-bottom: 4px;
}

.intake-hint { font-size: .88rem; color: var(--slate-2); margin-bottom: 16px; }

.intake-list { display: grid; gap: 8px; }

.intake-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: var(--r-sm);
  background: #fff;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.intake-item:hover {
  border-color: var(--blue-line);
  border-left-color: var(--blue);
  background: var(--blue-wash);
  transform: translateX(3px);
}

.intake-item svg { color: var(--blue); flex-shrink: 0; transition: transform .2s ease; }
.intake-item:hover svg { transform: translateX(3px); }

.intake-foot {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #FBFCFE;
  border-radius: 0 0 calc(var(--r-lg) - 3px) calc(var(--r-lg) - 3px);
}

.intake-foot span { font-size: .85rem; color: var(--slate-2); }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

a.card:hover, .card--hover:hover {
  transform: translateY(-6px) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  border-color: var(--blue-line);
  border-top-color: var(--blue);
  box-shadow: var(--shadow-blue);
}

.card-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--blue-wash);
  border: 1px solid rgba(3, 80, 254, .14);
  color: var(--blue);
  margin-bottom: 18px;
}

.card-tag {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate-2);
  display: block;
  margin-bottom: 8px;
}

.card h3 { margin-bottom: 9px; }
.card p { font-size: .95rem; color: var(--slate); line-height: 1.62; }

/* --------------------------------------------------------------------------
   Checklist board (homepage "what gets looked after") — readout grid
   -------------------------------------------------------------------------- */

.board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-bottom: 2px solid var(--blue-line);
  background: #FBFCFE;
}

.board-head h3 { font-size: 1.05rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--signal-bg);
  color: var(--signal);
  font-weight: 500;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--blue-line);
}

.board-cell {
  background: #fff;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.board-cell .lbl {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.board-cell .val {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -.015em;
}

.check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--signal-bg);
  color: var(--signal);
  display: grid; place-items: center;
}

.board-foot {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: #FBFCFE;
  font-size: .92rem;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Services (services.html)
   -------------------------------------------------------------------------- */

.svc-card { display: flex; flex-direction: column; }

/* Pricing — promoted header strip since .card-tag is each card's first child */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 24px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.price-card:hover {
  transform: translateY(-6px) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  border-color: var(--blue-line);
  box-shadow: var(--shadow-blue);
}

.price-card .card-tag {
  display: block;
  margin: 0 -24px 22px;
  padding: 12px 24px;
  background: var(--blue-wash);
  border-bottom: 2px solid var(--blue-line);
  border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0;
  letter-spacing: .16em;
  color: var(--blue);
}

.price-card h3 { font-size: 1.15rem; margin-bottom: 14px; }

.price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -.03em;
  font-stretch: 105%;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: .4rem;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.price .per {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 3px 8px;
  border-radius: 4px;
}

.feat { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; flex: 1; }

.feat li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .93rem;
  color: var(--slate);
  line-height: 1.5;
}

.feat svg { color: var(--blue); flex-shrink: 0; margin-top: 4px; }

/* --------------------------------------------------------------------------
   Process (process.html)
   -------------------------------------------------------------------------- */

.stages { display: grid; gap: 0; border-top: 1px solid var(--line); }

.stage {
  display: grid;
  grid-template-columns: 84px 1fr 220px;
  gap: 32px;
  align-items: start;
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}

.stage:hover { background: rgba(255,255,255,.7); }

.stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border: 1px solid var(--blue-line);
  border-radius: var(--r-sm);
  background: var(--blue-wash);
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -.02em;
}

.stage h3 { font-size: 1.35rem; margin-bottom: 10px; }
.stage p { color: var(--slate); font-size: .98rem; max-width: 56ch; }

.stage-meta {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-2);
  padding-top: 8px;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Team (team.html)
   -------------------------------------------------------------------------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.member {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.member:hover {
  transform: translateY(-7px) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  border-color: var(--blue-line);
  box-shadow: var(--shadow-lg);
}

.member-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 2px solid var(--blue-line);
}

.member-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(100%) contrast(1.02);
  transition: filter .4s ease, transform .5s ease;
}

.member:hover .member-photo img { filter: grayscale(0%); transform: scale(1.03); }

.member-body { padding: 24px; }
.member-body h3 { font-size: 1.28rem; margin-bottom: 4px; }

.member-role {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.member-body p { font-size: .94rem; color: var(--slate); line-height: 1.65; }

/* --------------------------------------------------------------------------
   About (about.html)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}

.portrait {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue-line);
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5.55;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%);
}

.portrait figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 20px 16px;
  background: linear-gradient(to top, rgba(10,22,38,.9), transparent);
  color: #fff;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tick-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; margin-top: 28px; }

.tick-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  font-weight: 500;
}

.tick-list svg { color: var(--blue); flex-shrink: 0; }

/* Credentials — same promoted header-strip language as pricing */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.cred {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue-line);
  border-radius: var(--r);
  padding: 0 22px 24px;
}

.cred .card-tag {
  display: block;
  margin: 0 -22px 14px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
}

.cred h3 { font-size: 1.12rem; margin-bottom: 6px; }
.cred p { font-size: .92rem; color: var(--slate); }

/* Capability marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #fff;
  padding-block: 20px;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: slide 46s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.chip {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  white-space: nowrap;
  background: #fff;
}

.chip--brand { border-color: var(--blue-line); color: var(--blue); background: var(--blue-wash); }

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Discipline cards (about) */
.disc {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.disc:hover { transform: translateY(-6px) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); border-color: var(--blue-line); border-top-color: var(--blue); box-shadow: var(--shadow-blue); }

/* --------------------------------------------------------------------------
   FAQ (faq.html)
   -------------------------------------------------------------------------- */

.faq-list {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  transition: background .18s ease, color .18s ease;
}

.faq-q:hover { background: #FBFCFE; color: var(--blue); }

.faq-icon {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--blue);
  transition: transform .3s ease, background .2s ease, border-color .2s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--blue); color: #fff; border-color: var(--blue); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
}

.faq-a p {
  padding: 0 26px 24px;
  color: var(--slate);
  font-size: .98rem;
  max-width: 74ch;
}

/* --------------------------------------------------------------------------
   Contact (contact.html)
   -------------------------------------------------------------------------- */

/* Contact wizard — a single card the visitor clicks through: service,
   then details, then their info. Real form fields live inside each step
   so the existing Formspree submission in main.js needs no changes. */

.wizard {
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wizard-head { padding: 28px 32px 0; }

.wizard-steps { display: flex; gap: 28px; margin-bottom: 18px; flex-wrap: wrap; }

.wizard-step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--slate-2);
  transition: color .2s ease;
}
.wizard-step em {
  font-style: normal;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: .64rem;
  color: var(--slate-2);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.wizard-step.is-active { color: var(--ink); font-weight: 600; }
.wizard-step.is-active em { border-color: var(--blue); color: var(--blue); background: var(--blue-wash); }
.wizard-step.is-done em { border-color: var(--blue); color: #fff; background: var(--blue); }

.wizard-bar { height: 3px; background: var(--line-soft); }
.wizard-bar-fill { display: block; height: 100%; width: 33.33%; background: var(--blue); transition: width .4s ease; }

.wizard-step-panel { padding: 28px 32px 32px; }
.wizard-step-panel[hidden] { display: none; }

.wizard-q {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 18px;
}

.wizard-hint { font-size: .86rem; color: var(--slate-2); margin-bottom: 16px; margin-top: -10px; }

.wizard-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.wizard-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 500;
  text-align: left;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.wizard-choice:hover { border-color: var(--blue-line); background: var(--blue-wash); transform: translateY(-2px); }
.wizard-choice.is-selected { border-color: var(--blue); background: var(--blue-wash); color: var(--blue); font-weight: 600; }

.wizard-check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  color: transparent;
  background: #fff;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.wizard-choice.is-selected .wizard-check {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.wizard-actions--single { justify-content: flex-end; }
.wizard-actions--single .btn { flex: none; }

.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.wizard-actions .btn--brand,
.wizard-actions .btn--ghost { flex: 1; }

@media (max-width: 560px) {
  .wizard-choices { grid-template-columns: 1fr; }
  .wizard-head, .wizard-step-panel { padding-inline: 22px; }
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 9px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: #FBFCFE;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--slate-2); }

.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(3, 80, 254, .12);
}

.field textarea { min-height: 148px; resize: vertical; line-height: 1.6; }

.form-note {
  font-size: .86rem;
  color: var(--slate-2);
  text-align: center;
  margin-top: 16px;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 500;
}

.form-status.ok { display: block; background: var(--signal-bg); color: var(--signal); }
.form-status.err { display: block; background: rgba(220, 38, 38, .08); color: #DC2626; }

.hp { position: absolute; left: -9999px; opacity: 0; }

/* --------------------------------------------------------------------------
   Closing — a single asymmetric dark module (message + site index) that
   replaces the old centered-CTA-then-three-equal-columns footer pattern.
   -------------------------------------------------------------------------- */

.closing {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255,255,255,.62);
  border-top: 2px solid var(--blue-deep);
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 70% 60% at 15% 20%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 15% 20%, #000, transparent 72%);
}

.closing::after {
  content: "";
  position: absolute;
  top: -10%; left: -6%;
  width: 620px; height: 460px;
  background: radial-gradient(ellipse, rgba(3, 80, 254, .24), transparent 66%);
  pointer-events: none;
  animation: pulseGlow 7s ease-in-out infinite;
}

.closing-word {
  position: absolute;
  z-index: 0;
  right: clamp(-40px, -3vw, 10px);
  bottom: -.1em;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 120%;
  font-size: clamp(5rem, 15vw, 11rem);
  line-height: .78;
  letter-spacing: -.03em;
  color: #fff;
  opacity: .045;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.closing-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(36px, 5vw, 72px);
  padding-block: clamp(44px, 6vw, 68px) clamp(32px, 4vw, 44px);
}

.closing-brand { display: grid; gap: 16px; align-content: start; }
.closing-tagline-text { color: rgba(255,255,255,.66); font-size: .92rem; line-height: 1.6; max-width: 34ch; }

.closing-badges {
  list-style: none;
  display: grid;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.closing-badges li { display: flex; align-items: baseline; gap: 8px; font-size: .88rem; color: rgba(255,255,255,.6); }
.closing-badges strong {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  flex-shrink: 0;
}

/* Contact row — the email lives here now, as a real clickable row with an
   icon, instead of sitting alone under an orphaned "Direct" heading. */
.closing-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.closing-contact-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  color: var(--cyan);
  flex-shrink: 0;
  transition: background .18s ease, border-color .18s ease;
}
.closing-contact-row:hover .closing-contact-ico { background: rgba(255,255,255,.13); border-color: var(--cyan); }
.closing-contact-text { display: grid; }
.closing-contact-email { font-size: .92rem; font-weight: 500; color: #fff; word-break: break-word; }
.closing-contact-sub { font-size: .78rem; color: rgba(255,255,255,.45); }

.closing-label {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.closing-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-content: start; }
.closing-linkgroup { display: grid; gap: 8px; align-content: start; }
.closing-linkrow { display: flex; flex-wrap: wrap; gap: 7px 20px; }
.closing-linkrow a { font-size: .92rem; color: rgba(255,255,255,.72); transition: color .18s ease; white-space: nowrap; }
.closing-linkrow a:hover { color: #fff; }
.closing-note { font-size: .84rem; color: rgba(255,255,255,.42); line-height: 1.6; }

/* Newsletter — a small functional form living in the brand column */
.newsletter-form { margin-top: 4px; max-width: 320px; }
.newsletter-row { position: relative; }
.newsletter-row input {
  width: 100%;
  font-family: var(--body);
  font-size: .88rem;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 100px;
  padding: 10px 46px 10px 16px;
  transition: border-color .18s ease, background .18s ease;
}
.newsletter-row input::placeholder { color: rgba(255,255,255,.38); }
.newsletter-row input:focus {
  outline: none;
  background: rgba(255,255,255,.1);
  border-color: var(--cyan);
}
.newsletter-row button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.newsletter-row button:hover { background: var(--cyan); color: var(--ink); transform: scale(1.06); }
.newsletter-status {
  font-size: .78rem;
  margin-top: 8px;
  min-height: 1.2em;
  color: rgba(255,255,255,.5);
}
.newsletter-status.ok { color: #6FE3A5; }
.newsletter-status.err { color: #FF9B9B; }

.closing-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
}

.closing-bottom .tagline {
  font-family: var(--mono);
  letter-spacing: .08em;
  font-size: .76rem;
  color: rgba(255,255,255,.45);
}

@media (max-width: 900px) {
  .closing-top { grid-template-columns: 1fr; }
  .closing-word { display: none; }
}

@media (max-width: 560px) {
  .closing-links { grid-template-columns: 1fr; }
  .closing-bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Scroll reveal — base hidden state only; animations.js (GSAP) drives the
   actual motion. Without JS, elements are simply visible (no FOUC risk).
   -------------------------------------------------------------------------- */

.reveal.js-armed { opacity: 0; }

/* --------------------------------------------------------------------------
   Motion & interaction layer
   -------------------------------------------------------------------------- */

/* Gradient text accent */
.grad-text {
  background: var(--brand-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-22px) translateX(10px) scale(1.06); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Floating decorative orbs used in hero sections */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 35% 35%, rgba(16,218,242,.55), rgba(3,80,254,.26) 55%, transparent 76%);
  opacity: .55;
  animation: floatY 9s ease-in-out infinite;
}
.orb--a { width: 220px; height: 220px; top: -70px; left: -60px; animation-duration: 12s; }
.orb--b { width: 150px; height: 150px; bottom: -40px; right: 8%; animation-duration: 8s; animation-delay: -3s; }
.orb--c { width: 110px; height: 110px; top: 34%; right: -26px; animation-duration: 13s; animation-delay: -6s; opacity: .4; }

.hero .wrap { position: relative; z-index: 1; }

/* Faint grid texture — carried by every white panel section for a
   consistent schematic/blueprint backdrop, not just the hero */
.section--grid, .section--white { position: relative; overflow: hidden; }
.section--grid::before, .section--white::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 22, 38, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 22, 38, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 15%, transparent 75%);
  pointer-events: none;
}
.section--grid > .wrap, .section--white > .wrap { position: relative; z-index: 1; }

/* Opt out of the grid texture on a specific white section (e.g. a page's
   very last content block, so it doesn't compete with cards right above it) */
.section--flat::before { display: none; }

/* Mouse-tilt for interactive cards (class applied by main.js) */
.tilt { --rx: 0deg; --ry: 0deg; transform-style: preserve-3d; }

/* Button shine sweep + click ripple */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,.5);
  animation: rippleAnim .6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(3.2); opacity: 0; } }

/* Nav link underline sweep */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 2px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  border-radius: 2px;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Ferrari responsible-disclosure feature — spinning emblem
   -------------------------------------------------------------------------- */

/* Ferrari recognition — styled as a native "record" panel, matching the
   homepage's board/readout component instead of borrowing outside branding */
.board-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding: clamp(30px, 4vw, 44px) 24px;
  border-bottom: 1px solid var(--line);
}

.board-head .grad-text { font-weight: 800; }

@media (max-width: 780px) {
  .board-body { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

.ferrari-emblem {
  position: relative;
  width: 250px;
  height: 250px;
  flex-shrink: 0;
  margin-inline: auto;
}

/* Rotating radar-style scan wash behind everything */
.emblem-scan {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(3, 80, 254, .22) 55deg, transparent 130deg, transparent 360deg);
  filter: blur(3px);
  animation: spinSlow 5s linear infinite;
}

/* Tachometer-style tick bezel — pure CSS, no per-tick markup */
.emblem-ticks {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--blue-line) 0deg 1.6deg, transparent 1.6deg 9deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 15px), #000 calc(100% - 14px), #000 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 15px), #000 calc(100% - 14px), #000 100%);
  animation: spinSlow 50s linear infinite;
}

.emblem-ring {
  position: absolute;
  inset: 26px;
  width: calc(100% - 52px);
  height: calc(100% - 52px);
  animation: spinSlow 24s linear infinite;
}
.emblem-ring text {
  font-family: var(--mono);
  font-size: 10.4px;
  letter-spacing: .04em;
  fill: var(--blue);
  text-transform: uppercase;
}

.emblem-dashed {
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  border: 2px dashed var(--blue-line);
  animation: spinSlow 9s linear infinite reverse;
}

.emblem-disc {
  position: absolute;
  inset: 72px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  color: var(--ink);
  animation: pulseScale 3.2s ease-in-out infinite;
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow-lg); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px var(--blue-wash), var(--shadow-lg); }
}

.emblem-disc svg { animation: iconWiggle 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes iconWiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  40%      { transform: scale(1.14) rotate(-6deg); }
  55%      { transform: scale(1.14) rotate(6deg); }
  70%      { transform: scale(1.05) rotate(0deg); }
}

.emblem-disc svg .check-stroke {
  stroke-dasharray: 9;
  stroke-dashoffset: 9;
  animation: checkDraw 3.2s ease-in-out infinite;
}
@keyframes checkDraw {
  0%, 22%  { stroke-dashoffset: 9; }
  50%, 100% { stroke-dashoffset: 0; }
}

.emblem-caption {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  background: var(--signal-bg);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Diagonal chevron accent — signature motion motif */
.chevron-accent {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  margin-left: 12px;
  vertical-align: middle;
}
.chevron-accent span {
  width: 4px;
  height: 16px;
  background: var(--blue);
  transform: skewX(-18deg);
  animation: chevronPulse 1.8s ease-in-out infinite;
}
.chevron-accent span:nth-child(2) { animation-delay: .15s; height: 20px; }
.chevron-accent span:nth-child(3) { animation-delay: .3s; }
@keyframes chevronPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* Oversized background wordmark — fills hero dead space */
.hero-word {
  position: absolute;
  z-index: 0;
  right: clamp(-50px, -3vw, 6px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 120%;
  font-size: clamp(6rem, 20vw, 15rem);
  line-height: .78;
  letter-spacing: -.035em;
  color: var(--ink);
  opacity: .05;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Vertical scroll cue */
.side-label {
  position: absolute;
  left: 16px;
  bottom: 30px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate-2);
  z-index: 1;
}
.side-arrow { display: inline-block; animation: bounceY 1.6s ease-in-out infinite; }
@keyframes bounceY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Layered overlap card — pulls content up over the hero edge */
.overlap-lift {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 3.6vw, 42px) clamp(24px, 4vw, 40px);
  margin-top: clamp(-58px, -5vw, -34px);
}

@media (max-width: 780px) {
  .hero-word, .side-label { display: none; }
  .overlap-lift { margin-top: -18px; }
}

@media (max-width: 780px) {
  .ferrari-emblem { margin-top: 6px; }
  .orb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .grad-text, .emblem-ring, .emblem-dashed, .emblem-disc, .emblem-scan, .emblem-ticks,
  .btn::before, .hero::after, .closing::after {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .grid--3, .price-grid, .cred-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(3, 1fr); }
  .board-grid--five .board-cell:last-child { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .stage { grid-template-columns: 64px 1fr; gap: 22px; }
  .stage-meta { grid-column: 2; text-align: left; padding-top: 0; }
}

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px 22px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 12px; font-size: 1rem; border-radius: var(--r-sm); }
  .nav-toggle { display: flex; }
  .nav-right .btn { display: none; }

  body { font-size: 16px; }
  .grid--3, .grid--2, .price-grid, .cred-grid, .team-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid--five .board-cell:last-child { grid-column: 1 / -1; }
  .trust-strip { grid-template-columns: 1fr; max-width: none; }
  .tick-list { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .faq-q { padding: 18px 20px; font-size: 1rem; }
  .faq-a p { padding: 0 20px 20px; }
}

@media (max-width: 460px) {
  .board-grid { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; gap: 12px; }
  .stage-meta { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal.js-armed { opacity: 1; }
}

@media print {
  .site-header, .closing, .nav-toggle { display: none; }
  body { background: #fff; }
}
