/*
 * TFA Media – native design system
 * Warm surfaces with blue-violet brand accents. Replace tokens, not component-level colors.
 */

:root {
  --color-bg: #f7f2e9;
  --color-bg-soft: #efe6d9;
  --color-surface: #fffaf4;
  --color-surface-strong: #f2e7d8;
  --color-surface-light: #fbf7f0;
  --color-text: #17130f;
  --color-text-dark: #0b0a08;
  --color-muted: #756e64;
  --color-muted-strong: #4e4840;
  --color-line: rgba(23, 19, 15, 0.13);
  --color-line-strong: rgba(23, 19, 15, 0.24);
  --color-accent: #3f63d9;
  --color-accent-soft: rgba(63, 99, 217, 0.12);
  --color-accent-strong: #304db2;
  --color-danger: #ff7068;
  --color-success: #9eea73;
  --color-focus: #3f63d9;
  --color-selection-bg: #cdd9ff;
  --color-selection-text: #10182e;
  --color-accent-light: #a5b4ff;

  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --container: 84rem;
  --gutter: clamp(1.1rem, 3vw, 3rem);
  --section-space: clamp(5rem, 10vw, 10rem);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.75rem;
  --radius-pill: 999px;

  --shadow-float: 0 2rem 6rem rgba(55, 45, 32, 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-height: 5.25rem;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
  color-scheme: light;
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% -10%, rgba(184, 154, 106, 0.16), transparent 31rem),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:has(.mobile-menu[open]) {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  margin: 0;
  color: inherit;
  font: inherit;
}

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

button,
summary {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.5rem, 8.3vw, 8.2rem);
}

h2 {
  font-size: clamp(2.5rem, 5.2vw, 5.2rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

p {
  text-wrap: pretty;
}

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

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

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.container {
  width: min(100% - (2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.eyebrow,
.micro-label {
  margin-bottom: 1rem;
  color: var(--color-muted-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.micro-label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--color-muted);
  font-size: 0.64rem;
}

.text-accent {
  background: linear-gradient(112deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

@media (forced-colors: active) {
  .text-accent {
    background: none;
    color: LinkText;
  }
}

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

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient-noise {
  position: fixed;
  z-index: 1500;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

html.js:where(.has-reveal-controller) [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 700ms var(--ease-out),
    transform 850ms var(--ease-out);
}

html.js:where(.has-reveal-controller) [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(23, 19, 15, 0.12);
  background: rgba(247, 242, 233, 0.96);
  box-shadow: 0 0.5rem 2rem rgba(55, 45, 32, 0.035);
  color: var(--color-text);
  transition:
    background-color 280ms ease,
    border-color 280ms ease,
    backdrop-filter 280ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(23, 19, 15, 0.16);
  background: rgba(247, 242, 233, 0.9);
  backdrop-filter: blur(1.25rem) saturate(135%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.brand {
  position: relative;
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
}

.brand__pixel-trail {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 0.9rem;
  width: 1px;
  height: 2.6rem;
  pointer-events: none;
  transform: translateY(-50%);
}

.brand__pixel {
  --pixel-distance: -2.5rem;
  --pixel-drift: 0.1rem;
  --pixel-rotation: -70deg;
  position: absolute;
  top: 48%;
  left: 0;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 0.04rem;
  background: #187bd7;
  box-shadow: 0 0 0.8rem rgba(24, 123, 215, 0.34);
  opacity: 0;
  transform-origin: center;
}

.brand__pixel:nth-child(2n) {
  background: #7451a6;
  box-shadow: 0 0 0.9rem rgba(116, 81, 166, 0.38);
}

.brand__pixel:nth-child(1) { top: 25%; --pixel-drift: -0.08rem; animation-delay: -0.08s; }
.brand__pixel:nth-child(2) { top: 36%; width: 0.2rem; height: 0.2rem; --pixel-distance: -3rem; --pixel-drift: -0.14rem; --pixel-rotation: 85deg; animation-delay: -0.21s; }
.brand__pixel:nth-child(3) { top: 55%; width: 0.32rem; height: 0.32rem; --pixel-distance: -2.25rem; --pixel-drift: 0.2rem; --pixel-rotation: -110deg; animation-delay: -0.36s; }
.brand__pixel:nth-child(4) { top: 62%; width: 0.18rem; height: 0.18rem; --pixel-distance: -3.2rem; --pixel-drift: 0.12rem; --pixel-rotation: 120deg; animation-delay: -0.5s; }
.brand__pixel:nth-child(5) { top: 48%; width: 0.24rem; height: 0.24rem; --pixel-distance: -2.7rem; --pixel-drift: -0.24rem; --pixel-rotation: -55deg; animation-delay: -0.65s; }
.brand__pixel:nth-child(6) { top: 66%; width: 0.26rem; height: 0.26rem; --pixel-distance: -2.35rem; --pixel-drift: 0.16rem; --pixel-rotation: 95deg; animation-delay: -0.78s; }
.brand__pixel:nth-child(7) { top: 17%; width: 0.16rem; height: 0.16rem; --pixel-distance: -3.35rem; --pixel-drift: -0.06rem; --pixel-rotation: -130deg; animation-delay: -0.93s; }
.brand__pixel:nth-child(8) { top: 58%; width: 0.22rem; height: 0.22rem; --pixel-distance: -2.85rem; --pixel-drift: 0.26rem; --pixel-rotation: 65deg; animation-delay: -1.06s; }
.brand__pixel:nth-child(9) { top: 31%; width: 0.24rem; height: 0.24rem; --pixel-distance: -2.45rem; --pixel-drift: -0.12rem; --pixel-rotation: 105deg; animation-delay: -1.19s; }
.brand__pixel:nth-child(10) { top: 52%; width: 0.17rem; height: 0.17rem; --pixel-distance: -3.1rem; --pixel-drift: 0.03rem; --pixel-rotation: -80deg; animation-delay: -1.32s; }
.brand__pixel:nth-child(11) { top: 22%; width: 0.14rem; height: 0.14rem; --pixel-distance: -2.75rem; --pixel-drift: -0.04rem; --pixel-rotation: 75deg; animation-delay: -0.45s; }
.brand__pixel:nth-child(12) { top: 47%; width: 0.19rem; height: 0.19rem; --pixel-distance: -3.25rem; --pixel-drift: 0.08rem; --pixel-rotation: -95deg; animation-delay: -1.12s; }
.brand__pixel:nth-child(13) { top: 9%; width: 0.13rem; height: 0.13rem; --pixel-distance: -2.6rem; --pixel-drift: -0.03rem; --pixel-rotation: 60deg; animation-delay: -0.72s; }

.brand:hover .brand__pixel,
.brand:focus-visible .brand__pixel {
  animation-name: brand-pixel-trail;
  animation-duration: 1.45s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes brand-pixel-trail {
  0% {
    opacity: 0;
    transform: translate3d(0.15rem, 0, 0) scale(0.35) rotate(0deg);
  }

  12% {
    opacity: 0.92;
  }

  58% {
    opacity: 0.52;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--pixel-distance), var(--pixel-drift), 0) scale(0.72) rotate(var(--pixel-rotation));
  }
}

.brand__wordmark-panel {
  position: relative;
  display: block;
  overflow: hidden;
  width: 6.35rem;
  height: 4.15rem;
  flex: 0 0 auto;
  transition: transform 280ms var(--ease-out);
}

.brand__logo--wordmark {
  position: absolute;
  top: -2.49rem;
  left: -1.79rem;
  display: block;
  width: 9.85rem;
  max-width: none;
  height: auto;
}

.brand:hover .brand__wordmark-panel {
  transform: translateY(-0.08rem);
}

.brand__wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.28rem;
  font-size: 0.9rem;
  letter-spacing: -0.04em;
}

.brand__wordmark strong {
  font-weight: 800;
}

.brand__wordmark span {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.brand--footer {
  display: inline-block;
}

.brand__logo--primary {
  display: block;
  width: clamp(12rem, 18vw, 15rem);
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 2.4vw, 2.5rem);
}

.desktop-nav a {
  position: relative;
  padding-block: 0.7rem;
  color: var(--color-muted-strong);
  font-size: 0.82rem;
  font-weight: 560;
  transition: color 200ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--color-accent);
  content: "";
  transition: transform 300ms var(--ease-out);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--color-text);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 650;
}

.text-link::after {
  display: block;
  width: 1.7rem;
  height: 1px;
  transform-origin: left;
  background: currentColor;
  content: "";
  transition: transform 250ms var(--ease-out);
}

.text-link:hover::after {
  transform: scaleX(1.45);
}

.text-link--header {
  color: var(--color-muted-strong);
  font-size: 0.78rem;
}

.text-link--header::after {
  display: none;
}

.text-link--header[href^="mailto:"],
.hero__actions .button--ghost[href^="mailto:"],
.mobile-menu__actions .button--ghost[href^="mailto:"],
.footer-cta__actions .button--ghost[href^="mailto:"] {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  line-height: 1;
  transition:
    transform 220ms var(--ease-out),
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--small {
  min-height: 2.85rem;
  padding-inline: 1.05rem;
  font-size: 0.78rem;
}

.button--accent {
  background: var(--color-accent);
  color: #fffaf4;
}

.button--accent:hover {
  background: var(--color-accent-strong);
}

a.button--accent.button--primary {
  min-width: 12rem;
  min-height: 4.15rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(112deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
  box-shadow: 0 1rem 2.4rem rgba(67, 84, 196, 0.22);
  color: #fffaf4;
  clip-path: none;
}

a.button--accent.button--primary > span[aria-hidden="true"] {
  display: none;
}

a.button--accent.button--primary:hover {
  background: linear-gradient(112deg, #128fdc 0%, #465fe0 48%, #983eb8 100%);
  box-shadow: 0 1.25rem 2.8rem rgba(67, 84, 196, 0.28);
}

.site-header a.button--accent.button--primary {
  min-width: 10.4rem;
  min-height: 3.15rem;
}

.button--ghost {
  border-color: var(--color-line-strong);
  background: rgba(23, 19, 15, 0.015);
  color: var(--color-text);
}

.button--ghost:hover {
  border-color: rgba(23, 19, 15, 0.45);
  background: rgba(23, 19, 15, 0.055);
}

.mobile-menu {
  display: none;
}

/* Hero */
.section--hero {
  min-height: 100svh;
  padding-top: calc(var(--header-height) + clamp(4rem, 8vw, 8rem));
  padding-bottom: 2rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  z-index: 0;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  opacity: 0.13;
  background: radial-gradient(circle, var(--color-accent), transparent 68%);
  filter: blur(2rem);
  pointer-events: none;
  transform: translate3d(calc(var(--pointer-x, 70vw) - 50%), calc(var(--pointer-y, 20vh) - 50%), 0);
  transition: transform 120ms linear;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(42rem, calc(100svh - 9rem));
  grid-template-columns: minmax(0, 1.06fr) minmax(23rem, 0.94fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 6rem);
}

.hero__copy {
  padding-block: 2rem;
}

.hero h1 {
  max-width: 9.5ch;
  margin-bottom: 2rem;
}

.hero h1 span {
  display: inline-block;
}

.hero h1 .text-accent {
  margin-bottom: -0.12em;
  padding-bottom: 0.12em;
}

.hero__lead {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--color-muted-strong);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 38rem;
  justify-self: end;
  perspective: 1000px;
}

.browser {
  --color-text: #f4efe5;
  --color-muted: #aaa397;
  --color-line: rgba(244, 239, 229, 0.13);
  --color-accent: #a5b4ff;
  --color-focus: #a5b4ff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 19, 15, 0.24);
  border-radius: 1.25rem;
  background: #111315;
  box-shadow: var(--shadow-float);
  transform: rotateY(-5deg) rotateX(2deg);
  transform-origin: center;
}

.browser::before {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.browser__chrome {
  display: grid;
  height: 3rem;
  grid-template-columns: repeat(3, 0.48rem) 1fr auto;
  align-items: center;
  gap: 0.42rem;
  padding-inline: 1rem;
  border-bottom: 1px solid rgba(244, 239, 229, 0.12);
  background: #151719;
}

.browser__chrome > span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #45494b;
}

.browser__address {
  width: min(80%, 16rem);
  margin-inline: auto;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-pill);
  color: #73797b;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  text-align: center;
}

.browser__status {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.46rem;
  letter-spacing: 0.08em;
}

.browser__viewport {
  position: relative;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  background: #e8e5dc;
}

.website-state {
  position: absolute;
  inset: 0;
}

.website-state--before {
  z-index: 1;
  background: #d7d4cb;
  color: #202020;
  animation: before-state 8s var(--ease-standard) infinite;
}

.before-nav {
  display: flex;
  height: 14%;
  align-items: center;
  justify-content: flex-end;
  gap: 6%;
  padding-inline: 7%;
  border-bottom: 2px solid #77736d;
  background: #b7b2aa;
}

.before-nav i {
  width: 11%;
  height: 5px;
  transform: skew(-12deg);
  background: #56514b;
}

.before-content {
  position: relative;
  height: 86%;
  padding: 10% 8%;
}

.before-title {
  width: 70%;
  height: 13%;
  margin-bottom: 6%;
  transform: rotate(-1deg);
  background: #302d2a;
}

.before-copy {
  height: 3.5%;
  margin-bottom: 3%;
  background: #77716a;
}

.before-copy--one {
  width: 82%;
}

.before-copy--two {
  width: 57%;
}

.before-button {
  width: 37%;
  height: 12%;
  margin-top: 8%;
  border: 3px solid #504b45;
  background: #c4bfaf;
}

.before-popup {
  position: absolute;
  right: 4%;
  bottom: 7%;
  display: grid;
  width: 32%;
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(7deg);
  border: 4px solid #462f2d;
  background: #e46458;
  color: #25100f;
  font-size: clamp(0.55rem, 1.3vw, 0.9rem);
  font-weight: 900;
  line-height: 0.88;
  text-align: center;
}

.before-image {
  position: absolute;
  right: 5%;
  top: 12%;
  width: 21%;
  height: 23%;
  transform: rotate(3deg);
  background:
    linear-gradient(45deg, transparent 45%, #8c877f 46% 54%, transparent 55%),
    #a49f97;
}

.website-state--after {
  z-index: 2;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  background:
    radial-gradient(circle at 72% 34%, rgba(165, 180, 255, 0.2), transparent 28%),
    #0c0e0f;
  color: var(--color-text);
  animation: after-state 8s var(--ease-standard) infinite;
}

.after-nav {
  display: grid;
  height: 14%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7%;
  padding-inline: 7%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.after-logo {
  position: relative;
  display: block;
  overflow: hidden;
  width: clamp(2.6rem, 5vw, 3.5rem);
  aspect-ratio: 4.65 / 3.05;
  flex: 0 0 auto;
}

.after-logo img {
  position: absolute;
  top: -59.7%;
  left: -28.2%;
  display: block;
  width: 154.8%;
  max-width: none;
  height: auto;
}

.after-nav > div {
  display: flex;
  justify-content: flex-end;
  gap: 7%;
}

.after-nav i {
  display: block;
  width: clamp(1rem, 3vw, 2rem);
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
}

.after-nav__cta {
  width: clamp(2.4rem, 6vw, 4.4rem);
  height: 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.after-content {
  padding: 14% 8%;
}

.after-kicker {
  display: block;
  width: 23%;
  height: 4px;
  margin-bottom: 8%;
  background: var(--color-accent);
}

.after-title {
  height: 8.5%;
  min-height: 1rem;
  margin-bottom: 3%;
  border-radius: 2px;
  background: #f0f2ec;
}

.after-title--one {
  width: 72%;
}

.after-title--two {
  width: 53%;
}

.after-copy {
  width: 56%;
  height: 4px;
  margin-top: 8%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0.7rem rgba(255, 255, 255, 0.18);
}

.after-actions {
  display: flex;
  gap: 4%;
  margin-top: 15%;
}

.after-actions i {
  width: 24%;
  height: clamp(1.3rem, 4vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
}

.after-actions i:first-child {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.after-metric {
  position: absolute;
  right: 7%;
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: clamp(0.42rem, 1vw, 0.62rem);
  letter-spacing: 0.08em;
}

.after-metric strong {
  color: var(--color-accent);
  font-size: 1.2rem;
}

.state-label {
  position: absolute;
  left: 7%;
  bottom: 5%;
  font-family: var(--font-mono);
  font-size: clamp(0.4rem, 0.9vw, 0.58rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.website-state--before .state-label {
  color: #625d57;
}

.website-state--after .state-label {
  color: #7f8585;
}

.transformation-scan {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: -3%;
  width: 3px;
  opacity: 0;
  background: var(--color-accent);
  box-shadow:
    0 0 1rem var(--color-accent),
    -1rem 0 3rem rgba(165, 180, 255, 0.4);
  animation: scan-state 8s var(--ease-standard) infinite;
}

.transformation-grid {
  position: absolute;
  z-index: 4;
  inset: 0;
  opacity: 0;
  background-image:
    linear-gradient(rgba(165, 180, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 180, 255, 0.1) 1px, transparent 1px);
  background-size: 9% 9%;
  pointer-events: none;
  animation: grid-state 8s ease infinite;
}

@keyframes before-state {
  0%, 23% { opacity: 1; filter: blur(0); transform: scale(1); }
  38%, 72% { opacity: 0.35; filter: blur(2px); transform: scale(1.025); }
  80%, 100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

@keyframes after-state {
  0%, 20% { clip-path: inset(0 100% 0 0); }
  42%, 76% { clip-path: inset(0 0 0 0); }
  86%, 100% { clip-path: inset(0 100% 0 0); }
}

@keyframes scan-state {
  0%, 19% { left: -3%; opacity: 0; }
  22% { opacity: 1; }
  42% { left: 100%; opacity: 1; }
  46%, 82% { left: 100%; opacity: 0; }
  85% { opacity: 1; }
  100% { left: -3%; opacity: 0; }
}

@keyframes grid-state {
  0%, 18%, 48%, 100% { opacity: 0; }
  26%, 39% { opacity: 0.42; }
}

/* Shared section headings */
.section-heading {
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-heading h2 {
  max-width: 13ch;
  margin-bottom: 0;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 8rem);
}

.section-heading--split > p,
.section-heading--split > div:last-child p {
  max-width: 34rem;
  margin-bottom: 1.4rem;
  color: var(--color-muted-strong);
  font-size: 1.06rem;
}

/* Problems */
.section--problems {
  background: var(--color-surface-light);
  color: var(--color-text-dark);
}

.section--problems .micro-label {
  color: #5b554d;
}

.section-heading--problems {
  display: block;
}

.section-heading--problems h2 {
  max-width: 15ch;
}

.problem-title__line {
  display: block;
}

.problem-title__line--negative {
  color: var(--color-text-dark);
}

.problem-title__line--positive {
  margin-left: 0.62em;
  margin-bottom: -0.14em;
  padding-bottom: 0.14em;
  background: linear-gradient(112deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.problem-list {
  position: relative;
}

.problem-list::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  transform-origin: left;
  background: rgba(11, 12, 13, 0.18);
  content: "";
}

.problem-row {
  position: relative;
  display: grid;
  grid-template-columns: 0.7fr 1.15fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3.6rem);
  border-bottom: 1px solid rgba(11, 12, 13, 0.18);
}

.problem-row__label {
  display: block;
}

.problem-row h3 {
  margin-bottom: 0;
}

.problem-row p {
  margin-bottom: 0;
  color: #353a38;
  font-size: 0.95rem;
}

.problem-row__solution {
  padding-right: 2.5rem;
}

.problem-row__solution p {
  color: #111412;
  font-weight: 620;
}

.problem-row__problem .micro-label,
.problem-row__problem p {
  color: var(--color-text-dark);
}

.problem-row__solution .micro-label,
.problem-row__solution p {
  background: linear-gradient(112deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

@media (forced-colors: active) {
  .problem-title__line--positive,
  .problem-row__solution .micro-label,
  .problem-row__solution p {
    background: none;
    color: CanvasText;
  }
}

.problem-row__arrow {
  position: absolute;
  right: 0;
  top: 50%;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  transform: translateY(-50%) rotate(-45deg);
  border-radius: 50%;
  background: var(--color-accent);
  font-weight: 800;
}

html.js:where(.has-reveal-controller) .problem-heading-reveal[data-reveal],
html.js:where(.has-reveal-controller) .problem-list[data-reveal] {
  opacity: 1;
  transform: none;
}

html.js:where(.has-reveal-controller) .problem-heading-reveal[data-reveal] > * {
  opacity: 0;
  transform: translateY(1.4rem);
  clip-path: inset(0 0 100% 0);
  transition:
    opacity 520ms var(--ease-out),
    transform 760ms var(--ease-out),
    clip-path 760ms var(--ease-out);
}

html.js:where(.has-reveal-controller) .problem-heading-reveal[data-reveal] h2,
html.js:where(.has-reveal-controller) .problem-heading-reveal[data-reveal].is-visible h2 {
  clip-path: none;
  transition-delay: 110ms;
}

html.js:where(.has-reveal-controller) .problem-heading-reveal[data-reveal].is-visible > * {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}

html.js:where(.has-reveal-controller) .problem-list[data-reveal]::before {
  transform: scaleX(0);
  transition: transform 850ms var(--ease-out);
}

html.js:where(.has-reveal-controller) .problem-list[data-reveal] .problem-row {
  opacity: 0;
  transform: translateY(1.6rem);
  clip-path: inset(0 0 35% 0);
  transition:
    opacity 540ms var(--ease-out),
    transform 780ms var(--ease-out),
    clip-path 780ms var(--ease-out);
}

html.js:where(.has-reveal-controller) .problem-list[data-reveal] .problem-row:nth-child(1) {
  transition-delay: 100ms;
}

html.js:where(.has-reveal-controller) .problem-list[data-reveal] .problem-row:nth-child(2) {
  transition-delay: 240ms;
}

html.js:where(.has-reveal-controller) .problem-list[data-reveal] .problem-row:nth-child(3) {
  transition-delay: 380ms;
}

html.js:where(.has-reveal-controller) .problem-list[data-reveal].is-visible::before {
  transform: scaleX(1);
}

html.js:where(.has-reveal-controller) .problem-list[data-reveal].is-visible .problem-row {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}

/* Services */
.section--services {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(165, 180, 255, 0.12);
  background:
    radial-gradient(circle at 50% 112%, rgba(63, 99, 217, 0.23), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(165, 180, 255, 0.07), transparent 28%),
    #11100e;
  color: #f5f0e7;
}

.section--services::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255, 255, 255, 0.018) 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%);
  content: "";
  pointer-events: none;
}

.section--services .section-heading,
.services-cinema {
  position: relative;
  z-index: 1;
}

.section--services .eyebrow {
  color: #b8a98f;
}

.section-heading--services h2 {
  max-width: 13ch;
  color: #f5f0e7;
}

.services-filmstrip {
  display: flex;
  min-height: clamp(21rem, 44vh, 28rem);
  align-items: stretch;
  gap: clamp(0.55rem, 1vw, 0.85rem);
}

.services-cinema__mobile-cue {
  display: none;
}

.service-frame {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 0.72 1 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.15rem, 1.7vw, 1.65rem);
  overflow: hidden;
  border: 1px solid rgba(245, 240, 231, 0.11);
  border-radius: var(--radius-lg);
  background: #1a1814;
  color: rgba(245, 240, 231, 0.54);
  isolation: isolate;
  transition:
    flex-grow 850ms var(--ease-out),
    transform 850ms var(--ease-out),
    border-color 500ms ease,
    background-color 500ms ease,
    color 500ms ease,
    box-shadow 850ms var(--ease-out);
}

.service-frame.is-active {
  flex-grow: 1.55;
  transform: translateY(-0.3rem);
  border-color: rgba(165, 180, 255, 0.38);
  background: var(--color-surface-light);
  box-shadow: 0 1.4rem 4.5rem rgba(0, 0, 0, 0.28);
  color: var(--color-text-dark);
}

.service-frame__copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 2rem;
}

.service-frame__category {
  margin-bottom: 0.65rem;
  color: #a5b4ff;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-frame.is-active .service-frame__category {
  color: var(--color-accent);
}

.service-frame h3 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.35rem);
  line-height: 0.98;
  transition:
    font-size 850ms var(--ease-out),
    color 500ms ease;
}

.service-frame:not(.is-active) h3 {
  color: rgba(245, 240, 231, 0.78);
  font-size: clamp(1.2rem, 1.65vw, 1.7rem);
}

.service-frame:not(.is-active) {
  cursor: pointer;
}

.service-frame[role="button"]:hover {
  border-color: rgba(165, 180, 255, 0.3);
}

.service-frame[role="button"]:focus-visible {
  outline: 2px solid #a5b4ff;
  outline-offset: 3px;
}

.service-frame__details {
  position: relative;
  z-index: 2;
  display: grid;
  max-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1rem, 2vw, 2rem);
  overflow: hidden;
  opacity: 0;
  transform: translateY(1rem);
  transition:
    max-height 850ms var(--ease-out),
    opacity 450ms ease,
    transform 850ms var(--ease-out);
}

.service-frame.is-active .service-frame__details {
  max-height: 13rem;
  margin-top: clamp(1.25rem, 2.2vh, 2rem);
  opacity: 1;
  transform: translateY(0);
  transition-delay: 100ms;
}

.service-frame__offer-block {
  min-width: 0;
}

.service-frame__offer-label {
  margin: 0 0 0.55rem;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-frame__details ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-frame__details li {
  position: relative;
  padding: 0.58rem 0.75rem 0.58rem 0.9rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-dark);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.service-frame__details li::before {
  position: absolute;
  top: 0.92rem;
  left: 0;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--color-accent);
  content: "";
}

.service-frame__details a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text-dark);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.service-frame__details a:hover {
  color: var(--color-accent);
}

.service-frame__watermark {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(28rem, 72%);
  height: auto;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -48%, 0) scale(0.96);
  transition:
    opacity 700ms ease 120ms,
    transform 1000ms var(--ease-out);
}

.service-frame.is-active .service-frame__watermark {
  opacity: 0.055;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.pill {
  display: inline-flex;
  min-height: 1.7rem;
  align-items: center;
  padding-inline: 0.75rem;
  border: 1px solid rgba(165, 180, 255, 0.35);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pill--muted {
  border-color: var(--color-line-strong);
  color: var(--color-muted);
}

.card-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-text);
  font-size: 0.86rem;
  font-weight: 700;
}

.card-link:hover {
  color: var(--color-accent);
}

.card-link--disabled {
  color: var(--color-muted);
  cursor: default;
}

/* Process */
.section--process {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-line);
  background:
    radial-gradient(circle at 88% 18%, rgba(63, 99, 217, 0.1), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--color-bg-soft);
}

.section--process::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(63, 99, 217, 0.12) 0.7px, transparent 0.7px);
  background-size: 1.8rem 1.8rem;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.process-roadmap-layout {
  position: relative;
  z-index: 1;
}

.process-roadmap__heading {
  margin-bottom: clamp(0.5rem, 1.2vh, 1rem);
}

.process-roadmap__heading h2 {
  max-width: 18ch;
  margin-bottom: 0;
}

.process-roadmap {
  position: relative;
  display: grid;
  min-height: clamp(22rem, 42vh, 28rem);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-roadmap::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 2.25rem;
  left: 2.25rem;
  height: 2px;
  background: var(--color-line-strong);
  content: "";
}

.process-roadmap::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 2.25rem;
  left: 2.25rem;
  height: 2px;
  background: linear-gradient(90deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
  content: "";
  transform-origin: left center;
}

.process-roadmap__step {
  --process-step-fill: var(--color-text-dark);
  --process-step-border: var(--process-step-fill);
  --process-step-foreground: var(--color-bg-soft);
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) 4.5rem minmax(0, 1fr);
  padding-inline: clamp(0.55rem, 1.2vw, 1.2rem);
}

.process-roadmap__node {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  grid-row: 2;
  place-items: center;
  align-self: center;
  justify-self: center;
  border: 1px solid rgba(63, 99, 217, 0.45);
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
}

.process-roadmap__step--finish {
  --process-step-fill: linear-gradient(112deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
  --process-step-border: #3f63d9;
  --process-step-foreground: #fffaf4;
}

.process-roadmap__step--finish .process-roadmap__node {
  border-color: var(--process-step-border);
  background: var(--process-step-fill);
  color: var(--process-step-foreground);
}

.process-roadmap__content {
  width: 100%;
  max-width: 15rem;
  align-self: end;
  justify-self: center;
  padding-bottom: clamp(1rem, 2vh, 1.7rem);
  text-align: center;
}

.process-roadmap__step:nth-child(even) .process-roadmap__content {
  grid-row: 3;
  align-self: start;
  padding-top: clamp(1rem, 2vh, 1.7rem);
  padding-bottom: 0;
}

.process-roadmap__content h3 {
  margin: 0;
  font-size: clamp(1.18rem, 1.65vw, 1.65rem);
  line-height: 1.03;
}

html.js:where(.has-reveal-controller) .process-roadmap[data-reveal] {
  opacity: 1;
  transform: none;
}

html.js:where(.has-reveal-controller) .process-roadmap[data-reveal]::after {
  transform: scaleX(0);
  transition: transform 6000ms linear;
}

html.js:where(.has-reveal-controller) .process-roadmap[data-reveal] .process-roadmap__step {
  --process-step-delay: 600ms;
}

html.js:where(.has-reveal-controller) .process-roadmap[data-reveal] .process-roadmap__node {
  transition:
    border-color 450ms ease,
    background-color 450ms ease,
    color 450ms ease,
    transform 600ms var(--ease-out);
  transition-delay: var(--process-step-delay);
}

html.js:where(.has-reveal-controller) .process-roadmap[data-reveal] .process-roadmap__content {
  opacity: 0.24;
  transform: translateY(0.6rem);
  transition:
    opacity 600ms ease,
    transform 750ms var(--ease-out);
  transition-delay: calc(var(--process-step-delay) + 180ms);
}

html.js:where(.has-reveal-controller) .process-roadmap[data-reveal].is-visible::after {
  transform: scaleX(1);
}

html.js:where(.has-reveal-controller) .process-roadmap[data-reveal].is-visible .process-roadmap__node {
  border-color: var(--process-step-border);
  background: var(--process-step-fill);
  color: var(--process-step-foreground);
  transform: scale(1.02);
}

html.js:where(.has-reveal-controller) .process-roadmap[data-reveal].is-visible .process-roadmap__content {
  opacity: 1;
  transform: translateY(0);
}

html.js:where(.has-reveal-controller) .process-roadmap[data-reveal] .process-roadmap__step:nth-child(1) { --process-step-delay: 600ms; }
html.js:where(.has-reveal-controller) .process-roadmap[data-reveal] .process-roadmap__step:nth-child(2) { --process-step-delay: 1800ms; }
html.js:where(.has-reveal-controller) .process-roadmap[data-reveal] .process-roadmap__step:nth-child(3) { --process-step-delay: 3000ms; }
html.js:where(.has-reveal-controller) .process-roadmap[data-reveal] .process-roadmap__step:nth-child(4) { --process-step-delay: 4200ms; }
html.js:where(.has-reveal-controller) .process-roadmap[data-reveal] .process-roadmap__step:nth-child(5) { --process-step-delay: 5400ms; }

/* Projects */
.section--projects {
  background: var(--color-surface-light);
  color: var(--color-text-dark);
}

.section--projects .eyebrow,
.section--projects .section-heading--split > div:last-child p {
  color: #5b554d;
}

.section--projects .text-link {
  color: var(--color-text-dark);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid rgba(11, 12, 13, 0.16);
  border-radius: var(--radius-lg);
  background: #f7f2e9;
}

.project-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
}

.project-card__visual {
  min-height: 30rem;
}

.project-card--wide .project-card__visual {
  min-height: 37rem;
}

.project-card__body {
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 3vw, 2.6rem);
}

.project-card__body > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: auto;
}

.project-card__body .pill {
  border-color: rgba(11, 12, 13, 0.17);
  color: #454038;
}

.project-card__body h3 {
  margin-bottom: 0.8rem;
}

.project-card__body p {
  margin-bottom: 1.5rem;
  color: #575148;
}

.project-card__body .card-link {
  color: var(--color-text-dark);
}

.project-visual {
  position: relative;
  overflow: hidden;
}

.project-visual--hair {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 30%, rgba(199, 163, 105, 0.22), transparent 22%),
    linear-gradient(135deg, #11100f, #27231f);
}

.project-visual__frame {
  display: grid;
  width: 52%;
  aspect-ratio: 0.72;
  place-items: center;
  border: 1px solid rgba(199, 163, 105, 0.5);
  color: #c7a369;
}

.project-visual__frame span {
  font-family: Georgia, serif;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -0.12em;
}

.project-visual__frame div {
  width: 1px;
  height: 18%;
  background: #c7a369;
}

.project-visual__frame p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
}

.project-visual__note {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(199, 163, 105, 0.35);
  color: #c7a369;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.09em;
}

.project-visual--placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(11, 12, 13, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 12, 13, 0.08) 1px, transparent 1px),
    #d3c3a8;
  background-size: 2.8rem 2.8rem;
}

.project-visual--placeholder > span {
  color: #0b0c0d;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.1em;
}

.project-visual--placeholder i {
  position: absolute;
  width: 25%;
  height: 1px;
  background: #0b0c0d;
}

.project-visual--placeholder i:nth-of-type(1) { transform: rotate(45deg); }
.project-visual--placeholder i:nth-of-type(2) { transform: rotate(-45deg); }
.project-visual--placeholder i:nth-of-type(3) { width: 42%; transform: rotate(90deg); }

.project-visual--alt {
  --color-accent: #a5b4ff;
  --color-focus: #a5b4ff;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 20%, rgba(255,255,255,0.12) 20.5% 21%, transparent 21.5% 35%, rgba(255,255,255,0.12) 35.5% 36%, transparent 36.5%),
    #171a1d;
}

.project-visual--alt > span {
  color: #f4efe5;
}

.project-visual--alt i {
  background: var(--color-accent);
}

/* Team preview */
.team-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
}

.team-preview__copy h2 {
  max-width: 12ch;
  margin-bottom: 1.7rem;
}

.team-preview__copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--color-muted-strong);
  font-size: 1.05rem;
}

.team-preview__portraits {
  position: relative;
  display: grid;
  min-height: 38rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.portrait-placeholder,
.profile-card__portrait {
  display: flex;
  min-height: 31rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.3rem;
  border: 1px solid rgba(244, 239, 229, 0.13);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 35%, rgba(165, 180, 255, 0.17), transparent 18%),
    linear-gradient(155deg, #1b1e20, #0d0f10);
  color: #aaa397;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portrait-placeholder--offset {
  margin-top: 5rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.1), transparent 18%),
    linear-gradient(155deg, #25282a, #101213);
}

.portrait-placeholder p {
  margin-bottom: 0;
}

.team-preview__badge {
  position: absolute;
  right: 42%;
  bottom: 0;
  display: grid;
  width: 8.5rem;
  aspect-ratio: 1;
  place-items: center;
  padding: 1rem;
  transform: rotate(-5deg);
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-dark);
  text-align: center;
}

.team-preview__badge strong {
  font-size: 2.6rem;
  line-height: 0.7;
}

.team-preview__badge span {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Interior page hero */
.page-hero {
  min-height: 70svh;
  padding-top: calc(var(--header-height) + clamp(5rem, 11vw, 10rem));
  border-bottom: 1px solid var(--color-line);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 9rem);
}

.page-hero__grid > *,
.service-detail__grid > *,
.project-start__grid > *,
.direct-contact__grid > *,
.legal-page__grid > * {
  min-width: 0;
}

.page-hero h1 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: clamp(3.6rem, 7.4vw, 7.5rem);
}

.page-hero__aside {
  padding-bottom: 0.7rem;
}

.page-hero__aside > p {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--color-muted-strong);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.page--leistungen {
  background:
    radial-gradient(circle at 12% -10%, rgba(184, 154, 106, 0.08), transparent 31rem),
    #faf5ed;
}

.leistungen-story {
  --story-intro-opacity: 1;
  --story-intro-scale: 1;
  --story-intro-y: 0rem;
  --story-video-opacity: 1;
  --story-video-scale: 1;
  --story-video-y: 0rem;
  --story-glow-opacity: 0.7;
  position: relative;
  isolation: isolate;
  color: #000;
}

.leistungen-story__sticky {
  position: relative;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.78), transparent 38rem),
    #faf5ed;
}

.leistungen-story__scene {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  padding: calc(var(--header-height) + clamp(2.5rem, 6vh, 5rem)) 0 clamp(3rem, 7vh, 6rem);
}

.leistungen-story__scene--intro {
  z-index: 2;
}

.leistungen-story__scene--showcase {
  z-index: 1;
}

.leistungen-story__scene--showcase::before {
  position: absolute;
  inset: 12% 5%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 48%, rgba(21, 136, 212, 0.12), transparent 38%),
    radial-gradient(circle at 64% 52%, rgba(139, 62, 174, 0.12), transparent 42%);
  content: "";
  filter: blur(2.5rem);
  opacity: var(--story-glow-opacity);
  pointer-events: none;
}

.leistungen-story__intro-inner,
.leistungen-story__showcase-inner {
  position: relative;
  z-index: 1;
}

.leistungen-story__intro-inner {
  display: grid;
  justify-items: center;
}

.leistungen-hero__copy {
  position: relative;
  z-index: 2;
  width: min(100%, 84rem);
  text-align: center;
}

.leistungen-story h1 {
  max-width: none;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(4rem, 7.2vw, 7.8rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.96;
  position: relative;
  -webkit-text-stroke: 0;
}

.leistungen-story h1 span {
  display: block;
  white-space: nowrap;
}

.leistungen-story h1 span.text-accent {
  padding-bottom: 0.13em;
  margin-bottom: -0.13em;
}

.leistungen-hero__caption {
  display: grid;
  justify-items: center;
  gap: clamp(1.1rem, 2.4vh, 2rem);
  margin-top: clamp(2rem, 4.6vh, 3.8rem);
}

.leistungen-hero__caption > span {
  display: block;
  width: 4.8rem;
  height: 1px;
  background: linear-gradient(90deg, #1588d4 0%, #4b5ee0 54%, #8b3eae 100%);
  box-shadow: 0 0 0.85rem rgba(75, 94, 224, 0.2);
}

.leistungen-hero__caption p {
  margin: 0;
  color: #71685e;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  line-height: 1.28;
  text-align: center;
}

.leistungen-hero__caption p span {
  display: inline-block;
  transform-origin: left center;
}

.leistungen-hero__caption p span:nth-of-type(2) {
  font-weight: 650;
  transform: none;
}

.leistungen-story__showcase-inner {
  width: min(92vw, calc(150vh - 12rem), 84rem);
  width: min(92vw, calc(150svh - 12rem), 84rem);
  margin-inline: auto;
}

.leistungen-story.is-scroll-ready {
  --story-video-opacity: 0;
  --story-video-scale: 0.86;
  --story-video-y: 4.5rem;
  --story-glow-opacity: 0;
  height: 250vh;
  height: 250svh;
}

.leistungen-story.is-scroll-ready .leistungen-story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
}

.leistungen-story.is-scroll-ready .leistungen-story__scene {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.leistungen-story.is-scroll-ready .leistungen-story__intro-inner {
  opacity: var(--story-intro-opacity);
  transform: translate3d(0, var(--story-intro-y), 0) scale(var(--story-intro-scale));
  transform-origin: center center;
  will-change: opacity, transform;
}

.leistungen-story.is-scroll-ready .leistungen-story__scene--showcase {
  opacity: var(--story-video-opacity);
  will-change: opacity;
}

.leistungen-story.is-scroll-ready .leistungen-story__showcase-inner {
  transform: translate3d(0, var(--story-video-y), 0) scale(var(--story-video-scale));
  transform-origin: center center;
  will-change: transform;
}

.leistungen-story.is-scroll-ready:not(.is-video-visible) .leistungen-story__scene--showcase,
.leistungen-story.is-scroll-ready.is-intro-hidden .leistungen-story__scene--intro {
  visibility: hidden;
}

.leistungen-selection {
  position: relative;
  z-index: 5;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(1rem, 2.5vw, 2.5rem);
  background: #faf5ed;
}

.leistungen-showreel {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f7f4ee;
}

.leistungen-showreel__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 19, 15, 0.2);
  border-radius: clamp(0.9rem, 1.25vw, 1.35rem);
  background: #070a12;
  box-shadow:
    0 2.4rem 6rem rgba(56, 43, 28, 0.2),
    0 0.3rem 1.1rem rgba(23, 19, 15, 0.1);
  isolation: isolate;
}

.leistungen-showreel__frame::before {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2188fd 28%, #8333fd 72%, transparent);
  content: "";
  opacity: 0.92;
  pointer-events: none;
}

.leistungen-showreel__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05070c;
}

.leistungen-showreel__media video {
  display: block;
  width: 100%;
  height: 100%;
  background: #05070c;
  object-fit: contain;
}

.leistungen-showreel__start {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  border: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(33, 136, 253, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.02) 42%, rgba(5, 7, 12, 0.56) 100%);
  color: #fff;
  text-align: left;
  transition:
    opacity 350ms var(--ease-standard),
    visibility 350ms var(--ease-standard),
    background-color 350ms var(--ease-standard);
}

.leistungen-showreel__start:hover {
  background:
    radial-gradient(circle at 50% 50%, rgba(131, 51, 253, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.02) 35%, rgba(5, 7, 12, 0.64) 100%);
}

.leistungen-showreel__play {
  display: grid;
  width: clamp(3.8rem, 5.2vw, 5.5rem);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(33, 136, 253, 0.96), rgba(131, 51, 253, 0.96));
  box-shadow:
    0 1.1rem 3rem rgba(5, 7, 12, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
}

.leistungen-showreel__play svg {
  width: 34%;
  fill: currentColor;
  transform: translateX(7%);
}

.leistungen-showreel__start:hover .leistungen-showreel__play,
.leistungen-showreel__start:focus-visible .leistungen-showreel__play {
  box-shadow:
    0 1.3rem 3.4rem rgba(5, 7, 12, 0.52),
    0 0 0 0.42rem rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transform: scale(1.055);
}

.leistungen-showreel__start-copy {
  position: absolute;
  top: calc(50% + clamp(2.9rem, 4.3vw, 4.5rem));
  left: 50%;
  display: grid;
  width: max-content;
  gap: 0.2rem;
  filter: drop-shadow(0 0.2rem 0.65rem rgba(0, 0, 0, 0.55));
  text-align: center;
  transform: translateX(-50%);
}

.leistungen-showreel__start-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: clamp(0.52rem, 0.62vw, 0.66rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leistungen-showreel__start-copy strong {
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.leistungen-showreel.has-started .leistungen-showreel__start {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.leistungen-showreel__controls {
  position: relative;
  z-index: 6;
  display: grid;
  min-height: 3.5rem;
  grid-template-columns: auto minmax(5rem, 1fr) auto;
  align-items: center;
  gap: clamp(0.35rem, 0.8vw, 0.7rem);
  padding: 0.55rem clamp(0.65rem, 1.15vw, 1rem);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, #10131c, #090b12);
}

.leistungen-showreel__controls[hidden] {
  display: none;
}

.leistungen-showreel__controls button {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  transition: color 220ms var(--ease-standard), background-color 220ms var(--ease-standard), border-color 220ms var(--ease-standard);
}

.leistungen-showreel__controls button:hover,
.leistungen-showreel__controls button:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.leistungen-showreel__controls button:first-child {
  background: linear-gradient(135deg, #2188fd, #8333fd);
  color: #fff;
}

.leistungen-showreel__controls button svg {
  width: 1rem;
  fill: currentColor;
}

.leistungen-showreel__controls .icon-pause,
.leistungen-showreel.is-playing .leistungen-showreel__controls .icon-play {
  display: none;
}

.leistungen-showreel.is-playing .leistungen-showreel__controls .icon-pause {
  display: block;
}

.leistungen-showreel__controls input[type="range"] {
  --showreel-progress: 0%;
  width: 100%;
  height: 1.2rem;
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.leistungen-showreel__controls input[type="range"]::-webkit-slider-runnable-track {
  height: 0.22rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #2188fd 0%, #8333fd var(--showreel-progress), rgba(255, 255, 255, 0.22) var(--showreel-progress), rgba(255, 255, 255, 0.22) 100%);
}

.leistungen-showreel__controls input[type="range"]::-webkit-slider-thumb {
  width: 0.78rem;
  height: 0.78rem;
  margin-top: -0.28rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #5e55e8;
  box-shadow: 0 0 0 0.22rem rgba(94, 85, 232, 0.18);
  appearance: none;
}

.leistungen-showreel__controls input[type="range"]::-moz-range-track {
  height: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.leistungen-showreel__controls input[type="range"]::-moz-range-progress {
  height: 0.22rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #2188fd, #8333fd);
}

.leistungen-showreel__controls input[type="range"]::-moz-range-thumb {
  width: 0.78rem;
  height: 0.78rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #5e55e8;
}

.leistungen-showreel__controls input[type="range"]:focus-visible {
  filter: drop-shadow(0 0 0.3rem rgba(94, 85, 232, 0.8));
}

.leistungen-showreel__frame:fullscreen,
.leistungen-showreel__frame:-webkit-full-screen {
  display: grid;
  width: 100vw;
  height: 100vh;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.leistungen-showreel__frame:fullscreen::before,
.leistungen-showreel__frame:-webkit-full-screen::before {
  display: none;
}

.leistungen-showreel__frame:fullscreen .leistungen-showreel__media,
.leistungen-showreel__frame:-webkit-full-screen .leistungen-showreel__media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: #000;
}

.leistungen-showreel__frame:fullscreen video,
.leistungen-showreel__frame:-webkit-full-screen video,
.leistungen-showreel__media video:fullscreen,
.leistungen-showreel__media video:-webkit-full-screen {
  width: 100vw;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.leistungen-jump {
  position: relative;
  z-index: 3;
  width: min(100%, 58rem);
  grid-column: 1 / -1;
  margin-inline: auto;
  color: #15131d;
}

.leistungen-jump__label {
  margin: 0 0 0.72rem;
  color: #71685e;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.leistungen-jump__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.4rem;
  border: 1px solid rgba(23, 19, 15, 0.16);
  border-radius: 1.3rem;
  background: rgba(255, 250, 244, 0.86);
  box-shadow:
    0 1.5rem 4rem rgba(54, 40, 25, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(1.1rem);
}

.leistungen-jump__links a {
  position: relative;
  display: grid;
  min-height: 4rem;
  place-items: center;
  overflow: hidden;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.95rem;
  background: transparent;
  color: #756e64;
  font-size: clamp(0.78rem, 0.92vw, 0.9rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-align: center;
  transition:
    color 280ms var(--ease-standard),
    background-color 280ms var(--ease-standard),
    box-shadow 300ms var(--ease-standard),
    transform 300ms var(--ease-out);
}

.leistungen-jump__links a::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(112deg, #1588d4 0%, #4b5ee0 52%, #8b3eae 100%);
  content: "";
  opacity: 0;
  transition: opacity 300ms var(--ease-standard);
}

.leistungen-jump__links a:hover,
.leistungen-jump__links a:focus-visible {
  background: rgba(75, 94, 224, 0.08);
  color: #15131d;
}

.leistungen-jump__links a.is-active {
  color: #fff;
  box-shadow: 0 0.7rem 1.7rem rgba(75, 94, 224, 0.24);
}

.leistungen-jump__links a.is-active::before {
  opacity: 1;
}

.leistungen-jump__links a > span {
  position: relative;
  z-index: 1;
}

.page-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin-bottom: 0;
  list-style: none;
}

.page-hero__facts li {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Service detail pages */
.service-detail {
  border-bottom: 1px solid var(--color-line);
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.page--leistungen .service-detail {
  padding-top: clamp(2.5rem, 4vw, 4.5rem);
}

.service-detail--muted {
  background: var(--color-bg-soft);
}

.service-detail__grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(3rem, 9vw, 10rem);
}

.service-detail__sticky {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
}

.service-detail__sticky h2 {
  margin-bottom: 1.3rem;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.service-detail__sticky > p:last-child {
  max-width: 25rem;
  color: var(--color-muted);
}

.service-detail__content {
  border-top: 1px solid var(--color-line);
}

.detail-card {
  display: grid;
  min-height: 13rem;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--color-line);
}

.detail-card h3 {
  margin-bottom: 0;
}

.detail-card p {
  max-width: 33rem;
  margin-bottom: 0;
  color: var(--color-muted-strong);
}

.section--included {
  background: var(--color-surface-light);
  color: var(--color-text-dark);
}

.section--included .eyebrow,
.section--included .section-heading--split > p {
  color: #5b554d;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.compact-grid article {
  min-height: 18rem;
  padding: 2rem;
  border-right: 1px solid currentColor;
}

.compact-grid article:last-child {
  border-right: 0;
}

.compact-grid article > span {
  display: block;
  margin-bottom: 5rem;
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.compact-grid h3 {
  margin-bottom: 0.8rem;
}

.compact-grid p {
  margin-bottom: 0;
  opacity: 0.68;
  font-size: 0.9rem;
}

.page--leistungen .compact-grid article {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  justify-content: flex-start;
}

.compact-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  color: var(--color-text);
}

.compact-grid--three article > span {
  color: var(--color-accent);
}

/* Project cases */
.case-framework {
  background: var(--color-surface-light);
  color: var(--color-text-dark);
}

.case-framework .eyebrow,
.case-framework .section-heading--split > p {
  color: #5b554d;
}

.case-list {
  background: var(--color-bg-soft);
}

.case-stack {
  display: grid;
  gap: 1.5rem;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.case-card--reverse .case-card__visual {
  order: 2;
}

.case-card__visual {
  min-height: 38rem;
}

.case-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
}

.case-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 4rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-card h3 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.case-card__content > p {
  color: var(--color-muted-strong);
}

.case-card dl {
  margin: 2rem 0 0;
  border-top: 1px solid var(--color-line);
}

.case-card dl div {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.8rem;
}

.case-card dt {
  color: var(--color-muted);
}

.case-card dd {
  margin: 0;
}

/* Team page */
.team-principle {
  border-bottom: 1px solid var(--color-line);
}

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

.profile-card {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.profile-card__portrait {
  min-height: 38rem;
  border: 0;
  border-radius: 0;
}

.profile-card__portrait--alt {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.11), transparent 18%),
    linear-gradient(155deg, #292c2e, #111315);
}

.profile-card__body {
  padding: 2rem;
}

.profile-card__body h3 {
  margin-bottom: 0.8rem;
}

.profile-card__body p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.collaboration {
  border-top: 1px solid var(--color-line);
  background: var(--color-bg-soft);
}

/* Project form */
.project-start {
  background: var(--color-surface-light);
  color: var(--color-text-dark);
}

.project-start__grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.48fr) minmax(0, 1.52fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.project-start__aside {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
}

.project-start__aside .eyebrow {
  color: #5b554d;
}

.project-start__aside h2 {
  max-width: 10ch;
  margin-bottom: 2.5rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.form-roadmap {
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
}

.form-roadmap li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid rgba(11, 12, 13, 0.16);
  color: #747a77;
  transition: color 200ms ease;
}

.form-roadmap li.is-active,
.form-roadmap li.is-complete {
  color: var(--color-text-dark);
}

.form-roadmap li.is-active span {
  background: var(--color-accent);
  color: #fff;
}

.form-roadmap li.is-complete span {
  background: var(--color-accent-strong);
  color: #fff;
}

.form-roadmap span {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid rgba(11, 12, 13, 0.2);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.55rem;
}

.form-roadmap p {
  margin-bottom: 0;
  font-size: 0.84rem;
}

.project-start__privacy {
  max-width: 18rem;
  color: #6b645a;
  font-size: 0.78rem;
}

.project-form {
  position: relative;
  min-height: 43rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid rgba(11, 12, 13, 0.15);
  border-radius: var(--radius-lg);
  background: #faf6ee;
  box-shadow: 0 2rem 6rem rgba(11, 12, 13, 0.09);
}

.form-progress {
  height: 3px;
  margin-bottom: 1.2rem;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(11, 12, 13, 0.12);
}

.form-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--color-text-dark);
  transition: width 400ms var(--ease-out);
}

.form-step-count {
  margin-bottom: 3.5rem;
  color: #6d665c;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-align: right;
}

.form-step {
  padding: 0;
  margin: 0;
  border: 0;
}

.form-step[hidden] {
  display: none;
}

.form-step legend {
  width: 100%;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.form-step__intro {
  max-width: 42rem;
  margin-bottom: 2.5rem;
  color: #626966;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.choice-card {
  position: relative;
  display: grid;
  min-height: 10rem;
  align-content: end;
  padding: 1.2rem;
  border: 1px solid rgba(11, 12, 13, 0.16);
  border-radius: var(--radius-md);
  background: #f3ede3;
  cursor: pointer;
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    transform 220ms var(--ease-out);
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 12, 13, 0.4);
}

.choice-card:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-selection-bg);
}

.choice-card:has(input:checked) > span,
.choice-card:has(input:checked) small {
  color: #33436f;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-card input:focus-visible + span {
  outline: 2px solid var(--color-text-dark);
  outline-offset: 4px;
}

.choice-card > span {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #686e6b;
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.choice-card strong {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.choice-card small {
  color: #5e6561;
  font-size: 0.75rem;
}

.upload-zone {
  display: grid;
  min-height: 16rem;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px dashed rgba(11, 12, 13, 0.35);
  border-radius: var(--radius-md);
  background: #f4eee4;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 200ms ease,
    background-color 200ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  border-color: var(--color-text-dark);
  background: var(--color-accent-soft);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-zone__icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--color-text-dark);
  color: var(--color-accent-light);
  font-size: 1.4rem;
}

.upload-zone small {
  max-width: 34rem;
  color: #68706c;
  font-size: 0.73rem;
}

.file-list {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #ebe3d7;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.field-grid--one {
  grid-template-columns: 1fr;
}

.field--full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field > span {
  font-size: 0.78rem;
  font-weight: 650;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 3.3rem;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid rgba(11, 12, 13, 0.25);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text-dark);
  transition: border-color 180ms ease;
}

.field textarea {
  min-height: auto;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--color-text-dark);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8b918e;
}

.field :user-invalid {
  border-color: var(--color-danger);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.8rem;
  margin-top: 2rem;
  color: #555c58;
  font-size: 0.78rem;
}

.consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.12rem;
  accent-color: var(--color-text-dark);
}

.consent a {
  color: var(--color-text-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.form-status.is-error {
  color: #b3261e;
}

.form-status.is-success {
  color: #276317;
}

.form-fallback {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--color-text-dark);
  background: rgba(11, 12, 13, 0.06);
  color: #514b43;
  font-size: 0.82rem;
}

.form-fallback a {
  color: var(--color-text-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form-fallback a:focus-visible {
  outline-color: var(--color-text-dark);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 2rem;
}

.project-form .button--ghost {
  border-color: rgba(11, 12, 13, 0.25);
  color: var(--color-text-dark);
}

.project-form .button--accent {
  background: var(--color-accent);
  color: #fff;
}

.project-form .button--accent:hover {
  background: var(--color-accent-strong);
}

/* Contact */
.contact-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-option {
  display: flex;
  min-height: 34rem;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.contact-option--primary {
  background:
    radial-gradient(circle at 85% 16%, rgba(165, 180, 255, 0.15), transparent 25%),
    var(--color-surface);
}

.contact-option__number {
  margin-bottom: auto;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.contact-option h3 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 4.5vw, 4.7rem);
}

.contact-option > p:not(.eyebrow) {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--color-muted-strong);
}

.direct-contact {
  border-top: 1px solid var(--color-line);
  background: var(--color-bg-soft);
}

.direct-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.direct-contact__grid h2 {
  margin-bottom: 1.3rem;
}

.direct-contact__grid > div > p:last-child {
  max-width: 30rem;
  color: var(--color-muted);
}

.contact-data {
  margin: 0;
  border-top: 1px solid var(--color-line);
}

.contact-data div {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 1rem;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--color-line);
}

.contact-data dt {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-data dd {
  margin: 0;
  font-size: 1.05rem;
}

/* Legal */
.legal-page {
  min-height: 75svh;
  padding-top: calc(var(--header-height) + clamp(5rem, 10vw, 10rem));
}

.legal-page__grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.35fr) minmax(0, 1.65fr);
  gap: clamp(3rem, 9vw, 10rem);
}

.legal-page aside {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
}

.draft-badge {
  display: inline-flex;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 112, 104, 0.45);
  border-radius: var(--radius-pill);
  color: #ff9a94;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-page h1 {
  margin-bottom: 2rem;
  font-size: clamp(3.5rem, 7vw, 7rem);
}

.legal-intro {
  max-width: 49rem;
  margin-bottom: 4rem;
  color: var(--color-muted-strong);
  font-size: 1.15rem;
}

.legal-page article section {
  max-width: 50rem;
  padding-block: 2rem;
  border-top: 1px solid var(--color-line);
}

.legal-page article section:last-child {
  border-bottom: 1px solid var(--color-line);
}

.legal-page article h2 {
  margin-bottom: 1rem;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.legal-page article section p {
  margin-bottom: 0;
  color: var(--color-muted);
}

/* Footer */
.site-footer {
  --color-text: #f4efe5;
  --color-muted: #aaa397;
  --color-muted-strong: #d0c7ba;
  --color-line: rgba(244, 239, 229, 0.13);
  --color-line-strong: rgba(244, 239, 229, 0.24);
  --color-accent: #a5b4ff;
  --color-focus: #a5b4ff;
  --color-accent-strong: #cbd4ff;
  background: #080807;
  color: #f4efe5;
}

.footer-cta {
  --color-text: #17130f;
  --color-muted: #766f65;
  --color-muted-strong: #4e4840;
  --color-line: rgba(23, 19, 15, 0.13);
  --color-line-strong: rgba(23, 19, 15, 0.24);
  --color-accent: #3f63d9;
  --color-accent-strong: #304db2;
  --color-focus: #3f63d9;
  padding-block: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background:
    radial-gradient(circle at 80% 20%, rgba(184, 154, 106, 0.17), transparent 24rem),
    #efe6d9;
  color: #17130f;
}

.footer-cta__grid {
  display: grid;
  grid-template-columns: 0.3fr 1.15fr 0.55fr;
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
}

.footer-cta__content h2 {
  max-width: 14ch;
  margin-bottom: 1.3rem;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.footer-cta__content p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--color-muted-strong);
}

.footer-cta__actions {
  display: grid;
  gap: 0.7rem;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.site-footer__brand p {
  max-width: 19rem;
  margin-top: 1.5rem;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.site-footer__column h2 {
  margin-bottom: 0.7rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__column a,
.site-footer__column span,
.footer-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted-strong);
  font-size: 0.78rem;
  text-align: left;
  transition: color 180ms ease;
}

.site-footer__column a:hover {
  color: var(--color-accent);
}

.footer-button:disabled {
  color: #5c6160;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer__bottom p {
  margin-bottom: 0;
}

.site-footer__bottom a:hover {
  color: var(--color-accent);
}

/* 404 */
.not-found {
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  text-align: center;
}

.not-found__inner {
  position: relative;
}

.not-found__code {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -58%);
  color: rgba(165, 180, 255, 0.06);
  font-size: clamp(12rem, 35vw, 34rem);
  font-weight: 850;
  letter-spacing: -0.12em;
  line-height: 0.7;
}

.not-found h1 {
  margin-bottom: 1.5rem;
}

.not-found__inner > p:not(.eyebrow, .not-found__code) {
  margin-bottom: 2rem;
  color: var(--color-muted-strong);
}

.not-found__actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}

/* Responsive */
@media (min-width: 961px) {
  .section--hero,
  .section--problems,
  .section--services,
  .section--process,
  .section--projects,
  .section--team-preview {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--header-height) + clamp(1.1rem, 2.2vh, 1.7rem));
    padding-bottom: clamp(1.1rem, 2.2vh, 1.7rem);
  }

  .section--hero {
    overflow: hidden;
  }

  .section--problems {
    min-height: 0;
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + clamp(1rem, 2.5vh, 1.5rem));
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  }

  .hero__grid {
    min-height: 0;
  }

  .hero__copy {
    padding-block: 0;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(3.5rem, 6.7vw, 6.5rem);
  }

  .hero__lead,
  .hero h1 {
    margin-bottom: clamp(1.2rem, 2.2vh, 1.7rem);
  }

  .section--services .section-heading,
  .section--projects .section-heading {
    margin-bottom: clamp(1.4rem, 2.8vh, 2.2rem);
  }

  .section--problems .section-heading {
    margin-bottom: clamp(3.25rem, 6vh, 4.75rem);
    transform: translateY(-0.75rem);
  }

  .section--problems .section-heading h2,
  .section--services .section-heading h2,
  .section--projects .section-heading h2,
  .team-preview__copy h2,
  .process-roadmap__heading h2 {
    font-size: clamp(2.55rem, 4.1vw, 4rem);
  }

  .problem-row {
    padding-block: clamp(0.85rem, 1.7vh, 1.35rem);
  }

  .problem-row p {
    font-size: 0.9rem;
  }

  .services-filmstrip {
    min-height: clamp(19rem, 42vh, 26rem);
  }

  .service-frame:nth-child(1) { order: 2; }
  .service-frame:nth-child(2) { order: 3; }
  .service-frame:nth-child(3) { order: 1; }

  .process-roadmap-layout {
    transform: translateY(-2.5rem);
  }

  .process-roadmap__heading {
    margin-bottom: clamp(0.35rem, 0.8vh, 0.75rem);
  }

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

  .project-card--wide {
    display: block;
    grid-column: auto;
  }

  .project-card__visual,
  .project-card--wide .project-card__visual {
    min-height: clamp(12.5rem, 25vh, 17rem);
  }

  .project-card__body {
    min-height: clamp(11.5rem, 22vh, 14.5rem);
    padding: clamp(1.2rem, 2vw, 1.8rem);
  }

  .project-card__body p {
    margin-bottom: 0;
  }

  .team-preview__portraits {
    min-height: clamp(24rem, 52vh, 34rem);
  }

  .portrait-placeholder {
    min-height: clamp(20rem, 44vh, 29rem);
  }

  .portrait-placeholder--offset {
    margin-top: clamp(2rem, 4vh, 3rem);
  }

}

@media (min-width: 961px) and (max-height: 760px) {
  .hero h1 {
    font-size: clamp(3.4rem, 6vw, 4.8rem);
  }

  .services-filmstrip {
    min-height: clamp(17rem, 38vh, 21rem);
  }

  .section--services .section-heading h2,
  .section--projects .section-heading h2 {
    max-width: 18ch;
    font-size: clamp(2.25rem, 3.3vw, 2.7rem);
  }

  .project-card__visual,
  .project-card--wide .project-card__visual {
    min-height: clamp(10rem, 22vh, 13rem);
  }

  .project-card__body {
    min-height: clamp(9rem, 17vh, 11rem);
    padding: 1rem;
  }

  .project-card__body p {
    font-size: 0.88rem;
  }

  .project-visual__frame {
    width: 41%;
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 1.2rem;
  }

  .desktop-nav a:nth-last-child(-n + 2) {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  }

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

  .compact-grid article:nth-child(2) {
    border-right: 0;
  }

  .compact-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid currentColor;
  }
}

@media (max-width: 960px) {
  .problem-title__line--positive {
    margin-left: 0;
  }

  :root {
    --header-height: 4.7rem;
  }

  .desktop-nav,
  .site-header__actions {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  body:has(.mobile-menu[open]) .site-header {
    backdrop-filter: none;
  }

  .mobile-menu > summary {
    list-style: none;
  }

  .mobile-menu > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu__trigger {
    position: relative;
    z-index: 1003;
    display: flex;
    min-width: 4.8rem;
    min-height: 2.8rem;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
  }

  .mobile-menu__label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-menu__icon {
    position: relative;
    display: block;
    width: 1.5rem;
    height: 1rem;
  }

  .mobile-menu__icon i {
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    transition: transform 220ms ease, top 220ms ease;
  }

  .mobile-menu__icon i:first-child { top: 0.25rem; }
  .mobile-menu__icon i:last-child { top: 0.75rem; }

  .mobile-menu[open] .mobile-menu__icon i:first-child {
    top: 0.5rem;
    transform: rotate(45deg);
  }

  .mobile-menu[open] .mobile-menu__icon i:last-child {
    top: 0.5rem;
    transform: rotate(-45deg);
  }

  .mobile-menu:not([open]) .mobile-menu__panel {
    display: none;
  }

  .mobile-menu__panel {
    --color-text: #f4efe5;
    --color-muted: #aaa397;
    --color-muted-strong: #d0c7ba;
    --color-line: rgba(244, 239, 229, 0.13);
    --color-line-strong: rgba(244, 239, 229, 0.24);
    --color-accent: #a5b4ff;
    --color-focus: #a5b4ff;
    position: fixed;
    z-index: 1002;
    inset: var(--header-height) 0 0;
    display: flex;
    flex-direction: column;
    padding: 2rem var(--gutter);
    background:
      radial-gradient(circle at 75% 15%, rgba(165, 180, 255, 0.12), transparent 20rem),
      rgba(8, 8, 7, 0.98);
    color: #f4efe5;
  }

  .mobile-menu__panel .button--ghost {
    background: rgba(255, 255, 255, 0.02);
  }

  .mobile-menu__panel .button--ghost:hover {
    border-color: rgba(244, 239, 229, 0.5);
    background: rgba(255, 255, 255, 0.055);
  }

  .mobile-menu__top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-line);
  }

  .mobile-menu__index {
    color: var(--color-muted);
    font-family: var(--font-mono);
    font-size: 0.6rem;
  }

  .mobile-nav {
    display: grid;
    margin-block: auto;
  }

  .mobile-nav a {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto;
    align-items: baseline;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--color-line);
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 650;
    letter-spacing: -0.05em;
    line-height: 1;
  }

  .page--leistungen .mobile-nav a {
    grid-template-columns: 1fr auto;
  }

  .mobile-nav a > span:first-child {
    color: var(--color-muted);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0;
  }

  .mobile-nav a > span:last-child {
    color: var(--color-accent);
    font-size: 1rem;
  }

  .mobile-menu__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 2rem;
  }

  .mobile-menu__claim {
    margin: 1.5rem 0 0;
    color: var(--color-muted);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .hero__grid,
  .page-hero__grid,
  .team-preview,
  .service-detail__grid,
  .project-start__grid,
  .direct-contact__grid {
    grid-template-columns: 1fr;
  }

  .section--hero {
    padding-top: calc(var(--header-height) + 4rem);
  }

  .hero__grid {
    min-height: auto;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .hero-visual {
    max-width: 45rem;
    justify-self: center;
  }

  .browser {
    transform: none;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .process-roadmap__heading {
    margin-bottom: 1rem;
  }

  .process-roadmap-layout {
    transform: translateY(-1rem);
  }

  .process-roadmap__heading h2 {
    max-width: 12ch;
  }

  .process-roadmap {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 0.5rem;
  }

  .process-roadmap::before {
    top: 1.6rem;
    right: auto;
    bottom: 1.6rem;
    left: 1.6rem;
    width: 2px;
    height: auto;
    background: var(--color-line-strong);
  }

  .process-roadmap::after {
    top: 1.6rem;
    right: auto;
    bottom: 1.6rem;
    left: 1.6rem;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
    transform-origin: center top;
  }

  .process-roadmap__step {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
    padding: 0 0 1.5rem;
  }

  .process-roadmap__node {
    width: 3.2rem;
    height: 3.2rem;
    grid-column: 1;
    grid-row: 1;
  }

  .process-roadmap__content,
  .process-roadmap__step:nth-child(even) .process-roadmap__content {
    width: auto;
    max-width: none;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: stretch;
    padding: 0.4rem 0 1rem;
    text-align: left;
  }

  html.js:where(.has-reveal-controller) .process-roadmap[data-reveal]::after {
    transform: scaleY(0);
  }

  html.js:where(.has-reveal-controller) .process-roadmap[data-reveal].is-visible::after {
    transform: scaleY(1);
  }

  .problem-row {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .problem-row__solution {
    grid-column: 2;
    padding-right: 3rem;
  }

  .problem-row__arrow {
    bottom: 2.5rem;
    top: auto;
  }

  .services-filmstrip {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    touch-action: pan-y;
  }

  .service-frame {
    z-index: 1;
    min-height: 9rem;
    flex: none;
    transform: none;
  }

  .services-cinema__mobile-cue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.4rem 0 0;
    color: rgba(245, 240, 231, 0.55);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .services-cinema__mobile-cue span:last-child {
    color: #a5b4ff;
  }

  .service-frame.is-active {
    grid-column: 1 / -1;
    min-height: 31rem;
    transform: none;
  }

  .service-frame__copy {
    padding-top: 2.75rem;
  }

  .service-frame:not(.is-active) .service-frame__copy {
    padding-top: 0;
  }

  .service-frame:not(.is-active) h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(1rem, 3.6vw, 1.3rem);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .service-frame__details {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .service-detail__sticky,
  .project-start__aside,
  .legal-page aside {
    position: static;
  }

  .project-card--wide {
    grid-template-columns: 1fr;
  }

  .project-card--wide .project-card__visual {
    min-height: 32rem;
  }

  .team-preview__portraits {
    min-height: 32rem;
  }

  .page-hero {
    min-height: auto;
  }

  .page-hero__aside {
    max-width: 39rem;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card--reverse .case-card__visual {
    order: 0;
  }

  .case-card__visual {
    min-height: 30rem;
  }

  .project-start__aside h2 {
    max-width: 14ch;
  }

  .form-roadmap {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .form-roadmap li {
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    border: 0;
    text-align: center;
  }

  .form-roadmap p {
    font-size: 0.58rem;
  }

  .project-start__privacy {
    max-width: 35rem;
  }

  .footer-cta__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-cta__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 32rem;
  }

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

  .legal-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 1rem;
    --section-space: 4.8rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  h2 {
    font-size: clamp(2.3rem, 11.5vw, 3.8rem);
  }

  .brand__wordmark {
    display: none;
  }

  .brand__wordmark-panel {
    width: 5.45rem;
    height: 3.6rem;
  }

  .brand__logo--wordmark {
    top: -2.13rem;
    left: -1.53rem;
    width: 8.45rem;
  }

  .hero__copy {
    padding-top: 1rem;
  }

  .hero__actions,
  .not-found__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__actions .button,
  .not-found__actions .button {
    width: 100%;
  }

  .browser__viewport {
    aspect-ratio: 0.9 / 1;
  }

  .project-grid,
  .profile-grid,
  .contact-option-grid,
  .choice-grid,
  .field-grid,
  .compact-grid,
  .compact-grid--three {
    grid-template-columns: 1fr;
  }

  .compact-grid article,
  .compact-grid article:nth-child(2),
  .compact-grid article:last-child {
    border-right: 0;
  }

  .compact-grid article:not(:last-child) {
    border-bottom: 1px solid currentColor;
  }

  .compact-grid article > span {
    margin-bottom: 3rem;
  }

  .problem-row {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .problem-row__solution {
    grid-column: auto;
    padding-right: 3rem;
  }

  .problem-row__arrow {
    bottom: 2rem;
  }

  .service-frame {
    min-height: 9.5rem;
    padding: 1.15rem;
  }

  .service-frame.is-active {
    min-height: 34rem;
  }

  .service-frame.is-active h3 {
    max-width: 16ch;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .service-frame__details {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .service-frame.is-active .service-frame__details {
    max-height: 22rem;
  }

  .service-frame__details ul {
    grid-template-columns: 1fr;
  }

  .process-roadmap__heading {
    margin-bottom: 1rem;
  }

  .process-roadmap__content h3 {
    font-size: clamp(1.3rem, 6vw, 1.75rem);
  }

  .project-card__visual,
  .project-card--wide .project-card__visual {
    min-height: 25rem;
  }

  .team-preview__portraits {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .portrait-placeholder,
  .profile-card__portrait {
    min-height: 26rem;
  }

  .portrait-placeholder--offset {
    margin-top: 0;
  }

  .team-preview__badge {
    right: 1rem;
    bottom: 1rem;
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 4rem);
  }

  .page-hero h1 {
    font-size: clamp(2.35rem, 11.8vw, 5rem);
  }

  .legal-page h1 {
    font-size: clamp(2.5rem, 12vw, 5rem);
    hyphens: auto;
  }

  .detail-card {
    grid-template-columns: 2.4rem 1fr;
  }

  .detail-card p {
    grid-column: 2;
  }

  .case-card__visual {
    min-height: 25rem;
  }

  .case-card__meta {
    margin-bottom: 2.5rem;
  }

  .case-card dl div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .form-roadmap p {
    display: none;
  }

  .project-form {
    min-height: 40rem;
    padding: 1.2rem;
  }

  .form-step-count {
    margin-bottom: 2rem;
  }

  .field--full {
    grid-column: auto;
  }

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

  .form-actions .button:only-child {
    grid-column: 1 / -1;
  }

  .contact-option {
    min-height: 28rem;
  }

  .contact-data div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-cta__actions,
  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__bottom p:nth-child(2) {
    display: none;
  }

  .mobile-menu__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .leistungen-story h1 {
    font-size: clamp(3.35rem, 8.6vw, 6rem);
  }

  .leistungen-hero__caption {
    gap: clamp(1rem, 2.8vw, 1.5rem);
    margin-top: clamp(1.75rem, 4.5vw, 2.8rem);
  }

  .leistungen-hero__caption > span {
    width: clamp(2.5rem, 9vw, 4.5rem);
  }

  .leistungen-hero__caption p {
    font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  }

  .leistungen-story__showcase-inner {
    width: min(92vw, calc(150vh - 10rem), 68rem);
    width: min(92vw, calc(150svh - 10rem), 68rem);
  }

  .leistungen-jump {
    width: min(100%, 58rem);
    justify-self: center;
  }

}

@media (max-width: 680px) {
  .leistungen-hero__copy {
    width: 100%;
  }

  .leistungen-story h1 {
    font-size: clamp(2.45rem, 11.4vw, 4rem);
    line-height: 0.98;
  }

  .leistungen-hero__caption {
    gap: clamp(1rem, 4vw, 1.5rem);
    margin-top: clamp(1.7rem, 6vw, 2.5rem);
  }

  .leistungen-hero__caption > span {
    width: 3rem;
  }

  .leistungen-hero__caption p {
    font-size: clamp(0.9rem, 3.7vw, 1.1rem);
    line-height: 1.35;
  }

  .leistungen-story__showcase-inner {
    width: calc(100% - 2rem);
  }

  .leistungen-selection {
    padding-top: 3.5rem;
  }

  .leistungen-showreel__play {
    width: clamp(3.1rem, 14vw, 4rem);
  }

  .leistungen-showreel__start-copy {
    display: none;
  }

  .leistungen-jump__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.2rem;
    padding: 0.32rem;
    border-radius: 1rem;
  }

  .leistungen-jump__links a {
    min-height: 4.35rem;
    justify-items: center;
    padding: 0.65rem 0.35rem;
    border-radius: 0.74rem;
    font-size: clamp(0.68rem, 3vw, 0.8rem);
    text-align: center;
  }

  .detail-card {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .detail-card p {
    grid-column: auto;
  }

}

/* Homepage cinematic direction */
.home-hero__stage,
.services-story__stage {
  position: relative;
}

.home-scene-meta,
.services-story__counter,
.services-story__timeline {
  display: none;
}

:where(html.has-reveal-controller) .page--home .project-card[data-reveal] .project-card__visual {
  --project-visual-scale: 1.045;
  clip-path: inset(0 0 12% 0 round var(--radius-lg) var(--radius-lg) 0 0);
  transform: translate3d(0, var(--project-parallax, 0), 0) scale(var(--project-visual-scale));
  transform-origin: center;
  transition:
    clip-path 1100ms var(--ease-out),
    transform 1100ms var(--ease-out);
}

:where(html.has-reveal-controller) .page--home .project-card[data-reveal].is-visible .project-card__visual {
  --project-visual-scale: 1;
  clip-path: inset(0 0 0 0 round 0);
}

.page--home .team-preview__portraits .portrait-placeholder {
  transition: transform 1200ms var(--ease-out);
}

.page--home .team-preview__portraits.is-visible .portrait-placeholder:first-child {
  transform: translateY(-0.45rem) rotate(-0.55deg);
}

.page--home .team-preview__portraits.is-visible .portrait-placeholder--offset {
  transform: translateY(0.55rem) rotate(0.45deg);
}

.page--home .footer-cta::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
  content: "";
}

@keyframes home-before-state-once {
  0%, 24% { opacity: 1; transform: scale(1); }
  58%, 100% { opacity: 0.34; transform: scale(1.02); }
}

@keyframes home-after-state-once {
  0%, 20% { clip-path: inset(0 100% 0 0); }
  66%, 100% { clip-path: inset(0 0 0 0); }
}

@keyframes home-scan-state-once {
  0%, 18% { left: -3%; opacity: 0; }
  22% { opacity: 1; }
  64% { left: 100%; opacity: 1; }
  70%, 100% { left: 100%; opacity: 0; }
}

@keyframes home-grid-state-once {
  0%, 18%, 72%, 100% { opacity: 0; }
  32%, 61% { opacity: 0.42; }
}

@media (max-width: 1099px) and (prefers-reduced-motion: no-preference) {
  .page--home .website-state--before {
    animation: home-before-state-once 5.8s var(--ease-standard) both;
  }

  .page--home .website-state--after {
    animation: home-after-state-once 5.8s var(--ease-standard) both;
  }

  .page--home .transformation-scan {
    animation: home-scan-state-once 5.8s var(--ease-standard) both;
  }

  .page--home .transformation-grid {
    animation: home-grid-state-once 5.8s ease both;
  }
}

@media (min-width: 1100px) {
  .page--home .home-problems__layout {
    display: grid;
    grid-template-columns: minmax(20rem, 0.76fr) minmax(0, 1.24fr);
    align-items: start;
    gap: clamp(3.5rem, 7vw, 8rem);
  }

  .page--home .section--problems {
    display: block;
    min-height: 0;
    padding-top: clamp(7.5rem, 10vw, 10rem);
    padding-bottom: clamp(7rem, 9vw, 9rem);
  }

  .page--home .section--problems .section-heading {
    margin: 0;
    transform: none;
  }

  .page--home .section-heading--problems h2 {
    max-width: 10ch;
  }

  .page--home .section-heading--problems .eyebrow {
    margin-bottom: 2rem;
  }

  .page--home .problem-title__line--positive {
    margin-left: 0;
  }

  .page--home .problem-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem clamp(1.5rem, 3vw, 3rem);
    padding-block: clamp(2rem, 3vw, 2.8rem);
  }

  .page--home .problem-row__label {
    grid-column: 1 / -1;
  }

  .page--home .problem-row__solution {
    padding-right: 2.8rem;
  }

  .page--home .project-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: start;
    gap: clamp(1rem, 1.7vw, 1.5rem);
  }

  .page--home .project-card:nth-child(1) {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
  }

  .page--home .project-card:nth-child(2),
  .page--home .project-card:nth-child(3) {
    grid-column: 8 / -1;
  }

  .page--home .project-card:nth-child(2) {
    grid-row: 1;
  }

  .page--home .project-card:nth-child(3) {
    grid-row: 2;
  }

  .page--home .project-card--wide {
    display: block;
  }

  .page--home .project-card:nth-child(1) .project-card__visual {
    min-height: clamp(27rem, 51vh, 35rem);
  }

  .page--home .project-card:nth-child(2) .project-card__visual,
  .page--home .project-card:nth-child(3) .project-card__visual {
    min-height: clamp(14rem, 27vh, 19rem);
  }

  .page--home .project-card:nth-child(1) .project-card__body {
    min-height: clamp(13rem, 24vh, 16rem);
  }

  .page--home .project-card:nth-child(2) .project-card__body,
  .page--home .project-card:nth-child(3) .project-card__body {
    min-height: clamp(12.5rem, 22vh, 15rem);
  }
}

@media (min-width: 1100px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .page--home .section--hero.is-cinematic-ready {
    display: block;
    height: 150svh;
    min-height: 150svh;
    padding: 0;
    overflow: visible;
  }

  .page--home .section--hero.is-cinematic-ready .home-hero__stage {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    height: 100svh;
    align-items: center;
    padding-top: calc(var(--header-height) + clamp(1.5rem, 3vh, 2.5rem));
    padding-bottom: clamp(2.8rem, 5vh, 4.25rem);
    overflow: clip;
    isolation: isolate;
  }

  .page--home .section--hero.is-cinematic-ready .hero__copy {
    opacity: var(--hero-copy-opacity, 1);
    transform: translate3d(0, var(--hero-copy-y, 0), 0);
  }

  .page--home .section--hero.is-cinematic-ready .hero-visual {
    transform: translate3d(0, var(--hero-visual-y, 0), 0) scale(var(--hero-visual-scale, 1));
  }

  .page--home .section--hero.is-cinematic-ready .browser {
    transform: rotateY(var(--hero-browser-rotate-y, -3.24deg)) rotateX(var(--hero-browser-rotate-x, 1.47deg));
  }

  .page--home .section--hero.is-cinematic-ready .website-state--before {
    opacity: var(--hero-before-opacity, 0.74);
    animation: none;
  }

  .page--home .section--hero.is-cinematic-ready .website-state--after {
    clip-path: inset(0 var(--hero-after-clip, 58%) 0 0);
    animation: none;
  }

  .page--home .section--hero.is-cinematic-ready .transformation-scan {
    left: var(--hero-scan-left, 41.52%);
    opacity: var(--hero-scan-opacity, 0);
    animation: none;
  }

  .page--home .section--hero.is-cinematic-ready .transformation-grid {
    opacity: var(--hero-grid-opacity, 0.41);
    animation: none;
  }

  .page--home .section--hero.is-cinematic-ready .hero__copy,
  .page--home .section--hero.is-cinematic-ready .hero-visual,
  .page--home .section--hero.is-cinematic-ready .browser,
  .page--home .section--hero.is-cinematic-ready .website-state--after,
  .page--home .section--hero.is-cinematic-ready .transformation-scan {
    will-change: transform, opacity, clip-path;
  }

  .page--home .section--hero.is-cinematic-ready .home-scene-meta {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: clamp(1rem, 2.2vh, 1.7rem);
    left: 0;
    display: flex;
    justify-content: space-between;
    opacity: var(--hero-meta-opacity, 1);
    color: var(--color-muted);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .page--home .section--hero.is-cinematic-ready .home-scene-meta span:last-child::before {
    display: inline-block;
    width: 3rem;
    height: 1px;
    margin-right: 0.75rem;
    vertical-align: middle;
    background: linear-gradient(90deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
    content: "";
  }

  .page--home .section--services.is-cinematic-ready {
    display: block;
    height: 320svh;
    min-height: 320svh;
    padding: 0;
    overflow: visible;
  }

  .page--home .section--services.is-cinematic-ready .services-story__stage {
    position: sticky;
    z-index: 1;
    top: var(--header-height);
    display: flex;
    height: calc(100svh - var(--header-height));
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(1.2rem, 2.5vh, 2rem);
    overflow: clip;
    isolation: isolate;
  }

  .page--home .section--services.is-cinematic-ready .section-heading {
    margin-bottom: clamp(1.25rem, 2.8vh, 2.15rem);
  }

  .page--home .section--services.is-cinematic-ready .services-cinema {
    isolation: isolate;
  }

  .page--home .section--services.is-cinematic-ready .services-story__counter {
    position: absolute;
    z-index: -1;
    top: clamp(-7.2rem, -10vh, -4rem);
    right: 0;
    display: flex;
    align-items: baseline;
    gap: 0.35em;
    margin: 0;
    color: rgba(245, 240, 231, 0.075);
    font-family: var(--font-sans);
    font-size: clamp(6rem, 13vw, 12rem);
    font-weight: 750;
    letter-spacing: -0.09em;
    line-height: 0.75;
    pointer-events: none;
  }

  .page--home .section--services.is-cinematic-ready .services-story__counter span:last-child {
    font-size: 0.2em;
    letter-spacing: -0.03em;
  }

  .page--home .section--services.is-cinematic-ready .services-filmstrip {
    position: relative;
    z-index: 1;
    min-height: clamp(18rem, 43vh, 26rem);
  }

  .page--home .section--services.is-cinematic-ready .services-story__timeline {
    display: grid;
    grid-template-columns: auto minmax(5rem, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    margin-top: clamp(1rem, 2.2vh, 1.6rem);
    color: rgba(245, 240, 231, 0.5);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.09em;
  }

  .page--home .section--services.is-cinematic-ready .services-story__timeline i {
    position: relative;
    height: 1px;
    overflow: hidden;
    background: rgba(245, 240, 231, 0.18);
  }

  .page--home .section--services.is-cinematic-ready .services-story__timeline b {
    position: absolute;
    inset: 0;
    transform: scaleX(var(--services-progress, 0));
    transform-origin: left center;
    background: linear-gradient(90deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
  }

  .page--home .section--services.is-cinematic-ready.is-scene-active .service-frame,
  .page--home .section--services.is-cinematic-ready.is-scene-active .service-frame__watermark {
    will-change: transform;
  }

  .page--home .section--process.is-cinematic-roadmap::after {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 50%;
    width: 2px;
    height: clamp(2.5rem, 6vh, 4.5rem);
    background: linear-gradient(180deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
    content: "";
  }

  html.js:where(.has-reveal-controller) .page--home .section--process.is-cinematic-roadmap .process-roadmap[data-reveal]::after {
    transform: scaleX(var(--roadmap-progress, 0));
    transition: none;
  }

  html.js .page--home .section--process.is-cinematic-roadmap .process-roadmap__step {
    --process-step-delay: 0ms;
  }

  html.js .page--home .section--process.is-cinematic-roadmap .process-roadmap__node {
    border-color: rgba(63, 99, 217, 0.45);
    background: var(--color-bg-soft);
    color: var(--color-accent);
    transform: scale(0.94);
    transition:
      border-color 360ms ease,
      background 360ms ease,
      color 360ms ease,
      transform 600ms var(--ease-out);
    transition-delay: 0ms;
  }

  html.js .page--home .section--process.is-cinematic-roadmap .process-roadmap__content {
    opacity: 0.28;
    transform: translateY(0.55rem);
    transition:
      opacity 460ms ease,
      transform 650ms var(--ease-out);
    transition-delay: 0ms;
  }

  html.js .page--home .section--process.is-cinematic-roadmap .process-roadmap__step.is-reached .process-roadmap__node {
    border-color: var(--process-step-border);
    background: var(--process-step-fill);
    color: var(--process-step-foreground);
    transform: scale(1.02);
  }

  html.js .page--home .section--process.is-cinematic-roadmap .process-roadmap__step.is-reached .process-roadmap__content {
    opacity: 1;
    transform: translateY(0);
  }

  .page--home .section--projects.is-cinematic-projects .project-card:nth-child(1) {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    align-self: start;
  }

  .page--home .section--projects.is-cinematic-projects.is-scene-active .project-card__visual {
    will-change: transform;
  }
}

/* Homepage cinematic direction v2 — spatial scenes, not a conventional card grid */
.hero-cinematic {
  position: relative;
}

.hero-cinematic__title {
  max-width: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-cinematic__title-line {
  display: block;
}

.hero-cinematic__title-line--accent {
  width: max-content;
  max-width: 100%;
  margin-bottom: -0.14em;
  padding-bottom: 0.14em;
}

.hero-cinematic__object-shell {
  position: relative;
  isolation: isolate;
}

.hero-cinematic__object-shell::before {
  position: absolute;
  z-index: -1;
  inset: -1.25rem;
  border: 1px solid rgba(63, 99, 217, 0.22);
  border-radius: 2.25rem;
  content: "";
  pointer-events: none;
  transform: rotate(-2deg);
}

.hero-fragment,
.hero-cinematic__note,
.problem-story__counter,
.problem-story__controls,
.services-mosaic__tile,
.services-mosaic__controls,
.projects-story__counter,
.projects-story__controls {
  display: none;
}

.hero-fragment {
  overflow: hidden;
  border: 1px solid rgba(23, 19, 15, 0.22);
  border-radius: 1.1rem;
  background: #111315;
  box-shadow: 0 2rem 5rem rgba(55, 45, 32, 0.18);
  color: #f5f0e7;
}

.hero-fragment__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(245, 240, 231, 0.12);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-fragment__screen {
  position: relative;
  display: grid;
  height: calc(100% - 2.15rem);
  align-content: center;
  gap: 0.65rem;
  padding: 14%;
  background:
    radial-gradient(circle at 75% 20%, rgba(63, 99, 217, 0.35), transparent 42%),
    #151719;
}

.hero-fragment__screen i {
  display: block;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(245, 240, 231, 0.62);
}

.hero-fragment__screen i:nth-child(1) { width: 46%; }
.hero-fragment__screen i:nth-child(2) { width: 84%; }
.hero-fragment__screen i:nth-child(3) { width: 66%; }

.hero-fragment__screen b {
  display: block;
  width: 36%;
  height: 1.35rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(112deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
}

.hero-fragment__screen--result {
  background:
    linear-gradient(135deg, rgba(21, 136, 212, 0.24), transparent 45%),
    #f7f2e9;
}

.hero-fragment__screen--result i {
  background: rgba(23, 19, 15, 0.52);
}

.process-roadmap__canvas {
  position: relative;
}

.process-roadmap__route {
  display: none;
}

.project-visual--case {
  position: relative;
  background: #111315;
}

.project-case__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-case__phase {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 8, 7, 0.56);
  color: #fffaf4;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(0.5rem);
}

.project-visual--placeholder b {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  color: rgba(245, 240, 231, 0.68);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 1100px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  /* Scene 01: oversized type surrounds one central website object. */
  .page--home .section--hero.is-cinematic-ready {
    height: 220svh;
    min-height: 220svh;
  }

  .page--home .section--hero.is-cinematic-ready .home-hero__stage {
    position: sticky;
    top: 0;
    display: block;
    height: 100svh;
    padding: 0;
    overflow: clip;
    isolation: isolate;
    background:
      radial-gradient(circle at 50% 52%, rgba(63, 99, 217, 0.1), transparent 28rem),
      radial-gradient(circle at 12% 8%, rgba(184, 154, 106, 0.11), transparent 24rem),
      var(--color-bg);
  }

  .page--home .section--hero.is-cinematic-ready .hero__glow {
    z-index: 0;
    width: 54rem;
    height: 54rem;
    opacity: 0.09;
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic {
    width: 100%;
    max-width: none;
    height: 100%;
    padding-inline: var(--gutter);
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic::before {
    position: absolute;
    z-index: 0;
    inset: var(--header-height) var(--gutter) 1.35rem;
    border: 1px solid rgba(23, 19, 15, 0.08);
    content: "";
    pointer-events: none;
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__title {
    position: absolute;
    z-index: auto;
    inset: 0;
    width: auto;
    max-width: none;
    margin: 0;
    opacity: 1;
    transform: none;
    transition: none;
    color: var(--color-text-dark);
    font-size: clamp(5.9rem, 10.25vw, 10.8rem);
    line-height: 0.76;
    letter-spacing: -0.085em;
    pointer-events: none;
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__title-line {
    position: absolute;
    width: max-content;
    max-width: calc(100vw - (2 * var(--gutter)));
    white-space: nowrap;
    will-change: auto;
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__title-line--back {
    z-index: 1;
    top: 14.5%;
    left: 8.5%;
    opacity: var(--hero-title-opacity, 1);
    transform: translate3d(var(--hero-back-x, 0), var(--hero-back-y, 0), 0);
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__title-line--front {
    z-index: 5;
    top: 43%;
    left: 50%;
    font-size: 0.82em;
    opacity: var(--hero-title-opacity, 1);
    transform: translate3d(calc(-50% + var(--hero-front-x, 0px)), var(--hero-front-y, 0), 0);
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__title-line--accent {
    z-index: 6;
    right: 8%;
    bottom: 20%;
    opacity: var(--hero-title-opacity, 1);
    transform: translate3d(var(--hero-accent-x, 0), var(--hero-accent-y, 0), 0);
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__object {
    position: absolute;
    z-index: 4;
    top: 51%;
    left: 50%;
    width: min(46vw, 43rem);
    max-width: none;
    margin: 0;
    opacity: var(--hero-object-opacity, 1);
    transform: translate3d(-50%, calc(-50% + var(--hero-object-y, 0px)), 0) scale(var(--hero-object-scale, 0.84)) rotate(var(--hero-object-rotation, -1deg));
    transform-origin: center;
    will-change: auto;
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__object-shell {
    filter: drop-shadow(0 3rem 4rem rgba(48, 39, 29, 0.24));
  }

  .page--home .section--hero.is-cinematic-ready .browser {
    border-radius: clamp(1rem, 1.4vw, 1.45rem);
    transform: none;
  }

  .page--home .section--hero.is-cinematic-ready .browser__viewport {
    aspect-ratio: 1.18 / 1;
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__lead {
    position: absolute;
    z-index: 8;
    bottom: 3.4rem;
    left: calc(var(--gutter) + 1.1rem);
    width: min(28vw, 25rem);
    margin: 0;
    opacity: var(--hero-copy-opacity, 1);
    color: var(--color-muted-strong);
    font-size: clamp(0.82rem, 1vw, 1rem);
    transform: translate3d(0, var(--hero-copy-y, 0), 0);
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__actions {
    position: absolute;
    z-index: 8;
    right: calc(var(--gutter) + 1.1rem);
    bottom: 3.4rem;
    margin: 0;
    opacity: var(--hero-copy-opacity, 1);
    transform: translate3d(0, var(--hero-copy-y, 0), 0);
  }

  .page--home .section--hero.is-cinematic-ready .hero-fragment {
    position: absolute;
    z-index: 2;
    display: block;
    width: clamp(12rem, 17vw, 18rem);
    height: clamp(10rem, 25vh, 15rem);
    opacity: var(--hero-fragment-opacity, 1);
    will-change: auto;
  }

  .page--home .section--hero.is-cinematic-ready .hero-fragment--left {
    top: 38%;
    left: -3.5rem;
    transform: translate3d(var(--hero-left-fragment-x, 0), var(--hero-left-fragment-y, 0), 0) rotate(var(--hero-left-fragment-rotation, -8deg));
  }

  .page--home .section--hero.is-cinematic-ready .hero-fragment--right {
    top: 17%;
    right: -3rem;
    transform: translate3d(var(--hero-right-fragment-x, 0), var(--hero-right-fragment-y, 0), 0) rotate(var(--hero-right-fragment-rotation, 8deg));
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__note {
    position: absolute;
    z-index: 7;
    display: block;
    margin: 0;
    opacity: var(--hero-note-opacity, 1);
    color: var(--color-muted);
    font-family: var(--font-mono);
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__note--left {
    top: 25%;
    left: calc(var(--gutter) + 1rem);
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__note--right {
    right: calc(var(--gutter) + 1rem);
    bottom: 28%;
    text-align: right;
  }

  /* Scene 02: the three problem/solution chapters occupy one light spatial canvas. */
  .page--home .section--problems.is-cinematic-problems {
    height: 300svh;
    min-height: 300svh;
    padding: 0;
    overflow: visible;
  }

  .page--home .section--problems.is-cinematic-problems .home-problems__layout {
    position: sticky;
    top: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100svh;
    padding-inline: var(--gutter);
    overflow: clip;
    isolation: isolate;
  }

  .page--home .section--problems.is-cinematic-problems .section-heading--problems {
    position: absolute;
    z-index: 1;
    top: calc(var(--header-height) + 1rem);
    right: var(--gutter);
    left: var(--gutter);
    margin: 0;
    opacity: var(--problems-title-opacity, 1);
    transform: translate3d(0, var(--problems-title-y, 0), 0) scale(var(--problems-title-scale, 1));
    transform-origin: left top;
  }

  .page--home .section--problems.is-cinematic-problems .section-heading--problems h2 {
    max-width: none;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.6rem, 7.4vw, 8rem);
    font-weight: 400;
    line-height: 0.84;
    letter-spacing: -0.07em;
  }

  .page--home .section--problems.is-cinematic-problems .problem-title__line--positive {
    width: max-content;
    max-width: 100%;
    margin-left: 18%;
  }

  .page--home .section--problems.is-cinematic-problems .problem-list {
    position: absolute;
    z-index: 3;
    inset: 0;
  }

  .page--home .section--problems.is-cinematic-problems .problem-list::before {
    display: none;
  }

  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal] .problem-row,
  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal].is-visible .problem-row {
    position: absolute;
    top: 53%;
    left: 50%;
    display: grid;
    width: min(76vw, 68rem);
    min-height: min(52vh, 31rem);
    grid-template-columns: 0.62fr 1fr 1fr;
    align-content: center;
    gap: clamp(1.4rem, 3vw, 3.4rem);
    padding: clamp(1.8rem, 3vw, 3rem);
    overflow: hidden;
    border: 1px solid rgba(11, 12, 13, 0.18);
    border-radius: 1.6rem;
    background: rgba(247, 242, 233, 0.96);
    box-shadow: 0 2.5rem 6rem rgba(56, 46, 32, 0.13);
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.64);
    clip-path: none;
    transition:
      transform 900ms var(--ease-out),
      opacity 500ms ease,
      border-color 500ms ease,
      box-shadow 900ms var(--ease-out);
    transition-delay: 0ms;
    will-change: auto;
  }

  .page--home .section--problems.is-cinematic-problems .problem-row::before {
    position: absolute;
    z-index: -1;
    top: -0.16em;
    right: 0.02em;
    color: rgba(11, 12, 13, 0.045);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(8rem, 18vw, 18rem);
    line-height: 1;
  }

  .page--home .section--problems.is-cinematic-problems .problem-row:nth-child(1)::before,
  .page--home .section--problems.is-cinematic-problems .problem-row:nth-child(2)::before,
  .page--home .section--problems.is-cinematic-problems .problem-row:nth-child(3)::before {
    display: none;
    content: none;
  }

  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal] .problem-row.is-active {
    z-index: 5;
    opacity: 1;
    transform: translate3d(-50%, -43%, 0) scale(1) rotate(0.001deg);
  }

  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal] .problem-row.is-before {
    z-index: 2;
    opacity: 0.72;
    transform: translate3d(-111%, 48%, 0) scale(0.43) rotate(-8deg);
  }

  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal] .problem-row.is-after {
    z-index: 2;
    opacity: 0.72;
    transform: translate3d(12%, -128%, 0) scale(0.43) rotate(7deg);
  }

  .page--home .section--problems.is-cinematic-problems .problem-row:not(.is-active) > :not(.problem-row__label) {
    opacity: 0;
  }

  .page--home .section--problems.is-cinematic-problems .problem-row h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 4vw, 4.4rem);
    font-weight: 400;
  }

  .page--home .section--problems.is-cinematic-problems .problem-row p {
    font-size: clamp(0.92rem, 1.18vw, 1.12rem);
    line-height: 1.55;
  }

  .page--home .section--problems.is-cinematic-problems .problem-story__counter,
  .page--home .section--problems.is-cinematic-problems .problem-story__controls {
    position: absolute;
    z-index: 8;
    bottom: 2rem;
    display: flex;
  }

  .page--home .section--problems.is-cinematic-problems .problem-story__counter {
    left: var(--gutter);
    align-items: baseline;
    gap: 0.4rem;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.62rem;
  }

  .page--home .section--problems.is-cinematic-problems .problem-story__counter span:first-child {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.3rem;
  }

  .problem-story__controls,
  .services-mosaic__controls,
  .projects-story__controls {
    gap: 0.45rem;
  }

  .problem-story__controls button,
  .services-mosaic__controls button,
  .projects-story__controls button {
    display: grid;
    width: 3rem;
    height: 3rem;
    padding: 0;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    transition: transform 240ms var(--ease-out), background-color 240ms ease;
  }

  .problem-story__controls button:hover,
  .services-mosaic__controls button:hover,
  .projects-story__controls button:hover {
    transform: translateY(-2px);
  }

  .page--home .section--problems.is-cinematic-problems .problem-story__controls {
    right: var(--gutter);
  }

  .page--home .section--problems.is-cinematic-problems .problem-story__controls button:hover {
    background: rgba(11, 12, 13, 0.06);
  }

  /* Scene 03: a single dominant service card with two spatial satellites. */
  .page--home .section--services.is-cinematic-ready {
    height: 430svh;
    min-height: 430svh;
  }

  .page--home .section--services.is-cinematic-ready .services-story__stage {
    position: sticky;
    top: 0;
    display: block;
    height: 100svh;
    padding: 0;
    overflow: clip;
    isolation: isolate;
    background:
      radial-gradient(circle at 50% 55%, rgba(63, 99, 217, 0.11), transparent 29rem),
      #11100e;
  }

  .page--home .section--services.is-cinematic-ready .section-heading--services {
    position: absolute;
    z-index: 2;
    top: calc(var(--header-height) + 1rem);
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
    margin: 0;
    pointer-events: none;
  }

  .page--home .section--services.is-cinematic-ready .section-heading--services h2 {
    max-width: 14ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.8rem, 7.6vw, 8.2rem);
    font-weight: 400;
    line-height: 0.82;
    opacity: 0.16;
  }

  .page--home .section--services.is-cinematic-ready .services-cinema {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .page--home .section--services.is-cinematic-ready .services-filmstrip {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
    min-height: 0;
  }

  .page--home .section--services.is-cinematic-ready .service-frame {
    position: absolute;
    top: 52%;
    left: 50%;
    display: flex;
    width: min(55vw, 49rem);
    height: min(64vh, 37rem);
    min-height: 0;
    flex: none;
    padding: clamp(1.6rem, 2.6vw, 2.8rem);
    opacity: var(--service-stack-opacity, 0.72);
    transform: translate3d(calc(-50% + var(--service-stack-x, 0px)), calc(-50% + var(--service-stack-y, 0px)), 0) rotate(var(--service-stack-rotation, 0deg)) scale(var(--service-stack-scale, 0.78));
    transition:
      opacity 260ms linear,
      border-color 380ms ease,
      background-color 380ms ease,
      color 380ms ease,
      box-shadow 600ms var(--ease-out);
    will-change: auto;
  }

  .page--home .section--services.is-cinematic-ready .service-frame.is-active {
    transform: translate3d(calc(-50% + var(--service-stack-x, 0px)), calc(-50% + var(--service-stack-y, 0px)), 0) rotate(var(--service-stack-rotation, 0deg)) scale(var(--service-stack-scale, 1));
  }

  .page--home .section--services.is-cinematic-ready .service-frame h3 {
    max-width: 13ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 3.65vw, 4rem);
    font-weight: 400;
    line-height: 0.95;
  }

  .page--home .section--services.is-cinematic-ready .service-frame:not(.is-active) h3 {
    display: block;
    color: rgba(245, 240, 231, 0.82);
    font-size: clamp(1.7rem, 2.4vw, 2.7rem);
  }

  .page--home .section--services.is-cinematic-ready .service-frame__details {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .page--home .section--services.is-cinematic-ready .services-story__counter {
    z-index: 1;
    top: auto;
    right: var(--gutter);
    bottom: 1rem;
    color: rgba(245, 240, 231, 0.08);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(7rem, 15vw, 15rem);
  }

  .page--home .section--services.is-cinematic-ready .services-story__timeline {
    position: absolute;
    z-index: 8;
    right: calc(var(--gutter) + 8rem);
    bottom: 2.4rem;
    left: calc(var(--gutter) + 8rem);
    margin: 0;
  }

  .page--home .section--services.is-cinematic-ready .services-mosaic__controls {
    position: absolute;
    z-index: 9;
    right: var(--gutter);
    bottom: 1.5rem;
    display: flex;
    color: #f5f0e7;
  }

  .page--home .section--services.is-cinematic-ready .services-mosaic__controls button:hover {
    background: rgba(245, 240, 231, 0.08);
  }

  .page--home .section--services.is-cinematic-ready .services-mosaic__tile {
    position: absolute;
    z-index: 1;
    display: grid;
    width: clamp(9rem, 14vw, 14rem);
    height: clamp(8rem, 20vh, 12rem);
    align-content: end;
    gap: 0.45rem;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(245, 240, 231, 0.12);
    border-radius: 1rem;
    background: rgba(245, 240, 231, 0.035);
    color: rgba(245, 240, 231, 0.46);
    font-family: var(--font-mono);
    font-size: 0.52rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: var(--services-satellite-opacity, 1);
    pointer-events: none;
  }

  .page--home .section--services.is-cinematic-ready .services-mosaic__tile i {
    display: block;
    height: 0.25rem;
    border-radius: 999px;
    background: rgba(245, 240, 231, 0.18);
  }

  .page--home .section--services.is-cinematic-ready .services-mosaic__tile i:nth-of-type(1) { width: 82%; }
  .page--home .section--services.is-cinematic-ready .services-mosaic__tile i:nth-of-type(2) { width: 56%; }
  .page--home .section--services.is-cinematic-ready .services-mosaic__tile i:nth-of-type(3) { width: 70%; }
  .page--home .section--services.is-cinematic-ready .services-mosaic__tile--one { top: 18%; left: -2rem; transform: rotate(-8deg); }
  .page--home .section--services.is-cinematic-ready .services-mosaic__tile--two { top: 16%; right: -1.5rem; transform: rotate(7deg); }
  .page--home .section--services.is-cinematic-ready .services-mosaic__tile--three { bottom: 7%; left: 8%; transform: rotate(4deg); }

  /* Scene 04: the brand line becomes a route and ends in the gradient step five. */
  .page--home .section--process.is-cinematic-roadmap {
    display: block;
    height: 190svh;
    min-height: 190svh;
    justify-content: initial;
    padding: 0;
    overflow: visible;
  }

  .page--home .section--process.is-cinematic-roadmap::after {
    display: none;
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap-layout {
    position: sticky;
    top: 0;
    width: min(100% - (2 * var(--gutter)), var(--container));
    height: 100svh;
    padding-top: calc(var(--header-height) + 1.6rem);
    overflow: hidden;
    transform: none;
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__heading {
    position: relative;
    z-index: 4;
    margin: 0;
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__heading h2 {
    max-width: 14ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.4rem, 5.4vw, 5.9rem);
    font-weight: 400;
    line-height: 0.88;
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__canvas {
    position: absolute;
    z-index: 2;
    top: 36%;
    right: 0;
    bottom: 1.5rem;
    left: 0;
    height: auto;
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__route {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__route-base,
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__route-progress {
    vector-effect: non-scaling-stroke;
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__route-base {
    stroke: rgba(23, 19, 15, 0.18);
    stroke-width: 1.4;
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__route-progress {
    stroke: url(#tfa-route-gradient);
    stroke-width: 3;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--roadmap-progress, 0));
    stroke-linecap: round;
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    min-height: 0;
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap::before,
  .page--home .section--process.is-cinematic-roadmap .process-roadmap::after {
    display: none;
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step {
    position: absolute;
    display: block;
    width: clamp(8rem, 14vw, 13rem);
    padding: 0;
    transform: translate(-50%, -50%);
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(1) { top: 81%; left: 6%; }
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(2) { top: 29%; left: 30%; }
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(3) { top: 69%; left: 55%; }
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(4) { top: 29%; left: 77%; }
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(5) { top: 51%; left: 95%; }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__node {
    width: 3.7rem;
    height: 3.7rem;
    margin-inline: auto;
  }

  html.js .page--home .section--process.is-cinematic-roadmap .process-roadmap__step--finish .process-roadmap__node {
    width: clamp(5.2rem, 7vw, 6.6rem);
    height: clamp(5.2rem, 7vw, 6.6rem);
    border-color: var(--process-step-border);
    background: var(--process-step-fill);
    color: var(--process-step-foreground);
    font-size: 0.8rem;
    box-shadow: 0 1.5rem 4rem rgba(63, 99, 217, 0.23);
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__content,
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(even) .process-roadmap__content {
    width: 100%;
    margin-top: 0.9rem;
    padding: 0;
    text-align: center;
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__content h3 {
    font-size: clamp(1rem, 1.35vw, 1.35rem);
  }

  /* Scene 05: project cards form a mosaic and take turns as the central frame. */
  .page--home .section--projects.is-cinematic-projects {
    display: block;
    height: 330svh;
    min-height: 330svh;
    justify-content: initial;
    padding: 0;
    overflow: visible;
  }

  .page--home .section--projects.is-cinematic-projects .projects-story__stage {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: clip;
    isolation: isolate;
    background:
      radial-gradient(circle at 50% 55%, rgba(63, 99, 217, 0.08), transparent 31rem),
      var(--color-surface-light);
  }

  .page--home .section--projects.is-cinematic-projects .section-heading--split {
    position: absolute;
    z-index: 2;
    top: calc(var(--header-height) + 1rem);
    right: var(--gutter);
    left: var(--gutter);
    display: block;
    width: auto;
    margin: 0;
    pointer-events: none;
  }

  .page--home .section--projects.is-cinematic-projects .section-heading--split > div:last-child {
    position: absolute;
    top: 2.2rem;
    right: 0;
    width: min(26vw, 24rem);
    pointer-events: auto;
  }

  .page--home .section--projects.is-cinematic-projects .section-heading--split h2 {
    max-width: 11ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.4rem, 6.7vw, 7.2rem);
    font-weight: 400;
    line-height: 0.84;
  }

  .page--home .section--projects.is-cinematic-projects .project-grid {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  html.js:where(.has-reveal-controller) .page--home .section--projects.is-cinematic-projects .project-card[data-reveal],
  html.js:where(.has-reveal-controller) .page--home .section--projects.is-cinematic-projects .project-card[data-reveal].is-visible,
  .page--home .section--projects.is-cinematic-projects .project-card:nth-child(n) {
    position: absolute;
    top: 56%;
    left: 50%;
    display: grid;
    width: min(72vw, 66rem);
    height: min(59vh, 35rem);
    grid-template-columns: 1.38fr 0.62fr;
    grid-template-rows: 1fr;
    overflow: hidden;
    opacity: var(--project-stack-opacity, 0.68);
    transform: translate3d(calc(-50% + var(--project-stack-x, 0px)), calc(-50% + var(--project-stack-y, 0px)), 0) rotate(var(--project-stack-rotation, 0deg)) scale(var(--project-stack-scale, 0.76));
    clip-path: inset(0 round var(--radius-lg));
    transition:
      opacity 260ms linear,
      border-color 360ms ease,
      box-shadow 700ms var(--ease-out);
    will-change: auto;
  }

  .page--home .section--projects.is-cinematic-projects .project-card.is-active {
    z-index: 5;
    border-color: rgba(11, 12, 13, 0.3);
    box-shadow: 0 2.5rem 6rem rgba(56, 46, 32, 0.2);
  }

  .page--home .section--projects.is-cinematic-projects .project-card__visual,
  .page--home .section--projects.is-cinematic-projects .project-card:nth-child(n) .project-card__visual {
    min-height: 0;
    height: 100%;
    clip-path: none;
    transform: scale(var(--project-visual-scale, 1.06));
    transition: transform 900ms var(--ease-out);
  }

  .page--home .section--projects.is-cinematic-projects .project-card.is-active .project-card__visual {
    --project-visual-scale: 1;
  }

  .page--home .section--projects.is-cinematic-projects .project-card__body,
  .page--home .section--projects.is-cinematic-projects .project-card:nth-child(n) .project-card__body {
    min-height: 0;
    padding: clamp(1.4rem, 2.6vw, 2.7rem);
  }

  .page--home .section--projects.is-cinematic-projects .project-card__body h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3.25rem);
    font-weight: 400;
  }

  .page--home .section--projects.is-cinematic-projects .projects-story__counter {
    position: absolute;
    z-index: 1;
    right: var(--gutter);
    bottom: -0.05em;
    display: flex;
    align-items: baseline;
    gap: 0.3em;
    margin: 0;
    color: rgba(11, 12, 13, 0.055);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(7rem, 15vw, 15rem);
    line-height: 0.8;
  }

  .page--home .section--projects.is-cinematic-projects .projects-story__counter span:last-child {
    font-family: var(--font-mono);
    font-size: 0.09em;
  }

  .page--home .section--projects.is-cinematic-projects .projects-story__controls {
    position: absolute;
    z-index: 9;
    bottom: 1.5rem;
    left: var(--gutter);
    display: flex;
  }

  .page--home .section--hero.is-cinematic-ready.is-scene-active .hero-cinematic__title-line,
  .page--home .section--hero.is-cinematic-ready.is-scene-active .hero-cinematic__object,
  .page--home .section--hero.is-cinematic-ready.is-scene-active .hero-fragment,
  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems.is-scene-active .problem-list[data-reveal] .problem-row,
  .page--home .section--services.is-cinematic-ready.is-scene-active .service-frame,
  html.js:where(.has-reveal-controller) .page--home .section--projects.is-cinematic-projects.is-scene-active .project-card[data-reveal] {
    will-change: transform, opacity;
  }
}

@media (max-width: 1099px), (max-height: 599px) {
  .page--home .hero-cinematic {
    display: grid;
    gap: 2rem;
  }

  .page--home .hero-cinematic__title {
    font-size: clamp(3.45rem, 10.8vw, 7rem);
    line-height: 0.83;
  }

  .page--home .hero-cinematic__title-line--front {
    margin-left: 8%;
  }

  .page--home .hero-cinematic__title-line--accent {
    margin-left: auto;
  }

  .page--home .hero-cinematic__lead {
    max-width: 35rem;
    margin: 0;
  }

  .page--home .hero-cinematic__object {
    width: min(100%, 46rem);
    max-width: none;
    margin-top: 1rem;
    justify-self: center;
  }

  .page--home .hero-cinematic__actions {
    grid-row: 3;
  }

  .page--home .process-roadmap__route {
    display: none;
  }

  html.js:where(.has-reveal-controller) .page--home .process-roadmap[data-reveal]::after,
  html.js:where(.has-reveal-controller) .page--home .process-roadmap[data-reveal].is-visible::after {
    transform: scaleY(1);
    transition: none;
  }

  html.js:where(.has-reveal-controller) .page--home .process-roadmap[data-reveal] .process-roadmap__node,
  html.js:where(.has-reveal-controller) .page--home .process-roadmap[data-reveal].is-visible .process-roadmap__node {
    border-color: var(--process-step-border);
    background: var(--process-step-fill);
    color: var(--process-step-foreground);
    transform: none;
    transition-delay: 0ms;
  }

  html.js:where(.has-reveal-controller) .page--home .process-roadmap[data-reveal] .process-roadmap__content,
  html.js:where(.has-reveal-controller) .page--home .process-roadmap[data-reveal].is-visible .process-roadmap__content {
    opacity: 1;
    transform: none;
    transition-delay: 0ms;
  }

  .page--home .project-visual--case {
    min-height: clamp(19rem, 54vw, 34rem);
  }
}

@media (max-width: 720px) {
  .page--home .section--hero {
    padding-top: calc(var(--header-height) + 2.8rem);
  }

  .page--home .hero-cinematic__title {
    font-size: clamp(3.15rem, 15.4vw, 5.2rem);
  }

  .page--home .hero-cinematic__title-line--front {
    margin-left: 0;
  }

  .page--home .hero-cinematic__lead {
    font-size: 1rem;
  }

  .page--home .hero-cinematic__actions .button {
    width: 100%;
  }

  .page--home .problem-row {
    grid-template-columns: 1fr;
  }

  .page--home .problem-row__solution {
    grid-column: 1;
  }

  .page--home .project-card--wide {
    display: block;
  }
}

@media (min-width: 961px) and (max-width: 1180px) {
  .desktop-nav a:nth-last-child(-n + 2) {
    display: inline-flex;
  }
}

@media (max-width: 960px) {
  .mobile-menu__panel {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .page--home .team-preview__portraits.is-visible .portrait-placeholder,
  .page--home .team-preview__portraits.is-visible .portrait-placeholder--offset {
    transform: none;
  }
}

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

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

  .brand__pixel-trail {
    display: none;
  }

  html.js:where(.has-reveal-controller) [data-reveal] {
    opacity: 1;
    transform: none;
  }

  html.js:where(.has-reveal-controller) .problem-heading-reveal[data-reveal] > *,
  html.js:where(.has-reveal-controller) .problem-list[data-reveal] .problem-row {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  html.js:where(.has-reveal-controller) .problem-list[data-reveal]::before {
    transform: scaleX(1);
  }

  html.js:where(.has-reveal-controller) .process-roadmap[data-reveal]::after {
    transform: none;
  }

  html.js:where(.has-reveal-controller) .process-roadmap[data-reveal] .process-roadmap__content {
    opacity: 1;
    transform: none;
  }

  html.js:where(.has-reveal-controller) .process-roadmap[data-reveal] .process-roadmap__node {
    border-color: var(--process-step-fill);
    background: var(--process-step-fill);
    color: var(--process-step-foreground);
    transform: none;
  }

  .website-state--before {
    opacity: 0;
  }

  .website-state--after {
    clip-path: inset(0);
  }

  .transformation-scan,
  .transformation-grid {
    display: none;
  }

  .page--home .section--hero,
  .page--home .section--services {
    height: auto !important;
    min-height: auto;
  }

  .page--home .home-hero__stage,
  .page--home .services-story__stage {
    position: static;
    height: auto;
  }

  .page--home .project-card[data-reveal] .project-card__visual,
  :where(html.has-reveal-controller) .page--home .project-card[data-reveal].is-visible .project-card__visual {
    clip-path: none;
    transform: none;
  }

  .page--home .team-preview__portraits.is-visible .portrait-placeholder,
  .page--home .team-preview__portraits.is-visible .portrait-placeholder--offset {
    transform: none;
  }
}

@media print {
  .site-header,
  .footer-cta,
  .site-footer,
  .ambient-noise,
  .button {
    display: none !important;
  }

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

  .section,
  .page-hero,
  .legal-page {
    min-height: auto;
    padding-block: 2rem;
  }
}

/* Homepage clarity pass — clean scene hierarchy and exact roadmap geometry */
.page--home .hero-cinematic__object-shell::before,
.page--home .problem-row::before {
  display: none;
  content: none;
}

.page--home .hero .hero-cinematic__title-line--accent,
.page--home .problem-title__line--positive {
  margin-bottom: -0.16em;
  padding-bottom: 0.16em;
  overflow: visible;
  clip-path: none;
}

.page--home .problem-heading-reveal,
.page--home .problem-heading-reveal h2,
.page--home .problem-title__line {
  overflow: visible;
}

.page--home .section-heading--services h2 span {
  display: block;
}

.page--home .problem-row__solution {
  padding-right: 0;
}

@media (min-width: 1100px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  /* Hero: one focal object, no frame or peripheral interface copy. */
  .page--home .section--hero.is-cinematic-ready .home-hero__stage {
    background:
      radial-gradient(circle at 50% 52%, rgba(63, 99, 217, 0.065), transparent 30rem),
      var(--color-bg);
  }

  .page--home .section--hero.is-cinematic-ready .hero__glow,
  .page--home .section--hero.is-cinematic-ready .hero-cinematic::before {
    display: none;
    content: none;
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__object-shell {
    filter: drop-shadow(0 2.25rem 3.25rem rgba(48, 39, 29, 0.19));
  }

  /* Problems: title and cards are separate chapters, never overlapping. */
  .page--home .section--problems.is-cinematic-problems {
    height: 315svh;
    min-height: 315svh;
  }

  .page--home .section--problems.is-cinematic-problems .home-problems__layout {
    background:
      radial-gradient(circle at 50% 50%, rgba(63, 99, 217, 0.045), transparent 29rem),
      var(--color-surface-light);
  }

  .page--home .section--problems.is-cinematic-problems .section-heading--problems {
    z-index: 7;
    top: 50%;
    right: auto;
    left: 50%;
    width: min(calc(100% - (2 * clamp(3rem, 7vw, 7rem))), 74rem);
    opacity: var(--problems-title-opacity, 1);
    transform: translate3d(-50%, calc(-50% + var(--problems-title-y, 0px)), 0) scale(var(--problems-title-scale, 1));
    transform-origin: center;
    text-align: center;
  }

  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-heading-reveal[data-reveal] > *,
  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-heading-reveal[data-reveal].is-visible > * {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .page--home .section--problems.is-cinematic-problems .section-heading--problems h2 {
    width: 100%;
    max-width: none;
    font-size: clamp(4rem, 6.8vw, 7.35rem);
    line-height: 0.91;
    letter-spacing: -0.058em;
  }

  .page--home .section--problems.is-cinematic-problems .problem-title__line,
  .page--home .section--problems.is-cinematic-problems .problem-title__line--positive {
    width: max-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .page--home .section--problems.is-cinematic-problems .problem-list {
    opacity: var(--problems-cards-opacity, 0);
    transition: opacity 280ms linear;
  }

  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal] .problem-row,
  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal].is-visible .problem-row {
    top: 54%;
    width: min(80vw, 68rem);
    min-height: min(50vh, 28rem);
    grid-template-columns: 0.58fr 1fr 1fr;
    gap: clamp(1.5rem, 3.2vw, 3.5rem);
    padding: clamp(2rem, 3.2vw, 3.25rem);
  }

  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal] .problem-row.is-active,
  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal].is-visible .problem-row.is-active {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1) rotate(0.001deg);
  }

  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal] .problem-row.is-before,
  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal] .problem-row.is-after,
  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal].is-visible .problem-row.is-before,
  html.js:where(.has-reveal-controller) .page--home .section--problems.is-cinematic-problems .problem-list[data-reveal].is-visible .problem-row.is-after {
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, -45%, 0) scale(0.9);
  }

  .page--home .section--problems.is-cinematic-problems .problem-row h3 {
    font-size: clamp(2.35rem, 3.6vw, 4rem);
  }

  .page--home .section--problems.is-cinematic-problems .problem-row__label {
    grid-column: 1;
    align-self: center;
  }

  .page--home .section--problems.is-cinematic-problems .problem-row__problem,
  .page--home .section--problems.is-cinematic-problems .problem-row__solution {
    align-self: center;
  }

  /* Services: visible title column, readable card stage, quiet depth. */
  .page--home .section--services.is-cinematic-ready {
    height: 330svh;
    min-height: 330svh;
  }

  .page--home .section--services.is-cinematic-ready .services-story__stage {
    background:
      radial-gradient(circle at 70% 54%, rgba(63, 99, 217, 0.12), transparent 29rem),
      #11100e;
  }

  .page--home .section--services.is-cinematic-ready .services-story__stage::before,
  .page--home .section--services.is-cinematic-ready::before {
    opacity: 0.3;
  }

  .page--home .section--services.is-cinematic-ready .section-heading--services {
    z-index: 70;
    top: 50%;
    right: auto;
    left: clamp(3rem, 6vw, 7rem);
    width: min(31vw, 29rem);
    transform: translateY(-50%);
  }

  .page--home .section--services.is-cinematic-ready .section-heading--services .eyebrow {
    margin-bottom: 1.5rem;
  }

  .page--home .section--services.is-cinematic-ready .section-heading--services h2 {
    width: 100%;
    max-width: none;
    opacity: 1;
    color: #f5f0e7;
    font-size: clamp(3.7rem, 5.3vw, 6.15rem);
    line-height: 0.88;
    letter-spacing: -0.055em;
  }

  .page--home .section--services.is-cinematic-ready .section-heading--services h2 span + span {
    margin-top: 0.1em;
  }

  html.js:where(.has-reveal-controller) .page--home .section--services.is-cinematic-ready .section-heading--services [data-reveal],
  html.js:where(.has-reveal-controller) .page--home .section--services.is-cinematic-ready .services-cinema[data-reveal],
  html.js:where(.has-reveal-controller) .page--home .section--services.is-cinematic-ready .services-cinema[data-reveal].is-visible {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }

  .page--home .section--services.is-cinematic-ready .service-frame {
    top: 54%;
    left: 69%;
    width: min(56vw, 50rem);
    height: min(66vh, 36rem);
    padding: clamp(1.8rem, 2.8vw, 3rem);
    opacity: 0.12;
    pointer-events: none;
    transform: translate3d(-50%, calc(-50% + var(--service-stack-y, 0px)), 0) rotate(var(--service-stack-rotation, 0deg)) scale(var(--service-stack-scale, 0.78));
  }

  .page--home .section--services.is-cinematic-ready .service-frame.is-active {
    z-index: 60 !important;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(-50%, calc(-50% + var(--service-stack-y, 0px)), 0) rotate(var(--service-stack-rotation, 0deg)) scale(var(--service-stack-scale, 1));
  }

  .page--home .section--services.is-cinematic-ready .service-frame h3 {
    max-width: 15ch;
    font-size: clamp(2.25rem, 3.2vw, 3.55rem);
    line-height: 0.97;
  }

  .page--home .section--services.is-cinematic-ready .service-frame__details {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  /* Roadmap: each node center sits on the actual SVG anchor point. */
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__canvas {
    top: 46%;
    right: clamp(3rem, 5vw, 5rem);
    left: clamp(2rem, 3vw, 3.5rem);
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step {
    --node-size: 3.7rem;
    height: var(--node-size);
    transform: translate(-50%, -50%);
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(1) { top: 75.8064516%; left: 10%; }
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(2) { top: 24.1935484%; left: 30%; }
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(3) { top: 75.8064516%; left: 50%; }
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(4) { top: 24.1935484%; left: 70%; }
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(5) { top: 75.8064516%; left: 90%; }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__node {
    width: var(--node-size);
    height: var(--node-size);
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step--finish {
    --node-size: clamp(5.2rem, 7vw, 6.6rem);
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__content,
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(even) .process-roadmap__content {
    position: absolute;
    top: calc(100% + 0.85rem);
    bottom: auto;
    left: 50%;
    width: 100%;
    margin: 0;
    transform: translate3d(-50%, 0.55rem, 0);
  }

  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(2) .process-roadmap__content,
  .page--home .section--process.is-cinematic-roadmap .process-roadmap__step:nth-child(4) .process-roadmap__content {
    top: auto;
    bottom: calc(100% + 0.85rem);
  }

  html.js .page--home .section--process.is-cinematic-roadmap .process-roadmap__content {
    opacity: 0.58;
    transform: translate3d(-50%, 0.55rem, 0);
  }

  html.js .page--home .section--process.is-cinematic-roadmap .process-roadmap__step.is-reached .process-roadmap__content {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 1099px), (max-height: 599px) {
  .page--home .section--problems .home-problems__layout {
    width: min(calc(100% - 2.5rem), var(--container));
  }

  .page--home .section-heading--problems h2 {
    max-width: 100%;
    font-size: clamp(2.85rem, 11.8vw, 5rem);
    line-height: 0.92;
    letter-spacing: -0.052em;
  }

  .page--home .problem-title__line--positive {
    width: auto;
    max-width: 100%;
    margin-left: 0;
  }

  .page--home .section--services .section-heading--services {
    margin-bottom: clamp(2.5rem, 8vw, 4rem);
  }

  .page--home .section--services .section-heading--services h2 {
    max-width: 11ch;
    font-size: clamp(2.85rem, 11.4vw, 5rem);
    line-height: 0.9;
  }

  .page--home .section--services .services-filmstrip {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page--home .section--services .service-frame,
  .page--home .section--services .service-frame.is-active {
    grid-column: 1;
    min-height: 0;
    padding: clamp(1.4rem, 5vw, 2rem);
    transform: none;
    border-color: rgba(165, 180, 255, 0.28);
    background: var(--color-surface-light);
    color: var(--color-text-dark);
    box-shadow: none;
    cursor: default;
  }

  .page--home .section--services .service-frame__copy,
  .page--home .section--services .service-frame:not(.is-active) .service-frame__copy {
    margin: 0;
    padding-top: 0;
  }

  .page--home .section--services .service-frame__category,
  .page--home .section--services .service-frame.is-active .service-frame__category {
    color: var(--color-accent);
  }

  .page--home .section--services .service-frame h3,
  .page--home .section--services .service-frame.is-active h3,
  .page--home .section--services .service-frame:not(.is-active) h3 {
    display: block;
    max-width: 18ch;
    overflow: visible;
    color: var(--color-text-dark);
    font-size: clamp(1.6rem, 6vw, 2.35rem);
    line-height: 1;
    -webkit-line-clamp: initial;
  }

  .page--home .section--services .service-frame__details,
  .page--home .section--services .service-frame.is-active .service-frame__details {
    max-height: none;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 1.75rem;
    overflow: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page--home .section--services .service-frame__watermark,
  .page--home .section--services .service-frame.is-active .service-frame__watermark {
    opacity: 0.035;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  .page--home .process-roadmap__step:last-child {
    padding-bottom: 0;
  }
}

@media (max-width: 680px) {
  .page--home .section--services .service-frame__details,
  .page--home .section--services .service-frame.is-active .service-frame__details {
    grid-template-columns: 1fr;
  }
}

/* Homepage cinematic completion — projects, team and closing sequence */
.page--home .team-preview__stage {
  position: relative;
}

.page--home .team-preview__portraits .portrait-placeholder {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page--home .team-preview__portraits .portrait-placeholder::before {
  position: absolute;
  z-index: -1;
  inset: 13% -28% auto 36%;
  height: 58%;
  border: 1px solid rgba(244, 239, 229, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, rgba(63, 99, 217, 0.36), transparent 26%),
    radial-gradient(circle at 66% 68%, rgba(139, 62, 174, 0.3), transparent 30%);
  content: "";
  opacity: 0.85;
  transform: rotate(-18deg);
}

.page--home .team-preview__portraits .portrait-placeholder::after {
  position: absolute;
  z-index: -1;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, #1588d4 0%, #3f63d9 48%, #8b3eae 100%);
  content: "";
  opacity: 0.78;
}

.page--home .team-preview__portraits .portrait-placeholder > span {
  position: relative;
  z-index: 1;
}

.page--home .team-preview__portraits .portrait-placeholder > p {
  position: relative;
  z-index: 1;
  max-width: 9ch;
  padding-bottom: 1rem;
  color: #f4efe5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: none;
}

.page--home .team-preview__badge {
  position: relative;
  right: auto;
  bottom: auto;
  grid-column: 1 / -1;
  display: flex;
  width: 100%;
  aspect-ratio: auto;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.9rem 0 0;
  transform: none;
  border-top: 1px solid var(--color-line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--color-muted-strong);
  text-align: right;
}

.page--home .team-preview__badge strong {
  color: #3f63d9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}

.page--home .team-preview__badge span {
  font-size: 0.54rem;
}

.page--home .footer-cta {
  position: relative;
  overflow: hidden;
}

.page--home .footer-cta::after {
  position: absolute;
  right: -9rem;
  bottom: -12rem;
  width: min(38rem, 54vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 42%, rgba(21, 136, 212, 0.12), transparent 32%),
    radial-gradient(circle at 63% 58%, rgba(139, 62, 174, 0.1), transparent 42%);
  content: "";
  pointer-events: none;
}

@media (min-width: 1100px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  /* The website frame stays behind every hero line as it grows. */
  .page--home .section--hero.is-cinematic-ready .hero-cinematic__title-line--back {
    z-index: 5;
  }

  .page--home .section--hero.is-cinematic-ready .hero-cinematic__object {
    z-index: 3;
  }

  /* Projects: a clean title chapter hands over to the card sequence. */
  .page--home .section--projects.is-cinematic-projects .section-heading--split {
    z-index: 70;
    top: 50%;
    right: auto;
    left: 50%;
    display: grid;
    width: min(calc(100% - (2 * clamp(3rem, 7vw, 7rem))), 78rem);
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
    align-items: end;
    gap: clamp(3rem, 7vw, 7rem);
    opacity: var(--projects-title-opacity, 1);
    pointer-events: var(--projects-heading-events, auto);
    transform: translate3d(-50%, calc(-50% + var(--projects-title-y, 0px)), 0) scale(var(--projects-title-scale, 1));
    transform-origin: center;
  }

  html.js:where(.has-reveal-controller) .page--home .section--projects.is-cinematic-projects .section-heading--split [data-reveal],
  html.js:where(.has-reveal-controller) .page--home .section--projects.is-cinematic-projects .section-heading--split [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page--home .section--projects.is-cinematic-projects .section-heading--split > div:last-child {
    position: static;
    width: auto;
    padding-bottom: 0.45rem;
    pointer-events: inherit;
  }

  .page--home .section--projects.is-cinematic-projects .section-heading--split h2 {
    max-width: 10ch;
    margin-bottom: 0;
    font-size: clamp(4.5rem, 7vw, 7.5rem);
    line-height: 0.84;
  }

  .page--home .section--projects.is-cinematic-projects .project-grid {
    opacity: var(--projects-cards-opacity, 0);
    pointer-events: var(--projects-cards-events, none);
    transform: translate3d(0, var(--projects-cards-y, 54px), 0);
  }

  /* Team: one sticky film stage, with two restrained role frames. */
  .page--home .section--team-preview.is-cinematic-team {
    display: block;
    height: 215svh;
    min-height: 215svh;
    padding: 0;
    overflow: visible;
  }

  .page--home .section--team-preview.is-cinematic-team .team-preview__stage {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: clip;
    isolation: isolate;
    background:
      radial-gradient(circle at 74% 52%, rgba(63, 99, 217, 0.07), transparent 28rem),
      var(--color-bg);
  }

  .page--home .section--team-preview.is-cinematic-team .team-preview {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    padding-inline: var(--gutter);
  }

  html.js:where(.has-reveal-controller) .page--home .section--team-preview.is-cinematic-team .team-preview__copy[data-reveal],
  html.js:where(.has-reveal-controller) .page--home .section--team-preview.is-cinematic-team .team-preview__copy[data-reveal].is-visible {
    position: absolute;
    z-index: 7;
    top: 51%;
    left: calc(var(--gutter) + 1.1rem);
    width: min(42vw, 36rem);
    opacity: var(--team-copy-opacity, 0.68);
    transform: translate3d(var(--team-copy-x, -30px), calc(-50% + var(--team-copy-y, 20px)), 0);
    transition: none;
  }

  .page--home .section--team-preview.is-cinematic-team .team-preview__copy h2 {
    max-width: 10.8ch;
    margin-bottom: 1.35rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.45rem, 4.9vw, 5.55rem);
    font-weight: 400;
    line-height: 0.88;
  }

  .page--home .section--team-preview.is-cinematic-team .team-preview__copy > p:not(.eyebrow) {
    max-width: 31rem;
    margin-bottom: 1.45rem;
    font-size: clamp(0.88rem, 1vw, 1rem);
  }

  html.js:where(.has-reveal-controller) .page--home .section--team-preview.is-cinematic-team .team-preview__portraits[data-reveal],
  html.js:where(.has-reveal-controller) .page--home .section--team-preview.is-cinematic-team .team-preview__portraits[data-reveal].is-visible {
    position: absolute;
    z-index: 4;
    top: 51%;
    left: 72%;
    display: block;
    width: min(49vw, 45rem);
    height: min(68vh, 40rem);
    min-height: 0;
    opacity: var(--team-visual-opacity, 0.14);
    transform: translate3d(calc(-50% + var(--team-visual-x, 150px)), calc(-50% + var(--team-visual-y, 34px)), 0);
    transition: none;
  }

  .page--home .section--team-preview.is-cinematic-team .portrait-placeholder {
    position: absolute;
    width: 52%;
    height: 88%;
    min-height: 0;
    padding: clamp(1.15rem, 2vw, 1.7rem);
    box-shadow: 0 2.4rem 5rem rgba(48, 39, 29, 0.2);
    will-change: auto;
  }

  .page--home .section--team-preview.is-cinematic-team .portrait-placeholder:first-child {
    z-index: 2;
    top: 0;
    left: 0;
    transform: translate3d(-0.75rem, var(--team-card-one-y, 48px), 0) rotate(var(--team-card-one-rotation, -3.2deg));
  }

  .page--home .section--team-preview.is-cinematic-team .portrait-placeholder--offset {
    z-index: 1;
    right: 0;
    bottom: 0;
    left: auto;
    margin: 0;
    transform: translate3d(0.75rem, var(--team-card-two-y, -42px), 0) rotate(var(--team-card-two-rotation, 4.4deg));
  }

  .page--home .section--team-preview.is-cinematic-team .team-preview__badge {
    position: absolute;
    right: 0;
    bottom: -2.25rem;
    left: 0;
    opacity: var(--team-badge-opacity, 0);
    transform: translate3d(0, var(--team-badge-y, 24px), 0);
  }

  .page--home .section--team-preview.is-cinematic-team.is-scene-active .team-preview__copy,
  .page--home .section--team-preview.is-cinematic-team.is-scene-active .team-preview__portraits,
  .page--home .section--team-preview.is-cinematic-team.is-scene-active .portrait-placeholder {
    will-change: transform, opacity;
  }

  /* Closing scene: oversized typography, then a calm official-logo footer. */
  .page--home .footer-cta {
    display: grid;
    min-height: 92svh;
    align-items: stretch;
    padding: 0;
  }

  .page--home .footer-cta__grid {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 92svh;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: 1.5rem;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: clamp(3rem, 6vh, 5rem);
  }

  .page--home .footer-cta__grid > .eyebrow {
    grid-column: 1 / 5;
    grid-row: 1;
  }

  .page--home .footer-cta__content {
    grid-column: 2 / 12;
    grid-row: 2;
    align-self: center;
  }

  .page--home .footer-cta__content h2 {
    max-width: 12.5ch;
    margin-bottom: 1.8rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.6rem, 7.5vw, 8rem);
    font-weight: 400;
    line-height: 0.86;
  }

  .page--home .footer-cta__content p {
    width: min(38%, 31rem);
    max-width: none;
    margin: 0 4% 0 auto;
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  }

  .page--home .footer-cta__actions {
    grid-column: 9 / 13;
    grid-row: 3;
    justify-self: end;
    width: min(100%, 22rem);
  }

  .page--home .footer-cta__actions .button {
    min-height: 4rem;
  }

  .page--home .site-footer__main {
    min-height: 60svh;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 1.5rem;
    padding-top: clamp(7rem, 15vh, 10rem);
    padding-bottom: clamp(4rem, 8vh, 6rem);
  }

  .page--home .site-footer__brand {
    grid-column: 1 / 5;
  }

  .page--home .site-footer__column:nth-child(2) {
    grid-column: 6 / 8;
  }

  .page--home .site-footer__column:nth-child(3) {
    grid-column: 8 / 11;
  }

  .page--home .site-footer__column:nth-child(4) {
    grid-column: 11 / 13;
  }

  .page--home .brand--footer .brand__logo--primary {
    width: clamp(12rem, 18vw, 15rem);
    height: auto;
    filter: none;
  }
}

/* Laptop windows retain the same scenes with dimensions bounded by height.
   Wide monitors must not grow the type beyond the available vertical space. */
@media (min-width: 1100px) and (min-height: 600px) and (max-height: 699px) and (prefers-reduced-motion: no-preference) {
  .page--home .section--services.is-cinematic-ready .section-heading--services h2 {
    font-size: clamp(2.75rem, min(5.3vw, 8.5svh), 3.7rem);
    line-height: .96;
  }

  .page--home .section--services.is-cinematic-ready .service-frame {
    height: 66svh;
    padding: 1.5rem;
  }

  .page--home .section--services.is-cinematic-ready .service-frame h3 {
    font-size: clamp(1.9rem, min(3.2vw, 5.5svh), 2.35rem);
    line-height: 1.05;
  }

  .page--home .section--services.is-cinematic-ready .service-frame__copy { padding-top: 1rem; }
  .page--home .section--services.is-cinematic-ready .service-frame__details { gap: 1rem; }

  .page--home .section--projects.is-cinematic-projects .section-heading--split h2 {
    font-size: clamp(3.25rem, min(7vw, 10svh), 4.5rem);
    line-height: .96;
  }

  html.js:where(.has-reveal-controller) .page--home .section--projects.is-cinematic-projects .project-card[data-reveal],
  html.js:where(.has-reveal-controller) .page--home .section--projects.is-cinematic-projects .project-card[data-reveal].is-visible,
  .page--home .section--projects.is-cinematic-projects .project-card:nth-child(n) {
    width: min(82vw, 66rem);
    grid-template-columns: 1.15fr .85fr;
  }

  .page--home .section--projects.is-cinematic-projects .project-card:nth-child(n) .project-card__body { padding: 1.25rem; }
  .page--home .section--projects.is-cinematic-projects .project-card__body h3 {
    font-size: clamp(1.65rem, min(3vw, 5svh), 2rem);
    line-height: 1.1;
  }
  .page--home .section--projects.is-cinematic-projects .project-card__body p { margin-bottom: 1rem; font-size: .9375rem; line-height: 1.5; }

  .page--home .section--team-preview.is-cinematic-team .team-preview__copy h2 {
    max-width: 16ch;
    font-size: clamp(2.4rem, min(4.9vw, 7.2svh), 3.15rem);
    line-height: 1.02;
    margin-bottom: 1rem;
  }
  .page--home .section--team-preview.is-cinematic-team .team-preview__copy > p:not(.eyebrow) { margin-bottom: 1rem; }
}

@media (max-width: 1099px), (max-height: 599px), (prefers-reduced-motion: reduce) {
  .page--home .team-preview__stage {
    height: auto;
  }

  .page--home .footer-cta__content h2 {
    max-width: 15ch;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 0.91;
  }
}

@media (max-width: 680px) {
  .page--home .section--team-preview {
    padding-block: clamp(5rem, 18vw, 7rem);
  }

  .page--home .team-preview__copy h2 {
    max-width: 11ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.75rem, 12vw, 4rem);
    font-weight: 400;
    line-height: 0.91;
  }

  .page--home .team-preview__portraits {
    gap: 0.8rem;
  }

  .page--home .team-preview__portraits .portrait-placeholder {
    min-height: 20rem;
  }

  .page--home .team-preview__badge {
    justify-content: flex-start;
    text-align: left;
  }

  .page--home .footer-cta {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: clamp(5rem, 18vw, 7rem);
  }

  .page--home .footer-cta__content h2 {
    font-size: clamp(2.8rem, 12.7vw, 4rem);
  }
}

/* Homepage finale — the Leistungen opener returns as a mirrored closing reveal. */
.page--home .footer-cta__stage {
  position: relative;
  z-index: 1;
}

.page--home .footer-cta::before {
  display: none;
}

.page--home .footer-cta__headline-line {
  display: block;
}

.page--home .footer-cta__accent {
  display: block;
  margin-bottom: -0.16em;
  padding-bottom: 0.16em;
  overflow: visible;
  clip-path: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.page--home .footer-cta.is-cinematic-closing {
  display: block;
  height: 190svh;
  min-height: 190svh;
  padding: 0;
  overflow: visible;
}

.page--home .footer-cta.is-cinematic-closing::after {
  display: none;
}

.page--home .footer-cta.is-cinematic-closing .footer-cta__stage {
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.48), transparent 38rem),
    radial-gradient(circle at 80% 20%, rgba(184, 154, 106, 0.17), transparent 24rem),
    #efe6d9;
}

.page--home .footer-cta.is-cinematic-closing .footer-cta__stage::after {
  position: absolute;
  z-index: 0;
  right: -9rem;
  bottom: -12rem;
  width: min(38rem, 54vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 42%, rgba(21, 136, 212, 0.12), transparent 32%),
    radial-gradient(circle at 63% 58%, rgba(139, 62, 174, 0.1), transparent 42%);
  content: "";
  opacity: var(--closing-glow-opacity, 0.18);
  pointer-events: none;
}

.page--home .footer-cta.is-cinematic-closing .footer-cta__grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  min-height: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-content: center;
  align-items: start;
  justify-items: center;
  gap: clamp(1.2rem, 3vh, 2rem);
  padding-top: calc(var(--header-height) + clamp(1.5rem, 4vh, 3rem));
  padding-bottom: clamp(2rem, 5vh, 4rem);
  text-align: center;
}

.page--home .footer-cta.is-cinematic-closing .footer-cta__grid > .eyebrow {
  grid-column: 1;
  grid-row: auto;
  justify-self: center;
  margin: 0;
  opacity: var(--closing-eyebrow-opacity, 0);
  transform: translate3d(0, var(--closing-eyebrow-y, 24px), 0);
}

.page--home .footer-cta.is-cinematic-closing .footer-cta__content {
  grid-column: 1;
  grid-row: auto;
  width: min(100%, 84rem);
  align-self: auto;
  overflow: visible;
}

.page--home .footer-cta.is-cinematic-closing .footer-cta__content h2 {
  max-width: none;
  margin: 0;
  overflow: visible;
  font-family: var(--font-sans);
  font-size: clamp(3.45rem, 6.55vw, 7.25rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.96;
  opacity: var(--closing-headline-opacity, 0);
  transform: translate3d(0, var(--closing-headline-y, 3.5rem), 0) scale(var(--closing-headline-scale, 0.965));
  transform-origin: center;
}

.page--home .footer-cta.is-cinematic-closing .footer-cta__headline-line {
  white-space: nowrap;
}

.page--home .footer-cta.is-cinematic-closing .footer-cta__content > p {
  width: min(100%, 40rem);
  max-width: none;
  margin: clamp(1.4rem, 3vh, 2.2rem) auto 0;
  color: var(--color-muted-strong);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  opacity: var(--closing-copy-opacity, 0);
  transform: translate3d(0, var(--closing-copy-y, 28px), 0);
}

.page--home .footer-cta.is-cinematic-closing .footer-cta__actions {
  grid-column: 1;
  grid-row: auto;
  grid-template-columns: 1fr;
  justify-self: center;
  width: min(100%, 19rem);
  opacity: var(--closing-actions-opacity, 0);
  pointer-events: var(--closing-actions-events, none);
  transform: translate3d(0, var(--closing-actions-y, 26px), 0);
}

.page--home .footer-cta.is-cinematic-closing.is-scene-active .footer-cta__grid > .eyebrow,
.page--home .footer-cta.is-cinematic-closing.is-scene-active .footer-cta__content h2,
.page--home .footer-cta.is-cinematic-closing.is-scene-active .footer-cta__content > p,
.page--home .footer-cta.is-cinematic-closing.is-scene-active .footer-cta__actions {
  will-change: transform, opacity;
}

@media (max-width: 680px) {
  .page--home .footer-cta.is-cinematic-closing {
    height: 175svh;
    min-height: 175svh;
    padding: 0;
  }

  .page--home .footer-cta.is-cinematic-closing .footer-cta__grid {
    gap: clamp(1rem, 3.2vh, 1.5rem);
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
  }

  .page--home .footer-cta.is-cinematic-closing .footer-cta__content h2 {
    font-size: clamp(2.65rem, 12vw, 4rem);
    line-height: 0.98;
  }

  .page--home .footer-cta.is-cinematic-closing .footer-cta__headline-line {
    white-space: normal;
  }

  .page--home .footer-cta.is-cinematic-closing .footer-cta__content > p {
    max-width: 31rem;
    margin-top: clamp(1.1rem, 3vh, 1.6rem);
    font-size: 0.92rem;
  }

  .page--home .footer-cta.is-cinematic-closing .footer-cta__actions {
    grid-template-columns: 1fr;
    width: min(100%, 19rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page--home .footer-cta__grid > .eyebrow,
  .page--home .footer-cta__content h2,
  .page--home .footer-cta__content > p,
  .page--home .footer-cta__actions {
    opacity: 1;
    transform: none;
  }
}

/* Homepage footer — structured directory with an approved logo-shaped brand gradient. */
.page--home .site-footer__main {
  min-height: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

.page--home .site-footer__brand {
  grid-column: 1 / 6;
}

.page--home .brand--footer-color {
  position: relative;
  display: block;
  width: clamp(12rem, 18vw, 15rem);
  min-height: 0;
  isolation: isolate;
}

.page--home .brand--footer-color .brand__logo--primary {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}

@supports ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
  .page--home .brand--footer-color::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(112deg, #2188fd 0%, #525ffc 52%, #8333fd 100%);
    content: "";
    -webkit-mask: url("../brand/tfa-logo-white-320.webp") center / contain no-repeat;
    mask: url("../brand/tfa-logo-white-320.webp") center / contain no-repeat;
    pointer-events: none;
  }

  .page--home .brand--footer-color .brand__logo--primary {
    opacity: 0;
  }
}

.page--home .site-footer__brand > p {
  max-width: 27rem;
  margin-top: 1.4rem;
  color: #d8d3ca;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.55;
}

.page--home .site-footer__directory {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
}

.page--home .site-footer__directory > .site-footer__column {
  grid-column: auto;
  gap: 0.78rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 239, 229, 0.18);
}

.page--home .site-footer__directory .site-footer__column h2 {
  margin-bottom: 0.45rem;
  color: #8e8a82;
  font-size: 0.61rem;
  letter-spacing: 0.13em;
}

.page--home .site-footer__directory .site-footer__column a,
.page--home .site-footer__directory .footer-button {
  color: #e0dbd2;
  font-size: 0.84rem;
  line-height: 1.4;
}

.page--home .site-footer__directory .site-footer__column a:hover,
.page--home .site-footer__directory .site-footer__column a:focus-visible {
  color: #7777ff;
}

.page--home .site-footer__directory .footer-button:disabled {
  color: #65625d;
}

.page--home .site-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

.page--home .site-footer__bottom p:nth-child(2) {
  justify-self: center;
}

.page--home .site-footer__bottom > a {
  justify-self: end;
}

@media (max-width: 960px) {
  .page--home .site-footer__main {
    grid-template-columns: 1fr;
    gap: clamp(3rem, 8vw, 4.5rem);
  }

  .page--home .site-footer__brand,
  .page--home .site-footer__directory {
    grid-column: 1;
  }
}

@media (max-width: 680px) {
  .page--home .site-footer__main {
    gap: 3rem;
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }

  .page--home .brand--footer-color {
    width: min(13rem, 68vw);
  }

  .page--home .site-footer__directory {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page--home .site-footer__bottom {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .page--home .site-footer__bottom p:nth-child(2) {
    display: block;
  }

  .page--home .site-footer__bottom > a {
    margin-top: 0.5rem;
  }
}

/* The six-entry navigation retains room for the project action on laptops. */
@media (min-width: 961px) and (max-width: 1250px) {
  .site-header__actions .text-link--header { display: none; }
  .desktop-nav { gap: clamp(0.8rem, 1.65vw, 1.2rem); }
}
