/* SABFAB.DEV — High-end digital product and AI systems portfolio · visual system v3 */

:root {
  --ink: #0a0a09;
  --ink-soft: #11110f;
  --ink-raised: #171714;
  --paper: #f0eee6;
  --paper-deep: #e5e2d8;
  --white: #fffef9;
  --muted-dark: #9b9a92;
  --muted-light: #66655f;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(10, 10, 9, 0.18);
  --signal: #ff4f20;
  --signal-rgb: 255, 79, 32;
  --font-display: "Helvetica Neue", "Arial Nova", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: 1540px;
  --gutter: clamp(1.25rem, 4.2vw, 4.75rem);
  --header-height: 5.25rem;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --space-2: .5rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --color-text-secondary: var(--muted-dark);
  --color-accent-primary: var(--signal);
  --color-accent-secondary: #ff7a52;
  --color-surface: var(--ink-raised);
  --color-border: var(--line-dark);
  --font-size-sm: .78rem;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.4rem;
  --font-size-3xl: clamp(2.5rem, 6vw, 5rem);
  --radius-lg: .25rem;
  --nav-height: var(--header-height);
  --space-3: .75rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.25rem);
  overflow-x: hidden;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--white);
  background: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

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

button, input, textarea, select {
  font: inherit;
}

button, select {
  cursor: pointer;
}

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

h1, h2, h3, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10000;
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--paper);
  font: 700 .72rem/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

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

.page-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999;
  height: 2px;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--signal);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
}

.section-shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.light-section {
  color: var(--ink);
  background: var(--paper);
}

.section-index,
.eyebrow,
.step-label,
.stage-label,
.hero-coordinate {
  font-family: var(--font-mono);
  font-size: clamp(.62rem, .66vw, .72rem);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-index {
  color: currentColor;
  opacity: .55;
}

.eyebrow {
  color: var(--signal);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding-inline: var(--gutter);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease-out), background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  height: 4.5rem;
  border-color: var(--line-dark);
  background: rgba(10, 10, 9, .82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .7rem;
  width: max-content;
}

.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  color: var(--ink);
  background: var(--signal);
  font: 800 .72rem/1 var(--font-mono);
  letter-spacing: -.06em;
  border-radius: 50%;
  transition: transform .45s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(18deg);
}

.brand-type {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-type span {
  color: var(--signal);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 2.5vw, 3rem);
}

.desktop-nav a {
  position: relative;
  padding-block: .5rem;
  color: rgba(255, 255, 255, .72);
  font: 500 .67rem/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: .1rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .35s var(--ease-out);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--white);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 1.25rem;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255, 255, 255, .35);
  font: 600 .66rem/1 var(--font-mono);
}

.language-switch button {
  padding: .35rem .15rem;
  color: rgba(255, 255, 255, .64);
  border: 0;
  background: transparent;
  transition: color .2s ease;
}

.language-switch button[aria-pressed="true"],
.language-switch button:hover {
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: .65rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin-block: .25rem;
  background: var(--white);
  transition: transform .35s var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(.25rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-.25rem) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 900;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  color: var(--white);
  background: var(--ink);
  opacity: 0;
  -webkit-overflow-scrolling: touch;
  transition: opacity .35s ease, visibility .35s;
}

.mobile-nav[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.mobile-nav-inner {
  display: flex;
  min-height: 100%;
  padding: calc(var(--header-height) + 3rem) var(--gutter) 2rem;
  flex-direction: column;
}

.mobile-nav a {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-nav a span {
  color: var(--signal);
  font: 600 .65rem/1 var(--font-mono);
}

.mobile-nav a b {
  font-size: clamp(2.25rem, 12vw, 4rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
}

.mobile-nav p {
  margin-top: auto;
  color: var(--muted-dark);
  font: 500 .66rem/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 3.55rem;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: .95rem 1.25rem .95rem 1.4rem;
  border: 1px solid transparent;
  font: 700 .69rem/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .3s ease, background .3s ease, border-color .3s ease, transform .3s var(--ease-out);
}

.button svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform .3s var(--ease-out);
}

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

.button:hover svg {
  transform: translateX(.25rem);
}

.button-primary {
  color: var(--ink);
  background: var(--signal);
}

.button-primary:hover {
  background: var(--white);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-dark:hover {
  color: var(--ink);
  background: var(--signal);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 0;
  color: rgba(255, 255, 255, .75);
  font: 600 .7rem/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.text-link i {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease-out), background .35s ease;
}

.text-link:hover {
  color: var(--white);
}

.text-link:hover i {
  width: 3.75rem;
  background: var(--signal);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  isolation: isolate;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 4.5rem) var(--gutter) 8.5rem;
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: clamp(4rem, 7vw, 7.5rem) clamp(4rem, 7vw, 7.5rem);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%);
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.hero-media {
  position: absolute;
  inset: 0 0 0 35%;
  z-index: -2;
  overflow: hidden;
  transform: translate3d(calc(var(--pointer-x, 0) * .8rem), calc(var(--pointer-y, 0) * .8rem), 0) scale(1.035);
  transition: transform .4s var(--ease-out);
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  filter: saturate(.72) contrast(1.14) brightness(.68);
}

.hero-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10,10,9,.98) 15%, rgba(10,10,9,.58) 48%, rgba(10,10,9,.1) 80%),
    linear-gradient(0deg, var(--ink) 0%, transparent 24%, rgba(10,10,9,.04) 72%, rgba(10,10,9,.75) 100%);
}

.hero-orbits {
  position: absolute;
  top: 50%;
  right: 5%;
  width: min(55vw, 52rem);
  aspect-ratio: 1;
  transform: translate3d(calc(var(--pointer-x, 0) * -1.2rem), calc(-50% + var(--pointer-y, 0) * -1.2rem), 0) rotate(-11deg);
  transition: transform .5s var(--ease-out);
}

.hero-orbits i {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  animation: orbit-breathe 5.5s ease-in-out infinite alternate;
}

.hero-orbits i:nth-child(1) { inset: 7%; }
.hero-orbits i:nth-child(2) { inset: 22%; animation-delay: -1.5s; }
.hero-orbits i:nth-child(3) { inset: 37%; animation-delay: -3s; border-color: rgba(var(--signal-rgb), .55); }

.orbit-node {
  position: absolute;
  width: .7rem;
  height: .7rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 .3rem rgba(var(--signal-rgb), .18);
}

.orbit-node-a { top: 17%; left: 26%; }
.orbit-node-b { right: 10%; bottom: 33%; animation: node-pulse 2.6s ease-in-out infinite; }

.hero-coordinate {
  position: absolute;
  color: rgba(255, 255, 255, .48);
}

.hero-coordinate-a { right: 3rem; bottom: 2rem; }
.hero-coordinate-b { top: 7rem; right: 3rem; writing-mode: vertical-rl; }

@keyframes orbit-breathe {
  to { transform: scale(1.035); opacity: .55; }
}

@keyframes node-pulse {
  50% { box-shadow: 0 0 0 .8rem rgba(var(--signal-rgb), 0); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(64rem, 72vw);
}

.hero-copy .eyebrow {
  margin-bottom: clamp(1.7rem, 3vw, 3rem);
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(4.3rem, 8.25vw, 9.1rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .86;
}

.hero h1 span {
  display: block;
}

.hero h1 .accent-line {
  color: var(--signal);
}

.hero-intro {
  max-width: 41rem;
  margin-top: clamp(2rem, 3.5vw, 3.3rem);
  color: rgba(255, 255, 255, .74);
  font-size: clamp(1.04rem, 1.4vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.4rem;
}

.hero-rail {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  left: var(--gutter);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line-dark);
}

.hero-rail li {
  padding-top: 1.05rem;
  color: rgba(255,255,255,.55);
  font: 600 .62rem/1 var(--font-mono);
  letter-spacing: .12em;
}

.hero-rail li:last-child { text-align: right; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 5.15rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255,255,255,.46);
}

.scroll-cue span {
  position: relative;
  display: block;
  width: 2.5rem;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.25);
}

.scroll-cue span::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--signal);
  animation: scroll-signal 2s var(--ease-in-out) infinite;
}

.scroll-cue small {
  font: 600 .58rem/1 var(--font-mono);
  letter-spacing: .1em;
}

@keyframes scroll-signal {
  0% { transform: translateX(-105%); }
  45%, 55% { transform: translateX(0); }
  100% { transform: translateX(105%); }
}

.hero-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  animation: hero-in .95s var(--ease-out) forwards;
}

.hero-copy .hero-reveal:nth-child(1) { animation-delay: .12s; }
.hero-copy .hero-reveal:nth-child(2) { animation-delay: .2s; }
.hero-copy .hero-reveal:nth-child(3) { animation-delay: .34s; }
.hero-copy .hero-reveal:nth-child(4) { animation-delay: .46s; }
.hero > .hero-reveal { animation-delay: .62s; }

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Intro */
.intro {
  padding-block: clamp(7rem, 12vw, 13rem);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(5rem, .5fr) 2.2fr minmax(16rem, .8fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 6rem);
}

.intro-statement .eyebrow {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.intro-statement h2 {
  max-width: 14ch;
  font-size: clamp(3.2rem, 6.3vw, 7.6rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .94;
}

.intro-aside {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  padding-top: clamp(8rem, 14vw, 16rem);
}

.intro-aside p {
  max-width: 24rem;
  color: var(--muted-light);
  font-size: clamp(.95rem, 1.1vw, 1.08rem);
  line-height: 1.65;
}

.signal-dot {
  display: block;
  width: .52rem;
  height: .52rem;
  margin-top: .4rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 .28rem rgba(var(--signal-rgb), .13);
}

/* Systems story */
.systems {
  padding-block: clamp(7rem, 10vw, 11rem) 0;
  background: var(--ink-soft);
}

.systems-heading,
.section-heading-grid,
.work-heading {
  display: grid;
  grid-template-columns: minmax(5rem, .5fr) 3fr;
  gap: clamp(2rem, 5vw, 6rem);
}

.systems-heading h2,
.section-heading-grid h2 {
  max-width: 16ch;
  margin-top: 1.5rem;
  font-size: clamp(2.8rem, 5.2vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .95;
}

.systems-story {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(21rem, .82fr);
  gap: clamp(3rem, 7vw, 8rem);
  margin-top: clamp(5rem, 9vw, 9rem);
}

.system-stage-wrap {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
  height: calc(100svh - var(--header-height) - 4rem);
  padding-bottom: 2rem;
}

.system-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 30rem;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #0d0d0b;
}

.system-stage::before,
.system-stage::after {
  position: absolute;
  z-index: 5;
  width: 1.1rem;
  height: 1.1rem;
  content: "";
  pointer-events: none;
}

.system-stage::before {
  top: -.1rem;
  left: -.1rem;
  border-top: 2px solid var(--signal);
  border-left: 2px solid var(--signal);
}

.system-stage::after {
  right: -.1rem;
  bottom: -.1rem;
  border-right: 2px solid var(--signal);
  border-bottom: 2px solid var(--signal);
}

.stage-grid,
.private-grid,
.principle-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 74%);
  mask-image: radial-gradient(circle at center, #000, transparent 74%);
}

.stage-label {
  position: absolute;
  z-index: 7;
  color: rgba(255,255,255,.42);
}

.stage-label span { color: var(--signal); }
.stage-label-top { top: 1.25rem; left: 1.25rem; }
.stage-label-bottom { right: 1.25rem; bottom: 1.25rem; }

.visual-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.95);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}

.system-stage[data-mode="product"] .product-visual,
.system-stage[data-mode="intelligence"] .intelligence-visual,
.system-stage[data-mode="platform"] .platform-visual {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

.browser-frame {
  position: absolute;
  top: 13%;
  left: 8%;
  width: 71%;
  height: 67%;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(12,12,11,.96);
  box-shadow: 0 2rem 6rem rgba(0,0,0,.64), inset 0 0 0 1px rgba(255,255,255,.025);
  transform: perspective(1000px) rotateY(5deg) rotateX(1deg);
}

.browser-top {
  display: flex;
  height: clamp(1.25rem, 3.5vw, 2.5rem);
  align-items: center;
  gap: clamp(.25rem, 1vw, .75rem);
  padding: 0 clamp(.45rem, 1.5vw, .9rem);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255,255,255,.015);
}

.browser-dots {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(.14rem, .45vw, .35rem);
}

.browser-dots i {
  width: clamp(.18rem, .45vw, .34rem);
  height: clamp(.18rem, .45vw, .34rem);
  border-radius: 50%;
  background: rgba(255,255,255,.28);
}

.browser-top > span {
  overflow: hidden;
  flex: 1;
  color: rgba(255,255,255,.35);
  font: 500 clamp(.3rem, .7vw, .48rem)/1 var(--font-mono);
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-top > b {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.66);
  font: 600 clamp(.28rem, .65vw, .44rem)/1 var(--font-mono);
  letter-spacing: .12em;
}

.browser-top > b > i {
  width: clamp(.22rem, .5vw, .38rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 .22rem rgba(var(--signal-rgb), .1), 0 0 1rem rgba(var(--signal-rgb), .42);
  animation: product-live 1.8s ease-in-out infinite;
}

.browser-body {
  position: relative;
  display: flex;
  height: calc(100% - clamp(1.25rem, 3.5vw, 2.5rem));
  background: radial-gradient(circle at 77% 40%, rgba(var(--signal-rgb), .095), transparent 30%), #0c0c0b;
}

.product-nav {
  display: flex;
  width: clamp(1.9rem, 11%, 4rem);
  flex: 0 0 auto;
  align-items: center;
  flex-direction: column;
  gap: clamp(.38rem, 1.3vw, .85rem);
  padding: clamp(.45rem, 1.5vw, 1rem) 0;
  border-right: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.012);
}

.product-mark {
  display: grid;
  width: clamp(.8rem, 2.5vw, 1.55rem);
  aspect-ratio: 1;
  margin-bottom: clamp(.18rem, .8vw, .55rem);
  place-items: center;
  background: var(--signal);
  color: #090908;
  font: 800 clamp(.35rem, .95vw, .62rem)/1 var(--font-mono);
}

.product-nav > i {
  position: relative;
  width: clamp(.46rem, 1.35vw, .88rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.2);
}

.product-nav > i::after {
  position: absolute;
  inset: 28%;
  border: 1px solid rgba(255,255,255,.34);
  content: "";
}

.product-nav > i.is-active {
  border-color: rgba(var(--signal-rgb), .72);
  background: rgba(var(--signal-rgb), .1);
  box-shadow: inset .12rem 0 0 var(--signal);
}

.product-nav > i.is-active::after { border-color: var(--signal); }

.product-nav-end {
  width: clamp(.42rem, 1vw, .7rem);
  aspect-ratio: 1;
  margin-top: auto;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
}

.product-workspace {
  display: grid;
  min-width: 0;
  flex: 1;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: clamp(.35rem, 1.25vw, .85rem);
  padding: clamp(.5rem, 1.7vw, 1.2rem);
}

.product-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.product-header > div { display: grid; gap: clamp(.12rem, .35vw, .28rem); }

.product-header span,
.product-header time,
.product-metrics span,
.product-metrics > div > small,
.product-chart-head,
.product-chart-axis,
.product-feed small,
.product-feed time {
  font-family: var(--font-mono);
  letter-spacing: .08em;
}

.product-header span {
  color: var(--signal);
  font-size: clamp(.27rem, .62vw, .43rem);
}

.product-header strong {
  color: rgba(255,255,255,.94);
  font: 600 clamp(.55rem, 1.45vw, 1.05rem)/1.05 var(--font-display);
  letter-spacing: -.025em;
}

.product-header time {
  color: rgba(255,255,255,.34);
  font-size: clamp(.24rem, .55vw, .38rem);
  white-space: nowrap;
}

.product-metrics {
  display: grid;
  padding-block: clamp(.35rem, 1vw, .7rem);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-metrics > div {
  display: grid;
  min-width: 0;
  gap: clamp(.1rem, .3vw, .22rem);
  padding-inline: clamp(.35rem, 1.1vw, .8rem);
  border-left: 1px solid rgba(255,255,255,.07);
}

.product-metrics > div:first-child { padding-left: 0; border-left: 0; }

.product-metrics span {
  overflow: hidden;
  color: rgba(255,255,255,.36);
  font-size: clamp(.22rem, .5vw, .35rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-metrics strong {
  color: rgba(255,255,255,.91);
  font: 500 clamp(.5rem, 1.5vw, 1.05rem)/1 var(--font-display);
  letter-spacing: -.04em;
  white-space: nowrap;
}

.product-metrics strong small { color: rgba(255,255,255,.48); font-size: .45em; }

.product-metrics > div > small {
  color: rgba(var(--signal-rgb), .88);
  font-size: clamp(.2rem, .46vw, .32rem);
}

.product-chart {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.product-chart-head {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  justify-content: space-between;
  color: rgba(255,255,255,.4);
  font-size: clamp(.22rem, .52vw, .36rem);
}

.product-chart-head b { color: rgba(255,255,255,.22); font-weight: 500; }

.product-chart svg {
  position: absolute;
  inset: clamp(.5rem, 1.25vw, .9rem) 0 clamp(.45rem, 1vw, .7rem);
  width: 100%;
  height: calc(100% - clamp(.95rem, 2.25vw, 1.6rem));
  overflow: visible;
}

.product-chart-grid {
  fill: none;
  stroke: rgba(255,255,255,.07);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.product-chart-area { fill: url(#productChartFill); }

.product-chart-line {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: product-chart-draw 2.2s var(--ease-out) forwards;
}

.product-chart-point {
  fill: var(--signal);
  stroke: rgba(var(--signal-rgb), .22);
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
  animation: product-point 1.7s ease-in-out infinite alternate;
}

.product-chart-axis {
  position: absolute;
  right: 0;
  bottom: .05rem;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.2);
  font-size: clamp(.18rem, .42vw, .3rem);
}

.product-feed { display: grid; gap: clamp(.25rem, .65vw, .45rem); }

.product-feed > div {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(.25rem, .7vw, .52rem);
}

.product-feed > div > i {
  width: clamp(.24rem, .5vw, .36rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 .7rem rgba(var(--signal-rgb), .38);
}

.product-feed > div:nth-child(2) > i { background: rgba(255,255,255,.38); box-shadow: none; }
.product-feed > div > span { display: grid; min-width: 0; gap: .05rem; }

.product-feed b {
  overflow: hidden;
  color: rgba(255,255,255,.75);
  font: 500 clamp(.3rem, .68vw, .48rem)/1.2 var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-feed small,
.product-feed time {
  overflow: hidden;
  color: rgba(255,255,255,.28);
  font-size: clamp(.2rem, .45vw, .32rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-frame {
  position: absolute;
  right: 7%;
  bottom: 9%;
  width: 23%;
  aspect-ratio: 9 / 18;
  padding: 5%;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 1.5rem;
  background: #11110f;
  box-shadow: 0 1.5rem 4rem rgba(0,0,0,.6);
  transform: rotate(5deg);
}

.phone-sensor {
  position: absolute;
  z-index: 2;
  top: 3.2%;
  left: 50%;
  width: 28%;
  height: 1.4%;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  transform: translateX(-50%);
}

.phone-screen {
  display: flex;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  padding: 15% 8% 8%;
  border-radius: calc(1.5rem - 5px);
  background: radial-gradient(circle at 50% 39%, rgba(var(--signal-rgb), .13), transparent 34%), #151513;
}

.phone-screen header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-screen header > b {
  display: grid;
  width: clamp(.6rem, 1.6vw, 1.05rem);
  aspect-ratio: 1;
  place-items: center;
  background: var(--signal);
  color: #090908;
  font: 800 clamp(.26rem, .6vw, .42rem)/1 var(--font-mono);
}

.phone-screen header > span {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: rgba(255,255,255,.42);
  font: 600 clamp(.19rem, .42vw, .3rem)/1 var(--font-mono);
  letter-spacing: .08em;
}

.phone-screen header i {
  width: clamp(.18rem, .4vw, .28rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--signal);
}

.phone-screen > p {
  margin-top: 20%;
  color: var(--signal);
  font: 600 clamp(.2rem, .46vw, .32rem)/1 var(--font-mono);
  letter-spacing: .12em;
}

.phone-screen > strong {
  margin-top: 5%;
  color: rgba(255,255,255,.92);
  font: 600 clamp(.4rem, 1vw, .7rem)/1.05 var(--font-display);
  letter-spacing: -.025em;
}

.phone-orb {
  position: relative;
  display: grid;
  width: 64%;
  aspect-ratio: 1;
  margin: 15% auto 12%;
  place-items: center;
  border: 1px solid var(--signal);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--signal-rgb), .58) 0 4%, transparent 5% 29%, rgba(var(--signal-rgb), .15) 30% 52%, transparent 53%);
  box-shadow: 0 0 2rem rgba(var(--signal-rgb), .08);
  animation: orbit-breathe 2.2s ease-in-out infinite alternate;
}

.phone-orb::before,
.phone-orb::after {
  position: absolute;
  border: 1px solid rgba(var(--signal-rgb), .24);
  border-radius: 50%;
  content: "";
}

.phone-orb::before { inset: -10%; }
.phone-orb::after { inset: 30%; border-color: rgba(255,255,255,.25); }

.phone-orb > i {
  width: 7%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 .8rem var(--signal);
}

.phone-transcript { display: grid; gap: .18rem; }

.phone-transcript span {
  overflow: hidden;
  color: rgba(255,255,255,.72);
  font: 500 clamp(.24rem, .56vw, .39rem)/1.25 var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-transcript small {
  color: rgba(255,255,255,.3);
  font: 500 clamp(.17rem, .4vw, .28rem)/1 var(--font-mono);
  letter-spacing: .06em;
}

.phone-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8%;
  border-top: 1px solid rgba(255,255,255,.09);
  color: var(--signal);
  font: 600 clamp(.18rem, .42vw, .3rem)/1 var(--font-mono);
  letter-spacing: .08em;
}

.phone-action time { color: rgba(255,255,255,.3); }

@keyframes product-live {
  50% { opacity: .5; transform: scale(.76); }
}

@keyframes product-chart-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes product-point {
  to { filter: drop-shadow(0 0 .35rem var(--signal)); transform: scale(1.25); transform-origin: 520px 25px; }
}

@container (max-width: 360px) {
  .product-feed { display: none; }
  .product-workspace { grid-template-rows: auto auto minmax(0, 1fr); }
  .product-chart-axis span:nth-child(even) { display: none; }
}

.knowledge-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 24%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(var(--signal-rgb), .62);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--signal-rgb), .24), rgba(10,10,9,.86) 65%);
  box-shadow: 0 0 5rem rgba(var(--signal-rgb), .18);
  transform: translate(-50%, -50%);
}

.knowledge-core::before,
.knowledge-core::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.knowledge-core::before { inset: -28%; }
.knowledge-core::after { inset: -58%; border-style: dashed; animation: slow-spin 18s linear infinite; }

.knowledge-core span {
  font: 700 clamp(.7rem, 1.2vw, 1rem)/1 var(--font-mono);
  letter-spacing: .2em;
}

.knowledge-core i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--signal);
  transform: translate(-50%, 2rem);
  box-shadow: 0 0 1.2rem var(--signal);
}

@keyframes slow-spin { to { transform: rotate(1turn); } }

.knowledge-node {
  position: absolute;
  z-index: 3;
  display: grid;
  width: clamp(3.2rem, 8vw, 5.5rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: rgba(255,255,255,.65);
  background: rgba(13,13,11,.92);
  font: 600 clamp(.46rem, .7vw, .62rem)/1 var(--font-mono);
  letter-spacing: .08em;
}

.node-a { top: 12%; left: 14%; }
.node-b { top: 10%; right: 12%; }
.node-c { right: 8%; bottom: 12%; }
.node-d { bottom: 8%; left: 11%; }

.knowledge-lines,
.platform-lines,
.private-system-media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255,255,255,.15);
  stroke-width: 1;
}

.knowledge-lines .pulse-line {
  stroke: var(--signal);
  stroke-dasharray: 8 22;
  animation: line-flow 2s linear infinite;
}

@keyframes line-flow { to { stroke-dashoffset: -60; } }

.voice-wave {
  position: absolute;
  bottom: 9%;
  left: 50%;
  z-index: 4;
  display: flex;
  height: 2rem;
  align-items: center;
  gap: .28rem;
  transform: translateX(-50%);
}

.voice-wave i {
  width: 2px;
  height: 30%;
  background: var(--signal);
  animation: wave 1.1s ease-in-out infinite alternate;
}

.voice-wave i:nth-child(2n) { animation-delay: -.25s; }
.voice-wave i:nth-child(3n) { animation-delay: -.55s; }
@keyframes wave { to { height: 100%; } }

.platform-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 26%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--signal);
  background: rgba(13,13,11,.95);
  transform: translate(-50%, -50%) rotate(45deg);
}

.platform-core span {
  font: 600 clamp(.42rem, .7vw, .6rem)/1 var(--font-mono);
  letter-spacing: .08em;
  transform: rotate(-45deg);
}

.platform-core i {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255,255,255,.13);
  animation: slow-spin 12s linear infinite;
}

.platform-node {
  position: absolute;
  z-index: 3;
  display: flex;
  width: 18%;
  min-width: 5rem;
  padding: .8rem;
  align-items: center;
  gap: .75rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(13,13,11,.88);
}

.platform-node b { color: var(--signal); font: 600 .6rem/1 var(--font-mono); }
.platform-node span { color: rgba(255,255,255,.62); font: 600 .55rem/1 var(--font-mono); letter-spacing: .08em; }
.platform-node-a { top: 46%; left: 3%; }
.platform-node-b { top: 10%; left: 41%; }
.platform-node-c { top: 46%; right: 3%; }
.platform-node-d { bottom: 9%; left: 41%; }
.platform-lines { stroke-dasharray: 4 8; animation: line-flow 2.4s linear infinite; }

.system-steps {
  position: relative;
}

.system-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  min-height: 86svh;
  align-content: center;
  gap: 1rem;
  padding-block: 5rem;
  color: rgba(255,255,255,.62);
  border-top: 1px solid rgba(255,255,255,.08);
  transition: color .55s ease, border-color .55s ease;
}

.system-step:first-child { border-top-color: transparent; }
.system-step.is-active { color: var(--white); border-color: rgba(var(--signal-rgb), .45); }

.step-number {
  padding-top: .25rem;
  color: var(--signal);
  font: 600 .65rem/1 var(--font-mono);
}

.system-step h3 {
  max-width: 14ch;
  margin-top: 1.25rem;
  font-size: clamp(2rem, 3.2vw, 4rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
}

.system-step > div > p:not(.step-label) {
  max-width: 32rem;
  margin-top: 1.6rem;
  color: currentColor;
  font-size: clamp(.95rem, 1.1vw, 1.08rem);
  line-height: 1.65;
}

.system-step .step-label { color: var(--signal); opacity: 1; }
.system-step.is-active .step-label { opacity: 1; }

.system-step ul,
.work-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.8rem;
}

.system-step li,
.work-copy li {
  padding: .45rem .65rem;
  border: 1px solid currentColor;
  color: inherit;
  font: 500 .54rem/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Expertise */
.expertise {
  padding-block: clamp(7rem, 12vw, 13rem);
}

.expertise-rows {
  margin-top: clamp(5rem, 8vw, 9rem);
  border-top: 1px solid var(--line-light);
}

.expertise-row {
  display: grid;
  grid-template-columns: minmax(3rem, .4fr) 1fr 1.5fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 10.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line-light);
  transition: padding .45s var(--ease-out), color .3s ease;
}

.expertise-row > span {
  color: var(--signal);
  font: 600 .65rem/1 var(--font-mono);
}

.expertise-row h3 {
  font-size: clamp(2rem, 3.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -.055em;
}

.expertise-row p {
  max-width: 31rem;
  color: var(--muted-light);
  line-height: 1.6;
}

.expertise-row i {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  font-style: normal;
  transition: color .3s ease, background .3s ease, transform .45s var(--ease-out);
}

.expertise-row:hover {
  padding-inline: 1.1rem;
}

.expertise-row:hover i {
  color: var(--ink);
  background: var(--signal);
  transform: rotate(45deg);
}

/* Principle */
.principle {
  position: relative;
  min-height: 90svh;
  overflow: hidden;
  background: var(--ink);
}

.principle-grid {
  pointer-events: none;
  background-size: 5rem 5rem;
  -webkit-mask-image: radial-gradient(circle at 70% 50%, #000, transparent 68%);
  mask-image: radial-gradient(circle at 70% 50%, #000, transparent 68%);
}

.principle::before {
  position: absolute;
  top: 50%;
  right: -13vw;
  width: min(55vw, 52rem);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(var(--signal-rgb), .6);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(var(--signal-rgb), .035), 0 0 0 10rem rgba(var(--signal-rgb), .02);
  transform: translateY(-50%);
}

.principle-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 90svh;
  padding-block: clamp(6rem, 10vw, 10rem);
  flex-direction: column;
  justify-content: center;
}

.principle h2 {
  max-width: 15ch;
  margin-top: clamp(3rem, 6vw, 6rem);
  font-size: clamp(4rem, 9.6vw, 11rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1;
}

.principle h2 span,
.principle h2 em {
  display: block;
  text-wrap: balance;
}

.principle h2 em {
  margin-top: .1em;
  color: var(--signal);
  font-style: normal;
}

.principle-copy {
  max-width: 37rem;
  margin-top: clamp(2rem, 4vw, 4rem);
  margin-left: min(42vw, 33rem);
  color: rgba(255,255,255,.64);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.65;
}

.proof-markers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line-dark);
}

.proof-markers li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-top: 1rem;
  color: rgba(255,255,255,.7);
}

.proof-markers li:last-child { justify-content: flex-end; }
.proof-markers span { width: .42rem; height: .42rem; border-radius: 50%; background: var(--signal); animation: node-pulse 2.6s ease-in-out infinite; }
.proof-markers b { font: 500 .61rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

/* Selected work */
.work {
  padding-block: clamp(7rem, 12vw, 13rem);
}

.work-list {
  margin-top: clamp(5rem, 10vw, 10rem);
}

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(21rem, .95fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 8rem);
  margin-top: clamp(6rem, 10vw, 11rem);
}

.work-item:first-child { margin-top: 0; }
.work-item-b { grid-template-columns: minmax(21rem, .95fr) minmax(0, 1.35fr); }
.work-item-b .work-media { order: 2; }
.work-item-b .work-copy { order: 1; }

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #12120f;
}

.work-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(10,10,9,.16);
}

.work-media video,
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 1s ease;
}

.work-media video { filter: saturate(.82) contrast(1.04); }
.work-item:hover .work-media video,
.work-item:hover .work-media img { transform: scale(1.035); }

.media-corner {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--ink);
  background: var(--signal);
  font: 700 .62rem/1 var(--font-mono);
}

.work-copy h3 {
  max-width: 100%;
  margin-top: 1.3rem;
  font-size: clamp(2.3rem, 3.75vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .96;
}

html[lang="de"] .intro-statement h2,
html[lang="de"] .work-copy h3,
html[lang="de"] .about-main h2,
html[lang="de"] .contact-intro h2 {
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 8 4 4;
}

.work-copy > p:not(.step-label) {
  max-width: 31rem;
  margin-top: 1.7rem;
  color: var(--muted-light);
  line-height: 1.65;
}

.work-copy li { color: var(--muted-light); border-color: var(--line-light); }

.private-system-media {
  background: #0d0d0b;
}

.private-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  width: 25%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--signal);
  border-radius: 50%;
  color: var(--white);
  background: radial-gradient(circle, rgba(var(--signal-rgb),.25), transparent 65%);
  transform: translate(-50%, -50%);
}

.private-core span { font: 500 .5rem/1 var(--font-mono); letter-spacing: .15em; }
.private-core b { margin-top: .35rem; font-size: clamp(1rem, 3vw, 2.5rem); }
.private-core i { position: absolute; inset: -32%; border: 1px dashed rgba(255,255,255,.22); border-radius: 50%; animation: slow-spin 18s linear infinite; }

.private-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 10%;
  min-width: 3rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: rgba(255,255,255,.64);
  background: #0d0d0b;
  font: 600 .5rem/1 var(--font-mono);
}

.private-node-a { top: 16%; left: 13%; }
.private-node-b { top: 13%; right: 14%; }
.private-node-c { right: 10%; bottom: 13%; }
.private-node-d { bottom: 10%; left: 12%; }
.private-system-media svg { stroke: rgba(255,255,255,.18); }

/* About */
.about {
  padding-block: clamp(7rem, 11vw, 12rem);
  background: var(--ink-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(5rem, .5fr) 2.3fr minmax(18rem, .75fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 6rem);
}

.about-main h2 {
  max-width: 13ch;
  margin-top: 1.5rem;
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .94;
}

.about-aside {
  display: flex;
  padding-top: clamp(7rem, 13vw, 14rem);
  flex-direction: column;
  align-items: flex-start;
}

.about-aside p {
  color: var(--muted-dark);
  line-height: 1.65;
}

.about-aside a,
.about-aside span {
  margin-top: 1.8rem;
  color: var(--white);
  font: 600 .65rem/1 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.about-aside a { padding-bottom: .4rem; border-bottom: 1px solid var(--signal); }
.about-aside span { margin-top: .8rem; color: var(--muted-dark); }

/* Contact */
.contact {
  padding-block: clamp(7rem, 12vw, 13rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, .72fr);
  gap: clamp(4rem, 10vw, 11rem);
}

.contact-intro .eyebrow {
  margin-top: clamp(3rem, 7vw, 7rem);
}

.contact-intro h2 {
  max-width: 9.5ch;
  margin-top: 1.5rem;
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 500;
  letter-spacing: -.072em;
  line-height: .87;
}

.contact-intro > p:not(.section-index, .eyebrow) {
  max-width: 35rem;
  margin-top: 2.5rem;
  color: var(--muted-light);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.65;
}

.direct-mail {
  display: flex;
  width: min(100%, 35rem);
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-light);
  font: 600 clamp(.78rem, 1vw, .92rem)/1 var(--font-mono);
  transition: color .25s ease, border-color .25s ease;
}

.direct-mail:hover { color: var(--signal); border-color: var(--signal); }

.contact-form {
  align-self: end;
  padding-top: 3rem;
  border-top: 2px solid var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  align-items: start;
  gap: 1rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--line-light);
}

.form-row label {
  padding-top: .55rem;
  color: var(--muted-light);
  font: 600 .6rem/1.3 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  min-width: 0;
  padding: .35rem 0;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1.5;
}

.form-row textarea { resize: vertical; }
.form-row select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 8px) 50%, 100% 50%; background-size: 8px 8px, 8px 8px; background-repeat: no-repeat; padding-right: 1.3rem; }

.form-row:focus-within { border-color: var(--signal); }

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .8rem;
  margin-block: 1.4rem 2rem;
  color: var(--muted-light);
  font-size: .74rem;
  line-height: 1.55;
}

.form-consent input {
  width: 1rem;
  height: 1rem;
  margin: .1rem 0 0;
  accent-color: var(--signal);
}

.form-consent a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: .2rem; }
.contact-form .button { width: 100%; }

/* Footer */
.site-footer {
  padding: clamp(4rem, 8vw, 8rem) var(--gutter) 2rem;
  background: var(--ink);
}

.footer-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.footer-brand .brand-mark { width: 3.2rem; height: 3.2rem; font-size: .9rem; }
.footer-brand .brand-type { font-size: clamp(1.2rem, 2vw, 1.8rem); }
.footer-top p { max-width: 27rem; color: var(--muted-dark); text-align: right; }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font: 500 .6rem/1.4 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-bottom div { display: flex; gap: 1.5rem; }
.footer-bottom a { transition: color .2s ease; }
.footer-bottom a:hover { color: var(--white); }
.back-top { justify-self: end; }

/* Legal-page compatibility */
.container {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(10,10,9,.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.nav-logo { font-weight: 800; letter-spacing: -.03em; }
.nav-logo-accent { color: var(--signal); }
.nav-logo img { width: auto; max-height: 2.2rem; }
.nav-links, .lang-toggle { display: flex; align-items: center; gap: 1rem; }
.nav-link, .lang-btn { color: var(--muted-dark); font: 600 .62rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.lang-btn { padding: .3rem; border: 0; background: transparent; }
.lang-btn.active, .nav-link:hover, .lang-btn:hover { color: var(--signal); }
.lang-divider { color: rgba(255,255,255,.25); }

.footer {
  padding: 1.5rem 0;
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
}

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-microcopy, .footer-link { font: 500 .58rem/1.4 var(--font-mono); letter-spacing: .04em; }
.footer-links { display: flex; gap: 1rem; }
.footer-link:hover { color: var(--signal); }

/* Responsive */
@media (max-width: 1100px) {
  :root { --gutter: clamp(1.25rem, 3.2vw, 3rem); }
  .intro-grid, .about-grid { grid-template-columns: 4rem 1.8fr .8fr; }
  .systems-story { grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .8fr); gap: 3rem; }
  .principle-copy { margin-left: 35vw; }
  .work-item, .work-item-b { gap: 3.5rem; }
}

@media (max-width: 820px) {
  :root { --header-height: 4.75rem; }
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: 100svh; padding-top: calc(var(--header-height) + 3rem); padding-bottom: 9rem; align-items: end; }
  .hero-media { inset: 0; transform: scale(1.03); }
  .hero-media video { object-position: 60% center; }
  .hero-media-shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(10,10,9,.82) 42%, rgba(10,10,9,.22) 75%, rgba(10,10,9,.55) 100%), linear-gradient(90deg, rgba(10,10,9,.7), transparent); }
  .hero-orbits { right: -23%; width: 92vw; top: 38%; }
  .hero-coordinate { display: none; }
  .hero-copy { width: 100%; }
  .hero h1 { max-width: 11ch; font-size: clamp(3.55rem, 14vw, 6.7rem); }
  .hero-intro { max-width: 34rem; font-size: 1rem; }
  .hero-rail { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; bottom: 1.25rem; }
  .hero-rail li:nth-child(3), .hero-rail li:nth-child(6) { text-align: right; }
  .hero-rail li:last-child { text-align: right; }
  .scroll-cue { display: none; }

  .intro-grid, .about-grid { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .intro-aside, .about-aside { grid-column: 2; padding-top: 3rem; }

  .systems-heading, .section-heading-grid, .work-heading { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .systems-story { display: block; }
  .system-stage-wrap {
    position: relative;
    top: auto;
    z-index: 1;
    height: clamp(19rem, 62vw, 30rem);
    padding-bottom: 0;
    background: var(--ink-soft);
  }
  .system-stage { min-height: 0; }
  .system-steps { z-index: 2; background: var(--ink-soft); }
  .system-step { min-height: 0; padding-block: 4rem; }
  .stage-label-bottom { display: none; }

  .expertise-row { grid-template-columns: 2.5rem 1fr auto; gap: 1.1rem; min-height: 0; padding-block: 2rem; }
  .expertise-row p { grid-column: 2 / -1; }
  .expertise-row i { grid-column: 3; grid-row: 1; }

  .principle-copy { margin-left: 0; }
  .proof-markers { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .proof-markers li:last-child { justify-content: flex-start; }

  .work-item, .work-item-b { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .work-item-b .work-media, .work-item-b .work-copy { order: initial; }
  .work-copy { max-width: 40rem; }

  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form { max-width: 44rem; }

  .footer-bottom { grid-template-columns: 1fr auto; }
  .footer-bottom div { grid-column: 1 / -1; grid-row: 1; }
  .back-top { grid-column: 2; grid-row: 2; }
}

@media (min-width: 821px) and (max-height: 760px) {
  .hero {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 5.4rem;
  }

  .hero-copy .eyebrow { margin-bottom: 1.2rem; }
  .hero h1 { font-size: min(7.05vw, 5.65rem); }
  .hero-intro { max-width: 39rem; margin-top: 1.25rem; font-size: .98rem; line-height: 1.45; }
  .hero-actions { margin-top: 1.25rem; }
  .button { min-height: 3.15rem; }
  .hero-rail { bottom: 1rem; }
  .scroll-cue { bottom: 3.9rem; }
  .hero-coordinate-a { display: none; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.15rem; }
  .brand-type { font-size: .72rem; }
  .language-switch { gap: .25rem; }
  .header-actions { gap: .7rem; }
  .hero { padding-bottom: 8.3rem; }
  .hero-copy .eyebrow { max-width: 22rem; margin-bottom: 1.35rem; }
  .hero h1 { font-size: clamp(3.25rem, 16vw, 5.2rem); line-height: .88; }
  .hero-intro { margin-top: 1.5rem; line-height: 1.5; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: .4rem; margin-top: 1.5rem; }
  .button { min-height: 3.25rem; }
  .hero-rail li { font-size: .54rem; }

  .intro, .expertise, .work, .contact, .about { padding-block: 6rem; }
  .intro-grid, .about-grid, .systems-heading, .section-heading-grid, .work-heading { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .intro-aside, .about-aside { grid-column: 1; }
  .intro-statement h2, .about-main h2 { font-size: clamp(3rem, 14vw, 5rem); }
  .intro-aside { grid-template-columns: auto 1fr; }
  .systems { padding-top: 6rem; }
  .systems-heading h2, .section-heading-grid h2 { font-size: clamp(2.8rem, 13vw, 4.6rem); }
  .systems-story { margin-top: 3.5rem; padding-inline: 0; }
  .system-stage-wrap { top: auto; height: clamp(17rem, 78vw, 22rem); padding-inline: var(--gutter); }
  .system-steps { padding-inline: var(--gutter); }
  .system-step { grid-template-columns: 2rem 1fr; min-height: 0; padding-block: 3.5rem; }
  .system-step h3 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .phone-frame { border-radius: .8rem; }
  .stage-label-top { font-size: .52rem; }

  .expertise-rows { margin-top: 4rem; }
  .expertise-row { grid-template-columns: 2rem 1fr auto; }
  .expertise-row i { width: 2.6rem; height: 2.6rem; }
  .expertise-row:hover { padding-inline: 0; }

  .principle, .principle-inner { min-height: 85svh; }
  .principle h2 { margin-top: 3rem; font-size: clamp(4rem, 20vw, 6.7rem); }
  .principle-copy { margin-top: 2rem; }
  .proof-markers { margin-top: 4rem; grid-template-columns: 1fr; gap: .8rem; }
  .principle::before { right: -55vw; width: 115vw; }

  .work-list { margin-top: 4rem; }
  .work-item { margin-top: 6rem; }
  .work-media { margin-inline: calc(var(--gutter) * -1); aspect-ratio: 4 / 3; }
  .work-copy h3 { font-size: clamp(2rem, 9.8vw, 3.5rem); }

  .about-aside { padding-top: 1.8rem; }
  .contact-intro h2 { font-size: clamp(4rem, 19vw, 6rem); }
  .form-row { grid-template-columns: 1fr; gap: .3rem; }
  .form-row label { padding-top: 0; }

  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-top p { text-align: left; }
  .footer-bottom { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-bottom div { grid-column: 1; position: static; flex-wrap: wrap; }
  .back-top { grid-column: 1; grid-row: auto; justify-self: start; }

  .nav-links .nav-link { display: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 821px) and (max-width: 900px) and (max-height: 520px) {
  .systems-story { display: block; }
  .system-stage-wrap {
    position: relative;
    top: auto;
    height: min(68svh, 22rem);
    padding-bottom: 0;
  }
  .system-stage { min-height: 0; }
  .system-step { min-height: 0; padding-block: 3.5rem; }
}

@media (max-width: 820px) and (max-height: 520px) {
  .mobile-nav-inner {
    min-height: max-content;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 1rem;
  }
  .mobile-nav a { padding-block: .55rem; }
  .mobile-nav a b { font-size: clamp(2rem, 10vh, 2.8rem); }
  .mobile-nav p { margin-top: 1.5rem; }

  .system-stage-wrap { height: min(68svh, 22rem); }
  .system-step { padding-block: 3rem; }
}

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

@media (prefers-contrast: more) {
  :root { --muted-dark: #d3d1c8; --muted-light: #393832; --line-dark: rgba(255,255,255,.4); --line-light: rgba(0,0,0,.4); }
}
