/* ==========================================================================
   RTH Marketing 2026 — Editorial Bold design system
   Author: build system. Single source of truth for the static site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surface */
  --paper:      #FBFAF7;
  --paper-2:    #F2F0E9;
  --paper-3:    #E8E5DC;
  --ink:        #0B0B0C;
  --ink-2:      #17171A;
  --ink-soft:   #2A2A2E;

  /* Brand */
  --teal:       #176B8A;
  --teal-dark:  #0E4A61;
  --teal-light: #2E90B4;
  --lime:       #8DC63F;
  --lime-dark:  #6FA22D;

  /* Text */
  --muted:      #6E6E76;
  --muted-dark: #9A9AA4;

  /* Lines */
  --rule:       rgba(11, 11, 12, .13);
  --rule-2:     rgba(11, 11, 12, .07);
  --rule-dark:  rgba(251, 250, 247, .16);

  /* Type */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter:    clamp(1.25rem, 4vw, 3.5rem);
  --maxw:      1320px;
  --maxw-text: 68ch;
  --section-y: clamp(4.5rem, 9vw, 9rem);

  /* Motion */
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --dur:       .6s;

  --header-h:  76px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--lime); color: var(--ink); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .85rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.d1 { font-size: clamp(2.85rem, 8.2vw, 7.5rem); }
.d2 { font-size: clamp(2.25rem, 5.6vw, 4.75rem); }
.d3 { font-size: clamp(1.75rem, 3.6vw, 3rem); letter-spacing: -.03em; }
.d4 { font-size: clamp(1.35rem, 2.3vw, 1.95rem); letter-spacing: -.02em; line-height: 1.1; }

.eyebrow {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--lime);
  flex: none;
}
.eyebrow.is-plain::before { display: none; }
.on-dark .eyebrow, .band-dark .eyebrow { color: var(--lime); }

.lede {
  font-size: clamp(1.075rem, 1.55vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

.prose { max-width: var(--maxw-text); }
.prose > * + * { margin-top: 1.15em; }
.prose p { color: var(--ink-soft); }
.prose h2 { font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2.35rem); letter-spacing: -.028em; line-height: 1.1; margin-top: 2.2em; }
.prose h3 { font-family: var(--display); font-size: clamp(1.2rem, 1.9vw, 1.55rem); letter-spacing: -.02em; line-height: 1.2; margin-top: 1.9em; }
.prose ul { list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-top: .6rem;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px;
  background: var(--lime);
}
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--teal-dark); }
.prose strong { font-weight: 650; color: var(--ink); }

.text-teal { color: var(--teal); }
.text-lime { color: var(--lime); }
.text-muted { color: var(--muted); }

/* Highlighted words inside display headings */
.mark {
  position: relative;
  display: inline-block;
  color: var(--teal);
}
.mark::after {
  content: "";
  position: absolute;
  left: -.02em; right: -.02em; bottom: .07em;
  height: .1em;
  background: var(--lime);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease) .35s;
}
.is-in .mark::after, .no-motion .mark::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 940px; }

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.band-paper2 { background: var(--paper-2); }
.band-dark   { background: var(--ink); color: var(--paper); }
.band-dark p, .band-dark .lede { color: rgba(251, 250, 247, .74); }
.band-dark .rule { background: var(--rule-dark); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Section header: label on the left, content on the right. Very editorial. */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; align-items: start; }
  .sec-head .eyebrow { margin-bottom: 0; padding-top: .55rem; }
}

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   5. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

/* The real RTH Marketing wordmark. Intentionally a slab serif against the
   Archivo grotesk used everywhere else: a logo is allowed to be its own
   typeface, and the green eye in the R is the recognisable asset. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  line-height: 0;
}
.brand img {
  height: 30px;
  width: auto;
  display: block;
}
/* Below the nav breakpoint the logo is WIDTH driven and capped in vw, so it can
   never crowd out the call and menu buttons no matter how narrow the phone is.
   A fixed pixel height fits at 390px but overflows a 360px device by a few px,
   and capping in vw removes that whole class of bug. height:auto preserves the
   aspect ratio from the img width/height attributes. */
@media (max-width: 640px) {
  .brand img { width: min(200px, 46vw); height: auto; }
}

.site-footer .brand img { height: 36px; }
@media (max-width: 640px) { .site-footer .brand img { height: 30px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; align-items: center; gap: 1.9rem; }
.nav-link {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: -.005em;
  position: relative;
  padding-block: .35rem;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"] { font-weight: 650; }

.nav-phone {
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--teal); }

/* Below the nav breakpoint the whole desktop nav is hidden, INCLUDING the CTA
   button. Hiding only .nav-list and .nav-phone left the 210px lime button in
   the bar, which overflowed the header on any phone and looked "cut off on the
   right". The CTA now lives in the mobile menu instead. */
@media (max-width: 1080px) {
  .nav { display: none; }
  .site-header .wrap { gap: .5rem; }
}

/* Compact tap-to-call, mobile only. The phone is the main enquiry route for a
   local service business, so it stays reachable without opening the menu. */
.nav-call {
  display: none;
  width: 44px; height: 44px;
  flex: none;
  border: 1px solid var(--rule);
  border-radius: 50%;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.nav-call:hover, .nav-call:focus-visible { background: var(--teal); border-color: var(--teal); color: #fff; }
@media (max-width: 1080px) {
  .nav-call { display: grid; margin-left: auto; }
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none; border: 0; padding: .6rem;
  cursor: pointer;
  width: 46px; height: 46px;
  flex: none;
  align-items: center; justify-content: center;
}
/* margin-left:auto lives on .nav-call, which precedes this, so the pair sits
   flush right together rather than being pushed apart. */
@media (max-width: 1080px) { .nav-toggle { display: inline-flex; } }
.nav-toggle span {
  display: block; position: relative;
  width: 26px; height: 2px; background: var(--ink);
  transition: background .2s linear;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 26px; height: 2px; background: var(--ink);
  transition: transform .4s var(--ease), top .3s var(--ease);
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  display: flex; flex-direction: column;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease);
  visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu a {
  font-family: var(--display);
  font-size: clamp(1.9rem, 8vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
  padding-block: .42rem;
  border-bottom: 1px solid var(--rule-2);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s linear;
}
.mobile-menu a:hover { color: var(--teal); }
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu .mm-foot {
  margin-top: auto; padding-top: 2.5rem;
  display: flex; flex-direction: column; gap: .5rem;
  font-size: 1rem;
}
.mobile-menu .mm-foot a {
  font-family: var(--body); font-size: 1.05rem; font-weight: 600;
  border: 0; padding: 0; letter-spacing: 0;
}
/* The CTA that was removed from the mobile header bar lives here instead. */
.mobile-menu .mm-cta {
  align-self: flex-start;
  margin-bottom: 1.1rem;
  padding: 1rem 1.7rem;
  color: var(--ink);
}
.mobile-menu .mm-cta:hover { color: var(--paper); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1.02rem 1.85rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--teal);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--teal); color: #fff; }
.btn .btn-arrow { transition: transform .4s var(--ease); flex: none; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { color: #fff; border-color: var(--teal); }

.btn-lime { --btn-bg: var(--lime); --btn-fg: var(--ink); }
.btn-lime::before { background: var(--ink); }
.btn-lime:hover { color: var(--paper); border-color: var(--ink); }

.on-dark .btn-ghost, .band-dark .btn-ghost { --btn-fg: var(--paper); border-color: var(--rule-dark); }

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

/* Plain text link with a sliding arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .93rem;
  text-decoration: none;
  color: var(--teal);
  padding-bottom: 2px;
  border-bottom: 1.5px solid currentColor;
}
.link-arrow svg { transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }

.hero h1 { margin-bottom: 2rem; }

/* Line-by-line masked reveal */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease-out);
}
.is-in .reveal-line > span { transform: translateY(0); }
.reveal-line:nth-child(2) > span { transition-delay: .09s; }
.reveal-line:nth-child(3) > span { transition-delay: .18s; }
.reveal-line:nth-child(4) > span { transition-delay: .27s; }

.hero-foot {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Soft brand wash behind the hero */
.hero-glow {
  position: absolute;
  z-index: 0;
  width: 62vw; height: 62vw;
  max-width: 820px; max-height: 820px;
  right: -14vw; top: -16vw;
  background: radial-gradient(circle at center,
              rgba(23, 107, 138, .16) 0%,
              rgba(141, 198, 63, .10) 42%,
              transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--rule);
  padding-block: 1.05rem;
  overflow: hidden;
  display: flex;
  user-select: none;
}
.marquee-track {
  display: flex;
  flex: none;
  gap: 2.6rem;
  padding-right: 2.6rem;
  align-items: center;
  animation: marquee 42s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 2.6rem;
  color: var(--ink-soft);
}
.marquee-item::after {
  content: "";
  width: 7px; height: 7px;
  background: var(--lime);
  border-radius: 50%;
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   9. Stats
   -------------------------------------------------------------------------- */
.stats { display: grid; gap: 0; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.75rem);
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .stat { border-top: 0; border-left: 1px solid var(--rule); }
  .stat:first-child { border-left: 0; padding-left: 0; }
}
.band-dark .stat { border-color: var(--rule-dark); }

.stat-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  letter-spacing: -.045em;
  line-height: 1;
  display: flex;
  align-items: baseline;
}
.stat-suffix { color: var(--lime); }
.stat-label {
  margin-top: .7rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.band-dark .stat-label { color: var(--muted-dark); }

/* --------------------------------------------------------------------------
   10. Numbered service index (the signature editorial element)
   -------------------------------------------------------------------------- */
.index-list { border-top: 1px solid var(--rule); }

.index-row {
  display: block;
  position: relative;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
}
.index-row::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease);
  z-index: -1;
}
.index-row:hover::before, .index-row:focus-visible::before { transform: scaleY(1); transform-origin: top; }

.index-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.35rem, 2.6vw, 2.1rem);
  transition: color .4s var(--ease), padding .5s var(--ease);
}
.index-row:hover .index-inner { color: var(--paper); padding-inline: clamp(.5rem, 1.5vw, 1.25rem); }

.index-num {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  width: 2.4rem;
  flex: none;
}
.index-row:hover .index-num { color: var(--lime); }

.index-text { display: block; min-width: 0; }

.index-title {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.4vw, 2.6rem);
  letter-spacing: -.035em;
  line-height: 1.05;
}
.index-desc {
  display: block;
  margin-top: .45rem;
  font-size: .95rem;
  color: var(--muted);
  max-width: 60ch;
}
.index-row:hover .index-desc { color: rgba(251, 250, 247, .7); }

.index-go {
  width: 46px; height: 46px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.index-row:hover .index-go {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transform: rotate(-45deg);
}
@media (max-width: 620px) {
  .index-inner { grid-template-columns: auto minmax(0, 1fr); }
  .index-go { display: none; }
  .index-desc { display: none; }
}

/* --------------------------------------------------------------------------
   11. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  text-decoration: none;
  position: relative;
  transition: transform .5s var(--ease), border-color .35s var(--ease), box-shadow .5s var(--ease);
}
a.card:hover {
  transform: translateY(-5px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px -24px rgba(11, 11, 12, .35);
}
.band-paper2 .card { background: var(--paper); }
.band-dark .card { background: var(--ink-2); border-color: var(--rule-dark); }

.card-num {
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--lime);
}
.card h3 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: -.025em;
  line-height: 1.15;
}
.card p { font-size: .95rem; color: var(--muted); }
.band-dark .card p { color: var(--muted-dark); }

.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--paper-2);
  color: var(--teal);
  margin-bottom: .35rem;
  transition: background .4s var(--ease), color .4s var(--ease);
}
a.card:hover .card-icon { background: var(--teal); color: #fff; }

/* --------------------------------------------------------------------------
   12. Work / case cards
   -------------------------------------------------------------------------- */
.work-card {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
}
.work-card-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
  transition: transform .9s var(--ease);
  opacity: .62;
}
.work-card:hover .work-card-media { transform: scale(1.08); opacity: .45; }
.work-card-body {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(1.35rem, 2.6vw, 2rem);
  color: var(--paper);
  background: linear-gradient(to top, rgba(11, 11, 12, .92), transparent);
}
.work-tag {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--lime);
}
.work-name {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -.03em;
  margin-top: .3rem;
}
.work-result { font-size: .95rem; color: rgba(251, 250, 247, .78); margin-top: .35rem; }

/* --------------------------------------------------------------------------
   13. Process steps
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  counter-increment: step;
  padding: clamp(1.5rem, 2.6vw, 2.1rem) clamp(1rem, 2vw, 1.6rem);
  border-top: 1px solid var(--rule);
  position: relative;
}
@media (min-width: 860px) {
  .step { border-top: 0; border-left: 1px solid var(--rule); }
  .step:first-child { border-left: 0; padding-left: 0; }
}
.step::before {
  content: "0" counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -.04em;
  color: var(--paper-3);
  display: block;
  line-height: 1;
  margin-bottom: .9rem;
}
.band-dark .step::before { color: var(--ink-soft); }
.step h3 { font-family: var(--display); font-size: 1.2rem; letter-spacing: -.025em; margin-bottom: .5rem; }
.step p { font-size: .93rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -55%;
  width: 120vw; height: 90vw;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(23, 107, 138, .42) 0%,
              rgba(141, 198, 63, .12) 40%,
              transparent 66%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 2; }

.contact-lines { display: grid; gap: .1rem; margin-top: 2.25rem; }
.contact-line {
  display: flex; align-items: baseline; gap: 1rem;
  padding-block: .95rem;
  border-bottom: 1px solid var(--rule-dark);
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.03em;
  transition: color .3s var(--ease), padding-left .4s var(--ease);
}
.contact-line:hover { color: var(--lime); padding-left: .6rem; }
.contact-line .cl-label {
  font-family: var(--body);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted-dark);
  width: 6.5rem; flex: none;
}
@media (max-width: 620px) {
  .contact-line { flex-direction: column; gap: .2rem; }
  .contact-line .cl-label { width: auto; }
}

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .form-grid .fg-2 { grid-column: span 2; } .form-grid { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: .45rem; }
.field label {
  font-size: .76rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--rule);
  padding: .75rem 0;
  font-size: 1rem;
  border-radius: 0;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-bottom-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .err { color: #B4232A; font-size: .82rem; font-weight: 500; display: none; }
.field.is-invalid .err { display: block; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-bottom-color: #B4232A; }

/* Honeypot */
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

.form-note { font-size: .84rem; color: var(--muted); }
.form-status { font-size: .95rem; font-weight: 600; padding: .9rem 0; display: none; }
.form-status.is-ok  { display: block; color: var(--teal-dark); }
.form-status.is-err { display: block; color: #B4232A; }

/* --------------------------------------------------------------------------
   16. Breadcrumbs
   -------------------------------------------------------------------------- */
.crumbs {
  padding-top: calc(var(--header-h) + 1.75rem);
  font-size: .82rem;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs .sep { color: var(--rule); }

/* Inner page hero */
.page-hero { padding-top: clamp(1.75rem, 3vw, 2.75rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.footer-top { display: grid; gap: 2.75rem; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; } }

.footer-col h4 {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 1.15rem;
}
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a {
  text-decoration: none; font-size: .93rem;
  color: rgba(251, 250, 247, .78);
  transition: color .25s linear;
}
.footer-col a:hover { color: var(--lime); }

.footer-brand .brand .brand-mark { color: var(--paper); }
.footer-blurb { font-size: .93rem; color: rgba(251, 250, 247, .62); margin-top: 1.1rem; max-width: 34ch; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
  align-items: center;
  font-size: .84rem;
  color: var(--muted-dark);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--lime); }
.footer-bottom .fb-right { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }

.social { display: flex; gap: .6rem; margin-top: 1.35rem; }
.social a {
  width: 40px; height: 40px;
  border: 1px solid var(--rule-dark);
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.social a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* --------------------------------------------------------------------------
   18. Scroll reveal utility
   -------------------------------------------------------------------------- */
.r {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.r.is-in { opacity: 1; transform: none; }
.r-d1 { transition-delay: .08s; }
.r-d2 { transition-delay: .16s; }
.r-d3 { transition-delay: .24s; }
.r-d4 { transition-delay: .32s; }

/* --------------------------------------------------------------------------
   19. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .r { opacity: 1; transform: none; }
  .reveal-line > span { transform: none; }
  .mark::after { transform: scaleX(1); }
  .marquee-track { animation: none; }
}
