/* ============================================================
   Abdo Samy - Personal Website
   Built to "Personal Website Design System v1"
   Human authority + system thinking. Signal Blue led.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ink:        #0B1020;
  --text:       #20283A;
  --muted:      #5F6B7A;
  --line:       #DCE3EC;
  --cloud:      #F7F9FC;
  --white:      #FFFFFF;
  --blue-050:   #EEF6FF;
  --blue-100:   #DDEBFF;
  --blue-200:   #BBD9FF;
  --blue-600:   #2F63FF;
  --blue-700:   #2149D8;
  --violet-100: #ECE7FF;
  --violet-600: #6336E7;
  --coral:      #FF7A59;

  --font-display: "Manrope", "Inter", Arial, sans-serif;
  --font-serif:   "Source Serif 4", Georgia, serif;

  --maxw: 1280px;
  --gutter: 64px;

  --r-ctl: 10px;
  --r-card: 20px;
  --r-media: 28px;
  --r-hero: 32px;

  --shadow-card: 0 12px 40px rgba(11,16,32,.08);
  --shadow-float: 0 18px 60px rgba(11,16,32,.14);

  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 140px 0; }
.section--tight { padding: 96px 0; }
.bg-cloud { background: var(--cloud); }
.bg-blue  { background: linear-gradient(180deg, var(--blue-050) 0%, #E4F0FF 100%); }
.bg-ink   { background: var(--ink); color: #C7D0E0; }
.bg-ink h2, .bg-ink h3 { color: var(--white); }

/* ---------- Typographic scale ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-700);
  margin: 0 0 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--blue-600); }
.bg-ink .eyebrow { color: var(--blue-200); }

.display { font-size: clamp(54px, 8vw, 88px); line-height: 0.92; letter-spacing: -0.04em; }
.h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.0; letter-spacing: -0.03em; }
.h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 500; }
.h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.015em; }
.lead { font-size: clamp(19px, 2.1vw, 22px); line-height: 1.45; font-weight: 400; color: var(--text); }
.body-l { font-size: 18px; line-height: 1.6; }
.muted { color: var(--muted); }
.measure { max-width: 60ch; }
.serif { font-family: var(--font-serif); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; transition: background .24s var(--ease), transform .24s var(--ease), border-color .24s var(--ease);
  min-height: 48px;
}
.btn .arrow { transition: transform .24s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--blue-700); color: var(--white); }
.btn--primary:hover { background: #1B3EBE; }
.btn--violet { background: var(--violet-600); color: var(--white); }
.btn--violet:hover { background: #5327d4; }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-ink { background: var(--white); color: var(--ink); }
.btn--on-ink:hover { background: var(--blue-050); }

.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--blue-700);
}
.tlink .arrow { transition: transform .24s var(--ease); }
.tlink:hover .arrow { transform: translateX(4px); }
.bg-ink .tlink { color: var(--blue-200); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(255,255,255,.86); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
}
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 500; color: var(--text); transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--violet-600); }
.nav__links a.is-active { color: var(--ink); font-weight: 600; }
.nav__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--violet-600); }
/* ShimmerButton — vanilla port of the shadcn/magicui component.
   Reusable: any element with .shimmer (header CTA + mobile menu CTA).
   Colours match the component defaults: black bg, white shimmer. */
.shimmer {
  --sb-bg: rgba(0, 0, 0, 1);
  --sb-shimmer: #ffffff;
  --sb-spread: 90deg;
  --sb-cut: 2px;
  --sb-speed: 3s;
  position: relative; z-index: 0; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; font-weight: 600; color: #fff;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.10);
  background: var(--sb-bg);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
  transform: translateZ(0);
}
.shimmer:hover { transform: translateY(-1px); }
.shimmer:active { transform: translateY(1px); }
/* spark container — square viewport for the spinning gradient */
.shimmer .shimmer__spark { position: absolute; inset: 0; z-index: -30; overflow: visible; filter: blur(2px); container-type: size; pointer-events: none; }
/* the spark slides side to side across the button */
.shimmer .shimmer__slide { position: absolute; inset: 0; height: 100cqh; aspect-ratio: 1; animation: sb-shimmer-slide var(--sb-speed) ease-in-out infinite alternate; }
/* the conic-gradient arc that spins to sweep light around the border */
.shimmer .shimmer__spin { position: absolute; inset: -100%; width: auto; translate: 0 0;
  background: conic-gradient(from calc(270deg - (var(--sb-spread) * .5)), transparent 0, var(--sb-shimmer) var(--sb-spread), transparent var(--sb-spread));
  animation: sb-spin-around calc(var(--sb-speed) * 2) infinite linear; }
/* backdrop covers the spark except a thin ring (= --sb-cut) so only the border shimmers */
.shimmer .shimmer__backdrop { position: absolute; z-index: -20; inset: var(--sb-cut); background: var(--sb-bg); border-radius: 999px; pointer-events: none; }
.shimmer .shimmer__label { position: relative; z-index: 1; letter-spacing: 0.01em; }
/* inset highlight, deepening on hover / active */
.shimmer::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: 999px;
  box-shadow: inset 0 -8px 10px #ffffff1f; transition: box-shadow .3s var(--ease); }
.shimmer:hover::after { box-shadow: inset 0 -6px 10px #ffffff3f; }
.shimmer:active::after { box-shadow: inset 0 -10px 10px #ffffff3f; }
/* per-placement sizing */
.nav__cta.shimmer { font-size: 14px; padding: 11px 24px; }
@keyframes sb-shimmer-slide { to { transform: translate(calc(100cqw - 100%), 0); } }
@keyframes sb-spin-around {
  0%       { transform: translateZ(0) rotate(0deg); }
  15%, 35% { transform: translateZ(0) rotate(90deg); }
  65%, 85% { transform: translateZ(0) rotate(270deg); }
  100%     { transform: translateZ(0) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .shimmer .shimmer__slide, .shimmer .shimmer__spin { animation: none; }
}
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; }
.nav__toggle { z-index: 62; position: relative; background: rgba(255,255,255,.6); }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: background .2s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .28s var(--ease), top .28s var(--ease); }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Visually hidden (accessible heading) ---------- */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- HERO (Website #1 flow: free-standing cutout over gradient) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 760px; height: 92vh; max-height: 900px;
  display: flex; align-items: center;
  background: transparent;
}

/* One continuous gradient flows across the hero AND the section below it. */
.pageflow {
  position: relative;
  background: linear-gradient(180deg,
    #EAF3FF 0%,
    #C2DEFF 26%,
    #97CBFF 46%,
    #8FC7FF 58%,
    #BADCFF 76%,
    #F3F8FF 92%,
    #FFFFFF 100%);
}
.intro { background: transparent; }

/* The giant name splits: ABDO drifts left, SAMY drifts right, on scroll */
.hero__name-part { display: inline-block; will-change: transform; }
.hero__inner {
  position: relative; z-index: 5; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 148px; padding-bottom: 58px;
}

/* Faint oversized watermark bleeding off the top-left, like Website #1's "ALEX" */
.hero__ghost {
  position: absolute; z-index: 0; top: -6%; left: -3%;
  font-size: 42vw; font-weight: 800; letter-spacing: -0.06em; line-height: 0.8;
  color: #fff; opacity: .30; pointer-events: none; user-select: none; white-space: nowrap;
}

/* Role list - a hairline binds the three; each draws an accent underline on hover */
.hero__roles { list-style: none; margin: 0; padding: 2px 0 2px 22px; display: flex; flex-direction: column; gap: 13px; border-left: 1.5px solid rgba(11,16,32,.16); }
.hero__roles li {
  position: relative; width: fit-content; cursor: default;
  font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
  transition: color .28s var(--ease), transform .28s var(--ease);
}
.hero__roles li::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%;
  background: var(--violet-600); transform: scaleX(0); transform-origin: left;
  transition: transform .34s var(--ease);
}
.hero__roles li:hover { color: var(--blue-700); transform: translateX(6px); }
.hero__roles li:hover::after { transform: scaleX(1); }

/* Hero CTA, lower-left (bottom of the flex column) */
.hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* Cutout portrait, anchored bottom-right, emerging from the gradient. */
.hero__figure {
  position: absolute; z-index: 2; right: 6%; bottom: 0;
  height: 98%; width: 44%;
  display: flex; align-items: flex-end; justify-content: center;
  background: none;
}
/* Portrait dissolves into the gradient at the bottom - immersive, like Website #1 */
.hero__cutout {
  height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(180deg, #000 68%, rgba(0,0,0,0) 96%);
          mask-image: linear-gradient(180deg, #000 68%, rgba(0,0,0,0) 96%);
}

/* Oversized identity name - crosses the chest/torso, big and bright like Website #1 */
.hero__name {
  position: absolute; left: 0; right: 0; bottom: 27%;
  margin: 0; text-align: center; z-index: 3;
  font-size: clamp(90px, 15.5vw, 280px); font-weight: 800; letter-spacing: -0.055em;
  line-height: 0.8; color: #fff; opacity: .82; white-space: nowrap;
  pointer-events: none; user-select: none;
  text-shadow: 0 4px 60px rgba(47,99,255,.18);
}

/* ---------- Pills & circular arrow (Website #1 action language) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--violet-600); color: #fff; font-weight: 600; font-size: 14px;
  letter-spacing: 0.01em; padding: 13px 26px; border-radius: 999px;
  transition: background .24s var(--ease), transform .24s var(--ease), box-shadow .24s var(--ease);
}
.pill:hover { background: #5327d4; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(99,54,231,.28); }
.pill-text { display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; color: var(--ink); border-bottom: 1.5px solid transparent; transition: border-color .2s var(--ease); }
.pill-text:hover { border-bottom-color: var(--ink); }

/* ---------- Intro section (mirrors Website #1 "About me" headline + card) ---------- */
.intro { padding-top: 118px; padding-bottom: 118px; }
.intro__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.intro__statement {
  font-size: clamp(30px, 4vw, 50px); line-height: 1.12; letter-spacing: -0.025em;
  font-weight: 600; color: var(--muted); margin: 6px 0 0; max-width: 15ch;
}
.intro__statement { max-width: none; }
.intro__statement b { color: var(--ink); font-weight: 700; }
.intro__statement .mut { color: var(--muted); font-weight: 500; }
.intro__sub { margin-top: 18px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.5; color: var(--muted); max-width: 42ch; }
.intro__actions { margin-top: 32px; }

/* Floating connected card with thumbnail + arrow-line note */
.intro__card {
  justify-self: end; max-width: 380px; width: 100%;
  background: var(--white); border-radius: 24px; padding: 16px;
  box-shadow: var(--shadow-float); position: relative;
}
.intro__thumb img { border-radius: 16px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.intro__note { display: flex; gap: 14px; align-items: flex-start; padding: 20px 8px 8px; }
.intro__note p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.intro__note b { color: var(--ink); font-weight: 700; }
.intro__note .mut { color: var(--muted); }

/* ---------- Section head block ---------- */
.head { display: grid; grid-template-columns: 7fr 4fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.head__intro { color: var(--muted); font-size: 18px; line-height: 1.6; }
@media (max-width: 860px){ .head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; } }

/* ---------- Selected work ---------- */
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 26px; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.wcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--blue-100); }
.wcard__meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wcard__viz { margin: 20px 0 22px; border-radius: 14px; background: linear-gradient(160deg, var(--blue-050), #fff); border: 1px solid var(--line); padding: 18px; }
.wcard__viz svg { width: 100%; height: auto; display: block; }
.wcard__title { font-size: 21px; line-height: 1.2; margin-bottom: 12px; }
.wcard__pb { font-size: 14.5px; color: var(--muted); line-height: 1.5; margin-bottom: 18px; }
.wcard__out { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.wcard__out .n { font-size: 22px; font-weight: 700; color: var(--blue-700); letter-spacing: -0.02em; }
.wcard__out .d { font-size: 13px; color: var(--muted); margin-top: 3px; }
.work__foot { margin-top: 40px; display: flex; justify-content: center; }

/* ---------- Approach / system map ---------- */
.approach__lead { max-width: 62ch; color: #B9C4D8; font-size: 20px; line-height: 1.5; margin-top: 8px; }
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 66px; position: relative; }
.flow__step { position: relative; padding: 0 16px; }
.flow__step::before {
  content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, rgba(47,99,255,.25), rgba(47,99,255,.6));
}
.flow__step:first-child::before { left: 50%; }
.flow__step:last-child::before { right: 50%; }
.flow__node { width: 32px; height: 32px; border-radius: 999px; background: var(--blue-600); border: 4px solid var(--ink); position: relative; z-index: 2; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 4px rgba(47,99,255,.18); }
.flow__t { color: #fff; font-weight: 600; font-size: 17px; margin: 22px 0 8px; letter-spacing: -0.01em; }
.flow__d { font-size: 13.5px; color: #97A3B8; line-height: 1.45; }
.approach__note { margin-top: 64px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); font-size: 18px; color: #C7D0E0; max-width: 68ch; }
.approach__note b { color: #fff; font-weight: 600; }

/* ---------- Speaking ---------- */
.speak__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.speak__copy p { margin-top: 20px; }
.speak__points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.speak__points li { display: flex; gap: 14px; align-items: center; font-size: 17px; color: var(--text); }
.speak__points .b { width: 7px; height: 7px; border-radius: 999px; background: var(--blue-600); flex: none; }
.speak__media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.speak__media .big { grid-column: 1 / 3; }
.speak__media img { border-radius: var(--r-media); width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow-card); }
.speak__media .big img { aspect-ratio: 16/9.4; }
.speak__media .sm img { aspect-ratio: 4/3.4; }
.speak__cap { margin-top: 22px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }

/* ---------- Testimonials ---------- */
.tfeature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-media);
  padding: 60px; position: relative; box-shadow: var(--shadow-card);
}
.tfeature__q { font-family: var(--font-serif); font-size: clamp(24px, 3.2vw, 36px); line-height: 1.32; color: var(--ink); letter-spacing: -0.01em; }
.tfeature__q .hl { background: linear-gradient(180deg, transparent 62%, var(--blue-100) 62%); }
.tfeature__by { margin-top: 34px; display: flex; align-items: center; gap: 14px; }
.tfeature__av { width: 46px; height: 46px; border-radius: 999px; background: var(--blue-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.tfeature__n { font-weight: 700; color: var(--ink); font-size: 16px; }
.tfeature__r { font-size: 14px; color: var(--muted); }
.tfeature__mark { position: absolute; top: 34px; right: 46px; font-family: var(--font-serif); font-size: 120px; line-height: 1; color: var(--blue-100); user-select: none; }

.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.tcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px; display: flex; flex-direction: column; }
.tcard__q { font-size: 17px; line-height: 1.55; color: var(--text); }
.tcard__by { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.tcard__n { font-weight: 700; color: var(--ink); font-size: 15px; }
.tcard__r { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--r-media); width: 100%; aspect-ratio: 4/4.4; object-fit: cover; object-position: 50% 20%; box-shadow: var(--shadow-card); }
.about__tag { position: absolute; right: -20px; bottom: 30px; background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-float); }
.about__tag .a { font-size: 14px; font-weight: 700; } .about__tag .b { font-size: 12.5px; color: #9BA7BC; margin-top: 2px; }
.about__body p { margin-top: 20px; color: var(--text); }
.about__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #A9B4C6; padding: 96px 0 40px; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot__cta { font-size: clamp(30px, 4vw, 46px); font-weight: 600; color: #fff; letter-spacing: -0.03em; line-height: 1.08; }
.foot__links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 34px; flex-wrap: wrap; gap: 16px; }
.foot__id .n { color: #fff; font-weight: 700; font-size: 16px; }
.foot__id .r { font-size: 13.5px; color: #8390A6; margin-top: 4px; }
.foot__meta { font-size: 13px; color: #6E7A90; text-align: right; }
.foot__meta a { color: #A9B4C6; }
.foot__note { margin-top: 26px; font-size: 12.5px; color: #6E7A90; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--rd, 0s); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal--l { transform: translateX(-40px); }
.reveal--r { transform: translateX(40px); }
.reveal--scale { transform: scale(.94); }
.reveal--l.in, .reveal--r.in, .reveal--scale.in { transform: none; }

/* ---------- Hero entrance (plays once on load) ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes portraitIn { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes nameIn { from { opacity: 0; transform: translateY(70px) scale(1.06); } to { opacity: .82; transform: none; } }
@keyframes ghostIn { from { opacity: 0; } to { opacity: .30; } }

body.loaded .nav { animation: fadeDown .8s var(--ease) both; }
body.loaded .hero__ghost { animation: ghostIn 1.4s var(--ease) .2s both; }
body.loaded .hero__roles li { animation: riseIn .7s var(--ease) both; }
body.loaded .hero__roles li:nth-child(1) { animation-delay: .30s; }
body.loaded .hero__roles li:nth-child(2) { animation-delay: .40s; }
body.loaded .hero__roles li:nth-child(3) { animation-delay: .50s; }
body.loaded .hero__name { animation: nameIn 1.1s var(--ease) .15s both; }
body.loaded .hero__figure { animation: portraitIn 1.15s var(--ease) .30s both; }
body.loaded .hero__cta { animation: riseIn .8s var(--ease) .65s both; }

/* ---------- Image hover zoom (only where there is no scroll-zoom) ---------- */
.intro__thumb { overflow: hidden; }
.intro__thumb img { transition: transform .6s var(--ease); }
.intro__thumb:hover img { transform: scale(1.05); }
/* Scroll-zoom targets track the scroll instantly */
[data-fx] { will-change: transform; }
.panel__media img[data-fx] { transform-origin: center; }

@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  body.loaded .nav, body.loaded .hero__ghost, body.loaded .hero__roles li,
  body.loaded .hero__name, body.loaded .hero__figure, body.loaded .hero__cta { animation: none; }
  .panel__media img, .flowtrain__img, .imgrow img, .intro__thumb img { transition: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 55; background: linear-gradient(180deg, #FFFFFF 0%, #EAF3FF 100%); transform: translateY(-100%); transition: transform .42s var(--ease); display: flex; flex-direction: column; padding: 108px 24px 44px; visibility: hidden; }
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mobile-menu__nav a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 22px 2px; border-bottom: 1px solid var(--line);
}
.mobile-menu__nav .m-label {
  font-size: clamp(30px, 9vw, 40px); font-weight: 600; color: var(--ink);
  letter-spacing: -0.025em; line-height: 1;
  transition: color .22s var(--ease), transform .28s var(--ease);
}
.mobile-menu__nav .m-desc {
  font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0;
  transition: color .22s var(--ease), transform .28s var(--ease);
}
.mobile-menu__nav a:hover .m-label, .mobile-menu__nav a:active .m-label { color: var(--violet-600); transform: translateX(6px); }
.mobile-menu__nav a:hover .m-desc, .mobile-menu__nav a:active .m-desc { color: var(--ink); transform: translateX(6px); }
.mobile-menu__cta { margin-top: 36px; align-self: flex-start; font-size: 16px; padding: 13px 26px; }

/* ============================================================
   21st.dev-inspired flourishes - editorial italics, shine, progress
   ============================================================ */
/* Accent word: clean display type in brand blue (no serif italic) */
.it { font-family: var(--font-display); font-style: normal; font-weight: 700; color: var(--blue-700); letter-spacing: inherit; }
.it--blue { color: var(--blue-700); }
.it--violet { color: var(--violet-600); }

/* Shine sweep across primary pills on hover */
.pill { position: relative; overflow: hidden; }
.pill::after {
  content: ""; position: absolute; top: 0; left: -140%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.pill:hover::after { animation: shine .85s var(--ease); }
@keyframes shine { from { left: -140%; } to { left: 170%; } }

/* Active-section indicator on the nav */
.nav__links a { position: relative; }
.nav__links a::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2px;
  border-radius: 999px; background: var(--violet-600);
  opacity: 0; transform: scale(.5); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav__links a.is-active { color: var(--ink); font-weight: 600; }
.nav__links a.is-active::before { opacity: 1; transform: scale(1); }

/* Count-up number keeps layout stable */
.count { font-variant-numeric: tabular-nums; }

/* ============================================================
   Website #1 language - panels, floating cards, slab headings
   ============================================================ */
/* Continuous page wash: white through the middle, deepening to blue at the footer */
body {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 44%, #EFF7FF 56%, #D6EAFF 70%, #BCDCFF 82%, #BCDCFF 100%);
}

.slab { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; color: var(--ink); }
.slab--xl { font-size: clamp(46px, 7.5vw, 100px); line-height: 0.98; }

/* Rounded feature panel (Disruptive Wisdom / Inspire) */
.panel {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 44px; align-items: center;
  background: linear-gradient(155deg, #E6F1FF 0%, #C9E3FF 100%);
  border-radius: 34px; padding: 52px; position: relative; overflow: hidden;
}
.panel--rev .panel__media { order: -1; }
.panel__body { display: flex; flex-direction: column; align-items: flex-start; }
.panel__body .slab { margin-top: 4px; }
.panel__media { position: relative; align-self: stretch; min-height: 360px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); }
.panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
/* Scroll-morph variant: image starts as a circle, grows into the rounded rectangle,
   and the photo eases in a zoom inside the morphing frame */
.panel__media--morph { overflow: visible; box-shadow: none; border-radius: 0; min-height: 440px; }
.morph__clip { position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(0 round 24px); filter: drop-shadow(0 22px 48px rgba(11,16,32,.20)); will-change: clip-path; }
.morph__clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 16%; transform: scale(1); transform-origin: 50% 38%; will-change: transform; }
.panel__tag { position: absolute; left: 18px; bottom: 18px; background: rgba(11,16,32,.82); backdrop-filter: blur(6px); color: #fff; border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; z-index: 2; }
.panel__media--morph .panel__tag { transition: opacity .25s var(--ease), transform .25s var(--ease); }
.panel__tag b { font-size: 14px; } .panel__tag span { font-size: 12.5px; color: #9BB0D0; margin-top: 2px; }
.panel__stat { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.panel__stat-num { font-size: clamp(44px, 5vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--blue-700); }
.panel__stat-label { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.panel__text { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; color: var(--muted); margin-top: 22px; max-width: 46ch; }
.panel__text b { color: var(--ink); font-weight: 700; }
.panel__cta { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.pillrow-label { font-size: 14px; color: var(--muted); }
.pillrow-label b { color: var(--ink); font-weight: 700; }

/* White floating card with two-tone text */
.floatcard { background: #fff; border-radius: 18px; padding: 20px; box-shadow: var(--shadow-float); margin-top: 28px; max-width: 470px; }
.floatcard__row { display: flex; gap: 14px; align-items: flex-start; }
.floatcard__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-050); display: grid; place-items: center; flex: none; }
.floatcard__row p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.floatcard__row b { color: var(--ink); font-weight: 700; }
.floatcard__foot { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.steps span { background: var(--blue-050); color: var(--ink); border-radius: 999px; padding: 5px 11px;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.steps i { color: var(--blue-600); font-style: normal; }
.floatcard__thumb { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex: none; }
.floatcard--over { position: absolute; left: -26px; bottom: 28px; max-width: 300px; margin: 0; }

/* What I do - pillar cards */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 34px;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--blue-100); }
.pcard__ico { width: 54px; height: 54px; border-radius: 15px; background: var(--blue-050); display: grid; place-items: center; margin-bottom: 24px; }
.pcard__t { font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }
.pcard__d { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.pcard__tag { margin-top: auto; padding-top: 22px; font-size: 12.5px; font-weight: 600; color: var(--blue-700); letter-spacing: .005em; }

.processband { margin-top: 26px; background: linear-gradient(150deg, #EEF6FF, #DCEBFF); border-radius: var(--r-card); padding: 24px 34px; display: flex; flex-direction: row; align-items: center; gap: 24px; }
.processband__label { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5F6B7A; }
.steps--band { flex: 1; justify-content: center; }
.steps--band span { background: #fff; cursor: default; }
.steps--band span:hover { background: var(--blue-700); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(33,73,216,.25); }

/* Tools I build with - a simple slow logo marquee on the blue field */
.tools { position: relative; background: transparent; }
.tools__title { text-align: center; font-size: clamp(22px, 3vw, 38px); font-weight: 500; color: var(--muted); letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
.tools__title b { color: var(--ink); font-weight: 700; }

.marquee { position: relative; max-width: 1440px; margin: 36px auto 0; padding: 20px 0; overflow: hidden; }
.marquee__viewport { overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 72px;
  animation: marqueeRight 60s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.mq-item { display: flex; align-items: center; gap: 11px; flex: none; font-size: 18px; font-weight: 600; white-space: nowrap; }
.mq-item span { color: #7A8798; transition: color .35s var(--ease); }
.mq-item .logomark { height: 24px; max-width: 32px; filter: grayscale(1) opacity(.5); transition: filter .3s var(--ease); }
.mq-item .logomark--wide { height: 18px; max-width: 86px; }
/* Only the hovered logo colours in */
.mq-item:hover .logomark { filter: grayscale(0) opacity(1); }
.mq-item:hover span { color: var(--ink); }

/* Thin gray lines that fade at both ends, with one soft light gliding along each */
.marquee__line { position: absolute; left: 0; right: 0; height: 6px; z-index: 3; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee__line--top { top: 0; } .marquee__line--bottom { bottom: 0; }
.marquee__line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; background: #cdd3dc; }
.beam { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; will-change: transform;
  background: linear-gradient(90deg, transparent 44%, #6b8cff 48.5%, #8b6bff 51.5%, transparent 56%); }
.beam--ltr { animation: beamLTR 5.5s linear infinite; }
.beam--rtl { animation: beamRTL 5.5s linear infinite; }
@keyframes beamLTR { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes beamRTL { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce){
  .marquee__track, .beam { animation: none; }
  .marquee__track { transform: none; }
}
.logogrid {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden;
}
.logocell {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  background: var(--white); padding: 46px 18px;
  font-size: clamp(15px, 1.5vw, 18px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.logocell:nth-child(1), .logocell:nth-child(3), .logocell:nth-child(6), .logocell:nth-child(8) { background: var(--cloud); }
.logocell:hover { color: var(--blue-700); background: var(--blue-050); }
.logomark { height: 22px; width: auto; max-width: 30px; object-fit: contain; flex: none;
  filter: grayscale(1) opacity(.5); transition: filter .3s var(--ease); }
.logomark--wide { height: 17px; max-width: 82px; }
.logocell:hover .logomark { filter: grayscale(0) opacity(1); }
.lg-plus { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 15px; height: 15px; z-index: 3; pointer-events: none; }
.lg-plus::before, .lg-plus::after { content: ""; position: absolute; background: #BCC8D9; }
.lg-plus::before { left: 50%; top: 0; width: 1.5px; height: 15px; transform: translateX(-50%); }
.lg-plus::after { top: 50%; left: 0; height: 1.5px; width: 15px; transform: translateY(-50%); }

/* Flow-training split */
.flowtrain { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 60px; align-items: center; }
.flowtrain__media { position: relative; }
.flowtrain__img { border-radius: 28px; width: 100%; aspect-ratio: 16/11; object-fit: cover; box-shadow: var(--shadow-card); }
.arrowrow { display: flex; gap: 16px; align-items: flex-start; margin: 26px 0 30px; }
.arrowrow p { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 42ch; }
.arrowrow b { color: var(--ink); font-weight: 700; }

/* Clean editorial lead-in arrow (single stroke, matched weight) */
.lead-arrow { flex: none; color: var(--blue-700); }
.arrowrow .lead-arrow { margin-top: 12px; }
.intro__note .lead-arrow { margin-top: 8px; }

/* Image row (Recent Videos style) - clipped tiles for scroll-zoom */
.imgrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.tile { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/3; }
.tile img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.zoomframe { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-card); }
.zoomframe .flowtrain__img { border-radius: 0; box-shadow: none; will-change: transform; }

/* What others say - interactive carousel */
.otherssay__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 46px; gap: 20px; }
.circ-nav { display: flex; gap: 12px; }
.circ-btn { width: 54px; height: 54px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease); }
.circ-btn--solid { background: var(--violet-600); color: #fff; border-color: var(--violet-600); }
.circ-btn:hover { transform: translateY(-2px); }
.circ-btn:not(.circ-btn--solid):hover { border-color: var(--ink); }
.circ-btn:disabled { opacity: .35; cursor: default; transform: none; }

.carousel {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 26px 4px 46px; margin: 0 -4px;
  scrollbar-width: none; -ms-overflow-style: none;
  /* smooth gradient fade at the edges instead of a hard cut */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 88%, transparent 100%);
}
.carousel::-webkit-scrollbar { display: none; }
.qcard {
  scroll-snap-align: start; flex: 0 0 calc((100% - 24px) / 2);
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 42px;
  display: flex; flex-direction: column; position: relative; min-height: 320px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.qcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--blue-100); }
.qcard__mark { position: absolute; top: 24px; right: 34px; font-family: var(--font-serif); font-size: 90px; line-height: 1; color: var(--blue-100); user-select: none; }
.qcard__quote { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.45; color: var(--muted); letter-spacing: -0.01em; position: relative; z-index: 1; }
.qcard__quote b { color: var(--ink); font-weight: 700; }
.qcard footer { display: flex; gap: 14px; align-items: center; margin-top: auto; padding-top: 28px; }
.qcard__av { width: 48px; height: 48px; border-radius: 999px; background: var(--violet-600); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.qcard__by { display: flex; flex-direction: column; }
.qcard__by b { color: var(--ink); font-size: 15px; }
.qcard__by span { color: var(--muted); font-size: 13px; margin-top: 1px; }
.carousel__dots { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.carousel__dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: #fff; padding: 0; box-shadow: 0 1px 3px rgba(11,16,32,.12); cursor: pointer; transition: background .2s var(--ease), width .2s var(--ease); }
.carousel__dots button.on { background: var(--violet-600); width: 24px; box-shadow: none; }

/* Footer with giant name watermark - sits on the continuous page gradient */
.foot2 { position: relative; overflow: hidden; background: transparent; color: var(--ink); padding: 100px 0 40px; }
.foot2__top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding-bottom: 0; }
.foot2__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot2__name { position: relative; z-index: 1; text-align: center; font-size: clamp(46px, 11vw, 168px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: #fff; opacity: .5; white-space: nowrap; margin: calc(60px - 0.03em) 0 calc(60px + 0.03em); user-select: none; }
.foot2__bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(11,16,32,.14); padding-top: 28px; margin-top: 0; }
.foot2__nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot2__nav a { font-weight: 600; font-size: 15px; color: var(--ink); }
.foot2__nav a:hover { color: var(--violet-600); }
.foot2__meta { font-size: 13px; color: #3B4A63; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px){
  :root { --gutter: 40px; }
  .hero__name { font-size: clamp(72px, 15vw, 200px); }
  .hero__figure { right: 0; width: 48%; }
  .intro__grid { gap: 44px; }
}
@media (max-width: 960px){
  .section { padding: 96px 0; }
  /* Mobile/tablet hero: portrait first, full name as a title, roles horizontal */
  .hero { height: auto; max-height: none; min-height: 0; display: flex; flex-direction: column; padding: 104px 0 48px; text-align: center; }
  .hero__ghost { display: none; }
  .hero__figure {
    order: 1; position: relative; right: auto; bottom: auto; background: none;
    width: min(66%, 290px); height: auto; margin: 0 auto;
  }
  .hero__cutout { height: auto; width: auto; max-width: 100%; max-height: 48vh;
    -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, #000 90%, transparent 100%); }
  /* Name is the desktop-style white watermark, sized to fit and overlapping the lower portrait */
  .hero__name { order: 2; position: relative; z-index: 3; bottom: auto; text-align: center; white-space: nowrap;
    font-size: clamp(46px, 16vw, 100px); line-height: 0.9; opacity: .9; color: #fff;
    margin: -14vh 0 0; text-shadow: 0 2px 34px rgba(33, 73, 216, .28); pointer-events: none; }
  /* keep inline-block so the scroll transform (ABDO left / SAMY right) actually applies */
  .hero__name-part { display: inline-block; will-change: transform; }
  .hero__name-gap { display: inline-block; }
  .hero__inner { order: 3; height: auto; margin-top: 13vh; padding-top: 0; padding-bottom: 0; align-items: center; justify-content: flex-start; gap: 22px; }
  .hero__roles { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 0; border-left: none; padding: 0; }
  .hero__roles li { font-size: 15px; }
  .hero__roles li::after { content: "·"; position: static; width: auto; height: auto; background: none; transform: none; margin: 0 11px; color: var(--muted); font-weight: 700; }
  .hero__roles li:last-child::after { content: none; }
  .hero__roles li:hover { transform: none; color: var(--ink); }
  .hero__cta { justify-content: center; gap: 18px; }
  .intro__grid { grid-template-columns: 1fr; gap: 40px; }
  .intro__card { justify-self: start; }
  .flowtrain { grid-template-columns: 1fr; gap: 30px; }
  /* Phone reads context-first: heading + copy lead, the image follows (no order flip) */
  .flowtrain__media { order: 0; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 820px){
  .panel { grid-template-columns: 1fr; gap: 32px; padding: 34px; }
  .panel--rev .panel__media { order: 0; }
  .panel__media { min-height: 300px; }
  /* One testimonial centered per view: the edge fade lands on the neighbours, not the active card */
  .carousel { padding-left: 26px; padding-right: 26px; margin: 0; scroll-padding: 0 26px; }
  .qcard { flex: 0 0 100%; scroll-snap-align: center; padding: 34px; }
  .imgrow { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .processband { flex-direction: column; align-items: center; gap: 16px; text-align: center; }
  .processband .steps--band { flex: none; }
  .logogrid { grid-template-columns: repeat(2, 1fr); }
  .logocell { padding: 38px 16px; }
  .lg-plus { display: none; }
}
@media (max-width: 760px){
  :root { --gutter: 20px; }
  .section { padding: 72px 0; }
  .hero__figure { width: min(68%, 260px); }
  .hero__cutout { max-height: 42vh; }
  .hero__name { font-size: clamp(46px, 15.5vw, 88px); }
  .slab--xl { font-size: clamp(44px, 15vw, 80px); }
  /* Restore the "floating" stat card by overlapping it onto the image's lower edge */
  .floatcard--over { position: relative; left: 0; bottom: 0; margin: -38px 14px 0; max-width: none; z-index: 2; box-shadow: var(--shadow-card); }
  /* Trim the photo wall on phones: 2 distinct stage shots, drop the duplicate + the weakest */
  .imgrow { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
  .imgrow .tile:nth-child(1), .imgrow .tile:nth-child(4) { display: none; }
  .otherssay__head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .foot2__bottom { flex-direction: column; align-items: flex-start; }
  .foot2__name { margin: calc(40px - 0.03em) 0 calc(40px + 0.03em); }
}

/* ============================================================
   Contact popover form (opens on "Get in touch")
   ============================================================ */
.cform {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
}
.cform.open { opacity: 1; visibility: visible; pointer-events: auto; }
.cform__backdrop { position: absolute; inset: 0; background: rgba(11,16,32,.42); backdrop-filter: blur(4px); }
.cform__panel {
  position: relative; z-index: 1; width: 100%; max-width: 460px;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: 34px 32px 28px; box-shadow: var(--shadow-float);
  transform: translateY(14px) scale(.94); transform-origin: bottom center;
  transition: transform .34s var(--ease);
  overflow: visible; /* let the handle sit outside the top edge without being clipped */
}
.cform.open .cform__panel { transform: none; }
/* Inner scroll region keeps long content reachable on short screens without clipping the handle */
.cform__scroll { max-height: calc(100vh - 120px); overflow-y: auto; margin: 0 -6px; padding: 2px 6px; }
.cform__handle {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--muted);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(11,16,32,.10);
  transition: color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.cform__handle:hover { color: var(--ink); border-color: var(--ink); transform: translate(-50%, -50%) translateY(-1px); }
.cform__title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 4px 0 0; }
.cform__sub { font-size: 14.5px; color: var(--muted); margin: 6px 0 22px; }
.cform__form { display: flex; flex-direction: column; gap: 16px; }
.cform__field { display: flex; flex-direction: column; gap: 7px; }
.cform__field > span { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; }
.cform__req { color: var(--coral); font-weight: 700; }
.cform__field input, .cform__field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); width: 100%; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.cform__field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.cform__field input:focus, .cform__field textarea:focus {
  outline: none; border-color: var(--violet-600); box-shadow: 0 0 0 3px rgba(99,54,231,.14);
}
/* Red only after a failed submit (added via JS), never on open or while typing */
.cform__field input.is-invalid, .cform__field textarea.is-invalid { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,122,89,.14); }
.cform__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 6px; padding-top: 22px; border-top: 1px dashed var(--line);
}
.cform__hint { font-size: 13px; color: var(--muted); margin: 0; }
.cform__hint.is-error { color: var(--coral); }
.cform__hint.is-ok { color: var(--blue-700); font-weight: 600; }
.cform__submit { font-size: 15px; padding: 12px 26px; }
@media (max-width: 760px){
  .cform__panel { padding: 30px 22px 24px; }
}

/* ============================================================
   Flow Button — outlined at rest (arrow right); on hover fills
   black and the arrow bounces over to the left.
   ============================================================ */
.flow-btn {
  --fb-ease: cubic-bezier(.34, 1.56, .64, 1);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; background: #0B1020; color: #fff;
  font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* Stays black; hover just deepens it, lifts slightly, and the arrow flows to the left */
.flow-btn:hover { background: #000; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(11,16,32,.30); }
.flow-btn__label { position: relative; z-index: 1; }
.flow-btn__arrow {
  display: flex; align-items: center; overflow: hidden;
  max-width: 0; opacity: 0;
  transition: max-width .45s var(--fb-ease), opacity .3s var(--ease),
              transform .45s var(--fb-ease), margin .45s var(--fb-ease);
}
.flow-btn__arrow svg { width: 18px; height: 18px; flex: none; }
/* at rest: right arrow shows, left arrow collapsed */
.flow-btn__arrow--right { max-width: 18px; opacity: 1; margin-left: 9px; transform: translateX(0); }
.flow-btn__arrow--left  { max-width: 0;  opacity: 0; margin-right: 0; transform: translateX(-6px); }
/* on hover: swap sides */
.flow-btn:hover .flow-btn__arrow--right { max-width: 0;  opacity: 0; margin-left: 0; transform: translateX(6px); }
.flow-btn:hover .flow-btn__arrow--left  { max-width: 18px; opacity: 1; margin-right: 9px; transform: translateX(0); }
@media (prefers-reduced-motion: reduce){
  .flow-btn, .flow-btn__arrow { transition: background .2s linear, box-shadow .2s linear; }
}
