/* ═══════════════════════════════════════════════════════════
   HAUPTKORN BUCHHALTUNGSSERVICE — Design System
   Dark premium · Space Grotesk + Inter · Mint accent
   ═══════════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted, variable) ── */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ── */
:root {
  color-scheme: dark;
  --bg: #060607;
  --bg-soft: #0b0c0e;
  --surface: #101114;
  --surface-2: #14161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f3f1;
  --text-dim: #9ba0a6;
  --text-faint: #82888f;
  --accent: #43ffaf;
  --accent-soft: rgba(67, 255, 175, 0.12);
  --accent-glow: rgba(67, 255, 175, 0.35);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 76px;
  --radius: 18px;
  --container: 1240px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; scrollbar-color: #2a2d31 #060607; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Skip link (keyboard users) */
.skiplink {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 10001;
  background: var(--accent);
  color: #06120c;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  transform: translateY(-200%);
}
.skiplink:focus { transform: none; }
[tabindex="-1"]:focus { outline: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
}

::selection { background: var(--accent); color: #06120c; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* Subtle grain for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section { padding-block: clamp(90px, 12vw, 160px); position: relative; }

/* ═══════════ EQUALIZER BARS (brand motif) ═══════════ */
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}
.eq i {
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  height: 100%;
  transform-origin: bottom;
  animation: eq-bounce 1.1s var(--ease-inout) infinite;
}
.eq i:nth-child(1) { animation-delay: 0s; }
.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.3s; }
.eq i:nth-child(4) { animation-delay: 0.45s; }
.eq i:nth-child(5) { animation-delay: 0.6s; }
.eq--static i { animation: none; }
.eq--static i:nth-child(1) { height: 45%; }
.eq--static i:nth-child(2) { height: 100%; }
.eq--static i:nth-child(3) { height: 70%; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* ═══════════ LOGO (client mark, rebuilt for animation) ═══════════
   Geometry mirrors the original artwork: five bars above and below
   the wordmark. Bars are real elements so each one can animate. */
.logo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1474 / 670;
}
.logo__word {
  position: absolute;
  left: 0;
  top: 28.36%;
  width: 100%;
  height: 42.98%;
  object-fit: contain;
  display: block;
}
.logo__bars {
  position: absolute;
  left: 21.17%;
  width: 56.38%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}
.logo__bars--top { top: 0; height: 23.73%; }
.logo__bars--bottom { bottom: 0; height: 23.88%; }
.logo__bars i {
  display: block;
  height: 100%;
  background: var(--text);
  transform-origin: center;
}
.logo__bars--top i { transform-origin: bottom center; }
.logo__bars--bottom i { transform-origin: top center; }
.logo__bars i:nth-child(1) { width: 12.76%; }
.logo__bars i:nth-child(2) { width: 12.03%; }
.logo__bars i:nth-child(3) { width: 15.52%; }
.logo__bars i:nth-child(4) { width: 11.91%; }
.logo__bars i:nth-child(5) { width: 12.88%; }

/* ═══════════ PRELOADER (only shown when JS is active) ═══════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: none;
  place-items: center;
}
html.has-js .preloader { display: grid; }
.preloader__inner {
  width: min(360px, 68vw);
  position: relative;
}
.preloader__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(67,255,175,0.16), transparent 62%);
  filter: blur(50px);
  opacity: 0;
  pointer-events: none;
}
.preloader .logo__word { opacity: 0; }
.preloader__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
.preloader__line span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ═══════════ PROGRESS BAR ═══════════ */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 9800;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), #7cffd0);
  transform: scaleX(0);
  transform-origin: left;
}

/* ═══════════ CURSOR (only when JS drives it: html.has-cursor) ═══════════ */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor { display: block; pointer-events: none; position: fixed; inset: 0; z-index: 9900; }
  .cursor__dot, .cursor__ring {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
  }
  .cursor__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
  }
  .cursor__ring { width: 34px; height: 34px; }
  .cursor__ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(67, 255, 175, 0.45);
    transition: transform 0.25s var(--ease-out), border-color 0.25s;
  }
  .cursor--active .cursor__ring::after {
    transform: scale(1.65);
    border-color: rgba(67, 255, 175, 0.9);
  }
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9700;
  transition: transform 0.45s var(--ease-out);
}
.nav--hidden {
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform 0.45s var(--ease-out), visibility 0s 0.45s;
}
.nav:focus-within {
  transform: none;
  visibility: visible;
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, 0.72);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity 0.4s;
}
.nav--solid::before {
  opacity: 1;
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav__inner > * { position: relative; }

.nav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__brand .logo { width: clamp(106px, 9.5vw, 118px); }
.nav__brand .logo__bars i { transition: background 0.35s, transform 0.45s var(--ease-out); }
/* Hover: bars ripple like an equaliser, mirroring the preloader intro */
.nav__brand:hover .logo__bars i { background: var(--accent); }
.nav__brand:hover .logo__bars--top i { transform: scaleY(0.55); }
.nav__brand:hover .logo__bars--bottom i { transform: scaleY(0.55); }
.nav__brand:hover .logo__bars i:nth-child(2),
.nav__brand:hover .logo__bars i:nth-child(4) { transform: scaleY(1.25); }
.nav__brand:hover .logo__bars i:nth-child(3) { transform: scaleY(0.8); }
.nav__brand .logo__bars i:nth-child(1) { transition-delay: 0s; }
.nav__brand .logo__bars i:nth-child(2) { transition-delay: 0.04s; }
.nav__brand .logo__bars i:nth-child(3) { transition-delay: 0.08s; }
.nav__brand .logo__bars i:nth-child(4) { transition-delay: 0.12s; }
.nav__brand .logo__bars i:nth-child(5) { transition-delay: 0.16s; }

.nav__links {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding-block: 6px;
  transition: color 0.3s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Without JS: keep text links usable on mobile (burger needs JS) */
html:not(.has-js) .nav__links {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px 16px;
}
html:not(.has-js) .nav__burger { display: none !important; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 2;
}
.nav__burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 26px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ═══════════ MOBILE MENU ═══════════ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 9600;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu--open { visibility: visible; pointer-events: auto; }
.menu__bg {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 10, 0.98);
  opacity: 0;
  transition: opacity 0.45s;
}
.menu--open .menu__bg { opacity: 1; }
.menu__links {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: calc(var(--nav-h) + 40px) clamp(24px, 6vw, 60px) 0;
}
.menu__links a {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 54px);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 16px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.menu--open .menu__links a { opacity: 1; transform: translateY(0); }
.menu--open .menu__links a:nth-child(1) { transition-delay: 0.08s; }
.menu--open .menu__links a:nth-child(2) { transition-delay: 0.16s; }
.menu--open .menu__links a:nth-child(3) { transition-delay: 0.24s; }
.menu--open .menu__links a:nth-child(4) { transition-delay: 0.32s; }
.menu__links em {
  font-style: normal;
  font-size: 13px;
  color: var(--accent);
  font-family: var(--font-body);
}
.menu__meta {
  position: relative;
  margin-top: auto;
  padding: 40px clamp(24px, 6vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-dim);
  font-size: 14px;
}
@media (max-height: 520px) {
  .menu__links a { font-size: clamp(22px, 6vh, 34px); padding-block: 6px; }
  .menu__links { padding-top: calc(var(--nav-h) + 12px); }
  .menu__meta { padding-block: 20px; }
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.btn--small { padding: 10px 22px; font-size: 13px; }
.btn--primary {
  background: var(--accent);
  color: #06120c;
  box-shadow: 0 0 0 rgba(67, 255, 175, 0);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease-out);
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn__arrow { display: inline-flex; transition: transform 0.35s var(--ease-out); }
.btn__arrow svg { width: 15px; height: 15px; }
.nav__cta { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
@media (hover: hover) {
  .btn--primary:hover { box-shadow: 0 8px 40px var(--accent-glow); }
  .btn--primary:hover::before { transform: translateX(100%); }
  .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn:hover .btn__arrow { transform: translateX(5px); }
  .nav__cta:hover { border-color: var(--accent); color: var(--accent); }
}

/* ═══════════ HERO ═══════════ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-top: var(--nav-h);
  padding-bottom: 110px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, black 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, black 25%, transparent 75%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero__glow--1 {
  width: 780px; height: 780px;
  background: radial-gradient(circle, rgba(67,255,175,0.12) 0%, rgba(67,255,175,0.04) 40%, transparent 68%);
  top: -18%; right: -12%;
}
.hero__glow--2 {
  width: 660px; height: 660px;
  background: radial-gradient(circle, rgba(90,140,255,0.07) 0%, rgba(90,140,255,0.025) 40%, transparent 68%);
  bottom: -24%; left: -14%;
}
.hero__giantbars {
  position: absolute;
  right: clamp(-80px, -2vw, 0px);
  bottom: -6%;
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 2vw, 26px);
  opacity: 0.05;
}
.hero__giantbars i {
  width: clamp(34px, 5vw, 64px);
  background: linear-gradient(to top, var(--accent), transparent 90%);
}
.hero__giantbars i:nth-child(1) { height: 32vh; }
.hero__giantbars i:nth-child(2) { height: 58vh; }
.hero__giantbars i:nth-child(3) { height: 22vh; }
.hero__giantbars i:nth-child(4) { height: 46vh; }
.hero__giantbars i:nth-child(5) { height: 38vh; }

.hero__content { position: relative; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  margin-bottom: clamp(24px, 4vh, 40px);
  background: rgba(255,255,255,0.02);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 10.5vw, 148px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: clamp(24px, 4vh, 40px);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line__inner { display: block; }
.line--accent .line__inner {
  color: transparent;
  background: linear-gradient(100deg, var(--accent) 20%, #9dffd6 50%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__sub {
  max-width: 560px;
  color: var(--text-dim);
  font-size: clamp(16px, 1.6vw, 19px);
  margin-bottom: clamp(32px, 5vh, 48px);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scrollhint {
  position: absolute;
  bottom: 34px;
  left: clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__scrollhint-line {
  width: 52px; height: 1px;
  background: var(--text-faint);
  position: relative;
  overflow: hidden;
}
.hero__scrollhint-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scrollhint 2.2s var(--ease-inout) infinite;
}
@keyframes scrollhint {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 22px;
  overflow: hidden;
  background: var(--bg-soft);
}
.marquee__track { display: flex; width: max-content; }
.marquee__track--anim {
  will-change: transform;
  animation: marquee-scroll 44s linear infinite;
}
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}
.marquee__group span {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.marquee__group i {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
  transform: rotate(45deg);
  opacity: 0.6;
}

/* ═══════════ STATS ═══════════ */
.stats { padding-block: clamp(70px, 9vw, 110px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.stat {
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(16px, 2vw, 28px);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat__value sup {
  font-size: 0.5em;
  color: var(--accent);
  margin-left: 2px;
}
.stat__label {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ═══════════ SECTION HEADS ═══════════ */
.section__head { max-width: 780px; margin-bottom: clamp(48px, 7vw, 80px); }
.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.section__title .word__inner { display: inline-block; }
.section__desc {
  color: var(--text-dim);
  font-size: clamp(15px, 1.5vw, 18px);
  margin-top: 20px;
  max-width: 600px;
}

/* ═══════════ CHAOS → STRUKTUR ═══════════ */
.chaos { position: relative; }
.chaos__pin {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(60px, 8vh, 100px);
  overflow: hidden;
  overflow: clip;
}
.chaos__head { text-align: center; }
.chaos__head .section__eyebrow { justify-content: center; }
.chaos__stage {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  height: clamp(300px, 46vh, 460px);
  margin-top: clamp(24px, 4vh, 48px);
}
.paper {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 82px;
  margin: -41px 0 0 -32px;
  background: linear-gradient(180deg, #1a1c21, #131519);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
  will-change: transform;
}
.paper::before {
  content: '';
  position: absolute;
  inset: 12px 10px auto 10px;
  height: 44px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.16) 0 2px,
    transparent 2px 9px
  );
  border-radius: 1px;
}
.paper::after {
  content: '';
  position: absolute;
  left: 10px; right: 22px; bottom: 12px;
  height: 3px;
  background: var(--accent);
  opacity: 0.75;
  border-radius: 2px;
}
.paper--b { width: 58px; height: 74px; margin: -37px 0 0 -29px; }
.paper--b::before { inset: 10px 9px auto 9px; height: 38px; }
.paper--c { width: 70px; height: 88px; margin: -44px 0 0 -35px; }
.paper--c::after { right: 34px; }
.chaos__caption {
  text-align: center;
  color: var(--text-dim);
  font-size: clamp(14px, 1.5vw, 17px);
  max-width: 520px;
  margin: clamp(20px, 3vh, 36px) auto 0;
}

/* ═══════════ SERVICES ═══════════ */
.services { background: var(--bg-soft); border-block: 1px solid var(--line); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(67,255,175,0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card__num {
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  transition: color 0.4s;
}
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: transform 0.4s var(--ease-out);
}
.card__icon svg { width: 26px; height: 26px; }
@media (hover: hover) {
  .card:hover { border-color: var(--line-strong); transform: translateY(-6px); }
  .card:hover::before { opacity: 1; }
  .card:hover .card__num { color: var(--accent); }
  .card:hover .card__icon { transform: translateY(-4px) rotate(-4deg); }
}
.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.card__text { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; }
.services__note {
  margin-top: clamp(32px, 5vw, 48px);
  color: var(--text-faint);
  font-size: 12.5px;
  max-width: 640px;
}

/* ═══════════ PROCESS ═══════════ */
.process { padding-block: 0; }
.process__pin {
  padding-block: clamp(90px, 12vw, 140px);
  overflow: hidden;
}
.process__progress {
  width: clamp(160px, 20vw, 300px);
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}
.process__progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.process__track {
  display: flex;
  gap: clamp(20px, 2.5vw, 32px);
  padding-inline: clamp(20px, 4vw, 48px);
  margin-top: clamp(40px, 6vw, 70px);
  will-change: transform;
}
.step {
  flex: 0 0 clamp(300px, 34vw, 460px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 3.5vw, 46px);
  min-height: clamp(300px, 36vh, 380px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.step::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) {
  .step:hover::after { transform: scaleX(1); }
}
.step__num {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(67, 255, 175, 0.5);
  margin-bottom: auto;
}
.step__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 14px;
}
.step__text { color: var(--text-dim); font-size: 15px; }

/* ═══════════ ABOUT ═══════════ */
.about { background: var(--bg-soft); border-block: 1px solid var(--line); overflow: hidden; overflow: clip; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(320px, 480px) 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about__visual { position: relative; }
.about__frame {
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(67,255,175,0.10), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 0.86;
  display: flex;
  align-items: flex-end;
}
.about__frame--photo { aspect-ratio: 4 / 5; }
.about__frame--photo::after { display: none; }
.about__frame--photo picture { position: absolute; inset: 0; }
.about__img--photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  margin: 0;
  z-index: 0;
}
/* Black-and-white portrait: fade the studio backdrop into the page */
.about__frame--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,6,7,0.30) 0%, transparent 26%, transparent 62%, rgba(6,6,7,0.88) 100%),
    radial-gradient(ellipse 78% 62% at 50% 42%, transparent 40%, rgba(6,6,7,0.55) 100%);
}
.about__frame-bars {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 40px;
  opacity: 0.25;
}
.about__frame-bars i { width: 8px; background: var(--text); }
.about__frame-bars i:nth-child(1) { height: 52%; }
.about__frame-bars i:nth-child(2) { height: 100%; }
.about__frame-bars i:nth-child(3) { height: 38%; }
.about__frame-bars i:nth-child(4) { height: 80%; }
.about__frame-bars i:nth-child(5) { height: 62%; }
.about__glow {
  position: absolute;
  bottom: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 115%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(67,255,175,0.18) 0%, rgba(67,255,175,0.06) 40%, transparent 68%);
  opacity: 0.6;
}
.about__frame::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%; bottom: -4%;
  height: 16%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55), transparent 70%);
}
.about__img {
  position: relative;
  z-index: 1;
  width: 92%;
  margin-inline: auto;
  will-change: transform;
}
.about__lead {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  color: var(--text);
  margin: 22px 0 18px;
  line-height: 1.5;
}
.about__text { color: var(--text-dim); margin-bottom: 16px; max-width: 560px; }
.about__values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 28px;
}
.about__values li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}
.about__values .eq { height: 12px; }

/* ═══════════ VISUAL BAND ═══════════ */
.band {
  position: relative;
  height: clamp(420px, 68vh, 720px);
  overflow: hidden;
  overflow: clip;
  border-block: 1px solid var(--line);
}
.band__media {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}
.band__media img,
.band__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.band__video--on { opacity: 1; }
.band__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,6,7,0.55) 0%, rgba(6,6,7,0.15) 45%, rgba(6,6,7,0.82) 100%),
    linear-gradient(90deg, rgba(6,6,7,0.45) 0%, transparent 55%);
}
.band__content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(32px, 6vh, 64px);
}
.band__quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 720px;
}
.band__sub {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 13.5px;
  letter-spacing: 0.06em;
}

/* ═══════════ COOP (scrub text) ═══════════ */
.coop { text-align: left; }
.coop__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.coop__text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 1050px;
}
.coop__text .w { opacity: 0.14; }

/* ═══════════ CONTACT ═══════════ */
.contact { background: var(--bg-soft); border-top: 1px solid var(--line); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 16px; }
.contact__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.35s, transform 0.35s var(--ease-out);
}
@media (hover: hover) {
  .contact__item:not(.contact__item--static):hover {
    border-color: var(--accent);
    transform: translateY(-4px);
  }
}
.contact__item-label {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact__item-value {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  word-break: break-word;
}

/* Form */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__field { position: relative; }
.form__field input,
.form__field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 24px 20px 12px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}
.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--accent);
  background: var(--surface-2);
}
.form__field label {
  position: absolute;
  left: 20px;
  top: 18px;
  color: var(--text-faint);
  font-size: 16px;
  pointer-events: none;
  transition: transform 0.25s var(--ease-out), font-size 0.25s, color 0.25s;
  transform-origin: left top;
}
.form__field input:focus + label,
.form__field input:not(:placeholder-shown) + label,
.form__field textarea:focus + label,
.form__field textarea:not(:placeholder-shown) + label {
  transform: translateY(-11px);
  font-size: 11px;
  color: var(--accent);
}
.form__submit { align-self: flex-start; margin-top: 6px; }
.form__hint { font-size: 12.5px; color: var(--text-faint); }
/* Honeypot — hidden from people, visible to bots */
.form__hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.form__status {
  font-size: 13.5px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 18px;
}
.form__status a { color: var(--accent); }
.form__status--ok {
  border-color: rgba(67, 255, 175, 0.45);
  background: rgba(67, 255, 175, 0.07);
  color: var(--text);
}
.form__submit[disabled] { opacity: 0.6; pointer-events: none; }

/* ═══════════ FOOTER ═══════════ */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: clamp(60px, 8vw, 100px);
  overflow: hidden;
  overflow: clip;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: clamp(32px, 5vw, 60px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.footer__brand .logo { width: clamp(190px, 20vw, 260px); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-title {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.footer__col a, .footer__col span {
  color: var(--text-dim);
  font-size: 14.5px;
  transition: color 0.3s;
  width: fit-content;
}
.footer__col a:hover { color: var(--accent); }
.footer__legal {
  color: var(--text-faint);
  font-size: 12px;
  max-width: 560px;
  padding-bottom: 28px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 13px;
}
.footer__giant {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(70px, 13.5vw, 210px);
  letter-spacing: 0.02em;
  line-height: 0.8;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  user-select: none;
  transform: translateY(18%);
  will-change: transform;
}

/* ═══════════ LEGAL PAGES ═══════════ */
.legal { padding-top: calc(var(--nav-h) + clamp(50px, 8vw, 90px)); padding-bottom: clamp(80px, 10vw, 120px); min-height: 70vh; }
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  margin: 44px 0 14px;
}
.legal p, .legal li { color: var(--text-dim); max-width: 720px; margin-bottom: 12px; }
.legal p, .legal a { overflow-wrap: anywhere; }
.legal ul { padding-left: 22px; }
.legal a:not(.btn) { color: var(--accent); }
.legal strong { color: var(--text); }
.legal__back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--text-dim) !important;
  font-size: 14px;
}
/* Legal pages: keep text nav visible on mobile (no burger there) */
.nav--simple .nav__links { display: flex !important; flex-wrap: wrap; gap: 12px 16px; }
@media (max-width: 640px) {
  .nav--simple .nav__links { font-size: 12px; }
  .nav--simple .nav__cta { display: none; }
}

/* ═══════════ REVEAL INITIAL STATES (JS only) ═══════════ */
html.has-js [data-reveal] { opacity: 0; transform: translateY(36px); }
html.has-js [data-hero-fade] { opacity: 0; }
html.has-js .hero__title .line__inner { transform: translateY(115%); }

/* no-JS / reduced-motion fallbacks */
html.no-motion [data-reveal],
html.no-motion [data-hero-fade] { opacity: 1 !important; transform: none !important; }
html.no-motion .hero__title .line__inner { transform: none !important; }
html.no-motion .coop__text .w { opacity: 1 !important; }
html.no-motion .eq i { animation: none !important; }
html.no-motion .preloader .logo__word { opacity: 1 !important; }
html.no-motion .hero__scrollhint-line::after { animation: none !important; }
/* Without pinned horizontal scroll, steps wrap into a grid */
html.no-motion .hero { min-height: 720px; }
html.no-motion .chaos__pin { min-height: 700px; }
html.no-motion .process__track { flex-wrap: wrap; }
html.no-motion .process__track .step { flex-basis: clamp(300px, 42vw, 560px); flex-grow: 1; }
html.no-motion .process__progress { display: none; }
html.no-motion .marquee__track { transform: none !important; animation: none !important; }
html.no-motion .cursor { display: none !important; }

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

/* ═══════════ MOBILE CENTER-FOCUS GLOW ═══════════ */
@media (hover: none), (max-width: 900px) {
  .card, .step, .contact__item, .stat {
    transition: border-color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease-out);
  }
  .card.is-centered,
  .step.is-centered,
  .contact__item.is-centered {
    border-color: rgba(67, 255, 175, 0.45);
    box-shadow: 0 0 0 1px rgba(67, 255, 175, 0.16), 0 14px 44px rgba(67, 255, 175, 0.10);
    transform: translateY(-3px);
  }
  .card.is-centered::before { opacity: 1; }
  .card.is-centered .card__num { color: var(--accent); }
  .card.is-centered .card__icon { transform: translateY(-4px) rotate(-4deg); }
  .step.is-centered::after { transform: scaleX(1); }
  .stat.is-centered { border-left-color: var(--accent); }
  .stat.is-centered .stat__value { text-shadow: 0 0 28px rgba(67, 255, 175, 0.4); }
}

/* ═══════════ RESPONSIVE ═══════════ */
/* Wide screens: align pinned track with container */
@media (min-width: 1500px) {
  .process__track { padding-inline: max(48px, calc((100vw - var(--container)) / 2 + 48px)); }
}

/* Flat desktop viewports: keep pinned section within one screen */
@media (min-width: 901px) and (max-height: 780px) {
  .process__pin { padding-block: 56px; }
  .process__pin .section__head { margin-bottom: 24px; }
  .process__track { margin-top: 32px; }
  .step { min-height: 0; padding: 28px; }
  .step__title { margin-top: 22px; font-size: 22px; }
  .step__num { font-size: 48px; }
}

/* Touch devices ≥ 901px (iPads): vertical process layout, no pin */
@media (min-width: 901px) and (hover: none) {
  .process__track { flex-direction: column; margin-top: 40px; }
  .step { flex-basis: auto; min-height: 0; }
  .step__title { margin-top: 24px; }
  .process__progress { display: none; }
}

@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 440px; }
  .contact__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  /* Process becomes vertical */
  .process__track {
    flex-direction: column;
    margin-top: 40px;
  }
  .step { flex-basis: auto; min-height: 0; }
  .step__title { margin-top: 24px; }
  .step__num { margin-bottom: 0; }
  .process__progress { display: none; }
}

@media (max-width: 640px) {
  .hero__eyebrow { font-size: 10px; letter-spacing: 0.18em; padding: 8px 14px; }
  .services__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(38px, 12vw, 72px); }
  .hero__scrollhint { display: none; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .about__visual { display: flex; flex-direction: column; }
}
