/* Barometer. landing page — built from the "Final" page of the Barometer — Home Figma file */

:root {
  --blue: #0059ff;
  --blue-dark: #0047cc;
  --blue-deep: #1f4ea4;
  --blue-light: #9abeff;
  --ink: #202020;
  --ink-2: #525252;
  --muted: #7a7a7a;
  --label: #939393;
  --line: #e5e8eb;
  --surface: #f4f6f9;
  --tint: #edf2ff;
  --teal: #2ec2b3;
  --yellow: #ffc300;
  --yellow-light: #ffeeb8;
  --footer: #1a1a1a;

  --font-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-card: "Archivo", "Geist", system-ui, sans-serif;

  --gutter: 100px;
  --header-h: calc(var(--header-top) + var(--header-height));   /* top inset + pill height */
  --ease: cubic-bezier(.3, .8, .4, 1);
  --t-fast: 140ms var(--ease);
  --t: 220ms var(--ease);

  /* ——— Hero spacing dials ——————————————————————————————————————————————
     Every gap in the hero reads from one of these. Change the number here and
     the rule that uses it follows — you never have to hunt for the rule itself.
     Mobile has its own copy of this block, marked the same way, near the bottom
     of the file. Live-tweak in DevTools: pick the <html> element, find these
     under the  :root  rule in the Styles pane, drag the number with the arrow
     keys, then paste the value you like back in here. */
  --hero-fill:       95vh;                              /* how much of the screen the hero fills.
                                                           Set it to  auto  to make every gap below
                                                           exact; leave it and any leftover height
                                                           lands in --hero-logos-gap. */
  /* ——— Glass ————————————————————————————————————————————————————————————
     One recipe for all three bars: the desktop header pill, the mobile header
     pill and the mobile bottom bar. Figma's GLASS effect does four things at
     once, so four properties stand in for it here:
       --glass-fill   the tint floating over the blur. Barely anything on the
                      headers, which sit on a smooth gradient; much more on the
                      bottom bar, which has to cover busy cards and a blue band.
       --glass-blur   20px. Do not raise it — see the note on --bar-blur below.
       --glass-rim    the bright top edge. This is what actually makes a panel
                      read as glass rather than as a flat translucent rectangle,
                      and it was the piece missing before.
       --glass-glow   the blue inner shadow along the bottom, from Figma.
     Each bar then sets its own fill and lift. */
  --glass-blur:      20px;
  --glass-rim:       inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(255, 255, 255, .18);
  --glass-glow:      inset 0 -3px 16px rgba(0, 89, 255, .12);
  --header-glass:    rgba(255, 255, 255, .16);   /* desktop header pill */

  /* ——— Desktop header size ———————————————————————————————————————————————
     Four dials, each doing one job, so you can shorten the bar without making
     it narrower or shrink the text without moving anything else. Figma's own
     numbers are 1280 / 84 / 32 / 1 — these sit just under that.

       --header-width   how wide the pill is. Nothing else depends on it.
       --header-height  how tall. The vertical padding follows automatically,
                        and so does the hero's top spacing via --header-h.
       --header-pad-x   edge of the pill to the wordmark, and to the button.
       --header-type    size of every piece of text in the bar and the LinkedIn
                        icon, as a multiplier: 1 = Figma (20px wordmark, 15px
                        nav, 14px button, 16px icon), .92 = 8% smaller. The gap
                        between the nav items scales with it so the spacing
                        stays proportional to the type.

     Nudge one at a time in DevTools (select <html>, find them under :root,
     arrow-key the value) and paste what you like back here. */
  --header-width:    1280px;
  --header-height:   76px;
  --header-pad-x:    32px;
  --header-type:     .90;
  --header-top:      56px;                              /* top of the window → header pill */
  --header-overlap:  3px;                               /* hero tucks this far under the header; see .hero */
  --hero-gap-top:    clamp(40px, 100vh - 840px, 145px); /* header pill → headline */
  --hero-stack-gap:  clamp(24px, 4.6vh, 45px);          /* headline → copy → "Find out more" */
  --hero-logos-gap:  clamp(16px, 5vh, 54px);            /* CTA → "Experience from teams at:" */
  --hero-label-gap:  24px;                              /* that label → the logo row */
  --hero-bottom:     clamp(24px, 5.5vh, 60px);            /* logo row → bottom of the hero */

  /* ——— Logo marquee dials ——————————————————————————————————————————————
     --logo-gap    the space between two logos. The same value also spaces the
                   last logo of one copy of the row from the first logo of the
                   next, so the loop seam stays even — change it here and both
                   follow. Bigger number = more air between logos.
     --logo-scale  the overall size of every logo. 1 = drawn at its own size,
                   0.9 = 10% smaller, 1.1 = 10% bigger. It shrinks the box as
                   well as the picture, so the gaps stay proportional.
     Mobile has its own copy of both, in the mobile block near the bottom. */
  /* ——— Mobile bottom bar glass ——————————————————————————————————————————
     --bar-glass  how much white sits over the blurred backdrop. Lower = you see
                  more of the page through the bar; higher = a more solid panel.
     --bar-blur   how hard the page behind is smeared. 20px is the sweet spot and
                  NOT a value to raise: on a panel this short Chromium degrades
                  very large radii, so 40px blurs less than 20px does and 500px
                  (the number in the Figma effect) is no better than none at all.
                  Measured on the backdrop strip between the two items: no blur
                  leaves the text behind at stddev 19, 20px flattens it to 9,
                  40px slips back to 14 and 500px to 19. */
  --bar-glass:       var(--header-glass);   /* the bottom bar uses the header pill's glass */
                     /* .78 is set by the worst case, not the best one: for part of
                        the scroll the bar passes over the blue CTA band, and below
                        about .7 the panel goes mid-blue and the black "Barometer"
                        loses contrast. Over the cards .4 looks lovely — if you want
                        that, make the bar leave before it reaches the blue band by
                        lowering EXIT_OFFSET in index.html (vh - 373 today; about
                        vh - 90 hides it as Services ends). */
  --bar-blur:        var(--glass-blur);

  --logo-gap:        84px;   /* was 74px */
  --logo-scale:      1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; border: 0; background: none; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 4px;
  font: 600 14px var(--font-display);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(1240px + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

.dot { color: var(--blue); }

/* ---------- Buttons ---------- */
/* Figma states — default: solid blue + inner shadow; hover: white 1px border; active: light blue border */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; font-family: var(--font-display); font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t-fast);
}
.btn-primary {
  background: var(--blue); color: #fff; font-size: 14px; padding: 12px;
  border-radius: 9999px;
  border: 1px solid transparent;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, .25);
}
.btn-primary:hover { background: var(--blue-dark); border-color: #fff; }
.btn-primary:active { border-color: var(--blue-light); transform: translateY(1px); }

.btn-yellow {
  background: var(--yellow); color: var(--ink); font-size: 20px; padding: 16px 32px;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 rgba(0, 0, 0, .25);
}
.btn-yellow:hover { border-color: #fff; box-shadow: inset 0 0 12px rgba(0, 0, 0, .25); }
.btn-yellow:active { border-color: var(--yellow-light); transform: translateY(1px); }

/* ---------- Header ---------- */
/* Floating glass pill, per the sticky-header / header frames in Figma:
   80px side margins, 45px from the top, 1280 max width, fully rounded. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: transform 280ms var(--ease);
  padding: var(--header-top) 80px 0;
  background: none;
  pointer-events: none;
}
.header-inner {
  pointer-events: auto;
  max-width: var(--header-width); margin: 0 auto;
  min-height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
  gap: 84px;
  /* vertical padding keeps Figma's 12-at-84 ratio as the height changes */
  padding: calc(var(--header-height) * 12 / 84) var(--header-pad-x);
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  border-radius: 9999px;
  box-shadow: var(--glass-rim), var(--glass-glow), 0 2px 10px rgba(10, 30, 80, .04);
}
.nav-links { display: flex; align-items: center; gap: calc(24px * var(--header-type)); }
.brand { display: flex; align-items: center; }   /* no extra margin: Figma's nav-links frame gaps all four items by 18px */
.brand-word { font: 700 calc(20px * var(--header-type))/1.2 var(--font-display); letter-spacing: -0.5px; color: var(--blue); }
.brand-mark { display: none; }
/* Figma nav-bar-item states — ink, blue on hover, deep blue on click */
.nav-item {
  font: 500 calc(15px * var(--header-type)) var(--font-body); color: var(--ink);
  transition: color var(--t);
}
.nav-item:hover { color: var(--blue); }
.nav-item:active { color: #0039a4; }
.nav-icon { display: flex; color: var(--blue); transition: opacity var(--t); }
.nav-icon:hover { opacity: .8; }

/* Desktop: the header releases when the CTA band reaches the top, as the
   header-constraint frame in Figma ends where cta-section begins. */
.site-header.is-released { transform: translateY(-100%); }

/* The header button scales with the pill. Scoped to desktop so the mobile and
   floating-bar buttons keep their own sizes. */
@media (min-width: 721px) {
  .header-cta .btn-primary {
    font-size: calc(14px * var(--header-type));
    padding: calc(12px * var(--header-type));
  }
  .nav-icon svg { width: calc(16px * var(--header-type)); height: calc(16px * var(--header-type)); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: var(--hero-fill);
  display: flex; flex-direction: column; justify-content: space-between;
  /* The hero slides up under the transparent sticky header. --header-overlap is
     added to the pull AND to the padding, so the gradient starts a few pixels
     higher while the content stays exactly where it was. Without it, any
     rounding in the header's real height (the mobile pill lands on 67px, not
     the 66 its min-height asks for) leaves a hairline of white page behind the
     header — that was the white line at the very top on mobile. */
  margin-top: calc((var(--header-h) + var(--header-overlap)) * -1);
  padding: calc(var(--header-h) + var(--header-overlap) + var(--hero-gap-top)) 0 var(--hero-bottom);
  background:
    linear-gradient(128deg, rgba(126,162,255,.5) 7%, rgba(217,228,255,.5) 65%, rgba(237,242,255,.5) 97%),
    #f9fbff;
}
.hero-inner { display: flex; align-items: center; }
.hero-content { width: 577px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: var(--hero-stack-gap); position: relative; z-index: 1; }
.hero-title { font: 400 56px/1.1 var(--font-display); letter-spacing: -2px; color: var(--ink); }
.hero-desc { width: 512px; max-width: 100%; font: 400 22px/1.6 var(--font-display); color: var(--ink-2); }
.hero-desc p + p { margin-top: 6px; }
.hero-desc strong { color: var(--blue); font-weight: 700; }

/* Hero CTA — Figma nudges the arrow out on hover and further on click */
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 20px var(--font-display); color: var(--blue);
  transition: color var(--t);
}
.hero-cta-arrow { display: inline-block; transition: transform var(--t); }
.hero-cta:hover .hero-cta-arrow { transform: translateX(3px); }
.hero-cta:active .hero-cta-arrow { transform: translateX(6px); }

/* ---------- Blobs (animated, from Figma motion) ---------- */
.blob { position: absolute; border-radius: 50%; pointer-events: none; will-change: translate; }
.blob-blue {
  width: 280px; height: 270px; left: calc(50% - 720px + 771px); top: 66px;
  background: rgba(53, 42, 255, .29); filter: blur(100px);
  animation: blob-blue 20s linear infinite alternate;
}
.blob-yellow {
  width: 320px; height: 310px; left: calc(50% - 720px + 1094px); top: 433px;
  background: rgba(255, 217, 152, .4); filter: blur(56px);
  animation: blob-yellow 20s linear infinite alternate;
}
.blob-pink {
  width: 464px; height: 430px; left: calc(50% - 720px + 820px); top: 54px;
  background: rgba(242, 53, 255, .1); filter: blur(100px);
  animation: blob-pink 20s linear infinite alternate;
}
.blob-orange {
  width: 412px; height: 390px; left: calc(50% - 720px + 200px); top: 539px;
  background: rgba(255, 142, 94, .25); filter: blur(56px);
  animation: blob-orange 20s linear infinite alternate;
}
@keyframes blob-blue {
  0% { translate: -62px 423px; }
  14.655% { translate: 28.669px 123.957px; }
  30.08% { translate: 294.19px -4.638px; animation-timing-function: cubic-bezier(.5,0,.5,1); }
  30.087% { translate: 346.27px 140.583px; }
  50.061% { translate: 333.405px 440.938px; }
  75.49% { translate: -187px 350px; }
  100% { translate: -60px 420px; }
}
@keyframes blob-yellow {
  0% { translate: 0 0; }
  25% { translate: -60px 80px; }
  35.04% { translate: -403px 53px; }
  44.86% { translate: -454px -393px; }
  58.175% { translate: -28px -575px; }
  70% { translate: 90px 30px; }
  100% { translate: 0 0; }
}
@keyframes blob-pink {
  0% { translate: 0 0; }
  15% { translate: 2px 138px; }
  40% { translate: -238px 113px; animation-timing-function: ease-in-out; }
  55% { translate: -432px 34px; }
  80% { translate: -310px -129px; }
  100% { translate: 0 0; }
}
@keyframes blob-orange {
  0% { translate: -59px -101px; }
  35% { translate: 363px -175px; animation-timing-function: ease-in-out; }
  65% { translate: 304px 47px; }
  100% { translate: -58px -100px; }
}

/* ---------- Logo marquee (full-bleed: runs edge to edge of the window) ---------- */
.logos { margin-top: var(--hero-logos-gap); margin-bottom: 0; width: 100%; }
.marquee {
  display: flex; padding: 20px 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; }
/* paused while the viewer is scrolling or dragging the strip by hand */
.marquee-track {
  display: flex; align-items: center; gap: var(--logo-gap); flex-shrink: 0;
  padding-right: var(--logo-gap); height: 60px;   /* padding-right = gap: keeps the loop seam even */
}
/* Pause on hover only where there's a real cursor — on touch, :hover sticks after a tap */
/* hover pause is handled in script, alongside drag and scroll */
/* Sizes come from the logos-row in Figma, so each mark reads at the same visual weight */
.marquee-track .logo {
  zoom: var(--logo-scale);                        /* see --logo-scale at the top of this file */
  flex-shrink: 0; max-width: none; object-fit: contain;
  filter: grayscale(1) contrast(.9); opacity: .75; mix-blend-mode: luminosity;
}

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.eyebrow { font: 400 20px var(--font-mono); letter-spacing: 1.5px; color: var(--label); }
.section-title { font: 400 48px/1.2 var(--font-display); color: var(--ink); max-width: 604px; }
.section-sub { font: 400 20px/1.5 var(--font-display); color: var(--ink-2); max-width: 604px; }
.logos-label {
  font: 400 14px/1.5 var(--font-body); color: var(--muted);
  width: 100%; max-width: calc(1240px + var(--gutter) * 2);
  margin: 0 auto var(--hero-label-gap); padding: 0 var(--gutter);
}
.see-all {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 20px/1.6 var(--font-display); color: var(--blue);
  transition: color var(--t);
}
.see-all-arrow { display: inline-block; transition: transform var(--t); }
.see-all:hover { color: var(--blue-dark); }
.see-all:hover .see-all-arrow { transform: translateX(3px); }
.see-all:active .see-all-arrow { transform: translateX(6px); }

/* ---------- Successes ---------- */
.successes { background: #fff; padding: 74px 0; }
.case-grid {
  margin-top: 42px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 292px));
  gap: 24px; justify-content: center;
}
/* Figma card states — default grey border, hover blue, click 46% blue */
.case-card {
  position: relative;
  display: flex; flex-direction: column; min-height: 465px; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: border-color var(--t);
}
.case-card:hover { border-color: var(--blue); }
.case-card:active { border-color: rgba(0, 89, 255, .46); }
.case-media {
  position: relative; height: 263px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 7px; padding: 32px 24px 24px;
  color: #fff; overflow: hidden;
}
.case-card.is-bottom .case-media { justify-content: flex-end; }
.case-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.case-card:hover .case-media > img { transform: scale(1.04); }
.case-overlay { position: absolute; inset: 0; }
.case-overlay::before { content: ""; position: absolute; inset: 0; background: linear-gradient(175deg, rgba(0,89,255,.2) 15%, rgba(0,89,255,.09) 99%); mix-blend-mode: multiply; }
.is-top .case-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.6) 9%, rgba(30,30,30,.42) 45%, rgba(102,102,102,0) 70%); }
.is-bottom .case-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(102,102,102,0) 30%, rgba(30,30,30,.42) 62%, rgba(0,0,0,.6) 95%); }
.case-title { position: relative; font: 400 20px/1.25 var(--font-display); text-shadow: 0 4px 4px rgba(0,0,0,.25); }
/* Tag row: one pill on most cards, two where a project was delivered with a partner */
.case-tags { position: relative; align-self: flex-start; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--surface); color: var(--blue); border-radius: 4px; padding: 4px 8px;
  font: 700 11px var(--font-mono); text-transform: uppercase;
}
/* Co-brand pill — "Barometer. x StayCuriousAI" on the MentorCruise card */
/* `hidden` has to beat the display below, or the pill stays visible and clickable */
.tag-cobrand[hidden] { display: none; }
.tag-cobrand {
  display: inline-flex; align-items: center; gap: 4px;
  font: 700 11px var(--font-display); text-transform: none; letter-spacing: -.1px;
}
.cobrand-b { color: var(--blue); }
.cobrand-x { color: #4a4a4a; font-weight: 400; }
.cobrand-s { color: var(--teal); }
.case-body {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 24px 24px 32px;
}
.case-text { font: 400 14px/1.5 var(--font-body); color: var(--muted); transition: color var(--t); }
.case-card:hover .case-text { color: #1f1f1f; }
/* The card is not itself a link: this one is, and it stretches over the whole card.
   Anything that needs its own link (the StayCuriousAI credit) sits above it on z-index. */
.learn-more { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; font: 700 13px var(--font-display); color: var(--blue); }
.learn-more::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
/* :focus-within, not :has() — :has() re-runs selector matching over the card's
   whole subtree on every class change, which is the last thing a carousel that
   toggles .is-active while scrolling needs. */
.case-card:focus-within { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 2px; }
/* Inline links inside a card's body copy. z-index 2 lifts them above the
   stretched .learn-more overlay so they take the click instead of the card.
   .case-link is the default (brand blue on hover); .cobrand-mark is the partner
   variant that hovers to the StayCuriousAI teal. */
.case-link, .cobrand-mark {
  position: relative; z-index: 2; color: inherit;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color var(--t);
}
.case-link:hover { color: var(--blue); }
.cobrand-mark:hover { color: var(--teal); }
.case-link:active, .cobrand-mark:active { color: var(--blue-dark); }
/* Swipe physics: match the Services carousel.
   An Experience card holds a photo and a link stretched across the whole card;
   a Services card holds neither. On touch, a swipe that begins on a link or an
   image can be taken over by the browser's own drag / long-press handling,
   which cancels the scroll part-way through — the card stops dead mid-swipe.
   Turning both off leaves the carousel with nothing to compete with the pan,
   which is exactly the situation Services is already in. */
.case-card a, .case-card img { -webkit-user-drag: none; user-drag: none; }
.case-card { -webkit-touch-callout: none; }
.case-media > img { pointer-events: none; }

.learn-more img { transition: transform var(--t); }
.case-card:hover .learn-more img { transform: translateX(3px); }
.case-card:active .learn-more img { transform: translateX(6px); }

/* ---------- Services ---------- */
.services { position: relative; overflow: hidden; background: var(--tint); padding: 74px 0; }
.services .container { z-index: 1; }
.offer-grid {
  margin-top: 58px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 49px 33px;
}
/* Wide screens: lock the layout to 3 cards on the first row, 2 centred on the second.
   A 6-column grid does it — each card spans 2 columns, and cards 4 and 5 start at
   columns 2 and 4, which centres them under the row above. */
@media (min-width: 1140px) {
  .offer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .offer-card { width: auto; max-width: 355px; justify-self: center; grid-column: span 2; }
  .offer-card:nth-child(4) { grid-column: 2 / span 2; }
  .offer-card:nth-child(5) { grid-column: 4 / span 2; }
}
/* Figma service card states — default 1px grey, hover 2px blue→pink gradient border */
.offer-card {
  width: 355px; color: inherit;
  display: flex; flex-direction: column;
  background: #fff; border: 2px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .8);
  transition: border-color var(--t), background-image var(--t);
}
.offer-card:hover {
  border-color: transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(173deg, #83aeff 0%, #fbbdff 49.52%, #ffd792 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.offer-card:active { filter: brightness(.99); }
.offer-head {
  min-height: 182px; padding: 32px 32px 26px 20px;
  display: flex; flex-direction: column; gap: 8px;
  background: #fff;
}
.offer-num { font: 400 13px var(--font-card); letter-spacing: .65px; color: var(--blue); }
.offer-title { font: 400 28px/1.15 var(--font-card); color: var(--ink); }
.offer-desc { font: 400 16px/1.25 var(--font-card); color: var(--blue-deep); }
.offer-tags {
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  background: rgba(244, 246, 249, .8); padding: 20px 20px 24px;
}
.tag-row { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px 11px; }
/* Figma tag-pill states — border goes deep blue on hover */
.tag-pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font: 500 13px/1.6 var(--font-body); color: var(--ink);
  transition: border-color var(--t), background-color var(--t), transform var(--t-fast);
}
.tag-pill:hover { border-color: var(--blue-deep); }
.offer-card:hover .tag-pill { background: #fff; }
/* Figma arrow-cta — collapsed to the arrow, expands to "Enquire →" on hover */
.arrow-cta {
  align-self: flex-end;
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 0;
  background: var(--blue); color: #fff; border-radius: 13px; padding: 0 12px; min-height: 29px;
  font: 700 12px/1.6 var(--font-body);
  transition: gap var(--t);
}
.arrow-label {
  display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap;
  font: 700 12px var(--font-body); opacity: 0;
  transition: max-width var(--t), opacity var(--t);
}
.offer-card:hover .arrow-cta, .arrow-cta:hover, .arrow-cta:focus-visible { gap: 6px; }
.offer-card:hover .arrow-label, .arrow-cta:hover .arrow-label, .arrow-cta:focus-visible .arrow-label { max-width: 90px; opacity: 1; }
.arrow-cta:active { transform: translateY(1px); }

/* ---------- CTA ---------- */
.cta {
  min-height: 446px; display: flex; align-items: center; padding: 33px 0 30px;
  background: radial-gradient(50% 50% at 50% 50%, #001651 0%, #001752 24%, #002585 62%, #0033b7 100%);
  color: #fff;
}
.cta h2 { font: 400 48px/1.2 var(--font-display); max-width: 625px; }
.cta p { margin-top: 28px; font: 400 24px/1.3 var(--font-display); color: rgba(255,255,255,.8); max-width: 700px; }
.cta .btn { margin-top: 33px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--muted); padding: 80px 0 48px; }
.site-footer .container { display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { width: 311px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.footer-logo { font: 700 28px var(--font-display); letter-spacing: -.5px; color: #fff; }
.footer-brand p:last-child { font: 400 15px/1.6 var(--font-display); }
.footer-nav { display: flex; gap: 64px; }
.footer-nav div { display: flex; flex-direction: column; gap: 16px; font: 400 14px var(--font-body); align-items: flex-start; }
/* Figma footer link states — grey by default, white on hover, grey again on click */
.footer-nav a { color: var(--muted); transition: color var(--t); }
.footer-nav a:hover { color: #fff; }
.footer-nav a:active { color: var(--muted); }
/* Figma footer-nav-link-item — text and mark are grey, both turn white on hover, grey again on click */
.footer-linkedin { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.icon-linkedin { width: 16px; height: 16px; flex-shrink: 0; color: inherit; transition: color var(--t); }
.footer-linkedin:hover { color: #fff; }
.footer-linkedin:active { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer-heading { font: 500 14px var(--font-display); letter-spacing: 1px; color: #fff; }
.site-footer hr { width: 100%; border: 0; border-top: 1px solid #333; margin: 0; }
.footer-location { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.footer-copy { font-size: 14px; }

/* ---------- Mobile floating nav ---------- */
.floating-nav { display: none; }
/* Glass, per the floating-nav-bar component: a 10% white fill over a very heavy
   background blur (Figma's background-blur radius here is 500, not the 21 of the
   glass effect itself). The blur has to be big enough to turn card text behind the
   bar into a wash. The two dials are at the top of this file; read the note there
   before touching --bar-blur, because bigger is not better. */
.floating-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 70px;
  padding: 18px 20px;
  /* Same treatment as the mobile header pill: same fill, same filter, same
     shadow stack. Only the lift shadow is stronger, since this one floats over
     the page rather than sitting at the top of it. */
  background: var(--bar-glass);
  -webkit-backdrop-filter: blur(var(--bar-blur)) saturate(135%);
  backdrop-filter: blur(var(--bar-blur)) saturate(135%);
  border: 0;
  border-radius: 9999px;
  box-shadow: var(--glass-rim), inset 0 -3px 13.5px rgba(0, 89, 255, .12), 0 8px 28px rgba(0, 30, 90, .12);
}
.floating-brand {
  display: inline-flex; align-items: center; gap: 6px;
  font: 400 12px var(--font-display); color: #000;
  gap: 4px;
  transition: opacity var(--t);
}
.floating-brand .icon-linkedin { width: 14px; height: 14px; color: #0059ff; }
.floating-brand:hover { opacity: .7; }
.floating-book { font-size: 11px; padding: 10px; opacity: 1; }

/* Short laptop screens: the hero's vertical rhythm is fluid (see .hero), so only
   the display type needs stepping down to keep Experience peeking at the bottom */
@media (min-width: 721px) and (max-height: 880px) {
  .hero-title { font-size: 52px; }
  .hero-desc { font-size: 20px; }
}

@media (min-width: 721px) and (max-height: 800px) {
  .hero-title { font-size: 48px; }
  .hero-desc { font-size: 19px; }
  :root { --hero-label-gap: 14px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-title { font-size: 52px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  /* ——— Hero spacing dials, mobile ———————————————————————————————————
     Same idea as the block at the top of the file: one number per gap. These
     win over the desktop values on any screen 720px wide or narrower. (The
     Figma frame sits the pill 84px down to clear the Dynamic Island; a browser
     has no island to clear, so --header-top is the plain inset instead.) */
  :root {
    --gutter: 30px;
    --header-h: 92px;    /* header-top + pill height — keep these two in step */
    --header-glass:   rgba(255, 255, 255, .18);   /* mobile header pill */
    --hero-fill:      90vh;   /* auto = the gaps below are exact; a vh value fills the screen
                                 instead and parks the leftover in --hero-logos-gap */
    --header-top:     26px;   /* top of the window → header pill */
    --hero-gap-top:   15vh;   /* header pill → headline */
    --hero-stack-gap: 32px;   /* headline → copy → "Find out more" */
    --hero-logos-gap: 48px;   /* CTA → "Experience from teams at:" */
    --hero-label-gap: 20px;   /* that label → the logo row */
    --hero-bottom:    48px;   /* logo row → bottom of the hero */
  }
  .site-header { padding: var(--header-top) 16px 0; }
  .header-inner {
    min-height: 66px; padding: 15px 20px; border-radius: 30px; gap: 16px;
    /* same glass as everywhere else, with Figma's smaller glow on this pill */
    box-shadow: var(--glass-rim), inset 0 -3px 13.5px rgba(0, 89, 255, .12), 0 2px 10px rgba(10, 30, 80, .05);
  }
  .nav-item { display: none; }
  /* LinkedIn sits beside the wordmark here too, as it does on desktop. 14px to
     match the icon in the bottom bar; the padding/negative-margin pair gives it
     a 34px tap target without moving anything in the layout. */
  .nav-icon { display: flex; padding: 10px; margin: -10px; }
  .nav-icon svg { width: 14px; height: 14px; }
  .nav-links { gap: 10px; }
  .brand-word { font-size: 16px; }
  .brand { margin-right: 0; }
  .header-cta { display: flex; }
  .btn-primary { font-size: 11px; padding: 10px; }


  .hero-inner { min-height: 0; }

  .hero-title { font-size: 38px; }
  .br-desktop { display: none; }
  .hero-desc { font-size: 16px; width: 100%; }
  .hero-cta { font-size: 16px; }
  .see-all { font-size: 16px; }
  .logos { padding-left: 0; padding-right: 0; }
  .marquee { padding: 0; }
  /* ——— Logo marquee dials, mobile ——— same two numbers as the desktop block.
     --logo-gap: space between logos (and across the loop seam).
     --logo-scale: 0.9 draws every logo 10% smaller than on desktop. */
  :root { --logo-gap: 48px; --logo-scale: .9; }

  .blob-blue { left: -40px; top: 120px; }
  .blob-yellow { left: 160px; top: 420px; }
  .blob-pink { left: 20px; top: 40px; }
  .blob-orange { left: -120px; top: 400px; }

  .eyebrow { font-size: 14px; }
  .section-title { font-size: 34px; }
  .section-sub { font-size: 15px; }
  .logos-label { font-size: 12px; }
  .successes { padding: 74px 0 53px; }
  .services { padding: 74px 0 88px; }

  /* Horizontal carousels, as in the mobile Figma frame */
  .scroller {
    display: flex; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none;
    /* proximity, not mandatory: with mandatory the browser refuses to leave a
       snap point it can't replace, and the last card's snap position sat past
       the end of the scrollable range — a swipe towards it was simply bounced
       back, which read as the carousel sticking. */
    scroll-snap-type: x proximity;
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 16px; scroll-padding: 0 var(--gutter);
    /* and the trailing space that makes the last card's snap position reachable:
       enough room to its right for its left edge to sit at the gutter. */
    padding-right: max(var(--gutter), calc(100vw - 300px - var(--gutter)));
    gap: 24px;
  }
  .offer-grid.scroller { gap: 26px; }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > * { scroll-snap-align: start; flex: 0 0 auto; }
  .case-grid { margin-top: 31px; }
  .case-card { width: 300px; }
  .offer-grid { margin-top: 30px; }
  .offer-title { font-size: 24px; }
  .offer-desc { font-size: 14px; }
  .offer-card { width: 300px; }

  /* The card centred in a carousel wears its hover state, so swiping moves the
     treatment from one card to the next. .is-active is set by the script in
     index.html. Experience cards: blue border and the arrow nudged forward. */
  /* The blue state is painted by an overlay whose OPACITY changes, not by the
     card's own border-color. Changing border-color repaints the whole card —
     the photo, the gradient overlays, the shadowed title — and that repaint
     lands in the middle of the swipe that triggered it, which is where the
     scroll was stalling. An opacity change on a ring that has nothing inside it
     is handled by the compositor and costs the gesture nothing.
     The card's own border goes transparent here and both rings are drawn as
     inset shadows on pseudo-elements, so the two states can cross-fade. */
  .case-card { border-color: transparent; transition: none; }
  .case-card::before,
  .case-card::after {
    content: ""; position: absolute; inset: 0; z-index: 3;
    border-radius: 12px; pointer-events: none;
  }
  .case-card::before { box-shadow: inset 0 0 0 1px var(--line); }
  .case-card::after  { box-shadow: inset 0 0 0 1px var(--blue); opacity: 0; transition: opacity 180ms var(--ease); }
  .case-card.is-active::after { opacity: 1; }
  .case-card.is-active .learn-more img { transform: translateX(3px); }

  /* No blend group on a card that is being scrolled: mix-blend-mode makes the
     photo, the overlay and everything above it re-rasterise together on any
     repaint. Plain alpha gets within a hair of the same tint. */
  .case-overlay::before {
    mix-blend-mode: normal;
    background: linear-gradient(175deg, rgba(0, 76, 204, .17) 15%, rgba(0, 76, 204, .07) 99%);
  }

  /* Services cards: gradient border and the arrow expanded to "Enquire →". */
  .offer-card.is-active {
    border-color: transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(173deg, #83aeff 0%, #fbbdff 49.52%, #ffd792 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
  }
  .offer-card.is-active .tag-pill { background: #fff; }
  .offer-card.is-active .arrow-cta { gap: 6px; }
  .offer-card.is-active .arrow-label { max-width: 90px; opacity: 1; }

  .cta { min-height: 446px; padding: 33px 0 30px; }
  .cta .container { padding-left: 40px; padding-right: 40px; }
  .cta h2 { font-size: 34px; }
  .cta p { font-size: 17px; }
  .btn-yellow { font-size: 16px; padding: 14px 28px; }

  .site-footer { padding: 80px 0 48px; }
  .footer-top { flex-direction: column; }

  .floating-nav {
    display: block; position: fixed; z-index: 60;
    transition: transform 280ms var(--ease), opacity 200ms var(--ease);
    left: 24px; right: 24px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));   /* 24px sides: the Figma bar is 343 wide in a 390 frame */
  }
}

/* Mobile: both bars retreat on scroll down and come back on scroll up */
@media (max-width: 720px) {
  .site-header.is-hidden { transform: translateY(-100%); }
  .floating-nav.is-hidden { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  * { transition-duration: 1ms !important; }
}
