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

/* --------------------------------------------------------------------------
   Palette — "warm ink & bone"
     --accent-rgb       brand amber: fills, borders, large type, decoration
     --accent-fg-rgb    text sitting ON an amber fill (always dark ink)
     --accent-text-rgb  amber tuned for small text on the page background
                        (darkened in light mode so it clears 4.5:1)
   -------------------------------------------------------------------------- */
:root {
  --bg-rgb: 247 245 240;
  --fg-rgb: 22 19 15;
  --accent-rgb: 192 123 46;
  --accent-text-rgb: 150 89 26;
  --accent-fg-rgb: 22 19 15;
  --grid-dot: rgba(22, 19, 15, 0.09);
  --scroll-thumb: #d9d3c7;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg-rgb: 15 13 11;
  --fg-rgb: 240 235 226;
  --accent-rgb: 224 160 64;
  --accent-text-rgb: 224 160 64;
  --accent-fg-rgb: 15 13 11;
  --grid-dot: rgba(240, 235, 226, 0.08);
  --scroll-thumb: #2b2620;
  color-scheme: dark;
}

*,
*::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 {
  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.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg {
  width: 1rem;
  height: 1rem;
}
.btn-primary {
  background: rgb(var(--accent-rgb));
  color: rgb(var(--accent-fg-rgb));
}
.btn-primary:hover {
  transform: scale(1.03);
}
.btn-outline {
  border-color: rgb(var(--fg-rgb) / 0.2);
  color: rgb(var(--fg-rgb));
}
.btn-outline:hover {
  background: rgb(var(--fg-rgb) / 0.05);
  border-color: rgb(var(--accent-rgb) / 0.55);
}
.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 {
  color: rgb(var(--fg-rgb) / 0.6);
  transition: color 0.15s;
}
.nav-links a:hover {
  color: rgb(var(--accent-text-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;
  color: rgb(var(--accent-rgb));
  white-space: normal;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1em;
  height: 2px;
  background: rgb(var(--accent-rgb) / 0.45);
  transform-origin: left center;
  animation: underline-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}
@keyframes underline-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.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
   ========================================================================== */
.section {
  padding: 6rem 0;
}
.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);
  padding: 4rem 2rem;
  text-align: center;
}
.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%);
}
.cta-box > * {
  position: relative;
}
.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%;
  width: 420px;
  height: 420px;
  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: rgb(var(--accent-rgb));
  width: var(--w, 0);
  animation: bar-fill 0.9s cubic-bezier(0.16, 1, 0.3, 1) 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);
}
.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 svg {
  color: rgb(var(--accent-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: rgb(var(--accent-rgb));
  color: rgb(var(--accent-fg-rgb));
}

@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);
}
.footer-inner {
  padding: 4rem 0;
}
.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);
}
.footer-cols {
  display: flex;
  gap: 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
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    filter: none;
    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;
}
#bg-aurora::after {
  width: 38vw;
  height: 38vw;
  min-width: 280px;
  min-height: 280px;
  bottom: -14vh;
  right: -10vw;
  background: rgb(var(--fg-rgb) / 0.055);
  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
   ========================================================================== */
.svc-ico {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  border: 1px solid rgb(var(--accent-rgb) / 0.35);
  background: rgb(var(--accent-rgb) / 0.07);
  color: rgb(var(--accent-text-rgb));
  flex-shrink: 0;
}
.svc-ico svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* home teaser grid */
.svc-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgb(var(--fg-rgb) / 0.1);
  background: rgb(var(--fg-rgb) / 0.1);
}
@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
}
.svc-card {
  position: relative;
  background: rgb(var(--bg-rgb));
  padding: 2rem 1.75rem 2.25rem;
  transition: background-color 0.3s ease;
}
.svc-card:hover {
  background: rgb(var(--fg-rgb) / 0.03);
}
.svc-num {
  position: absolute;
  top: 2rem;
  right: 1.75rem;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  color: rgb(var(--accent-text-rgb) / 0.7);
}
.svc-card h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.svc-card p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgb(var(--fg-rgb) / 0.55);
}

/* services page rows */
.svc-rows {
  margin-top: 4.5rem;
  border-top: 1px solid rgb(var(--fg-rgb) / 0.1);
}
.svc-row {
  display: grid;
  gap: 1.75rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.1);
}
@media (min-width: 900px) {
  .svc-row {
    grid-template-columns: 8rem 1fr 15rem;
    gap: 3rem;
    align-items: start;
  }
}
.svc-row-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.svc-num-lg {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgb(var(--accent-text-rgb) / 0.8);
  font-variant-numeric: tabular-nums;
}
.svc-row-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.svc-row-body p {
  margin-top: 0.75rem;
  max-width: 36rem;
  line-height: 1.65;
}
.svc-row-side .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-text-rgb));
}

/* process */
.process {
  margin-top: 6rem;
}
.steps {
  margin-top: 3rem;
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  padding-top: 1.5rem;
  border-top: 1px solid rgb(var(--fg-rgb) / 0.18);
}
.step-n {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgb(var(--accent-text-rgb));
}
.step h3 {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.step p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   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(--bg-rgb));
  padding: 2.25rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.member:hover {
  border-color: rgb(var(--accent-rgb) / 0.5);
  transform: translateY(-3px);
}
.member.is-incomplete,
.member.is-incomplete .avatar {
  border-style: dashed;
}
.member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.avatar {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(var(--accent-rgb) / 0.4);
  background: rgb(var(--accent-rgb) / 0.08);
  color: rgb(var(--accent-text-rgb));
}
.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;
}

/* ==========================================================================
   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; }
}
