/* Seeku site styles: the agency landing page and the server-rendered company and
   search pages all link this one file. Dark teal surface stack, one medium-weight grotesk, tracked uppercase labels,
   lavender only for headline figures, the aurora gradient only on the primary button. */

:root {
  color-scheme: dark;

  --color-liquid-abyss: #012624;
  --color-liquid-deep: #011d1c;
  --color-liquid-kelp: #003734;
  --color-liquid-mist: #edfffe;
  --color-platinum: #ffffff;
  --color-silver-mist: #bbc7c6;
  --color-slate-deep: #707777;
  --color-lavender-phosphor: #fde9ff;
  --gradient-aurora: linear-gradient(90deg, rgb(203, 255, 252) 0%, rgb(237, 255, 254) 26.25%, rgb(255, 253, 250) 47.57%, rgb(250, 209, 255) 88.96%);
  --color-arrow-fill: rgba(3, 81, 75, 0.5);
  --color-hairline: rgba(255, 255, 255, 0.1);

  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-small: 6px;
  --radius-card: 16px;

  --page-max-width: 1440px;
  --page-gutter: clamp(20px, 4vw, 64px);
  --section-gap: clamp(68px, 10vw, 160px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--color-liquid-abyss);
  scrollbar-color: var(--color-liquid-kelp) var(--color-liquid-deep);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-silver-mist);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--color-lavender-phosphor);
  color: var(--color-liquid-deep);
}

:focus-visible {
  outline: 2px solid var(--color-liquid-mist);
  outline-offset: 3px;
  border-radius: var(--radius-small);
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-liquid-mist);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

/* ---------- type ---------- */

h1,
h2,
h3,
.display,
.kinetic {
  color: var(--color-platinum);
  font-weight: 500;
  line-height: 1;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  letter-spacing: -0.04em;
}

.heading-lg {
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
  letter-spacing: -0.04em;
}

.heading {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  letter-spacing: -0.02em;
}

.subheading {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.kinetic {
  font-size: clamp(5.4rem, 20vw, 18.4rem);
  letter-spacing: -0.046em;
  white-space: nowrap;
}

.label {
  color: var(--color-silver-mist);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.label--mist {
  color: var(--color-liquid-mist);
}

.lede {
  max-width: 38rem;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--color-liquid-mist);
}

.measure {
  max-width: 36rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- frame ---------- */

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

.section {
  padding-block: calc(var(--section-gap) / 2);
}

.stack > * + * {
  margin-top: 20px;
}

.stack > .label + * {
  margin-top: 16px;
}

/* ---------- navigation ---------- */

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  min-height: 80px;
  padding-block: 16px;
}

.nav-logo img {
  width: auto;
  height: 40px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.nav-links a {
  color: var(--color-silver-mist);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  padding-block: 8px;
  transition: color 0.2s var(--ease-out);
}

.nav-links a[aria-current="page"] {
  color: var(--color-platinum);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--radius-small);
  background: var(--gradient-aurora);
  background-size: 160% 100%;
  background-position: 0% 0;
  color: #222222;
  font-family: Arial, var(--font-sans);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out);
  animation: sheen 5s ease-in-out infinite alternate;
}

.button:active {
  transform: scale(0.98);
}

.button--quiet {
  animation: none;
  background: var(--color-liquid-kelp);
  color: var(--color-platinum);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-liquid-mist);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-small);
  background: var(--color-arrow-fill);
  color: var(--color-platinum);
  transition: background 0.2s var(--ease-out), transform 0.3s var(--ease-out);
}

.arrow svg {
  width: 12px;
  height: 12px;
}

/* ---------- surfaces ---------- */

.card {
  border-radius: var(--radius-card);
  background: var(--color-liquid-kelp);
  padding: clamp(24px, 3vw, 36px);
}

.card--recessed {
  background: var(--color-liquid-deep);
  padding: clamp(56px, 9vw, 120px) clamp(24px, 4vw, 64px);
}

.card p {
  color: var(--color-silver-mist);
}

/* Beside the company facts the recessed panel is a sidebar, not a page-wide well. */
.profile-grid .card--recessed {
  padding: clamp(24px, 3vw, 36px);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  /* A centred flex column lets the orb run wider than a phone screen without widening the text. */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(48px, 8vw, 120px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 24px;
}

.hero-copy .display {
  max-width: 13ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 8px;
}

.hero-orb {
  position: relative;
  z-index: 1;
  flex: none;
  width: min(1100px, 150vw);
  aspect-ratio: 2 / 1;
  margin-top: clamp(24px, 4vw, 56px);
  margin-bottom: -1px;
}

.hero-orb canvas {
  width: 100%;
  height: 100%;
}

.hero-copy > * {
  animation: rise 1s var(--ease-out) both;
}
.hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.hero-copy > :nth-child(3) { animation-delay: 0.45s; }
.hero-copy > :nth-child(4) { animation-delay: 0.6s; }
.hero-orb { animation: surface 2s var(--ease-out) 0.3s both; }
.nav { animation: settle 1s var(--ease-out) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
}

@keyframes surface {
  from { opacity: 0; transform: translateY(8%) scale(0.96); }
}

/* ---------- explore ---------- */

.explore {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.explore-head {
  padding-inline: clamp(20px, 2.6vw, 36px);
}

.feature-list {
  margin-top: 40px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  padding: clamp(28px, 3.4vw, 48px) clamp(20px, 2.6vw, 36px);
  border-radius: var(--radius-card);
  color: inherit;
  text-decoration: none;
  transition: background 0.3s var(--ease-out);
}

.feature p {
  grid-column: 1;
  max-width: 34rem;
}

.feature .arrow {
  grid-column: 2;
  grid-row: 1;
}

.graph {
  width: 100%;
  aspect-ratio: 1;
}

/* ---------- kinetic band ---------- */

.kinetic-band {
  overflow: hidden;
  padding-block: clamp(24px, 4vw, 56px);
}

.kinetic-track {
  display: flex;
  gap: 0.3em;
  width: max-content;
  font-size: clamp(5.4rem, 20vw, 18.4rem);
  animation: marquee 26s linear infinite;
}

.kinetic-track .kinetic:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-silver-mist);
}

/* ---------- company check ---------- */

.check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.search-form input {
  flex: 1 1 16rem;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-small);
  background: var(--color-liquid-deep);
  color: var(--color-platinum);
  font: inherit;
  caret-color: var(--color-lavender-phosphor);
}

.search-form input::placeholder {
  color: #8fa09e;
}

.stats {
  display: grid;
  gap: 32px;
}

.stat-number {
  display: block;
  color: var(--color-lavender-phosphor);
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.046em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--color-liquid-mist);
  font-size: 13px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

/* ---------- approach ---------- */

.approach {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 80px);
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.approach-steps .card h3 + p {
  margin-top: 16px;
}

/* ---------- closing panel and footer ---------- */

.closing {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.footer {
  margin-top: calc(var(--section-gap) / 2);
  background: var(--color-liquid-deep);
  padding-block: clamp(56px, 8vw, 120px) 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.footer-grid ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.footer-grid a {
  color: var(--color-silver-mist);
  text-decoration: none;
}

.footer-note {
  margin-top: 56px;
  color: #8fa09e;
  font-size: 13px;
}

/* ---------- company profile and search pages ---------- */

.page-head {
  padding-block: clamp(40px, 6vw, 96px) clamp(32px, 4vw, 56px);
}

.page-head .lede {
  margin-top: 24px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px;
  align-items: start;
}

.facts {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.facts dt {
  color: var(--color-silver-mist);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dd {
  margin-top: 4px;
  color: var(--color-liquid-mist);
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.source-note {
  margin-top: 20px;
  color: var(--color-silver-mist);
  font-size: 14px;
}

.results {
  display: grid;
  gap: 4px;
}

.result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(16px, 2.6vw, 36px);
  border-radius: var(--radius-card);
  color: var(--color-platinum);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.3s var(--ease-out);
}

.result small {
  display: block;
  margin-top: 4px;
  color: var(--color-silver-mist);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.empty {
  padding: 24px clamp(16px, 2.6vw, 36px);
}

/* ---------- long-form text (privacy) ---------- */

.prose {
  max-width: calc(44rem + 2 * var(--page-gutter));
  margin-inline: auto;
  padding-bottom: calc(var(--section-gap) / 2);
}

.prose h2 {
  margin-top: 56px;
}

.prose p {
  margin-top: 16px;
  color: var(--color-liquid-mist);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  left: var(--page-gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: var(--radius-small);
  background: var(--color-liquid-mist);
  color: var(--color-liquid-deep);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .explore,
  .check,
  .approach,
  .profile-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .graph {
    max-width: 26rem;
    margin-inline: auto;
  }

  .approach-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  html:not(.js) .nav-links {
    order: 3;
    width: 100%;
  }

  /* The button beside the logo already goes to contact. */
  html:not(.js) .nav-links a[href="/contact/"] {
    display: none;
  }
}

/* ---------- motion ---------- */

/* Set by seeku.js as blocks scroll into view. */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(10px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 1s var(--ease-out) calc(var(--i, 0) * 90ms),
    transform 1s var(--ease-out) calc(var(--i, 0) * 90ms),
    filter 1s var(--ease-out) calc(var(--i, 0) * 90ms),
    background-color 0.3s var(--ease-out);
}

/* Word-by-word headline rise; seeku.js wraps each word. */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.05em 0.14em;
  margin: 0 -0.05em -0.14em;
}

.word > span {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transform-origin: left bottom;
  animation: word-up 1.1s var(--ease-out) calc(var(--i) * 90ms + 0.15s) forwards;
}

/* The pointer light: a teal glow inside the surface stack, placed by seeku.js. */
.card,
.feature,
.result,
.work-card,
.ledger li {
  background-image: radial-gradient(460px circle at var(--mx, -999px) var(--my, -999px), rgba(127, 220, 214, 0.16), transparent 70%);
}

.card {
  transition: transform 0.5s var(--ease-out);
}

.feature h3,
.result > span,
.ledger h3 {
  transition: transform 0.5s var(--ease-out);
}

/* Slow light drifting behind the hero, in the palette's teal and lavender. */
.hero::before,
.hero::after,
.service-hero::before,
.service-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: max(46vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.hero::before,
.service-hero::before {
  left: -14vw;
  top: -8vw;
  background: #00827c;
  opacity: 0.4;
  animation: drift-a 14s ease-in-out infinite alternate;
}

.hero::after,
.service-hero::after {
  right: -18vw;
  top: 24%;
  background: #fad1ff;
  opacity: 0.12;
  animation: drift-b 18s ease-in-out infinite alternate;
}

.arrow svg {
  transition: transform 0.4s var(--ease-out);
}

.nav-links a {
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: color 0.2s var(--ease-out), background-size 0.4s var(--ease-out);
}

.search-form input {
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.search-form input:focus {
  border-color: var(--color-lavender-phosphor);
  background-color: #011514;
  outline: none;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(-16px); }
}

@keyframes word-up {
  to { transform: none; }
}

@keyframes sheen {
  to { background-position: 100% 0; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes drift-a {
  to { transform: translate(18vw, 10vw) scale(1.25); }
}

@keyframes drift-b {
  to { transform: translate(-22vw, -8vw) scale(0.8); }
}

@keyframes launch {
  40% { transform: translate(10px, -10px); opacity: 0; }
  41% { transform: translate(-10px, 10px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- menu button and small-screen menu ---------- */

.nav-toggle {
  display: none;
  flex: none;
  place-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-small);
  background: var(--color-liquid-kelp);
  cursor: pointer;
}

.nav-toggle i {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-platinum);
  transition: transform 0.4s var(--ease-out);
}

/* The two bars are 8.5px apart, so each travels half of that to cross at the middle. */
.nav-open .nav-toggle i:first-of-type { transform: translateY(4.25px) rotate(45deg); }
.nav-open .nav-toggle i:last-of-type { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 860px) {
  .js .nav {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .js .nav-toggle {
    display: grid;
  }

  .js .nav > .button {
    min-height: 44px;
    margin-left: auto;
    padding: 12px 14px;
    font-size: 13px;
  }

  /* The panel hangs below the header and fills the rest of the screen. */
  .js .nav-links {
    position: absolute;
    inset: 100% 0 auto;
    z-index: 5;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    height: calc(100dvh - 100%);
    padding: 16px var(--page-gutter) 40px;
    overflow-y: auto;
    background: var(--color-liquid-deep);
    visibility: hidden;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.6s var(--ease-out), opacity 0.3s var(--ease-out), visibility 0s 0.6s;
  }

  .nav-open .nav-links {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0);
    transition-delay: 0s;
  }

  .js .nav-links a {
    padding-block: 18px;
    border-bottom: 1px solid var(--color-hairline);
    background: none;
    color: var(--color-platinum);
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-transform: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  }

  .nav-open .nav-links a {
    opacity: 1;
    transform: none;
  }

  .nav-open .nav-links a:nth-child(1) { transition-delay: 0.15s; }
  .nav-open .nav-links a:nth-child(2) { transition-delay: 0.21s; }
  .nav-open .nav-links a:nth-child(3) { transition-delay: 0.27s; }
  .nav-open .nav-links a:nth-child(4) { transition-delay: 0.33s; }
  .nav-open .nav-links a:nth-child(5) { transition-delay: 0.39s; }

  .nav-open,
  .nav-open body {
    overflow: hidden;
  }
}

/* ---------- hover, and what touch screens get instead ---------- */

/* A touch screen has no hover. seeku.js marks the row crossing the middle of the screen as
   .is-active, which gets the hover look, and links answer a press. */
.feature.is-active,
.result.is-active,
.ledger li.is-active {
  background-color: var(--color-liquid-kelp);
  --mx: 88%;
  --my: 10%;
}

.work-card.is-active {
  --mx: 88%;
  --my: 10%;
}

.feature.is-active h3,
.result.is-active > span,
.ledger li.is-active h3 {
  transform: translateX(8px);
}

.is-active .arrow {
  background: #03514b;
  transform: translate(2px, -2px);
}

a.feature:active,
a.result:active {
  transform: scale(0.985);
}

@media (hover: hover) {
  .button:hover { transform: translateY(-3px); }
  .button--quiet:hover { background: #05433f; }

  .nav-links a:hover,
  .footer-grid a:hover {
    color: var(--color-platinum);
  }

  .nav-links a:hover { background-size: 100% 1px; }

  a:hover .arrow {
    background: #03514b;
    transform: translate(2px, -2px);
  }

  a:hover .arrow svg { animation: launch 0.6s var(--ease-out); }

  .feature:hover,
  .result:hover,
  .ledger li:hover {
    background-color: var(--color-liquid-kelp);
  }

  .feature:hover h3,
  .result:hover > span,
  .ledger li:hover h3 {
    transform: translateX(8px);
  }

  .approach-steps .card:hover,
  .profile-grid .card:hover,
  .work-card:hover {
    transform: translateY(-6px);
  }
}

/* ---------- work ---------- */

.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 64px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.work-card {
  display: grid;
  align-content: start;
  gap: 28px;
  border-radius: var(--radius-card);
  background-color: var(--color-liquid-kelp);
  padding: clamp(20px, 2.4vw, 32px);
  transition: transform 0.5s var(--ease-out);
}

.work-card--wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
}

/* The wide card pins its text to the top and its link to the bottom. */
.work-card--wide { align-items: stretch; }
.work-card--wide > div:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.work-card--wide > div:first-child > .arrow-link { margin-top: auto; padding-top: 24px; }

.work-card .label + h3 { margin-top: 16px; }
.work-card h3 + p { margin-top: 12px; }
.work-card .arrow-link { margin-top: 24px; }

/* A recessed plate holds every drawn fragment: the work previews and the service page visuals. */
.plate {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-liquid-deep);
  padding: clamp(20px, 2.4vw, 32px);
}

/* The directory lookup: a registry code rolls like a counter and its company page fills in below. */
.lookup-code {
  display: flex;
  gap: clamp(4px, 0.7vw, 10px);
  margin-top: 20px;
  color: var(--color-lavender-phosphor);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  cursor: text;
}

.digit {
  flex: 1 1 0;
  height: 1.15em;
  overflow: hidden;
  border-bottom: 1px solid var(--color-hairline);
  text-align: center;
  transition: border-color 0.3s var(--ease-out);
}

.reel {
  display: block;
  transform: translateY(calc(var(--d) * -100% / 11));
  transition: transform 0.9s var(--ease-out);
}

.digit:nth-child(2) .reel { transition-delay: 0.04s; }
.digit:nth-child(3) .reel { transition-delay: 0.08s; }
.digit:nth-child(4) .reel { transition-delay: 0.12s; }
.digit:nth-child(5) .reel { transition-delay: 0.16s; }
.digit:nth-child(6) .reel { transition-delay: 0.2s; }
.digit:nth-child(7) .reel { transition-delay: 0.24s; }
.digit:nth-child(8) .reel { transition-delay: 0.28s; }

/* Typing moves each digit at once, without the roll-in stagger. */
.lookup.is-typing .reel { transition-duration: 0.35s; transition-delay: 0s; }
.lookup:focus-within .digit { border-color: var(--color-lavender-phosphor); }

.lookup-record {
  margin-top: 20px;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.is-swapping .lookup-record,
.is-typing .lookup-record {
  opacity: 0.2;
  transform: translateY(6px);
}

.lookup-url {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-url span { color: var(--color-liquid-mist); }
.lookup-record .mock-title { margin-top: 6px; }

.lookup-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--color-hairline);
}

.lookup-form label {
  flex: 1 0 100%;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lookup-form input {
  width: 9.5rem;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-small);
  background: var(--color-liquid-abyss);
  color: var(--color-platinum);
  font: inherit;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  caret-color: var(--color-lavender-phosphor);
  transition: border-color 0.3s var(--ease-out);
}

.lookup-form input::placeholder { color: #8fa09e; letter-spacing: 0; }
.lookup-form input:focus { border-color: var(--color-lavender-phosphor); outline: none; }
.work-card .lookup-form .arrow-link { margin-top: 0; }
/* No link while the code on show has no page behind it. */
.is-typing .arrow-link { visibility: hidden; }
.lookup-status { flex: 1 0 100%; min-height: 1.5em; color: var(--color-liquid-mist); font-size: 14px; }

.mock-title {
  margin-top: 12px;
  color: var(--color-platinum);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mock-rows {
  margin-top: 20px;
}

.mock-rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--color-hairline);
}

.mock-rows dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mock-rows dd {
  color: var(--color-liquid-mist);
}

.mock-checks {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.mock-checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-liquid-mist);
}

.mock-checks li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border: 1px solid var(--color-silver-mist);
  border-radius: 50%;
  animation: tick 6s var(--ease-out) infinite;
}

.mock-checks li:nth-child(2)::before { animation-delay: 0.5s; }
.mock-checks li:nth-child(3)::before { animation-delay: 1s; }
.mock-checks li:nth-child(4)::before { animation-delay: 1.5s; }
.mock-checks li:nth-child(5)::before { animation-delay: 2s; }

/* Rows of bars that grow in one after another: the dashboard preview and the payback chart. */
.bars {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.bars li {
  display: grid;
  grid-template-columns: var(--bars-label, 2rem) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bars i {
  width: var(--w);
  height: 26px;
  border-radius: var(--radius-small);
  background: var(--color-liquid-kelp);
  transform-origin: left;
  animation: grow 7s var(--ease-out) infinite;
}

.work-card .bars i { background: #05433f; }
.bars li:first-child i { background: var(--color-liquid-mist); }
.bars li:nth-child(2) i { animation-delay: 0.25s; }
.bars li:nth-child(3) i { animation-delay: 0.5s; }
.bars li:nth-child(4) i { animation-delay: 0.75s; }
.bars li:nth-child(5) i { animation-delay: 1s; }

/* ---------- service pages ---------- */

.service-hero {
  position: relative;
  overflow-x: clip;
  padding-block: clamp(40px, 6vw, 96px);
}

/* Clipped sideways only, so the glows fade out over the next section; they sit behind all text. */
.service-hero::before,
.service-hero::after {
  z-index: -1;
}

.service-hero > .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.service-hero .hero-copy {
  justify-items: start;
  text-align: left;
}

.service-hero .display {
  max-width: none;
  font-size: clamp(2.6rem, 5.4vw, 5rem);
}

.service-hero .hero-actions {
  justify-content: flex-start;
}

.service-visual {
  animation: surface 2s var(--ease-out) 0.3s both;
}

.ledger {
  margin-top: 40px;
}

.ledger li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr);
  align-items: baseline;
  gap: 12px 24px;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 2.6vw, 36px);
  border-radius: var(--radius-card);
}

.ticks {
  display: grid;
  gap: 18px;
}

.ticks li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  color: var(--color-liquid-mist);
  font-size: 1.125rem;
}

.ticks li::before {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: var(--radius-small);
  background: var(--color-arrow-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M2 6.5 5 9.5 10 3'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Search visibility: your row climbs the results. seo/index.html moves the rows. */
.rank-list {
  position: relative;
  height: 312px;
  margin-top: 20px;
}

.rank-list li {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding-inline: 16px;
  border-radius: var(--radius-small);
  background: var(--color-liquid-kelp);
  transform: translateY(calc(var(--slot) * 64px));
  transition: transform 0.9s var(--ease-out);
}

.rank-list b {
  width: 1.5ch;
  color: var(--color-silver-mist);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.rank-list span:empty {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.rank-list .rank-you {
  z-index: 1;
  background: #05433f;
  color: var(--color-platinum);
  font-weight: 500;
}

.rank-you b {
  color: var(--color-lavender-phosphor);
}

/* Development: a page assembling itself block by block. */
.build-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.build-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-liquid-kelp);
}

.build-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.build-body div {
  height: 84px;
  border-radius: var(--radius-small);
  background: var(--color-liquid-kelp);
  animation: assemble 8s var(--ease-out) infinite both;
}

.build-body div:first-child {
  grid-column: 1 / -1;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  height: 132px;
  padding-inline: 20px;
}

.build-body div:first-child::before {
  content: "";
  width: 58%;
  height: 12px;
  border-radius: 4px;
  background: var(--color-liquid-mist);
}

.build-body div:first-child::after {
  content: "";
  width: 72px;
  height: 20px;
  border-radius: 4px;
  background: var(--gradient-aurora);
}

.build-body div:last-child {
  grid-column: 1 / -1;
  height: 44px;
}

.build-body div:nth-child(2) { animation-delay: 0.45s; }
.build-body div:nth-child(3) { animation-delay: 0.6s; }
.build-body div:nth-child(4) { animation-delay: 0.75s; }
.build-body div:nth-child(5) { animation-delay: 1.1s; }

@keyframes tick {
  0%, 8% { background: transparent; border-color: var(--color-silver-mist); transform: none; }
  16% { transform: scale(1.6); }
  22%, 90% { background: var(--color-lavender-phosphor); border-color: var(--color-lavender-phosphor); transform: none; }
}

@keyframes grow {
  0% { transform: scaleX(0); }
  16%, 86% { transform: none; }
  100% { transform: scaleX(0); }
}

@keyframes assemble {
  0% { opacity: 0; transform: translateY(24px) scale(0.94); }
  12%, 84% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(-12px); }
}

/* Small screens, for the blocks defined after the main small-screen rules above. */
@media (max-width: 860px) {
  .service-hero > .wrap,
  .work-grid,
  .work-card--wide,
  .ledger li {
    grid-template-columns: minmax(0, 1fr);
  }
}
