/* ============================================================
   Everforth — one-page studio site
   Design system: midnight navy / Blue Horizon / Moonlight Fog
   Finish system: matte (rest) × gloss (active)
   ============================================================ */

:root {
  --bg: #050A16;
  --bg-raised: #0A1122;          /* matte surface, one step up from bg */
  --bg-raised-2: #0E1730;
  --blue: #6B7EB2;               /* Blue Horizon */
  --grey: #B3B3B3;               /* Moonlight Fog */
  --text: #D9DEE9;
  --text-dim: #8A92A6;

  --font-display: "Daun Penh", "Josefin Sans", "Raleway", sans-serif;
  --font-script: "Great Vibes", cursive;

  /* matte → gloss transition */
  --finish-speed: 0.35s;
  --gloss-gradient: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(255, 255, 255, 0) 60%
  );
  --gloss-topline: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --matte-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);

  /* brushed-metal vault surface */
  --brushed:
    linear-gradient(105deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.016) 0 2px,
      rgba(255, 255, 255, 0) 2px 7px),
    linear-gradient(180deg, #0C1327, #060C1A);
}

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

html { scroll-behavior: auto; } /* Lenis owns scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.015em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: var(--bg); }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   GRAIN — matte texture over the whole page (3%)
   ============================================================ */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   VAULT INTRO
   ============================================================ */
.vault {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; /* shown only when JS is running */
}
.js .vault { display: block; }
.vault.is-done { display: none; }

.vault__panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--brushed);
}
.vault__panel--top { top: 0; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6); }
.vault__panel--bottom { bottom: 0; box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.6); }

.vault__seam {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(
    to right,
    rgba(107, 126, 178, 0),
    rgba(255, 255, 255, 0.65) 35%,
    var(--blue) 50%,
    rgba(255, 255, 255, 0.65) 65%,
    rgba(107, 126, 178, 0)
  );
  box-shadow: 0 0 22px rgba(107, 126, 178, 0.85);
}

.vault__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(110px, 12vw, 150px);
  height: auto;
  transform: translate(-50%, -50%);
  overflow: visible;
}
.vault__path { fill-opacity: 0; } /* JS draws strokes, then fades fills in */

/* ============================================================
   NAV — frosted glass once past the hero
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.5rem, 5vw, 4rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background var(--finish-speed) ease,
    border-color var(--finish-speed) ease,
    backdrop-filter var(--finish-speed) ease;
}

.nav.is-frosted {
  background: rgba(5, 10, 22, 0.55);
  border-bottom-color: rgba(179, 179, 179, 0.08);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__name {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
}
.mark--nav { width: 30px; height: 24px; }

.nav__links { display: flex; align-items: center; gap: 0.6rem; }

/* glossy pill links */
.pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-block;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(179, 179, 179, 0.18);
  background: rgba(10, 17, 34, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  box-shadow: var(--gloss-topline);
  transition:
    color var(--finish-speed) ease,
    border-color var(--finish-speed) ease,
    transform var(--finish-speed) ease,
    box-shadow var(--finish-speed) ease;
}
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gloss-gradient);
  opacity: 0;
  transition: opacity var(--finish-speed) ease;
  pointer-events: none;
}
.pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.16) 50%, transparent 58%);
  background-size: 260% 100%;
  background-position: 120% 0;
  opacity: 0;
  pointer-events: none;
}
.pill:hover, .pill:focus-visible {
  color: var(--text);
  border-color: rgba(107, 126, 178, 0.55);
  transform: translateY(-1px);
  box-shadow: var(--gloss-topline), 0 8px 24px rgba(107, 126, 178, 0.2);
}
.pill:hover::before, .pill:focus-visible::before { opacity: 1; }
.pill:hover::after, .pill:focus-visible::after { opacity: 1; animation: sweep 0.9s ease forwards; }

.pill--big {
  padding: 0.85rem 1.9rem;
  font-size: 0.88rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0.06em;
}

@keyframes sweep {
  from { background-position: 120% 0; }
  to   { background-position: -60% 0; }
}

/* ============================================================
   SHARED LAYOUT
   ============================================================ */
.section { position: relative; }
.container { width: min(1140px, 90vw); margin: 0 auto; }

.about, .expertise, .results { padding: clamp(6rem, 14vh, 10rem) 0; }

/* fills the viewport while pinned so nothing peeks beneath */
.work {
  min-height: 100vh;
  padding-top: clamp(5rem, 10vh, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.script { font-family: var(--font-script); font-weight: 400; }

.section__title {
  font-weight: 200;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
}

.section__lede { color: var(--text-dim); margin-bottom: 3rem; max-width: 34rem; }

/* headings wiped in with clip-path by JS */
.js [data-wipe] { opacity: 0; }
.js [data-reveal] { opacity: 0; }

/* glossy seam drawing under each heading — echoes the vault seam.
   JS animates --seam 0 → 1 alongside the wipe. */
[data-wipe] {
  position: relative;
  padding-bottom: 0.35em;
}
[data-wipe]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1em;
  height: 2px;
  width: min(220px, 55%);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.75), var(--blue) 55%, transparent);
  box-shadow: 0 0 14px rgba(107, 126, 178, 0.6);
  transform: scaleX(var(--seam, 0));
  transform-origin: left center;
}

/* visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid #8FA1D4;
  outline-offset: 3px;
  border-radius: 4px;
}
.pill:focus-visible, .orbit:focus-visible, .child:focus-visible { border-radius: 999px; }
.child:focus-visible { border-radius: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(107, 126, 178, 0.10), transparent 70%),
    var(--bg);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.mark--hero {
  width: clamp(96px, 12vw, 150px);
  height: auto;
  margin-bottom: 2.2rem;
  overflow: visible;
  filter: drop-shadow(0 14px 34px rgba(107, 126, 178, 0.35));
}

.hero__stack { display: flex; flex-direction: column; align-items: center; font-weight: 200; }

.hero__name {
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 1.1;
  color: var(--text);
  text-shadow: 0 0 60px rgba(107, 126, 178, 0.35);
  margin-bottom: -0.32em; /* descenders overlap the caps line beneath */
  position: relative;
  z-index: 1;
}

.hero__statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(0.72rem, 1.6vw, 1.05rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 0.9em;
}

/* --- moonlight fog --- */
.fog { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.fog__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.fog__blob--1 {
  width: 55vw; height: 55vw;
  left: -12%; top: -18%;
  background: radial-gradient(closest-side, rgba(107, 126, 178, 0.08), transparent 70%);
  animation: drift1 38s ease-in-out infinite alternate;
}
.fog__blob--2 {
  width: 48vw; height: 48vw;
  right: -15%; top: 22%;
  background: radial-gradient(closest-side, rgba(107, 126, 178, 0.065), transparent 70%);
  animation: drift2 46s ease-in-out infinite alternate;
}
.fog__blob--3 {
  width: 42vw; height: 42vw;
  left: 22%; bottom: -25%;
  background: radial-gradient(closest-side, rgba(179, 179, 179, 0.05), transparent 70%);
  animation: drift3 52s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-8vw, -6vh) scale(1.08); } }
@keyframes drift3 { to { transform: translate(6vw, -8vh) scale(1.15); } }

/* --- glossy scroll indicator --- */
.scrollcue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scrollcue__pill {
  position: relative;
  width: 24px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(179, 179, 179, 0.3);
  box-shadow: var(--gloss-topline);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 55%);
  overflow: hidden;
}
.scrollcue__dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(107, 126, 178, 0.9);
  animation: cuedrop 2.1s ease-in-out infinite;
}
@keyframes cuedrop {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  70%, 100% { transform: translateY(20px); opacity: 0; }
}
.scrollcue__label {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about__copy p:not(.about__quote) {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 1.4rem;
}

.about__quote {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.4;
  color: var(--grey);
  margin: 0.6rem 0 2rem;
}

.about__portrait { perspective: 900px; }

.tilt-card {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(107, 126, 178, 0.28);
  box-shadow: var(--matte-shadow), var(--gloss-topline);
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  /* keep the palette: cool the photo toward moonlight */
  filter: saturate(0.75) contrast(1.05) brightness(0.92);
}
/* glossy diagonal sheen pinned over the photo */
.tilt-card__sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 45%),
    linear-gradient(to top, rgba(5, 10, 22, 0.85), rgba(5, 10, 22, 0) 45%);
  pointer-events: none;
}
.tilt-card__caption {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--grey);
}

/* ============================================================
   EXPERTISE — hover-expand cards
   ============================================================ */
.ecards {
  display: flex;
  gap: 1.2rem;
  align-items: stretch;
  min-height: 460px;
}

.ecard {
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 20px;
  padding: 2rem 1.9rem;
  background: linear-gradient(165deg, var(--bg-raised-2), var(--bg-raised) 60%);
  border: 1px solid rgba(107, 126, 178, 0.22);
  box-shadow: var(--matte-shadow), var(--gloss-topline);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color var(--finish-speed) ease, box-shadow var(--finish-speed) ease;
}
/* Blue Horizon edge glow, brightens while expanded */
.ecard.is-open,
.ecard:focus-within {
  border-color: rgba(107, 126, 178, 0.65);
  box-shadow:
    var(--matte-shadow),
    var(--gloss-topline),
    0 0 38px rgba(107, 126, 178, 0.28);
}

.ecard__face h3 {
  font-weight: 200;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
}
.ecard__face p {
  margin-top: 0.9rem;
  color: var(--text-dim);
  font-size: 0.98rem;
  max-width: 30rem;
}

.ecard__children {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: auto;
  /* collapsed rest state; GSAP animates height/padding open */
  padding-top: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.child {
  display: block;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  background: linear-gradient(160deg, rgba(107, 126, 178, 0.16), rgba(14, 23, 48, 0.9));
  border: 1px solid rgba(107, 126, 178, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-color var(--finish-speed) ease, background var(--finish-speed) ease, transform var(--finish-speed) ease;
}
.child:hover, .child:focus-visible {
  border-color: rgba(143, 161, 212, 0.7);
  background: linear-gradient(160deg, rgba(107, 126, 178, 0.26), rgba(14, 23, 48, 0.95));
  transform: translateX(4px);
}
.child h4 {
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A9B7DE;
}
.child p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; margin-top: 0.2rem; }

/* ============================================================
   WORK — pinned horizontal strip
   ============================================================ */
.work__head { margin-bottom: 3rem; }

.work__viewport { overflow: hidden; }

.work__track {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding: 0 clamp(1.5rem, 5vw, 5rem) 6rem;
  width: max-content;
}

/* small screens & reduced motion: no pin — swipeable row instead */
@media (max-width: 640px), (prefers-reduced-motion: reduce) {
  .work { min-height: auto; display: block; }
  .work__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 126, 178, 0.4) transparent;
  }
  .wcard { scroll-snap-align: center; }
}

.wcard {
  position: relative;
  isolation: isolate;
  width: clamp(300px, 34vw, 480px);
  flex: none;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid rgba(179, 179, 179, 0.12);
  box-shadow: var(--matte-shadow);
  transition: border-color var(--finish-speed) ease, box-shadow var(--finish-speed) ease, transform var(--finish-speed) ease;
}
.wcard:hover {
  border-color: rgba(107, 126, 178, 0.5);
  box-shadow: var(--matte-shadow), var(--gloss-topline), 0 0 30px rgba(107, 126, 178, 0.2);
  transform: translateY(-4px);
}

.wcard__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.wcard__cover svg { width: 34%; opacity: 0.55; filter: drop-shadow(0 10px 26px rgba(5, 10, 22, 0.7)); }
.wcard__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.92);
}
.wcard__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 50%);
}
.wcard__cover--1 { background: radial-gradient(ellipse at 30% 20%, #22315C, #0A1122 75%); }
.wcard__cover--2 { background: radial-gradient(ellipse at 70% 25%, #1E3A4A, #0A1122 75%); }
.wcard__cover--3 { background: radial-gradient(ellipse at 30% 75%, #33314F, #0A1122 75%); }
.wcard__cover--4 { background: radial-gradient(ellipse at 65% 70%, #1C2E52, #0A1122 78%); }

.wcard__body { padding: 1.5rem 1.7rem 1.8rem; }
.wcard__tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.wcard__body h3 {
  font-weight: 300;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: 0.03em;
  margin-top: 0.4rem;
}
.wcard__metric { margin-top: 0.5rem; color: var(--blue); font-size: 0.95rem; letter-spacing: 0.04em; }

/* ============================================================
   RESULTS
   ============================================================ */
.results { padding: clamp(4rem, 9vh, 6.5rem) 0; }

.results__line {
  height: 1px;
  margin-bottom: 3.2rem;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.5), var(--blue), rgba(107, 126, 178, 0.1));
  box-shadow: 0 0 14px rgba(107, 126, 178, 0.5);
  transform: scaleX(0);
  transform-origin: left center;
}

.results__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}
.results__stats strong {
  display: block;
  font-weight: 200;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--blue);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.results__stats span:not(.count) { }
.results__stats li > span {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.results__stats li > strong + span { display: inline-block; margin-top: 0.5rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding-top: clamp(6rem, 14vh, 10rem);
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(107, 126, 178, 0.13), transparent 70%),
    var(--bg);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mark--contact { width: 60px; height: auto; margin-bottom: 1.8rem; opacity: 0.9; }

.contact__title {
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1.25;
  color: var(--text);
  text-shadow: 0 0 50px rgba(107, 126, 178, 0.4);
}

.contact__sub { color: var(--text-dim); margin-top: 1rem; max-width: 30rem; }

.contact__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.6rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  width: min(1140px, 90vw);
  margin: 5rem auto 0;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid rgba(179, 179, 179, 0.1);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   FLOATING BUTTON — EMPOWER YOUR WORLD
   ============================================================ */
.orbit {
  position: fixed;
  right: clamp(1.2rem, 3vw, 2.5rem);
  bottom: clamp(1.2rem, 3vw, 2.5rem);
  z-index: 500;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--bg-raised-2), var(--bg-raised) 70%);
  border: 1px solid rgba(107, 126, 178, 0.3);
  box-shadow: var(--matte-shadow), var(--gloss-topline);
  transition:
    transform var(--finish-speed) ease,
    box-shadow var(--finish-speed) ease,
    border-color var(--finish-speed) ease;
}
.js .orbit { opacity: 0; visibility: hidden; } /* revealed after the vault */

.orbit:hover, .orbit:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(107, 126, 178, 0.7);
  box-shadow:
    var(--matte-shadow),
    var(--gloss-topline),
    0 0 34px rgba(107, 126, 178, 0.45);
}

.orbit__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: orbitspin 12s linear infinite;
}
.orbit:hover .orbit__ring, .orbit:focus-visible .orbit__ring { animation-play-state: paused; }

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

.orbit__text {
  fill: var(--grey);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.orbit__mark { width: 38px; height: auto; }

/* ============================================================
   WATERMARK DIVIDER — huge chevrons sweep with scroll
   ============================================================ */
.watermark {
  position: relative;
  height: 34vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.watermark__mark {
  width: min(72vw, 920px);
  height: auto;
  margin-left: 8vw;
  opacity: 0.04;
  will-change: transform;
}

/* ============================================================
   NEON FINALE
   ============================================================ */
.finale {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #03060D; /* fog dimmed to near-black */
}

.finale__fogdim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 30% 30%, rgba(107, 126, 178, 0.045), transparent 70%),
    radial-gradient(ellipse 45% 40% at 72% 65%, rgba(107, 126, 178, 0.035), transparent 70%);
  pointer-events: none;
}

.finale__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 0;
}

.finale__kicker {
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

.finale__glow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* the neon sign */
.finale__neon {
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 1.15;
  color: #E9EEFC;
  text-shadow:
    0 0 8px rgba(107, 126, 178, 0.95),
    0 0 24px rgba(107, 126, 178, 0.6),
    0 0 64px rgba(107, 126, 178, 0.35);
}

/* faint floor reflection: flipped, blurred, masked away downward */
.finale__reflection {
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 1.15;
  color: #AFC0EC;
  transform: scaleY(-1);
  filter: blur(7px);
  opacity: 0.2;
  margin-top: -0.42em;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 55%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 55%);
  user-select: none;
  pointer-events: none;
}

/* neon outline mark, pointing forward beneath the line */
.finale__mark {
  width: clamp(70px, 8vw, 100px);
  height: auto;
  margin-top: 1.6rem;
  overflow: visible;
  filter:
    drop-shadow(0 0 6px rgba(107, 126, 178, 0.8))
    drop-shadow(0 0 20px rgba(107, 126, 178, 0.45));
}
.finale__mark path {
  fill: none;
  stroke: #9FB1DF;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .js .vault { display: none; }
  .js .orbit { opacity: 1; visibility: visible; }
  .js [data-reveal], .js [data-wipe] { opacity: 1; }
  [data-wipe] { --seam: 1; }
  .fog__blob { animation: none; }
  .scrollcue__dot { animation: none; opacity: 1; }
  .orbit__ring { animation: none; }
  .pill::after { display: none; }
  .results__line { transform: none; }
  .ecard__children { visibility: visible; height: auto; padding-top: 1.6rem; overflow: visible; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 420px; }

  /* expertise: stack vertically; expansion becomes vertical growth */
  .ecards { flex-direction: column; min-height: 0; }
  .ecard { flex: none; }
}

@media (max-width: 640px) {
  .nav__name { display: none; }
  .pill { padding: 0.45rem 1rem; font-size: 0.7rem; }
  .pill--big { padding: 0.8rem 1.5rem; font-size: 0.82rem; }
  .orbit { width: 80px; height: 80px; }
  .orbit__mark { width: 28px; }
  .orbit__text { font-size: 13px; }
  .footer { flex-direction: column; gap: 0.4rem; text-align: center; }
  .wcard { width: 82vw; }
}

@media (max-width: 480px) {
  .hero__name { font-size: clamp(2.8rem, 15vw, 4rem); }
  .hero__statement { font-size: 0.58rem; letter-spacing: 0.26em; text-indent: 0.26em; }
  .watermark { height: 22vh; }
  .finale__neon, .finale__reflection { font-size: clamp(2.6rem, 13vw, 3.4rem); }
}
