/* ==========================================================================
   AESTHETIC RANK LAB — "Instrument" design system
   Palette is unchanged from the live site. Elegance comes from type,
   hairlines and whitespace; the lab feeling comes from measurement motifs:
   mono labels, tick rules, calibration grids, specimen cards, readouts.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — carried over verbatim from the Elementor global kit */
  --mint:        #65DCCA;
  --mint-lift:   #66DDCC;
  --ink:         #1A1A1A;
  --ink-pure:    #000000;
  --paper:       #F6F3F4;
  --paper-2:     #FFFFFF;
  --grey:        #797979;
  --grey-cool:   #99A1AF;
  --slate:       #6A7282;
  --rule-cool:   #DBE5E9;

  /* Derived surfaces — tints of the brand colors only, no new hues */
  --ink-raise:   #202020;
  --ink-raise-2: #262626;
  --rule-dark:   rgba(255,255,255,0.10);
  --rule-dark-2: rgba(255,255,255,0.055);
  --rule-light:  #E2DDDE;
  --mint-wash:   rgba(101,220,202,0.08);
  --mint-glow:   rgba(101,220,202,0.26);
  --on-dark:     #FFFFFF;
  --on-dark-mute:rgba(255,255,255,0.58);
  --on-dark-dim: rgba(255,255,255,0.38);

  /* Type */
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Measure */
  --gut: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --max-text: 68ch;
  --band: clamp(72px, 10vw, 152px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 900ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 300; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(46px, 7.4vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.028em;
}
.h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.013em;
}
.h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.008em;
}
/* Heading colour guard.
   Elementor's global kit sets `h1 { color: #1A1A1A }` as an element selector.
   Our display classes carried no colour of their own, so the H1 rendered black
   on the dark hero. Declaring colour on the classes (specificity 0,1,0) beats
   the element rule, and the .paper override keeps light sections correct. */
.display, .h2, .h3, .h4 { color: var(--on-dark); }
.paper .display,
.paper .h2,
.paper .h3,
.paper .h4 { color: var(--ink); }

/* The single italic accent word — borrowed structure, our own color */
.accent { font-style: italic; color: var(--mint); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--mint);
  opacity: 0.55;
  flex: none;
}
.eyebrow--plain::before { display: none; }
.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--on-dark-mute);
  max-width: 54ch;
}
.mono-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.band { padding: var(--band) 0; position: relative; }
.band--tight { padding: clamp(52px, 7vw, 96px) 0; }
.rule { height: 1px; background: var(--rule-dark); border: 0; margin: 0; }

/* Light (paper) sections — the elegance counterweight to the dark lab */
.paper {
  background: var(--paper);
  color: var(--ink);
}
.paper .lede { color: var(--grey); }
.paper .eyebrow { color: var(--ink); }
.paper .eyebrow::before { background: var(--ink); opacity: 0.3; }
.paper .accent { color: var(--ink); font-style: italic; }
.paper .mono-label { color: var(--slate); }
.paper .rule { background: var(--rule-light); }

/* Calibration grid — the lab substrate, drawn not imaged */
.grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule-dark-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-dark-2) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.paper.grid-bg::before {
  background-image:
    linear-gradient(rgba(26,26,26,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,26,0.045) 1px, transparent 1px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 240ms var(--ease), color 240ms var(--ease),
              border-color 240ms var(--ease), transform 240ms var(--ease);
  will-change: transform;
}
.btn .arr { transition: transform 240ms var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--mint); color: var(--ink); }
.btn--primary:hover { background: var(--mint-lift); transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid var(--rule-dark);
  color: var(--on-dark);
}
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }
.paper .btn--ghost { border-color: rgba(26,26,26,0.18); color: var(--ink); }
.paper .btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--mint);
  transition: gap 200ms var(--ease);
}
.link-arrow:hover { gap: 14px; }
.paper .link-arrow { color: var(--ink); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(26,26,26,0.72);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid var(--rule-dark);
}
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 72px;
}
.brand { display: flex; align-items: baseline; gap: 9px; }
.brand-mark {
  font-family: var(--display); font-size: 21px; letter-spacing: -0.02em; color: var(--on-dark);
}
/* LAB tracking: uppercase italic serif needs positive tracking */
.brand-mark b { font-weight: 300; color: var(--mint); font-style: italic; letter-spacing: 0.03em; }
.brand-sub {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--on-dark-dim);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14.5px; font-weight: 400; color: var(--on-dark-mute);
  transition: color 200ms var(--ease);
}
.nav a:hover { color: var(--on-dark); }
.head-cta { display: flex; align-items: center; gap: 14px; }
.head-cta .btn { padding: 11px 20px; font-size: 14px; }
.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.burger span { display: block; width: 19px; height: 1px; background: var(--on-dark); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 1px; background: var(--on-dark);
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(60px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 1100px; height: 1100px; left: 50%; top: -480px; transform: translateX(-50%);
  background: radial-gradient(circle at center, var(--mint-glow) 0%, transparent 62%);
  opacity: 0.5;
}
.hero-in { position: relative; z-index: 2; display: grid; gap: clamp(44px, 5vw, 72px); }
@media (min-width: 1040px) { .hero-in { grid-template-columns: 1.04fr 0.96fr; align-items: center; } }
.hero-copy { display: grid; gap: 26px; }
.hero h1 { max-width: 15ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero stat strip */
.hero-strip {
  margin-top: 8px; display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  background: var(--rule-dark); border: 1px solid var(--rule-dark);
}
.hero-strip div { background: var(--ink); padding: 16px 18px; }
.hero-strip dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-dim); margin-bottom: 6px; }
.hero-strip dd { margin: 0; font-family: var(--display); font-size: 27px; letter-spacing: -0.02em; color: var(--mint); }

/* ---------- Instrument: the AI answer monitor ---------- */
.instrument {
  border: 1px solid var(--rule-dark);
  background: linear-gradient(180deg, var(--ink-raise) 0%, var(--ink) 100%);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9);
}
.inst-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 18px; border-bottom: 1px solid var(--rule-dark);
  background: rgba(255,255,255,0.016);
}
.inst-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-mute); }
.inst-live { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.76); } }
.inst-body { padding: 22px 18px 18px; }
.inst-prompt {
  font-family: var(--mono); font-size: 12px; color: var(--on-dark-mute);
  padding: 11px 13px; border: 1px dashed var(--rule-dark); border-radius: 2px;
  margin-bottom: 20px; min-height: 42px; display: flex; align-items: center;
}
.inst-prompt .caret { display: inline-block; width: 7px; height: 14px; background: var(--mint); margin-left: 3px; animation: blink 1.1s steps(2) infinite; vertical-align: middle; }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
.inst-rows { display: grid; gap: 14px; }
.inst-row { display: grid; grid-template-columns: 92px 1fr 46px; align-items: center; gap: 13px; }
.inst-row .who { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--on-dark-mute); }
.meter { height: 5px; background: rgba(255,255,255,0.07); border-radius: 99px; overflow: hidden; }
.meter i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--mint) 0%, rgba(101,220,202,0.55) 100%);
  transition: width 1200ms var(--ease);
}
.inst-row.is-you .who { color: var(--mint); }
.inst-row .val { font-family: var(--mono); font-size: 11.5px; color: var(--on-dark-mute); text-align: right; font-variant-numeric: tabular-nums; }
.inst-row.is-you .val { color: var(--mint); }
.inst-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-top: 1px solid var(--rule-dark);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-dim);
}

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: slide 44s linear infinite; }
.marquee span {
  font-family: var(--display); font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.02em; color: var(--on-dark-dim); white-space: nowrap;
}
.marquee span em { font-style: italic; color: var(--mint); }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Section head ---------- */
.sec-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(44px, 5vw, 72px); }
.sec-head--split { max-width: none; }
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 48px; }
}

/* ---------- Specimen cards (the four signals) ---------- */
.specimens { display: grid; gap: 1px; background: var(--rule-light); border: 1px solid var(--rule-light); }
@media (min-width: 720px) { .specimens { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .specimens { grid-template-columns: repeat(4, 1fr); } }
.specimen {
  background: var(--paper); padding: 30px 26px 32px;
  display: grid; gap: 14px; align-content: start;
  position: relative; transition: background 300ms var(--ease);
}
.specimen:hover { background: var(--paper-2); }
.specimen-no {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--slate);
  display: flex; align-items: center; gap: 9px;
}
.specimen-no::after { content: ""; flex: 1; height: 1px; background: var(--rule-light); }
.specimen p { font-size: 15.5px; line-height: 1.6; color: var(--grey); }
/* Tick marks — the measurement cue */
.ticks { display: flex; gap: 3px; align-items: flex-end; height: 20px; margin-top: 4px; }
.ticks i { width: 2px; background: var(--ink); opacity: 0.16; border-radius: 1px; }
.specimen:hover .ticks i { opacity: 0.4; }
.ticks i { transition: opacity 300ms var(--ease), background 300ms var(--ease); }

/* ---------- Comparison table: SEO vs AEO ---------- */
.compare { border: 1px solid var(--rule-dark); border-radius: 3px; overflow: hidden; }
.compare-row { display: grid; border-bottom: 1px solid var(--rule-dark); }
.compare-row:last-child { border-bottom: 0; }
@media (min-width: 820px) { .compare-row { grid-template-columns: 0.9fr 1.05fr 1.05fr; } }
.compare-row > * { padding: 20px 22px; }
.compare-head { background: rgba(255,255,255,0.02); }
.compare-head > * { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-dim); }
.compare-head .is-ours { color: var(--mint); }
.compare-row .q { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-dim); }
.compare-row .a { font-size: 15.5px; color: var(--on-dark-mute); border-left: 1px solid var(--rule-dark); }
.compare-row .a.is-ours { color: var(--on-dark); background: var(--mint-wash); }
@media (max-width: 819px) {
  .compare-row .a { border-left: 0; border-top: 1px solid var(--rule-dark); }
  .compare-head { display: none; }
  .compare-row .a::before {
    content: attr(data-label); display: block; font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.13em; text-transform: uppercase; color: var(--on-dark-dim); margin-bottom: 7px;
  }
}

/* ---------- Interactive assay (the scorer) ---------- */
.assay { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 980px) { .assay { grid-template-columns: 1fr 0.86fr; align-items: start; } }
.assay-qs { display: grid; gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); }
.assay-q { background: var(--ink); padding: 20px 22px; display: grid; gap: 14px; }
.assay-q > .h4 { font-size: 16.5px; font-weight: 400; }
.assay-q .mono-label { margin-bottom: -4px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 9px 15px; border: 1px solid var(--rule-dark); border-radius: 2px;
  font-size: 13.5px; color: var(--on-dark-mute);
  transition: all 200ms var(--ease);
}
.opt:hover { border-color: var(--on-dark-dim); color: var(--on-dark); }
.opt[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: var(--ink); font-weight: 500; }

/* Readout gauge */
.readout {
  border: 1px solid var(--rule-dark); border-radius: 3px; position: sticky; top: 96px;
  background: linear-gradient(180deg, var(--ink-raise) 0%, var(--ink) 100%);
}
.readout-top { padding: 26px 24px 20px; border-bottom: 1px solid var(--rule-dark); text-align: center; }
.gauge { width: 184px; height: 104px; margin: 6px auto 12px; position: relative; }
.gauge svg { overflow: visible; }
.gauge-track { stroke: rgba(255,255,255,0.09); }
.gauge-fill { stroke: var(--mint); stroke-linecap: round; transition: stroke-dashoffset 900ms var(--ease); }
.gauge-num {
  position: absolute; left: 0; right: 0; bottom: 2px;
  font-family: var(--display); font-size: 46px; letter-spacing: -0.03em; color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.gauge-num small { font-size: 17px; color: var(--on-dark-dim); }
.readout-verdict { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); }
.readout-bars { padding: 20px 24px; display: grid; gap: 15px; }
.readout-bar { display: grid; gap: 7px; }
.readout-bar .rb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.readout-bar .rb-name { font-size: 14px; color: var(--on-dark-mute); }
.readout-bar .rb-val { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--on-dark-dim); }
.readout-foot { padding: 18px 24px 22px; border-top: 1px solid var(--rule-dark); display: grid; gap: 12px; }
.readout-foot p { font-size: 13.5px; color: var(--on-dark-mute); }

/* ---------- Services ---------- */
.svc-list { border-top: 1px solid var(--rule-light); }
.svc {
  display: grid; gap: 14px; padding: 30px 0;
  border-bottom: 1px solid var(--rule-light);
  position: relative;
  transition: padding-left 320ms var(--ease);
}
@media (min-width: 880px) {
  .svc { grid-template-columns: 58px 1.1fr 1.25fr auto; align-items: center; gap: 32px; }
  .svc:hover { padding-left: 14px; }
}
.svc-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--slate); }
.svc p { font-size: 15.5px; color: var(--grey); }
.svc-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }

/* ---------- Proof / results ---------- */
.proof { display: grid; gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof-cell { background: var(--ink); padding: 34px 26px; display: grid; gap: 12px; align-content: start; }
.proof-num { font-family: var(--display); font-size: clamp(42px, 4.6vw, 62px); letter-spacing: -0.03em; color: var(--mint); line-height: 1; }
.proof-cell p { font-size: 15px; color: var(--on-dark-mute); }
.proof-src { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-dim); }

/* ---------- Method steps ---------- */
.steps { display: grid; gap: 0; counter-reset: s; }
.step {
  display: grid; gap: 16px; padding: 32px 0;
  border-top: 1px solid var(--rule-dark);
}
@media (min-width: 860px) { .step { grid-template-columns: 180px 1fr; gap: 48px; align-items: start; } }
.step:last-child { border-bottom: 1px solid var(--rule-dark); }
.step-k { display: grid; gap: 8px; align-content: start; }
.step-no { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--mint); }
.step-wk { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-dim); }
.step-b { display: grid; gap: 12px; max-width: 62ch; }
.step-b p { color: var(--on-dark-mute); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule-light); max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--rule-light); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; text-align: left;
  font-family: var(--display); font-size: clamp(19px, 1.7vw, 25px); font-weight: 300; letter-spacing: -0.012em;
  color: var(--ink);
}
.faq-sign { font-family: var(--mono); font-size: 19px; color: var(--slate); flex: none; transition: transform 300ms var(--ease), color 300ms var(--ease); }
.faq-item[data-open="true"] .faq-sign { transform: rotate(45deg); color: var(--ink); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease); }
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 26px; max-width: 64ch; color: var(--grey); font-size: 16px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band .wrap { position: relative; z-index: 2; display: grid; gap: 26px; justify-items: center; }
.cta-band .display { max-width: 20ch; }
.cta-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-dim); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--rule-dark); padding-top: clamp(52px, 6vw, 84px); }
.foot-grid { display: grid; gap: 40px; padding-bottom: 56px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; } }
.foot-col { display: grid; gap: 13px; align-content: start; }
.foot-col h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-dim); }
.foot-col a { font-size: 14.5px; color: var(--on-dark-mute); transition: color 200ms var(--ease); }
.foot-col a:hover { color: var(--mint); }
.foot-word {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(56px, 15vw, 210px); line-height: 0.86; letter-spacing: -0.04em;
  color: var(--on-dark); padding-bottom: 18px;
}
.foot-word em { font-style: italic; color: var(--mint); letter-spacing: 0.01em; }
.foot-base {
  border-top: 1px solid var(--rule-dark); padding: 22px 0 34px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-dim);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }
.reveal-d3 { transition-delay: 270ms; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .head-cta .btn--primary { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .inst-row { grid-template-columns: 76px 1fr 42px; gap: 10px; }
  .foot-base { flex-direction: column; gap: 8px; }
}

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


/* ---------- MetForm, scoped to the audit page ----------
   The form's own styling is white-on-transparent, built for a dark section,
   so the form band is dark and we leave the fields alone. Only the submit
   button needs overriding: its default is invisible against this background. */
.arl-form { margin-top: 8px; }
.arl-form button,
.arl-form input[type="submit"],
.arl-form .mf-btn {
  background: var(--mint) !important;
  color: var(--ink) !important;
  border: 0 !important;
  border-radius: 2px !important;
  padding: 16px 30px !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}
.arl-form button:hover,
.arl-form input[type="submit"]:hover,
.arl-form .mf-btn:hover {
  background: var(--mint-lift) !important;
  transform: translateY(-2px);
}
.arl-form ::placeholder { color: var(--on-dark-dim) !important; opacity: 1; }


/* ---------- Interior pages (.arl-prose) ----------
   Page content is authored as plain HTML in the WordPress editor and can use
   the design-system classes directly (.band, .paper, .wrap, .h2, .eyebrow …).
   These rules cover raw elements so unstyled markup still reads correctly. */
.hero--page { padding: clamp(52px, 7vw, 104px) 0 clamp(44px, 5vw, 72px); }
.hero--page .display { font-size: clamp(38px, 5.4vw, 86px); max-width: 18ch; }

.arl-prose > section:first-child { padding-top: clamp(44px, 5vw, 72px); }
.arl-prose h2 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(30px, 3.6vw, 54px); line-height: 1.06;
  letter-spacing: -0.02em; color: var(--on-dark);
  margin: 0 0 18px;
}
.arl-prose h3 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(21px, 1.9vw, 30px); line-height: 1.16;
  letter-spacing: -0.012em; color: var(--on-dark);
  margin: 0 0 10px;
}
.arl-prose p { color: var(--on-dark-mute); font-size: 16.5px; margin: 0 0 18px; max-width: 68ch; }
.arl-prose ul, .arl-prose ol { margin: 0 0 20px; padding-left: 0; max-width: 68ch; }
.arl-prose li {
  color: var(--on-dark-mute); font-size: 16px;
  padding: 11px 0 11px 22px; position: relative;
  border-bottom: 1px solid var(--rule-dark-2);
}
.arl-prose li::before {
  content: ""; position: absolute; left: 0; top: 20px;
  width: 7px; height: 1px; background: var(--mint);
}
.arl-prose a { color: var(--mint); text-decoration: none; border-bottom: 1px solid rgba(101,220,202,0.3); }
.arl-prose a:hover { border-bottom-color: var(--mint); }
.arl-prose strong { color: var(--on-dark); font-weight: 500; }
.arl-prose hr { height: 1px; background: var(--rule-dark); border: 0; margin: clamp(44px,5vw,72px) 0; }

/* Paper bands inside prose flip the text colours */
.arl-prose .paper h2,
.arl-prose .paper h3,
.arl-prose .paper strong { color: var(--ink); }
.arl-prose .paper p,
.arl-prose .paper li { color: var(--grey); }
.arl-prose .paper li { border-bottom-color: var(--rule-light); }
.arl-prose .paper a { color: var(--ink); border-bottom-color: rgba(26,26,26,0.25); }

/* ------------------------------------------------------------------
   Blog index (template-redesign-blog.php)
   A post list, not a card grid: rules and type do the work, so the
   page stays light and reads like an index rather than a feed.
   ------------------------------------------------------------------ */
.arl-posts { display: grid; gap: 0; border-top: 1px solid var(--rule-light); }
.arl-post {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule-light);
  text-decoration: none;
  transition: background .25s ease, padding .25s ease;
}
.arl-post:hover { background: rgba(0,0,0,.025); padding-left: 12px; padding-right: 12px; }
.arl-post-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey);
}
.arl-post-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.22;
  color: var(--ink);
  display: block;
}
.arl-post-excerpt {
  display: block;
  grid-column: 2;
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--grey);
  max-width: 62ch;
}
.arl-post-more {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  opacity: .5;
  transition: opacity .25s ease;
}
.arl-post:hover .arl-post-more { opacity: 1; }

@media (max-width: 720px) {
  .arl-post { grid-template-columns: 1fr; gap: 6px; }
  .arl-post-excerpt { grid-column: 1; }
  .arl-post-more { margin-top: 8px; }
}

/* ------------------------------------------------------------------
   Bare prose pages (legal copy): content with no <section> wrappers.
   Direct children get the page gutter and a readable measure so the
   text does not run edge to edge on the dark canvas.
   ------------------------------------------------------------------ */
.arl-prose > :not(section) {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}
.arl-prose > :not(section):first-child { padding-top: clamp(40px, 5vw, 72px); }
.arl-prose > :not(section):last-child  { padding-bottom: clamp(56px, 7vw, 104px); }

/* ------------------------------------------------------------------
   Blog post bodies (.arl-article, inside a .paper band on single.php)
   Long-form reading, so this deliberately undoes the marketing-page list
   treatment: no rule under every bullet, larger type, looser leading.
   ------------------------------------------------------------------ */
.arl-article p {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--grey);
  max-width: none;
  margin: 0 0 22px;
}
.arl-article h2 {
  font-size: clamp(26px, 3vw, 40px);
  color: var(--ink);
  margin: 52px 0 14px;
}
.arl-article h3 {
  font-size: clamp(19px, 1.7vw, 25px);
  color: var(--ink);
  margin: 36px 0 10px;
}
.arl-article h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .005em;
  color: var(--ink);
  margin: 30px 0 8px;
}
.arl-article > :first-child { margin-top: 0; }

.arl-article ul, .arl-article ol { margin: 0 0 24px; max-width: none; }
.arl-article li {
  border-bottom: 0;
  padding: 5px 0 5px 22px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--grey);
}
.arl-article li::before { top: 17px; }
.arl-article ol { list-style: decimal; padding-left: 22px; }
.arl-article ol li { padding-left: 4px; }
.arl-article ol li::before { display: none; }

.arl-article a { color: var(--ink); border-bottom-color: rgba(26,26,26,.28); }
.arl-article a:hover { border-bottom-color: var(--ink); }
.arl-article strong { color: var(--ink); }

.arl-article img { max-width: 100%; height: auto; display: block; margin: 30px 0; }
.arl-article figure { margin: 30px 0; }
.arl-article figcaption {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 10px;
}

.arl-article blockquote {
  margin: 34px 0;
  padding: 2px 0 2px 24px;
  border-left: 1px solid var(--mint);
}
.arl-article blockquote p {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.arl-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15.5px;
}
.arl-article th, .arl-article td {
  text-align: left;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--rule-light);
  color: var(--grey);
  vertical-align: top;
}
.arl-article th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Previous / next, at the foot of a post */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-light);
}
.post-nav-item { text-decoration: none; display: block; }
.post-nav-item--next { text-align: right; grid-column: 2; }
.post-nav-label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.post-nav-title {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
}

@media (max-width: 720px) {
  .arl-article table { display: block; overflow-x: auto; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item--next { text-align: left; grid-column: 1; }
}

/* Post-body corrections.
   WordPress block tables ship a cell grid and a tinted cell background;
   both fight the rest of the page, so the table is reduced to horizontal
   rules only. The prev/next links are anchors inside .arl-prose, which
   would otherwise give them the prose underline. */
.arl-article table,
.arl-article th,
.arl-article td {
  border: 0;
  background: none;
}
.arl-article th,
.arl-article td { border-bottom: 1px solid var(--rule-light); }
.arl-article thead th { border-bottom-color: var(--ink); }
.arl-article td:not(:last-child),
.arl-article th:not(:last-child) { padding-right: 28px; }

.post-nav-item { border-bottom: 0; }
.post-nav-item:hover .post-nav-title { color: var(--grey); }

/* ------------------------------------------------------------------
   Page-grid alignment.
   A .wrap narrowed with an inline max-width still centres itself, so it
   centred on a different axis to the full-width sections around it and its
   text landed ~150px to their right. Narrowing now happens on an inner
   .measure block, which is left-aligned inside a full-width wrap, so every
   first character on the page shares one left edge. Content authored in
   WordPress still carries the old inline max-width, so that is neutralised
   here and the measure comes from the elements themselves.
   ------------------------------------------------------------------ */
.measure { width: 100%; }
.arl-prose .wrap[style*="max-width"] { max-width: var(--max) !important; }
.arl-prose h2 { max-width: 22ch; }
.arl-prose .lede { max-width: 62ch; }
.hero--page .lede { max-width: 58ch; }
.arl-article h2 { max-width: 30ch; }
.arl-article h3 { max-width: 34ch; }

/* ------------------------------------------------------------------
   Services dropdown.
   Opens on hover and on keyboard focus (:focus-within), so it is reachable
   by tab as well as by mouse. On mobile the burger menu shows the whole
   thing as a flat indented list instead — no hover there to open it with.
   ------------------------------------------------------------------ */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-caret {
  display: inline-block;
  font-size: 9px;
  margin-left: 5px;
  transform: translateY(-1px);
  opacity: .55;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret { opacity: 1; transform: translateY(1px); }

.sub {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 232px;
  padding: 8px 0;
  margin-top: 14px;
  background: var(--ink-raise-2);
  border: 1px solid var(--rule-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
  z-index: 60;
}
/* Bridges the gap between the link and the panel so the pointer can travel
   into the menu without it closing underneath them. */
.nav-item.has-sub::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: -18px;
  height: 18px;
}
.nav-item:hover .sub,
.nav-item:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--on-dark-mute);
  white-space: nowrap;
}
.sub a:hover { color: var(--on-dark); background: rgba(255,255,255,.04); }
.sub .sub-all {
  margin-top: 6px;
  padding-top: 13px;
  border-top: 1px solid var(--rule-dark-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .nav-item { display: block; width: 100%; }
  .nav-caret { display: none; }
  .nav-item.has-sub::after { display: none; }
  .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
  }
  .sub a { padding-left: 16px; }
  .sub .sub-all { display: none; }
}

/* ------------------------------------------------------------------
   Nav as a WordPress menu.
   wp_nav_menu outputs <ul>/<li>, so the flex row moves from .nav to the
   list and the list semantics are reset. The .nav-item / .has-sub / .sub
   rules above are unchanged — functions.php puts those classes on the
   items, so the menu is editable without the design changing.
   ------------------------------------------------------------------ */
.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { list-style: none; margin: 0; padding: 0; }
.nav-list li::before { display: none; content: none; }
ul.sub { list-style: none; }
ul.sub li { display: block; }
/* A menu item marked "current" gets the same weight as a hover. */
.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a { color: var(--on-dark); }

@media (max-width: 920px) {
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-list > li { width: 100%; }
}
