:root {
  --ink: #0a0a0b;
  --ink-soft: #17171a;
  --paper: #f1eee4;
  --paper-deep: #ddd8ca;
  --white: #fffdf7;
  --signal: #d6aa50;
  --signal-deep: #9f7228;
  --signal-light: #ffe89a;
  --signal-metallic: linear-gradient(
    105deg,
    #a9782b 0%,
    #d4a64e 24%,
    #ffe99a 50%,
    #c58d31 76%,
    #e6c56e 100%
  );
  --signal-metallic-hover: linear-gradient(
    105deg,
    #c08c35 0%,
    #ebc465 25%,
    #fff3bd 50%,
    #d5a347 76%,
    #f1d889 100%
  );
  --orange: #ff6948;
  --purple: #ad9aff;
  --sky: #66bfff;
  --line-dark: rgba(10, 10, 11, 0.28);
  --line-light: rgba(255, 253, 247, 0.24);
  --muted-light: rgba(255, 253, 247, 0.64);
  --muted-dark: rgba(10, 10, 11, 0.62);
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  background-image:
    linear-gradient(rgba(10, 10, 11, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 11, 0.025) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: fixed;
  z-index: 100;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

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

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

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

.skip-link {
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  left: 14px;
  padding: 12px 16px;
  position: fixed;
  top: -80px;
  z-index: 200;
}

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

.site-header {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  height: var(--header-height);
  justify-content: center;
  padding: 8px 28px;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 50;
}

.header-glass {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
    rgba(241, 238, 228, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(10, 10, 11, 0.08),
    0 10px 30px rgba(10, 10, 11, 0.13);
  box-sizing: border-box;
  display: flex;
  gap: 14px;
  height: 52px;
  justify-content: space-between;
  max-width: 920px;
  min-width: 0;
  padding: 5px 7px 5px 10px;
  width: min(920px, 100%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 11px;
  min-width: 0;
  width: fit-content;
}

.asset-slot {
  overflow: hidden;
  position: relative;
}

.asset-image,
.asset-fallback {
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.asset-image {
  opacity: 0;
}

.asset-slot.is-loaded > .asset-image {
  opacity: 1;
}

.asset-slot.is-loaded > .asset-fallback {
  opacity: 0;
  visibility: hidden;
}

.asset-slot.is-error > .asset-image {
  display: none;
}

.brand-icon-slot {
  align-items: center;
  background: var(--ink);
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.brand-icon-image,
.brand-icon-fallback {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.brand-icon-image {
  object-fit: contain;
}

.brand-icon-fallback {
  align-items: center;
  color: var(--signal);
  display: flex;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  letter-spacing: -0.09em;
}

.brand-logo-slot {
  align-items: center;
  display: inline-flex;
  height: 32px;
  min-width: 126px;
  width: min(172px, 15vw);
}

.brand-logo-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}

.brand-logo-fallback {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  inset: 0;
  letter-spacing: -0.025em;
  position: absolute;
}

.desktop-nav {
  align-items: center;
  display: flex;
  flex: 1;
  gap: clamp(8px, 1.5vw, 20px);
  justify-content: center;
  padding: 0 8px;
}

.desktop-nav a {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.desktop-nav a {
  padding: 12px 0;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.language-switcher {
  align-items: center;
  background: rgba(10, 10, 11, 0.08);
  border: 1px solid rgba(10, 10, 11, 0.5);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  display: inline-flex;
  flex: 0 0 auto;
  padding: 2px;
}

.language-switcher button {
  background: transparent;
  border: 0;
  color: rgba(10, 10, 11, 0.75);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  height: 26px;
  letter-spacing: 0.06em;
  padding: 0 8px;
}

.language-switcher button:first-child {
  border-radius: 5px 0 0 5px;
}

.language-switcher button:last-child {
  border-radius: 0 5px 5px 0;
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  color: var(--ink);
}

.language-switcher button.is-active {
  background: var(--ink);
  color: var(--signal);
}

.hero {
  background:
    radial-gradient(circle at 77% 31%, rgba(173, 154, 255, 0.16), transparent 28%),
    radial-gradient(circle at 9% 7%, rgba(214, 170, 80, 0.1), transparent 24%),
    var(--ink);
  color: var(--white);
  min-height: 0;
  overflow: hidden;
  padding: 28px 28px 0;
  position: relative;
}

.hero::before {
  background: linear-gradient(90deg, transparent, rgba(255, 253, 247, 0.04), transparent);
  content: "";
  height: 1px;
  left: -20%;
  position: absolute;
  top: 57%;
  transform: rotate(-8deg);
  width: 140%;
}

.hero-grid {
  border-radius: 8px;
  display: grid;
  isolation: isolate;
  margin: -28px -28px 0;
  min-height: clamp(680px, 78svh, 900px);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.hero-grid::before {
  background:
    linear-gradient(
      90deg,
      rgba(10, 10, 11, 0.96) 0%,
      rgba(10, 10, 11, 0.84) 29%,
      rgba(10, 10, 11, 0.42) 53%,
      rgba(10, 10, 11, 0.08) 76%
    ),
    linear-gradient(180deg, rgba(10, 10, 11, 0.22), transparent 38%, rgba(10, 10, 11, 0.58));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.hero-grid::after {
  background:
    linear-gradient(rgba(255, 253, 247, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 253, 247, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.84), transparent 68%);
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.hero-copy {
  align-content: center;
  display: grid;
  max-width: 900px;
  min-height: inherit;
  padding: clamp(68px, 8vw, 116px) clamp(28px, 5.3vw, 86px) 88px;
  position: relative;
  z-index: 5;
}

.hero-copy h1 {
  font-size: clamp(58px, 6.7vw, 108px);
  font-weight: 610;
  letter-spacing: -0.078em;
  line-height: 0.83;
  margin: 0;
  max-width: 930px;
  text-shadow: 0 3px 36px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
}

.hero-copy h1 span {
  background: var(--signal-metallic);
  background-clip: text;
  color: transparent;
  display: block;
  font-style: italic;
  font-weight: 430;
  margin-left: 6vw;
  margin-top: 0.19em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-intro {
  border-left: 2px solid var(--signal);
  color: rgba(255, 253, 247, 0.86);
  font-size: 16px;
  letter-spacing: -0.012em;
  line-height: 1.55;
  margin: 44px 0 26px;
  max-width: 610px;
  padding-left: 20px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.primary-button,
.secondary-button {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  gap: 26px;
  justify-content: space-between;
  letter-spacing: 0.055em;
  min-height: 54px;
  padding: 0 18px;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.primary-button {
  background: var(--signal-metallic);
  border-color: var(--signal-light);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 8px 24px rgba(159, 114, 40, 0.22);
  color: var(--ink);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--signal-metallic-hover);
  border-color: #fff1b2;
  transform: translateY(-2px);
}

/* A soft highlight crosses only the hero CTA, underneath its label. */
.hero-actions > .primary-button {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.hero-actions > .primary-button::before {
  animation: hero-cta-light-sweep 4.8s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 244, 198, 0.16) 24%,
    rgba(255, 255, 239, 0.78) 50%,
    rgba(255, 244, 198, 0.16) 76%,
    transparent
  );
  bottom: -40%;
  content: "";
  left: -52%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: -40%;
  transform: translateX(0) skewX(-18deg);
  width: 44%;
  z-index: 0;
}

.hero-actions > .primary-button > span {
  position: relative;
  z-index: 1;
}

@keyframes hero-cta-light-sweep {
  0%,
  12% {
    opacity: 0;
    transform: translateX(0) skewX(-18deg);
  }

  20%,
  46% {
    opacity: 0.85;
  }

  58%,
  100% {
    opacity: 0;
    transform: translateX(360%) skewX(-18deg);
  }
}

.secondary-button {
  background: transparent;
  border-color: rgba(255, 253, 247, 0.5);
  color: var(--white);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.quiet-link {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-color: rgba(255, 253, 247, 0.45);
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.quiet-link:hover,
.quiet-link:focus-visible {
  color: var(--signal);
  text-decoration-color: currentColor;
}

.cta-note {
  color: rgba(255, 253, 247, 0.5);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  margin: 12px 0 0;
  text-transform: uppercase;
}

.hero-art {
  background: #161619;
  inset: 0;
  margin: 0;
  overflow: hidden;
  position: absolute;
  z-index: 1;
}

.hero-art::before {
  background:
    radial-gradient(circle at 53% 49%, rgba(214, 170, 80, 0.16), transparent 15%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.04) 52%, rgba(10, 10, 11, 0.72));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.hero-art::after {
  animation: handoff-glow 4.8s ease-in-out infinite;
  background: radial-gradient(
    circle at 55% 50%,
    rgba(214, 170, 80, 0.24),
    rgba(214, 170, 80, 0.08) 6%,
    transparent 17%
  );
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.hero-image,
.hero-video {
  filter: saturate(0.9) contrast(1.04);
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  transform: scale(1.015);
  width: 100%;
}

.hero-image {
  z-index: 1;
}

.hero-video {
  z-index: 2;
}

.hero-fallback {
  background:
    linear-gradient(135deg, rgba(173, 154, 255, 0.2), transparent 43%),
    linear-gradient(315deg, rgba(214, 170, 80, 0.12), transparent 44%),
    #121214;
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 1;
}

.hero-fallback::before {
  background-image:
    linear-gradient(rgba(255, 253, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 253, 247, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  position: absolute;
}

.orbit {
  border: 1px solid rgba(214, 170, 80, 0.44);
  border-radius: 50%;
  left: 50%;
  position: absolute;
  top: 47%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  height: 320px;
  width: 320px;
}

.orbit-two {
  border-color: rgba(173, 154, 255, 0.32);
  height: 510px;
  width: 510px;
}

.fallback-scene {
  align-items: center;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 88px 1fr;
  inset: 58px 28px 80px;
  position: absolute;
}

.era-card {
  border: 1px solid rgba(255, 253, 247, 0.24);
  min-height: 330px;
  padding: 22px;
  position: relative;
}

.era-card strong {
  bottom: 28px;
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 500;
  left: 22px;
  letter-spacing: -0.06em;
  line-height: 0.88;
  position: absolute;
}

.era-before {
  background: rgba(173, 154, 255, 0.09);
  transform: translateY(-30px) rotate(-3deg);
}

.era-after {
  background: rgba(214, 170, 80, 0.08);
  transform: translateY(32px) rotate(3deg);
}

.hand-line {
  background: var(--white);
  height: 1px;
  position: absolute;
  top: 42%;
  width: 48%;
}

.hand-line::after {
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 12px;
  position: absolute;
  top: -6px;
  width: 12px;
}

.hand-left {
  right: -18%;
  transform: rotate(8deg);
}

.hand-left::after {
  right: -4px;
}

.hand-right {
  left: -18%;
  transform: rotate(-8deg);
}

.hand-right::after {
  left: -4px;
}

.handoff-device {
  align-items: center;
  background: var(--signal);
  border: 8px solid var(--ink);
  box-shadow: 0 0 0 1px var(--signal), 0 0 48px rgba(214, 170, 80, 0.38);
  color: var(--ink);
  display: flex;
  height: 72px;
  justify-content: center;
  position: relative;
  transform: rotate(-5deg);
  width: 92px;
  z-index: 2;
}

.handoff-device span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
}

.handoff-device i {
  background: var(--ink);
  bottom: -18px;
  height: 9px;
  position: absolute;
  width: 56px;
}

.section-shell {
  padding: 138px 28px;
}

.section-heading,
.process-title {
  display: grid;
  gap: 60px;
  grid-template-columns: 0.72fr 2fr;
}

.section-heading {
  margin-bottom: 94px;
}

.section-heading.heading-without-eyebrow,
.process-title.heading-without-eyebrow {
  grid-template-columns: minmax(0, 1fr);
}

.section-heading h2 {
  font-size: clamp(46px, 6.2vw, 94px);
  font-weight: 560;
  letter-spacing: -0.068em;
  line-height: 0.95;
  margin: 0;
}

.section-heading h2 em {
  color: #67655e;
  font-weight: 410;
}

.service-list {
  border-top: 1px solid var(--ink);
}

.service-row {
  align-items: start;
  border-bottom: 1px solid var(--ink);
  display: grid;
  gap: 24px;
  grid-template-columns: 0.35fr 1.25fr 2fr 1fr;
  padding: 30px 0 34px;
  transition:
    background 180ms ease,
    padding 180ms ease;
}

.service-row:hover {
  background: var(--white);
  padding-left: 9px;
  padding-right: 9px;
}

.service-row > *:first-child,
.service-row > h3 {
  padding-left: 14px;
}

.service-number,
.service-capability {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-transform: uppercase;
}

.service-row h3 {
  font-size: clamp(25px, 2.45vw, 38px);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}

.service-row p {
  font-size: 14px;
  line-height: 1.58;
  margin: 0;
  max-width: 650px;
}

.service-capability {
  padding-right: 14px;
  text-align: right;
}

/* Let questions and results determine the height, without a blank lower stage. */
.direction-section {
  background: var(--signal);
  border-bottom: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  min-height: 0;
}

.direction-intro {
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  padding: 54px 48px;
}

.direction-intro h2 {
  font-size: clamp(44px, 5.5vw, 84px);
  font-weight: 580;
  letter-spacing: -0.068em;
  line-height: 0.93;
  margin: 0 0 30px;
}

.direction-intro > p {
  font-size: 15px;
  line-height: 1.58;
  margin: 0;
  max-width: 580px;
}

.diagnostic {
  background:
    radial-gradient(circle at 90% 10%, rgba(173, 154, 255, 0.14), transparent 28%),
    var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px;
}

#diagnostic-content {
  display: flex;
  flex: 1;
  min-height: 0;
}

.question-panel,
.result-panel,
.noscript-message {
  animation: panel-in 260ms ease both;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 70px;
  width: 100%;
}

.question-panel h3,
.result-panel h3,
.noscript-message h3 {
  font-size: clamp(42px, 4.6vw, 72px);
  font-weight: 550;
  letter-spacing: -0.06em;
  line-height: 0.97;
  margin: 0 0 48px;
  max-width: 820px;
}

.answer-grid {
  border-left: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer-option {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
  color: var(--white);
  cursor: pointer;
  display: grid;
  min-height: 150px;
  padding: 18px;
  position: relative;
  text-align: left;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.answer-option:hover,
.answer-option:focus-visible,
.answer-option[aria-pressed="true"] {
  background: var(--signal);
  color: var(--ink);
  outline: none;
}

.answer-option:active {
  transform: scale(0.985);
}

.answer-index {
  color: rgba(255, 253, 247, 0.42);
  font-family: var(--font-mono);
  font-size: 8px;
}

.answer-option:hover .answer-index,
.answer-option:focus-visible .answer-index,
.answer-option[aria-pressed="true"] .answer-index {
  color: rgba(10, 10, 11, 0.5);
}

.answer-option strong {
  align-self: end;
  font-size: 20px;
  letter-spacing: -0.03em;
  padding-right: 26px;
}

.answer-option small {
  color: rgba(255, 253, 247, 0.58);
  font-size: 11px;
  line-height: 1.4;
  margin-top: 6px;
  max-width: 290px;
}

.answer-option:hover small,
.answer-option:focus-visible small,
.answer-option[aria-pressed="true"] small {
  color: rgba(10, 10, 11, 0.68);
}

.answer-arrow {
  font-size: 20px;
  position: absolute;
  right: 18px;
  top: 18px;
}

.diagnostic-actions {
  align-items: center;
  color: rgba(255, 253, 247, 0.52);
  display: flex;
  font-family: var(--font-mono);
  font-size: 8px;
  justify-content: space-between;
  letter-spacing: 0.04em;
  margin-top: 0;
  padding-top: 26px;
  text-transform: uppercase;
}

.text-button {
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 8px 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--signal);
  text-decoration-color: currentColor;
}

.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.25;
}

.result-panel {
  padding-top: 50px;
}

.result-panel h3 {
  font-size: clamp(36px, 4vw, 64px);
  margin-bottom: 22px;
}

.result-panel h3 em {
  color: var(--signal);
  font-weight: 430;
}

.result-summary {
  color: rgba(255, 253, 247, 0.7);
  font-size: 13px;
  line-height: 1.58;
  margin: 0 0 32px;
  max-width: 760px;
}

.result-grid {
  border-left: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.result-grid > div {
  border-bottom: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
  min-height: 145px;
  padding: 17px;
}

.result-grid span {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.result-grid p {
  font-size: 11px;
  line-height: 1.5;
  margin: 34px 0 0;
}

.result-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.result-email {
  width: min(100%, 370px);
}

.result-note {
  color: rgba(255, 253, 247, 0.48);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  margin: 15px 0 0;
  text-transform: uppercase;
}

.noscript-message > p {
  color: var(--muted-light);
  line-height: 1.6;
  max-width: 600px;
}

.noscript-message .primary-button {
  margin-top: 30px;
  width: fit-content;
}

.work {
  background: var(--paper-deep);
}

.work-heading {
  align-items: end;
  display: grid;
  gap: 80px;
  grid-template-columns: 1.8fr 0.8fr;
  margin-bottom: 70px;
}

.work-heading h2 {
  font-size: clamp(52px, 7vw, 106px);
  font-weight: 570;
  letter-spacing: -0.072em;
  line-height: 0.94;
  margin: 0;
}

.work-heading > p {
  border-left: 1px solid var(--ink);
  font-size: 13px;
  line-height: 1.58;
  margin: 0;
  padding-left: 20px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  border-left: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  min-width: 0;
  padding: 15px;
}

.work-card:nth-child(2n),
.work-card:last-child {
  border-right: 1px solid var(--ink);
}

.work-card:nth-last-child(2):nth-child(odd),
.work-card:last-child {
  border-bottom: 1px solid var(--ink);
}

.work-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.work-card-link {
  color: var(--white);
  display: grid;
  isolation: isolate;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.work-card-link::after {
  background: linear-gradient(
    to top,
    rgba(10, 10, 11, 0.96),
    rgba(10, 10, 11, 0.82) 28%,
    rgba(10, 10, 11, 0.22) 62%,
    transparent 85%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.work-card-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.product-stage {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 43%),
    var(--signal);
  color: var(--ink);
  grid-area: 1 / 1;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.work-hipdips .product-stage {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 43%),
    var(--orange);
}

.work-comprobai .product-stage {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 43%),
    var(--sky);
}

.work-kuttle .product-stage {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 43%),
    var(--purple);
}

.work-maraze .product-stage {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 43%),
    #83c9b3;
}

.work-fighters .product-stage {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 43%),
    #ff9e50;
}

.work-presidenciales .product-stage {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 43%),
    #9baecc;
}

.product-stage::before,
.product-stage::after {
  border: 1px solid rgba(10, 10, 11, 0.4);
  content: "";
  inset: 28px;
  position: absolute;
}

.product-stage::after {
  inset: 70px 27% 35px;
}

.product-stage strong {
  font-size: clamp(160px, 22vw, 320px);
  font-weight: 760;
  left: 50%;
  letter-spacing: -0.115em;
  line-height: 0.75;
  position: absolute;
  top: 40%;
  transform: translate(-52%, -50%);
  white-space: nowrap;
}

.product-scanline {
  background: var(--ink);
  height: 1px;
  left: 0;
  position: absolute;
  top: 50%;
  width: 100%;
}

.work-card-copy {
  align-self: end;
  display: grid;
  gap: 12px;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 1fr);
  padding: 28px;
  position: relative;
  z-index: 2;
}

.work-card-copy h3 {
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.045em;
  margin: 0;
}

.work-card-copy p {
  color: rgba(255, 253, 247, 0.86);
  font-size: 12px;
  line-height: 1.58;
  margin: 0;
}

.work-card-cta {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
  transition: color 180ms ease;
  width: fit-content;
}

.work-card-link:hover .work-card-cta,
.work-card-link:focus-visible .work-card-cta {
  color: var(--signal-light);
}

.psychology-section {
  background:
    radial-gradient(circle at 82% 15%, rgba(173, 154, 255, 0.22), transparent 27%),
    var(--ink-soft);
  color: var(--white);
  padding: 138px 28px;
}

.psychology-heading {
  display: grid;
  gap: 42px 70px;
  grid-template-columns: 0.65fr 1.8fr 0.8fr;
  margin-bottom: 85px;
}

.psychology-heading.heading-without-eyebrow {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.8fr);
}

.psychology-heading h2 {
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 560;
  letter-spacing: -0.068em;
  line-height: 0.94;
  margin: 0;
}

.psychology-heading h2 em {
  color: var(--signal);
  display: block;
  font-weight: 420;
}

.psychology-heading > p:last-child {
  align-self: end;
  border-left: 1px solid var(--line-light);
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  padding-left: 20px;
}

.principles-grid {
  border-left: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.psychology-card {
  border-bottom: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  min-height: 325px;
  padding: 23px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.psychology-card:hover {
  background: var(--signal);
  color: var(--ink);
}

.psychology-card h3 {
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 580;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 22px;
}

.psychology-card p {
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.58;
  margin: 0 0 30px;
}

.psychology-card p:last-child {
  margin-bottom: 0;
}

.psychology-card:hover p {
  color: rgba(10, 10, 11, 0.76);
}

.psychology-card small {
  border-top: 1px solid currentColor;
  color: rgba(255, 253, 247, 0.48);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  margin-top: auto;
  padding-top: 12px;
  text-transform: uppercase;
}

.psychology-card:hover small {
  color: rgba(10, 10, 11, 0.62);
}

.psychology-card-wide {
  background: rgba(255, 105, 72, 0.09);
  grid-column: span 3;
  min-height: 280px;
}

.psychology-card-wide p {
  max-width: 900px;
}

.ethics-manifesto {
  align-items: center;
  background: var(--signal);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 70px;
  min-height: 180px;
  padding: 30px;
}

.ethics-manifesto p {
  font-size: clamp(34px, 4.6vw, 70px);
  font-weight: 560;
  letter-spacing: -0.06em;
  line-height: 0.96;
  margin: 0;
}

.process-section {
  background: var(--ink);
  color: var(--white);
  padding: 138px 28px 0;
}

.process-title h2 {
  font-size: clamp(48px, 6.6vw, 100px);
  font-weight: 560;
  letter-spacing: -0.07em;
  line-height: 0.94;
  margin: 0 0 90px;
  max-width: 1120px;
}

.process-list {
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.process-list article {
  border-right: 1px solid var(--line-light);
  min-height: 330px;
  padding: 22px;
}

.process-list article:first-child {
  border-left: 1px solid var(--line-light);
}

.process-list h3 {
  font-size: 24px;
  font-weight: 570;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

.process-list p {
  color: var(--muted-light);
  font-size: 11px;
  line-height: 1.58;
  margin: 0;
}

.principle-band {
  border-left: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 70px;
  padding: 60px 30px 80px;
}

.principle-quote {
  color: var(--signal);
  font-size: clamp(35px, 4vw, 60px);
  font-style: italic;
  font-weight: 430;
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 0;
}

.closing-section {
  background: var(--orange);
  border-bottom: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: 60px 28px;
}

.closing-section h2 {
  align-self: center;
  font-size: clamp(70px, 10vw, 160px);
  font-weight: 620;
  letter-spacing: -0.085em;
  line-height: 0.78;
  margin: 20px 0;
}

footer {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  padding: 70px 28px 28px;
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

/* Reuse the menu artwork, framing just its polished gold symbol. */
.footer-brand .brand-icon-slot {
  overflow: hidden;
}

.footer-brand .brand-icon-image {
  height: 200%;
  inset: auto;
  left: -20%;
  max-width: none;
  object-fit: fill;
  top: -50%;
  width: 600%;
}

.footer-brand strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  gap: 16px 24px;
  justify-content: center;
  justify-self: center;
  letter-spacing: 0.04em;
  max-width: 100%;
  text-align: center;
  text-transform: uppercase;
}

.footer-links a {
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration-color: currentColor;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 580ms ease,
    transform 580ms ease;
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

@media (max-width: 1180px) {
  .hero-copy {
    max-width: 780px;
  }

  .psychology-heading {
    grid-template-columns: 0.55fr 1.6fr;
  }

  .psychology-heading > p:last-child {
    grid-column: 2;
  }

  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psychology-card-wide {
    grid-column: span 2;
  }

  .direction-section {
    grid-template-columns: 1fr;
  }

  .direction-intro {
    border-bottom: 1px solid var(--ink);
    border-right: 0;
  }

  .service-row {
    grid-template-columns: 0.25fr 1fr 1.5fr;
  }

  .service-capability {
    display: none;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list article:nth-child(3) {
    border-left: 1px solid var(--line-light);
  }

  .process-list article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-light);
  }
}

@media (max-width: 930px) {
  .desktop-nav {
    display: none;
  }

  .header-glass {
    gap: 10px;
  }

  .hero-grid {
    min-height: min(820px, 88svh);
  }

  .hero-copy {
    max-width: 760px;
    min-height: inherit;
  }

  .hero-copy h1 {
    font-size: clamp(62px, 11vw, 96px);
  }

  .section-heading,
  .process-title {
    grid-template-columns: 0.45fr 1.6fr;
  }

  footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand {
    justify-content: center;
  }

}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  body::before {
    display: none;
  }

  .site-header {
    height: var(--header-height);
    padding: 6px 12px;
  }

  .header-glass {
    max-width: 100%;
    padding: 4px 6px 4px 8px;
  }

  .brand-icon-slot {
    flex-basis: 30px;
    height: 30px;
    width: 30px;
  }

  .brand-logo-slot {
    min-width: 112px;
    width: 130px;
  }

  .language-switcher button {
    height: 24px;
    padding: 0 6px;
  }

  .hero {
    padding: 20px 16px 0;
  }

  .hero-grid {
    margin: -20px -16px 0;
    min-height: max(720px, calc(100svh - 118px));
  }

  .hero-grid::before {
    background:
      linear-gradient(
        180deg,
        rgba(10, 10, 11, 0.24) 0%,
        rgba(10, 10, 11, 0.32) 30%,
        rgba(10, 10, 11, 0.88) 68%,
        rgba(10, 10, 11, 0.98) 100%
      ),
      linear-gradient(90deg, rgba(10, 10, 11, 0.7), transparent 78%);
  }

  .hero-grid::after {
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, black, transparent 62%);
  }

  .hero-copy {
    align-content: end;
    min-height: inherit;
    padding: 44px 22px 70px;
  }

  .hero-copy h1 {
    font-size: clamp(52px, 15.7vw, 74px);
  }

  .hero-copy h1 span {
    margin-left: 0;
  }

  .hero-intro {
    font-size: 14px;
    margin-top: 38px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-image,
  .hero-video {
    object-position: 57% center;
  }

  .fallback-scene {
    grid-template-columns: 1fr 54px 1fr;
    inset: 60px 14px 86px;
  }

  .era-card {
    min-height: 300px;
    padding: 13px;
  }

  .era-card strong {
    bottom: 22px;
    font-size: clamp(29px, 9vw, 46px);
    left: 13px;
  }

  .handoff-device {
    border-width: 6px;
    height: 50px;
    width: 62px;
  }

  .orbit-one {
    height: 240px;
    width: 240px;
  }

  .orbit-two {
    height: 390px;
    width: 390px;
  }

  .section-shell,
  .psychology-section {
    padding: 90px 16px;
  }

  .section-heading,
  .process-title,
  .psychology-heading,
  .psychology-heading.heading-without-eyebrow {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .section-heading {
    margin-bottom: 55px;
  }

  .section-heading h2 {
    font-size: clamp(43px, 13vw, 68px);
  }

  .service-row {
    gap: 13px;
    grid-template-columns: 0.17fr 1fr;
    padding: 22px 0 26px;
  }

  .service-row p {
    font-size: 12px;
    grid-column: 2;
    padding: 0 12px;
  }

  .direction-intro {
    padding: 42px 18px;
  }

  .direction-intro h2 {
    font-size: clamp(48px, 14vw, 70px);
    margin-top: 0;
  }

  .diagnostic {
    padding: 26px 16px;
  }

  .question-panel {
    padding-top: 55px;
  }

  .question-panel h3,
  .result-panel h3,
  .noscript-message h3 {
    font-size: clamp(42px, 12vw, 60px);
    margin-bottom: 40px;
  }

  .answer-grid {
    grid-template-columns: 1fr;
  }

  .answer-option {
    min-height: 116px;
  }

  .diagnostic-actions {
    gap: 20px;
  }

  .diagnostic-actions > span {
    text-align: right;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-grid > div {
    min-height: 108px;
  }

  .result-grid p {
    margin-top: 22px;
  }

  .work-heading {
    align-items: start;
    gap: 32px;
    grid-template-columns: 1fr;
  }

  .work-heading h2 {
    font-size: clamp(52px, 15vw, 78px);
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card:nth-child(2n),
  .work-card:last-child {
    border-bottom: 0;
    border-right: 1px solid var(--ink);
  }

  .work-card:last-child {
    border-bottom: 1px solid var(--ink);
  }

  .work-card-link,
  .product-stage {
    min-height: 380px;
  }

  .work-card-copy {
    padding: 24px 20px;
  }

  .product-stage strong {
    font-size: clamp(160px, 58vw, 260px);
  }

  .psychology-heading {
    margin-bottom: 54px;
  }

  .psychology-heading h2 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .psychology-heading > p:last-child {
    grid-column: auto;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .psychology-card,
  .psychology-card-wide {
    grid-column: auto;
    min-height: 300px;
  }

  .ethics-manifesto {
    align-items: start;
    margin-top: 50px;
    min-height: 300px;
    padding: 24px;
  }

  .ethics-manifesto p {
    align-self: end;
    font-size: clamp(38px, 12vw, 58px);
  }

  .process-section {
    padding: 90px 16px 0;
  }

  .process-title h2 {
    font-size: clamp(50px, 14vw, 76px);
    margin-bottom: 30px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list article,
  .process-list article:nth-child(3) {
    border-bottom: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
    min-height: 250px;
  }

  .principle-band {
    margin-top: 50px;
    padding: 42px 20px 60px;
  }

  .closing-section {
    padding: 42px 16px;
  }

  .closing-section h2 {
    overflow-wrap: anywhere;
    align-self: stretch;
    font-size: clamp(75px, 23vw, 115px);
    margin: 20px 0;
  }

  html[lang="es"] .closing-section h2 {
    font-size: clamp(50px, 17vw, 85px);
  }

  footer {
    padding: 55px 16px 24px;
  }
}

@media (max-width: 400px) {
  .brand-logo-slot {
    min-width: 104px;
    width: 112px;
  }

  .hero-copy h1 {
    font-size: clamp(51px, 17vw, 68px);
  }

  .primary-button,
  .secondary-button {
    gap: 12px;
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-video {
    display: none;
  }

  .hero-actions > .primary-button::before {
    animation: none;
    opacity: 0;
  }

}

@keyframes handoff-glow {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* Reserve every phrase's wrapped height so the looping words never move the CTA. */
.hero-copy #hero-title .hero-phrase.is-rotating {
  background: none;
  position: relative;
}

.hero-copy #hero-title .hero-phrase-layout {
  display: grid;
  font: inherit;
  grid-template-columns: minmax(0, 1fr);
  visibility: hidden;
}

.hero-copy #hero-title .hero-phrase-layout > b {
  font: inherit;
  grid-area: 1 / 1;
}

.hero-copy #hero-title .hero-phrase-visual {
  background: var(--signal-metallic);
  background-clip: text;
  color: transparent;
  display: block;
  font: inherit;
  inset: 0;
  pointer-events: none;
  position: absolute;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Services stay readable in normal flow until the measured scroll stage is ready. */
.services.services-cascade {
  --services-block-padding: 24px;
  --services-card-gap: 16px;
  --services-gallery-min-height: 400px;
  background: #000;
  padding: var(--services-block-padding) 28px;
}

.services-cascade .services-viewport,
.services-cascade .services-track {
  display: contents;
}

.services-cascade .services-stack {
  display: grid;
  gap: var(--services-card-gap);
  isolation: isolate;
  margin-inline: auto;
  max-width: 900px;
  width: 100%;
}

.services-cascade .service-main-card,
.services-cascade .service-row {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--ink);
  min-width: 0;
  position: relative;
}

.services-cascade .service-main-card {
  align-content: center;
  background: var(--signal-metallic);
  box-shadow: inset 0 1px 0 rgba(255, 253, 247, 0.45);
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  padding: 20px 24px;
  z-index: 5;
}

/* Keep the light inside the gold card, independent of its scroll transform. */
.services-cascade .service-main-card::before {
  animation: service-card-light-sweep 4.8s ease-in-out infinite;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 249, 224, 0.18) 30%,
    rgba(255, 255, 244, 0.7) 50%,
    rgba(255, 249, 224, 0.18) 70%,
    transparent
  );
  bottom: 0;
  content: "";
  left: -60%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateX(0);
  width: 48%;
  z-index: 0;
}

@keyframes service-card-light-sweep {
  0%,
  12% {
    opacity: 0;
    transform: translateX(0);
  }

  20%,
  46% {
    opacity: 0.72;
  }

  58%,
  100% {
    opacity: 0;
    transform: translateX(350%);
  }
}

.services-cascade .service-main-card h2 {
  font-size: clamp(28px, 3.3vw, 44px);
  letter-spacing: -0.055em;
  line-height: 1.04;
  position: relative;
  z-index: 1;
}

.services-cascade .service-main-card h2 em {
  color: #343023;
}

.services-cascade .service-list {
  border: 0;
  display: grid;
  gap: var(--services-card-gap);
  min-width: 0;
}

.services-cascade .service-row {
  align-items: center;
  background: var(--paper);
  gap: 10px 20px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 18px 24px;
  transition: none;
}

.services-cascade .service-row:hover {
  background: var(--paper);
  padding: 18px 24px;
}

.services-cascade .service-row > *:first-child,
.services-cascade .service-row > h3 {
  padding-left: 0;
}

.services-cascade .service-number {
  padding-top: 4px;
}

.services-cascade .service-row h3 {
  font-size: clamp(22px, 2.1vw, 26px);
  line-height: 1.08;
}

/* Measurement and animation use identical compact cards and wrapping. */
.services-cascade:is(.is-gallery-measuring, .is-cascade-driven) .service-main-card,
.services-cascade:is(.is-gallery-measuring, .is-cascade-driven) .service-row {
  min-height: var(--services-gallery-min-height);
}

.services-cascade.is-gallery-measuring .services-stack {
  height: auto;
  max-width: none;
  width: var(--services-card-width);
}

.services-cascade:is(.is-gallery-measuring, .is-cascade-driven) .service-main-card {
  padding: 20px 16px;
}

.services-cascade:is(.is-gallery-measuring, .is-cascade-driven) .service-main-card h2 {
  font-size: clamp(20px, 1.65vw, 28px);
  line-height: 1.07;
}

.services-cascade:is(.is-gallery-measuring, .is-cascade-driven) .service-row,
.services-cascade:is(.is-gallery-measuring, .is-cascade-driven) .service-row:hover {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  padding: 20px 16px;
}

.services-cascade:is(.is-gallery-measuring, .is-cascade-driven) .service-row h3 {
  font-size: clamp(20px, 1.8vw, 26px);
}

/* The pin stays still; scroll frames move only the cards. */
.services.services-cascade.is-cascade-driven {
  height: calc(var(--services-stage-height) + var(--services-scroll-distance));
  padding-block: 0;
}

.services-cascade.is-cascade-driven .services-pin {
  height: var(--services-stage-height);
  position: sticky;
  top: var(--services-pin-top);
}

.services-cascade.is-cascade-driven .services-stack {
  display: block;
  height: var(--services-card-height);
  left: calc(50% - var(--services-card-width) / 2);
  margin: 0;
  max-width: none;
  position: absolute;
  top: calc(50% - var(--services-card-height) / 2);
  width: var(--services-card-width);
}

.services-cascade.is-cascade-driven .service-main-card {
  height: 100%;
  inset: 0;
  position: absolute;
}

.services-cascade.is-cascade-driven .service-list {
  display: block;
  inset: 0;
  position: absolute;
}

.services-cascade.is-cascade-driven .service-row {
  height: 100%;
  inset: 0;
  position: absolute;
  transform: translateX(var(--service-x, 0px));
  will-change: transform;
}

.services-cascade .service-row:nth-child(1) {
  z-index: 3;
}

.services-cascade .service-row:nth-child(2) {
  z-index: 4;
}

.services-cascade .service-row:nth-child(3) {
  z-index: 4;
}

.services-cascade .service-row:nth-child(4) {
  z-index: 3;
}

/* Mobile peels one card upward at a time, with no clipping around the stack. */
.services-cascade.is-cascade-mobile.is-cascade-driven :is(.service-main-card, .service-row) {
  opacity: var(--service-opacity, 1);
  transform: translateY(var(--service-y, 0px));
  will-change: transform, opacity;
}

.services-cascade.is-cascade-mobile.is-cascade-driven .service-row:nth-child(1) {
  z-index: 4;
}

.services-cascade.is-cascade-mobile.is-cascade-driven .service-row:nth-child(2) {
  z-index: 3;
}

.services-cascade.is-cascade-mobile.is-cascade-driven .service-row:nth-child(3) {
  z-index: 2;
}

.services-cascade.is-cascade-mobile.is-cascade-driven .service-row:nth-child(4) {
  z-index: 1;
}

@media (max-width: 1100px) {
  .services.services-cascade {
    --services-card-gap: 12px;
  }

  .services-cascade .service-row {
    gap: 5px 18px;
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 15px 20px;
  }

  .services-cascade .service-row:hover {
    padding: 15px 20px;
  }

}

@media (max-width: 720px) {
  .services.services-cascade {
    --services-block-padding: 16px;
    --services-card-gap: 16px;
    --services-gallery-min-height: 380px;
    padding: var(--services-block-padding) 16px;
  }

  .services-cascade .service-main-card {
    padding: 14px 12px;
  }

  .services-cascade .service-main-card h2 {
    font-size: clamp(25px, 6.8vw, 30px);
    line-height: 1.03;
  }

  .services-cascade .service-row {
    gap: 5px 10px;
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 11px 12px;
  }

  .services-cascade .service-row:hover {
    padding: 11px 12px;
  }

  .services-cascade .service-number {
    padding-top: 3px;
  }

  .services-cascade .service-row h3 {
    font-size: clamp(20px, 5.5vw, 24px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .services-cascade .service-main-card::before {
    animation: none;
    opacity: 0;
  }

  .services.services-cascade.is-cascade-driven {
    height: auto;
    padding-block: var(--services-block-padding);
  }

  .services-cascade.is-cascade-driven .services-pin,
  .services-cascade.is-cascade-driven .services-stack,
  .services-cascade.is-cascade-driven .service-main-card,
  .services-cascade.is-cascade-driven .service-row {
    min-height: 0;
    height: auto;
    inset: auto;
    position: relative;
    top: auto;
  }

  .services-cascade.is-cascade-driven .services-stack,
  .services-cascade.is-cascade-driven .service-list {
    display: grid;
  }

  .services-cascade.is-cascade-driven .services-stack {
    margin-inline: auto;
    max-width: 900px;
    width: 100%;
  }

  .services-cascade.is-cascade-driven .service-list {
    inset: auto;
    position: static;
  }

  .services-cascade.is-cascade-driven .service-row,
  .services-cascade.is-cascade-driven .service-row:hover {
    align-items: center;
    display: grid;
    gap: 10px 16px;
    grid-template-columns: 24px minmax(0, 1fr);
    transform: none;
    will-change: auto;
  }

  .services-cascade.is-cascade-driven :is(.service-main-card, .service-row),
  .services-cascade.is-cascade-mobile.is-cascade-driven :is(.service-main-card, .service-row) {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

/* Decorative artwork is clipped to its own card, below the legible text layer. */
.services-cascade .service-row.service-image-card,
.services-cascade .service-row.service-image-card:hover {
  align-items: flex-start;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  isolation: isolate;
  justify-content: flex-end;
  min-height: var(--services-gallery-min-height);
  overflow: hidden;
  padding: 24px 16px;
}

.services-cascade .service-image-card .service-artwork {
  height: 100%;
  inset: 0;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.services-cascade .service-image-card::after {
  background: linear-gradient(
    180deg,
    rgba(4, 6, 11, 0.04) 20%,
    rgba(4, 6, 11, 0.26) 52%,
    rgba(4, 6, 11, 0.9) 100%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.services-cascade .service-image-card > .service-number,
.services-cascade .service-image-card > h3 {
  color: var(--white);
  position: relative;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.services-cascade .service-image-card > .service-number {
  font-size: 10px;
  padding: 0;
}
