/* ==========================================================================
   EEC Design — vanilla stylesheet (black & white, SF font, light/dark)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Palette — "indigo & signal" (dual accent)

     --accent-rgb        primary indigo: fills, borders, large type, decoration
     --accent-2-rgb      secondary cyan: gradients, highlights, "after" states
     --accent-fg-rgb     text sitting ON an accent fill — white in both themes,
                         because indigo is dark enough for white in light mode
                         and saturated enough for white in dark mode
     --accent-text-rgb   indigo tuned for small text on the page background
                         (darkened in light mode so it clears 4.5:1)
     --accent-2-text-rgb same, for the cyan

     --grad              the house gradient; used on the scroll bar, headline
                         accent, icon tiles and hover edges so the two accents
                         always read as one system rather than two colours.
   -------------------------------------------------------------------------- */
:root {
  --bg-rgb: 246 247 251;
  --fg-rgb: 16 18 32;
  --accent-rgb: 99 91 255;
  --accent-text-rgb: 79 70 229;
  --accent-fg-rgb: 255 255 255;
  --accent-2-rgb: 6 155 184;
  --accent-2-text-rgb: 14 116 144;
  --grid-dot: rgba(16, 18, 32, 0.085);
  --scroll-thumb: #ccd1e6;
  --card: 255 255 255;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg-rgb: 10 12 20;
  --fg-rgb: 233 236 245;
  --accent-rgb: 124 116 255;
  --accent-text-rgb: 165 158 255;
  --accent-fg-rgb: 255 255 255;
  --accent-2-rgb: 34 211 238;
  --accent-2-text-rgb: 103 232 249;
  --grid-dot: rgba(233, 236, 245, 0.075);
  --scroll-thumb: #232840;
  --card: 18 21 35;
  color-scheme: dark;
}

:root {
  --grad: linear-gradient(115deg, rgb(var(--accent-rgb)), rgb(var(--accent-2-rgb)));
  /* three stops so the drift animation can travel and come back seamlessly */
  --grad-text: linear-gradient(
    100deg,
    rgb(var(--accent-rgb)),
    rgb(var(--accent-2-rgb)),
    rgb(var(--accent-rgb))
  );
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Registering --x is what lets the before/after nudge animate; without support
   the nudge simply does not play and everything else still works.
   It must inherit: the frame owns the value, but the clipped pane, the split
   line and the knob are all children that read it. */
@property --x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* the page colour lives here so the animated background layers (which sit at
     z-index 0 inside <body>) are not hidden behind an opaque body background */
  background: rgb(var(--bg-rgb));
  transition: background-color 0.4s ease;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: transparent;
  color: rgb(var(--fg-rgb));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: rgb(var(--accent-rgb));
  color: rgb(var(--accent-fg-rgb));
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgb(var(--bg-rgb));
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 999px;
}

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgb(var(--accent-text-rgb));
}
.section-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
.muted {
  color: rgb(var(--fg-rgb) / 0.6);
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.45s var(--ease), box-shadow 0.3s ease,
    background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
/* while the cursor is inside, JS drives the transform every frame — a long
   transition would lag behind it, so the spring only applies on the way back */
.btn.magnetic,
.pill.magnetic {
  transition: box-shadow 0.3s ease, background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}
.btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg {
  transform: translate(2px, -2px);
}
.btn-outline:hover svg,
.btn-sm:hover svg {
  transform: translateX(2px);
}
.btn-primary {
  background-image: var(--grad);
  background-size: 160% 100%;
  color: rgb(var(--accent-fg-rgb));
  box-shadow: 0 6px 20px -8px rgb(var(--accent-rgb) / 0.75);
  transition: transform 0.45s var(--ease), box-shadow 0.35s ease,
    background-position 0.5s var(--ease);
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 12px 30px -8px rgb(var(--accent-rgb) / 0.85);
}
.btn-outline {
  border-color: rgb(var(--fg-rgb) / 0.2);
  color: rgb(var(--fg-rgb));
}
.btn-outline:hover {
  background: rgb(var(--accent-rgb) / 0.07);
  border-color: rgb(var(--accent-rgb) / 0.55);
  color: rgb(var(--accent-text-rgb));
}
.btn-sm {
  padding: 0 1.25rem;
  height: 2.25rem;
}

/* ---------- logo adaptivity (transparent PNGs: black in light, white in dark) ---------- */
.logo-img {
  filter: grayscale(1) invert(1);
}
html[data-theme="dark"] .logo-img {
  filter: grayscale(1) invert(0);
}
.logo-mark {
  filter: invert(1);
}
html[data-theme="dark"] .logo-mark {
  filter: invert(0);
}

/* ---------- grid backdrop ---------- */
.grid-bg {
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  padding: 0 0.5rem;
}
.nav-inner {
  max-width: 72rem;
  margin: 0.5rem auto 0;
  padding: 0.4rem 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  border-radius: 1rem;
}
.site-header.scrolled .nav-inner {
  max-width: 56rem;
  border-color: rgb(var(--fg-rgb) / 0.1);
  background: rgb(var(--bg-rgb) / 0.7);
  backdrop-filter: blur(16px);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand img {
  height: 1.25rem;
  width: auto;
}
.brand span {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
}
.nav-links a {
  position: relative;
  color: rgb(var(--fg-rgb) / 0.6);
  padding-bottom: 0.2rem;
  transition: color 0.2s;
}
/* the underline wipes in from the left and out to the right, so hovering along
   the nav reads as one continuous movement rather than four separate blinks */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav-links a:hover {
  color: rgb(var(--fg-rgb));
}
.nav-links a.active {
  color: rgb(var(--fg-rgb));
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.control-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0.4rem;
}
.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* language dropdown */
.lang {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--fg-rgb) / 0.15);
  background: transparent;
  color: rgb(var(--fg-rgb) / 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}
.lang-btn:hover {
  background: rgb(var(--fg-rgb) / 0.05);
  color: rgb(var(--fg-rgb));
}
.lang-menu {
  position: absolute;
  right: 0;
  top: 2.75rem;
  min-width: 9rem;
  padding: 0.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.15);
  background: rgb(var(--bg-rgb) / 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: none;
}
.lang.open .lang-menu {
  display: block;
}
.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: transparent;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: rgb(var(--fg-rgb) / 0.6);
  transition: background-color 0.15s, color 0.15s;
}
.lang-menu button:hover {
  background: rgb(var(--fg-rgb) / 0.05);
  color: rgb(var(--fg-rgb));
}
.lang-menu button[aria-selected="true"] {
  background: rgb(var(--fg-rgb) / 0.1);
  color: rgb(var(--fg-rgb));
}
.lang-menu .lang-name {
  color: rgb(var(--fg-rgb) / 0.4);
  margin-left: 0.5rem;
  font-weight: 400;
}
.lang-menu svg {
  width: 0.9rem;
  height: 0.9rem;
}

@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-actions {
    position: absolute;
    top: 4.5rem;
    right: 0.5rem;
    left: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgb(var(--fg-rgb) / 0.1);
    background: rgb(var(--bg-rgb));
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    display: none;
  }
  .site-header.menu-open .nav-actions {
    display: flex;
  }
  .mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 1rem;
  }
  .mobile-links a {
    color: rgb(var(--fg-rgb) / 0.75);
  }
  .mobile-links a.active {
    color: rgb(var(--fg-rgb));
  }
  .control-row {
    display: flex;
    gap: 0.5rem;
  }
}
@media (min-width: 1024px) {
  .mobile-links {
    display: none;
  }
}

/* ==========================================================================
   Hero — line-drawing on the left, copy on the right
   ========================================================================== */
.hero {
  position: relative;
}
.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  min-height: 92vh;
  padding-top: 8.5rem;
  padding-bottom: 5rem;
}
/* split kicks in early so the copy sits on the right on laptops too */
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    padding-top: 7rem;
  }
}
@media (min-width: 1200px) {
  .hero-grid {
    gap: 5.5rem;
  }
}

/* ---- copy side ---- */
.hero-copy {
  order: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--fg-rgb) / 0.15);
  background: rgb(var(--fg-rgb) / 0.04);
  padding: 0.3rem 0.8rem 0.3rem 0.6rem;
  font-size: 0.75rem;
  color: rgb(var(--fg-rgb) / 0.65);
}
.badge i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgb(var(--accent-rgb));
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}
.hero-eyebrow {
  margin-top: 1.5rem;
}
.hero-title {
  margin-top: 0.9rem;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  position: relative;
  white-space: normal;
  /* the gradient drifts slowly across the accent words — the only continuously
     animating text on the page, so it reads as a highlight and not as noise */
  background-image: var(--grad-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-drift 11s ease-in-out infinite;
}
@keyframes grad-drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1em;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  opacity: 0.6;
  transform-origin: left center;
  animation: underline-in 1.1s var(--ease) 0.9s both;
}
@keyframes underline-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* headline word-by-word entrance — JS wraps each word in a .w span */
.hero-title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(1.5deg);
  animation: word-in 0.85s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 120ms);
}
@keyframes word-in {
  to { opacity: 1; transform: none; }
}
/* A transformed child moves its glyphs but not the parent's clipped background,
   so once the headline is split each accent word carries the gradient itself. */
.hero-title.split em {
  background-image: none;
  color: inherit;
  animation: none;
}
.hero-title.split em .w {
  background-image: var(--grad-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: word-in 0.85s var(--ease) forwards,
    grad-drift 11s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 55ms + 120ms), 0s;
}
.hero-text {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: rgb(var(--fg-rgb) / 0.6);
  text-wrap: pretty;
}
.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- art side ---- */
/* copy left, art right — on every width (stacked, copy first, on small screens) */
.hero-art {
  order: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.art-glow {
  position: absolute;
  inset: 6% 2% auto 2%;
  height: 76%;
  border-radius: 999px;
  background: rgb(var(--accent-rgb) / 0.12);
  filter: blur(120px);
  pointer-events: none;
}
.art-cap {
  position: relative;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgb(var(--fg-rgb) / 0.35);
}
.art-cap span {
  width: 2.25rem;
  height: 1px;
  background: rgb(var(--accent-rgb) / 0.6);
}

/* ---- orbital system: concentric arcs, a radar sweep and orbiting nodes ----
   Only transform/opacity animate, so every layer stays on the compositor. */
.orbit {
  position: relative;
  width: 100%;
  max-width: 29rem;
  aspect-ratio: 1;
  margin-inline: auto;
}
.orbit > * {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}

/* faint dot field, fading out toward the rim */
.o-disc {
  width: 72%;
  height: 72%;
  background-image: radial-gradient(var(--grid-dot) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%);
  mask-image: radial-gradient(circle, #000 35%, transparent 72%);
}

/* rotating radar sweep, masked down to a thin ring */
.o-sweep {
  width: 88%;
  height: 88%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgb(var(--accent-rgb) / 0.32) 46deg,
    transparent 108deg
  );
  -webkit-mask-image: radial-gradient(circle, transparent 61%, #000 63%, #000 76%, transparent 78%);
  mask-image: radial-gradient(circle, transparent 61%, #000 63%, #000 76%, transparent 78%);
  animation: o-spin 9s linear infinite;
}

/* arcs — a transparent border with one or two sides tinted reads as an arc */
.o-ring {
  border: 1px solid transparent;
}
.o-ring.r1 {
  width: 94%;
  height: 94%;
  border-top-color: rgb(var(--fg-rgb) / 0.24);
  border-right-color: rgb(var(--fg-rgb) / 0.24);
  animation: o-spin 46s linear infinite;
}
.o-ring.r2 {
  width: 82%;
  height: 82%;
  border-bottom-color: rgb(var(--accent-rgb) / 0.6);
  border-left-color: rgb(var(--accent-rgb) / 0.22);
  animation: o-spin 30s linear infinite reverse;
}
.o-ring.r3 {
  width: 62%;
  height: 62%;
  border-left-color: rgb(var(--fg-rgb) / 0.3);
  border-top-color: rgb(var(--fg-rgb) / 0.12);
  animation: o-spin 21s linear infinite;
}
.o-ring.r4 {
  width: 44%;
  height: 44%;
  border: 1px dashed rgb(var(--fg-rgb) / 0.2);
  animation: o-spin 64s linear infinite reverse;
}
@keyframes o-spin {
  to { transform: rotate(360deg); }
}

/* nodes ride their ring: the wrapper spins, the dot sits on the rim */
.o-node i {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: rgb(var(--accent-rgb));
  box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / 0.16);
}
.o-node.n1 { width: 94%; height: 94%; animation: o-spin 46s linear infinite; }
.o-node.n2 { width: 82%; height: 82%; animation: o-spin 30s linear infinite reverse; }
.o-node.n3 {
  width: 62%;
  height: 62%;
  animation: o-spin 21s linear infinite;
}
.o-node.n3 i {
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  top: -3.5px;
  background: rgb(var(--fg-rgb) / 0.55);
  box-shadow: none;
}

/* signal pulses travelling outward from the core */
.o-pulse {
  width: 44%;
  height: 44%;
  border: 1px solid rgb(var(--accent-rgb) / 0.5);
  opacity: 0;
  animation: o-pulse 7s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
.o-pulse.p2 { animation-delay: 3.5s; }
@keyframes o-pulse {
  0% { transform: scale(1); opacity: 0; }
  12% { opacity: 0.75; }
  70%, 100% { transform: scale(2.28); opacity: 0; }
}

/* glowing core */
.o-core {
  width: 26%;
  height: 26%;
  background: radial-gradient(
    circle,
    rgb(var(--accent-rgb) / 0.9) 0%,
    rgb(var(--accent-rgb) / 0.45) 38%,
    rgb(var(--accent-rgb) / 0) 70%
  );
  animation: o-breathe 6s ease-in-out infinite;
}
@keyframes o-breathe {
  50% { transform: scale(1.13); opacity: 0.82; }
}

@media (max-width: 899px) {
  .orbit { max-width: 21rem; }
}
@media (prefers-reduced-motion: reduce) {
  .o-pulse { opacity: 0.3; }
}

/* ==========================================================================
   Partner cloud (marquee)
   ========================================================================== */
.partners {
  border-top: 1px solid rgb(var(--fg-rgb) / 0.1);
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.1);
  padding: 3.5rem 0;
}
.partners-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.partners-label {
  text-align: center;
  font-size: 0.875rem;
  color: rgb(var(--fg-rgb) / 0.5);
}
.partners-label small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgb(var(--fg-rgb) / 0.3);
}
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 5rem;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  width: 8rem;
  padding: 0 1rem;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}
.marquee a:hover {
  opacity: 1;
  transform: scale(1.05);
}
.marquee a img {
  height: 100%;
  width: auto;
  object-fit: contain;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 2.5rem));
  }
}

@media (min-width: 768px) {
  .partners-inner {
    flex-direction: row;
  }
  .partners-label {
    max-width: 13rem;
    text-align: right;
    border-right: 1px solid rgb(var(--fg-rgb) / 0.1);
    padding-right: 2rem;
    flex-shrink: 0;
  }
  .marquee {
    width: calc(100% - 14rem);
  }
}

/* ==========================================================================
   Generic sections / cards / CTA
   ========================================================================== */
/* Longhand on purpose: most sections are `.section.container`, and a `padding`
   shorthand here would reset .container's 1.5rem side gutters to zero — which
   pins the text to the screen edge on phones. */
.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.pt-nav {
  padding-top: 10rem;
}
/* Pages that end on a plain container (the team page ends on its CTA) had the
   last block sitting flush against the footer — give it room to breathe.
   Pages ending on a full-bleed .partners strip are unaffected. */
#main > section.container:last-child {
  padding-bottom: 7rem;
}
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.1);
  background: rgb(var(--card) / 0.5);
  padding: 4rem 2rem;
  text-align: center;
}
/* a slow accent wash behind the CTA so it lifts off the page without a border
   heavy enough to fight the rest of the layout */
.cta-box::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 120%;
  background: radial-gradient(
      ellipse 50% 60% at 25% 10%,
      rgb(var(--accent-rgb) / 0.16),
      transparent 70%
    ),
    radial-gradient(
      ellipse 45% 55% at 80% 90%,
      rgb(var(--accent-2-rgb) / 0.14),
      transparent 70%
    );
  filter: blur(30px);
  pointer-events: none;
  animation: cta-drift 18s ease-in-out infinite alternate;
}
@keyframes cta-drift {
  to { transform: translate3d(4%, 3%, 0) scale(1.08); }
}
.cta-box .grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 50%, transparent 100%);
}
/* the wash is a sibling of the content, so both need an explicit layer or the
   later-painted pseudo-element would sit on top of the text */
.cta-box::after {
  z-index: 0;
}
.cta-box > * {
  position: relative;
  z-index: 1;
}
.cta-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 1.5rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.1);
  padding: 2rem;
}
@media (min-width: 640px) {
  .cta-inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   About (bio)
   ========================================================================== */
.page-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.page-hero .lead {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  color: rgb(var(--fg-rgb) / 0.6);
}
/* ==========================================================================
   Projects showcase
   ========================================================================== */
.showcase {
  position: relative;
}
.showcase-glow {
  position: absolute;
  left: 50%;
  top: 33%;
  /* a fixed 420px blob is wider than a phone; cap it to the column */
  width: min(420px, 100%);
  height: min(420px, 100vw);
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.1);
  filter: blur(130px);
  opacity: 0.5;
  pointer-events: none;
}
.showcase-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.frame-wrap {
  width: 100%;
  max-width: 28rem;
  flex-shrink: 0;
  position: relative;
}
.frame-ring {
  position: absolute;
  inset: -8%;
  border-radius: 2rem;
  border: 1px dashed rgb(var(--fg-rgb) / 0.1);
  animation: spin 44s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.browser {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.1);
  background: rgb(var(--fg-rgb) / 0.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.1);
}
.browser-dots {
  display: flex;
  gap: 0.375rem;
}
.browser-dots span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.2);
}
.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.1);
  background: rgb(var(--fg-rgb) / 0.05);
  padding: 0.375rem 0.75rem;
}
.browser-url svg {
  width: 0.75rem;
  height: 0.75rem;
  color: rgb(var(--fg-rgb) / 0.4);
}
.browser-url span {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  color: rgb(var(--fg-rgb) / 0.5);
}
.browser-screen {
  position: relative;
  display: grid;
  place-items: center;
  height: 19rem;
  overflow: hidden;
}
.browser-screen img {
  position: relative;
  z-index: 1;
  width: 11rem;
  height: 11rem;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}
.browser-screen img.swapping {
  opacity: 0;
  transform: scale(0.7);
  filter: blur(14px);
}

.details {
  width: 100%;
  max-width: 28rem;
}
.details .cat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgb(var(--accent-text-rgb));
}
.details h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.details .desc {
  margin-top: 1rem;
  max-width: 24rem;
  color: rgb(var(--fg-rgb) / 0.55);
  line-height: 1.6;
}
.scope {
  margin-top: 2rem;
  border-radius: 1rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.1);
  background: rgb(var(--fg-rgb) / 0.02);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.meter .meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.meter .meter-top .name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgb(var(--fg-rgb) / 0.7);
}
.meter .meter-top .name svg {
  width: 1rem;
  height: 1rem;
}
.meter .meter-top .pct {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.75rem;
  color: rgb(var(--fg-rgb) / 0.4);
}
.meter .bar {
  height: 0.375rem;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.1);
  overflow: hidden;
}
.meter .bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background-image: var(--grad);
  width: var(--w, 0);
  animation: bar-fill 0.9s var(--ease) both;
}
@keyframes bar-fill {
  from { width: 0; }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--fg-rgb) / 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: rgb(var(--fg-rgb) / 0.35);
  transition: border-color 0.3s ease, background-color 0.3s ease,
    transform 0.35s var(--ease);
}
.chip svg {
  width: 0.75rem;
  height: 0.75rem;
}
.chip.on {
  border-color: rgb(var(--accent-rgb) / 0.45);
  color: rgb(var(--fg-rgb));
}
.chip.on:hover {
  background: rgb(var(--accent-rgb) / 0.1);
  border-color: rgb(var(--accent-rgb) / 0.75);
  transform: translateY(-2px);
}
.chip.on svg {
  color: rgb(var(--accent-2-text-rgb));
}
.details .visit {
  margin-top: 1.75rem;
}

.pick-label {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgb(var(--accent-text-rgb));
}
.switcher {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.switcher-inner {
  display: flex;
  gap: 0.25rem;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 999px;
  border: 1px solid rgb(var(--fg-rgb) / 0.15);
  background: rgb(var(--fg-rgb) / 0.05);
  padding: 0.375rem;
  scrollbar-width: none;
}
.switcher-inner::-webkit-scrollbar {
  display: none;
}
.pill {
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgb(var(--fg-rgb) / 0.7);
  transition: color 0.3s;
}
.pill:hover {
  color: rgb(var(--fg-rgb));
}
.pill.active {
  background-image: var(--grad);
  color: rgb(var(--accent-fg-rgb));
  box-shadow: 0 6px 18px -8px rgb(var(--accent-rgb) / 0.9);
}

@media (min-width: 1024px) {
  .showcase-row {
    flex-direction: row;
    gap: 6rem;
  }
  .showcase-row.reverse {
    flex-direction: row-reverse;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgb(var(--fg-rgb) / 0.1);
}
/* same reason as .section — this element is also a .container */
.footer-inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.footer-brand {
  max-width: 24rem;
}
.footer-logo {
  height: 1.75rem;
  width: auto;
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgb(var(--fg-rgb) / 0.5);
}
/* two fixed columns with a 4rem gap do not fit a 320px phone, so let them wrap */
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
}
.footer-cols .col-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(var(--fg-rgb) / 0.58);
}
.footer-cols ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.footer-cols a,
.footer-cols li {
  color: rgb(var(--fg-rgb) / 0.7);
}
.footer-cols a {
  transition: color 0.2s;
}
.footer-cols a:hover {
  color: rgb(var(--accent-text-rgb));
}
.footer-cols li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-cols li svg {
  width: 1rem;
  height: 1rem;
}
.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(var(--fg-rgb) / 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgb(var(--fg-rgb) / 0.58);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
/* One entrance, four flavours. `--d` staggers siblings (JS fills it in when the
   markup does not), `data-rv` picks the direction the element arrives from. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease),
    filter 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal[data-rv="left"] {
  transform: translateX(-28px);
}
.reveal[data-rv="right"] {
  transform: translateX(28px);
}
.reveal[data-rv="scale"] {
  transform: scale(0.955) translateY(14px);
}
/* A sideways entrance on a full-width block pushes past the viewport edge while
   it waits to be revealed, so narrow screens get the vertical entrance instead. */
@media (max-width: 760px) {
  .reveal[data-rv="left"],
  .reveal[data-rv="right"] {
    transform: translateY(18px);
  }
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ==========================================================================
   Cursor spotlight — a soft accent wash that follows the pointer inside a card
   ========================================================================== */
.spot {
  position: relative;
  isolation: isolate;
}
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    16rem circle at var(--mx, 50%) var(--my, 50%),
    rgb(var(--accent-rgb) / 0.14),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.spot:hover::before {
  opacity: 1;
}
@media (pointer: coarse) {
  .spot::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
  /* anything whose resting state is "hidden until it animates in" has to be
     handed its finished state directly, or it never becomes visible at all */
  .svc-panel .tick-list li {
    opacity: 1;
    transform: none;
  }
  .hero-title .w {
    opacity: 1;
    transform: none;
  }
  .svc-rail-fill,
  .tl-line-fill {
    transform: none;
  }
}

/* ==========================================================================
   Animated background — drifting glow + sparse particle field
   ========================================================================== */
#bg-aurora,
#bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#bg-aurora {
  overflow: hidden;
}
#bg-aurora::before,
#bg-aurora::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  will-change: transform;
}
#bg-aurora::before {
  width: 46vw;
  height: 46vw;
  min-width: 340px;
  min-height: 340px;
  top: -12vh;
  left: -8vw;
  background: rgb(var(--accent-rgb) / 0.085);
  animation: aurora-a 26s ease-in-out infinite alternate;
}
/* the second blob carries the secondary accent, so the two drift past each
   other and the background quietly cycles between the palette's two poles */
#bg-aurora::after {
  width: 40vw;
  height: 40vw;
  min-width: 280px;
  min-height: 280px;
  bottom: -14vh;
  right: -10vw;
  background: rgb(var(--accent-2-rgb) / 0.075);
  animation: aurora-b 34s ease-in-out infinite alternate;
}
@keyframes aurora-a {
  to { transform: translate3d(24vw, 16vh, 0) scale(1.25); }
}
@keyframes aurora-b {
  to { transform: translate3d(-20vw, -14vh, 0) scale(1.18); }
}

/* content rides above the background layers */
#main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Custom cursor (fine pointers only — JS adds .has-cursor)
   ========================================================================== */
html.has-cursor,
html.has-cursor * {
  cursor: none;
}
.cur-dot,
.cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
html.cur-on .cur-dot,
html.cur-on .cur-ring {
  opacity: 1;
}
.cur-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 999px;
  background: rgb(var(--accent-rgb));
  transition: opacity 0.25s ease;
}
.cur-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 999px;
  border: 1px solid rgb(var(--fg-rgb) / 0.35);
  transition: opacity 0.25s ease, width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.25s cubic-bezier(0.16, 1, 0.3, 1), margin 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease, border-color 0.25s ease;
}
.cur-ring.hot {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: rgb(var(--accent-rgb) / 0.75);
  background: rgb(var(--accent-rgb) / 0.1);
}
.cur-ring.down {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
}

/* ==========================================================================
   Lamp theme toggle (EEC Lamp kit — sizing overrides only)
   ========================================================================== */
.lamp-btn.eec-lamp-btn {
  width: 2.5rem;
  height: 2.9rem;
  align-items: center;
  color: rgb(var(--fg-rgb) / 0.75);
  transition: color 0.2s ease;
}
.lamp-btn.eec-lamp-btn:hover {
  color: rgb(var(--fg-rgb));
}
/* the kit hardcodes a cool lavender in dark mode — warm it to the palette */
html[data-theme="dark"] .lamp-btn.eec-lamp-btn {
  color: rgb(var(--fg-rgb) / 0.8);
}
html[data-theme="dark"] .lamp-btn.eec-lamp-btn:hover {
  color: rgb(var(--fg-rgb));
}
.lamp-btn .eec-lamp-ico {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   Section heads
   ========================================================================== */
.sec-head {
  display: grid;
  gap: 1.25rem;
}
.sec-head .eyebrow {
  margin-bottom: 1rem;
}
.sec-head-text {
  max-width: 26rem;
}
.sec-foot {
  margin-top: 2.5rem;
  display: flex;
}
@media (min-width: 900px) {
  .sec-head {
    grid-template-columns: 1.35fr 1fr;
    align-items: end;
    gap: 3rem;
  }
}

/* ==========================================================================
   Services
   ========================================================================== */
/* the icon tile carries the house gradient, faintly at rest and fully on hover
   — it is the single element that ties every service block to the palette */
.svc-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgb(var(--accent-rgb) / 0.3);
  background: rgb(var(--accent-rgb) / 0.08);
  color: rgb(var(--accent-text-rgb));
  flex-shrink: 0;
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.45s var(--ease);
}
.svc-ico::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.svc-ico svg {
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
}
.svc-ico.lg {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1.1rem;
}
.svc-ico.lg svg {
  width: 1.45rem;
  height: 1.45rem;
}
.svc-card:hover .svc-ico,
.svc-panel:hover .svc-ico {
  color: rgb(var(--accent-fg-rgb));
  border-color: transparent;
  transform: translateY(-2px) rotate(-4deg);
}
.svc-card:hover .svc-ico::before,
.svc-panel:hover .svc-ico::before {
  opacity: 1;
}

/* the oversized number sitting behind each card / panel */
.svc-ghost {
  position: absolute;
  right: 0.5rem;
  bottom: -1.4rem;
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.07;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.6s var(--ease);
}
.svc-card:hover .svc-ghost,
.svc-panel:hover .svc-ghost {
  opacity: 0.16;
  transform: translateY(-4px) scale(1.04);
}

/* ---------- home teaser deck ---------- */
.svc-deck {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .svc-deck { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .svc-deck { grid-template-columns: repeat(4, 1fr); }
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.1);
  background: rgb(var(--card) / 0.72);
  padding: 1.75rem 1.6rem 1.6rem;
  transition: border-color 0.35s ease, transform 0.5s var(--ease),
    box-shadow 0.45s ease, background-color 0.35s ease;
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgb(var(--accent-rgb) / 0.45);
  background: rgb(var(--card) / 0.95);
  box-shadow: 0 22px 45px -25px rgb(var(--accent-rgb) / 0.65);
}
/* gradient hairline that draws itself across the top edge on hover */
.svc-edge {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease);
}
.svc-card:hover .svc-edge {
  transform: scaleX(1);
}
.svc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.svc-num {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgb(var(--accent-text-rgb) / 0.75);
}
.svc-card h3 {
  position: relative;
  margin-top: 1.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.svc-card p {
  position: relative;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgb(var(--fg-rgb) / 0.55);
}
.svc-mini {
  position: relative;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgb(var(--fg-rgb) / 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: rgb(var(--fg-rgb) / 0.5);
}
.svc-mini li {
  position: relative;
  padding-left: 0.9rem;
  transition: color 0.3s ease;
}
.svc-mini li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: rgb(var(--accent-rgb) / 0.55);
  transition: background-color 0.3s ease, transform 0.35s var(--ease);
}
.svc-card:hover .svc-mini li {
  color: rgb(var(--fg-rgb) / 0.72);
}
.svc-card:hover .svc-mini li::before {
  background: rgb(var(--accent-2-rgb));
  transform: scale(1.35);
}
.svc-go {
  position: relative;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  color: rgb(var(--accent-text-rgb));
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}
.svc-go svg {
  width: 1.1rem;
  height: 1.1rem;
}
.svc-card:hover .svc-go,
.svc-card:focus-visible .svc-go {
  opacity: 1;
  transform: none;
}

/* ---------- services page: rail + panels ---------- */
.svc-stack {
  margin-top: 4rem;
  display: grid;
  gap: 0;
}
@media (min-width: 900px) {
  .svc-stack {
    grid-template-columns: 2.5rem 1fr;
    gap: 2.5rem;
  }
}
/* the rail is a scroll gauge: its fill height is written by JS as a scaleY */
.svc-rail {
  display: none;
  position: relative;
  width: 2px;
  margin-left: auto;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.1);
}
@media (min-width: 900px) {
  .svc-rail { display: block; }
}
.svc-rail-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--grad);
  /* JS only writes --p; the axis is the stylesheet's decision, so the same
     value drives a vertical rail here and a horizontal one on the timeline */
  transform: scaleY(var(--p, 0));
  transform-origin: top center;
  box-shadow: 0 0 14px rgb(var(--accent-rgb) / 0.5);
}
.svc-panels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.svc-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.1);
  background: rgb(var(--card) / 0.7);
  padding: 2.25rem;
  transition: border-color 0.35s ease, background-color 0.35s ease,
    box-shadow 0.45s ease;
}
.svc-panel:hover {
  border-color: rgb(var(--accent-rgb) / 0.4);
  background: rgb(var(--card) / 0.92);
  box-shadow: 0 26px 60px -35px rgb(var(--accent-rgb) / 0.7);
}
.svc-panel .svc-ghost {
  right: 1.25rem;
  bottom: -2rem;
  font-size: 10rem;
}
.svc-panel-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.svc-kicker {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgb(var(--accent-text-rgb) / 0.8);
}
.svc-panel-title h2 {
  margin-top: 0.3rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.svc-panel-grid {
  position: relative;
  margin-top: 1.75rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 820px) {
  .svc-panel-grid {
    grid-template-columns: 1fr 16rem;
    gap: 3rem;
    align-items: start;
  }
}
.svc-panel-body p {
  max-width: 36rem;
  line-height: 1.65;
}
.svc-panel-body .chips {
  margin-top: 1.25rem;
}
.svc-deliver {
  border-radius: 1rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.1);
  background: rgb(var(--fg-rgb) / 0.025);
  padding: 1.25rem;
}
.svc-deliver .col-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--fg-rgb) / 0.58);
}
.tick-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
}
.tick-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgb(var(--fg-rgb) / 0.7);
}
.tick-list svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  color: rgb(var(--accent-2-text-rgb));
}
/* the ticks tick themselves off once the panel has scrolled into view */
.svc-panel .tick-list li {
  opacity: 0;
  transform: translateX(-8px);
}
.svc-panel.in .tick-list li {
  animation: tick-in 0.5s var(--ease) forwards;
  animation-delay: calc(var(--d, 0s) + 0.2s);
}
@keyframes tick-in {
  to { opacity: 1; transform: none; }
}

/* ---------- process timeline ---------- */
.process {
  margin-top: 6rem;
}
.timeline {
  position: relative;
  margin-top: 3.5rem;
  display: grid;
  gap: 2.25rem;
  padding-left: 2rem;
}
.tl-line {
  position: absolute;
  left: 0.32rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.12);
  overflow: hidden;
}
.tl-line-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--grad);
  transform: scaleY(var(--p, 0));
  transform-origin: top center;
}
.tl-step {
  position: relative;
}
.tl-dot {
  position: absolute;
  left: -1.85rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgb(var(--bg-rgb));
  border: 2px solid rgb(var(--fg-rgb) / 0.25);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.5s var(--ease);
}
.tl-step.in .tl-dot {
  border-color: rgb(var(--accent-rgb));
  box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.15);
  transform: scale(1.15);
}
.step-n {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgb(var(--accent-text-rgb));
}
.tl-step h3 {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.tl-step p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
/* on wide screens the timeline lies down and the gauge fills left-to-right */
@media (min-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-left: 0;
    padding-top: 2.5rem;
  }
  .tl-line {
    left: 0;
    /* stop on the last dot instead of running off to the right edge: with four
       equal columns and a 2rem gap, one column measures 25% - 1.5rem */
    right: calc(25% - 1.85rem);
    top: 0.32rem;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .tl-line-fill {
    transform: scaleX(var(--p, 0));
    transform-origin: left center;
  }
  .tl-dot {
    left: 0;
    top: -2.83rem;
  }
}

/* ==========================================================================
   Team
   ========================================================================== */
.members {
  margin-top: 4rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .members { grid-template-columns: repeat(2, 1fr); }
}
.member {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.12);
  background: rgb(var(--card) / 0.72);
  padding: 2.25rem;
  transition: border-color 0.35s ease, transform 0.5s var(--ease),
    box-shadow 0.45s ease, background-color 0.35s ease;
}
.member:hover {
  border-color: rgb(var(--accent-rgb) / 0.45);
  background: rgb(var(--card) / 0.95);
  transform: translateY(-5px);
  box-shadow: 0 26px 55px -30px rgb(var(--accent-rgb) / 0.65);
}
.member.is-incomplete,
.member.is-incomplete .avatar {
  border-style: dashed;
}
.member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.avatar {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(var(--accent-rgb) / 0.4);
  background: rgb(var(--accent-rgb) / 0.08);
  color: rgb(var(--accent-text-rgb));
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.5s var(--ease);
}
.avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.avatar span {
  position: relative;
}
.member:hover .avatar {
  color: rgb(var(--accent-fg-rgb));
  border-color: transparent;
  transform: scale(1.06);
}
.member:hover .avatar::before {
  opacity: 1;
}
.avatar span {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.ph-badge {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--fg-rgb) / 0.6);
  border: 1px dashed rgb(var(--fg-rgb) / 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.member h2 {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.member-role {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--accent-text-rgb));
}
.member-line {
  margin-top: 1.1rem;
  color: rgb(var(--fg-rgb) / 0.65);
  line-height: 1.65;
}
/* explicit "not added yet" copy — visually quieter, but never fake content */
.member-role.is-empty,
.member-line.is-empty {
  color: rgb(var(--fg-rgb) / 0.5);
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}
.member .chips {
  margin-top: 1.5rem;
}
.member-link {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgb(var(--fg-rgb) / 0.7);
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.2);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.member-link:hover {
  color: rgb(var(--accent-text-rgb));
  border-color: rgb(var(--accent-rgb) / 0.6);
}
.member-link svg {
  width: 1rem;
  height: 1rem;
}

/* biography / profile / contact, folded into the member's own card */
.member-detail {
  margin-top: 1.75rem;
  border-top: 1px solid rgb(var(--fg-rgb) / 0.12);
}
.member-detail summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--accent-text-rgb));
}
.member-detail summary::-webkit-details-marker {
  display: none;
}
.member-detail summary .chev {
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.member-detail summary .chev svg {
  width: 1rem;
  height: 1rem;
}
.member-detail[open] summary .chev {
  transform: rotate(180deg);
}
.detail-body {
  padding-top: 1.5rem;
  animation: detail-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes detail-in {
  from { opacity: 0; transform: translateY(-6px); }
}
.d-head {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--fg-rgb) / 0.58);
  margin-bottom: 0.85rem;
}
.d-head + * {
  margin-bottom: 2rem;
}
.d-bio p {
  color: rgb(var(--fg-rgb) / 0.7);
  line-height: 1.7;
  font-size: 0.925rem;
}
.d-bio p + p {
  margin-top: 1rem;
}
.fact-list {
  display: flex;
  flex-direction: column;
}
.fact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.09);
  font-size: 0.875rem;
}
.fact-list li:last-child {
  border-bottom: 0;
}
.fact-list span {
  color: rgb(var(--fg-rgb) / 0.62);
}
.fact-list strong {
  font-weight: 500;
  text-align: right;
}
.fact-list a:hover {
  color: rgb(var(--accent-text-rgb));
}
.detail-none {
  color: rgb(var(--fg-rgb) / 0.45);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   Öncesi / Sonrası — comparison slider

   Both panes are stacked in the same grid cell; the "before" pane sits on top
   and is clipped to the handle position, so dragging wipes one over the other.
   Everything reads the single --x property, which is the only thing the drag
   writes — one style mutation per frame.
   ========================================================================== */
.ba-sec {
  position: relative;
}
.ba-wrap {
  margin-top: 3rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1000px) {
  .ba-wrap {
    grid-template-columns: 1.25fr 1fr;
    gap: 4rem;
  }
}
.ba-stage {
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
.ba-stage.swapping {
  opacity: 0;
  transform: scale(0.985);
}
.ba-frame {
  --x: 50%;
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.12);
  background: rgb(var(--card) / 0.85);
  box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.55);
  cursor: ew-resize;
  /* vertical scrolling still belongs to the page; we only claim the x axis */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ba-pane {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  /* opaque on purpose: the two panes are stacked, so a translucent top pane
     would let the pane underneath bleed through instead of wiping over it */
  background: rgb(var(--card));
}
.ba-pane.is-before {
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
}
.ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.ba-tag {
  position: absolute;
  top: 0.85rem;
  z-index: 3;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  backdrop-filter: blur(8px);
}
.is-before .ba-tag {
  left: 0.85rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.2);
  background: rgb(var(--bg-rgb) / 0.7);
  color: rgb(var(--fg-rgb) / 0.7);
}
.is-after .ba-tag {
  right: 0.85rem;
  border: 1px solid transparent;
  background-image: var(--grad);
  color: rgb(var(--accent-fg-rgb));
}

/* the split line and its knob both ride --x */
.ba-split {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  z-index: 4;
  width: 2px;
  margin-left: -1px;
  background: var(--grad);
  box-shadow: 0 0 18px rgb(var(--accent-rgb) / 0.65);
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: var(--x);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem 0 0 -1.375rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--fg-rgb) / 0.14);
  background: rgb(var(--bg-rgb) / 0.92);
  backdrop-filter: blur(10px);
  color: rgb(var(--accent-text-rgb));
  cursor: ew-resize;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--ease), border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.ba-knob svg {
  width: 1.15rem;
  height: 1.15rem;
}
.ba-frame:hover .ba-knob {
  border-color: rgb(var(--accent-rgb) / 0.6);
  box-shadow: 0 8px 30px -8px rgb(var(--accent-rgb) / 0.7);
}
.ba-frame.dragging .ba-knob {
  transform: scale(0.92);
}
.ba-hint {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  z-index: 5;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--fg-rgb) / 0.14);
  background: rgb(var(--bg-rgb) / 0.8);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: rgb(var(--fg-rgb) / 0.6);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ba-hint svg {
  width: 0.85rem;
  height: 0.85rem;
}
.ba-frame:hover .ba-hint,
.ba-frame.dragging .ba-hint {
  opacity: 0;
}

/* first-sight nudge — needs @property to animate; skipped silently without it */
.ba-frame.peek {
  animation: ba-peek 2.6s var(--ease) 0.25s both;
}
@keyframes ba-peek {
  0% { --x: 50%; }
  28% { --x: 74%; }
  62% { --x: 28%; }
  100% { --x: 50%; }
}

/* ---- placeholder wireframes (used until real screenshots are dropped in) ----
   The two skeletons differ in structure, never in branding: the "before" one is
   cramped and busy, the "after" one is spacious with one focal block. */
.ba-skel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  gap: 0.6rem;
}
.ba-skel .sk-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.ba-skel .sk-bar i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.18);
}
.ba-skel .sk-bar b {
  flex: 1;
  height: 0.85rem;
  margin-left: 0.4rem;
  border-radius: 0.25rem;
  background: rgb(var(--fg-rgb) / 0.07);
}
.ba-skel .sk-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}
.ba-skel .sk-hero {
  border-radius: 0.3rem;
  background: rgb(var(--fg-rgb) / 0.09);
}
.ba-skel .sk-lines {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ba-skel .sk-lines i {
  height: 0.45rem;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.11);
}
.ba-skel .sk-grid {
  display: grid;
  gap: 0.4rem;
}
.ba-skel .sk-grid i {
  border-radius: 0.3rem;
  background: rgb(var(--fg-rgb) / 0.08);
}

/* before: tight margins, six cramped tiles, ragged text block */
.is-before .ba-skel .sk-hero { flex: 0 0 26%; }
.is-before .ba-skel .sk-lines i:nth-child(1) { width: 92%; }
.is-before .ba-skel .sk-lines i:nth-child(2) { width: 97%; }
.is-before .ba-skel .sk-lines i:nth-child(3) { width: 88%; }
.is-before .ba-skel .sk-lines i:nth-child(4) { width: 95%; }
.is-before .ba-skel .sk-grid {
  flex: 1;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

/* after: generous spacing, one gradient focal block, three calm tiles */
.is-after .ba-skel {
  padding: 1.1rem;
  gap: 0.9rem;
}
.is-after .ba-skel .sk-body { gap: 0.85rem; }
.is-after .ba-skel .sk-hero {
  flex: 0 0 42%;
  border-radius: 0.6rem;
  background: var(--grad);
  opacity: 0.5;
}
.is-after .ba-skel .sk-lines i { height: 0.4rem; }
.is-after .ba-skel .sk-lines i:nth-child(1) { width: 56%; }
.is-after .ba-skel .sk-lines i:nth-child(2) { width: 34%; }
.is-after .ba-skel .sk-grid {
  flex: 1;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.is-after .ba-skel .sk-grid i {
  border-radius: 0.5rem;
  border: 1px solid rgb(var(--accent-rgb) / 0.2);
  background: rgb(var(--accent-rgb) / 0.06);
}
.sk-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.2rem;
  z-index: 2;
  text-align: center;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(var(--fg-rgb) / 0.35);
  pointer-events: none;
}
/* on a phone the frame is too short for the note and the drag hint to coexist;
   the panel underneath already says the screenshots are missing */
@media (max-width: 700px) {
  .sk-note { display: none; }
}

/* ---- the copy beside the frame ---- */
.ba-meta .cat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgb(var(--accent-2-text-rgb));
}
.ba-meta h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ba-meta .desc {
  margin-top: 1rem;
  max-width: 26rem;
  color: rgb(var(--fg-rgb) / 0.6);
  line-height: 1.65;
}
.ba-note {
  margin-top: 1.25rem;
  border-left: 2px solid rgb(var(--accent-rgb) / 0.4);
  padding-left: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgb(var(--fg-rgb) / 0.45);
}
.ba-meta .btn {
  margin-top: 1.75rem;
}

/* ==========================================================================
   Accessibility & progressive enhancement
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: rgb(var(--accent-rgb));
  color: rgb(var(--accent-fg-rgb));
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus-visible {
  transform: none;
}

/* one visible, theme-aware focus ring everywhere — the UA default disappears
   against both the cream and the near-black background */
:focus-visible {
  outline: 2px solid rgb(var(--accent-rgb));
  outline-offset: 3px;
  border-radius: 4px;
}
html.has-cursor :focus-visible {
  outline-color: rgb(var(--accent-rgb));
}

.noscript-note {
  max-width: 42rem;
  margin: 8rem auto 4rem;
  padding: 0 1.5rem;
  line-height: 1.65;
  color: rgb(var(--fg-rgb) / 0.75);
}
.noscript-note p + p {
  margin-top: 1rem;
}
.noscript-note a {
  color: rgb(var(--accent-text-rgb));
  text-decoration: underline;
}

/* ==========================================================================
   Rendering performance
   ========================================================================== */
/* the blurred aurora blobs are the most expensive thing on the page; on phones
   they are replaced by a static tint that costs nothing to composite */
@media (max-width: 899px), (pointer: coarse) {
  #bg-aurora::before,
  #bg-aurora::after {
    animation: none;
    filter: blur(70px);
    opacity: 0.7;
  }
  #bg-aurora::before { width: 70vw; height: 70vw; }
  #bg-aurora::after { display: none; }
}
