/* ============================================================
   ETEO LABS - Brand refactor
   ============================================================ */

:root {
  --brand-black: #000000;
  --brand-white: #FFFFFF;
  --brand-platinum: #DDDDDD;
  --brand-copper: #B87333;
  --brand-copper-deep: #5A2C0D;

  --bg: var(--brand-black);
  --fg: var(--brand-white);
  --accent: var(--brand-copper);
  --muted: rgba(255, 255, 255, 0.58);
  --hairline: rgba(255, 255, 255, 0.14);
  --hairline-strong: rgba(255, 255, 255, 0.28);

  --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shell-max: 1440px;
  --shell-pad-inline: 48px;
  --rail-offset: 52px;
  --nav-offset: 112px;
  --nav-logo-width: 150px;
  --nav-logo-condensed-width: 138px;
  --section-gap: 144px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  transition: background 420ms var(--ease), color 420ms var(--ease);
}

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

body.no-cursor,
body.no-cursor * {
  cursor: none !important;
}

::selection {
  background: var(--accent);
  color: var(--brand-black);
}

::-webkit-scrollbar {
  width: 0;
}

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

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

[data-screen-label] {
  scroll-margin-top: var(--nav-offset);
}

.wrap {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding:
    0 calc(var(--shell-pad-inline) + env(safe-area-inset-right, 0px))
    0 calc(var(--shell-pad-inline) + var(--rail-offset) + env(safe-area-inset-left, 0px));
  position: relative;
}

.mono,
.tag,
.nav-link,
.nav-cta,
.language-toggle,
.hero-counter,
.hero-sub,
.stack-number,
.stack-caption,
.stack-field-k,
.stack-header-ref,
.stack-tab-label,
.case-meta,
.case-client-name,
.case-badge,
.case-bullet-mark,
.case-stat .lbl,
.stat-label,
.contact-col .k,
.foot,
.tweaks-panel {
  font-family: var(--font-body);
}

.tag {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hairline {
  border-top: 1px solid var(--hairline);
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 20px;
  height: 20px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 260ms var(--ease), height 260ms var(--ease);
  mix-blend-mode: difference;
}

.cursor svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cursor-shape {
  fill: none;
  stroke: var(--brand-white);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  transition: stroke 220ms var(--ease), stroke-width 220ms var(--ease);
}

.cursor.hovering {
  width: 54px;
  height: 54px;
}

.cursor.hovering .cursor-shape {
  stroke: var(--brand-copper);
  stroke-width: 1.1;
}

.cursor.clicking .cursor-shape {
  stroke-width: 2;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  padding-top: 18px;
  color: var(--fg);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 88px;
  border-bottom: 1px solid color-mix(in oklch, var(--fg) 10%, transparent);
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
  opacity: 0.96;
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}

.nav.is-condensed::before,
.nav.is-menu-open::before {
  height: 74px;
  background: color-mix(in oklch, var(--bg) 94%, transparent);
}

.nav-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  min-height: 58px;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding:
    0 calc(var(--shell-pad-inline) + env(safe-area-inset-right, 0px))
    0 calc(var(--shell-pad-inline) + var(--rail-offset) + env(safe-area-inset-left, 0px));
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: calc(var(--nav-logo-width) + 6px);
  outline: none;
}

.nav-logo-mark {
  position: relative;
  display: block;
  width: var(--nav-logo-width);
  max-height: 42px;
  aspect-ratio: 1950 / 500;
  flex: 0 0 auto;
  transition: width 240ms var(--ease), transform 240ms var(--ease);
}

.nav.is-condensed .nav-logo-mark {
  width: var(--nav-logo-condensed-width);
}

.nav-logo-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.16));
  transition: opacity 240ms var(--ease), transform 240ms var(--ease), filter 240ms var(--ease);
}

.nav-logo:hover .nav-logo-img,
.nav-logo:focus-visible .nav-logo-img {
  transform: translateY(-1px);
}

.nav-logo-img-dark {
  opacity: 0;
}

html[data-palette="white"] .nav-logo-img-light,
html[data-palette="platinum"] .nav-logo-img-light {
  opacity: 0;
}

html[data-palette="white"] .nav-logo-img-dark,
html[data-palette="platinum"] .nav-logo-img-dark {
  opacity: 1;
}

.nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 22px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 0;
  color: color-mix(in oklch, var(--fg) 58%, transparent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  outline: none;
  transition: color 180ms var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease);
}

.nav-link-code {
  color: color-mix(in oklch, var(--accent) 68%, var(--fg));
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--fg);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 3px;
  border: 1px solid color-mix(in oklch, var(--fg) 16%, transparent);
  border-radius: 999px;
  background: color-mix(in oklch, var(--fg) 4%, transparent);
}

.language-toggle-option {
  display: inline-flex;
  min-width: 34px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: color-mix(in oklch, var(--fg) 64%, transparent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.language-toggle-option:hover,
.language-toggle-option:focus-visible {
  color: var(--fg);
  outline: none;
}

.language-toggle-option.is-active {
  background: var(--accent);
  color: var(--brand-black);
}

.nav-cta,
.nav-mobile-drawer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--brand-black);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), border-color 180ms var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible,
.nav-mobile-drawer-cta:hover,
.nav-mobile-drawer-cta:focus-visible {
  background: transparent;
  color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.nav-cta-short {
  display: none;
}

.nav-mobile-chip,
.nav-mobile-toggle,
.nav-mobile-drawer {
  display: none;
}

body.nav-menu-open {
  overflow: hidden;
}

/* Rail */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--rail-offset);
  border-right: 1px solid var(--hairline);
  background: color-mix(in oklch, var(--bg) 96%, var(--fg) 4%);
  overflow: hidden;
  pointer-events: none;
}

.rail::before {
  content: '';
  position: absolute;
  top: 76px;
  right: -1px;
  width: 16px;
  height: 72px;
  background: var(--accent);
}

.rail-track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: railScroll 60s linear infinite;
}

.rail-seg {
  padding: 24px 0;
  color: color-mix(in oklch, var(--fg) 70%, transparent);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@keyframes railScroll {
  to {
    transform: translateY(-50%);
  }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: calc(var(--nav-offset) + 24px) 0 72px;
  background: var(--brand-black);
  color: var(--brand-white);
  isolation: isolate;
}

.hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: var(--rail-offset);
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.hero .wrap::before {
  content: '';
  position: absolute;
  top: 8px;
  left: calc(var(--shell-pad-inline) + var(--rail-offset));
  width: 18px;
  height: clamp(64px, 8vw, 96px);
  background: var(--brand-copper);
}

.hero-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: clamp(48px, 7vh, 96px);
}

.hero-counter {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: right;
  text-transform: uppercase;
}

.hero-headline {
  max-width: min(15.6ch, 100%);
  margin: 0 0 clamp(40px, 8vh, 96px);
  padding-left: clamp(42px, 5vw, 68px);
  color: var(--brand-white);
  font-family: var(--font-heading);
  font-size: clamp(42px, 7.4vw, 126px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero-headline-line,
.hero-headline-rotator-block {
  display: block;
}

.hero-headline-rotator-block,
.hero-headline em {
  max-inline-size: min(12.5ch, 100%);
  color: var(--brand-copper);
  font-style: normal;
  font-weight: 800;
}

.rot-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-height: 1lh;
  overflow: hidden;
  isolation: isolate;
  transition: height 420ms var(--ease-out);
}

.rot-item {
  display: block;
  width: 100%;
  color: var(--brand-copper);
  line-height: 0.96;
  overflow-wrap: anywhere;
  white-space: normal;
  transition: transform 520ms var(--ease-out), opacity 220ms ease-out;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-desc {
  max-width: 39ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.48;
}

.hero-sub {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.65;
  text-transform: uppercase;
}

.hero-cta-col,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta-col {
  justify-content: flex-end;
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--brand-white);
}

.hero .btn-ghost:hover,
.hero .btn-ghost:focus-visible {
  border-color: var(--brand-copper);
  color: var(--brand-copper);
}

/* Buttons */
.btn,
.case-btn {
  display: inline-flex;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.btn-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--brand-black);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: transparent;
  color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.btn-ghost {
  border: 1px solid color-mix(in oklch, var(--fg) 32%, transparent);
  background: transparent;
  color: var(--fg);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.btn .arrow,
.nav-cta .arrow,
.case-btn .arrow {
  display: inline-block;
  transition: transform 180ms var(--ease);
}

.btn:hover .arrow,
.nav-cta:hover .arrow,
.case-btn:hover .arrow {
  transform: translateX(3px);
}

.ui-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid color-mix(in oklch, var(--fg) 22%, transparent);
  border-radius: 999px;
  background: color-mix(in oklch, var(--fg) 4%, transparent);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 180ms var(--ease), color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease);
}

.ui-button:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--accent) 42%, transparent);
  outline-offset: 2px;
}

.ui-button-size-icon {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
}

.ui-button svg {
  flex: 0 0 auto;
}

/* Shared sections */
.section {
  padding: var(--section-gap) 0;
  background: var(--bg);
  color: var(--fg);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 78px);
  align-items: start;
  margin-bottom: clamp(54px, 8vw, 96px);
}

.section-title h2 {
  max-width: 18ch;
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: clamp(38px, 5.4vw, 82px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.section-title h2 em,
.contact-big em,
.process-step h3 em,
.process-mobile-copy h3 em,
.stat-num em,
.manifesto-word.accent,
.shatter-word-flow {
  color: var(--accent);
  font-style: normal;
}

.shatter-word {
  position: relative;
  display: inline-block;
  color: var(--accent);
}

.shatter-word-highlight,
.shatter-word-shards {
  display: none;
}

.clients {
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}

.clients-track {
  display: flex;
  gap: clamp(48px, 6vw, 92px);
  white-space: nowrap;
  animation: marqueeH 48s linear infinite;
}

.client-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
  color: var(--fg);
  opacity: 0.68;
  transition: opacity 180ms var(--ease);
}

.client-item:hover {
  opacity: 1;
}

.client-logo {
  width: auto;
  max-width: 220px;
  height: 56px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) contrast(1.08);
}

html[data-palette="black"] .client-logo,
html[data-palette="copper"] .client-logo {
  filter: grayscale(1) brightness(0) invert(1);
}

.client-logo[src*="ecodrive"] {
  height: 80px;
  max-width: 140px;
  margin: -12px 0;
}

.client-logo[src*="solve"] {
  height: 50px;
}

.client-logo[src*="nexus"],
.client-logo[src*="best-option-notebook"],
.client-logo[src*="projetec"] {
  height: 50px;
  max-width: 260px;
}

.client-name {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes marqueeH {
  to {
    transform: translateX(-50%);
  }
}

/* Services */
.stack-wrap {
  position: relative;
  padding-bottom: 0;
}

.stack-card {
  position: sticky;
  display: block;
  margin: 0;
  padding: 0;
}

.stack-spacer {
  height: 72vh;
}

.stack-hold {
  height: 72vh;
}

.stack-inner {
  position: relative;
  min-height: 54vh;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--accent) 0 8px, transparent 8px),
    color-mix(in oklch, var(--bg) 92%, var(--fg) 8%);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.13);
  color: var(--fg);
}

.stack-tab {
  position: absolute;
  top: 18px;
  left: 30px;
  z-index: 4;
  display: inline-flex;
  height: 30px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--brand-black);
  pointer-events: none;
}

.stack-tab-shape {
  display: none;
}

.stack-tab-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.stack-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 60px 42px 20px 46px;
  border-bottom: 1px solid var(--hairline);
}

.stack-header-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 24px;
}

.stack-number,
.stack-header-ref,
.stack-caption,
.stack-field-k {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stack-header-title {
  min-width: 0;
  overflow: hidden;
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-header-ref-inline {
  display: none;
}

.stack-body {
  display: grid;
  grid-template-columns: 54px 1fr;
}

.stack-punch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 44px 0;
  border-right: 1px solid var(--hairline);
}

.punch-hole {
  width: 12px;
  height: 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  background: var(--bg);
}

.stack-body-inner {
  position: relative;
  padding: 38px 42px 46px;
}

.stack-body-head {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 42px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}

.stack-field {
  display: grid;
  gap: 6px;
}

.stack-field-v {
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
}

.stack-field-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
}

.stack-field-active .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.stack-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.stack-caption {
  margin-bottom: 14px;
  color: var(--accent);
}

.stack-title-col p {
  max-width: 34ch;
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1.18;
}

.stack-feature-list {
  display: grid;
  gap: 0;
  list-style: none;
}

.stack-feature-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  color: color-mix(in oklch, var(--fg) 86%, transparent);
  font-size: 14px;
  line-height: 1.45;
}

.stack-feature-list li:last-child {
  border-bottom: 0;
}

.stack-feature-list .k {
  color: var(--accent);
  font-weight: 800;
}

.stack-stamp {
  position: absolute;
  right: 36px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding: 8px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-body);
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.stamp-line {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.stamp-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Process */
.process-wrap {
  position: relative;
}

.process-sticky {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  align-items: center;
  overflow: hidden;
}

.process-content {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 94px);
  align-items: center;
}

.process-visual {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--accent) 0 8px, transparent 8px),
    color-mix(in oklch, var(--bg) 90%, var(--fg) 10%);
  color: var(--fg);
}

.process-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.process-visual .pv-grid {
  z-index: 0;
  opacity: 0.74;
}

.process-visual .pv-stage {
  z-index: 1;
}

.pv-header {
  position: absolute;
  top: 24px;
  right: 24px;
  left: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.pv-step-num {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.pv-step-label {
  opacity: 0.86;
}

.pv-progress {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--fg) 16%, transparent);
  overflow: hidden;
}

.pv-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 460ms var(--ease);
}

.process-visual [style*="transform-origin"] {
  transform-box: fill-box;
}

.process-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.process-step.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.process-step .n {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-step h3 {
  max-width: 12ch;
  margin-bottom: 24px;
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.6vw, 68px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

.process-step p {
  max-width: 48ch;
  color: color-mix(in oklch, var(--fg) 84%, transparent);
  font-size: 16px;
  line-height: 1.65;
}

.process-progress {
  display: flex;
  gap: 10px;
  margin-top: 48px;
}

.process-progress .pip {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--hairline);
  overflow: hidden;
}

.process-progress .pip.done,
.process-progress .pip.active::after {
  background: var(--accent);
}

.process-progress .pip.active::after {
  content: '';
  position: absolute;
  inset: 0;
  animation: fill 500ms var(--ease) forwards;
}

.process-mobile-list {
  display: grid;
  gap: 16px;
}

.process-mobile-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  background: color-mix(in oklch, var(--bg) 92%, var(--fg) 8%);
}

.process-mobile-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-mobile-rail {
  display: none;
}

.process-mobile-copy h3 {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 8vw, 38px);
  font-weight: 800;
  line-height: 1;
}

.process-mobile-copy p {
  color: color-mix(in oklch, var(--fg) 82%, transparent);
  font-size: 15px;
}

@keyframes pvRadarSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pvBlink {
  0%, 55%, 100% {
    opacity: 0.28;
  }
  62% {
    opacity: 1;
  }
  80% {
    opacity: 0.55;
  }
}

@keyframes pvArchDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pvPop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pvPulseRing {
  to {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes pvRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pvCursor {
  50% {
    opacity: 0;
  }
}

@keyframes pvSoftPulse {
  0% {
    opacity: 0.3;
    transform: scale(0.92);
  }
  60%, 100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes pvEcg {
  from {
    stroke-dashoffset: 600;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fill {
  from {
    transform: scaleX(0);
    transform-origin: left center;
  }
  to {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

/* Manifesto */
.manifesto {
  position: relative;
  height: 250vh;
  padding: 24vh 0;
  background: var(--bg);
  color: var(--fg);
}

.manifesto-sticky {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.manifesto-container {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 88px) clamp(28px, 7vw, 96px);
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
}

.manifesto-container::before {
  content: '';
  position: absolute;
  top: clamp(42px, 7vw, 88px);
  bottom: clamp(42px, 7vw, 88px);
  left: 0;
  width: 10px;
  background: var(--accent);
}

.manifesto-text {
  max-width: 22ch;
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.manifesto-word {
  display: inline-block;
  margin-right: 0.22em;
  opacity: 0.2;
  transition: opacity 420ms var(--ease), color 420ms var(--ease);
}

.manifesto-word.lit {
  opacity: 1;
}

.manifesto-shape {
  position: absolute;
  top: clamp(42px, 6vw, 76px);
  right: clamp(24px, 5vw, 72px);
  width: clamp(44px, 6vw, 76px);
  height: clamp(44px, 6vw, 76px);
  border: 2px solid var(--accent);
  transition: border-radius 500ms var(--ease), transform 500ms var(--ease);
  pointer-events: none;
}

/* Cases */
.cases-wrap {
  position: relative;
}

.cases-sticky {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  align-items: center;
  overflow: hidden;
}

.cases-shell {
  width: 100%;
  overflow: hidden;
}

.cases-shell.is-native-scroll {
  overflow: visible;
}

.cases-track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

.cases-tail-spacer {
  flex: 0 0 10vw;
}

.case-card {
  --case-tone: var(--accent);
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  flex: 0 0 clamp(520px, 56vw, 690px);
  width: clamp(520px, 56vw, 690px);
  min-height: clamp(620px, 78vh, 700px);
  padding: clamp(26px, 3vw, 38px);
  gap: 20px;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--case-tone) 28%, var(--hairline-strong));
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--case-tone) 88%, var(--accent)) 0 8px, transparent 8px),
    color-mix(in oklch, var(--bg) 90%, var(--fg) 10%);
  color: var(--fg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--case-tone);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.2);
}

.case-card-featured {
  grid-template-rows: auto auto auto 1fr auto;
}

.case-net {
  position: absolute;
  inset: 0;
  z-index: 1 !important;
  opacity: 0.2;
  pointer-events: none;
}

.case-net line,
.case-net circle {
  stroke: var(--case-tone);
}

.case-net .cn-edge {
  stroke-width: 1;
  stroke-opacity: 0.42;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: cnDraw 2.6s ease-out forwards;
}

.case-net .cn-node,
.case-net .cn-node-core {
  fill: var(--case-tone);
  stroke-opacity: 0.72;
}

.case-net .cn-ring {
  fill: none;
  stroke-opacity: 0.26;
}

.case-card > * {
  position: relative;
  z-index: 2;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.case-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid color-mix(in oklch, var(--case-tone) 42%, var(--hairline-strong));
  border-radius: 999px;
  background: color-mix(in oklch, var(--case-tone) 12%, transparent);
  color: color-mix(in oklch, var(--case-tone) 76%, var(--fg));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.case-client-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}

.case-client-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  max-width: min(100%, 360px);
}

.case-client-logo {
  display: block;
  width: auto;
  max-width: 260px;
  height: 66px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}

html[data-palette="white"] .case-client-logo,
html[data-palette="platinum"] .case-client-logo {
  filter: grayscale(1) brightness(0);
}

.case-client-logo-original {
  filter: none;
}

.case-client-logo[src*="ecodrive"] {
  height: 100px;
  max-width: 280px;
  margin: -10px 0;
}

.case-client-logo[src*="nexus"] {
  height: 66px;
  max-width: 300px;
}

.case-client-logo[src*="solve"] {
  height: 54px;
  max-width: 170px;
}

.case-client-logo[src*="fisiotrauma"] {
  height: 78px;
  max-width: 280px;
}

.case-client-logo[src*="projetec"] {
  height: 60px;
  max-width: 250px;
}

.case-client-name {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-body {
  display: grid;
  align-content: start;
  gap: 14px;
}

.case-body h4 {
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.7vw, 42px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
}

.case-body p {
  max-width: 56ch;
  color: color-mix(in oklch, var(--fg) 82%, transparent);
  font-size: 14.5px;
  line-height: 1.58;
}

.case-bullets {
  display: grid;
  gap: 9px;
  list-style: none;
}

.case-bullets li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  color: color-mix(in oklch, var(--fg) 88%, transparent);
  font-size: 14px;
  line-height: 1.45;
}

.case-bullet-mark {
  color: var(--case-tone);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.case-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.case-stat {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 14px;
}

.case-stat .num {
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: clamp(42px, 4.5vw, 62px);
  font-weight: 800;
  line-height: 1;
}

.case-stat .lbl {
  max-width: 30ch;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.case-btn {
  min-height: 40px;
  border: 1px solid var(--case-tone);
  background: transparent;
  color: var(--fg);
  font-size: 10px;
  white-space: nowrap;
}

.case-btn:hover,
.case-btn:focus-visible {
  background: var(--case-tone);
  color: var(--brand-black);
  outline: none;
}

.cases-list {
  display: grid;
  gap: 18px;
}

.cases-list .case-card {
  width: 100%;
  min-height: 0;
}

@keyframes cnDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stat-cell {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(34px, 4vw, 54px) clamp(22px, 3vw, 36px);
  border-right: 1px solid var(--hairline);
}

.stat-cell:last-child {
  border-right: 0;
}

.stat-num {
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.stat-num em {
  margin-left: 6px;
  font-size: 0.42em;
  font-weight: 800;
  vertical-align: super;
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.55;
  text-transform: uppercase;
}

/* Contact and footer */
.contact {
  position: relative;
  padding: var(--section-gap) 0 56px;
  background: var(--bg);
  color: var(--fg);
}

.contact-big {
  max-width: min(100%, 12.5ch);
  margin-bottom: clamp(36px, 7vw, 72px);
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: clamp(64px, 8vw, 132px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
  hyphens: none;
}

.contact-actions {
  margin-bottom: clamp(56px, 8vw, 92px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 42px);
  padding-top: 38px;
  border-top: 1px solid var(--hairline);
}

.contact-col {
  min-width: 0;
}

.contact-col .k {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-icon-label,
.contact-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: color-mix(in oklch, var(--fg) 5%, transparent);
  color: var(--accent);
}

.contact-icon-label {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
}

.contact-icon-label svg,
.contact-channel-icon svg,
.foot-link-button svg {
  display: block;
  width: 17px;
  height: 17px;
}

.contact-col .v {
  color: color-mix(in oklch, var(--fg) 86%, transparent);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-col .v a,
.foot-meta-link {
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}

.contact-col .v a:hover,
.contact-col .v a:focus-visible,
.foot-meta-link:hover,
.foot-meta-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.contact-channel-list {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.contact-channel-icons {
  display: inline-flex;
  gap: 10px;
  padding-top: 4px;
}

.contact-channel-icon {
  width: 38px;
  height: 38px;
  color: var(--fg);
  transition: border-color 180ms var(--ease), color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease);
}

.contact-channel-icon:hover,
.contact-channel-icon:focus-visible {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: center;
  margin-top: 72px;
  padding: 28px 0 30px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-width: 0;
}

.foot-legal-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
}

.foot-legal-line + .foot-legal-line::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.foot-legal-line strong {
  color: var(--fg);
  font-weight: 700;
}

.foot-aside {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 18px;
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.foot-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.foot-link-button:hover,
.foot-link-button:focus-visible {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Tweaks */
.tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  display: none;
  min-width: 250px;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.92);
  color: var(--brand-white);
  backdrop-filter: blur(20px);
}

.tweaks-panel.open {
  display: flex;
}

.tweaks-title {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tweaks-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.swatch {
  position: relative;
  height: 44px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.swatch.active {
  border-color: var(--brand-copper);
}

.swatch .sA,
.swatch .sB {
  position: absolute;
  top: 0;
  bottom: 0;
}

.swatch .sA {
  right: 50%;
  left: 0;
}

.swatch .sB {
  right: 0;
  left: 50%;
}

.swatch .dot {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.swatch-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Palette-specific surface tuning */
html[data-palette="white"] .nav::before,
html[data-palette="platinum"] .nav::before {
  background: color-mix(in oklch, var(--bg) 90%, transparent);
}

html[data-palette="white"] .btn-primary,
html[data-palette="platinum"] .btn-primary,
html[data-palette="white"] .nav-cta,
html[data-palette="platinum"] .nav-cta {
  color: var(--brand-black);
}

html[data-palette="copper"] .btn-primary,
html[data-palette="copper"] .nav-cta,
html[data-palette="copper"] .language-toggle-option.is-active {
  background: var(--brand-black);
  border-color: var(--brand-black);
  color: var(--brand-white);
}

/* Responsive */
@media (max-width: 1279px) {
  :root {
    --nav-offset: 98px;
    --nav-logo-width: 132px;
    --nav-logo-condensed-width: 124px;
    --shell-pad-inline: 34px;
    --section-gap: 120px;
  }

  .nav-shell {
    gap: 16px;
  }

  .nav-link {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .nav-cta-label {
    display: none;
  }

  .nav-cta-short {
    display: inline;
  }

  .hero-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .hero-cta-col {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 1023px) {
  :root {
    --nav-offset: 90px;
    --section-gap: 104px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-link-label {
    display: none;
  }

  .process-sticky {
    position: relative;
    height: auto;
    padding: 70px 0 0;
  }

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

  .process-step {
    position: relative;
    display: none;
  }

  .process-step.active {
    display: block;
  }

  .cases-sticky.is-native-scroll {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .cases-wrap.is-native-scroll {
    height: auto !important;
  }

  .cases-track.is-native-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(460px, 72vw);
    overflow-x: auto;
    padding-bottom: 18px;
    scroll-snap-type: x proximity;
  }

  .cases-track.is-native-scroll .case-card {
    width: auto;
    min-width: 0;
    scroll-snap-align: start;
  }

  .stack-card {
    position: relative;
  }

  .stack-card + .stack-card {
    margin-top: 18px;
  }

  .stack-spacer,
  .stack-hold {
    display: none;
  }
}

@media (max-width: 767px) {
  :root {
    --rail-offset: 0px;
    --shell-pad-inline: 20px;
    --nav-offset: 78px;
    --nav-logo-width: 104px;
    --nav-logo-condensed-width: 96px;
    --section-gap: 84px;
  }

  [data-screen-label] {
    scroll-margin-top: 92px;
  }

  .wrap,
  .nav-shell {
    padding-right: calc(var(--shell-pad-inline) + env(safe-area-inset-right, 0px));
    padding-left: calc(var(--shell-pad-inline) + env(safe-area-inset-left, 0px));
  }

  .rail {
    display: none;
  }

  .nav {
    padding-top: 10px;
  }

  .nav::before {
    height: 76px;
  }

  .nav-shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 56px;
  }

  .nav-logo-mark {
    max-height: 30px;
  }

  .nav-links,
  .language-toggle:not(.language-toggle-mobile),
  .nav-cta {
    display: none;
  }

  .nav-mobile-chip,
  .nav-mobile-toggle {
    display: flex;
    min-height: 48px;
    align-items: center;
    border: 1px solid color-mix(in oklch, var(--fg) 16%, transparent);
    border-radius: 999px;
    background: color-mix(in oklch, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px) saturate(130%);
  }

  .nav-mobile-chip {
    min-width: 0;
    gap: 8px;
    padding: 0 12px;
  }

  .nav-mobile-chip::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex: 0 0 auto;
  }

  .nav-mobile-chip-code {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
  }

  .nav-mobile-chip-label {
    min-width: 0;
    overflow: hidden;
    color: var(--fg);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-mobile-toggle {
    width: 48px;
    flex-direction: column;
    justify-content: center;
  }

  .nav-mobile-toggle-line {
    width: 18px;
    height: 1.5px;
    border-radius: 999px;
    background: var(--fg);
    transition: transform 180ms var(--ease), opacity 180ms var(--ease);
  }

  .nav-mobile-toggle-line + .nav-mobile-toggle-line {
    margin-top: 4px;
  }

  .nav-mobile-toggle.is-open .nav-mobile-toggle-line:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .nav-mobile-toggle.is-open .nav-mobile-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav-mobile-toggle.is-open .nav-mobile-toggle-line:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .nav-mobile-drawer {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 68px);
    right: calc(var(--shell-pad-inline) + env(safe-area-inset-right, 0px));
    left: calc(var(--shell-pad-inline) + env(safe-area-inset-left, 0px));
    z-index: 140;
    display: block;
    max-height: calc(100svh - 84px);
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    background: color-mix(in oklch, var(--bg) 96%, transparent);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0ms linear 180ms;
  }

  .nav-mobile-drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0ms;
  }

  .nav-mobile-drawer-head {
    display: grid;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--hairline);
  }

  .nav-mobile-drawer-kicker,
  .nav-mobile-drawer-current-code,
  .nav-mobile-link-code,
  .nav-mobile-link-arrow {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .nav-mobile-drawer-current {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .nav-mobile-drawer-current-label {
    font-weight: 700;
  }

  .nav-mobile-drawer-progress {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 5px;
  }

  .nav-mobile-drawer-pip {
    height: 4px;
    border-radius: 999px;
    background: var(--hairline);
  }

  .nav-mobile-drawer-pip.is-past,
  .nav-mobile-drawer-pip.is-active {
    background: var(--accent);
  }

  .nav-mobile-links {
    display: grid;
  }

  .nav-mobile-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--hairline);
    color: color-mix(in oklch, var(--fg) 78%, transparent);
  }

  .nav-mobile-link:last-child {
    border-bottom: 0;
  }

  .nav-mobile-link.is-active,
  .nav-mobile-link:focus-visible {
    color: var(--fg);
    outline: none;
  }

  .nav-mobile-drawer-cta {
    width: 100%;
    margin-top: 14px;
  }

  .language-toggle-mobile {
    width: fit-content;
    margin: 14px auto 0;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--nav-offset) + 28px);
  }

  .hero .wrap::before {
    left: var(--shell-pad-inline);
    width: 12px;
    height: 64px;
  }

  .hero-top {
    justify-content: flex-start;
    margin-bottom: 44px;
    padding-left: 34px;
  }

  .hero-counter {
    text-align: left;
  }

  .hero-headline {
    padding-left: 34px;
    font-size: clamp(40px, 13vw, 66px);
  }

  .hero-bottom,
  .section-title,
  .contact-grid,
  .foot {
    grid-template-columns: 1fr;
  }

  .hero-bottom {
    gap: 22px;
  }

  .hero-cta-col,
  .contact-actions {
    justify-content: stretch;
  }

  .hero-cta-col .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .clients {
    padding: 36px 0;
  }

  .client-logo {
    height: 44px;
    max-width: 180px;
  }

  .client-name {
    display: none;
  }

  .section-title {
    gap: 18px;
    margin-bottom: 42px;
  }

  .section-title h2 {
    font-size: clamp(34px, 10.8vw, 52px);
  }

  .stack-inner {
    min-height: 0;
  }

  .stack-tab {
    top: 16px;
    left: 20px;
  }

  .stack-header {
    padding: 58px 20px 18px 28px;
  }

  .stack-header-meta {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .stack-header-title {
    width: 100%;
    white-space: normal;
  }

  .stack-header-ref-desktop {
    display: none;
  }

  .stack-header-ref-inline {
    display: inline;
  }

  .stack-body {
    grid-template-columns: 1fr;
  }

  .stack-punch,
  .stack-stamp {
    display: none;
  }

  .stack-body-inner {
    padding: 28px 20px 28px 28px;
  }

  .stack-body-grid {
    grid-template-columns: 1fr;
  }

  .stack-body-head {
    gap: 18px;
  }

  .process-visual {
    display: none;
  }

  .process-sticky,
  .process-wrap {
    height: auto !important;
    padding: 0;
  }

  .manifesto {
    height: auto !important;
    padding: 84px 0;
  }

  .manifesto-sticky {
    position: relative;
    height: auto;
  }

  .manifesto-container {
    padding: 40px 24px 40px 32px;
  }

  .manifesto-shape {
    display: none;
  }

  .cases-track.is-native-scroll {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    overflow: visible;
    padding-bottom: 0;
  }

  .case-card,
  .cases-track.is-native-scroll .case-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 24px;
  }

  .case-client-row,
  .case-footer,
  .case-stat {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-btn {
    width: 100%;
  }

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

  .stat-cell {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .stat-cell:last-child {
    border-bottom: 0;
  }

  .contact-big {
    max-width: 100%;
    font-size: clamp(40px, 11.5vw, 50px);
  }

  .foot-aside,
  .foot-meta,
  .foot-links {
    justify-content: flex-start;
  }

  .foot-legal-line + .foot-legal-line::before {
    display: none;
  }
}

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