@import url("fonts.css");

/* =========================================================================
   IB Marketing — design system
   Palette derives from the logo (#030305) and the blue-greys already in the
   brand's existing theme. --slant is measured off the logo's stem: the
   diagonal is the one motif carried through the whole site.
   ========================================================================= */

:root {
  /* ink */
  --ink:        #030305;
  --ink-2:      #0e1116;
  --ink-3:      #1a1f27;
  --slate:      #2d3433;
  --muted:      #626766;

  /* light */
  --fog:        #b2bfc2;
  --mist:       #dce7eb;
  --paper-2:    #f5f8f9;
  --paper:      #ffffff;

  /* accent — 7.03:1 on paper, lifted variant 8.00:1 on ink */
  --volt:       #2b3bf0;
  --volt-lift:  #8e99ff;
  --volt-soft:  #eceefe;
  /* amber dark enough to pass AA on both paper and --volt-soft */
  --star:       #8f5a05;

  /* the logo's stem angle */
  --slant:      22.9deg;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* fluid type */
  /* sized against the hero's ~660px column, not the full viewport, so the
     headline lands in about four lines instead of eight */
  --fs-hero:  clamp(2.5rem, 4.8vw, 4.5rem);
  --fs-h2:    clamp(2rem, 4.4vw, 3.75rem);
  --fs-h3:    clamp(1.3rem, 1.9vw, 1.75rem);
  --fs-lead:  clamp(1.05rem, 1.5vw, 1.375rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.78125rem;

  /* nav bar height — logo and wordmark are sized against this */
  --nav-h: clamp(80px, 6.7vw, 96px);

  --wrap:  min(100% - 2.5rem, 1240px);
  --gap:   clamp(1.25rem, 2.5vw, 2rem);
  --sect:  clamp(4.5rem, 10vw, 9rem);

  --r:     14px;
  --r-lg:  22px;

  --ease:  cubic-bezier(.22, 1, .36, 1);
  --shadow-sm: 0 1px 2px rgb(3 3 5 / .06), 0 4px 14px rgb(3 3 5 / .05);
  --shadow-md: 0 2px 6px rgb(3 3 5 / .07), 0 18px 46px rgb(3 3 5 / .09);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-ink :focus-visible { outline-color: var(--volt-lift); }

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

/* ---------- headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); font-weight: 800; font-stretch: 118%; letter-spacing: -0.038em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.018em; }
p  { text-wrap: pretty; }

/* ---------- layout ---------- */
.wrap    { width: var(--wrap); margin-inline: auto; }
.section { padding-block: var(--sect); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.on-ink            { background: var(--ink); color: var(--fog); }
.on-ink h1,
.on-ink h2,
.on-ink h3         { color: var(--paper); }
.on-ink .eyebrow   { color: var(--volt-lift); }
.on-ink .lead      { color: var(--mist); }
.on-mist           { background: var(--mist); }
.on-paper-2        { background: var(--paper-2); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r) var(--r); font-weight: 600;
  transition: top .18s var(--ease);
}
.skip:focus { top: 0; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 700; font-stretch: 108%;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor;
  transform: skewX(calc(var(--slant) * -1));
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 56ch; }
.measure { max-width: 62ch; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-top: 1.15rem; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem;
  font-family: var(--font-display);
  font-size: var(--fs-small); font-weight: 700; font-stretch: 108%;
  letter-spacing: -0.005em;
  text-decoration: none;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bg); border-radius: 100px;
  cursor: pointer; overflow: hidden;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
/* the hover fill wipes in along the logo's stem angle */
.btn::after {
  content: ""; position: absolute; z-index: -1; inset: -2px -30%;
  background: var(--volt);
  transform: translateX(-115%) skewX(calc(var(--slant) * -1));
  transition: transform .42s var(--ease);
}
.btn:hover, .btn:focus-visible { border-color: var(--volt); color: #fff; }
.btn:hover::after, .btn:focus-visible::after { transform: translateX(0) skewX(calc(var(--slant) * -1)); }
.btn:active { transform: translateY(1px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.on-ink .btn--ghost { --btn-fg: var(--paper); border-color: rgb(255 255 255 / .35); }
/* Any ghost button on a dark surface has to be lightened explicitly, or it
   renders black-on-black. The nav (transparent over the hero) and the CTA
   band are both dark without carrying the .on-ink class. */
.nav .btn--ghost,
.cta-band .btn--ghost { --btn-fg: var(--paper); border-color: rgb(255 255 255 / .4); }
.btn--volt { --btn-bg: var(--volt); border-color: var(--volt); }
.btn--volt::after { background: var(--ink); }
.btn--volt:hover, .btn--volt:focus-visible { border-color: var(--ink); }
.btn--lg { padding: 1.15rem 2.1rem; font-size: 1rem; }
/* primary conversion button — scales down on small screens so the long
   label ("Receive your free quote today") never overflows the gutter */
.btn--xl {
  padding: clamp(1.1rem, 2vw, 1.4rem) clamp(1.5rem, 3vw, 2.6rem);
  font-size: clamp(.95rem, 1.4vw, 1.0625rem);
}

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* inline text link with a slanted underline */
.tlink {
  font-weight: 600; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size .3s var(--ease);
}
.tlink:hover { background-size: 0% 2px; }

/* ============================ NAV ============================ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--nav-h);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; margin-right: auto;
  font-family: var(--font-display); font-weight: 800; font-stretch: 115%;
  font-size: clamp(1.15rem, 1.89vw, 1.7rem); letter-spacing: -0.032em;
  color: var(--paper);
  transition: color .35s var(--ease);
}
.nav__brand svg { width: clamp(36px, 3.78vw, 54px); height: auto; }
.nav__brand span { white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  position: relative;
  padding: .55rem .85rem;
  font-size: clamp(1rem, 1.67vw, 1.5rem); font-weight: 700;
  text-decoration: none; color: var(--mist); border-radius: 8px;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem;
  height: 2px; background: var(--volt-lift);
  transform: scaleX(0) skewX(calc(var(--slant) * -1)); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1) skewX(calc(var(--slant) * -1)); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--paper); }
.nav__cta { margin-left: .9rem; font-size: clamp(.9rem, 1.25vw, 1.1rem); padding: .9rem 1.7rem; }

/* solid state once scrolled past the hero */
.nav.is-stuck { background: rgb(255 255 255 / .92); backdrop-filter: blur(14px); border-bottom-color: var(--mist); box-shadow: var(--shadow-sm); }
.nav.is-stuck .nav__brand { color: var(--ink); }
.nav.is-stuck .nav__link { color: var(--muted); }
.nav.is-stuck .nav__link:hover, .nav.is-stuck .nav__link[aria-current="page"] { color: var(--ink); }
.nav.is-stuck .nav__link::after { background: var(--volt); }
.nav.is-stuck .btn--ghost { --btn-fg: var(--ink); border-color: var(--ink); }

/* pages that open on a light background start solid */
.nav--solid { background: rgb(255 255 255 / .92); backdrop-filter: blur(14px); border-bottom-color: var(--mist); }
.nav--solid .nav__brand { color: var(--ink); }
.nav--solid .nav__link { color: var(--muted); }
.nav--solid .nav__link:hover, .nav--solid .nav__link[aria-current="page"] { color: var(--ink); }
.nav--solid .nav__link::after { background: var(--volt); }
.nav--solid .btn--ghost { --btn-fg: var(--ink); border-color: var(--ink); }

.nav__burger {
  display: none;
  width: 46px; height: 46px; padding: 0;
  background: none; border: 1px solid currentColor; border-radius: 50%;
  color: inherit; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__burger span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: background .2s; }
.nav__burger span::before,
.nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top:  6px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: inline-flex; color: var(--paper); }
  .nav.is-stuck .nav__burger, .nav--solid .nav__burger { color: var(--ink); }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; padding: 1rem 1.25rem 2rem;
    background: var(--paper); border-bottom: 1px solid var(--mist);
    box-shadow: var(--shadow-md);
    clip-path: inset(0 0 100% 0); pointer-events: none;
    transition: clip-path .45s var(--ease);
  }
  .nav__links.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
  .nav__link { color: var(--ink); font-size: 1.35rem; font-family: var(--font-display); font-weight: 700; padding: .8rem .25rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1.25rem 0 0; justify-content: center; }
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--fog);
  padding-block: clamp(8.5rem, 15.5vw, 11.75rem) clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}
/* ---------- hero photograph ---------- */
.hero__photo { position: absolute; inset: 0; z-index: 0; display: block; }
.hero__photo img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 42%;
}
/* Scrim: darkest behind the copy on the left, lighter on the right so the
   towers still read. Without it the bright sky eats the headline. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgb(3 3 5 / .9) 0%, rgb(3 3 5 / .66) 40%, rgb(3 3 5 / .28) 100%),
    linear-gradient(to bottom, rgb(3 3 5 / .42) 0%, rgb(3 3 5 / .12) 45%, rgb(3 3 5 / .6) 100%);
}
@media (max-width: 900px) {
  /* single column, so the copy needs cover across the whole width */
  .hero::after {
    background:
      linear-gradient(to bottom, rgb(3 3 5 / .82) 0%, rgb(3 3 5 / .68) 55%, rgb(3 3 5 / .88) 100%);
  }
  .hero__photo img { object-position: 50% 35%; }
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }

.hero h1 { color: var(--paper); margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: normal; position: relative; white-space: nowrap;
  color: var(--volt-lift);
}
.hero__lead { font-size: var(--fs-lead); color: var(--mist); max-width: 46ch; margin-bottom: 2.25rem; }
.hero .btn-row { margin-bottom: 2.5rem; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.hero__meta div { display: flex; align-items: baseline; gap: .5rem; }
.hero__meta b {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  font-stretch: 115%; color: var(--paper); letter-spacing: -0.03em;
}
.hero__meta span { font-size: var(--fs-small); color: var(--fog); }

/* ---------- signature: the search-result transformation ---------- */
.serp {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 0 30px 70px rgb(0 0 0 / .45);
  overflow: hidden;
  isolation: isolate;
}
.serp__chrome {
  display: flex; align-items: center; gap: .5rem;
  padding: .8rem 1rem; background: var(--paper-2);
  border-bottom: 1px solid var(--mist);
}
.serp__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fog); flex: none; }
.serp__url {
  flex: 1; min-width: 0; margin-left: .4rem; padding: .3rem .8rem;
  background: var(--paper); border: 1px solid var(--mist); border-radius: 100px;
  font-size: var(--fs-micro); color: var(--muted); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.serp__stage { position: relative; }
.serp__layer { padding: 1.25rem 1.25rem 1.5rem; }
.serp__layer--after {
  position: absolute; inset: 0;
  background: var(--paper);
}
/* Only hidden when JS is present to open it again — a blocked CDN or a
   JS-off visitor sees the finished "after" state rather than an empty card. */
.js .serp__layer--after {
  clip-path: polygon(0% 0%, -5% 0%, -50% 100%, 0% 100%);
  will-change: clip-path;
}
.no-motion .serp__layer--after { clip-path: none; }

.serp__q {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .9rem; margin-bottom: 1.1rem;
  border: 1px solid var(--mist); border-radius: 100px;
  font-size: var(--fs-small); color: var(--slate);
}
.serp__q svg { width: 15px; height: 15px; color: var(--muted); flex: none; }

.serp__item { padding: .7rem 0; border-top: 1px solid var(--paper-2); }
.serp__item:first-of-type { border-top: 0; }
.serp__site { font-size: var(--fs-micro); color: var(--muted); margin-bottom: .15rem; }
.serp__title {
  font-family: var(--font-display); font-weight: 600; font-stretch: 105%;
  font-size: 1rem; color: #1a3fa8; letter-spacing: -0.01em; line-height: 1.25;
}
.serp__desc { font-size: var(--fs-micro); color: var(--muted); line-height: 1.5; }

.serp__item--dim { opacity: .45; }
.serp__item--you {
  position: relative;
  margin-top: .4rem; padding: .85rem .9rem;
  border: 1px dashed var(--fog); border-radius: var(--r); border-top: 1px dashed var(--fog);
  background: var(--paper-2);
}
.serp__item--you .serp__title { color: var(--slate); }
.serp__flag {
  display: inline-block; margin-top: .5rem;
  font-family: var(--font-display); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #a33;
}
/* the "after" winner card */
.serp__item--win {
  padding: .9rem; border: 2px solid var(--volt); border-radius: var(--r);
  background: var(--volt-soft); border-top: 2px solid var(--volt);
}
.serp__item--win .serp__title { color: var(--volt); font-weight: 700; }
.serp__rating { display: flex; align-items: center; gap: .4rem; font-size: var(--fs-micro); color: var(--muted); margin-top: .3rem; }
.serp__stars { color: var(--star); letter-spacing: .08em; }
.serp__links { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.serp__links span {
  font-size: var(--fs-micro); padding: .18rem .6rem;
  background: var(--paper); border: 1px solid var(--mist); border-radius: 100px; color: var(--slate);
}

.serp__bolt {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0; will-change: transform, opacity;
  background: linear-gradient(calc(90deg - var(--slant)),
    transparent 44%, rgb(255 255 255 / .95) 50%, transparent 56%);
}

.serp__replay {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 4;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .8rem;
  background: var(--paper); border: 1px solid var(--mist); border-radius: 100px;
  font-size: var(--fs-micro); font-weight: 600; color: var(--muted);
  cursor: pointer; transition: color .2s, border-color .2s, box-shadow .3s var(--ease);
}
.serp__replay:hover { color: var(--volt); border-color: var(--volt); }

/* ---- "you missed it" invitation ----
   Nothing on the card says the animation can be replayed, so once it finishes
   the control pulses in the brand blue for a few cycles. It stops the moment
   the visitor engages with it, and gives up on its own rather than nagging. */
.serp__replay::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1.5px solid var(--volt);
  opacity: 0; pointer-events: none;
}
.serp__replay.is-inviting {
  color: var(--volt); border-color: var(--volt);
  will-change: box-shadow;
  animation: replay-glow 2.4s var(--ease) 5;
}
.serp__replay.is-inviting::before {
  will-change: transform, opacity;
  animation: replay-ring 2.4s var(--ease) 5;
}
/* the sweep runs at the logo's stem angle, matching every other button */
.serp__replay.is-inviting .serp__sheen {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  pointer-events: none;
}
.serp__replay.is-inviting .serp__sheen::after {
  content: ""; position: absolute; inset: -60% -30%;
  background: linear-gradient(calc(90deg - var(--slant)),
    transparent 42%, rgb(43 59 240 / .22) 50%, transparent 58%);
  animation: replay-sheen 2.4s var(--ease) 5;
}

@keyframes replay-ring {
  0%        { opacity: .8; transform: scale(1); }
  60%, 100% { opacity: 0;  transform: scale(1.22); }
}
@keyframes replay-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgb(43 59 240 / 0); }
  40%      { box-shadow: 0 0 16px 1px rgb(43 59 240 / .38); }
}
@keyframes replay-sheen {
  0%       { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}

.serp__caption {
  margin-top: 1rem; font-size: var(--fs-micro); color: var(--fog);
  text-align: center; letter-spacing: .01em;
}

/* ============================ TRUST STRIP ============================ */
.trust { border-block: 1px solid var(--mist); padding-block: 1.75rem; background: var(--paper); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem clamp(1.5rem, 4vw, 3.25rem); }
.trust__label {
  font-family: var(--font-display); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.trust__item { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-small); font-weight: 600; color: var(--slate); }
.trust__item svg { width: 17px; height: 17px; color: var(--volt); flex: none; }

/* ============================ CARDS / GRIDS ============================ */
.grid { display: grid; gap: var(--gap); }
/* grid and flex children default to min-width:auto, which lets a wide child
   (the search-result card, a nowrap URL) push the whole column past the
   viewport. Everything in a track is allowed to shrink instead. */
.grid > *, .hero__grid > *, .work > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.card {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { border-color: var(--fog); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: var(--fs-small); }
.card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1.15rem;
  background: var(--volt-soft); color: var(--volt);
  border-radius: 12px;
  transform: skewX(calc(var(--slant) * -1));
}
.card__icon svg { width: 22px; height: 22px; transform: skewX(var(--slant)); }
.card ul { margin-top: 1rem; display: grid; gap: .45rem; }
.card li { position: relative; padding-left: 1.4rem; font-size: var(--fs-small); color: var(--muted); }
.card li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 2px; background: var(--volt);
  transform: skewX(calc(var(--slant) * -1));
}

.on-ink .card { background: var(--ink-2); border-color: var(--ink-3); }
.on-ink .card p, .on-ink .card li { color: var(--fog); }
.on-ink .card:hover { border-color: #333a46; }

/* ============================ SERVICE ROWS ============================ */
.service {
  display: grid; gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 1024px) {
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ============================ PROCESS ============================ */
/* numbering is used here because the content genuinely is a sequence */
.step { position: relative; padding-top: 2.4rem; border-top: 2px solid var(--ink); }
.step__n {
  position: absolute; top: -0.1rem; left: 0;
  font-family: var(--font-display); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .16em; color: var(--volt);
}
.step h3 { margin-bottom: .55rem; }
.step p { color: var(--muted); font-size: var(--fs-small); }
.step__when {
  display: inline-block; margin-top: .9rem;
  font-family: var(--font-display); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.on-ink .step { border-top-color: var(--paper); }
.on-ink .step p { color: var(--fog); }
.on-ink .step__n { color: var(--volt-lift); }
.on-ink .step__when { color: var(--fog); }

/* ============================ WORK ============================ */
.work { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.work__card {
  display: flex; flex-direction: column;
  border: 1px solid var(--mist); border-radius: var(--r-lg);
  background: var(--paper); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.work__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--fog); }
.work__shot { position: relative; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.work__shot img { width: 100%; height: 100%; object-fit: cover; }

/* placeholder slot — clearly a slot, not a fake client */
.work__slot {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: .5rem;
  background:
    repeating-linear-gradient(calc(90deg - var(--slant)),
      rgb(3 3 5 / .035) 0 1px, transparent 1px 14px),
    var(--mist);
  color: var(--slate); text-align: center; padding: 1.5rem;
}
.work__slot svg { width: 30px; height: 30px; color: var(--muted); }
.work__slot b {
  font-family: var(--font-display); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
}
.work__slot span { font-size: var(--fs-micro); color: var(--muted); max-width: 24ch; }

.work__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.work__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .85rem; }
.work__tags span {
  font-family: var(--font-display); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: 100px;
  background: var(--paper-2); border: 1px solid var(--mist); color: var(--muted);
}
.work__body h3 { margin-bottom: .45rem; }
.work__body p { color: var(--muted); font-size: var(--fs-small); margin-bottom: 1.1rem; }
.work__result {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--mist);
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.work__result div b {
  display: block;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 800;
  font-stretch: 115%; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1;
}
.work__result div span { font-size: var(--fs-micro); color: var(--muted); }

/* ============================ TESTIMONIAL ============================ */
.quote { position: relative; }
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.6vw, 2.15rem);
  font-weight: 600; font-stretch: 108%;
  line-height: 1.24; letter-spacing: -0.024em;
  color: var(--ink); text-wrap: balance;
}
.on-ink .quote blockquote { color: var(--paper); }
.quote figcaption { margin-top: 1.5rem; display: flex; align-items: center; gap: .85rem; font-size: var(--fs-small); }
.quote figcaption b { color: var(--ink); }
.on-ink .quote figcaption b { color: var(--paper); }
.quote figcaption span { color: var(--muted); }
.on-ink .quote figcaption span { color: var(--fog); }
.quote__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--volt-soft); color: var(--volt);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: .9rem;
}
.quote__stars { color: var(--star); letter-spacing: .12em; margin-bottom: 1.1rem; font-size: 1.05rem; }

/* placeholder testimonial slot — muted, not fog: fog on mist is ~1.5:1 */
.quote--slot blockquote { color: var(--muted); }
.quote--slot { border: 1px dashed var(--fog); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.quote--slot .quote__stars { color: var(--muted); }

/* ============================ STATS ============================ */
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; font-stretch: 118%;
  letter-spacing: -0.04em; line-height: 1; color: var(--ink);
}
.on-ink .stat b { color: var(--paper); }
.stat span { display: block; margin-top: .6rem; font-size: var(--fs-small); color: var(--muted); max-width: 22ch; }
.on-ink .stat span { color: var(--fog); }

/* ============================ FAQ ============================ */
.faq { border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600;
  font-stretch: 106%; letter-spacing: -0.018em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 15px; height: 15px; margin-top: .35rem;
  background: currentColor; color: var(--volt);
  clip-path: polygon(43% 0, 57% 0, 57% 43%, 100% 43%, 100% 57%, 57% 57%, 57% 100%, 43% 100%, 43% 57%, 0 57%, 0 43%, 43% 43%);
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding-bottom: 1.5rem; max-width: 62ch; color: var(--muted); }
.faq summary:hover { color: var(--volt); }

/* ============================ CTA BAND ============================ */
.cta-band { position: relative; background: var(--ink); color: var(--mist); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: -50% -10%;
  background: radial-gradient(45% 60% at 70% 40%, rgb(43 59 240 / .38), transparent 70%);
  pointer-events: none;
}
.cta-band__inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 1.5rem; }
.cta-band h2 { color: var(--paper); max-width: 20ch; }
.cta-band p { color: var(--mist); max-width: 46ch; }

/* ============================ FORMS ============================ */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.field { display: grid; gap: .45rem; }
.field > label,
.field__legend {
  font-family: var(--font-display); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--slate);
}
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field__legend { padding: 0; float: left; width: 100%; }
.field__legend + * { clear: both; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--fog); border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px var(--volt-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fog); }
.field__hint { font-size: var(--fs-micro); color: var(--muted); }
.req { color: var(--volt); }

/* budget / project-type pill choices */
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: block; padding: .6rem 1.05rem;
  border: 1px solid var(--fog); border-radius: 100px;
  font-size: var(--fs-small); color: var(--slate);
  transition: all .2s var(--ease); cursor: pointer;
}
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--volt); outline-offset: 3px; }
.choice span:hover { border-color: var(--ink); }

.form__note { font-size: var(--fs-micro); color: var(--muted); }

/* contact detail list */
.contact-list { display: grid; gap: 1.4rem; }
.contact-list div { display: grid; gap: .2rem; }
.contact-list dt {
  font-family: var(--font-display); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.contact-list dd { margin: 0; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--volt); }

/* ============================ FOOTER ============================ */
.footer { background: var(--ink); color: var(--fog); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer__top { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer__brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--paper); font-family: var(--font-display); font-weight: 800; font-stretch: 115%; letter-spacing: -0.03em; font-size: 1.0625rem; margin-bottom: 1rem; }
.footer__brand svg { width: 32px; }
.footer p { font-size: var(--fs-small); max-width: 34ch; }
.footer__h {
  font-family: var(--font-display);
  font-size: var(--fs-micro); letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper); margin-bottom: 1rem; font-weight: 700;
  line-height: 1.4;
}
.footer ul { display: grid; gap: .6rem; }
.footer a { text-decoration: none; font-size: var(--fs-small); transition: color .2s; }
.footer a:hover { color: var(--paper); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem;
  border-top: 1px solid var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: var(--fs-micro);
}

/* ============================ PAGE HEADER (inner pages) ============================ */
.page-head { padding-block: clamp(8rem, 13.5vw, 10.75rem) clamp(2.5rem, 5vw, 4rem); background: var(--paper); }
.page-head h1 { max-width: 18ch; margin-bottom: 1.25rem; }
.page-head .lead { max-width: 54ch; }

/* About intro: copy on the left, the mark filling the space on the right */
.about-intro { padding-bottom: clamp(3rem, 6vw, 5rem); }
.about-intro__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .about-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
}
/* the old gap here was two stacked section paddings (~144px); this is the
   only spacing between the lead and the body copy now */
.about-intro__body { margin-top: clamp(1.5rem, 2.6vw, 2.25rem); }
.about-intro__body p { color: var(--muted); }

/* The mark sends out a ripple in its own silhouette: a hairline copy that
   expands and fades, with a soft blurred copy behind it for the shading.
   The svg viewBox is padded so the ripple isn't clipped at the edge. */
.about-mark { display: grid; place-items: center; }
.about-mark svg { width: min(100%, 470px); height: auto; color: var(--ink); }

.about-mark use { transform-box: fill-box; transform-origin: center; }

/* Heartbeat at 30bpm: one 2s cycle, with a lub-dub pair inside it.
   The second beat is quieter and travels less far, as a real S2 would. */
.mark-solid {
  fill: currentColor;
  animation: mark-thump 2s ease-out infinite;
}

.mark-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;   /* stays a fine line as it grows */
  opacity: 0;
  animation: mark-ripple 2s ease-out infinite;
}
/* the "dub" — a quarter-second after the "lub" */
.mark-ring--2 { animation: mark-ripple-2 2s ease-out .26s infinite; }

.mark-glow {
  fill: currentColor;
  filter: blur(14px);
  opacity: 0;
  animation: mark-glow 2s ease-out infinite;
}

@keyframes mark-ripple {
  0%   { transform: scale(1);    opacity: .55; }
  55%  { opacity: .12; }
  85%, 100% { transform: scale(1.32); opacity: 0; }
}
@keyframes mark-ripple-2 {
  0%   { transform: scale(1);    opacity: .34; }
  55%  { opacity: .07; }
  80%, 100% { transform: scale(1.2); opacity: 0; }
}
@keyframes mark-glow {
  0%   { transform: scale(1.01); opacity: .2; }
  50%, 100% { transform: scale(1.24); opacity: 0; }
}
/* the mark itself gives the double kick that throws each ring off */
@keyframes mark-thump {
  0%       { transform: scale(1); }
  4%       { transform: scale(1.028); }
  11%      { transform: scale(1); }
  17%      { transform: scale(1.018); }
  25%      { transform: scale(1); }
  100%     { transform: scale(1); }
}

@media (max-width: 899px) { .about-mark svg { width: min(70%, 300px); } }

.crumbs { display: flex; gap: .5rem; font-size: var(--fs-micro); color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--volt); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--fog); }
.crumbs ol { display: flex; gap: .5rem; }

/* ============================ PROSE (legal pages) ============================ */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.75rem; margin-bottom: .85rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.1rem; color: var(--muted); }
.prose ul { margin: 0 0 1.1rem; display: grid; gap: .5rem; }
.prose li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.prose li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 2px; background: var(--volt);
  transform: skewX(calc(var(--slant) * -1));
}
.prose a { color: var(--volt); }
.prose__updated { font-size: var(--fs-micro); color: var(--muted); margin-bottom: 2rem; }

/* ============================ 404 ============================ */
.notfound { min-height: 72vh; display: grid; place-content: center; text-align: center; }
.notfound__code {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(5rem, 18vw, 12rem); line-height: .85; letter-spacing: -0.05em;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--volt-lift);
  margin-bottom: 1.5rem;
}
@supports not (-webkit-text-stroke: 1px black) { .notfound__code { color: var(--volt-lift); } }

/* ============================ MOTION ============================ */
/* Nothing starts hidden unless JS is present to reveal it again. */
.js .reveal { opacity: 0; transform: translateY(22px); will-change: transform, opacity; }
.no-motion .reveal { opacity: 1; transform: none; }

/* Hero entrance uses the same guarded start state rather than a from() tween,
   so a stalled ticker can never leave the headline invisible. */
.js .hero__copy > *,
.js .hero__demo { opacity: 0; transform: translateY(26px); will-change: transform, opacity; }
.no-motion .hero__copy > *,
.no-motion .hero__demo { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal,
  .js .hero__copy > *,
  .js .hero__demo { opacity: 1 !important; transform: none !important; }
  .js .serp__layer--after { clip-path: none !important; }
  .serp__replay { display: none; }
}
