/* ============================================================
   SECTIONS
   ============================================================ */

.page_wrap {
  position: relative;
  overflow-x: clip;
}

.page_main {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------
   Navbar
   ------------------------------------------------------------ */

.navbar_wrap {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 800;
  width: 100%;
  padding-block: var(--space--4);
  visibility: hidden;
  mix-blend-mode: difference;
}

.navbar_contain {
  align-items: center;
}

.navbar_left_contain {
  display: flex;
  align-items: center;
  grid-column: span 3 / span 3;
  overflow: clip;
}

.navbar_home {
  display: block;
  color: var(--swatch--beige-100);
}

.navbar_home_wordmark {
  display: block;
  font-family: var(--font--logo);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0;
}

.navbar_links {
  grid-column: span 6 / span 6;
  display: flex;
  justify-content: center;
}

.navbar_links_ul {
  display: flex;
  align-items: center;
  gap: var(--space--4);
}

.navbar_links_li {
  position: relative;
  overflow: clip;
}

.navbar_link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 1.2em;
  overflow: hidden;
  color: var(--swatch--beige-100);
}

/* Two stacked labels — the second slides up on hover */
.navbar_link_span {
  display: block;
  line-height: 1.2;
  transition: transform var(--duration-fast) var(--ease--transition);
}

.navbar_link:hover .navbar_link_span {
  transform: translateY(-100%);
}

.navbar_cta_wrap {
  grid-column: span 3 / span 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space--2);
}

/* Two buttons live here now. Without this they are inline-flex boxes in a
   block, which baseline-aligns them — and one has a logo, so their baselines
   differ and they sit six pixels apart vertically. */
.navbar_cta_contain {
  display: flex;
  align-items: center;
  gap: var(--space--1);
}

.navbar_left_sound_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius--small);
  color: var(--swatch--beige-100);
}

.navbar_menu_btn {
  display: none;
  position: relative;
  height: 1.2em;
  overflow: hidden;
  color: var(--swatch--beige-100);
}

.navbar_menu_span-wrap {
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-fast) var(--ease--transition);
}

body[data-navigation-status="is-open"] .navbar_menu_span-wrap {
  transform: translateY(-50%);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero_home_wrap {
  position: relative;
  height: 100svh;
  min-height: 40rem;
  overflow: clip;
}

.hero_home_gradient {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 6.25rem;
  background: linear-gradient(180deg, var(--swatch--black-400), transparent);
  pointer-events: none;
}

.hero_home_cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero_home_video {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  /* base.css caps media at max-width:100%, which clamps the 124% oversize
     back to the container and leaves a bare strip once the parallax shifts
     it. The oversize is deliberate — it is the parallax travel room. */
  max-width: none;
  object-fit: cover;
  will-change: transform;
  /* Poster shows first; JS adds .is-playing once the loop can play through */
  opacity: 0.001;
  transition: opacity 0.9s var(--ease--transition);
}

.hero_home_video.is-playing {
  opacity: 1;
}

/* ------------------------------------------------------------
   Centred wordmark over the video

   mix-blend-mode: difference subtracts the mark from whatever is
   behind it, so it inverts against the footage and keeps shifting
   as the video plays — reversed colour without any per-frame work.
   ------------------------------------------------------------ */

.hero_mark_wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;

  /* Blend lives on the wrapper, exactly like .navbar_wrap. Putting it on the
     inner element meant the letters' own compositing layers (from will-change
     and the opacity keyframes) sat between the blend and the video, so the
     difference never reached the footage.
     Do NOT add isolation: isolate here — that creates a stacking context and
     the mark would difference against this transparent wrapper instead. */
  mix-blend-mode: difference;
}

.hero_mark {
  display: flex;
  align-items: baseline;
  /* Same source colour as the navbar wordmark so both invert identically */
  color: var(--swatch--beige-100);
  font-family: var(--font--logo);
  font-size: clamp(3.5rem, 15vw, 15rem);
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero_mark_letter {
  display: block;
  /* No will-change here. Promoting each letter to its own compositing layer
     breaks the wrapper's difference blend against the video. */
}

/* Slow breathing pass so the inversion keeps moving even on a still frame */
.hero_mark.is-live .hero_mark_letter {
  animation: mark-pulse 7s var(--ease--secondary) infinite;
}

.hero_mark.is-live .hero_mark_letter:nth-child(2) { animation-delay: -0.6s; }
.hero_mark.is-live .hero_mark_letter:nth-child(3) { animation-delay: -1.2s; }
.hero_mark.is-live .hero_mark_letter:nth-child(4) { animation-delay: -1.8s; }
.hero_mark.is-live .hero_mark_letter:nth-child(5) { animation-delay: -2.4s; }
.hero_mark.is-live .hero_mark_letter:nth-child(6) { animation-delay: -3.0s; }

/* Transform only — animating opacity on the letters would composite them
   separately and knock out the blend. */
@keyframes mark-pulse {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-0.02em); }
}

@media (prefers-reduced-motion: reduce) {
  .hero_mark.is-live .hero_mark_letter { animation: none; }
  .hero_home_video { transition: none; }
}

.hero_scroll_cue {
  display: block;
  padding-bottom: var(--space--3);
  color: var(--theme--text-muted);
  text-align: center;
}

.hero_home_overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: var(--swatch--black-400);
  opacity: 0;
}

.hero_home_fade {
  position: absolute;
  inset: 0;
  z-index: 4;
  background-color: var(--swatch--black-400);
}

/* Ambient looping fields — painted by js/background.js.
   They start transparent and fade in once the first frame is drawn. */
.hero_canvas_item,
.cta_canvas,
.footer_canvas {
  opacity: 0;
  transition: opacity 1.2s var(--ease--transition);
  pointer-events: none;
}

.hero_canvas_item {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.cta_canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.footer_canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero_home_contain {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: var(--space--5);
}

.hero_home_main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  gap: var(--space--6);
}

.hero_home_content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space--6);
  padding-bottom: var(--space--7);
}

.hero_home_content_svg {
  flex: 0 0 auto;
  width: 4rem;
  color: var(--swatch--beige-100);
}

.hero_home_lead {
  display: flex;
  flex-direction: column;
  gap: var(--space--4);
}

.hero_home_eyebrow {
  color: var(--theme--text-muted);
}

.hero_home_actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space--2);
}

.hero_home_content_p {
  flex: 0 0 auto;
  width: min(26ch, 100%);
  margin-left: auto;
  font-size: var(--fs--h6);
  line-height: var(--lh--1-3);
  font-weight: var(--font--medium-weight);
}

.hero_home_bottom {
  position: relative;
  width: 100%;
}

/* ------------------------------------------------------------
   Problems — pinned stat rail + scroll-highlighted statement
   ------------------------------------------------------------ */

.problems_home_wrap {
  position: relative;
  padding-top: var(--section-space--large);
  padding-bottom: var(--section-space--main);
  background-color: var(--swatch--black-400);
}

.problems_home_header {
  display: flex;
  align-items: flex-start;
  gap: var(--site--gutter);
}

.problems_home_stats {
  position: sticky;
  top: 30vh;
  flex: 0 0 auto;
  width: calc(var(--column-width, 25%) );
  width: 24%;
  align-self: flex-start;
}

.problems_stats_navigation {
  margin-bottom: var(--space--6);
}

.problem_stats_line {
  position: relative;
  width: 100%;
  height: 1px;
  margin-bottom: var(--space--3);
  background-color: var(--theme--border);
  overflow: hidden;
}

.problem_stats_progress-start,
.problem_stats_progress-end {
  position: absolute;
  inset: 0;
  background-color: var(--swatch--beige-100);
  transform: translateX(-100%);
}

.problem_stats_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.problem_stats_pagination {
  display: flex;
  gap: var(--space--2);
}

.problem_stats_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: var(--theme--text-muted);
  transition: color 0.3s var(--ease--transition);
}

.problem_stats_button:hover {
  color: var(--swatch--beige-100);
}

.problem_stats_index {
  display: flex;
  align-items: center;
  gap: 0.15em;
  color: var(--theme--text-muted);
}

.problem_home_stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space--3);
}

.problem_home_stat-num {
  color: var(--swatch--beige-100);
}

.problem_home_stat-p {
  max-width: 26ch;
  color: var(--theme--text-muted);
}

.problems_home_top {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space--8);
}

.problems_home_heading {
  max-width: 14ch;
  font-size: var(--fs--h1);
  line-height: var(--lh--1-1);
  font-weight: var(--font--medium-weight);
  letter-spacing: var(--ls--0-03);
}

.problems_home_signature {
  display: flex;
  align-items: center;
  gap: var(--space--3);
}

.problems_home_headshot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius--round);
  object-fit: cover;
  background-color: var(--swatch--card-bg);
}

.problems_home_signature_content {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.problems_home_signature_text:last-child {
  color: var(--theme--text-muted);
}

.problems_home_bottom {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--site--gutter);
  margin-top: var(--section-space--main);
}

.problems_home_left {
  flex: 0 0 24%;
}

.problems_home_collection {
  flex: 1;
}

/* Capability grid — replaced the oversized placeholder tiles. A hairline
   grid rather than gaps, so eight cells read as one block instead of eight
   floating cards. */
.capability_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background-color: var(--theme--border);
  border: 1px solid var(--theme--border);
  border-radius: var(--radius--medium);
  overflow: hidden;
}

.capability_cell {
  display: flex;
  flex-direction: column;
  gap: var(--space--2);
  padding: var(--space--5) var(--space--4);
  background-color: var(--theme--background);
  transition: background-color var(--duration-fast) var(--ease--transition);
}

.capability_cell:hover {
  background-color: var(--swatch--card-bg);
}

.capability_icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--theme--heading-accent);
}

.capability_name {
  font-size: var(--fs--main);
  font-weight: var(--font--medium-weight);
}

.capability_body {
  font-size: var(--fs--small);
  line-height: var(--lh--1-5);
  color: var(--theme--text-muted);
  text-wrap: pretty;
}

.problems_home_list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--site--gutter);
}

.problems_home_item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space--2);
}

.problems_home_image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius--small);
  object-fit: cover;
  background-color: var(--swatch--card-bg);
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity 0.4s var(--ease--transition), filter 0.4s var(--ease--transition);
}

.problems_home_item:hover .problems_home_image {
  opacity: 1;
  filter: grayscale(0);
}

.problems_home_label {
  color: var(--theme--text-muted);
}

/* ------------------------------------------------------------
   Gap — sticky split display heading with a card between
   ------------------------------------------------------------ */

.gap_home_wrap {
  position: relative;
  height: 220vh;
  background-color: var(--swatch--black-400);
}

.gap_home_contain {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
}

.g_bg_overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 18vh;
  pointer-events: none;
}

.gap_home_overlay {
  position: absolute;
  inset: 0;
  width: calc(100% - var(--site--margin) * 2);
  margin-inline: auto;
}

.gap_home_line {
  grid-column: span 2 / span 2;
  height: 100%;
  border-left: 1px solid color-mix(in srgb, var(--swatch--black-300) 60%, transparent);
}

.gap_home_line_horizontal {
  position: relative;
  width: 100%;
  height: 1px;
  background-color: color-mix(in srgb, var(--swatch--black-300) 60%, transparent);
}

.gap_home_line_square {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  background-color: var(--swatch--black-200);
}

.gap_home_line_square.is-1 { left: 12%; }
.gap_home_line_square.is-2 { left: 50%; }
.gap_home_line_square.is-3 { left: 84%; }

.gap_home_inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.gap_home_eyebrow {
  position: absolute;
  top: 14vh;
  left: 0;
  color: var(--theme--text-muted);
}

.gap_home_inner_content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.gap_home_inner_heading-contain {
  flex: 0 0 auto;
}

.gap_home_inner_heading-contain.is-left  { transform: translateX(-14vw); }
.gap_home_inner_heading-contain.is-right { transform: translateX(14vw); }

.gap_home_inner_heading {
  white-space: nowrap;
}

.gap_home_bottom {
  position: absolute;
  bottom: 12vh;
  right: 0;
  max-width: 34ch;
}

.gap_home_p {
  color: var(--theme--text-muted);
}

.gap_home_cover {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 16rem;
  height: 20rem;
  translate: -50% -50%;
  border-radius: var(--radius--medium);
  overflow: hidden;
  clip-path: inset(50% 50% 50% 50% round 0.25rem);
}

.gap_home_gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--swatch--black-400) 70%, transparent));
  pointer-events: none;
}

.gap_home_image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* ------------------------------------------------------------
   Works — stacking case-study cards, light theme
   ------------------------------------------------------------ */

.works_home_wrap {
  position: relative;
  z-index: 2;
  padding-block: var(--section-space--large);
  border-radius: var(--radius--medium);
}

.works_home_contain {
  display: flex;
  align-items: flex-start;
  gap: var(--site--gutter);
}

.works_home_left {
  position: sticky;
  top: var(--space--8);
  flex: 0 0 16%;
}

.works_home_collection {
  flex: 1;
}

.works_home_list {
  display: flex;
  flex-direction: column;
  gap: var(--space--3);
}

.works_home_item {
  position: relative;
  will-change: transform, opacity;
}

.works_home_link {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--site--gutter);
  align-items: stretch;
  padding-bottom: var(--space--5);
  border-bottom: 1px solid var(--theme--border);
}

.works_home_cover {
  position: relative;
  grid-column: span 7 / span 7;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius--small);
  overflow: hidden;
  background-color: var(--swatch--beige-300);
}

.works_home_image {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  transition: scale 0.8s var(--ease--transition);
}

.works_home_item:hover .works_home_image,
.works_home_item.is-active .works_home_image {
  scale: 1.05;
}

.works_home_overlay {
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--swatch--black-400) 12%, transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease--transition);
}

.works_home_item:hover .works_home_overlay,
.works_home_item.is-active .works_home_overlay {
  opacity: 1;
}

.works_home_content {
  grid-column: span 5 / span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space--5);
  padding-top: var(--space--2);
}

.works_home_title {
  display: flex;
  flex-direction: column;
  gap: var(--space--3);
}

.works_home_micrographic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--theme--text-muted);
}

.works_home_p {
  max-width: 34ch;
  font-size: var(--fs--main);
  color: var(--theme--text-muted);
}

/* Feature chips on each product card */
.works_home_chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space--1);
  margin-top: var(--space--1);
}

.works_home_chips li {
  padding: 0.35em 0.7em;
  border: 1px solid var(--theme--border);
  border-radius: var(--radius--round);
  color: var(--theme--text-muted);
  white-space: nowrap;
}

.works_home_result {
  display: flex;
  flex-direction: column;
  gap: var(--space--1);
  max-width: 30ch;
}

.works_home_result_value {
  font-size: var(--fs--h5);
  font-weight: var(--font--medium-weight);
}

.works_home_result_label {
  font-size: var(--fs--small);
  color: var(--theme--text-muted);
}

.works_home_cta {
  margin-top: var(--section-space--small);
  border-top: 1px solid var(--theme--border);
}

.works_home_cta_link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space--5);
  padding-block: var(--space--5);
  font-size: var(--fs--h4);
  font-weight: var(--font--medium-weight);
  letter-spacing: var(--ls--0-03);
  transition: padding-inline var(--duration-fast) var(--ease--transition);
}

.works_home_cta_link:hover {
  padding-inline: var(--space--3);
}

.works_home_cta_text.is-index,
.works_home_cta_text.is-arrow {
  font-size: var(--fs--h5);
  color: var(--theme--text-muted);
}

/* ------------------------------------------------------------
   Integration — endpoints, code tabs, key demo
   ------------------------------------------------------------ */

.integrate_wrap {
  position: relative;
  padding-block: var(--section-space--large);
  background-color: var(--swatch--black-400);
}

.integrate_head {
  display: flex;
  flex-direction: column;
  gap: var(--space--4);
  max-width: 60ch;
  margin-bottom: var(--section-space--small);
}

.integrate_heading {
  max-width: 16ch;
}

.integrate_lead {
  max-width: 52ch;
  color: var(--theme--text-muted);
}

.integrate_body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--space--7);
  align-items: start;
}

/* --- endpoint list --- */

.endpoint_list {
  display: flex;
  flex-direction: column;
}

.endpoint_list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem var(--space--3);
  padding-block: var(--space--3);
  border-top: 1px solid var(--theme--border);
}

.endpoint_list li:last-child {
  border-bottom: 1px solid var(--theme--border);
}

.endpoint_list code {
  grid-row: span 2;
  align-self: center;
  padding: 0.3em 0.55em;
  border-radius: var(--radius--small);
  background-color: var(--swatch--card-bg);
  color: var(--theme--heading-accent);
  font-family: var(--font--mono);
  font-size: var(--fs--micro);
}

.endpoint_list span {
  font-family: var(--font--mono);
  font-size: var(--fs--small);
}

.endpoint_list em {
  color: var(--theme--text-muted);
  font-size: var(--fs--small);
  font-style: normal;
}

/* --- code block --- */

.code_block {
  border: 1px solid var(--theme--border);
  border-radius: var(--radius--medium);
  background-color: var(--swatch--card-bg);
  overflow: hidden;
}

.code_bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space--3);
  padding: var(--space--2) var(--space--3);
  border-bottom: 1px solid var(--theme--border);
}

.code_tabs {
  position: relative;
  display: flex;
  gap: 0.15rem;
}

.code_tab_indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: var(--radius--small);
  background-color: var(--swatch--black-300);
}

.code_tab {
  position: relative;
  z-index: 1;
  padding: 0.45em 0.9em;
  border-radius: var(--radius--small);
  color: var(--theme--text-muted);
  font-family: var(--font--mono);
  font-size: var(--fs--micro);
  text-transform: uppercase;
  transition: color 0.3s var(--ease--transition);
}

.code_tab:hover,
.code_tab.is-active {
  color: var(--swatch--beige-100);
}

.code_copy {
  padding: 0.45em 0.8em;
  border: 1px solid var(--theme--border);
  border-radius: var(--radius--small);
  color: var(--theme--text-muted);
  transition: color 0.3s var(--ease--transition), border-color 0.3s var(--ease--transition);
}

.code_copy:hover,
.code_copy.is-copied {
  color: var(--swatch--beige-100);
  border-color: var(--swatch--beige-100);
}

.code_panel {
  margin: 0;
  padding: var(--space--4);
  overflow-x: auto;
  font-family: var(--font--mono);
  font-size: clamp(0.7rem, 0.62rem + 0.4vw, 0.8rem);
  line-height: 1.75;
  color: var(--swatch--beige-200);
  tab-size: 2;
}

.code_line {
  display: block;
  min-height: 1.75em;
  white-space: pre;
}

/* syntax colours — tuned to the beige/black palette */
.c-key  { color: #c9a2ff; }
.c-str  { color: #a8d998; }
.c-fn   { color: #8fc7ff; }
.c-var  { color: #f0d590; }
.c-type { color: #7fd8c4; }
.c-num  { color: #f0a68a; }
.c-cm   { color: var(--swatch--black-50); font-style: italic; }

/* --- key issuance demo --- */

.key_demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space--6);
  margin-top: var(--space--7);
  padding: var(--space--5) var(--space--6);
  border: 1px solid var(--theme--border);
  border-radius: var(--radius--medium);
  background-color: var(--swatch--card-bg);
}

.key_demo_left {
  display: flex;
  flex-direction: column;
  gap: var(--space--2);
}

.key_demo_label {
  color: var(--theme--text-muted);
}

.key_demo_key {
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.8rem);
  letter-spacing: 0.06em;
  color: var(--swatch--beige-100);
}

.key_demo_steps {
  display: flex;
  flex-direction: column;
  gap: var(--space--2);
}

.key_demo_steps li {
  display: flex;
  align-items: center;
  gap: var(--space--2);
  color: var(--theme--text-muted);
  font-size: var(--fs--small);
  transition: color 0.5s var(--ease--transition);
}

.key_demo_steps li.is-done {
  color: var(--swatch--beige-100);
}

.key_demo_dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius--round);
  border: 1px solid var(--swatch--black-200);
  transition: background-color 0.5s var(--ease--transition), border-color 0.5s var(--ease--transition);
}

.key_demo_steps li.is-done .key_demo_dot {
  background-color: #5ad07a;
  border-color: #5ad07a;
}

/* ------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------ */

.services_home_wrap {
  position: relative;
  padding-block: var(--section-space--large);
  background-color: var(--swatch--black-400);
}

.testimonial_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space--5);
  padding-bottom: var(--space--8);
  color: var(--theme--text-muted);
}

.testimonial_nav {
  display: flex;
  align-items: center;
  gap: var(--space--3);
}

.testimonial_nav_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--theme--border);
  border-radius: var(--radius--round);
  color: var(--theme--text-muted);
  transition: color 0.3s var(--ease--transition), border-color 0.3s var(--ease--transition);
}

.testimonial_nav_btn:hover {
  color: var(--swatch--beige-100);
  border-color: var(--swatch--beige-100);
}

.testimonial_stage {
  position: relative;
  display: grid;
  min-height: 22rem;
}

.testimonial_item {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: var(--space--6);
}

.testimonial_message {
  max-width: 20ch;
  font-size: var(--fs--h2);
  line-height: var(--lh--1);
  font-weight: var(--font--medium-weight);
  letter-spacing: var(--ls--0-03);
}

.testimonial_footer {
  display: flex;
  align-items: center;
  gap: var(--space--3);
}

.testimonial_headshot {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius--round);
  object-fit: cover;
  background-color: var(--swatch--card-bg);
}

.testimonial_details_wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  overflow: clip;
}

.testimonial_details:last-child {
  color: var(--theme--text-muted);
}

/* ------------------------------------------------------------
   Pricing — comparison cards
   ------------------------------------------------------------ */

.pricing_head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space--3);
  margin-bottom: var(--section-space--small);
  text-align: center;
}

.pricing_sub {
  max-width: 46ch;
  color: var(--theme--text-muted);
}

/* --- product switcher --- */

.price_tabs_wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space--6);
}

.price_tabs {
  position: relative;
  display: flex;
  /* Must not wrap: the indicator is positioned from offsetLeft/offsetWidth,
     which stops meaning anything once tabs sit on more than one row. Narrow
     screens scroll the pill horizontally instead. */
  flex-wrap: nowrap;
  gap: 0.2rem;
  align-self: center;
  max-width: 100%;
  padding: 0.3rem;
  border: 1px solid var(--theme--border);
  border-radius: var(--radius--round);
  background-color: var(--swatch--card-bg);
  overflow-x: auto;
  scrollbar-width: none;
}

.price_tabs::-webkit-scrollbar { display: none; }

.price_tab_indicator {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0;
  /* Position and width come from JS off the active tab's layout box. The
     transition only switches on after the first placement, so it slides
     between tabs instead of animating in from zero on load. */
  width: 0;
  border-radius: var(--radius--round);
  background-color: var(--swatch--beige-100);
}

.price_tab_indicator.is-ready {
  transition: transform 0.45s var(--ease--transition),
              width 0.45s var(--ease--transition);
}

.price_tab {
  position: relative;
  z-index: 1;
  padding: 0.55em 1.15em;
  border-radius: var(--radius--round);
  color: var(--theme--text-muted);
  font-size: var(--fs--small);
  font-weight: var(--font--medium-weight);
  white-space: nowrap;
  transition: color 0.35s var(--ease--transition);
}

.price_tab:hover { color: var(--theme--text); }
.price_tab.is-active { color: var(--swatch--black-400); }

.pricing_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--site--gutter);
  align-items: stretch;
}

/* Two- and three-card products should not stretch to full width */
.pricing_grid.is-narrow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 46rem;
  margin-inline: auto;
}

.pricing_card {
  display: flex;
  flex-direction: column;
  gap: var(--space--4);
  padding: var(--space--5);
  border: 1px solid var(--theme--border);
  border-radius: var(--radius--medium);
  background-color: var(--swatch--card-bg);
  transition: border-color var(--duration-fast) var(--ease--transition),
              transform var(--duration-fast) var(--ease--transition);
}

.pricing_card:hover {
  border-color: var(--swatch--black-200);
  transform: translateY(-2px);
}

/* The recommended tier reads as the default choice */
.pricing_card.is-featured {
  border-color: var(--swatch--beige-400);
  background-color: color-mix(in srgb, var(--swatch--card-bg) 70%, var(--swatch--beige-100) 4%);
}

.pricing_card_head {
  display: flex;
  flex-direction: column;
  gap: var(--space--2);
}

.pricing_plan {
  display: flex;
  align-items: center;
  gap: var(--space--2);
  font-size: var(--fs--h5);
  font-weight: var(--font--medium-weight);
}

.pricing_badge {
  padding: 0.3em 0.6em;
  border-radius: var(--radius--round);
  background-color: var(--swatch--beige-400);
  color: var(--swatch--black-400);
  letter-spacing: 0;
}

.pricing_price {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
}

.pricing_amount {
  font-size: var(--fs--h3);
  font-weight: var(--font--medium-weight);
  letter-spacing: var(--ls--0-03);
  line-height: 1;
}

.pricing_period,
.pricing_allowance {
  color: var(--theme--text-muted);
}

.pricing_includes {
  padding-top: var(--space--3);
  border-top: 1px solid var(--theme--border);
  color: var(--theme--text-muted);
}

.pricing_features {
  display: flex;
  flex-direction: column;
  gap: var(--space--2);
  flex: 1;
  font-size: var(--fs--small);
}

.pricing_features li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: var(--space--2);
  align-items: start;
  color: var(--theme--text);
}

/* Tick drawn in CSS so the markup stays free of repeated inline SVG */
.pricing_features li::before {
  content: "";
  width: 0.75rem;
  height: 0.45rem;
  margin-top: 0.4em;
  border-left: 1.5px solid var(--theme--heading-accent);
  border-bottom: 1.5px solid var(--theme--heading-accent);
  transform: rotate(-45deg);
}

.pricing_cta {
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: var(--space--3);
  text-align: center;
}

.pricing_note {
  margin-top: var(--space--5);
  padding-top: var(--space--4);
  border-top: 1px solid var(--theme--border);
  color: var(--theme--text-muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .pricing_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .pricing_grid { grid-template-columns: minmax(0, 1fr); }
}

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

.services_marquee_wrap {
  padding-block: var(--section-space--small);
  border-block: 1px solid var(--theme--border);
  font-size: var(--fs--h4);
  font-weight: var(--font--medium-weight);
  letter-spacing: var(--ls--0-03);
}

/* ------------------------------------------------------------
   Process
   ------------------------------------------------------------ */

.process_home_wrap {
  position: relative;
  padding-block: var(--section-space--large);
  background-color: var(--swatch--black-400);
}

.process_heading_svg {
  width: 100%;
  height: auto;
  margin-bottom: var(--section-space--small);
  color: var(--swatch--beige-100);
}

.process_home_content-list {
  counter-reset: step-counter;
}

.process_home_content-item {
  display: flex;
  align-items: flex-start;
  gap: var(--site--gutter);
  padding-block: var(--space--7);
  border-top: 1px solid var(--theme--border);
  counter-increment: step-counter;
}

.process_home_content-left {
  flex: 0 0 48%;
  display: flex;
  gap: var(--site--gutter);
}

.process_home_content_index {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space--2);
  color: var(--theme--text-muted);
}

/* Separate element rather than ::after on the index — the
   line-height-trim rule in base.css owns ::after on anything
   carrying a u-text-style-* class and would blank the counter. */
.process_step_num::after {
  content: counter(step-counter, decimal-leading-zero);
}

.process_home_micrographic {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.process_home_micrographic span {
  width: 3px;
  height: 3px;
  border-radius: var(--radius--round);
  background-color: currentColor;
}

.process_home_content_inner {
  display: flex;
  flex-direction: column;
  gap: var(--space--3);
  max-width: 38ch;
}

.process_home_content-p {
  color: var(--theme--text-muted);
}

/* Capability list replaces the media panel in the right column */
.capability_list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.capability_list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space--4);
  padding-block: var(--space--3);
  border-bottom: 1px solid var(--theme--border);
  font-size: var(--fs--large);
  transition: padding-left var(--duration-fast) var(--ease--transition);
}

.capability_list li:hover {
  padding-left: var(--space--2);
}

.capability_list li > :last-child {
  flex: 0 0 auto;
  color: var(--theme--text-muted);
}

.process_home_video {
  position: relative;
  flex: 1;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius--small);
  overflow: hidden;
}

.process_home_video_media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.8s var(--ease--transition);
}

.process_home_video:hover .process_home_video_media {
  scale: 1.04;
}

.process_home_cta {
  position: absolute;
  left: var(--space--3);
  bottom: var(--space--3);
  padding: 0.4em 0.8em;
  border-radius: var(--radius--round);
  background-color: color-mix(in srgb, var(--swatch--black-400) 70%, transparent);
  backdrop-filter: blur(6px);
  color: var(--swatch--beige-100);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity var(--duration-fast) var(--ease--transition),
              transform var(--duration-fast) var(--ease--transition);
}

.process_home_video:hover .process_home_cta {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */

.faq_home_wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--site--gutter);
  padding-block: var(--section-space--large);
  padding-inline: var(--site--margin);
  background-color: var(--swatch--card-bg);
}

.faq_home_left  { grid-column: 1 / span 2; }
.faq_home_main  { grid-column: 3 / span 7; }
.faq_home_content {
  grid-column: 11 / span 2;
  display: flex;
  flex-direction: column;
  gap: var(--space--4);
}

.faq_home_heading {
  max-width: 18ch;
  margin-bottom: var(--space--8);
}

.faq_home_headshot {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius--round);
  object-fit: cover;
  background-color: var(--swatch--black-300);
}

.faq_home_p {
  color: var(--theme--text-muted);
}

.faq_home_content .g_btn_main {
  align-self: flex-start;
}

/* ------------------------------------------------------------
   CTA
   ------------------------------------------------------------ */

.cta_home_wrap {
  position: relative;
  z-index: 2;
  padding-block: var(--section-space--large);
  background-color: var(--swatch--black-400);
  clip-path: inset(0% 0% 0% 0% round 0rem);
  overflow: clip;
}

.cta_home_contain {
  display: flex;
  flex-direction: column;
  gap: var(--space--8);
}

.cta_home_eyebrow {
  color: var(--theme--text-muted);
}

.cta_heading_wrap {
  overflow: clip;
}

.cta_heading_inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  will-change: transform;
}

.cta_heading_line {
  display: flex;
  align-items: center;
  gap: var(--space--4);
  white-space: nowrap;
}

.cta_heading_arrow {
  flex: 0 0 auto;
  width: 0.7em;
  color: var(--theme--heading-accent);
}

.cta_home_bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space--6);
  padding-top: var(--space--6);
}

.cta_home_quote {
  max-width: 34ch;
  color: var(--theme--text-muted);
}

.cta_home_quote_source {
  margin-top: var(--space--2);
  color: var(--theme--heading-accent);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.footer_wrap_main {
  position: relative;
  z-index: 1;
  overflow: clip;
  background-color: var(--swatch--black-400);
}

.footer_wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--site--gutter) var(--site--gutter);
  padding-block: var(--section-space--main);
}

.footer_col_nav      { grid-column: span 3 / span 3; }
.footer_col_studio   { grid-column: span 3 / span 3; }
.footer_col_socials  { grid-column: span 3 / span 3; }
.footer_col_clock    { grid-column: span 3 / span 3; }

.footer_col_title {
  margin-bottom: var(--space--4);
  color: var(--theme--text-muted);
}

.footer_nav_ul {
  display: flex;
  flex-direction: column;
  gap: var(--space--1);
}

.footer_nav_li {
  overflow: clip;
}

.footer_nav_link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space--3);
  padding-block: 0.15em;
  font-size: var(--fs--h5);
  font-weight: var(--font--medium-weight);
  transition: transform var(--duration-fast) var(--ease--transition);
}

.footer_nav_link:hover {
  transform: translateX(0.35rem);
}

.footer_nav_arrow {
  color: var(--theme--text-muted);
}

.footer_detail_list {
  display: flex;
  flex-direction: column;
  gap: var(--space--3);
  color: var(--theme--text-muted);
}

.footer_detail_list a:hover {
  color: var(--swatch--beige-100);
}

.footer_clock {
  display: flex;
  flex-direction: column;
  gap: var(--space--2);
}

.footer_time {
  font-family: var(--font--mono);
  font-size: var(--fs--h4);
  font-weight: var(--font--primary-weight);
  letter-spacing: var(--ls--0-03);
  font-variant-numeric: tabular-nums;
}

.footer_time_period {
  margin-left: 0.35em;
  font-size: 0.5em;
  vertical-align: super;
  color: var(--theme--text-muted);
}

.blinking-colon {
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to { opacity: 0.25; }
}

.footer_date,
.footer_status {
  color: var(--theme--text-muted);
}

.footer_status_dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.5em;
  border-radius: var(--radius--round);
  background-color: #5ad07a;
}

.footer_bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space--4);
  padding-block: var(--space--4);
  border-top: 1px solid var(--theme--border);
  color: var(--theme--text-muted);
}

.footer_to_top {
  display: flex;
  align-items: center;
  gap: var(--space--2);
  transition: color 0.3s var(--ease--transition);
}

.footer_to_top:hover {
  color: var(--swatch--beige-100);
}

/* Parallax canvas band with the oversized wordmark */
.footer_canvas_bottom {
  position: relative;
  z-index: 1;
  padding-block: var(--space--6);
  overflow: clip;
}

.footer_canvas_container {
  position: relative;
  will-change: transform;
}

.footer_canvas_svg {
  width: 100%;
  height: auto;
  color: var(--swatch--black-300);
  font-family: var(--font--logo);
  font-size: clamp(4rem, 19vw, 19rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
}

.footer_canvas_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space--5);
  padding-top: var(--space--5);
  color: var(--theme--text-muted);
}

.footer-wrap-dark {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: var(--swatch--black-400);
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 991px) {
  .navbar_links { display: none; }
  .navbar_menu_btn { display: block; }
  .navbar_left_contain { grid-column: span 6 / span 6; }
  .navbar_cta_wrap { grid-column: span 6 / span 6; }

  /* Two labelled buttons and a menu button do not fit beside a wordmark on a
     phone. RoDecomp keeps its mark and loses its label — the logo is the part
     that identifies it, and the arrow only repeats what the link already
     says. The accessible name comes from aria-label, so nothing is lost to a
     screen reader. */
  .navbar_cta_contain .g_btn_main.has-mark {
    padding: 0.35rem;
    gap: 0;
  }
  .navbar_cta_contain .g_btn_main.has-mark .g_btn_text_contain,
  .navbar_cta_contain .g_btn_main.has-mark .g_btn_aside_wrap {
    display: none;
  }
  .navbar_cta_contain .g_btn_main.has-mark .g_btn_mark {
    width: 1.4em;
    height: 1.4em;
  }

  .hero_home_content { flex-direction: column; align-items: flex-start; }
  .hero_home_content_p { margin-left: 0; width: min(38ch, 100%); }

  .problems_home_header { flex-direction: column; }
  .problems_home_stats { position: static; width: 100%; }
  .problems_home_heading { max-width: none; }
  .problems_home_bottom { flex-direction: column; }
  .problems_home_left { flex: 0 0 auto; }
  .problems_home_list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .capability_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .gap_home_wrap { height: 180vh; }
  .gap_home_inner_content { flex-direction: column; gap: var(--space--4); }
  .gap_home_inner_heading-contain.is-left,
  .gap_home_inner_heading-contain.is-right { transform: none; }
  .gap_home_bottom { position: static; margin-top: var(--space--6); max-width: none; }
  .gap_home_cover { display: none; }

  .works_home_contain { flex-direction: column; }
  .works_home_left { position: static; flex: 0 0 auto; }
  .works_home_cover { grid-column: span 12 / span 12; }
  .works_home_content { grid-column: span 12 / span 12; }

  .testimonial_message { max-width: none; font-size: var(--fs--h3); }

  .integrate_body { grid-template-columns: minmax(0, 1fr); gap: var(--space--6); }
  .integrate_heading { max-width: none; }
  .key_demo { flex-direction: column; align-items: flex-start; }

  .process_home_content-item { flex-direction: column; }
  .process_home_content-left { flex: 0 0 auto; width: 100%; }
  .process_home_video { width: 100%; }

  .faq_home_left   { grid-column: span 12 / span 12; }
  .faq_home_main   { grid-column: span 12 / span 12; }
  .faq_home_content { grid-column: span 12 / span 12; }

  .footer_col_nav,
  .footer_col_studio,
  .footer_col_socials,
  .footer_col_clock { grid-column: span 6 / span 6; }
}

@media (max-width: 767px) {
  .problems_home_list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability_grid { grid-template-columns: minmax(0, 1fr); }
  .cta_home_bottom { flex-direction: column; align-items: flex-start; }
  .footer_wrap { gap: var(--space--7) var(--site--gutter); }
  .footer_col_nav,
  .footer_col_studio,
  .footer_col_socials,
  .footer_col_clock { grid-column: span 12 / span 12; }
  .footer_bottom { flex-direction: column; align-items: flex-start; }
  .works_home_cta_link { font-size: var(--fs--h5); }
}
