/* ============================================================
   bytewerk.dev — code with bite
   Static rebuild · Matrix noir aesthetic
   ============================================================ */

:root {
  /* palette */
  --ink: #060a08;
  --ink-2: #0b120e;
  --ink-3: #121b16;
  --charcoal: #1a2320;
  --teal: #335a50;
  --green: #25ff86;
  --green-dim: #1acb6a;
  --green-ghost: rgba(37, 255, 134, 0.08);
  --orange: #dc7b26;
  --orange-bright: #f4923a;
  --bone: #e8f2ec;
  --muted: #8aa398;

  /* type */
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Satoshi', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1240px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.mono { font-family: var(--font-mono); }
.container { width: min(var(--container), 92vw); margin-inline: auto; }

em {
  font-style: normal;
  color: var(--green);
  text-shadow: 0 0 24px rgba(37, 255, 134, 0.35);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; }

.section-tag {
  color: var(--green);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin-bottom: 1.4rem;
  display: inline-block;
}

/* ============ grain ============ */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ============ custom cursor ============ */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 1000; pointer-events: none; }
  .identity__hint { display: block; }
  .cursor__dot {
    position: fixed; top: -3px; left: -3px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
  }
  .cursor__ring {
    position: fixed; top: -18px; left: -18px;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(37, 255, 134, 0.5);
    transition: transform 0.25s var(--ease-out), background 0.25s, border-color 0.25s;
    display: grid; place-items: center;
  }
  .cursor__ring::after {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--ink);
    opacity: 0;
  }
  .cursor.is-hover .cursor__ring { transform: scale(1.6); background: rgba(37, 255, 134, 0.12); }
  .cursor.is-view .cursor__ring {
    transform: scale(2.2);
    background: var(--green);
    border-color: var(--green);
  }
  .cursor.is-view .cursor__ring::after { content: 'view'; opacity: 1; }
}

/* ============ boot preloader ============ */
.boot {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__terminal { width: min(560px, 86vw); }
.boot__lines {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  min-height: 9.5em;
  white-space: pre-wrap;
  text-shadow: 0 0 12px rgba(37, 255, 134, 0.4);
}
.boot__bar {
  margin-top: 1rem;
  height: 3px;
  background: rgba(37, 255, 134, 0.15);
  overflow: hidden;
}
.boot__bar-fill {
  display: block; height: 100%; width: 0%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
  transition: width 0.2s linear;
}

/* ============ nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform 0.4s var(--ease-out), background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 10, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(37, 255, 134, 0.12);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  width: min(var(--container), 94vw);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.nav__logo { height: 30px; width: auto; }
.nav__menu { display: flex; gap: 2.2rem; list-style: none; }
.nav__link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}
.nav__link-index {
  color: var(--green);
  font-size: 0.6rem;
  vertical-align: super;
  margin-right: 0.35em;
  opacity: 0.7;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover { color: var(--bone); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--green);
  color: var(--green);
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}
.nav__cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--green);
  transform: translateY(101%);
  transition: transform 0.35s var(--ease-out);
}
.nav__cta:hover { color: var(--ink); }
.nav__cta:hover::before { transform: translateY(0); }
.nav__cta-label { position: relative; z-index: 1; }
.nav__lang { display: flex; align-items: center; gap: 0.45rem; font-size: 0.76rem; color: var(--muted); }
.nav__lang a { transition: color 0.25s; }
.nav__lang a:hover, .nav__lang a[aria-current="page"] { color: var(--green); }
.nav__burger { display: none; }

/* mobile menu */
.mobmenu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6, 10, 8, 0.96);
  backdrop-filter: blur(20px);
  display: grid; place-content: center; gap: 3rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobmenu.is-open { opacity: 1; visibility: visible; }
.mobmenu__list { list-style: none; text-align: center; display: grid; gap: 1.6rem; }
.mobmenu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
}
.mobmenu__link--accent { color: var(--green); }
.mobmenu__foot { text-align: center; font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 1rem 2.2rem;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn--primary {
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn--primary:hover { box-shadow: 0 0 32px rgba(37, 255, 134, 0.45); }
.btn--primary .btn__glitch {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--orange);
  color: var(--ink);
  transform: translateY(101%);
  transition: transform 0.3s var(--ease-out);
}
.btn--primary:hover .btn__glitch { transform: translateY(0); }
.btn--ghost {
  border: 1px solid rgba(232, 242, 236, 0.25);
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn__label { position: relative; z-index: 1; }
.hero .btn--primary:hover .btn__label { opacity: 0; }

.link-arrow {
  color: var(--green);
  font-size: 0.88rem;
  border-bottom: 1px dashed rgba(37, 255, 134, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.link-arrow:hover { border-bottom-style: solid; border-color: var(--green); }

/* ============ hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero__rain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 30% 45%, transparent 30%, rgba(6, 10, 8, 0.85) 100%),
    linear-gradient(to bottom, rgba(6, 10, 8, 0.55), transparent 30%, transparent 70%, var(--ink) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  width: min(var(--container), 92vw);
  margin-inline: auto;
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding-top: var(--nav-h);
}
.hero__eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.hero__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.hero__title {
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  line-height: 0.95;
}
.hero__title-line {
  display: block;
  white-space: nowrap;
  background: linear-gradient(115deg, var(--bone) 55%, var(--green) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title-sub {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: var(--orange-bright);
  margin-top: 1.1rem;
}
.hero__caret {
  display: inline-block;
  width: 0.55em; height: 1.1em;
  background: var(--orange-bright);
  vertical-align: text-bottom;
  margin-left: 0.15em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero__desc {
  position: relative;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-top: 1.8rem;
}
.hero__desc::before {
  content: '';
  position: absolute;
  inset: -1.6em -2em;
  z-index: -1;
  background: radial-gradient(ellipse 60% 65% at center, rgba(6, 10, 8, 0.65), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.6rem; }

.hero__figure { position: relative; display: grid; place-items: center; }
.hero__beaver-glow {
  position: absolute;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 255, 134, 0.16), transparent 65%);
  filter: blur(10px);
}
.hero__beaver {
  position: relative;
  width: min(650px, 115%);
  max-width: none;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(37, 255, 134, 0.12));
  will-change: transform;
}

.hero__scroll {
  width: max-content;
  margin: 2.4rem auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scroll-drip 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-drip { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ============ marquee ============ */
.marquee {
  border-top: 1px solid rgba(37, 255, 134, 0.15);
  border-bottom: 1px solid rgba(37, 255, 134, 0.15);
  background: var(--ink-2);
  overflow: hidden;
  padding: 1.4rem 0;
  position: relative;
  z-index: 2;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group {
  display: flex; align-items: center; gap: 3rem;
  padding-right: 3rem;
  white-space: nowrap;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.marquee__item--outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--green);
}
.marquee__sep { font-family: var(--font-mono); color: var(--orange); font-size: 1.1rem; }

/* ============ value / about ============ */
.value { padding: clamp(6rem, 12vw, 10rem) 0; position: relative; }
.value__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.value__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
.value__intro { color: var(--muted); margin-top: 1.6rem; max-width: 52ch; }
.value__features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px dashed rgba(37, 255, 134, 0.25);
}
.value__feature-num { color: var(--orange); font-size: 0.75rem; }
.value__feature h3 { font-size: 1.25rem; margin: 0.5rem 0 0.4rem; }
.value__feature p { color: var(--muted); font-size: 0.95rem; }
.value__actions { display: flex; align-items: center; gap: 1.8rem; margin-top: 2.8rem; flex-wrap: wrap; }

/* terminal frame */
.terminal-frame {
  background: var(--ink-2);
  border: 1px solid rgba(37, 255, 134, 0.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(37, 255, 134, 0.06);
}
.terminal-frame__bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(37, 255, 134, 0.18);
  background: var(--ink-3);
}
.terminal-frame__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(37, 255, 134, 0.25);
}
.terminal-frame__dot:first-child { background: var(--orange); }
.terminal-frame__title {
  margin-left: 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.terminal-frame__body { position: relative; overflow: hidden; }

/* identity swap */
.identity { width: 100%; transition: opacity 0.7s ease, filter 0.7s ease; }
.identity--owner {
  position: absolute; inset: 0;
  opacity: 0;
  filter: saturate(0.4) brightness(0.6);
}
#identitySwap.show-owner .identity--owner { opacity: 1; filter: none; }
#identitySwap.show-owner .identity--beaver { opacity: 0; }
.identity__hint {
  display: none;
  position: absolute; right: 0.9rem; bottom: 0.7rem;
  font-size: 0.65rem;
  color: var(--green);
  background: rgba(6, 10, 8, 0.75);
  padding: 0.25rem 0.6rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* ============ features (pinned) ============ */
.features { position: relative; background: var(--ink-2); }
.features__pin {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: clamp(4rem, 8vh, 6rem) 0;
}
.features__layout { width: min(var(--container), 92vw); }
.features__head { margin-bottom: clamp(2rem, 5vh, 4rem); }
.features__title { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 18ch; }
.features__stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.features__list { display: grid; gap: 0.4rem; }
.features__item {
  display: flex; align-items: flex-start; gap: 1.2rem;
  text-align: left;
  padding: 1.3rem 1.4rem;
  border: 1px solid transparent;
  border-left: 2px solid rgba(37, 255, 134, 0.15);
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
}
.features__item:hover { background: rgba(37, 255, 134, 0.04); }
.features__item.is-active {
  background: var(--green-ghost);
  border-color: rgba(37, 255, 134, 0.25);
  border-left: 2px solid var(--green);
  transform: translateX(8px);
}
.features__item-num {
  color: var(--orange);
  font-size: 0.7rem;
  padding-top: 0.35rem;
}
.features__item-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.features__item.is-active .features__item-title { color: var(--green); }
.features__item-text { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }

.features__viewer {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.features__viewer-ring {
  position: absolute; inset: 6%;
  border: 1px dashed rgba(37, 255, 134, 0.3);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.features__img {
  position: absolute;
  width: 76%;
  opacity: 0;
  transform: scale(0.9) rotate(-4deg);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}
.features__img.is-active { opacity: 1; transform: scale(1) rotate(0deg); }
.features__counter {
  position: absolute; right: 4%; bottom: 4%;
  color: var(--green);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

/* ============ process ============ */
.process { padding: clamp(6rem, 12vw, 10rem) 0; }
.process__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: clamp(3rem, 6vw, 5rem); }
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem;
}
.process__step {
  position: relative;
  background: var(--ink-2);
  border: 1px solid rgba(37, 255, 134, 0.18);
  padding: 2.2rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
/* progress line that draws across the top of each card, in sequence */
.process__step::before {
  content: '';
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(to right, var(--green), var(--green-dim));
  transform: scaleX(0);
  transform-origin: left;
}
.process__step.is-lit::before {
  transition: transform 0.7s var(--ease-out);
  transform: scaleX(1);
}
/* arrow connector between cards */
.process__step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -2.05rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: rgba(37, 255, 134, 0.55);
}
.process__step:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 255, 134, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(37, 255, 134, 0.08);
}
.process__num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--green);
  display: block;
  line-height: 1;
}
.process__step-title { font-size: 1.6rem; margin: 1.2rem 0 0.5rem; }
.process__step-text { color: var(--muted); font-size: 0.98rem; }
.process__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.6rem;
}
.process__chips li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--bone);
  border: 1px solid rgba(37, 255, 134, 0.3);
  background: rgba(37, 255, 134, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============ meet christian ============ */
.meet {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url('../assets/christian-the-beaver.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left center;
  background-color: var(--ink);
}
.meet__inner { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.meet__content {
  width: min(600px, 100%);
  margin: clamp(4rem, 8vw, 7rem) 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.88);
}
.meet__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.meet__text { color: #b9cbc1; margin-top: 1.5rem; }
.meet__content .btn { margin-top: 2.4rem; }

/* ============ services ============ */
.services { padding: clamp(6rem, 12vw, 10rem) 0; background: var(--ink-2); }
.services__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.services__title { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 22ch; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.services__card {
  position: relative;
  border: 1px solid rgba(37, 255, 134, 0.18);
  padding: 2.4rem 2rem 3.4rem;
  background: linear-gradient(160deg, rgba(37, 255, 134, 0.04), transparent 40%);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, background 0.4s;
  overflow: hidden;
}
.services__card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--green), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.services__card:hover { transform: translateY(-6px); border-color: rgba(37, 255, 134, 0.45); }
.services__card:hover::before { transform: scaleX(1); }
.services__card-glyph {
  display: block;
  width: 36px;
  height: 36px;
  color: var(--green);
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 0 10px rgba(37, 255, 134, 0.45));
}
.services__card-glyph svg { width: 100%; height: 100%; }
.services__card h3 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.services__card p { color: var(--muted); font-size: 0.95rem; }
.services__card-index {
  position: absolute; right: 1.4rem; bottom: 1.1rem;
  color: rgba(232, 242, 236, 0.25);
  font-size: 0.72rem;
}

/* ============ clients ============ */
.clients { padding: clamp(6rem, 12vw, 10rem) 0; }
.clients__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.clients__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.clients__card {
  display: block;
  border: 1px solid rgba(37, 255, 134, 0.15);
  background: var(--ink-2);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.clients__card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 255, 134, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.clients__shot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(37, 255, 134, 0.15);
  background: var(--ink);
}
.clients__shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  transform-origin: left top;
  filter: saturate(0.85);
  transition: transform 0.6s var(--ease-out), filter 0.5s;
}
.clients__card:hover .clients__shot img { transform: scale(1.05); filter: saturate(1.1); }
.clients__meta { padding: 1.5rem 1.5rem 1.6rem; }
.clients__meta h3 { font-size: 1.15rem; line-height: 1.3; }
.clients__meta p { color: var(--muted); font-size: 0.9rem; margin-top: 0.6rem; }
.clients__url {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ============ contact ============ */
.contact {
  position: relative;
  padding: clamp(6rem, 12vw, 10rem) 0;
  background: var(--ink-2);
  overflow: hidden;
}
.contact__rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; }
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact__title { font-size: clamp(2.4rem, 5vw, 4rem); }
.contact__sub { color: var(--muted); margin-top: 1rem; font-size: 1.1rem; }
.contact__beaver {
  width: min(320px, 70%);
  margin-top: 2.5rem;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px) rotate(2deg); } }

.contact__fields { padding: 2rem; display: grid; gap: 1.5rem; }
.field--honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.field { display: grid; gap: 0.5rem; }
.field label {
  color: var(--green);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.field input, .field select, .field textarea {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--bone);
  background: rgba(37, 255, 134, 0.04);
  border: 1px solid rgba(37, 255, 134, 0.2);
  padding: 0.85rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  border-radius: 0;
  width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--ink-2); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(37, 255, 134, 0.07);
  box-shadow: 0 0 0 3px rgba(37, 255, 134, 0.12);
}
.contact__submit { justify-self: start; }
.contact__status { font-size: 0.8rem; min-height: 1.2em; }
.contact__status.is-ok { color: var(--green); }
.contact__status.is-err { color: var(--orange-bright); }
.contact__alt { color: var(--muted); font-size: 0.88rem; }
.contact__alt a { color: var(--green); border-bottom: 1px dashed rgba(37, 255, 134, 0.4); }

/* ============ footer ============ */
.footer {
  border-top: 1px solid rgba(37, 255, 134, 0.15);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  background: var(--ink);
}
.footer__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.footer__logo { width: 200px; }
.footer__tagline { color: var(--bone); font-size: 1.05rem; margin-bottom: 1.8rem; max-width: 34ch; }
.footer__col h4 {
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.footer__mail {
  font-family: var(--font-mono);
  color: var(--bone);
  border-bottom: 1px dashed rgba(37, 255, 134, 0.4);
  transition: color 0.3s;
}
.footer__mail:hover { color: var(--green); }
.footer__ready { color: var(--muted); font-size: 0.85rem; margin-top: 0.7rem; }
.footer__col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer__col ul a { color: var(--muted); font-size: 0.92rem; transition: color 0.3s; }
.footer__col ul a:hover { color: var(--green); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px dashed rgba(37, 255, 134, 0.15);
  color: var(--muted);
  font-size: 0.75rem;
}
.footer__legal { display: flex; gap: 1.6rem; }
.footer__legal button {
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 0.3s;
}
.footer__legal button:hover { color: var(--green); }

/* ============ legal dialogs ============ */
.legal {
  background: var(--ink-2);
  color: var(--bone);
  border: 1px solid rgba(37, 255, 134, 0.3);
  max-width: min(600px, 90vw);
  padding: 0;
  margin: auto;
}
.legal::backdrop { background: rgba(6, 10, 8, 0.8); backdrop-filter: blur(6px); }
.legal__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(37, 255, 134, 0.2);
}
.legal__head h3 { font-size: 1.3rem; }
.legal__close { color: var(--muted); font-size: 1.1rem; transition: color 0.3s; }
.legal__close:hover { color: var(--green); }
.legal__body { padding: 1.5rem; color: var(--muted); line-height: 1.7; max-height: 70vh; overflow-y: auto; }
.legal__body h4 { color: var(--bone); font-size: 1rem; margin: 1.2rem 0 0.5rem; }
.legal__body h4:first-child { margin-top: 0; }
.legal__body p { margin-bottom: 0.9rem; }
.legal__body ol { margin: 0 0 0.9rem 1.2rem; }
.legal__body ol li { margin-bottom: 0.4rem; }
.legal__body a { color: var(--green); }
.legal__body a:hover { text-decoration: underline; }
.legal__body strong { color: var(--bone); }

/* ============ reveal defaults (pre-JS) ============ */
[data-reveal] { opacity: 0; transform: translateY(36px); }
.no-js [data-reveal], .reveal-fallback [data-reveal] { opacity: 1; transform: none; }

/* ============ responsive ============ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 3rem); gap: 0; text-align: center; }
  .hero__eyebrow { justify-content: center; }
  .hero__desc { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__figure { order: -1; margin-bottom: 1rem; }
  .hero__beaver { width: min(380px, 72vw); }
  .value__grid, .contact__inner { grid-template-columns: 1fr; }
  .features__stage { grid-template-columns: 1fr; }
  .features__viewer { max-width: 420px; margin-inline: auto; width: 100%; }
  .process__grid { grid-template-columns: 1fr; max-width: 520px; gap: 2.2rem; }
  /* arrows point down between stacked cards */
  .process__step:not(:last-child)::after {
    content: '↓';
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.9rem;
    transform: translateX(-50%);
  }
  .services__grid { grid-template-columns: 1fr; max-width: 560px; }
  .clients__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 72vw);
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-color: var(--green) rgba(37, 255, 134, 0.12);
    padding-bottom: 1.2rem;
  }
  .clients__card { scroll-snap-align: start; }
  .meet__inner { justify-content: flex-end; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Keep the portrait anchored to the right at compact desktop widths so the
   copy sits in the image's calmer negative space. */
@media (min-width: 761px) and (max-width: 1100px) {
  .meet { background-position: 35% center; }
}

@media (max-width: 960px) {
  .nav__menu, .nav__cta, .nav__lang { display: none; }
  .nav__burger {
    display: grid;
    gap: 7px;
    padding: 0.6rem;
    z-index: 101;
  }
  .nav__burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--green);
    transition: transform 0.35s var(--ease-out);
  }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .mobmenu__lang { display: flex; justify-content: center; gap: 0.7rem; margin-top: 0.7rem; color: var(--muted); }
  .mobmenu__lang a[aria-current="page"] { color: var(--green); }
}

@media (max-width: 760px) {
  .meet {
    min-height: 0;
    display: block;
    padding-top: min(82vw, 32rem);
    background-image: url('../assets/christian-the-beaver4mobile.webp');
    background-size: 100% auto;
    background-position: center top;
  }
  .meet__content {
    margin: 0 0 3rem;
    padding: 1.6rem;
    border: 1px solid rgba(37, 255, 134, 0.22);
    background: rgba(6, 10, 8, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .value__features { grid-template-columns: 1fr; }
  .contact__fields { padding: 1.4rem; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .grain { display: none; }
}
