:root {
  --ink: #222;
  --ink-strong: #111;
  --line: #dadada;
  --bg: #fafafa;
  --pad: clamp(16px, 2.1vw, 40px);      /* nav + hero edges: 40px at 1920 */
  --pad-x: clamp(16px, 3.125vw, 60px);  /* section gutters: 60px at 1920 */
  --hero-bottom: clamp(24px, 4.9vw, 94px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  transition: background-color 0.15s linear, color 0.15s linear;
}

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

#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.15s linear;
}

main { position: relative; z-index: 1; }


/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--pad);
  pointer-events: none;
}
.nav-left { display: flex; gap: 8px; }
.btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 52px;
  padding: 8px 24px;
  border: 0;
  border-radius: 100px;
  background: rgba(17, 17, 17, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font: 500 14px/1.36 "Archivo", sans-serif;
  letter-spacing: -0.28px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}
.btn:hover { background: rgba(17, 17, 17, 0.45); }
.btn-icon { width: 52px; padding: 0; }

/* the menu button turns into a dark Close while the menu is open */
.btn-x { display: none; }
html.menu-open .btn-menu { background: #131313; }
html.menu-open .btn-menu img { display: none; }
html.menu-open .btn-menu .btn-x { display: block; }

/* ---------- menu (after journey-digital.com): dim the page, a light panel slides in on the menu's side ---------- */
.menu { position: fixed; inset: 0; z-index: 9; visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.6s; }
html.menu-open .menu { visibility: visible; pointer-events: auto; transition: none; }
.menu-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); opacity: 0; transition: opacity 0.45s ease; }
html.menu-open .menu-shade { opacity: 1; }
.menu-panel {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: clamp(340px, 29.75vw, 760px);   /* 571px at 1920, the width the user marked */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(52px + 16px + 56px) clamp(24px, 3vw, 56px) clamp(24px, 2.4vw, 40px);
  border-radius: 20px;
  background: #f2f2f2;
  color: #131313;
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.menu-open .menu-panel { opacity: 1; transform: none; }
.menu-links { list-style: none; margin: 0; padding: 0; }
.menu-links a {
  display: flex;
  align-items: center;
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  word-spacing: 0.08em;
}
/* hover: a dash grows in front and the word steps right */
.menu-dash { flex: none; width: 0; height: 0.1em; margin-right: 0; background: currentColor; transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), margin 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.menu-links a:hover .menu-dash, .menu-links a:focus-visible .menu-dash { width: 0.42em; margin-right: 0.08em; }
.menu-links a:focus-visible { outline: none; }
/* each word rises into its line, one after another */
.menu-line { display: block; overflow: hidden; padding-top: 0.06em; }
.menu-word { display: block; transform: translateY(105%); transition: transform 0.3s ease-in; }
html.menu-open .menu-word { transform: none; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) calc(0.15s + var(--i, 0) * 0.07s); }
.menu-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 500 clamp(13px, 1vw, 16px) / 1.2 "Archivo", sans-serif;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.25s ease;
}
html.menu-open .menu-foot { opacity: 1; transition: opacity 0.5s ease 0.5s; }
.menu-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .menu-panel { right: 8px; width: auto; padding-top: calc(44px + 16px + 48px); }
}
@media (prefers-reduced-motion: reduce) {
  .menu-panel, .menu-word, html.menu-open .menu-word { transform: none; transition-property: opacity; }
}

/* ---------- contact (after web-designlondon.co.uk/contact): the menu's twin, sliding in on the right ---------- */
/* "Let's talk" turns into a dark Close while it is open, like the menu button; js/contact.js builds the panel */
html.contact-open .btn-talk { background: #131313; }
html.contact-open .btn-talk .btn-x { display: block; }
.contact { position: fixed; inset: 0; z-index: 9; visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.6s; }
html.contact-open .contact { visibility: visible; pointer-events: auto; transition: none; }
.contact-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); opacity: 0; transition: opacity 0.45s ease; }
html.contact-open .contact-shade { opacity: 1; }
.contact-panel {
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 8px;
  width: clamp(380px, 38vw, 760px);
  display: flex;
  flex-direction: column;
  padding: calc(52px + 16px + 56px) clamp(24px, 3vw, 56px) clamp(24px, 2.4vw, 40px);
  border-radius: 20px;
  background: #f2f2f2;
  color: #131313;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.contact-panel:focus { outline: none; }
html.contact-open .contact-panel { opacity: 1; transform: none; }
.contact-title { margin: 0; font-weight: 500; font-size: clamp(40px, 4.2vw, 80px); line-height: 1; letter-spacing: -0.04em; }
/* the title rises into its line, then the rest follows one after another */
.contact-line { display: block; overflow: hidden; padding-top: 0.06em; }
.contact-word { display: block; transform: translateY(105%); transition: transform 0.3s ease-in; }
html.contact-open .contact-word { transform: none; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s; }
.contact-rise { opacity: 0; transform: translateY(18px); transition: opacity 0.2s ease, transform 0.3s ease-in; }
html.contact-open .contact-rise {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease calc(0.15s + var(--i, 0) * 0.06s), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) calc(0.15s + var(--i, 0) * 0.06s);
}
.contact-lead { margin: clamp(28px, 3vw, 56px) 0 0; font-size: clamp(20px, 1.6vw, 30px); line-height: 1.25; letter-spacing: -0.02em; }
.contact-lead a { display: inline-flex; align-items: baseline; gap: 0.3em; }
.contact-arrow { color: #2a2ce6; font-size: 0.7em; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.contact-lead a:hover .contact-arrow { transform: translateX(0.25em); }
.contact-direct { margin: clamp(16px, 1.6vw, 28px) 0 0; font-size: clamp(15px, 1vw, 18px); }
.contact-direct a:hover, .contact-lead a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the form fills the rest of the panel: underlined fields, e-mail and phone side by side, and Submit across the
   foot of the panel, as wide as the fields */
.contact-body { flex: 1 0 auto; display: flex; flex-direction: column; container-type: inline-size; }
.contact-form {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto 1fr;
  gap: clamp(20px, 1.8vw, 32px) clamp(14px, 1.2vw, 20px);
  margin-top: clamp(32px, 3vw, 56px);
}
.cf-wide { grid-column: 1 / -1; }
.cf-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cf-field input, .cf-field textarea {
  display: block;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #131313;
  border-radius: 0;
  background: transparent;
  color: #131313;
  font: 400 16px/1.4 "Archivo", sans-serif;
  resize: vertical;
  transition: border-color 0.25s;
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: #8a8a8a; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-bottom-color: #2a2ce6; }
/* phone: the country's dialling code, then the number, on one underline (js/contact.js). The code is the browser's
   own list, see-through over the code it shows, so a click anywhere on it opens the list. */
.cf-phone { display: flex; align-items: stretch; gap: 14px; border-bottom: 1px solid #131313; transition: border-color 0.25s; }
.cf-phone:focus-within { border-bottom-color: #2a2ce6; }
.cf-field.cf-phone input { border-bottom: 0; }
.cf-num { flex: 1; min-width: 0; }
.cf-code {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 400 16px/1.4 "Archivo", sans-serif;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 0.25s;
}
.cf-code:hover, .cf-code:focus-within { color: #2a2ce6; }
.cf-code-chevron { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.cf-code select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; appearance: none; }
/* a narrow panel (tablets, small laptops) gives e-mail and phone a line each: side by side, the phone's number had
   no room left beside its code */
@container (max-width: 400px) {
  .contact-form { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto 1fr; }
}
.cf-end { align-self: end; display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.cf-status { margin: 0; font-size: 14px; color: #555; }
.cf-status:empty { display: none; }
.cf-status a { color: #2a2ce6; text-decoration: underline; text-underline-offset: 3px; }
/* a field for bots only (js/contact.js): out of sight and out of the grid, never reached by Tab */
.cf-trap { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.cf-submit {
  width: 100%;
  height: 52px;
  padding: 0 22px;
  border: 1px solid #2a2ce6;
  border-radius: 999px;
  background: transparent;
  color: #2a2ce6;
  font: 500 14px "Archivo", sans-serif;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.cf-submit:hover, .cf-submit:focus-visible { background: #2a2ce6; color: #fff; outline: none; }
.cf-submit:disabled { cursor: progress; background: #2a2ce6; color: #fff; }
@media (max-width: 720px) {
  .contact-panel { left: 8px; width: auto; padding-top: calc(44px + 16px + 40px); }
  .contact-form { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-panel, .contact-word, .contact-rise, html.contact-open .contact-word, html.contact-open .contact-rise { transform: none; transition-property: opacity; }
}

/* ---------- hero ---------- */
/* the hero stays pinned for a while so the logo breaks over a long stretch of scroll */
.hero {
  position: relative;
  height: 250vh;
  cursor: pointer;
  user-select: none;
}
.hero-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  padding: clamp(96px, 7.08vw, 136px) var(--pad) var(--pad);
}
.hero h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(36px, 3.646vw, 70px);
  line-height: normal;
  letter-spacing: -0.0286em;
  color: var(--ink);
  pointer-events: none;
}

.chips {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero .chips { position: absolute; left: var(--pad); bottom: var(--hero-bottom); }
/* liquid glass, as in Figma (6369:247): a near-clear frosted pill with no outline, a faint grey where its rounded
   edge bends the light, and a soft shadow; js/chips.js adds the lens that bends what passes behind it */
.chips a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  backdrop-filter: blur(6px) saturate(160%);
  box-shadow:
    inset 0 0 6px rgba(0, 0, 0, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 6px rgba(0, 0, 0, 0.05);
  font: 500 14px/1.36 "Archivo", sans-serif;
  letter-spacing: -0.28px;
  color: #111;
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.3s ease, background 0.3s ease;
}
/* hover: the drop swells a little and clears; pressed, it gives */
.chips a:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 0 6px rgba(0, 0, 0, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 6px 10px rgba(0, 0, 0, 0.07);
}
.chips a:active { transform: scale(0.97); transition-duration: 0.15s; }
.chips a:focus-visible { outline: 2px solid #2a2ce6; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .chips a, .chips a:hover, .chips a:active { transform: none; } }
.hero-side {
  position: absolute;
  right: var(--pad);
  bottom: var(--hero-bottom);
  width: 214px;
  margin: 0;
  font-size: 20px;
  line-height: normal;
  pointer-events: none;
}

/* ---------- about ---------- */
.about { position: relative; height: 250vh; }
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.about-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: min(10.42vw, 20vh, 200px);
  /* the statement starts 200px from the top at 1920 wide, as in the design */
  padding: clamp(96px, 10.42vw, 200px) var(--pad-x) 0;
  pointer-events: none;
}
.about-big {
  margin: 0;
  max-width: 1800px;
  font-size: clamp(34px, 4.17vw, 80px);
  line-height: normal;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.about-big .w { opacity: 0.12; transition: opacity 0.35s ease; }
.about-big .w.on { opacity: 1; }
.about-small {
  margin: 0 0 0 auto;
  width: min(1048px, 100%);
  font-weight: 500;
  font-size: 20px;
  line-height: normal;
}
.about-small span { display: block; max-width: 310px; }

/* ---------- section 3: KORSA + portfolio ---------- */
/* the first 180vh is empty scroll while the shards form KORSA (drawn on the canvas);
   the portfolio then scrolls up over the wordmark.
   Everything here scales with the viewport width like KORSA does: --u is one design
   pixel of the 1920px-wide Figma frame. */
.work {
  --u: calc(100vw / 1920);
  position: relative;
  z-index: 2; /* its last screen scrolls over the drone shot, which is already pinned beneath */
  padding: 180vh var(--pad-x) calc(var(--u) * 300);
}
.work.can-break { cursor: pointer; }
.work-body {
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.work-col {
  position: relative;
  width: calc(var(--u) * 1048);
}
.work-head {
  margin: 0 0 calc(var(--u) * 40);
  padding-bottom: calc(var(--u) * 24);
  border-bottom: 1px solid #eee;
  font-size: max(16px, calc(var(--u) * 24));
  line-height: 0.667em; /* trimmed to the cap height, as in the design */
  letter-spacing: -0.02em;
  color: #cacaca;
}
.work-list { margin: 0 0 calc(var(--u) * 100); padding: 0; list-style: none; }
.work-item a {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 40);
  padding: calc(var(--u) * 4) 0;
}
.work-name {
  flex: 1;
  font-size: max(28px, calc(var(--u) * 64));
  line-height: 1.36;
  letter-spacing: -0.02em;
  color: #cacaca;
  transition: color 0.3s ease;
}
.work-tag {
  padding: calc(var(--u) * 6) calc(var(--u) * 12);
  border: 1px solid #dadada;
  border-radius: 50px;
  font-size: max(11px, calc(var(--u) * 14));
  line-height: 1.36;
  letter-spacing: -0.02em;
  color: #111;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.work-item.on .work-name { color: #111; }
.work-item.on .work-tag { opacity: 1; transform: none; }

/* the black arrow pill and the thumbnail follow the active row */
.work-arrow,
.work-thumb {
  position: absolute;
  top: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.work-arrow {
  left: calc(var(--u) * -96);
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 72);
  height: calc(var(--u) * 52);
  border-radius: 68px;
  background: #111;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 16px 24px rgba(0, 0, 0, 0.03);
}
.work-arrow img { width: calc(var(--u) * 24); height: auto; }
.work-thumb {
  left: 0;
  width: calc(var(--u) * 280);
  height: calc(var(--u) * 210);
  object-fit: cover;
  border-radius: calc(var(--u) * 8);
}
.btn-dark {
  background: #111;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 16px 24px rgba(0, 0, 0, 0.03);
}
.btn-dark:hover { background: #333; }
.work .btn-dark {
  height: max(40px, calc(var(--u) * 52));
  padding: 0 max(18px, calc(var(--u) * 24));
  font-size: max(12px, calc(var(--u) * 14));
}

/* ---------- section 4: the container storyboard ---------- */
/* ~8 screens of scroll drive the story; the canvas stays pinned meanwhile.
   It follows section 3 in plain scroll, on the same white: no transition between them. The story starts with
   the box hanging side on, turning round once as the view rises over it, then dropping (drone.js STORY_START =
   0.18): 820vh = 1000vh less the 180vh of studio views left out, so the rest keeps its pace and its place against
   section 5 (which is set from this section's end) */
.drone {
  position: relative;
  z-index: 1;
  height: 820vh;
}
.drone-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #fafafa;   /* the page's white (the storyboard's studio, Figma 6379-93595): straight on from section 3, no transition */
}
/* section 4's sticker reset (Figma 6290-247884): bottom left, the nav buttons' glass style */
.sticker-reset {
  position: fixed;
  left: var(--pad);
  bottom: 16px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.sticker-reset.on { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
.sticker-reset img { width: 24px; height: 24px; }
#droneGl { display: block; width: 100%; height: 100%; }

/* ---------- section 5: space showcase ---------- */
/* starts 550vh before section 4 ends, so it pins at drone t = SPACE_PIN (0.55, portal.js)
   and space is already there inside the container; JS clips it to the doorway until the drone flies in */
.space {
  position: relative;
  z-index: 1;
  height: 1750vh;
  margin-top: -550vh;
  color: #eef2ff;
  pointer-events: none;
}
.space-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
#spaceGl { display: block; width: 100%; height: 100%; }
/* the preview videos, laid over their screens in the scene by showcase.js (a perspective transform from
   this 1600×900 box onto the screen's corners), so they show at full sharpness in their own colours */
.space-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 1600px;
  height: 900px;
  object-fit: cover;
  transform-origin: 0 0;
  pointer-events: none;
  visibility: hidden;
  backface-visibility: hidden;
}
/* the container's shadow over the edges of the doorway */
.space-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.space-shade {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none;
}
@media (max-width: 720px) {
  .btn { height: 44px; padding: 6px 16px; font-size: 12px; }
  .btn-icon { width: 44px; padding: 0; }
  .hero-side { display: none; }
  .work-thumb, .work-arrow { display: none; }
  .work-col { width: 100%; }
  .work-item a { gap: 16px; }
}

/* ---------- theme flip (section 3 → 4), as on makepill.com ----------
   Once section 3 has scrolled away completely the page flips from light to dark with a quick linear
   fade (and back on the way up): the drone shot, pinned beneath, appears full screen; JS toggles
   html.theme-dark. */
html.theme-dark body { background: #031044; color: #fff; }
html.theme-dark #gl { opacity: 0; }
.work-head, .work .btn-dark { transition: color 0.15s linear, background-color 0.15s linear, border-color 0.15s linear; }
.work-tag { transition: color 0.15s linear, border-color 0.15s linear, opacity 0.3s ease, transform 0.3s ease; }
.work-arrow { transition: background-color 0.15s linear, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.work-arrow img { transition: filter 0.15s linear; }
html.theme-dark .work-head { color: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.14); }
html.theme-dark .work-name { color: rgba(255, 255, 255, 0.26); transition-duration: 0.15s; }
html.theme-dark .work-item.on .work-name { color: #fff; }
html.theme-dark .work-tag { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
html.theme-dark .work-arrow, html.theme-dark .work .btn-dark { background: #fff; color: #111; }
html.theme-dark .work-arrow img { filter: invert(1); }

/* ---------- section 6: numbers and recognition (Figma 6393-900) ---------- */
/* scales with the viewport like section 3: --u is one design pixel of the 1920px frame. Low down, under the
   badges, the deep blue begins that runs on through sections 7 and 8 (one gradient, #022855 → #8CD1FF over
   2390 design px, split at the sections' edges; its top melts out of the white) */
.stats {
  --u: calc(100vw / 1920);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 40);
  min-height: calc(var(--u) * 1280);
  padding: calc(var(--u) * 200) calc(var(--u) * 4) calc(var(--u) * 100);
  background:
    linear-gradient(#fff calc(var(--u) * 1101), rgba(255, 255, 255, 0) calc(var(--u) * 1155)),
    linear-gradient(#fff calc(var(--u) * 1044), #022855 calc(var(--u) * 1044), #10396a calc(var(--u) * 1280));
  color: #111;
}
.stats-cards { display: flex; gap: calc(var(--u) * 4); }
.stat {
  flex: 1 1 0;
  height: calc(var(--u) * 600);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--u) * 40);
  border-top: 1px solid #eee;
  border-radius: calc(var(--u) * 12);
  background: #f5f5f5;
}
.stat-num, .stat-label { margin: 0; line-height: 1.36; letter-spacing: -0.02em; white-space: nowrap; }
.stat-num { font-weight: 500; font-size: calc(var(--u) * 170); }
.stat-label { font-size: max(14px, calc(var(--u) * 20)); }
/* the row holds exactly two identical sets (each with its trailing gap), so sliding it by half its width
   lands the second set where the first began: an endless loop with no jump back */
.recog-track { margin: 0 calc(var(--u) * -4); overflow: hidden; } /* full bleed: badges glide in and out at the screen edges */
.recog-row { display: flex; width: max-content; animation: recog 45s linear infinite; }
.recog-track:hover .recog-row { animation-play-state: paused; }
.recog-set { display: flex; gap: calc(var(--u) * 4); padding-right: calc(var(--u) * 4); }
@keyframes recog { to { transform: translateX(-50%); } }
.badge {
  flex: 0 0 auto;
  width: calc(var(--u) * 297);
  height: calc(var(--u) * 300);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 4);
  padding: calc(var(--u) * 4);
  border-top: 1px solid #eee;
  border-radius: calc(var(--u) * 12);
  background: #f5f5f5;
}
.badge-logo {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 12);
  border-radius: calc(var(--u) * 8);
  background: #fff;
}
.badge figcaption {
  padding: calc(var(--u) * 12) 0;
  text-align: center;
  font-size: max(11px, calc(var(--u) * 16));
  line-height: 1.36;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
/* a badge with a page to show (its profile on that platform) is a link: it greys a touch under the cursor */
.badge-link { flex: 0 0 auto; display: block; color: inherit; text-decoration: none; border-radius: calc(var(--u) * 12); }
.badge-link .badge { transition: background-color 0.2s ease; }
.badge-link:hover .badge { background: #ebebeb; }
.badge-link:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.badge .app { width: calc(var(--u) * 110); height: calc(var(--u) * 110); border-radius: calc(var(--u) * 39); box-shadow: 0 calc(var(--u) * 4) calc(var(--u) * 4) rgba(0, 0, 0, 0.25); object-fit: cover; }
.badge .app-sm { width: calc(var(--u) * 87); height: calc(var(--u) * 87); border-radius: calc(var(--u) * 30); }
.badge .logo-instant { width: calc(var(--u) * 147); height: calc(var(--u) * 157); }
.badge .logo-pair { width: calc(var(--u) * 253); height: calc(var(--u) * 141); }
.badge .logo-dribbble { width: calc(var(--u) * 130); height: calc(var(--u) * 130); }
.badge .logo-times { width: calc(var(--u) * 39); height: calc(var(--u) * 40); }
@media (max-width: 720px) {
  .stats { gap: 24px; min-height: 0; padding: 72px 16px 120px;
    background: linear-gradient(#fff calc(100% - 110px), #022855 calc(100% - 110px), #10396a 100%); }
  .stats-cards { flex-direction: column; gap: 8px; }
  .stat { height: 220px; padding: 20px; border-radius: 12px; }
  .stat-num { font-size: 64px; }
  .recog-track { --u: 0.6px; margin: 0 -16px; }   /* (wide enough for the longest caption at 11px) */
}

/* ---------- section 7: call to action with the work ribbon (Figma 6393-969) ---------- */
.cta {
  --u: calc(100vw / 1920);
  position: relative;
  z-index: 1;
  height: 650vh;            /* pinned for 5.5 screens of scroll while the ribbon plays */
  background: #10396a;
  color: #fff;
}
/* its stretch of the blue: on from section 6's, on into the footer's */
.cta-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: linear-gradient(#10396a, #4b81af);
}
.cta-body {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(var(--u) * 100) calc(var(--u) * 40);
  text-align: center;
}
.cta-actions { display: flex; gap: 12px; }
/* Section 7's button, after the user's reference (Chris Gannon's "3D Cheerio Toggle Button", made in Spline): a clear
   glass pill with a soap-film rim and a Cheerio for its knob (drawn by js/cheerio.js into .cta-knob). On hover or
   focus the Cheerio rolls to the far end, cyan turning lime, and the label moves out of its way. As the cursor
   comes near, the glass swells out towards it where it is nearest and the whole button drifts after it: the glass
   is not the button's own box but an outline js/cheerio.js redraws (.cta-shape: SVG fill, rim, shadow and
   highlights, and .cta-blur for the frosting behind), so it can bulge past the box.
   js/cheerio.js sets --k (0 at rest … 1 rolled over). */
.btn.cta-btn {
  --h: max(68px, calc(var(--u) * 141));
  --k: 0;
  position: relative;
  isolation: isolate;
  width: calc(var(--h) * 4.3);
  height: var(--h);
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #fff;
  font-weight: 500;
  font-size: calc(var(--h) * 0.3);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: none;
  white-space: nowrap;
}
/* the glass outline's layers reach 0.85h past the button on every side, room for the swell */
.cta-shape, .cta-blur {
  position: absolute;
  left: calc(var(--h) * -0.85);
  top: calc(var(--h) * -0.85);
  width: calc(100% + var(--h) * 1.7);
  height: calc(100% + var(--h) * 1.7);
  overflow: visible;
  pointer-events: none;
}
/* behind the glass: no frosting; js/cheerio.js puts the lens here (an SVG displacement) where the browser can */
.cta-blur { z-index: 0; }
.cta-shape.back { z-index: 0; }
.cta-knob { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; pointer-events: none; }
.cta-label {
  position: relative;
  z-index: 2;
  transform: translateX(calc((0.5 - var(--k)) * var(--h)));
  text-shadow: 0 1px 10px rgba(2, 24, 60, 0.35);
  pointer-events: none;
}
.btn.cta-btn:active { --press: 0.97; }
.btn.cta-btn:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
/* ---------- section 8: the footer (Figma 6393-974) ---------- */
/* the last of the blue, KORSA with its reflection rippling in water, and the small print */
.site-footer {
  --u: calc(100vw / 1920);
  position: relative;
  z-index: 1;
  height: calc(var(--u) * 1125);
  background: linear-gradient(#4b81af, #8cd1ff);
  color: #fff;
}
.footer-mark {
  position: absolute;
  left: 50%; top: calc(var(--u) * 121);
  width: calc(var(--u) * 1803);
  height: auto;
  transform: translateX(-50%);
}
.footer-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--u) * 24) calc(var(--u) * 60);
  font-size: max(13px, calc(var(--u) * 20));
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.footer-copy { margin: 0; }
.footer-links { display: flex; gap: max(14px, calc(var(--u) * 24)); }
.footer-links a { color: inherit; text-decoration: none; font-weight: 500; line-height: 1.2; text-transform: uppercase; }
.footer-links a:hover { opacity: 0.75; }
@media (max-width: 720px) {
  .site-footer { height: auto; padding: 96px 16px 0; }
  .footer-mark { position: static; width: 100%; transform: none; }
  .footer-bar { position: static; flex-direction: column-reverse; gap: 12px; padding: 64px 0 24px; white-space: normal; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* the cards swoop in front of the button, so the canvas sits on top (clicks pass through to the button) */
#motionGl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 3; }
@media (max-width: 720px) {
  /* the band sits higher on a tall screen: lift the button above it */
  .cta-body { align-content: start; padding: 24vh 16px 0; }
  .cta-actions { gap: 8px; }
}
