/* ==========================================================================
   NABULSI.TECH — HOME PAGE
   Design system: Geist typeface, warm orange brand #FF9D50, ink #111827, paper #ffffff.
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* Swatches */
  --brand: #FF9D50;
  --brand-600: #e8883b;
  --ink: #111827;
  --paper: #ffffff;
  --ink-o01: rgba(17, 24, 39, 0.01);
  --ink-o05: rgba(17, 24, 39, 0.05);
  --ink-o10: #f3f4f6;
  --ink-o20: #e5e7eb;
  --ink-o30: rgba(17, 24, 39, 0.3);
  --ink-o50: rgba(17, 24, 39, 0.5);
  --ink-o75: rgba(17, 24, 39, 0.75);
  --ink-800: #1f2937;

  /* Type */
  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-display: clamp(3.25rem, 10.4vw, 9.6875rem);
  --fs-h1: clamp(2.75rem, 7.4vw, 7rem);
  --fs-h2: clamp(1.875rem, 4.6vw, 4rem);
  --fs-h3: clamp(1.35rem, 2.6vw, 2.5rem);
  --fs-body: clamp(0.8125rem, 0.95vw, 1rem);
  --fs-small: 0.75rem;
  --fs-micro: 0.6875rem;

  --ls-display: -0.081em;
  --ls-tight: -0.0648em;
  --ls-loose: -0.01619em;
  --ls-caps: 0.06em;

  --lh-90: 0.9;
  --lh-100: 1;
  --lh-120: 1.2;
  --lh-130: 1.3;

  /* Space */
  --margin: clamp(1rem, 2.4vw, 2.25rem);
  --gutter: clamp(1rem, 1.8vw, 2rem);
  --section: clamp(5rem, 11vw, 11rem);
  --frame-offset: clamp(9px, 1.1vw, 17px);

  --radius: 0.25rem;
  --radius-sm: 0.125rem;
  --bw: 1px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. RESET ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-130);
  letter-spacing: var(--ls-loose);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
  height: 100vh;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--brand);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

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

/* ---------- 3. PRIMITIVES ---------------------------------------------- */
.shell {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* Dashed wireframe frame — the signature motif */
.frame {
  position: absolute;
  inset: calc(var(--frame-offset) * -1);
  border: var(--bw) dashed var(--ink-o30);
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 0;
}

.frame--tight {
  inset: -8px;
}

.frame--wide {
  inset: calc(var(--frame-offset) * -1.7);
}

/* Eyebrow / micro caps label */
.eyebrow {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  line-height: var(--lh-130);
  color: var(--ink-o75);
}

.eyebrow--brand {
  color: var(--brand);
}

/* Buttons */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #ffffff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05em 1.9em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: color 0.45s var(--ease);
}

.btn>span {
  position: relative;
  z-index: 2;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: var(--bw) solid var(--ink-o30);
}

.btn--ghost:hover {
  color: var(--paper);
}

.btn--paper {
  --btn-bg: #ffffff;
  --btn-fg: var(--ink);
}

.btn--paper:hover {
  color: var(--paper);
}

/* Framed CTA wrapper */
.cta-wrap {
  position: relative;
  display: inline-block;
}

.cta-wrap .frame {
  inset: -10px;
}

/* Skeleton bars (the grey "wireframe content" motif) */
.skel {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 0.85vw, 13px);
}

.skel i {
  display: block;
  height: clamp(9px, 1.05vw, 16px);
  background: var(--ink-o10);
  border-radius: 2px;
  transform-origin: left center;
}

.skel--right i {
  margin-left: auto;
  transform-origin: right center;
}

/* Pixel-line display text — recreates a-lign's Geist Pixel Line effect */
.pixel {
  font-weight: 600;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-90);
  color: var(--brand);
  background-image: repeating-linear-gradient(to bottom,
      var(--brand) 0,
      var(--brand) 0.026em,
      transparent 0.026em,
      transparent 0.048em);
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Coarser rules at small display sizes, otherwise the stripes fall below
   one device pixel and the effect flattens into solid colour. */
@media (max-width: 820px) {
  .pixel {
    background-image: repeating-linear-gradient(to bottom,
        var(--brand) 0,
        var(--brand) 0.042em,
        transparent 0.042em,
        transparent 0.078em);
  }
}

@supports not (background-clip: text) {
  .pixel {
    -webkit-text-fill-color: var(--brand);
    color: var(--brand);
  }
}

/* Split-text reveal machinery */
.line {
  display: block;
  overflow: hidden;
}

.line>i {
  display: block;
  font-style: normal;
  will-change: transform;
}

.word {
  display: inline-block;
  white-space: pre;
}

/* ---------- 4. PRELOADER ------------------------------------------------ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: var(--margin);
}

.loader__inner {
  position: relative;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 34px);
}

.loader__mark {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.loader__word {
  display: flex;
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  line-height: 1;
  color: var(--ink);
}

.loader__word span {
  display: inline-block;
  transform: translateY(110%);
}

.loader__pct {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.loader__bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.loader__bars i {
  display: block;
  height: 11px;
  background: var(--ink-o10);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
}

.loader__track {
  position: relative;
  height: var(--bw);
  background: var(--ink-o20);
}

.loader__track>b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--brand);
}

.loader__meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-o50);
}

/* Curtain used to wipe the loader away */
.loader__curtain {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: bottom center;
  pointer-events: none;
}

/* ---------- 5. CUSTOM CURSOR ------------------------------------------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 8000;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: var(--bw) solid var(--ink-o50);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
    margin 0.35s var(--ease), background-color 0.35s var(--ease),
    border-color 0.35s var(--ease), opacity 0.3s linear;
}

.cursor__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s linear;
}

.cursor.is-hot {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  background: var(--brand);
  border-color: var(--brand);
}

.cursor.is-view {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  background: var(--brand);
  border-color: var(--brand);
}

.cursor.is-view .cursor__label {
  opacity: 1;
}

@media (hover: none),
(max-width: 900px) {
  .cursor {
    display: none;
  }
}

/* ---------- 6. SCROLL PROGRESS ----------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 7000;
  background: transparent;
  pointer-events: none;
}

.progress>b {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- 7. TOP BAR ------------------------------------------------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--margin);
  mix-blend-mode: normal;
  pointer-events: none;
}

.topbar>* {
  pointer-events: auto;
}

.topbar__logo {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.topbar__logo b {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--brand);
  text-transform: none;
}

.topbar__meta {
  display: flex;
  gap: clamp(12px, 2vw, 32px);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-o50);
}

@media (max-width: 720px) {
  .topbar__meta span:nth-child(2) {
    display: none;
  }
}

/* ---------- 8. HERO ---------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(120px, 16vh, 190px) var(--margin) clamp(120px, 15vh, 170px);
  overflow: clip;
}

.hero__content {
  position: relative;
  z-index: 20;
  width: 100%;
  text-align: center;
  max-width: min(94vw, 860px);
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-90);
  letter-spacing: var(--ls-display);
  color: var(--ink-800);
  margin-bottom: clamp(20px, 2.6vw, 34px);
}

/* Each hero line is authored as one unit — never let it re-wrap and clip */
.hero__title .line>i {
  white-space: nowrap;
}

.hero__sub {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  line-height: 1.65;
  color: var(--ink-o75);
  margin-bottom: clamp(26px, 3.2vw, 42px);
  max-width: min(100%, 480px);
  margin-inline: auto;
}

/* Floating framed work images */
.hero__fig {
  position: absolute;
  z-index: 10;
  will-change: transform;
}

.hero__fig figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--ink-o10);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.16);
}

.hero__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
}

.hero__fig--1 {
  top: 9%;
  left: 4.5%;
  width: clamp(140px, 15.5vw, 250px);
}

.hero__fig--1 figure {
  aspect-ratio: 1 / 1;
}

.hero__fig--2 {
  top: 60%;
  left: 13.5%;
  width: clamp(110px, 12vw, 195px);
}

.hero__fig--2 figure {
  aspect-ratio: 1 / 1;
}

.hero__fig--3 {
  top: 13%;
  right: 8%;
  width: clamp(130px, 15vw, 245px);
}

.hero__fig--3 figure {
  aspect-ratio: 16 / 9;
}

.hero__fig--4 {
  bottom: 8%;
  right: 4%;
  width: clamp(190px, 24vw, 400px);
}

.hero__fig--4 figure {
  aspect-ratio: 16 / 9;
}

.hero__fig--4 .frame {
  inset: calc(var(--frame-offset) * -1.6);
}

/* Hero skeleton decoration */
.hero__skel--a {
  top: 42%;
  left: 1.5%;
  width: clamp(120px, 13vw, 215px);
}

.hero__skel--b {
  top: 30%;
  left: 21%;
  width: clamp(60px, 6vw, 95px);
}

.hero__skel--c {
  bottom: 14%;
  left: 2%;
  width: clamp(70px, 8vw, 130px);
}

/* Small-screen strip so the work imagery is never lost when the floating
   figures are dropped. Declared before the media queries that switch it on. */
.hero__strip-figs {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
  width: 100%;
  /* Breathing room so the offset dashed outlines are never clipped */
  padding-inline: 7px;
}

/* Outline rather than a pseudo-element: it keeps the dashed wireframe frame
   outside the figure without being clipped by its own overflow. */
.hero__strip-figs figure {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--ink-o10);
  outline: var(--bw) dashed var(--ink-o30);
  outline-offset: 5px;
}

.hero__strip-figs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Anchored to the left edge so it never collides with the centre dock */
.hero__scroll {
  position: absolute;
  left: var(--margin);
  bottom: clamp(28px, 4vh, 52px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-o50);
}

.hero__scroll i {
  display: block;
  width: var(--bw);
  height: 42px;
  background: linear-gradient(to bottom, var(--ink-o30), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 14px;
  background: var(--brand);
  animation: scrollHint 2.1s var(--ease-io) infinite;
}

@keyframes scrollHint {
  0% {
    transform: translateY(-100%);
  }

  60%,
  100% {
    transform: translateY(300%);
  }
}

@media (max-width: 1100px) {

  .hero__fig--2,
  .hero__skel--b {
    display: none;
  }

  .hero__fig--1 {
    top: 7%;
    left: 2%;
  }

  .hero__fig--4 {
    bottom: 5%;
    right: 2%;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-top: clamp(140px, 22vh, 200px);
    padding-bottom: 90px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__fig,
  .hero__skel--a,
  .hero__skel--b,
  .hero__skel--c,
  .hero__scroll {
    display: none;
  }

  .hero__strip-figs {
    display: grid;
  }
}

/* ---------- 9. TICKER -------------------------------------------------- */
.ticker {
  position: relative;
  border-top: var(--bw) dashed var(--ink-o30);
  border-bottom: var(--bw) dashed var(--ink-o30);
  padding: clamp(34px, 3.2vw, 48px) 0;
  overflow: hidden;
}

.ticker__row {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ticker__row>span {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.5vw, 56px);
  padding-right: clamp(28px, 3.5vw, 56px);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-o75);
  white-space: nowrap;
}

.ticker__row em {
  font-style: normal;
  color: var(--brand);
  font-size: 0.75em;
  vertical-align: middle;
  display: inline-block;
  margin: 0 4px;
}

/* ---------- 10. MANIFESTO ---------------------------------------------- */
.manifesto {
  position: relative;
  padding: var(--section) 0;
  overflow: clip;
}

.manifesto__inner {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin-inline: auto;
}

.manifesto__quote {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: var(--ls-tight);
  color: var(--ink-o20);
}

.manifesto__quote .mline {
  display: block;
  text-align: justify;
  -moz-text-align-last: justify;
  text-align-last: justify;
}

.manifesto__quote .mline--last {
  text-align: left;
  -moz-text-align-last: left;
  text-align-last: left;
}

.manifesto__quote .qm {
  color: var(--brand);
}

.manifesto__foot {
  position: relative;
  z-index: 10;
  margin-top: clamp(40px, 6vw, 80px);
  display: flex;
  justify-content: flex-end;
}

.manifesto__foot p {
  max-width: min(100%, 310px);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--brand);
}

/* Kept narrow so they frame the quote instead of running underneath it */
.manifesto__skel--l {
  top: 14%;
  left: 0;
  width: clamp(70px, 8vw, 140px);
}

.manifesto__skel--r {
  top: 20%;
  right: 0;
  width: clamp(70px, 8vw, 140px);
}

@media (max-width: 900px) {

  .manifesto__skel--l,
  .manifesto__skel--r {
    display: none;
  }

  .manifesto__quote .mline {
    text-align: left;
    -moz-text-align-last: left;
    text-align-last: left;
  }
}

/* ---------- 11. WORK --------------------------------------------------- */
.work {
  position: relative;
  padding-bottom: var(--section);
}

/* Asymmetric two-column composition: narrower left column, cards staggered
   so the two sides never line up — the a-lign editorial rhythm. */
.work__grid {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 0 var(--gutter);
  align-items: start;
  max-width: min(100%, 1180px);
  margin-inline: auto;
}

.work__col {
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6vw, 96px);
}

.work__col--b {
  padding-top: clamp(6px, 1.2vw, 20px);
}

/* Drops the whole left stack below the right one */
.work__col--a>.wcard:first-of-type {
  margin-top: clamp(28px, 4.6vw, 78px);
}

.work__head {
  position: relative;
  isolation: isolate;
}

.work__title {
  position: relative;
  z-index: 2;
  font-size: var(--fs-display);
  margin-left: -0.04em;
}

.work__head .skel {
  top: 6%;
  left: 0;
  width: 104%;
  z-index: 0;
  opacity: 0.85;
}

.work__lede {
  max-width: min(100%, 340px);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--ink-o75);
  padding-bottom: clamp(20px, 3vw, 42px);
}

/* Card */
.wcard {
  position: relative;
  display: block;
}

.wcard__frame {
  position: absolute;
  inset: calc(var(--frame-offset) * -1);
  border: var(--bw) dashed var(--ink-o30);
  border-radius: var(--radius-sm);
  pointer-events: none;
  transition: inset 0.55s var(--ease), border-color 0.55s var(--ease);
}

.wcard:hover .wcard__frame {
  inset: calc(var(--frame-offset) * -1.9);
  border-color: var(--brand);
}

.wcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--ink-o10);
}

/* No scroll parallax or base upscale here: the sources are exactly 16:9
   client artwork, so any offset would clip their borders and edge bars.
   Movement comes from the hover zoom instead. */
.wcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.05s var(--ease), filter 0.6s var(--ease);
}

.wcard:hover .wcard__media img {
  transform: scale(1.06);
}

.wcard__tint {
  position: absolute;
  inset: 0;
  background: var(--brand);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity 0.6s var(--ease);
}

.wcard:hover .wcard__tint {
  opacity: 0.14;
}

.wcard__tag {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 0.5em 0.75em;
  background: rgba(255,255,255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink);
  transform: translateY(-6px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.wcard:hover .wcard__tag {
  transform: translateY(0);
  opacity: 1;
}

.wcard__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(12px, 1.4vw, 20px);
}

.wcard__name {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink);
}

.wcard__name svg {
  width: 0.7em;
  height: 0.7em;
  overflow: visible;
  color: var(--brand);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.wcard:hover .wcard__name svg {
  opacity: 1;
  transform: translate(0, 0);
}

.wcard__year {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-o50);
  font-variant-numeric: tabular-nums;
}

.work__more {
  display: flex;
  justify-content: flex-end;
  max-width: min(100%, 1180px);
  margin: clamp(70px, 9vw, 130px) auto 0;
}

@media (max-width: 820px) {
  .work__grid {
    grid-template-columns: 1fr;
    gap: clamp(48px, 9vw, 70px);
  }

  .work__col {
    gap: clamp(48px, 9vw, 70px);
  }

  .work__col--a>.wcard:first-of-type {
    margin-top: 0;
  }

  .work__more {
    justify-content: center;
  }

  .work__head .skel {
    display: none;
  }

  .work__lede {
    padding-bottom: 0;
    max-width: 100%;
  }
}

/* ---------- 12. PROCESS ------------------------------------------------ */
.process {
  position: relative;
  padding: var(--section) 0;
  border-top: var(--bw) dashed var(--ink-o30);
}

.process__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 92px);
}

.process__head h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-100);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  max-width: 22ch;
}

.process__head p {
  max-width: 40ch;
  color: var(--ink-o75);
}

.process__list {
  border-top: var(--bw) solid var(--ink-o20);
}

.pstep {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--gutter);
  align-items: start;
  padding: clamp(26px, 3.4vw, 46px) 0;
  border-bottom: var(--bw) solid var(--ink-o20);
  overflow: hidden;
}

.pstep::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: var(--bw);
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease);
}

.pstep.is-on::before {
  transform: scaleX(1);
}

.pstep__num {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--brand);
  padding-top: 0.45em;
}

.pstep__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-100);
  letter-spacing: var(--ls-tight);
  color: var(--ink-o30);
  transition: color 0.65s var(--ease);
}

.pstep.is-on .pstep__title {
  color: var(--ink);
}

.pstep__body {
  color: var(--ink-o75);
  max-width: 52ch;
}

.pstep__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.1em;
}

.pstep__tags span {
  padding: 0.42em 0.7em;
  border: var(--bw) dashed var(--ink-o30);
  border-radius: var(--radius-sm);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-o50);
}

@media (max-width: 820px) {
  .process__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pstep {
    grid-template-columns: 3.2rem 1fr;
  }

  .pstep__body {
    grid-column: 2;
  }
}

/* ---------- 13. VALUES MARQUEE ----------------------------------------- */
.values {
  padding: clamp(52px, 7vw, 100px) 0;
  border-top: var(--bw) dashed var(--ink-o30);
  border-bottom: var(--bw) dashed var(--ink-o30);
  overflow: hidden;
}

.values__row {
  display: flex;
  width: max-content;
  will-change: transform;
}

.values__row+.values__row {
  margin-top: clamp(6px, 0.8vw, 14px);
}

.values__row>span {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.4vw, 60px);
  padding-right: clamp(24px, 3.4vw, 60px);
  font-size: clamp(2.4rem, 6.4vw, 6rem);
  font-weight: 500;
  line-height: var(--lh-100);
  letter-spacing: var(--ls-display);
  color: var(--ink-o20);
  white-space: nowrap;
}

.values__row--alt>span {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-o30);
}

.values__row em {
  font-style: normal;
  color: var(--brand);
  -webkit-text-stroke: 0;
  font-size: 0.34em;
  transform: translateY(-0.35em);
}

/* ---------- 14. TESTIMONIALS ------------------------------------------- */
.words {
  padding: var(--section) 0;
  overflow: hidden;
}

.words__head {
  margin-bottom: clamp(40px, 5.5vw, 72px);
}

.words__head h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-100);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  max-width: 20ch;
  margin-top: 0.5em;
}

.words__track {
  display: flex;
  gap: clamp(20px, 2.4vw, 34px);
  width: max-content;
  will-change: transform;
  padding-inline: var(--margin);
}

.tcard {
  position: relative;
  width: clamp(280px, 30vw, 430px);
  flex: none;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 30px);
  padding: clamp(22px, 2.4vw, 34px);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.12);
}

.tcard::before {
  content: "“";
  position: absolute;
  top: 0.05em;
  right: 0.35em;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 1;
  color: var(--brand);
  opacity: 0.22;
}

.tcard blockquote {
  font-size: clamp(0.95rem, 1.15vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: var(--ls-loose);
  color: var(--ink);
}

.tcard__who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: clamp(14px, 1.6vw, 20px);
  border-top: var(--bw) dashed var(--ink-o30);
}

.tcard__who img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink-o10);
  flex: none;
}

.tcard__who b {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink);
}

.tcard__who span {
  display: block;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-o50);
  margin-top: 3px;
}

/* ---------- 15. STATS -------------------------------------------------- */
.stats {
  padding-bottom: var(--section);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--bw) solid var(--ink-o20);
}

.stat {
  position: relative;
  padding: clamp(26px, 3.2vw, 44px) var(--gutter) clamp(26px, 3.2vw, 44px) 0;
  border-bottom: var(--bw) solid var(--ink-o20);
}

.stat+.stat {
  border-left: var(--bw) dashed var(--ink-o30);
  padding-left: var(--gutter);
}

.stat__num {
  display: flex;
  align-items: baseline;
  font-size: clamp(2.3rem, 4.6vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--ls-display);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__num em {
  font-style: normal;
  color: var(--brand);
}

.stat h3 {
  margin-top: 0.9em;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink);
}

.stat p {
  margin-top: 0.6em;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-o50);
  max-width: 26ch;
}

@media (max-width: 900px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(even) {
    border-left: var(--bw) dashed var(--ink-o30);
    padding-left: var(--gutter);
  }
}

@media (max-width: 560px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }

  .stat:nth-child(even) {
    border-left: 0;
    padding-left: 0;
  }
}

/* ---------- 16. CLOSING CTA -------------------------------------------- */
.closer {
  position: relative;
  padding: var(--section) 0 clamp(130px, 16vw, 190px);
  border-top: var(--bw) dashed var(--ink-o30);
  overflow: clip;
}

.closer__title {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: var(--lh-90);
  letter-spacing: var(--ls-display);
  color: var(--ink);
  position: relative;
  z-index: 10;
}

.closer__title .ghost {
  color: var(--ink-o20);
}

.closer__lede {
  position: relative;
  z-index: 10;
  margin-top: clamp(24px, 3vw, 40px);
  max-width: min(100%, 470px);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--ink-o75);
}

.closer__row {
  position: relative;
  z-index: 10;
  margin-top: clamp(34px, 4.4vw, 60px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}

.closer__mail {
  position: relative;
  font-size: clamp(1.05rem, 2.1vw, 2rem);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  text-decoration: none !important;
}

.closer__mail:hover,
.closer__mail:focus {
  text-decoration: none !important;
}

.closer__mail::after,
.closer__mail:hover::after {
  display: none !important;
  content: none !important;
}

.closer__skel {
  top: 12%;
  right: 0;
  width: clamp(140px, 18vw, 300px);
}

@media (max-width: 900px) {
  .closer__skel {
    display: none;
  }
}

/* ---------- 17. FOOT META ---------------------------------------------- */
.footmeta {
  border-top: var(--bw) dashed var(--ink-o30);
  padding: clamp(24px, 3vw, 40px) 0 clamp(110px, 13vw, 140px);
}

.footmeta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-o50);
}

.footmeta__social {
  display: flex;
  gap: clamp(12px, 1.8vw, 26px);
}

.footmeta__social a {
  position: relative;
  transition: color 0.35s var(--ease);
}

.footmeta__social a:hover {
  color: var(--brand);
}

/* ---------- 18. DOCK (floating nav) ------------------------------------ */
.dock {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 2.4vw, 34px);
  z-index: 900;
  transform: translate(-50%, 130%);
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  background: rgba(255,255,255, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.14);
}

.dock__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 42px;
  padding: 0 1.15em;
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.dock__btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.dock__btn--sq {
  padding: 0;
  width: 42px;
}

.dock__btn--sq svg {
  width: 13px;
  height: 13px;
  transition: transform 0.5s var(--ease);
}

.dock.is-open .dock__btn--sq svg {
  transform: rotate(135deg);
}

.dock__btn--brand {
  background: var(--brand);
  color: #ffffff;
}

.dock__btn--brand:hover {
  background: var(--ink);
}

.dock__logo {
  display: inline-flex;
  align-items: center;
  padding: 0 1.15em;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}

.dock__logo:hover {
  color: var(--brand);
}

/* On narrow screens drop the redundant "+" toggle, not the labelled Menu
   button — the explicit label is the discoverable control. */
@media (max-width: 480px) {
  .dock__btn--sq {
    display: none;
  }

  .dock__logo {
    padding: 0 0.9em;
  }
}

/* ---------- 19. MENU OVERLAY ------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: var(--paper);
  clip-path: inset(0 0 100% 0);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(80px, 12vh, 140px) var(--margin) clamp(110px, 14vh, 150px);
  visibility: hidden;
}

.menu.is-open {
  visibility: visible;
}

.menu__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--gutter);
  align-content: center;
  max-width: 1680px;
  width: 100%;
  margin-inline: auto;
}

.menu__nav {
  display: flex;
  flex-direction: column;
}

.menu__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  padding: clamp(6px, 0.9vw, 12px) 0;
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 500;
  line-height: var(--lh-90);
  letter-spacing: var(--ls-display);
  color: var(--ink);
  overflow: hidden;
}

/* No initial CSS transform here on purpose: GSAP owns the y offset.
   A static translate would be folded into GSAP's baseline and never unwind,
   leaving the labels permanently clipped by the parent's overflow. */
.menu__link>i {
  display: block;
  font-style: normal;
  transition: color 0.4s var(--ease);
}

.menu__link small {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--brand);
  transform: translateY(-1.6em);
}

.menu__link:hover>i {
  color: var(--brand);
}

.menu__aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(22px, 3vw, 40px);
}

.menu__block h4 {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-o50);
  margin-bottom: 0.8em;
}

.menu__block a,
.menu__block p {
  display: block;
  font-size: var(--fs-body);
  color: var(--ink);
  line-height: 1.7;
}

.menu__block a:hover {
  color: var(--brand);
}

.menu__foot {
  max-width: 1680px;
  width: 100%;
  margin-inline: auto;
  padding-top: clamp(20px, 3vw, 34px);
  border-top: var(--bw) dashed var(--ink-o30);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-o50);
}

@media (max-width: 820px) {
  .menu__grid {
    grid-template-columns: 1fr;
  }

  .menu__aside {
    display: none;
  }
}

/* ---------- 20. UTILITIES / MOTION ------------------------------------- */
.reveal-y {
  opacity: 0;
  transform: translateY(34px);
}

.js-ready .reveal-y {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-y {
    opacity: 1;
    transform: none;
  }

  .hero__scroll i::after {
    display: none;
  }
}

/* ===== WhatsApp floating button (left side, site-wide) ===== */
.wa-fab {
  position: fixed;
  left: clamp(16px, 3vw, 28px);
  bottom: clamp(18px, 3vw, 30px);
  z-index: 9999;
  height: 58px;
  min-width: 58px;
  max-width: 58px;
  background: #ffffff;
  border: 1.5px solid rgba(37, 211, 102, 0.45);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.32), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: max-width 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  animation: waFabBreath 2.8s ease-in-out infinite;
}

.wa-fab::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  border: 2px solid rgba(37, 211, 102, 0.5);
  pointer-events: none;
  animation: waWave 2.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  display: block;
}

.wa-fab:hover {
  max-width: 200px;
  background: #ffffff;
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.48), 0 4px 14px rgba(0, 0, 0, 0.08);
}

.wa-fab:active {
  transform: translateY(1px) scale(0.98);
}

.wa-fab-inner {
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.wa-fab .wa-logo-img {
  width: 48px;
  height: 48px;
  min-width: 48px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.wa-fab:hover .wa-logo-img {
  transform: scale(1.08) rotate(-6deg);
}

.wa-fab .wa-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  padding-left: 0;
  padding-right: 0;
  transition: max-width 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.35s ease;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
  position: static;
  transform: none;
}

.wa-fab:hover .wa-label {
  max-width: 140px;
  opacity: 1;
  padding-left: 6px;
  padding-right: 14px;
}

.wa-fab .wa-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: waDotPulse 1.8s infinite;
  flex-shrink: 0;
}

.wa-fab .wa-text {
  font-family: 'Geist', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@keyframes waFabBreath {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28), 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  50% {
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.44), 0 3px 8px rgba(0, 0, 0, 0.08);
  }
}

@keyframes waWave {
  0% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

@keyframes waDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .wa-fab {
    bottom: 88px;
    left: 12px;
    height: 52px;
    min-width: 52px;
    max-width: 52px;
    padding: 3px;
  }
  .wa-fab .wa-logo-img {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
}

/* ---------- HERO: LIVE WEBSITES WE BUILT --------------------------------
   Floating browser frames (cycled by hero-sites.js) and the sliding reel. */
.hero__fig--1.hero__site { width: clamp(170px, 17vw, 290px); }
.hero__fig--2.hero__site { width: clamp(140px, 13vw, 220px); top: 43%; left: 8%; bottom: auto; }
.hero__fig--3.hero__site { width: clamp(170px, 17vw, 290px); }
/* the lower frames sit beside the subtitle so the reel owns the bottom band */
.hero__fig--4.hero__site { width: clamp(200px, 20vw, 340px); top: 40%; right: 3.5%; bottom: auto; }
@media (max-width: 1100px) {
  .hero__fig--4.hero__site { top: 44%; right: 2%; }
}

.hero__site { display: block; color: inherit; text-decoration: none; }
.hero__fig.hero__site figure {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 10px;
  box-shadow: 0 26px 60px -26px rgba(17, 24, 39, .38);
  transition: box-shadow .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}
.hero__site:hover figure {
  transform: translateY(-6px);
  box-shadow: 0 36px 70px -26px rgba(255, 157, 80, .55);
}
.hero__site .frame { border-radius: 14px; }

.hero__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  flex: none;
  background: #f3f4f6;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
}
.hero__bar i { width: 6px; height: 6px; border-radius: 50%; background: #d1d5db; flex: none; }
.hero__bar i:nth-child(1) { background: #ff6159; }
.hero__bar i:nth-child(2) { background: #ffbd2e; }
.hero__bar i:nth-child(3) { background: #28c941; }
.hero__bar em {
  flex: 1;
  min-width: 0;
  margin-left: 6px;
  height: 13px;
  border-radius: 4px;
  background: #fff;
  font: 500 8px/13px 'Geist Mono', monospace;
  font-style: normal;
  color: #6b7280;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
  letter-spacing: 0;
  text-transform: none;
}

.hero__shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
}
.hero__fig .hero__shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: top center;
  clip-path: inset(0 0 0 0);
  transform: none;
  transition: clip-path 1.15s cubic-bezier(.77, 0, .18, 1), transform 1.5s cubic-bezier(.16, 1, .3, 1);
}
.hero__fig .hero__shot img.is-entering {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.14);
}

.hero__site-tag {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: -13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  border-radius: 99px;
  background: #111827;
  color: #fff;
  font: 500 10px/1 'Geist Mono', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(17, 24, 39, .6);
  transition: background .4s ease;
}
.hero__site-tag b { color: #FF9D50; font-weight: 600; }
.hero__site-tag span { overflow: hidden; text-overflow: ellipsis; }
.hero__site:hover .hero__site-tag { background: #FF9D50; }
.hero__site:hover .hero__site-tag b { color: #fff; }
.hero__fig--2 .hero__site-tag b { display: none; }

/* Sliding reel under the CTA */
.hero__reel {
  position: relative;
  width: 100%;
  margin-top: clamp(40px, 5vh, 58px);
}
.hero__reel-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font: 500 11px/1 'Geist Mono', monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6b7280;
}
.hero__reel-label span { width: 7px; height: 7px; border-radius: 50%; background: #FF9D50; box-shadow: 0 0 0 4px rgba(255, 157, 80, .2); }
.hero__reel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 4px 0 14px;
}
.hero__reel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hero__reel-track.is-looping { animation: heroReel 56s linear infinite; }
.hero__reel:hover .hero__reel-track,
.hero__reel:focus-within .hero__reel-track { animation-play-state: paused; }
@keyframes heroReel { to { transform: translateX(calc(-50% - 8px)); } }

.hero__reel-item {
  flex: none;
  display: flex;
  flex-direction: column;
  width: clamp(170px, 15vw, 220px);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .1);
  box-shadow: 0 16px 30px -20px rgba(17, 24, 39, .4);
  text-align: left;
  color: #111827;
  text-decoration: none;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s cubic-bezier(.16, 1, .3, 1);
}
.hero__reel-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #f3f4f6;
}
.hero__reel-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid rgba(17, 24, 39, .06);
}
.hero__reel-cap::after { content: '\2197'; flex: none; color: #FF9D50; font-weight: 500; }
.hero__reel-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__reel-item:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgba(255, 157, 80, .7); }

/* The reel's track is max-content wide; keep it from sizing the hero's grid column */
.hero { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 820px) {
  .hero__reel-item { width: clamp(170px, 46vw, 220px); }
  /* studio.css forces every .hero__fig visible; on phones the reel carries the work */
  .hero__fig.hero__site { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__reel { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

/* ---------- WORK: LIVE WEBSITE STACK ------------------------------------
   Cards are rendered by home-work.js; mockups + live preview come from
   site-preview.css / site-preview.js. */
.hw-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px clamp(30px, 6vw, 110px);
  max-width: min(100%, 1320px);
  margin-inline: auto;
}
.hw-head__side { max-width: 420px; }
.hw-head__side .work__lede { max-width: none; padding-bottom: 18px; }
.hw-head__facts {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 18px 0 clamp(20px, 3vw, 42px);
  list-style: none;
  border-top: 1px dashed var(--ink-o30);
  font: 500 11px/1.4 'Geist Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b7280;
}
.hw-head__facts b {
  display: block;
  margin-bottom: 4px;
  font: 500 clamp(26px, 2.4vw, 38px)/1 'Geist', sans-serif;
  letter-spacing: -.05em;
  color: #111827;
}

/* The deck */
.hw-stack {
  position: relative;
  max-width: min(100%, 1320px);
  margin: clamp(40px, 6vw, 90px) auto 0;
}
.hw-card {
  --top: calc(clamp(84px, 11vh, 118px) + var(--i) * 14px);
  position: sticky;
  top: var(--top);
  height: min(660px, calc(100vh - 150px));
  height: min(660px, calc(100svh - 150px));
  margin-bottom: clamp(70px, 12vh, 140px);
}
.hw-card:last-child { margin-bottom: 0; }
.hw-card__body {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(24px, 3.6vw, 64px);
  padding: clamp(24px, 3vw, 48px);
  border-radius: 32px;
  background: #0d0d12;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 -24px 60px -34px rgba(17, 24, 39, .55), 0 40px 80px -50px rgba(17, 24, 39, .6);
  overflow: hidden;
  isolation: isolate;
  transform-origin: 50% 0;
  will-change: transform;
}
/* accent bloom + faint grid, tinted by each site's colour */
.hw-card__body::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  right: -14%;
  bottom: -42%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 42%, transparent), transparent);
  pointer-events: none;
}
.hw-card__body::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(90% 90% at 0% 0%, #000, transparent 70%);
  mask-image: radial-gradient(90% 90% at 0% 0%, #000, transparent 70%);
  pointer-events: none;
}
.hw-card__shade {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  background: #08080b;
  opacity: 0;
  pointer-events: none;
}

.hw-card__info { position: relative; min-width: 0; }
.hw-card__meta { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(16px, 2.4vh, 26px); }
.hw-card__num {
  font: 500 clamp(40px, 4vw, 64px)/.85 'Geist', sans-serif;
  letter-spacing: -.07em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .35);
}
.hw-card__num small {
  font: 500 12px/1 'Geist Mono', monospace;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .45);
  -webkit-text-stroke: 0;
  margin-left: 6px;
  vertical-align: top;
}
.hw-card__name {
  font: 500 clamp(32px, 3.4vw, 58px)/1 'Geist', sans-serif;
  letter-spacing: -.055em;
  color: #fff;
  margin: 0 0 12px;
}
.hw-card__cat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 16px;
  font: 500 11px/1.4 'Geist Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 55%, #fff);
}
/* the separator travels with the type, so a wrap never strands it at a line end */
.hw-card__type { display: inline-flex; align-items: center; gap: 10px; }
.hw-card__type::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.hw-card__desc {
  max-width: 440px;
  margin: 0 0 18px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .68);
}
.hw-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(20px, 3vh, 30px);
  padding: 0;
  list-style: none;
}
.hw-card__tags li {
  padding: 7px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px;
  line-height: 1;
  color: rgba(255, 255, 255, .82);
}
.hw-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hw-card__actions .wk-btn { min-height: 48px; padding: 0 22px; font-size: 13px; }
.hw-card .wk-btn--solid::before { background: #fff; }
.hw-card .wk-btn--solid:hover { color: #111827; }

.hw-card__media {
  position: relative;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.hw-tilt {
  width: 100%;
  max-width: calc((min(660px, 100svh - 150px) - 140px) * 1.6);
  transform-style: preserve-3d;
  will-change: transform;
}
.hw-glare {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .16), transparent 45%);
  opacity: 0;
  transition: opacity .5s ease;
}
.hw-card__media:hover .hw-glare { opacity: 1; }
.hw-card .wk-phone { left: -4%; bottom: -5%; width: clamp(88px, 16%, 170px); }

/* More live work */
.hw-more {
  max-width: min(100%, 1320px);
  margin: clamp(80px, 11vw, 150px) auto 0;
}
.hw-more__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding-bottom: 20px;
  margin-bottom: clamp(22px, 3vw, 36px);
  border-bottom: 1px dashed var(--ink-o30);
}
.hw-more__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font: 500 clamp(26px, 2.6vw, 42px)/1 'Geist', sans-serif;
  letter-spacing: -.05em;
  color: #111827;
}
.hw-more__label span { width: 9px; height: 9px; border-radius: 50%; background: #FF9D50; box-shadow: 0 0 0 5px rgba(255, 157, 80, .2); }
.hw-more__hint {
  margin: 0;
  font: 500 11px/1.4 'Geist Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b7280;
}
.hw-more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}
.hw-mini { min-width: 0; }
.hw-mini__shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .1);
  box-shadow: 0 24px 50px -34px rgba(17, 24, 39, .5);
  text-align: left;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s cubic-bezier(.16, 1, .3, 1), border-color .4s ease;
}
.hw-mini__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f3f4f6; }
.hw-mini__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1);
}
.hw-mini__peek {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 99px;
  background: rgba(17, 24, 39, .86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 600 12px/1 'Geist', sans-serif;
  white-space: nowrap;
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity .45s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}
.hw-mini__peek svg { width: 14px; height: 14px; }
.hw-mini__shot:hover, .hw-mini__shot:focus-visible {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 36px 60px -30px color-mix(in srgb, var(--accent) 70%, transparent);
}
.hw-mini__shot:hover .hw-mini__img img { transform: scale(1.06); }
.hw-mini__shot:hover .hw-mini__peek, .hw-mini__shot:focus-visible .hw-mini__peek { opacity: 1; transform: translate(-50%, 0); }
.hw-mini__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px 0;
}
.hw-mini__foot h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -.03em; color: #111827; }
.hw-mini__foot p { margin: 0; font-size: 13px; color: #6b7280; }
.hw-mini__visit {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, .15);
  color: #111827;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.hw-mini__visit svg { width: 14px; height: 14px; }
.hw-mini__visit:hover { background: #FF9D50; border-color: #FF9D50; color: #fff; }
.hw-noscript { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; list-style: none; padding: 0; }
.hw-noscript a { text-decoration: underline; }

@media (min-width: 900px) and (max-height: 800px) {
  .hw-card__tags { display: none; }
  .hw-card__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 1100px) {
  .hw-card__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}
@media (max-width: 899px) {
  .hw-head__side { max-width: none; }
  .hw-card { position: relative; top: auto; height: auto; margin-bottom: 26px; }
  .hw-card__body { grid-template-columns: 1fr; gap: 26px; padding: 18px 18px 26px; border-radius: 24px; }
  .hw-card__media { order: -1; }
  .hw-tilt { max-width: none; }
  .hw-card .wk-phone { left: auto; right: 4%; bottom: -12%; width: 24%; }
  .hw-card__num { font-size: 44px; }
  .hw-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* both work CTAs share one centred column under the grid */
.work .work__more { justify-content: center; max-width: min(100%, 1320px); margin-top: clamp(28px, 3vw, 44px); }
@media (max-width: 1000px) { .hero__title { margin-inline: auto; } }

.hw-mini.is-extra { display: none; }
.hw-more__grid.is-expanded .hw-mini.is-extra { display: block; }
.hw-more__expand { display: flex; justify-content: center; margin-top: clamp(34px, 4vw, 54px); }
.hw-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 10px 0 26px;
  border-radius: 99px;
  border: 1px solid rgba(17, 24, 39, .16);
  background: #fff;
  font: 600 14px/1 'Geist', sans-serif;
  letter-spacing: -.01em;
  color: #111827;
  transition: border-color .35s ease, box-shadow .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1);
}
.hw-more__btn i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FF9D50;
  color: #fff;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.hw-more__btn:hover { border-color: #FF9D50; transform: translateY(-2px); box-shadow: 0 18px 34px -20px rgba(255, 157, 80, .8); }
.hw-more__btn[aria-expanded="true"] i { transform: rotate(45deg); }

@media (max-width: 560px) {
  .hw-card__actions .wk-btn { flex: 1 1 auto; }
  .hw-more__grid { grid-template-columns: 1fr; }
}
