/* Bloom Marketing — bloommarketing.us
 *
 * Hand-authored. No framework, no build step, no preprocessor.
 *
 * The page alternates night (ink) and day (bone) section by section, the way a
 * plant cycles. Each section sets a small theme block of custom properties, so
 * a component written once (a chip, a button, a stat) reads correctly on both.
 *
 * Two constraints shaped the file:
 *   - The CSP has no 'unsafe-inline' for styles, so nothing here can be an
 *     inline style attribute. Per-item animation delays are :nth-child ladders.
 *   - Everything above the fold must be correct with JavaScript off. Only the
 *     `.js` class (added by site.js) may hide anything, and nothing it hides
 *     starts on screen.
 */

/* ------------------------------------------------------------------ tokens */

/* Palette. Acid is THE accent and it is always paired with ink (15.5:1), never
 * with bone (1.1:1 — invisible). The two greens are role-split so neither can
 * be used where it fails: --leaf is a MARK colour, for rules and shapes on ink
 * (3.9:1, a graphic ratio, never body text); --forest is the only green that is
 * TEXT, and only on bone or paper (7.2:1 / 7.8:1). */
:root {
  --ink: #0a0c0a;
  --moss: #10241a;
  --bone: #f3efe6;
  --paper: #fbf9f4;
  --acid: #c6f542;
  --acid-2: #b4e633;
  --leaf: #2e7d46;
  --forest: #1f5a2c;
  --ink-2: #5c635c;
  --bone-2: #b8b3a6;

  /* One family carries the whole page. Bricolage is a variable font with an
   * optical-size axis, so the 17px body and the 66px headline are typeset from
   * genuinely different masters rather than one outline scaled twice. */
  --f-display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --f-body: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --wrap: 1440px;
  --gap: clamp(24px, 3vw, 48px);
  --sec-y: clamp(72px, 11vh, 160px);
  --r: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* default (dark) theme block; every section overrides one of these two */
  --bg: var(--ink);
  --fg: var(--bone);
  --muted: var(--bone-2);
  --rule: rgb(243 239 230 / 15%);
  --rule-soft: rgb(243 239 230 / 8%);
  --card: var(--moss);
  --green: var(--acid);
  --focus: var(--acid);
  --sel-bg: var(--acid);
  --sel-fg: var(--ink);
}

/* Night sections. */
.hero,
.svc,
.stats,
.faq,
.ft,
.wk-metrics,
.nf,
.page-work .cta {
  background: var(--bg);
  color: var(--fg);
}

/* Day sections: one theme block, applied where the page turns over. */
.intro,
.work,
.proc,
.tst,
.cta,
.doc,
.wk-hero,
.wk-cover,
.wk-body,
.wk-nav {
  --bg: var(--bone);
  --fg: var(--ink);
  --muted: var(--ink-2);
  --rule: rgb(10 12 10 / 14%);
  --rule-soft: rgb(10 12 10 / 7%);
  --card: var(--paper);
  /* Acid is invisible on bone (1.1:1), so green TEXT resolves to --forest. */
  --green: var(--forest);
  --focus: var(--forest);
  --sel-bg: var(--forest);
  --sel-fg: var(--bone);
  background: var(--bg);
  color: var(--fg);
}

.tst {
  --bg: var(--paper);
}

.page-work .cta {
  --bg: var(--ink);
  --fg: var(--bone);
  --muted: var(--bone-2);
  --rule: rgb(243 239 230 / 15%);
  --card: var(--moss);
  --green: var(--acid);
  --focus: var(--acid);
  --sel-bg: var(--acid);
  --sel-fg: var(--ink);
}

/* -------------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The sticky header is out of flow, so an in-page jump would land under it. */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  /* 17px, 1.55, no tracking. Bricolage at its small optical size is already
   * open enough that negative tracking closes the counters. */
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  body {
    font-size: 1.125rem;
  }
}

/* Grain. A fixed, non-interactive film that gives both palettes some tooth. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Display is the same family, two masters up: 700 with tight tracking, and the
 * optical-size axis picks the large-size drawing on its own. */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.034em;
  line-height: 0.94;
  text-wrap: balance;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--sel-bg);
  color: var(--sel-fg);
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 14px 20px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

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

section {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------------ shared */

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 0.08em;
}

/* Measure caps on DISPLAY type are in rem, never ch. Bricolage's "0" is narrow
 * enough that a ch cap collapses a 65px heading to four or five words a line —
 * which is what happened before this was pinned. Body copy still uses ch. */
.sec-head {
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
  padding-block: var(--sec-y) clamp(32px, 4vw, 56px);
  max-width: min(100%, 46rem);
}

.sec-eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sec-h {
  font-size: clamp(2.1rem, 5.2vw, 4.1rem);
}

.chip {
  display: inline-block;
  padding: 5px 12px 6px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.25s var(--ease-out);
  will-change: transform;
}

.btn-a {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover .btn-a,
.btn:focus-visible .btn-a {
  transform: translateX(5px);
}

.btn-primary {
  background: var(--acid);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--acid-2);
}

.btn-solid {
  background: var(--ink);
  color: var(--bone);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--forest);
  color: var(--bone);
}

.page-work .cta .btn-solid {
  background: var(--acid);
  color: var(--ink);
}

.page-work .cta .btn-solid:hover,
.page-work .cta .btn-solid:focus-visible {
  background: var(--acid-2);
}

.btn-ghost {
  border-color: var(--rule);
  color: var(--fg);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: currentcolor;
}

.btn-lg {
  padding: 20px 30px 21px;
  font-size: 1.0625rem;
}

/* Scroll reveals. Nothing above the fold carries `.reveal`, so the class
 * landing late (site.js is deferred) can never produce a visible flash. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ header */

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  /* The wordmark inverts against whatever section is under it, so one header
   * reads correctly over ink AND bone with no scroll listener at all. */
  mix-blend-mode: difference;
  color: #fff;
  padding-block: clamp(14px, 2vw, 22px);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.hdr-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
}

.mark-i {
  width: 22px;
  height: 22px;
  flex: none;
}

.hdr-nav {
  display: none;
  gap: clamp(18px, 2.4vw, 34px);
  margin-inline: auto;
  font-size: 0.9375rem;
}

.hdr-nav a {
  opacity: 0.72;
  transition: opacity 0.25s var(--ease);
}

.hdr-nav a:hover,
.hdr-nav a:focus-visible {
  opacity: 1;
}

.hdr-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid currentcolor;
  padding-bottom: 2px;
  will-change: transform;
}

.hdr-cta-a {
  transition: transform 0.35s var(--ease-out);
}

.hdr-cta:hover .hdr-cta-a {
  transform: translateX(4px);
}

@media (min-width: 900px) {
  .hdr-nav {
    display: flex;
  }

  .hdr-cta {
    margin-left: 0;
  }
}

/* Blend is the whole mechanism; without it the header needs its own ground. */
@supports not (mix-blend-mode: difference) {
  .hdr {
    color: var(--bone);
    background: rgb(10 12 10 / 78%);
    backdrop-filter: blur(12px);
  }
}

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

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-block: clamp(140px, 20vh, 220px) clamp(48px, 7vh, 96px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(10 12 10 / 62%) 0%, rgb(10 12 10 / 12%) 34%, rgb(10 12 10 / 88%) 100%),
    linear-gradient(100deg, var(--ink) 2%, rgb(10 12 10 / 74%) 38%, rgb(10 12 10 / 10%) 78%, transparent 100%);
}

.hero-canvas,
.hero-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-canvas {
  display: none;
}

.hero-static {
  object-fit: cover;
  object-position: 84% 40%;
  opacity: 0.55;
}

/* site.js sets `has-canvas` only once the generative field is actually
 * running, so the static bloom is the default and the fallback at once. */
.has-canvas .hero-canvas {
  display: block;
}

.has-canvas .hero-static {
  display: none;
}

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

.hero-eyebrow {
  margin: 0 0 clamp(20px, 3vw, 34px);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-2);
}

.hero-h1 {
  margin: 0;
  font-size: clamp(3.1rem, 12vw, 9.4rem);
  line-height: 0.9;
  letter-spacing: -0.042em;
  font-weight: 800;
  max-width: min(100%, 68rem);
  text-wrap: pretty;
}

.hero-h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.hero-h1 .w > i {
  display: inline-block;
  font-style: normal;
}

.acc {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--acid);
  letter-spacing: -0.015em;
  padding-inline: 0.02em;
}

.hero-sub {
  margin: clamp(26px, 3.4vw, 40px) 0 0;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  color: var(--bone-2);
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 46px);
}

.hero-edge {
  position: absolute;
  right: var(--pad);
  bottom: clamp(48px, 7vh, 96px);
  z-index: 1;
  display: none;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-2);
}

.hero-edge-l {
  display: block;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--bone-2), transparent);
}

@media (min-width: 900px) {
  .hero-edge {
    display: flex;
  }
}

/* ----------------------------------------------------------------- marquee */

.mq {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-block: 1px solid rgb(10 12 10 / 22%);
}

.mq-row {
  display: flex;
  overflow: hidden;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.026em;
  line-height: 1;
  padding-block: clamp(12px, 1.4vw, 20px);
}

.mq-a {
  background: var(--leaf);
  color: var(--bone);
}

.mq-b {
  background: var(--ink);
  color: var(--acid);
  border-top: 1px solid rgb(10 12 10 / 22%);
}

.mq-track {
  display: flex;
  align-items: center;
  flex: none;
  gap: clamp(14px, 1.6vw, 24px);
  padding-right: clamp(14px, 1.6vw, 24px);
  white-space: nowrap;
  will-change: transform;
}

.mq-i {
  flex: none;
}

.mq-d {
  flex: none;
  font-size: 0.34em;
  opacity: 0.55;
  transform: translateY(-0.32em);
}

/* ------------------------------------------------------------------- intro */

.intro {
  padding-block: var(--sec-y);
}

.intro-grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
}

.intro-h {
  font-size: clamp(1.75rem, 3.6vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 500;
  max-width: min(100%, 42rem);
  position: relative;
  padding-top: 30px;
}

.intro-h::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 84px;
  height: 4px;
  background: var(--leaf);
}

.intro-body {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

@media (min-width: 980px) {
  .intro-grid {
    grid-template-columns: 1.25fr 1fr;
    align-items: start;
  }

  .intro-body {
    padding-top: 34px;
  }
}

/* ---------------------------------------------------------------- services */

.svc {
  padding-bottom: var(--sec-y);
}

.svc-list {
  border-top: 1px solid var(--rule);
}

.svc-item {
  border-bottom: 1px solid var(--rule);
}

.svc-head {
  margin: 0;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.svc-btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  width: 100%;
  padding: clamp(22px, 3vw, 34px) 0;
  text-align: left;
  transition: color 0.35s var(--ease);
}

.svc-num {
  font-family: var(--f-display);
  font-size: clamp(0.875rem, 1.2vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.svc-title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.036em;
  line-height: 1;
}

.svc-ico {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}

.svc-ico::before,
.svc-ico::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: currentcolor;
  transition: transform 0.45s var(--ease-out);
}

.svc-ico::after {
  transform: rotate(90deg);
}

.svc-item.is-open .svc-ico::after {
  transform: rotate(180deg);
}

.svc-btn:hover .svc-title,
.svc-btn:focus-visible .svc-title {
  color: var(--acid);
}

/* Rows use grid-template-rows 1fr -> 0fr so the panel animates to its own
 * natural height without JavaScript measuring anything. */
.svc-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}

.svc-panel-in {
  overflow: hidden;
  min-height: 0;
}

.js .svc-item:not(.is-open) .svc-panel {
  grid-template-rows: 0fr;
}

/* Collapsed panels leave the accessibility tree too, so `aria-expanded="false"`
 * is not a lie to a screen reader. */
.js .svc-item:not(.is-open) .svc-panel-in {
  visibility: hidden;
  transition: visibility 0s 0.5s;
}

.svc-sum {
  max-width: 58ch;
  margin: 0 0 20px;
  padding-bottom: 4px;
  color: var(--muted);
}

.svc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: clamp(24px, 3vw, 36px);
}

@media (min-width: 900px) {
  .svc-panel-in {
    padding-left: calc(clamp(16px, 3vw, 44px) + 2.6ch);
  }
}

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

.work {
  padding-bottom: var(--sec-y);
}

.work .sec-head {
  padding-bottom: clamp(16px, 2vw, 22px);
}

.work-hint {
  margin: 0 0 clamp(26px, 3vw, 40px);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-strip {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  padding-inline: var(--pad);
}

.work-card {
  min-width: 0;
}

.work-link {
  display: grid;
  gap: 14px;
  height: 100%;
  align-content: start;
}

.work-media {
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.75s var(--ease-out);
}

.work-link:hover .work-media img,
.work-link:focus-visible .work-media img {
  transform: scale(1.06);
}

.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-client {
  color: var(--green);
  font-weight: 500;
}

.work-title {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}

.work-sum {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.work-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.work-go-a {
  transition: transform 0.35s var(--ease-out);
}

.work-link:hover .work-go-a,
.work-link:focus-visible .work-go-a {
  transform: translateX(5px);
}

@media (min-width: 760px) {
  .work-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
  }

  .work-card {
    flex: 0 0 clamp(320px, 30vw, 440px);
    scroll-snap-align: start;
  }

  .work-strip.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .work-strip.is-dragging .work-link {
    pointer-events: none;
  }

  .work-strip::-webkit-scrollbar {
    height: 6px;
  }

  .work-strip::-webkit-scrollbar-thumb {
    background: var(--rule);
    border-radius: 999px;
  }
}

/* ------------------------------------------------------------------- stats */

.stats {
  padding-block: var(--sec-y);
  border-top: 1px solid var(--rule-soft);
}

.stats-grid,
.wk-metrics-grid {
  display: grid;
  gap: clamp(28px, 3.4vw, 48px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.stat-v {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.stat-l {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
  max-width: 22ch;
}

@media (min-width: 860px) {
  .stats-grid,
  .wk-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ----------------------------------------------------------------- process */

.proc {
  padding-bottom: var(--sec-y);
}

.proc-list {
  display: grid;
  gap: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--rule);
  padding-top: clamp(28px, 3vw, 40px);
}

.proc-step {
  display: grid;
  gap: 12px;
  align-content: start;
}

.proc-n {
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--green);
}

.proc-t {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
}

.proc-b {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 34ch;
}

@media (min-width: 800px) {
  .proc-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 36px);
  }

  .proc-step {
    border-left: 1px solid var(--rule);
    padding-left: clamp(16px, 1.6vw, 24px);
  }
}

/* ------------------------------------------------------------ testimonials */

.tst {
  padding-bottom: var(--sec-y);
}

.tst-list {
  display: grid;
  gap: clamp(24px, 2.6vw, 36px);
}

.tst-fig {
  margin: 0;
  height: 100%;
  padding: clamp(26px, 3vw, 40px);
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  display: grid;
  gap: 22px;
  align-content: space-between;
}

.tst-q {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.28;
}

.tst-q p::before {
  content: "\201C";
  color: var(--green);
}

.tst-q p::after {
  content: "\201D";
  color: var(--green);
}

.tst-cap {
  display: grid;
  gap: 3px;
  font-size: 0.875rem;
}

.tst-name {
  font-weight: 500;
}

.tst-role {
  color: var(--muted);
}

@media (min-width: 860px) {
  .tst-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------- faq */

.faq {
  padding-bottom: var(--sec-y);
}

.faq-grid {
  display: grid;
  gap: clamp(8px, 2vw, 56px);
}

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 28px) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: clamp(1.125rem, 1.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.16;
  transition: color 0.3s var(--ease);
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q:hover {
  color: var(--acid);
}

.faq-q-i {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.32em;
}

.faq-q-i::before,
.faq-q-i::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: currentcolor;
  transition: transform 0.4s var(--ease-out);
}

.faq-q-i::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-q-i::after {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 0 clamp(22px, 2.6vw, 30px);
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
}

@media (min-width: 980px) {
  .faq-grid {
    grid-template-columns: 1fr 1.35fr;
    align-items: start;
  }

  .faq .sec-head {
    padding-bottom: 0;
  }

  .faq-list {
    margin-top: var(--sec-y);
  }
}

/* --------------------------------------------------------------------- cta */

.cta {
  padding-block: clamp(88px, 14vh, 190px);
  border-top: 1px solid var(--rule-soft);
}

.cta-in {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  justify-items: start;
}

.cta-h {
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: -0.04em;
  max-width: min(100%, 58rem);
}

.cta-b {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
}

.cta-act {
  margin-top: 10px;
}

.cta-alt {
  font-size: 0.9375rem;
  color: var(--muted);
}

.cta-alt a {
  color: var(--green);
  border-bottom: 1px solid currentcolor;
}

/* ------------------------------------------------------------------ footer */

.ft {
  position: relative;
  z-index: 1;
  padding-top: clamp(60px, 8vh, 110px);
  overflow: hidden;
}

.ft-top {
  display: grid;
  gap: clamp(44px, 6vw, 80px);
}

.ft-mega {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 26px);
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.046em;
  line-height: 0.94;
  transition: color 0.35s var(--ease);
}

.ft-mega:hover,
.ft-mega:focus-visible {
  color: var(--acid);
}

.ft-mega-a {
  font-size: 0.5em;
  transition: transform 0.45s var(--ease-out);
}

.ft-mega:hover .ft-mega-a {
  transform: translateX(0.22em);
}

.ft-cols {
  display: grid;
  gap: clamp(28px, 3vw, 40px) clamp(40px, 8vw, 130px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), max-content));
  justify-content: start;
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--rule);
}

.ft-h {
  margin: 0 0 16px;
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-2);
}

.ft-list {
  display: grid;
  gap: 9px;
  font-size: 0.9375rem;
}

.ft-list a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.ft-list a:hover,
.ft-list a:focus-visible {
  border-bottom-color: currentcolor;
}

.ft-plain {
  color: var(--bone-2);
}

.ft-wordmark {
  padding-inline: var(--pad);
  margin-top: clamp(48px, 8vh, 110px);
}

.ft-wordmark svg {
  width: 100%;
  height: auto;
  display: block;
}

.ft-wordmark-t {
  font-family: var(--f-display);
  font-size: 210px;
  font-weight: 800;
  letter-spacing: -0.058em;
  fill: var(--moss);
}

.ft-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  padding-block: clamp(22px, 3vh, 34px);
  border-top: 1px solid var(--rule-soft);
  margin-top: clamp(20px, 3vh, 34px);
  font-size: 0.8125rem;
  color: var(--bone-2);
}

.ft-legal p {
  margin: 0;
}

/* --------------------------------------------------------- work case study */

.wk-hero {
  padding-block: clamp(130px, 18vh, 200px) clamp(32px, 4vw, 52px);
}

.wk-back {
  margin: 0 0 clamp(26px, 4vw, 44px);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.wk-back a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.wk-back a:hover {
  border-bottom-color: currentcolor;
}

.wk-eyebrow {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
}

.wk-sep {
  color: var(--muted);
}

.wk-h1 {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  letter-spacing: -0.04em;
  max-width: min(100%, 54rem);
}

.wk-sum {
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--muted);
}

.wk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(22px, 2.6vw, 30px);
}

.wk-cover {
  margin: 0;
  padding-inline: var(--pad);
  padding-bottom: clamp(20px, 3vw, 40px);
}

.wk-cover img {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  border-radius: var(--r);
  border: 1px solid var(--rule);
}

.wk-metrics {
  padding-block: clamp(44px, 7vh, 88px);
}

.wk-body {
  padding-block: clamp(44px, 7vh, 88px);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.62;
}

.wk-body > * {
  max-width: 68ch;
}

.wk-body p {
  margin-bottom: 1.15em;
}

.wk-visit {
  margin-top: clamp(24px, 3vw, 36px);
}

.wk-nav {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: clamp(60px, 9vh, 110px);
  border-top: 1px solid var(--rule);
}

.wk-pager {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: clamp(24px, 3vw, 34px) 0;
  min-width: 0;
}

.wk-pager-next {
  text-align: right;
  border-left: 1px solid var(--rule);
  padding-left: clamp(16px, 2vw, 28px);
}

.wk-pager-prev {
  padding-right: clamp(16px, 2vw, 28px);
}

.wk-pager-l {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.wk-pager-t {
  font-family: var(--f-display);
  font-size: clamp(1.125rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
  transition: color 0.3s var(--ease);
}

a.wk-pager:hover .wk-pager-t {
  color: var(--green);
}

.wk-pager.is-off {
  opacity: 0.3;
}

/* --------------------------------------------------------- privacy and 404 */

.doc {
  display: block;
  padding-block: clamp(130px, 18vh, 200px) clamp(70px, 10vh, 120px);
}

.doc-in > * {
  max-width: 68ch;
}

.doc-back {
  margin: 0 0 clamp(26px, 4vw, 44px);
  font-size: 0.875rem;
  color: var(--muted);
}

.doc-back a {
  border-bottom: 1px solid transparent;
}

.doc-back a:hover {
  border-bottom-color: currentcolor;
}

.doc-h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: -0.04em;
}

.doc-lead {
  margin: clamp(16px, 2vw, 22px) 0 clamp(36px, 5vw, 56px);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--muted);
}

.doc-in h2 {
  margin: clamp(34px, 4.5vw, 52px) 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.doc-in p {
  color: var(--ink-2);
}

.doc-in a {
  color: var(--forest);
  border-bottom: 1px solid currentcolor;
}

.doc-host {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.nf {
  display: flex;
  align-items: center;
  min-height: 92svh;
  padding-block: clamp(140px, 20vh, 220px) clamp(70px, 10vh, 120px);
}

.nf-in {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  justify-items: start;
}

.nf-code {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(5rem, 22vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.058em;
  line-height: 0.82;
  color: var(--moss);
}

.nf-h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
  letter-spacing: -0.04em;
}

.nf-b {
  max-width: 42ch;
  color: var(--bone-2);
}

.nf-act {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

/* ------------------------------------------------------------------ cursor */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: var(--acid);
  mix-blend-mode: difference;
  pointer-events: none;
  transition:
    width 0.28s var(--ease-out),
    height 0.28s var(--ease-out),
    margin 0.28s var(--ease-out),
    opacity 0.3s linear;
  will-change: transform;
}

.cursor.is-lg {
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
}

.cursor.is-off {
  opacity: 0;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-h1 .w > i {
    animation: word-in 0.95s var(--ease-out) both;
  }

  /* The stagger ladder. A custom property on the element would be an inline
   * style attribute, which the CSP refuses — so the delays live here. */
  .hero-h1 .w:nth-child(1) > i { animation-delay: 0.06s; }
  .hero-h1 .w:nth-child(2) > i { animation-delay: 0.12s; }
  .hero-h1 .w:nth-child(3) > i { animation-delay: 0.18s; }
  .hero-h1 .w:nth-child(4) > i { animation-delay: 0.24s; }
  .hero-h1 .w:nth-child(5) > i { animation-delay: 0.3s; }
  .hero-h1 .w:nth-child(6) > i { animation-delay: 0.36s; }
  .hero-h1 .w:nth-child(7) > i { animation-delay: 0.42s; }
  .hero-h1 .w:nth-child(8) > i { animation-delay: 0.48s; }
  .hero-h1 .w:nth-child(9) > i { animation-delay: 0.54s; }
  .hero-h1 .w:nth-child(10) > i { animation-delay: 0.6s; }
  .hero-h1 .w:nth-child(11) > i { animation-delay: 0.66s; }
  .hero-h1 .w:nth-child(12) > i { animation-delay: 0.72s; }
  .hero-h1 .w:nth-child(n + 13) > i { animation-delay: 0.78s; }

  .hero-eyebrow,
  .hero-sub,
  .hero-cta,
  .hero-edge {
    animation: rise-in 0.9s var(--ease-out) both;
  }

  .hero-eyebrow { animation-delay: 0.02s; }
  .hero-sub { animation-delay: 0.62s; }
  .hero-cta { animation-delay: 0.72s; }
  .hero-edge { animation-delay: 0.9s; }

  .mq-a .mq-track {
    animation: slide-l 38s linear infinite;
  }

  .mq-b .mq-track {
    animation: slide-r 44s linear infinite;
  }

  .faq-item[open] .faq-a {
    animation: rise-in 0.45s var(--ease-out) both;
  }
}

@keyframes word-in {
  from {
    transform: translateY(102%) rotate(2.5deg);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

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

  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes slide-l {
  from {
    transform: translateX(0);
  }

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

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

  to {
    transform: translateX(0);
  }
}

/* Reduced motion means NO motion: no reveal, no ticker, no smooth scroll, and
 * site.js never starts the canvas, the cursor or the count-up. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .work-media img {
    transform: none !important;
  }
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 480px) {
  .hero-h1 {
    font-size: clamp(2.5rem, 13.5vw, 3.6rem);
  }

  .btn {
    padding: 14px 18px 15px;
    font-size: 0.9375rem;
  }

  .hdr-mark-t {
    font-size: 0.875rem;
  }

  .wk-nav {
    grid-template-columns: 1fr;
  }

  .wk-pager-next {
    text-align: left;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
  }
}

@media print {
  .hdr,
  .hero-canvas,
  .hero-static,
  .mq,
  .cursor,
  body::after {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
