/* =========================================================
   Site base styles (from the Jory&Co site system).
   Brand values live in brand.css, loaded after this file — edit those, not these defaults.
   Tokens pulled from Figma (Home_A 7315:12466)
   ========================================================= */

:root {
  /* colour variables — same names as the Figma variables */
  --accent: #00ff76;
  --black: #000000;
  --white: #ffffff;
  --white-10: rgba(255, 255, 255, 0.1);
  --white-20: rgba(255, 255, 255, 0.2);
  --black-10: rgba(0, 0, 0, 0.1);

  --font-sans: "Eina 01", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: 20px;            /* page padding + grid gap */
  --section-gap: 200px;      /* vertical rhythm between sections */
  --radius: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --footer-h: 620px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* Keep the scrollbar's space reserved at all times, so the page never shifts
     sideways when scrolling is paused (loader, image popup, mobile menu) and resumed */
  scrollbar-gutter: stable;
  /* dark scrollbar to match the site (color-scheme also darkens native/overlay scrollbars, e.g. Safari) */
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #2e2e2e #0b0b0b;
}
html::-webkit-scrollbar { width: 10px; background: #0b0b0b; }
html::-webkit-scrollbar-track { background: #0b0b0b; }
html::-webkit-scrollbar-thumb { background: #2e2e2e; border-radius: 10px; border: 2px solid #0b0b0b; }
html::-webkit-scrollbar-thumb:hover { background: #444; }
html::-webkit-scrollbar-thumb:active { background: var(--accent); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Figma uses cap-height text trimming everywhere */
@supports (text-box: trim-both cap alphabetic) {
  .mono, .card-title, .hero__title, .stat__value, .stat__label,
  .quote__text, .cta-text, .newsletter__title, .btn-pill span, .btn-blur span,
  .btn-outline span, .newsletter__submit span, .tags li {
    text-box: trim-both cap alphabetic;
  }
  /* the split lines of the headline reveal use the same trim, so the
     animated text sits exactly where the finished headline does */
  .hero__title .line__inner { text-box: trim-both cap alphabetic; }
}

/* ---------- Typography primitives (reused) ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.mono--muted { opacity: 0.5; }
.mono--muted-dark { opacity: 0.5; color: var(--black); }

.card-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
  transition: color 0.35s var(--ease-out);
}

/* ---------- Page shell + footer reveal ---------- */
.page { position: relative; }

.main {
  position: relative;
  z-index: 2;
  background: var(--black);
  margin-bottom: var(--footer-h);
}

.body {
  padding: 0 var(--gutter) var(--gutter);
}

/* ---------- Sticky navigation ---------- */
.sticky-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 14px 20px;
  border-radius: var(--radius);
  --nav-open-h: 202px;          /* measured in JS; panel height when the dropdown is open */
}
/* The blurred panel lives on a pseudo-element (not the nav itself) so the dropdown
   can sit inside the same frosted panel, which grows to reveal it — Figma "Sticky navigation" Variant2 */
.sticky-nav::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%;
  z-index: -1;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: var(--nav-panel, 1);
  transition: height .5s var(--ease-out);
}
.sticky-nav:has(.has-dropdown:hover)::before,
.sticky-nav:has(.has-dropdown:focus-within)::before { height: var(--nav-open-h); }
.sticky-nav__list > li > .nav-link { transition: opacity .3s ease, color .3s ease; }
.sticky-nav:has(.has-dropdown:hover) .sticky-nav__list > li:not(.has-dropdown) > .nav-link,
.sticky-nav:has(.has-dropdown:focus-within) .sticky-nav__list > li:not(.has-dropdown) > .nav-link { opacity: .5; }
.has-dropdown:hover > .nav-link,
.has-dropdown:focus-within > .nav-link { color: var(--accent); }
.has-dropdown:hover > .nav-link .nav-link__dot,
.has-dropdown:focus-within > .nav-link .nav-link__dot { background: var(--accent); }
.sticky-nav__list { display: flex; gap: 30px; align-items: center; }
.sticky-nav__list > li { position: relative; display: flex; }
.nav-dropdown li { display: flex; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
}
.nav-link__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--white);
  flex: none;
  transition: background-color 0.25s ease, transform 0.35s var(--ease-out);
}
.nav-link:hover .nav-link__dot,
.nav-link:focus-visible .nav-link__dot,
.nav-link.is-active .nav-link__dot { background: var(--accent); transform: scale(1.15); }
/* hover / in-view / current page: the label turns green with its dot */
.nav-link { transition: color .3s ease, opacity .3s ease; }
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-active, .nav-link.is-current { color: var(--accent); }
.nav-link.is-current .nav-link__dot { background: var(--accent); }
/* "Who we work with" only opens its dropdown: a button, not a link */
button.nav-link--menu { border: 0; background: none; padding: 0; margin: 0; cursor: default; -webkit-appearance: none; appearance: none; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 30px);       /* Figma: 30px between main nav and secondary list */
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
}
.nav-dropdown::before { /* hover bridge across the gap */
  content: ""; position: absolute; left: -20px; right: -20px; top: -30px; height: 30px;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0); transition-delay: .08s;
}
.nav-dropdown li { opacity: 0; transform: translateY(-4px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.has-dropdown:hover .nav-dropdown li,
.has-dropdown:focus-within .nav-dropdown li { opacity: 1; transform: none; }
.has-dropdown:hover .nav-dropdown li:nth-child(1) { transition-delay: .1s; }
.has-dropdown:hover .nav-dropdown li:nth-child(2) { transition-delay: .14s; }
.has-dropdown:hover .nav-dropdown li:nth-child(3) { transition-delay: .18s; }
.has-dropdown:hover .nav-dropdown li:nth-child(4) { transition-delay: .22s; }
.has-dropdown:hover .nav-dropdown li:nth-child(5) { transition-delay: .26s; }

/* ---------- Buttons (reused components) ----------
   Every pill button shares one hover, taken from the Figma "Blur Button" Variant2:
   the fill layer softens with a 7.5px blur while the label stays sharp. */
.btn-blur, .btn-outline, .btn-pill, .newsletter__submit {
  --btn-bg: var(--accent);
  --btn-border: transparent;
  position: relative;
  isolation: isolate;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-blur::before, .btn-outline::before, .btn-pill::before, .newsletter__submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-bg);
  box-shadow: inset 0 0 0 1px var(--btn-border);
  transition: filter .45s var(--ease-out), border-radius .45s var(--ease-out);
}
.btn-blur:hover::before, .btn-outline:hover::before, .btn-pill:hover::before, .newsletter__submit:hover::before,
.btn-blur:focus-visible::before, .btn-outline:focus-visible::before, .btn-pill:focus-visible::before, .newsletter__submit:focus-visible::before {
  filter: blur(7.5px);
  border-radius: 36px;
}
.btn-blur span, .btn-outline span, .btn-pill span, .newsletter__submit span { position: relative; line-height: 1; }

/* "Blur Button" — green pill, 161 × 36 */
.btn-blur {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 46px;
  color: var(--black);
}
.btn-blur--dark { --btn-bg: var(--black); color: var(--accent); border-radius: 36px; }

/* Outline pill (footer "join our team") — its stroke blurs on hover */
.btn-outline {
  --btn-bg: transparent;
  --btn-border: var(--black);
  display: inline-flex; align-items: center; height: 36px; padding: 0 18px;
  border-radius: 30px; color: var(--black);
}

/* Large "Stroke Button" pill (What we do / Who we work with) */
.btn-pill {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 28px;
  min-height: 56px;
  border-radius: 36px;
  color: var(--black);
}

/* "Frame 305" — mono label + arrow link */
.link-arrow { display: inline-flex; align-items: flex-end; gap: 10px; }
.link-arrow .mono { transition: opacity .3s ease; }
.link-arrow:hover .mono { opacity: 1; }
.icon-link { width: 9px; height: 9px; transform: rotate(180deg) scaleY(-1); transition: transform .35s var(--ease-out); }
.link-arrow:hover .icon-link { transform: rotate(180deg) scaleY(-1) translate(-2px, 0); }
.icon-down { width: 8px; height: 8px; transform: rotate(-90deg) scaleY(-1); }
/* Every mono + arrow link turns fully green on hover — label and arrow together.
   (The arrow <img>s are swapped for inline SVG in main.js so they take the colour.)
   Links on green panels (--dark) keep their black hover. */
.link-arrow .mono, .link-arrow .icon-link, .link-arrow .icon-down { transition: color .3s ease, opacity .3s ease, transform .35s var(--ease-out); }
.link-arrow svg.icon-link { color: var(--white); opacity: .5; overflow: visible; }
.link-arrow:not(.link-arrow--dark):hover .mono,
.link-arrow:not(.link-arrow--dark):hover .icon-link,
.link-arrow:not(.link-arrow--dark):hover .icon-down,
.link-arrow:not(.link-arrow--dark):focus-visible .mono,
.link-arrow:not(.link-arrow--dark):focus-visible .icon-link,
.link-arrow:not(.link-arrow--dark):focus-visible .icon-down { color: var(--accent); opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* the extra height is the scroll distance that drives the image field */
  height: calc(100vh + var(--hero-scroll, 140vh));
  background: var(--black);
}
.hero__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.hero__field {
  position: absolute;
  inset: 0;
  perspective: 1000px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}
.hf-item {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.hf-item img, .hf-item video { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero__bar {
  position: absolute;
  top: 20px; left: 20px; right: 20px;
  height: 36px;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 5;
}
.hero__bar .logo { margin-top: 6px; display: block; }
.hero__bar .logo img, .hero__bar .logo svg { width: 132px; height: 31px; display: block; }

.hero__title {
  position: absolute;
  pointer-events: none;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-weight: 600;
  font-size: clamp(44px, 6.945vw, 140px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  z-index: 2;
  padding: 0 20px;
}
.hero__title .line, .intro__text .line { display: block; overflow: hidden; padding: .16em .08em .26em; margin: -.16em -.08em -.26em; }
.hero__title .line + .line, .intro__text .line + .line { margin-top: -.42em; } /* adjoining line margins collapse (-.26 vs -.16): restore the full overlap so a multi-line heading keeps its height */
/* block (not inline-block) inner + flow-root parent: a split line is exactly one
   line-height tall and the mask's padding/negative-margin pair stays contained, so
   the headline doesn't shift when it's split for the reveal or restored after. */
.hero__title, .intro__text { display: flow-root; }
.hero__title .line__inner, .intro__text .line__inner { display: block; will-change: transform, opacity; }
/* hidden until the load sequence runs (only when JS + GSAP are present) */
/* homepage load sequence only */
html.js .page-home .hero__title { visibility: hidden; }
html.js .page-home .hero__bar, html.js .page-home .hero__explore { opacity: 0; }
/* The nav is never faded as a whole: opacity < 1 on an ancestor stops its frosted
   backdrop-filter from sampling the page, so the blur only "arrived" once the fade
   finished. Its links and its panel fade separately instead. */
html.js .page-home .sticky-nav { --nav-panel: 0; }
html.js .page-home .sticky-nav__list { opacity: 0; }

.hero__explore {
  position: absolute;
  left: 50%;
  bottom: 66px;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__explore { color: var(--white); }
.hero__explore .mono, .hero__explore .icon-down { color: inherit; transition: color .3s ease, opacity .3s ease; }
.hero__explore .icon-down { opacity: .5; }
.hero__explore:hover .mono, .hero__explore:hover .icon-down,
.hero__explore:focus-visible .mono, .hero__explore:focus-visible .icon-down { color: var(--accent); opacity: 1; }
.hero__explore .icon-down { animation: bob 2.2s var(--ease-out) infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }

/* ---------- Intro ---------- */
.intro {
  /* overlaps the tail of the pinned header so the copy rises in as the headline blurs away */
  position: relative;
  z-index: 3;
  margin-top: -15vh;
  display: flex;
  justify-content: center;
}
.intro__text {
  max-width: 934px;
  text-align: center;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.4;
}


/* ---------- Section shell (reused for every titled section) ---------- */
.section {
  position: relative;
  margin-top: var(--section-gap);
  padding-top: 20px;
}
.section::before { /* the 1px rule; animated in via JS */
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--white-20);
  transform-origin: left center;
  transform: scaleX(var(--rule, 1));
}
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

/* ---------- Projects ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 100px;
}
.project { display: flex; flex-direction: column; gap: 20px; cursor: none; }
.project__media {
  position: relative;
  aspect-ratio: 100 / 66; 
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  isolation: isolate;
}
.project__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
/* Energy Profits is cropped in Figma (h 126.06%, top -3.49%) */
.project__img--ep { height: 126.06%; top: -3.49%; object-fit: cover; }
.project:hover .project__img { transform: scale(1.03); }

.project__hover {
  position: absolute; inset: 0;
  background: var(--accent);
  padding: 20px;
  opacity: 0;
  transition: opacity .45s var(--ease-out);
  z-index: 2;
}
.project:hover .project__hover,
.project:focus-visible .project__hover { opacity: 1; }

.tags { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tags li {
  font-family: var(--font-mono);
  font-size: 12px; line-height: 1.2; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  padding: 4px 5px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.project:hover .tags li { opacity: 1; transform: none; }
.project:hover .tags li:nth-child(2) { transition-delay: .04s; }
.project:hover .tags li:nth-child(3) { transition-delay: .08s; }
.project:hover .tags li:nth-child(4) { transition-delay: .12s; }
.project:hover .tags li:nth-child(5) { transition-delay: .16s; }

.project__meta { display: flex; flex-direction: column; gap: 20px; }
.project__meta .mono { white-space: normal; }
.project__meta .card-title, .project__meta .mono { transition: color .3s ease, opacity .3s ease; }
.project:hover .card-title, .project:focus-visible .card-title,
.project:hover .project__meta .mono, .project:focus-visible .project__meta .mono { color: var(--accent); opacity: 1; }

.btn-row {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

/* ---------- Cursor orb (project / insight hover) ---------- */
.cursor-orb {
  position: fixed;
  left: 0; top: 0;
  width: 80px; height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  background: var(--white);
  /* soft, pronounced feathered edge */
  box-shadow:
    0 0 14px 6px rgba(255, 255, 255, 0.9),
    0 0 34px 16px rgba(255, 255, 255, 0.55),
    0 0 70px 28px rgba(255, 255, 255, 0.22);
  display: grid; place-items: center;
  pointer-events: none;
  z-index: 70;
  opacity: 0;
  will-change: transform, opacity;
  /* position + scale are driven together from JS so it grows/shrinks in place */
}
.cursor-orb__icon { width: 14px; height: 14px; transform: rotate(180deg) scaleY(-1); }

/* ---------- News & insights ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}
.insight { display: flex; flex-direction: column; gap: 20px; cursor: none; }
.insight__media {
  position: relative;
  aspect-ratio: 335 / 419;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.insight__media img,
.insight__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.insight:hover .insight__media img,
.insight:hover .insight__media video { transform: scale(1.04); }
.insight:hover .card-title,
.insight:hover .mono { color: var(--accent); }
.insight .mono { transition: color .35s var(--ease-out), opacity .35s; }
.insight:hover .mono { opacity: 1; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  container-type: inline-size;   /* lets each tile size itself to the row width */
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  /* At least square, and every tile in a row matches the tallest one:
     grid rows stretch their items, so if any tile's copy needs more room, they all grow together. */
  min-height: calc((100cqi - 3 * var(--gutter)) / 4);
  border-radius: var(--radius);
  background: var(--white-10);
  padding: 30px;
  outline: none;
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out);
}
.stat__value {
  font-weight: 600;
  font-size: 70px;
  line-height: 1;
  letter-spacing: -1.4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 30px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  opacity: 0.5;
}
.stat__desc {
  margin-top: auto;      /* sits at the bottom of the tile… */
  padding-top: 40px;     /* …but never closer than 40px to the label */
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  color: var(--black);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.stat:hover, .stat:focus-visible { background: var(--accent); color: var(--black); }
.stat:hover .stat__label, .stat:focus-visible .stat__label { opacity: 1; }
.stat:hover .stat__desc, .stat:focus-visible .stat__desc { opacity: 1; transform: none; transition-delay: .08s; }

/* ---------- Ticker boxes (clients + CTA share this component) ---------- */
.ticker-box {
  position: relative;
  display: block;
  border-radius: var(--radius);
  background: var(--white-10);
  overflow: hidden;
}
.ticker-box--clients { height: 191px; }
.ticker-box--cta { height: 230px; margin-top: var(--section-gap); color: var(--white); }

.marquee { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; }
.marquee__track { display: flex; align-items: center; flex: none; will-change: transform; }

.client {
  width: 219px; height: 146px;
  margin-right: 40px;
  flex: none;
  display: grid; place-items: center;
}
.client img { max-width: none; }

.cta-text {
  flex: none;
  padding-right: 80px;
  font-weight: 600;
  font-size: clamp(48px, 6.25vw, 90px);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.edge-blur {
  position: absolute; top: 0; bottom: 0;
  width: var(--w, 152px);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  background: rgba(0, 0, 0, 0.02);
  pointer-events: none;
  z-index: 2;
}
.edge-blur--left { left: 0; -webkit-mask-image: linear-gradient(to right, #000 0%, #000 30%, transparent 100%); mask-image: linear-gradient(to right, #000 0%, #000 30%, transparent 100%); }
.edge-blur--right { right: 0; -webkit-mask-image: linear-gradient(to left, #000 0%, #000 30%, transparent 100%); mask-image: linear-gradient(to left, #000 0%, #000 30%, transparent 100%); }

/* ---------- Testimonials ---------- */
.quotes {
  position: relative;
  --slide-w: min(690px, calc((100vw - 40px) * 0.4929));
  --slide-gap: calc(var(--slide-w) * 0.2);
  overflow: visible;
}
#testimonials { overflow-x: clip; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
#testimonials::before { left: var(--gutter); right: var(--gutter); }

.quotes__track {
  display: flex;
  gap: var(--slide-gap);
  will-change: transform;
}
.quote {
  flex: none;
  width: var(--slide-w);
  padding-top: 50px;
  display: flex; flex-direction: column; gap: 40px;
  filter: blur(10px);
  opacity: 0.9;
  transition: filter .7s var(--ease-out), opacity .7s var(--ease-out);
  cursor: pointer;
}
.quote.is-active { filter: none; opacity: 1; cursor: default; }
.quote__text {
  font-weight: 600;
  font-size: 25px;
  line-height: 1.4;
  color: var(--white);
}
.quote:not(.is-active) .quote__text { text-shadow: 0 4px 4px rgba(0,0,0,.25); letter-spacing: -0.75px; }
.quote__author { display: flex; align-items: center; gap: 10px; }
.quote__author img { width: 60px; height: 60px; border-radius: 50%; }
.quote__author > span { display: flex; flex-direction: column; gap: 10px; width: 167px; }
.quote__author .mono { white-space: nowrap; }

.quotes__arrows {
  margin-top: 20px;
  display: flex; justify-content: flex-end; gap: 10px;
}
.arrow-btn { width: 19px; height: 19px; display: grid; place-items: center; margin: -5px; opacity: 1; transition: opacity .3s; }
.arrow-btn:hover { opacity: .6; }
.arrow-btn img { width: 9px; height: 9px; }

/* ---------- Footer ---------- */
.footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--footer-h);
  z-index: 1;
  background: var(--accent);
  color: var(--black);
  overflow: hidden;
}
.footer__inner {
  position: relative;
  height: 100%;
  background: var(--accent);
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; }
.footer__top .logo img, .footer__top .logo svg { width: 132px; height: 31px; display: block; }
.footer__ctas { display: flex; gap: 10px; }

.footer__mid {
  margin-top: auto;
  border-top: 1px solid var(--black-10);
  padding-top: 19px;
  min-height: 257px;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: 41.857% 1fr; /* 586 / 1400 */
}
.newsletter { width: 335px; max-width: 100%; display: flex; flex-direction: column; gap: 30px; position: relative; }
.newsletter__title { font-weight: 400; font-size: 20px; line-height: 1.4; }
.newsletter__fields { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.newsletter__input {
  width: 100%; height: 36px;
  padding: 0 18px;
  border: 0; border-radius: var(--radius);
  background: var(--black-10);
  -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--black);
  outline: none;
}
.newsletter__input::placeholder { color: var(--black); opacity: 1; }
.newsletter__input:focus { background: rgba(0,0,0,.16); }
.newsletter__submit {
  --btn-bg: var(--black);
  height: 36px; padding: 0 18px; border-radius: 26px;
  color: var(--accent);
}
.newsletter__legal {
  font-family: var(--font-mono); font-size: 9px; line-height: 1.2; letter-spacing: 0.9px;
  text-transform: uppercase; opacity: 0.5;
}
.newsletter__thanks { display: none; }
.newsletter.is-sent .newsletter__fields { display: none; }
.newsletter.is-sent .newsletter__thanks { display: block; }

.partners { position: relative; }
.partners > .mono { margin-left: -0.46px; }
.partners__logos {
  position: absolute;
  top: 78px; left: -4.54px; right: 0;
  display: flex; justify-content: space-between; align-items: center;
}
.partner { display: block; position: relative; flex: none; mix-blend-mode: multiply; }
.partner img { width: 100%; height: 100%; }
.partner--eaa { width: 149.08px; height: 47px; overflow: hidden; }
.partner--eaa img { position: absolute; left: 0; top: -118.23%; width: 100%; height: 317.19%; max-width: none; }
.partner--cfc { width: 84px; height: 84px; }
.partner--cfc img, .partner--ecologi img { object-fit: cover; }
.partner--ecologi { width: 71.67px; height: 54px; }
.partner--sbn { width: 151.46px; height: 44px; }
.partner--bcorp { width: 48.5px; height: 80px; }
.partner--bcorp img { position: absolute; left: -8px; top: -8.13px; width: 64.5px; height: 94.25px; max-width: none; }

.footer__bottom {
  border-top: 1px solid var(--black-10);
  padding-top: 19px;
  height: 28px;
  display: grid;
  grid-template-columns: 41.857% 1fr auto;
  align-items: start;
  white-space: nowrap;
}
.footer__bottom p { opacity: .5; }
.footer__policies, .footer__social { display: flex; gap: 40px; }
.footer__policies a, .footer__social a { opacity: .5; transition: opacity .3s; }
.footer__policies a:hover, .footer__social a:hover { opacity: 1; }

/* ---------- Reveal defaults (JS adds .is-ready to html) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(40px); }
/* Boxes with frosted edge blurs reveal without fading the box itself (same
   reason as the nav): the box slides up, its content and tint fade in. */
html.js [data-reveal]:has(.edge-blur) { opacity: 1; }
html.js [data-reveal]:has(.edge-blur) > :not(.edge-blur):not(.cta-lens) { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .sticky-nav__list { gap: 18px; }
  .news-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 280px; }
  .footer__mid { grid-template-columns: 1fr; height: auto; gap: 30px; }
  .partners__logos { position: static; margin-top: 30px; flex-wrap: wrap; gap: 24px; }
  .footer__bottom { grid-template-columns: 1fr; height: auto; gap: 14px; }
  :root { --footer-h: 760px; }
}

@media (max-width: 860px) {
  :root { --section-gap: 120px; }
  .sticky-nav { top: auto; bottom: 16px; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; }
  .sticky-nav::-webkit-scrollbar { display: none; }
  .nav-dropdown { display: none; }
  .work-grid { grid-template-columns: 1fr; row-gap: 60px; }
  .btn-row { grid-template-columns: 1fr; margin-top: 60px; }
  .intro__text { font-size: 20px; }
  .quotes { --slide-w: calc(100vw - 80px); }
  .quote__text { font-size: 20px; }
  .ticker-box--cta { height: 160px; }
  .project, .insight { cursor: pointer; }
}

@media (max-width: 560px) {
  .news-grid, .stats-grid { grid-template-columns: 1fr; }
  .stat__value { font-size: 56px; }
  .hero__bar .btn-blur { display: none; }
  .footer__top { flex-direction: column; gap: 20px; }
  .footer__policies, .footer__social { gap: 20px; flex-wrap: wrap; }
  :root { --footer-h: 860px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Page transition: blur veil ----------
   A fixed veil over everything. Leaving: backdrop blur ramps up, then black
   floods in. Arriving: the reverse, so the new page "focuses" into view. */
html::after {
  content: ""; position: fixed; inset: 0; z-index: 10000; pointer-events: none;
  visibility: hidden;
  background: rgba(0, 0, 0, var(--pt-a, 0));
  -webkit-backdrop-filter: blur(calc(var(--pt-b, 0) * 1px)) saturate(calc(1 + var(--pt-b, 0) / 80));
  backdrop-filter: blur(calc(var(--pt-b, 0) * 1px)) saturate(calc(1 + var(--pt-b, 0) / 80));
}
html.pt-active::after { visibility: visible; pointer-events: auto; }

/* ---------- First-visit loader: black logo on green ----------
   Shown once per session (not on page-to-page transitions). The glyphs rise
   into focus, then the green panel wipes up and the logo flies into the nav. */
.loader { display: none; }
html.is-loading .loader { display: block; position: fixed; inset: 0; z-index: 10001; pointer-events: auto; }
/* scrolling is paused by Lenis (not overflow:hidden), so the scrollbar stays put */
html.no-lenis.is-loading, html.no-lenis.scroll-locked { overflow: hidden; }
.loader__panel { position: absolute; inset: 0; background: var(--accent); will-change: clip-path; }
.loader__logo {
  position: absolute; left: 50%; top: 50%;
  width: min(23vw, 310px); transform: translate(-50%, -50%); /* GSAP takes this over as xPercent/yPercent */
  color: var(--black); will-change: transform;
}
.loader__svg { display: block; width: 100%; height: auto; overflow: visible; }
.loader__svg path { will-change: opacity; }
html.is-loading .loader__svg path { opacity: 0; }

/* Project cards with Vimeo background loops: poster image underneath, the
   player is lazy-loaded near the viewport and fades in once it's running. */
.project__vimeo {
  border: 0; pointer-events: none; opacity: 0;
  /* 16:9 player covering the 100:66 tile: full height, centred, sides cropped */
  inset: 0 auto auto 50%; width: auto; height: 100%; aspect-ratio: 16 / 9;
  transform: translateX(-50%) scale(1.02);
  transition: opacity .8s ease, transform 1.1s var(--ease-out);
}
.project:hover .project__vimeo { transform: translateX(-50%) scale(1.05); }
.project__vimeo.is-ready { opacity: 1; }

/* ---------- Pre-footer CTA hover: green orb lens ----------
   An 80px green orb with the same feathered glow as the project cursor orb;
   inside it the ticker text renders black (masked twin layer). */
.cta-lens {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: var(--accent); color: var(--black);
  --lx: 50%; --ly: 50%; --lr: 0px;
  /* solid core + glow falloff computed from the project orb's three stacked
     box-shadows (14/6 .9, 34/16 .55, 70/28 .22), so the edge matches exactly */
  --lens: radial-gradient(circle at var(--lx) var(--ly),
    rgba(0,0,0,1.000) calc(var(--lr) * 1.000),
    rgba(0,0,0,0.856) calc(var(--lr) * 1.025),
    rgba(0,0,0,0.834) calc(var(--lr) * 1.050),
    rgba(0,0,0,0.782) calc(var(--lr) * 1.100),
    rgba(0,0,0,0.722) calc(var(--lr) * 1.150),
    rgba(0,0,0,0.657) calc(var(--lr) * 1.200),
    rgba(0,0,0,0.591) calc(var(--lr) * 1.250),
    rgba(0,0,0,0.498) calc(var(--lr) * 1.325),
    rgba(0,0,0,0.419) calc(var(--lr) * 1.400),
    rgba(0,0,0,0.338) calc(var(--lr) * 1.500),
    rgba(0,0,0,0.278) calc(var(--lr) * 1.600),
    rgba(0,0,0,0.228) calc(var(--lr) * 1.700),
    rgba(0,0,0,0.176) calc(var(--lr) * 1.825),
    rgba(0,0,0,0.134) calc(var(--lr) * 1.950),
    rgba(0,0,0,0.097) calc(var(--lr) * 2.100),
    rgba(0,0,0,0.070) calc(var(--lr) * 2.250),
    rgba(0,0,0,0.049) calc(var(--lr) * 2.425),
    rgba(0,0,0,0.033) calc(var(--lr) * 2.625),
    rgba(0,0,0,0.021) calc(var(--lr) * 2.850),
    rgba(0,0,0,0.012) calc(var(--lr) * 3.100),
    rgba(0,0,0,0.006) calc(var(--lr) * 3.375),
    rgba(0,0,0,0.002) calc(var(--lr) * 3.700),
    rgba(0,0,0,0.001) calc(var(--lr) * 4.000),
    transparent calc(var(--lr) * 4.2));
  -webkit-mask-image: var(--lens); mask-image: var(--lens);
}
.cta-lens .marquee { position: absolute; inset: 0; }
.cta-lens__icon {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  color: var(--black); will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .ticker-box--cta { cursor: none; }
}
.ticker-box--cta { transition: background-color .5s ease; }
.ticker-box--cta.is-hover { background-color: rgba(255, 255, 255, 0.14) !important; }
.nav-link.is-current .nav-link__dot { background: var(--accent); }

/* ---------- Image loading: blur-up placeholders ----------
   The frame shows a tiny blurred preview (set from data-lqip in JS) until the
   full image has loaded and decoded, then the image fades in over it. */
.has-lqip::before {
  content: ""; position: absolute; inset: -30px; z-index: 0; pointer-events: none;
  background: var(--lqip) center / cover no-repeat;
  filter: blur(18px); transform: scale(1.05);
}
.lz { opacity: 0; transition: opacity .9s ease, transform 1.1s var(--ease-out); }
.lz.is-loaded { opacity: 1; }
.lz.lz--instant { transition: none; }

/* Arrow + mono label links: sit the arrow on the text baseline rather than the bottom
   of the line box (IBM Plex Mono 12/1.2 → baseline is 2.7px above the box bottom). */
.link-arrow > .icon-link, .link-arrow > .icon-down, .link-arrow > svg,
.cs-link > .icon-link, .wf__clear > svg { margin-bottom: 2.7px; flex: none; }
/* the label's trailing letter-spacing made the gap before a following arrow look wider */
.link-arrow > .mono:first-child, .cs-link > span:first-child { margin-right: -1.2px; }

/* =========================================================
   Mobile (≤760px) — Figma: Home_Mobile_A (homepage) + Home_Mobile_B (menu)
   ========================================================= */
.m-nav, .m-menu { display: none; }
.stat__icon, .news-arrows { display: none; }

@media (max-width: 760px) {
  :root { --section-gap: 100px; }

  /* ---- top bar: frosted, logo + menu toggle (Figma Navigation 7183:12954) ---- */
  .sticky-nav, .hero__explore { display: none !important; }
  .hero__bar { visibility: hidden; }
  .m-nav {
    display: flex; align-items: flex-start; justify-content: space-between;
    position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 61px; padding: 20px 20px 0 22px;
    background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-radius: 0 0 var(--radius) var(--radius);
    transition: opacity .3s ease;
  }
  html.js .page-home .m-nav { opacity: 0; animation: m-nav-in .8s var(--ease-out) 1.4s forwards; }
  @keyframes m-nav-in { to { opacity: 1; } }
  .m-nav__logo { display: block; width: 110px; height: 26px; margin-top: -1px; }
  .m-nav__logo svg, .m-nav__logo img { display: block; width: 110px; height: 26px; }
  .m-nav__toggle { display: flex; align-items: center; gap: 20px; border: 0; background: none; padding: 0; color: var(--white); cursor: pointer; }
  .m-nav__label { color: var(--white); opacity: 1; }
  .m-nav__burger { display: flex; flex-direction: column; gap: 6px; width: 31px; }
  .m-nav__burger i { display: block; height: 3px; background: var(--white); border-radius: 0; transition: transform .35s var(--ease-out); }
  .m-nav__toggle:active .m-nav__burger i:nth-child(2) { transform: scaleX(.7); }

  /* ---- menu panel (Figma Home_Mobile_B 7237:15932) ---- */
  .m-menu {
    display: block; position: fixed; inset: 0; z-index: 100;
    background: rgba(0, 0, 0, 0); pointer-events: none; visibility: hidden;
    transition: background-color .45s ease, visibility 0s linear .6s;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .m-menu.is-open { background: rgba(0, 0, 0, .45); pointer-events: auto; visibility: visible; transition: background-color .45s ease; }
  .m-menu__panel {
    display: flex; flex-direction: column; min-height: min(771px, 100svh); padding: 20px;
    background: var(--accent); color: var(--black); border-radius: 0 0 var(--radius) var(--radius);
    clip-path: inset(0 0 100% 0 round 0 0 6px 6px);
    transition: clip-path .6s cubic-bezier(.7, 0, .2, 1);
  }
  .m-menu.is-open .m-menu__panel { clip-path: inset(0 0 0 0 round 0 0 6px 6px); }
  .m-menu__head { display: flex; justify-content: space-between; align-items: flex-start; height: 21px; padding-left: 2px; }
  .m-menu__logo img { display: block; width: 110px; height: 26px; }
  .m-menu__close { display: flex; align-items: center; gap: 19px; border: 0; background: none; padding: 0; color: var(--black); cursor: pointer; }
  .m-menu__close .mono { color: var(--black); opacity: 1; }
  .m-menu__x { position: relative; width: 31px; height: 21px; }
  .m-menu__x i { position: absolute; left: 0; top: 9px; width: 31px; height: 3px; background: var(--black); }
  .m-menu__x i:first-child { transform: rotate(45deg); }
  .m-menu__x i:last-child { transform: rotate(-45deg); }
  .m-menu__list { list-style: none; margin: 100px 0 0; padding: 0; display: flex; flex-direction: column; gap: 25px; }
  .m-menu__item { border-top: 1px solid rgba(0, 0, 0, .1); padding-top: 15px; }
  .m-menu__link {
    display: flex; align-items: flex-end; justify-content: space-between; width: 100%;
    border: 0; background: none; padding: 0; color: var(--black); text-align: left; cursor: pointer;
    font: 600 25px/1 var(--font-sans); letter-spacing: 0;
  }
  .m-menu__item.is-current > .m-menu__link span:first-child,
  .m-menu__item.is-current > a.m-menu__link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
  .m-menu__plus { position: relative; flex: none; width: 15px; height: 15px; margin-bottom: 2px; transition: transform .45s var(--ease-out); }
  .m-menu__plus::before, .m-menu__plus::after { content: ""; position: absolute; background: var(--black); }
  .m-menu__plus::before { left: 0; right: 0; top: 6.5px; height: 2px; }
  .m-menu__plus::after { top: 0; bottom: 0; left: 6.5px; width: 2px; }
  .m-menu__item.is-expanded .m-menu__plus { transform: rotate(45deg); }
  .m-menu__subwrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
  .m-menu__item.is-expanded .m-menu__subwrap { grid-template-rows: 1fr; }
  .m-menu__subs { list-style: none; margin: 0; padding: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 20px; }
  .m-menu__subs li:first-child { margin-top: 25px; }
  .m-menu__sub { display: inline-flex; align-items: center; gap: 6px; color: var(--black); font: 12px/1.2 var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; }
  .m-menu__sub.is-current { text-decoration: underline; text-underline-offset: .25em; }
  .m-menu__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--black); flex: none; }
  .m-menu__cta {
    display: flex; align-items: center; justify-content: center; height: 36px; margin-top: auto;
    border-radius: 50px; background: var(--black); color: var(--accent); opacity: 1;
  }
  .m-menu__panel > .m-menu__cta { margin-top: auto; }
  .m-menu__list { margin-bottom: 60px; }
  /* items rise in after the panel opens */
  .m-menu__item, .m-menu__cta { opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .5s var(--ease-out); }
  .m-menu.is-open .m-menu__item, .m-menu.is-open .m-menu__cta { opacity: 1; transform: none; }
  .m-menu.is-open .m-menu__item:nth-child(1) { transition-delay: .18s; }
  .m-menu.is-open .m-menu__item:nth-child(2) { transition-delay: .22s; }
  .m-menu.is-open .m-menu__item:nth-child(3) { transition-delay: .26s; }
  .m-menu.is-open .m-menu__item:nth-child(4) { transition-delay: .30s; }
  .m-menu.is-open .m-menu__item:nth-child(5) { transition-delay: .34s; }
  .m-menu.is-open .m-menu__item:nth-child(6) { transition-delay: .38s; }
  .m-menu.is-open .m-menu__cta { transition-delay: .42s; }

  /* ---- homepage: shorter pinned hero (Figma header 852px) ---- */
  .page-home .hero { --hero-scroll: 70vh; }

  /* featured work: six projects, then the two small pills (Figma Case Studies 7183:12452) */
  .page-home .work-grid { row-gap: 40px; }
  .page-home .work-grid > .project:nth-child(n+7) { display: none; }
  .page-home .btn-row { gap: 5px; margin-top: 40px; }
  .page-home .btn-row .btn-pill { min-height: 36px; padding: 0 18px; }

  /* news: swipe carousel, 313px cards with the next one peeking (Figma 7183:12873) */
  .page-home .news-grid {
    display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-left: 20px;
    margin: 0 -20px; padding: 0 20px; scrollbar-width: none;
  }
  .page-home .news-grid::-webkit-scrollbar { display: none; }
  .page-home .news-grid > .insight { flex: 0 0 313px; max-width: calc(100vw - 80px); scroll-snap-align: start; }
  .page-home .news-grid > .insight:last-child { margin-right: 20px; }
  .page-home .news-arrows { display: flex; gap: 28px; margin-top: 20px; }
  .news-arrows .arrow-btn { margin: -5px; border: 0; background: none; padding: 0; cursor: pointer; }
  .news-arrows .arrow-btn:disabled { opacity: .3; }

  /* impact: rows that open to the green card on tap (Figma Global impact 7183:12887) */
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat { min-height: 0; padding: 20px; cursor: pointer; }
  .stat:hover { background: var(--white-10); color: var(--white); }
  .stat:hover .stat__label { opacity: .5; }
  .stat:hover .stat__desc { opacity: 0; }
  .stat__value { font-size: 50px; letter-spacing: -1px; }
  .stat__label { margin-top: 15px; font-size: 16px; }
  .stat__icon {
    display: block; position: absolute; top: 20px; right: 20px; width: 30px; height: 30px;
    color: var(--white); transition: transform .5s var(--ease-out), color .3s ease;
  }
  .stat__icon svg { display: block; }
  .stat__icon path { fill: var(--black); transition: fill .3s ease; }
  .stat__desc { margin-top: 0; padding-top: 0; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out), opacity .35s ease, padding-top .5s var(--ease-out); }
  .stat.is-open, .stat.is-open:hover { background: var(--accent); color: var(--black); }
  .stat.is-open .stat__label { opacity: 1; }
  .stat.is-open .stat__desc { max-height: 160px; padding-top: 36px; opacity: 1; transform: none; }
  .stat.is-open .stat__icon { color: var(--black); transform: rotate(45deg); }
  .stat.is-open .stat__icon path { fill: var(--accent); }

  /* CTA ticker (Figma CTA 7183:12946) */
  .ticker-box--cta { height: 137px; }
  .cta-text { font-size: 40px; padding-right: 40px; }
}

/* ---------- Hero visuals: click to enlarge ---------- */
.hf-item { pointer-events: auto; cursor: pointer; outline: none; }
@media (hover: hover) and (pointer: fine) { .hf-item { cursor: none; } }
/* crop-mark cursor over the hero visuals */
.hf-cursor {
  --open: 0; --s: calc(5px + var(--open) * 12px);
  position: fixed; left: 0; top: 0; z-index: 75; width: 0; height: 0; pointer-events: none; opacity: 0;
  will-change: transform;
}
.hf-cursor::after { /* centre point */
  content: ""; position: absolute; left: -1.5px; top: -1.5px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 8px rgba(255,255,255,.6);
}
.hf-cursor i {
  position: absolute; width: 5px; height: 5px; border: 0 solid var(--white);
  filter: drop-shadow(0 0 4px rgba(0,0,0,.35));
}
.hf-cursor i:nth-child(1) { left: calc(var(--s) * -1); top: calc(var(--s) * -1); border-top-width: 1px; border-left-width: 1px; }
.hf-cursor i:nth-child(2) { right: calc(var(--s) * -1); top: calc(var(--s) * -1); border-top-width: 1px; border-right-width: 1px; }
.hf-cursor i:nth-child(3) { left: calc(var(--s) * -1); bottom: calc(var(--s) * -1); border-bottom-width: 1px; border-left-width: 1px; }
.hf-cursor i:nth-child(4) { right: calc(var(--s) * -1); bottom: calc(var(--s) * -1); border-bottom-width: 1px; border-right-width: 1px; }
.hf-item img, .hf-item video { transition: transform .6s var(--ease-out), filter .4s ease; }
@media (hover: hover) and (pointer: fine) {
  .hf-item:hover img, .hf-item:hover video { transform: scale(1.06); }
}
.hf-item:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.hf-item.is-source { visibility: hidden; }
.hf-lightbox {
  --lb-a: 0;
  position: fixed; inset: 0; z-index: 120; display: none; place-items: center; cursor: zoom-out;
  background: rgba(0, 0, 0, calc(var(--lb-a) * .82));
  -webkit-backdrop-filter: blur(calc(var(--lb-a) * 18px)); backdrop-filter: blur(calc(var(--lb-a) * 18px));
}
.hf-lightbox.is-open { display: grid; }
.hf-lightbox__stage { position: relative; overflow: hidden; border-radius: var(--radius); background: #111; will-change: transform; transform-origin: 50% 50%; }
.hf-lightbox__stage img, .hf-lightbox__stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hf-lightbox__cap { position: fixed; left: 20px; bottom: 20px; margin: 0; color: var(--white); opacity: 1; }
.hf-lightbox__close {
  position: fixed; top: 20px; right: 20px; display: flex; align-items: center; gap: 16px;
  border: 0; background: none; padding: 6px 0; color: var(--white); cursor: pointer;
}
.hf-lightbox__close .mono { color: var(--white); opacity: 1; }
.hf-lightbox__x { position: relative; width: 22px; height: 22px; }
.hf-lightbox__x i { position: absolute; left: 0; top: 10px; width: 22px; height: 2px; background: currentColor; }
.hf-lightbox__x i:first-child { transform: rotate(45deg); }
.hf-lightbox__x i:last-child { transform: rotate(-45deg); }
.hf-lightbox__close:hover { color: var(--accent); }
.hf-lightbox__close:hover .mono { color: var(--accent); }
html.hf-lb-open .cursor-orb, html.hf-lb-open .hf-cursor { opacity: 0 !important; }

/* =========================================================
   Scroll-back header: logo, nav and "start a project" ride with the viewport,
   slide away while scrolling down and drop back in as soon as you scroll up.
   The logo sits straight on the page with mix-blend-mode: difference, so the
   white mark inverts to dark over light sections (e.g. the green footer).
   ========================================================= */
.hero__bar { position: static; height: 0; z-index: auto; }
.hero__bar .logo {
  position: fixed; top: 26px; left: 20px; margin-top: 0; z-index: 61;
  mix-blend-mode: difference;
}
.hero__bar .btn-blur { position: fixed; top: 20px; right: 20px; z-index: 61; }
.hero__bar .logo, .hero__bar .btn-blur, .sticky-nav, .m-nav {
  transition: translate .55s var(--ease-out);
}
html.nav-hide .hero__bar .logo, html.nav-hide .hero__bar .btn-blur, html.nav-hide .sticky-nav {
  translate: 0 -90px;
  transition-timing-function: cubic-bezier(.5, 0, .75, 0);
  transition-duration: .4s;
}
@media (max-width: 860px) {
  html.nav-hide .sticky-nav { translate: 0 90px; }
}
@media (max-width: 760px) {
  .m-nav { transition: translate .55s var(--ease-out), opacity .3s ease; }
  html.nav-hide:not(.m-menu-open) .m-nav { translate: 0 -100%; transition-duration: .4s; }
}
.hero__bar .logo.on-light { mix-blend-mode: normal; }
.hero__bar .logo.on-light svg { color: #000 !important; }
.hero__bar .logo svg { transition: color .25s ease; }
.hero__bar .btn-blur { transition: translate .55s var(--ease-out), color .25s ease; }
.hero__bar .btn-blur::before { transition: filter .45s var(--ease-out), border-radius .45s var(--ease-out), background-color .25s ease; }
