/* Fahmy Mahamud · site styles
   Brand tokens from CLAUDE.md, mapped onto the scrollcraft roles.
   Light theme only. The engine files (scrollcraft.css/.js) are never edited. */

:root {
  --white:#FFFFFF; --off-white:#FAFAFA; --light-grey:#F5F5F5; --grey-100:#F0F0F0; --grey-200:#E5E5E5;
  --grey-300:#D4D4D4; --grey-400:#A3A3A3; --grey-500:#737373; --grey-600:#525252;
  --black:#111111; --near-black:#1A1A1A; --dark:#262626;
  --green:#007A3D; --green-dark:#005C2E; --green-light:#E6F5ED;
  --red:#CE1126; --red-dark:#A50D1E; --red-light:#FCE8EB;
  --amber:#F59E0B; --amber-light:#FFFBEB;

  --sc-canvas: var(--white);
  --sc-surface: var(--off-white);
  --sc-ink: var(--black);
  --sc-ink-soft: var(--grey-600);
  --sc-accent: var(--green);
  --sc-accent-ink: var(--white);
  --sc-font-display: "Inter", system-ui, sans-serif;
  --sc-font-text: "Inter", system-ui, sans-serif;
  --sc-shadow-color: 0 0% 7%;
  --sc-hairline: var(--grey-200);

  --r: 12px;          /* one radius for the page */
  --r-sm: 8px;
  --bar-h: 76px;
}

/* ------------------------------------------------------------ base ---- */
html { scroll-padding-top: 24px; }
body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: clamp(1rem, 5vw, 4.5rem); }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--green); color: var(--white); padding: .6rem 1rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--white); }
.num { font-variant-numeric: tabular-nums; }
time { font-variant-numeric: tabular-nums; }

/* If JS is off, or the engine never mounted, nothing may stay hidden. */
:is(.no-js, .sc-failed) :is([data-sc-in], [data-sc-stagger] > *, [data-sc-cue]) {
  opacity: 1 !important; transform: none !important;
}
:is(.no-js, .sc-failed) [data-sc-reveal] { clip-path: none !important; }
.no-js .lift-nav { display: none; }

/* --------------------------------------------------------- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border-radius: var(--r-sm); border: 1.5px solid var(--green);
  font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out),
              border-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--green); }
.btn--ghost:hover { background: var(--green-light); color: var(--green-dark); }
.btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }

/* ----------------------------------------------------------- header ---- */
.bar { position: relative; z-index: 5; }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--bar-h); }
.bar__logo { display: flex; align-items: center; min-height: 48px; border-radius: var(--r-sm); }
.bar__logo img { width: auto; height: 46px; }

/* ------------------------------------------------------------ lobby ---- */
.lobby {
  position: relative;
  margin-top: calc(-1 * var(--bar-h));
  padding-top: calc(var(--bar-h) + clamp(1.5rem, 5vh, 4rem));
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 38%, var(--green-light) 100%);
  overflow: clip;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column;
}
.lobby__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem 3rem;
}
.lobby__name {
  margin: 0;
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.75rem);
  font-weight: 700; line-height: .98; letter-spacing: -0.04em;
  text-wrap: balance;
}
.lobby__headline {
  margin: .55rem 0 0;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--green);
}
.lobby__sub { margin: 1rem 0 0; max-width: 44ch; color: var(--grey-600); font-size: 1.125rem; text-wrap: pretty; }
.lobby__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.lobby__avatar {
  width: 280px; height: 280px; border-radius: 50%;
  box-shadow: 0 2px 4px hsl(0 0% 7% / .10), 0 22px 44px -18px hsl(152 100% 12% / .35);
  outline: 6px solid var(--white); outline-offset: -1px;
}

.skyline {
  position: relative; z-index: 1;
  margin-top: auto;
  height: clamp(220px, 40vh, 420px);
  min-height: 0;
  pointer-events: none;
}
.skyline__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.skyline__label {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(.75rem, 2.5vh, 1.5rem);
  margin: 0 auto; width: 100%; max-width: 72rem; padding-inline: clamp(1rem, 5vw, 4.5rem);
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--grey-600);
  font-variant-numeric: tabular-nums;
}

/* skyline planes: transform only, driven from site.js */
.sk-layer { will-change: transform; }
.sk-far { fill: var(--grey-200); }
.sk-flyer { transform-box: view-box; transform-origin: 1012px 198px; animation: sk-turn 90s linear infinite; }
.sk-flyer circle[r="4"] { fill: var(--white); }
.win--a { fill: var(--amber); }
.win--g { fill: var(--green); }
.win { animation: sk-twinkle var(--tw, 5s) ease-in-out var(--td, 0s) infinite alternate; }
.glow { animation: sk-glow var(--gl, 4.5s) ease-in-out var(--gd, 0s) infinite alternate; transform-box: fill-box; transform-origin: 50% 50%; }
.lobby.is-offscreen :is(.sk-flyer, .win, .glow) { animation-play-state: paused; }
@keyframes sk-turn { to { transform: rotate(360deg); } }
@keyframes sk-twinkle { 0%, 55% { opacity: 1; } 100% { opacity: .18; } }
@keyframes sk-glow { from { opacity: .45; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .sk-flyer, .win, .glow { animation: none; }
  .sk-layer { will-change: auto; }
}

/* ---------------------------------------------------------- floors ---- */
.floor { position: relative; padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.floor--story { background: var(--white); }
.floor--projects { background: var(--white); padding-block: 0 clamp(4.5rem, 9vw, 8rem); }
.floor--certs { background: var(--light-grey); }
.floor--experience { background: var(--white); }
.floor--contact { background: var(--green-light); padding-bottom: 0; }

.floor__title { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.floor__title > [data-sc-reveal] { padding-block: .12em .18em; }
.h2 {
  margin: 0;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}

/* story */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.story__head .floor__title { margin-bottom: 2rem; }
.then-now { margin: 0; display: grid; gap: .9rem; }
.then-now > div { display: grid; grid-template-columns: 4.25rem 1fr; gap: 1rem; align-items: baseline; padding-top: .9rem; border-top: 1px solid var(--grey-200); }
.then-now dt { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); }
.then-now dd { margin: 0; font-weight: 500; }
.then-now > div:last-child dd { color: var(--green); }
.prose { max-width: 60ch; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1rem; }
.lede { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; }
.lede .num { color: var(--green); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  font-size: .95rem; line-height: 1.3; padding: .45rem .8rem;
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--r-sm);
}

/* projects: the lift */
/* No `position` here: the engine makes this stage sticky, and an author
   position rule of equal weight would silently stop it pinning. */
.lift__stage {
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--white);
}
.lift__floor { position: relative; z-index: 1; padding-block: 3rem; }
.lift__floor .h2 { margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem); }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 3rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--green-light);
  border: 1px solid color-mix(in oklab, var(--green) 22%, transparent);
  border-radius: var(--r);
  box-shadow: 0 1px 2px hsl(0 0% 7% / .06), 0 18px 40px -22px hsl(152 100% 12% / .35);
}
.feature__kicker { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
.feature__title { margin: 0; font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.feature__desc { margin: .9rem 0 1.25rem; max-width: 56ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.chips--on-white li { background: var(--white); border-color: color-mix(in oklab, var(--green) 18%, transparent); }

/* floor 5: a lift landing. A wall, a steel frame, a call plate and a hall
   position indicator (HPI). It behaves like a real lift: when you reach the
   floor the car "arrives" on its own (arrow, lanterns), the doors slide open
   on a timer, and you step in as the landing fades. Time-based, not
   scroll-scrubbed, so a fast thumb-flick on a phone cannot skip it. */
.landing {
  display: none; position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden;
  background: var(--grey-100);
  transition: opacity 650ms var(--sc-ease-out), visibility 0s linear 650ms;
}
.sc-ready .landing { display: flex; align-items: flex-end; justify-content: center; }
.landing.is-in { opacity: 0; visibility: hidden; }
.landing__rig {
  position: relative; width: min(500px, 70vw); margin-bottom: 10svh;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 650ms var(--sc-ease-out);
}
.landing.is-in .landing__rig { transform: scale(1.08); }
.landing__doorway {
  order: 2; position: relative; width: 100%; height: min(58svh, 540px);
  border: 14px solid var(--grey-300); border-bottom: 0;
  border-image: linear-gradient(90deg, var(--grey-400), var(--grey-100) 22%, var(--grey-300) 55%, var(--grey-100) 80%, var(--grey-400)) 1;
  overflow: hidden;
}
/* what you see when the doors part: the lit car, back wall, handrail, floor */
.landing__car {
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--green-light), var(--green-light)) 0 0 / 100% 10px no-repeat,
    linear-gradient(var(--grey-400), var(--grey-400)) 0 58% / 100% 5px no-repeat,
    linear-gradient(180deg, var(--white) 0%, var(--off-white) 70%, var(--grey-200) 70%, var(--grey-300) 100%);
}
.landing__car::after {
  content: ""; position: absolute; inset: 10px 18% 30% 18%;
  border: 1px solid var(--grey-200); border-radius: 4px;
}
.landing__door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .38) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, var(--grey-200), var(--grey-100) 35%, var(--grey-300) 82%, var(--grey-200));
  transition: transform 1100ms cubic-bezier(.65, 0, .35, 1);
}
.landing__door--l { left: 0; border-right: 1px solid var(--grey-400); }
.landing__door--r { right: 0; border-left: 1px solid var(--white);
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .38) 0 1px, transparent 1px 3px),
    linear-gradient(270deg, var(--grey-200), var(--grey-100) 35%, var(--grey-300) 82%, var(--grey-200)); }
.landing.is-open .landing__door--l { transform: translateX(-100%); }
.landing.is-open .landing__door--r { transform: translateX(100%); }

.hpi {
  order: 1; position: relative; z-index: 1; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  background: linear-gradient(180deg, var(--grey-100), var(--grey-300));
  border-radius: 10px;
  box-shadow: inset 0 1px 0 var(--white), 0 1px 2px hsl(0 0% 7% / .12), 0 8px 18px -10px hsl(0 0% 7% / .35);
}
.hpi__screen {
  display: flex; align-items: center; gap: .6rem; padding: .3rem 1rem .3rem .75rem;
  background: var(--green-light); color: var(--green-dark); border-radius: 6px;
  box-shadow: inset 0 2px 6px hsl(152 100% 12% / .28), inset 0 0 0 1px hsl(152 100% 12% / .18);
  font-variant-numeric: tabular-nums;
}
.hpi__arrow { display: block; color: var(--green); animation: hpi-blink 1s steps(2, jump-none) infinite; }
.hpi__digit { font-size: 2.3rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; min-width: 1.2ch; text-align: center; }
.hpi__label { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hpi__lantern { width: 24px; height: 9px; border-radius: 5px; background: var(--grey-300); box-shadow: inset 0 1px 2px hsl(0 0% 7% / .2); transition: background-color 200ms var(--sc-ease-out); }
.landing.is-arrived .hpi__lantern { background: var(--green); }
.landing.is-arrived .hpi__arrow { animation: none; }
@keyframes hpi-blink { 0% { opacity: 1; } 100% { opacity: .15; } }

.callplate {
  position: absolute; z-index: 1; right: -52px; bottom: calc(min(58svh, 540px) * .45);
  display: grid; gap: 7px; padding: 7px; border-radius: 8px;
  background: linear-gradient(180deg, var(--grey-100), var(--grey-300));
  box-shadow: inset 0 1px 0 var(--white), 0 4px 10px -6px hsl(0 0% 7% / .35);
}
.callplate__btn { width: 20px; height: 20px; border-radius: 50%; background: var(--off-white); border: 1.5px solid var(--grey-400); }
.landing.is-arrived .callplate__btn--up { border-color: var(--green); background: var(--green-light); box-shadow: 0 0 0 2px color-mix(in oklab, var(--green) 25%, transparent); }
.landing__floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10svh;
  background: linear-gradient(180deg, var(--grey-200), var(--light-grey));
  border-top: 1px solid var(--grey-300);
}

@media (prefers-reduced-motion: reduce) {
  .sc-ready .landing { display: none; }
}

/* ------------------------------------------------ Also built: escalator ---
   After the Gemini "3D escalator scroll showcase", rebuilt without a
   framework and in the brand's light palette. Static grid by default (no JS,
   reduced motion); .is-live turns on the pinned 3D ride. */
.esc3d { position: relative; background: var(--white); }
.esc3d__head { padding-top: clamp(1rem, 3vw, 2rem); }
.esc3d__title { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.esc3d__hint { margin: .35rem 0 0; color: var(--grey-600); font-size: 1rem; }
.esc3d__scene, .esc3d__hud, .esc3d__levels { display: none; }

.esc3d__cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem;
  width: 100%; max-width: 72rem; margin-inline: auto; padding: 1.5rem clamp(1rem, 5vw, 4.5rem) 0;
}
.card3d {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); color: var(--black); text-decoration: none;
  border: 1px solid var(--grey-200); border-radius: 16px;
  box-shadow: 0 1px 2px hsl(0 0% 7% / .06), 0 16px 32px -20px hsl(0 0% 7% / .4);
  transition: border-color 200ms var(--sc-ease-out), box-shadow 200ms var(--sc-ease-out);
}
.card3d:hover, .card3d.is-focal { border-color: var(--green); box-shadow: 0 2px 4px hsl(0 0% 7% / .08), 0 26px 50px -18px hsl(152 100% 12% / .45); color: var(--black); }
.card3d:focus-visible { outline-offset: 4px; }
.card3d__bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-bottom: 1px solid var(--grey-100); background: var(--off-white); }
.card3d__dots { display: flex; gap: 5px; }
.card3d__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); opacity: .75; }
.card3d__dots i + i { background: var(--amber); }
.card3d__dots i + i + i { background: var(--green); }
.card3d__url {
  flex: 1; min-width: 0; padding: .15rem .6rem; border-radius: 6px; background: var(--white); border: 1px solid var(--grey-200);
  font-size: .75rem; color: var(--grey-600); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card3d__n { font-size: .72rem; font-weight: 700; color: var(--green-dark); background: var(--green-light); border-radius: 5px; padding: .1rem .4rem; font-variant-numeric: tabular-nums; }
.card3d__shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--light-grey); }
.card3d__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 400ms var(--sc-ease-out); }
.card3d__peek {
  position: absolute; right: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .3rem;
  padding: .45rem .8rem; border-radius: 8px; background: var(--green); color: var(--white); font-size: .85rem; font-weight: 700;
  box-shadow: 0 6px 16px -6px hsl(152 100% 12% / .6);
}
@media (hover: hover) and (pointer: fine) { .card3d:hover .card3d__shot img { transform: scale(1.03); } }
.card3d__body { display: flex; flex-direction: column; gap: .4rem; padding: .9rem 1rem 1.1rem; }
.card3d__tag { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
.card3d__title { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.card3d__desc { font-size: .92rem; line-height: 1.45; color: var(--grey-600); }
.card3d__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.card3d__tags span { font-size: .75rem; font-weight: 500; padding: .2rem .5rem; border-radius: 6px; background: var(--light-grey); border: 1px solid var(--grey-200); }

/* ---- live: the pinned 3D ride ---- */
.esc3d.is-live .esc3d__stage {
  height: 100svh; overflow: clip;
  background:
    linear-gradient(to right, hsl(0 0% 7% / .04) 1px, transparent 1px) 0 0 / 4rem 4rem,
    linear-gradient(to bottom, hsl(0 0% 7% / .04) 1px, transparent 1px) 0 0 / 4rem 4rem,
    radial-gradient(ellipse 80% 60% at 50% 45%, var(--white), var(--off-white));
}
.esc3d.is-live .esc3d__head { position: relative; z-index: 6; }
.esc3d.is-live .esc3d__scene {
  display: block; position: absolute; left: 50%; top: 58%;
  width: 1300px; height: 850px; margin: -425px 0 0 -650px;
  transform: scale(var(--s, 1)); transform-origin: 50% 50%;
  perspective: 1200px; perspective-origin: 50% 48%;
  pointer-events: none;
}
.esc3d__assembly {
  position: absolute; left: 100px; top: 75px; width: 1100px; height: 700px;
  transform-style: preserve-3d;
  transform: rotateX(24deg) rotateY(-18deg) rotateZ(6deg) translateY(-2%);
}
.esc3d__assembly > * { position: absolute; transform: rotate(-28deg); }
.esc3d__shadow { top: 300px; left: -60px; width: 1220px; height: 200px; border-radius: 50%;
  background: radial-gradient(closest-side, hsl(0 0% 7% / .16), transparent); }
.esc3d__truss {
  top: 260px; left: -40px; width: 1180px; height: 190px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(90deg, var(--grey-200), var(--grey-100) 40%, var(--grey-300));
  border: 1px solid var(--grey-300); box-shadow: 0 30px 50px -20px hsl(0 0% 7% / .25);
}
.esc3d__truss::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(45deg, var(--grey-300) 0 2px, transparent 2px 20px); }
.esc3d__truss i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--green), transparent); }
.esc3d__glass { width: 1080px; border-radius: 12px; }
.esc3d__glass--back { top: 170px; left: 10px; height: 160px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--green-light) 70%, transparent), color-mix(in oklab, var(--grey-100) 50%, transparent));
  border-top: 2px solid color-mix(in oklab, var(--green) 30%, transparent); }
.esc3d__steps { top: 205px; left: -30px; width: 1160px; height: 160px; overflow: hidden;
  border-top: 3px solid color-mix(in oklab, var(--green) 45%, transparent); }
.esc3d__belt { will-change: transform; }
.esc3d__belt--steps {
  width: 2800px; height: 100px; margin-top: 30px;
  background:
    repeating-linear-gradient(90deg, transparent 0 45px, var(--amber) 45px 48px) 0 0 / 48px 75px repeat-x,
    repeating-linear-gradient(0deg, var(--grey-300) 0 3px, var(--grey-100) 3px 7px) 0 0 / 100% 75px no-repeat,
    repeating-linear-gradient(90deg, var(--grey-200) 0 3px, var(--grey-300) 3px 5px) 0 75px / 100% 25px no-repeat;
}
.esc3d__rail { width: 1075px; border-radius: 999px; overflow: hidden; background: var(--dark); }
.esc3d__rail--back { top: 152px; left: 15px; height: 16px; border: 1px solid var(--grey-600); }
.esc3d__rail--front { top: 228px; left: 40px; height: 18px; box-shadow: 0 10px 20px -8px hsl(0 0% 7% / .5); }
.esc3d__belt--rail { width: 3000px; height: 100%;
  background: repeating-linear-gradient(90deg, var(--dark) 0 40px, var(--green) 40px 46px, var(--dark) 46px 90px); }
.esc3d__glass--front { top: 240px; left: 40px; height: 170px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--green-light) 55%, transparent), rgb(255 255 255 / .12) 40%, color-mix(in oklab, var(--grey-200) 60%, transparent));
  border-top: 2px solid color-mix(in oklab, var(--green) 35%, transparent); border-bottom: 1px solid var(--grey-300); }
.esc3d__glass--front i { position: absolute; bottom: 8px; width: 12px; height: 32px; border-radius: 3px; background: var(--grey-400); }
.esc3d__glass--front i:nth-child(1) { left: 48px; } .esc3d__glass--front i:nth-child(2) { left: 25%; }
.esc3d__glass--front i:nth-child(3) { left: 50%; } .esc3d__glass--front i:nth-child(4) { left: 75%; }
.esc3d__glass--front i:nth-child(5) { right: 48px; }

.esc3d.is-live .esc3d__cards { position: absolute; inset: 0; display: block; max-width: none; padding: 0; perspective: 1200px; z-index: 4; }
.esc3d.is-live .card3d {
  position: absolute; left: 0; top: 0; width: var(--cw, 400px);
  opacity: 0; will-change: transform, opacity; transform-origin: 50% 50%;
}
.esc3d.is-live .esc3d__hud {
  display: flex; align-items: center; gap: 1rem; position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: 1.5rem; z-index: 6;
  padding: .6rem 1rem; border-radius: 12px; background: rgb(255 255 255 / .92); border: 1px solid var(--grey-200);
  box-shadow: 0 10px 24px -14px hsl(0 0% 7% / .35);
}
.esc3d__stat { display: flex; flex-direction: column; gap: .1rem; }
.esc3d__stat small { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-600); }
.esc3d__stat b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.esc3d__pos { color: var(--green); min-width: 3.2ch; }
.esc3d__sep { width: 1px; align-self: stretch; background: var(--grey-200); }
.esc3d__dir { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-600); min-width: 9.5ch; }
.esc3d__dir[data-dir="up"] { color: var(--green); }
.esc3d__dir[data-dir="down"] { color: var(--amber); }
.esc3d.is-live .esc3d__levels {
  display: flex; align-items: center; gap: .3rem; position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: 1.5rem; z-index: 6;
  padding: .3rem; border-radius: 12px; background: rgb(255 255 255 / .92); border: 1px solid var(--grey-200);
}
.esc3d__levels-label { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); padding-inline: .4rem; }
.esc3d__levels button {
  min-width: 44px; min-height: 44px; border-radius: 8px; border: 1px solid transparent; background: transparent;
  font-weight: 700; font-size: .85rem; color: var(--grey-600); cursor: pointer; font-variant-numeric: tabular-nums;
}
.esc3d__levels button:hover { color: var(--black); background: var(--light-grey); }
.esc3d__levels button[aria-current="true"] { color: var(--green-dark); background: var(--green-light); border-color: color-mix(in oklab, var(--green) 35%, transparent); }

/* ---- shared: section lede + certificate chips ---- */
.floor__lede { margin: -1.25rem 0 clamp(1.75rem, 3.5vw, 2.5rem); max-width: 60ch; color: var(--grey-600); font-size: 1.05rem; text-wrap: pretty; }
.cchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.cchip {
  font-size: .78rem; font-weight: 600; line-height: 1.25; padding: .3rem .55rem; border-radius: 6px;
  background: var(--white); border: 1px solid var(--grey-200); color: var(--grey-600);
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
}
.cchip.is-lit { background: var(--green-light); border-color: color-mix(in oklab, var(--green) 35%, transparent); color: var(--green-dark); }

/* project links inside lists and cards: same look, full-size tap target */
:is(.taskres__list, .svc__built) a { display: inline-block; padding-block: 12px; margin-block: -12px; }

/* ---- 6 · your task: the picker ---- */
.floor--task { background: var(--off-white); border-top: 1px solid var(--grey-100); }
.picker { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; align-items: start; }
.picker__tasks { display: grid; gap: .6rem; }
.task {
  display: flex; align-items: center; gap: .8rem; text-align: left; width: 100%;
  min-height: 56px; padding: .85rem 1rem; border-radius: var(--r);
  background: var(--white); border: 1px solid var(--grey-200); color: var(--black); cursor: pointer;
  font-weight: 600; font-size: 1rem; line-height: 1.35;
  transition: border-color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.task::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--grey-400); background: var(--white);
  transition: border-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.task:hover { border-color: var(--green); }
.task:active { transform: translateY(1px); }
.task[aria-selected="true"] { border-color: var(--green); background: var(--green-light); }
.task[aria-selected="true"]::before { border-color: var(--green); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 10px var(--green); }
.picker__result {
  position: relative; min-height: 100%;
  background: var(--white); border: 1px solid var(--grey-200); border-radius: 16px;
  box-shadow: 0 1px 2px hsl(0 0% 7% / .06), 0 18px 40px -24px hsl(152 100% 12% / .35);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.taskres[hidden] { display: none; }
.taskres { animation: taskin 260ms var(--sc-ease-out); }
@keyframes taskin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.taskres__kicker { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
.taskres__title { margin: .25rem 0 .75rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.taskres__how { margin: 0 0 1.25rem; max-width: 58ch; }
.taskres__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; padding-top: 1rem; border-top: 1px solid var(--grey-100); }
.taskres__h { margin: 0 0 .45rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); }
.taskres__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-weight: 600; }
.taskres__go { display: inline-flex; margin-top: 1.25rem; font-weight: 600; min-height: 44px; align-items: center; }

/* ---- 2 · what I enjoy doing + certificate directory ---- */
.floor--enjoy { background: var(--off-white); border-top: 1px solid var(--grey-100); }
.enjoy { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 1.25rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.enjoy__svcs { display: grid; gap: .8rem; position: relative; z-index: 2; }
.svc {
  padding: 1.1rem 1.25rem; border-radius: var(--r); background: var(--white);
  border: 1px solid var(--grey-200); outline-offset: 3px;
  transition: border-color 180ms var(--sc-ease-out), opacity 180ms var(--sc-ease-out), box-shadow 180ms var(--sc-ease-out);
}
.svc__title { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; }
.svc__line { margin: .3rem 0 .5rem; color: var(--grey-600); }
.svc__built { margin: 0 0 .7rem; font-size: .95rem; }
.svc__built > span { font-weight: 700; }
.svc__built a { font-weight: 600; }
.enjoy.is-tracing .svc { opacity: .45; }
.enjoy.is-tracing .svc.is-lit { opacity: 1; border-color: var(--green); box-shadow: 0 14px 30px -18px hsl(152 100% 12% / .45); }
.dir {
  position: sticky; top: 1.5rem; z-index: 2;
  padding: 1.1rem 1.2rem 1.25rem; border-radius: var(--r);
  background: linear-gradient(180deg, var(--white), var(--light-grey));
  border: 1px solid var(--grey-300);
  box-shadow: inset 0 1px 0 var(--white), 0 2px 4px hsl(0 0% 7% / .06), 0 20px 40px -26px hsl(0 0% 7% / .35);
}
.dir__head { display: flex; align-items: center; gap: .55rem; margin: 0 0 .8rem; padding-bottom: .7rem; border-bottom: 2px solid var(--black);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dir__head-mark { width: 10px; height: 10px; border-radius: 2px; background: var(--green); }
.dir__group + .dir__group { margin-top: .7rem; }
.dir__issuer { margin: 0 0 .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-600); }
.dir__list { list-style: none; margin: 0; padding: 0; }
.dir__item {
  position: relative; padding: .4rem .55rem; margin-inline: -.55rem; border-radius: 6px; cursor: default;
  font-size: .95rem; font-weight: 500; outline-offset: 2px;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), opacity 160ms var(--sc-ease-out);
}
.dir__item::after { content: ""; position: absolute; right: .55rem; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--grey-300); transition: background-color 160ms var(--sc-ease-out); }
.enjoy.is-tracing .dir__item { opacity: .45; }
.enjoy.is-tracing .dir__item.is-lit { opacity: 1; background: var(--green-light); color: var(--green-dark); font-weight: 600; }
.enjoy.is-tracing .dir__item.is-lit::after { background: var(--green); }
.enjoy__wires { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.enjoy__wires path { fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; opacity: .85; }
.enjoy__wires circle { fill: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .enjoy__wires path { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); animation: wire 420ms var(--sc-ease-out) forwards; }
  @keyframes wire { to { stroke-dashoffset: 0; } }
}

/* ---- 4 · live demo ---- */
.floor--demo { background: var(--off-white); border-top: 1px solid var(--grey-100); }
.demo { background: var(--white); border: 1px solid var(--grey-200); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px hsl(0 0% 7% / .06), 0 22px 44px -28px hsl(0 0% 7% / .35); }
.demo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--grey-100); background: var(--off-white); }
.demo__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.demo__steps li { display: flex; align-items: center; gap: .4rem; padding: .3rem .65rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--grey-200); background: var(--white); font-size: .82rem; font-weight: 600; color: var(--grey-600); }
.demo__steps li { transition: background-color 200ms var(--sc-ease-out), color 200ms var(--sc-ease-out), border-color 200ms var(--sc-ease-out); }
.demo__n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grey-100); font-variant-numeric: tabular-nums; }
.demo__steps li.is-active { border-color: var(--amber); background: var(--amber-light); color: var(--black); }
.demo__steps li.is-done { border-color: color-mix(in oklab, var(--green) 35%, transparent); background: var(--green-light); color: var(--green-dark); }
.demo__steps li.is-done .demo__n { background: var(--green); color: var(--white); }
.demo__btns { display: flex; gap: .5rem; }
.btn:disabled { opacity: .45; cursor: default; }
.demo__body { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; }
.demo__tablewrap { overflow-x: auto; }
.demo__table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.demo__table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); font-weight: 600; padding: .6rem .8rem; border-bottom: 1px solid var(--grey-200); white-space: nowrap; }
.demo__table td { padding: .5rem .8rem; border-bottom: 1px solid var(--grey-100); white-space: pre; transition: background-color 300ms var(--sc-ease-out); }
.demo__table td.is-changed { background: var(--green-light); color: var(--green-dark); font-weight: 600; }
.demo__table td.is-flagged { background: var(--amber-light); color: var(--black); font-weight: 600; }
.demo__table tr.is-dupe td { background: var(--red-light); color: var(--red-dark); text-decoration: line-through; }
.demo__table tr.is-gone { display: none; }
.demo__side { border-left: 1px solid var(--grey-100); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.demo__status { margin: 0; font-weight: 600; line-height: 1.45; }
.demo__charth { margin: 0 0 .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); }
.demo__bars { display: grid; gap: .45rem; }
.dbar { display: grid; grid-template-columns: 6.5rem 1fr 1.5rem; align-items: center; gap: .5rem; font-size: .85rem; }
.dbar__track { display: block; height: 12px; border-radius: 3px; background: var(--grey-100); overflow: hidden; }
.dbar__fill { display: block; width: 100%; height: 100%; background: var(--green); border-radius: 3px; transform-origin: 0 50%; transform: scaleX(var(--v, 0)); transition: transform 600ms var(--sc-ease-out); }
.dbar__n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.demo__note { margin: 0; padding: .7rem 1.1rem; font-size: .82rem; color: var(--grey-600); border-top: 1px solid var(--grey-100); }

/* ---- 3 · the badge wall ---- */
.floor--wall { background: var(--light-grey); }
.wallfilters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }
.wallf {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .9rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--grey-300); color: var(--black); font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.wallf:hover { border-color: var(--green); }
.wallf[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.wallf__n { font-size: .75rem; font-weight: 700; padding: .05rem .4rem; border-radius: 999px; background: var(--grey-100); color: var(--grey-600); font-variant-numeric: tabular-nums; }
.wallf[aria-pressed="true"] .wallf__n { background: rgb(255 255 255 / .22); color: var(--white); }
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .9rem; }
.badge { transition: opacity 260ms var(--sc-ease-out), filter 260ms var(--sc-ease-out); }
.badge a {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; height: 100%;
  padding: .9rem .7rem 1rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--grey-200);
  color: var(--black); text-decoration: none;
  transition: border-color 160ms var(--sc-ease-out), transform 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.badge a:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 16px 30px -18px hsl(152 100% 12% / .45); color: var(--black); }
.badge img { width: 88px; height: 88px; object-fit: contain; }
.badge__name { font-size: .82rem; font-weight: 700; line-height: 1.3; }
.badge__meta { font-size: .72rem; color: var(--grey-600); }
.badge.is-out { opacity: .22; filter: grayscale(1); }
.badge.is-out a { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .badge a:hover { transform: none; } }

/* contact: arrival */
.floor--contact { min-height: 88svh; display: flex; flex-direction: column; }
.contact { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: clamp(3rem, 7vw, 6rem); }
.contact__h { margin: 0; max-width: 16ch; text-wrap: balance; font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.contact__line { margin: 1.25rem 0 0; max-width: 40ch; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.5; text-wrap: pretty; }
.contact__line a { font-weight: 600; overflow-wrap: anywhere; }
/* the contact links: brand marks in the site green, not each brand's own colour */
.social { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.social__link {
  display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 60px;
  color: var(--grey-600); text-decoration: none; font-size: .8125rem; font-weight: 600;
}
button.social__link { background: none; border: 0; padding: 0; margin: 0; width: 100%; font-family: inherit; line-height: inherit; cursor: pointer; }
.social__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); color: var(--green-dark);
  border: 1px solid color-mix(in oklab, var(--green) 22%, transparent);
  box-shadow: 0 1px 2px hsl(0 0% 7% / .06), 0 8px 18px -10px hsl(152 100% 12% / .35);
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), transform 160ms var(--sc-ease-out);
}
.social__icon svg { fill: currentColor; }
.social__link:hover { color: var(--green-dark); }
.social__link:hover .social__icon { background: var(--green); color: var(--white); transform: translateY(-2px); }
.social__link:active .social__icon { transform: translateY(0); }
.social__link:focus-visible { outline: none; }
.social__link:focus-visible .social__icon { outline: 2px solid var(--green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .social__link:hover .social__icon { transform: none; } }
.foot { border-top: 1px solid color-mix(in oklab, var(--green) 20%, transparent); }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.foot img { width: auto; height: 34px; }
.foot p { margin: 0; font-size: .9rem; color: var(--grey-600); }

/* ------------------------------------------------ the floor indicator ---- */
/* Fixed to the right edge, vertically centred. Text columns reserve room for
   it (see .wrap below), so it never sits on top of words. */
.lift-nav { position: fixed; z-index: 60; right: 14px; top: 50%; translate: 0 -50%; }
/* With JS, the indicator rides the right edge like the browser's scrollbar
   thumb: top of the page = top of the screen, bottom = bottom. */
.lift-nav.is-tracking { top: 0; translate: none; will-change: transform; }
.lift-nav.is-tracking[data-half="top"] .lift-nav__panel { top: 0; translate: none; }
.lift-nav.is-tracking[data-half="bottom"] .lift-nav__panel { top: auto; bottom: 0; translate: none; }
.lift-nav__display {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: .7rem .45rem .9rem;
  background: var(--white); color: var(--black);
  border: 1px solid var(--grey-300); border-radius: var(--r);
  box-shadow: 0 2px 4px hsl(0 0% 7% / .08), 0 10px 24px -10px hsl(0 0% 7% / .28);
  cursor: pointer; font-weight: 600;
  transition: border-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.lift-nav__display:hover { border-color: var(--green); }
.lift-nav__display:active { transform: translateY(1px); }
.lift-nav__floor {
  display: grid; place-items: center; min-width: 2.1rem; height: 2.1rem; padding-inline: .3rem;
  border-radius: var(--r-sm); background: var(--green-light); color: var(--green-dark);
  font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.lift-nav__floor.is-ding { animation: ding 700ms var(--sc-ease-out); }
@keyframes ding { 0% { background: var(--green); color: var(--white); } 100% { background: var(--green-light); color: var(--green-dark); } }
.lift-nav__name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .875rem; letter-spacing: .02em; }

/* the lift icon: frame, call arrows, two doors. The arrow for the direction of
   travel lights up while you scroll; the doors part on hover. */
.lift-nav__icon { display: grid; place-items: center; }
.lift-nav__icon svg { display: block; overflow: visible; }
.li-frame { fill: none; stroke: var(--green-dark); stroke-width: 1.7; stroke-linejoin: round; }
.li-up, .li-down { fill: var(--grey-300); transition: fill 160ms var(--sc-ease-out); }
.lift-nav[data-dir="up"] .li-up, .lift-nav[data-dir="down"] .li-down { fill: var(--green); }
.li-door { fill: var(--green-light); stroke: var(--green); stroke-width: 1; transition: transform 220ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) {
  .lift-nav__display:hover .li-door--l { transform: translateX(-1.5px); }
  .lift-nav__display:hover .li-door--r { transform: translateX(1.5px); }
}
@media (prefers-reduced-motion: reduce) { .li-door { transition: none; } }

.lift-nav__panel {
  position: absolute; right: calc(100% + .6rem); top: 50%; translate: 0 -50%;
  list-style: none; margin: 0; padding: .6rem;
  background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--r);
  box-shadow: 0 4px 8px hsl(0 0% 7% / .08), 0 22px 44px -16px hsl(0 0% 7% / .3);
  min-width: 13.5rem;
}
.lift-nav__panel[hidden] { display: none; }
.lift-nav__panel a {
  display: flex; align-items: center; gap: .8rem; min-height: 46px; padding: .3rem .6rem .3rem .35rem;
  border-radius: var(--r-sm); color: var(--black); text-decoration: none; font-weight: 500;
}
.lift-nav__panel a:hover { background: var(--light-grey); color: var(--black); }
.key {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--grey-400); background: var(--off-white);
  font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -2px 0 var(--grey-200);
}
.lift-nav__panel a[aria-current="true"] .key { border-color: var(--green); background: var(--green-light); color: var(--green-dark); box-shadow: 0 0 0 3px color-mix(in oklab, var(--green) 22%, transparent); }
.lift-nav__panel a[aria-current="true"] { font-weight: 700; }

/* reserve the right edge for the indicator wherever the margin is too thin */
@media (max-width: 1279px) {
  .wrap { padding-right: max(clamp(1rem, 5vw, 4.5rem), 84px); }
}

/* ------------------------------------------------------------ phone ---- */
@media (max-width: 959px) {
  .lobby__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .lobby__avatar { order: -1; width: 104px; height: 104px; outline-width: 4px; }
  .story { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; align-items: start; }
  .feature__link { justify-self: start; }
  .esc3d__cards { grid-template-columns: 1fr; }
  .picker { grid-template-columns: 1fr; }
  .enjoy { grid-template-columns: 1fr; }
  .dir { position: static; }
  .enjoy__wires { display: none; }
  .demo__body { grid-template-columns: 1fr; }
  .demo__side { border-left: 0; border-top: 1px solid var(--grey-100); }
}
@media (max-width: 700px) {
  :root { --bar-h: 64px; }
  body { font-size: 17px; }
  .bar__logo img { height: 38px; }
  .lobby { min-height: 0; padding-top: calc(var(--bar-h) + 1rem); }
  .lobby__ctas .btn { flex: 1 1 auto; }
  .skyline { height: 195px; margin-top: 1.5rem; }
  .lift__floor { padding-block: 1.5rem 3rem; }
  .foot__in { flex-direction: column; align-items: flex-start; }
  .taskres__cols { grid-template-columns: 1fr; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .badge img { width: 72px; height: 72px; }
  .demo__table { font-size: .82rem; }
  .demo__table td, .demo__table th { padding: .45rem .55rem; }
  .demo__table th:nth-child(2), .demo__table td:nth-child(2) { display: none; }
  .social { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem .25rem; }
  .social__link { min-width: 0; font-size: .7rem; }
  .social__icon { width: 50px; height: 50px; }
  .hpi { gap: 8px; padding: 6px 8px; }
  /* phone: the card carries the story, so the stats panel goes and the card gets shorter */
  .esc3d.is-live .esc3d__hud { display: none; }
  .esc3d.is-live .esc3d__levels { left: 12px; right: auto; bottom: 12px; }
  .esc3d__levels-label { display: none; }
  .esc3d.is-live .esc3d__hint { display: none; }
  .esc3d.is-live .card3d__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .esc3d.is-live .card3d__tags { display: none; }
  .hpi__digit { font-size: 1.9rem; }
  .hpi__label { font-size: .7rem; letter-spacing: .12em; }
  .hpi__lantern { width: 16px; }
  .callplate { right: -40px; padding: 5px; }
  .callplate__btn { width: 16px; height: 16px; }
  /* phone: a slim tab on the right edge, icon and floor number only */
  .wrap { padding-right: 52px; }
  .lift-nav { right: 0; }
  .lift-nav__display { border-right: 0; border-radius: var(--r) 0 0 var(--r); padding: .55rem .4rem .65rem .45rem; gap: .4rem; min-width: 46px; }
  .lift-nav__name { display: none; }
  .lift-nav__icon svg { width: 18px; height: 23px; }
  .lift-nav__floor { min-width: 1.75rem; height: 1.75rem; font-size: 1rem; }
}
