/* ==========================================================================
   Rogue Digital: homepage
   Brand: green #00B048, charcoal #1F1F21, gray #9A9A9A
   Type: Termina (display) + Articulat CF (text), via Adobe Fonts kit klv3wrz
   Geometry: everything angled follows the logo's 30/60 degree construction
   ========================================================================== */

:root {
  --green: #00b048;
  --green-deep: #00a142;          /* watermark tone on green surfaces */
  --ink: #1f1f21;                 /* brand charcoal */
  --ink-raised: #26262a;
  --steel: #9a9a9a;               /* brand gray */
  --dim: #6c6c70;
  --white: #ffffff;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .16);
  --line-green: rgba(31, 31, 33, .14);
  --focus: #ffffff;

  --font-display: "termina", "Helvetica Neue", Arial, sans-serif;
  --font-text: "articulat-cf", "Helvetica Neue", Arial, sans-serif;

  --margin: clamp(20px, 4vw, 64px);
  --gutter: clamp(14px, 2vw, 32px);
  --frame-max: 1680px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg, img { display: block; }
img { max-width: 100%; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }   /* sections focused after an anchor jump */

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 12px 18px; background: var(--green); color: var(--ink); font-weight: 500;
  transform: translateY(-180%); transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- type ---------- */
.h-xl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.8vw, 104px);
  line-height: 1;
  letter-spacing: -.045em;
}
.lede {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.5;
  color: var(--steel);
  max-width: 32em;
  text-wrap: pretty;
}

/* ---------- frame + grid lines ---------- */
.frame {
  width: 100%;
  max-width: calc(var(--frame-max) + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
}
/* Column hairlines sit in the middle of the gutters, so text never touches them. */
.cols {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  margin-inline: auto;
  max-width: calc(var(--frame-max) + 2 * var(--margin));
  padding-inline: calc(var(--margin) - var(--gutter) / 2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  z-index: 0;
}
.cols i { border-left: 1px solid var(--line); }
.cols i:last-child { border-right: 1px solid var(--line); }
.cols--on-green i { border-color: var(--line-green); }

/* Registration marks where the section rule meets the column lines */
.rule {
  position: absolute; top: -1px; left: 0; right: 0;
  margin-inline: auto;
  max-width: calc(var(--frame-max) + 2 * var(--margin));
  padding-inline: calc(var(--margin) - var(--gutter) / 2);
  display: flex; justify-content: space-between;
  pointer-events: none; z-index: 2;
}
.rule i { position: relative; width: 1px; height: 1px; }
.rule i::before, .rule i::after { content: ""; position: absolute; background: rgba(255, 255, 255, .42); }
.rule i::before { left: -6px; top: 0; width: 13px; height: 1px; }
.rule i::after { left: 0; top: -6px; width: 1px; height: 13px; }

/* ---------- buttons (chamfered like the logotype) ---------- */
.btn {
  --bg: var(--green);
  --fg: var(--ink);
  --c: 14px;                       /* chamfer run */
  --cv: calc(var(--c) * .5774);    /* chamfer rise at 30 degrees */
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 30px;
  font: 500 16px/1 var(--font-text);
  letter-spacing: .005em;
  color: var(--fg);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color .35s var(--ease-out);
}
.btn::before, .btn::after {
  content: ""; position: absolute; z-index: -1;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--cv)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--cv));
}
.btn::before { inset: 0; background: var(--bg); transition: background-color .35s var(--ease-out); }
.btn span { position: relative; display: block; }
.btn:hover { --bg: var(--white); }
.btn--ghost { --bg: rgba(255, 255, 255, .3); --fg: var(--white); }
.btn--ghost::after { inset: 1px; background: var(--ink); }
.btn--ghost:hover { --bg: var(--white); }
.btn--dark { --bg: var(--ink); --fg: var(--white); }
.btn--dark:hover { --bg: var(--white); --fg: var(--ink); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14.5px; --c: 11px; }
.btn--lg { height: 66px; padding: 0 42px; font-size: 18px; --c: 18px; }

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li {
  font-size: 13.5px; font-weight: 500; line-height: 1;
  padding: 9px 12px 10px;
  color: #d2d2d5;
  background: rgba(255, 255, 255, .065);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 4.6px), calc(100% - 8px) 100%, 0 100%, 0 4.6px);
}
.tags--sm li { font-size: 12.5px; padding: 8px 10px 9px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(31, 31, 33, .74);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.nav.is-scrolled::before, .nav.is-open::before { opacity: 1; }
.nav__inner { position: relative; height: 100%; display: flex; align-items: center; gap: clamp(16px, 2.6vw, 44px); }
.nav__logo { display: block; padding: 10px 0; }
.nav__logo svg { height: 22px; width: auto; }
.logo-mark { fill: var(--green); }
.logo-word { fill: var(--white); }
.nav__links { margin-left: auto; display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__links a {
  position: relative; padding: 8px 0;
  font-size: 15px; font-weight: 500;
  color: rgba(255, 255, 255, .7);
  transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px;
  background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--white); }
.nav__links a.is-current::after { transform: scaleX(1); }
.nav__toggle {
  display: none; align-items: center; gap: 12px; margin-left: auto;
  height: 44px; padding: 0 2px;
  font-size: 15px; font-weight: 500;
}
.nav__toggle-icon { position: relative; width: 26px; height: 12px; }
.nav__toggle-icon i {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.nav__toggle-icon i:first-child { top: 1px; }
.nav__toggle-icon i:last-child { top: 9px; left: 8px; }
.nav.is-open .nav__toggle-icon i:first-child { top: 5px; transform: rotate(30deg); }
.nav.is-open .nav__toggle-icon i:last-child { top: 5px; left: 0; transform: rotate(-30deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  background: var(--ink);
}
.menu[hidden] { display: none; }
.menu__inner { position: relative; display: flex; flex-direction: column; gap: 4px; }
.menu__inner a {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 11vw, 76px); line-height: 1.12; letter-spacing: -.045em;
}
.menu__foot { position: relative; margin-top: 44px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; }
.hero__stage { position: relative; height: 100%; overflow: hidden; background: var(--ink); }
.hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__layout {
  position: relative; z-index: 2; height: 100%;
  display: grid;
  grid-template-rows: var(--nav-h) minmax(0, 1fr) auto clamp(28px, 6vh, 64px);
  justify-items: center;
  text-align: center;
}
.hero__mark-slot {
  grid-row: 2; width: 100%; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  container-type: size;
}
.hero__mark-box {
  position: relative;
  height: max(110px, min(420px, 58vw, 84cqh));
  aspect-ratio: 203.45 / 188.03;
}
.hero__mark-tilt { position: absolute; inset: 0; }
.hero__mark { width: 100%; height: 100%; overflow: visible; }
.hero__mark path { fill: var(--green); }
.hero__copy { grid-row: 3; display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: max(42px, min(12.5vw, 16.5vh, 220px));
  line-height: .92;
  letter-spacing: -.05em;
  margin-right: -.05em;            /* balance the negative tracking so it centres optically */
  margin-bottom: clamp(14px, 2.4vh, 28px);
}
.hero__lede { font-size: clamp(17px, 1.4vw, 22px); line-height: 1.45; color: var(--steel); max-width: 34em; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(20px, 3.4vh, 36px); }
.hero__flood { position: absolute; inset: 0; z-index: 5; background: var(--green); opacity: 0; pointer-events: none; }

/* split-text helpers */
.char-mask { padding-bottom: .14em; margin-bottom: -.14em; }

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { position: relative; background: var(--green); color: var(--ink); --focus: var(--ink); }
.manifesto__stage {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 6vh) 10vh;
}
.manifesto__mark {
  position: absolute; z-index: 0;
  right: -7vw; bottom: -20vh;
  height: 128vh; width: auto; aspect-ratio: 203.45 / 188.03;
  fill: var(--green-deep);
  pointer-events: none;
}
.manifesto__inner { position: relative; z-index: 1; }
.manifesto__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(25px, 3.5vw, 60px);
  line-height: 1.16;
  letter-spacing: -.04em;
  max-width: 22.5em;
  text-wrap: pretty;
}
.stripes { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; visibility: hidden; }
.stripes.is-live { visibility: visible; }
.stripes i {
  position: absolute; top: -4%; bottom: -4%; left: 100%;
  background: var(--ink);
  transform: skewX(30deg);
}
.stripes i:nth-child(1) { width: 4vw; }
.stripes i:nth-child(2) { width: 9vw; }
.stripes i:nth-child(3) { width: 190vw; }

/* ==========================================================================
   CAPABILITIES
   ========================================================================== */
.caps { position: relative; background: var(--ink); border-top: 1px solid var(--line); }
.caps__head { position: relative; z-index: 1; padding-top: clamp(110px, 18vh, 220px); }
.caps__lede { margin-top: clamp(18px, 2.8vh, 30px); }
.caps__stage {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 2vh) 4vh;
}
.caps__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
}
.caps__index { grid-column: 1 / span 5; grid-row: 1; }
.caps__tab {
  display: inline-block;
  padding: .24em 0 .24em 1.05em;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--dim);
  transition: color .5s var(--ease-out);
}
.caps__tab:hover { color: #bdbdc1; }
.caps__tab.is-active { color: var(--white); }
.caps__marker {
  position: absolute; left: 0; top: 0;
  width: 22px; height: 13px;
  background: var(--green);
  clip-path: polygon(7.5px 0, 100% 0, calc(100% - 7.5px) 100%, 0 100%);
  pointer-events: none;
}
.caps__viz { grid-column: 6 / span 4; grid-row: 1; position: relative; }
.caps__svg { width: 100%; height: auto; aspect-ratio: 1; overflow: visible; }
.caps__shape { stroke-width: 1; stroke-linejoin: round; }
.caps__panels { grid-column: 10 / span 3; grid-row: 1; display: grid; align-self: center; }
.caps__panel {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s, transform .7s var(--ease-out);
  pointer-events: none;
}
.caps__panel.is-active {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .6s .12s, transform .9s .12s var(--ease-out);
}
.caps__panel-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 1.6vw, 27px);
  letter-spacing: -.03em; line-height: 1.15;
  margin-bottom: 14px;
}
.caps__panel p { color: var(--steel); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.55; }

/* ==========================================================================
   WORK
   ========================================================================== */
.work { position: relative; background: var(--ink); border-top: 1px solid var(--line); }
.work__stage {
  position: relative; z-index: 1; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(28px, 5vh, 60px);
  padding-block: calc(var(--nav-h) + 5vh) 5vh;
}
.work__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 48px; }
.work__head .lede { max-width: 22em; }
.work__viewport { width: 100%; }
.work__track {
  display: flex;
  gap: clamp(16px, 2.2vw, 36px);
  width: max-content;
  padding-inline: max(var(--margin), calc((100vw - var(--frame-max)) / 2));
}
.card { --w: clamp(280px, 34vw, 600px); flex: none; width: var(--w); }
.card__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-raised);
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 16.2px);
}
.card__media .art, .card__media img {
  position: absolute; top: 0; left: -7%;
  width: 114%; height: 100%;
  object-fit: cover;
}
.card__media .art { transition: scale 1.2s var(--ease-out); }
.card:hover .card__media .art { scale: 1.04; }
.card__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding-top: 18px; }
.card__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(18px, 1.45vw, 24px);
  letter-spacing: -.03em; line-height: 1.2;
}
.card__client { grid-column: 1; color: var(--steel); font-size: 15px; }
.card .tags { grid-column: 2; grid-row: 1 / span 2; margin-top: 2px; justify-content: flex-end; align-content: flex-start; max-width: 15em; }
.card--next { width: calc(var(--w) * .75); }
.card__next {
  position: relative; overflow: hidden;
  aspect-ratio: 1;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: 22px; padding: clamp(22px, 2.4vw, 36px);
  background: var(--ink-raised);
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 16.2px);
}
.card__next-mark { position: absolute; top: 12%; right: -12%; width: 70%; height: auto; fill: rgba(255, 255, 255, .045); }
.card__next-title {
  position: relative;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2vw, 34px); line-height: 1.08; letter-spacing: -.04em;
  max-width: 9em;
}
.card__next .btn { position: relative; }
.work__progress { position: relative; height: 2px; max-width: 280px; background: var(--line-strong); overflow: hidden; }
.work__progress i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   APPROACH
   ========================================================================== */
.approach {
  position: relative; background: var(--ink); border-top: 1px solid var(--line);
  padding-block: clamp(110px, 18vh, 220px) clamp(120px, 18vh, 220px);
}
.approach__head { position: relative; z-index: 1; margin-bottom: clamp(56px, 10vh, 120px); }
.approach__head .lede { margin-top: clamp(16px, 2.4vh, 26px); }
.approach__body { position: relative; z-index: 1; }
.approach__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.approach__track { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.approach__path { fill: none; stroke: var(--green); stroke-width: 2; }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}
/* Each step drops one 30-degree rise below the previous one: the logo's chamfer angle.
   The connecting line runs under the steps, through markers that sit below each step's text. */
.steps { --content-h: 220px; }
.step {
  position: relative;
  margin-top: calc(var(--i) * (100% + var(--gutter)) * .5774);
  min-height: calc(var(--content-h) + 44px);
  padding-right: clamp(0px, 1vw, 16px);
}
.step__marker {
  position: absolute; left: 0; top: calc(var(--content-h) + 26px);
  width: 22px; height: 12px;
  background: #3b3b40;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  transition: background-color .5s var(--ease-out);
}
.step__num {
  display: block; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: .02em;
  color: var(--green);
}
.step__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(21px, 1.9vw, 32px);
  line-height: 1.1; letter-spacing: -.04em;
  margin-bottom: 14px;
}
.step p { color: var(--steel); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; max-width: 22em; }
.js .step { opacity: .3; transition: opacity .7s var(--ease-out); }
.js .step.is-lit { opacity: 1; }
.step.is-lit .step__marker { background: var(--green); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative; overflow: hidden;
  background: var(--green); color: var(--ink); --focus: var(--ink);
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 8vh) 12vh;
}
.cta__mark {
  position: absolute; z-index: 0;
  right: -9vw; bottom: -18vh;
  height: 120vh; aspect-ratio: 203.45 / 188.03;
  perspective: 1600px;
  pointer-events: none;
}
.cta__mark svg { width: 100%; height: 100%; overflow: visible; fill: var(--green-deep); }
.cta__inner { position: relative; z-index: 1; }
.cta__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: max(40px, min(13vw, 240px));
  line-height: .9;
  letter-spacing: -.055em;
  margin-left: -.04em;
}
.cta__lede {
  margin-top: clamp(20px, 3.2vh, 36px);
  font-size: clamp(18px, 1.6vw, 26px); line-height: 1.4;
  max-width: 25em;
  text-wrap: balance;
}
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-top: clamp(28px, 5vh, 54px); }
.cta__email {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(15px, 1.25vw, 19px); letter-spacing: -.02em;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 2px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.cta__email:hover { background-size: 0 2px; background-position: right bottom; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; overflow: hidden; background: var(--ink); border-top: 1px solid var(--line); padding-top: clamp(64px, 10vh, 120px); }
.footer__top {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter); row-gap: 40px;
}
.footer__brand { grid-column: 1 / span 5; }
.footer__logo { height: 26px; width: auto; }
.footer__brand p { margin-top: 18px; color: var(--steel); }
.footer__nav { grid-column: 7 / span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer__contact { grid-column: 10 / span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--steel); }
.footer__nav a, .footer__contact a { color: var(--white); transition: color .25s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--green); }
.footer__wordmark { position: relative; z-index: 1; margin-top: clamp(64px, 12vh, 140px); }
.wm-wrap { position: relative; }
.wm { width: 100%; height: auto; }
.wm--outline { fill: none; stroke: #45454b; stroke-width: .75; }
.wm--fill {
  position: absolute; inset: 0;
  fill: var(--green);
  -webkit-mask-image: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), #000 0, transparent var(--fr, 0px));
  mask-image: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), #000 0, transparent var(--fr, 0px));
}
.footer__bottom {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: clamp(28px, 4vh, 48px);
  padding-block: 26px 30px;
  border-top: 1px solid var(--line);
  color: var(--steel); font-size: 14px;
}
.footer__totop { color: var(--white); }
.footer__totop:hover { color: var(--green); }

/* ==========================================================================
   STATES BEFORE THE INTRO RUNS (JS only)
   ========================================================================== */
.js .hero__copy > * { opacity: 0; }
.js .hero__mark path { fill-opacity: 0; }

/* Without JavaScript every panel and card is simply shown */
.no-js .caps__panel { opacity: 1; transform: none; grid-area: auto; margin-bottom: 40px; pointer-events: auto; }
.no-js .caps__marker { display: none; }
.no-js .work__viewport { overflow-x: auto; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1099px) and (min-width: 900px) {
  .caps__index { grid-column: 1 / span 6; grid-row: 1 / span 2; }
  .caps__viz { grid-column: 7 / span 6; grid-row: 1; width: 100%; max-width: 380px; justify-self: center; }
  .caps__panels { grid-column: 7 / span 6; grid-row: 2; margin-top: 12px; }
}

@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }

  .cols i:nth-child(2), .cols i:nth-child(4) { border-left-color: transparent; }
  .rule i:nth-child(2), .rule i:nth-child(4) { visibility: hidden; }

  /* capabilities: stacked panels with the figure pinned above them */
  .caps__stage { display: block; min-height: 0; padding-block: 28px 96px; }
  .caps__grid { display: block; }
  .caps__index, .caps__marker { display: none; }
  .caps__viz {
    position: sticky; top: var(--nav-h); z-index: 2;
    width: 100%; margin: 0 auto;
    padding: 8px 0 18px;
    background: linear-gradient(var(--ink) 82%, rgba(31, 31, 33, 0));
  }
  .caps__svg { width: min(62vw, 300px); margin-inline: auto; }
  .caps__panels { display: block; }
  .caps__panel {
    opacity: .32; transform: none; pointer-events: auto;
    padding-block: 30px 34px;
    border-top: 1px solid var(--line);
    transition: opacity .5s var(--ease-out);
  }
  .caps__panel.is-active { opacity: 1; transition: opacity .5s var(--ease-out); }
  .caps__panel-title { font-size: clamp(26px, 7.4vw, 38px); }

  /* work: native swipe */
  .work__stage { min-height: 0; padding-block: 96px 72px; }
  .work__viewport {
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin);
    scrollbar-width: none;
  }
  .work__viewport::-webkit-scrollbar { display: none; }
  .work__track { padding-inline: var(--margin); }
  .card { --w: 80vw; scroll-snap-align: start; }
  .card .tags { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 10px; }

  /* approach: vertical timeline */
  .steps { grid-template-columns: 1fr; row-gap: 56px; padding-left: 44px; }
  .step { margin-top: 0; min-height: 0; }
  .step__marker { left: -44px; top: 3px; }

  .cta__mark { right: -30vw; bottom: -6vh; height: 70vh; }

  .footer__brand, .footer__nav, .footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 599px) {
  .hero__actions .btn { padding: 0 22px; }
  .btn--lg { height: 58px; padding: 0 32px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
