/* Handsoncode.net — styled after handsontable.com (handsontable-v3 design
   system: src/styles/global.scss, sections/*). Plain CSS, no build step:
   the fluid type values are the compiled clamp() output of v3's
   fluid-knee() / fluid() functions. */

/* Fonts
----------------------------------*/
@font-face {
  font-family: Exposure;
  src: url('/fonts/exposure/exposure.woff2') format('woff2'), url('/fonts/exposure/exposure.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Exposure;
  src: url('/fonts/exposure/exposure-italic.woff2') format('woff2'), url('/fonts/exposure/exposure-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Aeonik;
  src: url('/fonts/aeonik/aeonik-regular.woff2') format('woff2'), url('/fonts/aeonik/aeonik-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Aeonik;
  src: url('/fonts/aeonik/aeonik-medium.woff2') format('woff2'), url('/fonts/aeonik/aeonik-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Tokens
----------------------------------*/
:root {
  color-scheme: light;

  --font-sans: 'Aeonik', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Exposure', ui-serif, georgia, 'Times New Roman', serif;

  --text-h1: clamp(34px, max(30px + 1.25vw, 3.333vw), 64px);
  --text-h2: clamp(26px, max(23.14px + 0.893vw, 2.5vw), 48px);
  --text-h3: clamp(22px, max(20.57px + 0.446vw, 1.875vw), 36px);
  --text-h4: clamp(20px, max(19.71px + 0.089vw, 1.458vw), 28px);
  --text-h5: clamp(20px, max(20px, 8px + 0.833vw), 24px);
  --leading-h1: clamp(36px, max(30px + 1.875vw, 3.958vw), 76px);
  --leading-h2: clamp(32px, max(28.57px + 1.071vw, 2px + 2.917vw), 58px);
  --leading-h3: clamp(28px, max(25.71px + 0.714vw, 2.5vw), 48px);
  --leading-h4: clamp(28px, max(28px, 4px + 1.667vw), 36px);
  --leading-h5: clamp(28px, max(28px, 16px + 0.833vw), 32px);
  --tracking-headline: -0.5px;
  --tracking-body: 0.3px;
  --tracking-small: 0.5px;
  --transition-base: 0.2s ease-in-out;

  --color-blue-50: #d8e6fd;
  --color-blue-200: #6ca1f8;
  --color-blue-500: #1a42e8;
  --color-green-300: #c3ff96;
  --color-green-400: #acf773;
  --color-gray-50: #f7f7f9;
  --color-gray-100: #e6e6e6;
  --color-gray-200: #ccc;
  --color-gray-400: #999;
  --color-gray-600: #666;
  --color-gray-700: #4d4d4d;
  --color-gray-800: #333;
  --color-gray-950: #141414;
  --color-brand-blue: var(--color-blue-500);
  --gradient-01: linear-gradient(118deg, #1a42e8 1.2%, #adffa4 58.7%, #aee81a 101%);

  --surface: #fff;
  --surface-raised: var(--color-gray-50);
  --ink: var(--color-gray-800);
  --ink-strong: var(--color-gray-950);
  --ink-muted: var(--color-gray-600);
  --rule: var(--color-gray-100);
  --accent: var(--color-brand-blue);
  --focus-ring: var(--color-brand-blue);

  --page-max: 1920px;
  --page-bleed: max(0px, calc((100vw - var(--page-max)) / 2));
  --page-inset: calc(var(--page-bleed) + 1rem);
  --header-height: calc(6rem + 1px);
  --stack-gap: clamp(16px, 11.43px + 1.429vw, 32px);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
}

@media (width < 1200px) {
  :root {
    --page-inset: clamp(16px, -2.29px + 5.714vw, 24px);
    --header-height: calc(64px + 1px);
  }
}

/* Base
----------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: var(--header-height);
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, dl, dd, figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
::selection {
  background: #000;
  color: #fff;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:root[data-menu-open] {
  overflow: hidden;
}

/* Shared type
----------------------------------*/
.label {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: var(--tracking-small);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: var(--tracking-small);
  text-transform: uppercase;
  background: var(--color-gray-100);
  color: var(--color-gray-600);
}
.headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-headline);
  color: var(--ink-strong);
}
.headline[data-size='h1'] {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
}
.headline .emphasis {
  position: relative;
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
}
/* The glow frame: a 2px gradient ring around the emphasised words. */
.headline .emphasis[data-variant='glow'] {
  padding: 0 12px 8px;
}
.headline .emphasis[data-variant='glow']::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: var(--gradient-01);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.lead {
  font-size: var(--text-h5);
  line-height: var(--leading-h5);
  color: var(--ink-strong);
}

/* Button: the dot grows into an arrow square on hover; the primary one
   fills with a blurred brand-blue glow.
----------------------------------*/
.button {
  --lead-icon: 24px;
  --arrow-cycle: 40px;
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 48px;
  gap: 20px;
  padding-inline: 20px 30px;
  overflow: hidden;
  vertical-align: top;
  transition: gap var(--transition-base), padding var(--transition-base), background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}
.button:hover {
  gap: 14px;
  padding-inline: 6px 20px;
}
.button-label {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: var(--tracking-body);
  white-space: nowrap;
}
.button-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  overflow: hidden;
  transition: width var(--transition-base), height var(--transition-base), background-color var(--transition-base);
}
.button-dot svg {
  position: absolute;
  width: var(--lead-icon);
  height: var(--lead-icon);
  transform: translateX(calc(-1 * var(--arrow-cycle)));
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.button:hover .button-dot {
  width: 38px;
  height: 38px;
}
.button:hover .button-dot svg {
  transform: translateX(0);
  opacity: 1;
}
.button-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: var(--color-brand-blue);
  filter: blur(75px);
  transform: translate(calc(-50% + 640px), -50%);
  transition: transform 0.4s ease-in-out;
  pointer-events: none;
}
.button:hover .button-glow {
  transform: translate(-50%, -50%);
}
@media (hover: none) {
  .button-glow {
    display: none;
  }
}
.button[data-variant='primary'] {
  background: #000;
  color: #fff;
}
.button[data-variant='primary'] .button-dot {
  background: #fff;
}
.button[data-variant='primary']:hover .button-dot {
  background: rgb(255 255 255 / 20%);
  color: #fff;
}
.button[data-variant='secondary'] {
  border-top: 1px solid var(--rule);
  padding-bottom: 1px;
  color: #000;
}
.button[data-variant='secondary'] .button-dot {
  background: #000;
}
.button[data-variant='secondary']:hover {
  border-top-color: transparent;
  background: color-mix(in srgb, #000 5%, transparent);
}
.button[data-variant='secondary']:hover .button-dot {
  background: color-mix(in srgb, #000 10%, transparent);
}
.button[data-size='m'] {
  --lead-icon: 20px;
  --arrow-cycle: 36px;
  height: 40px;
  gap: 16px;
  padding-inline: 16px 24px;
}
.button[data-size='m'] .button-label {
  font-size: 14px;
}
.button[data-size='m'] .button-dot {
  width: 6px;
  height: 6px;
}
.button[data-size='m']:hover {
  gap: 10px;
  padding-inline: 6px 16px;
}
.button[data-size='m']:hover .button-dot {
  width: 30px;
  height: 30px;
}
.button[data-size='xl'] {
  --lead-icon: 32px;
  --arrow-cycle: 48px;
  width: 100%;
  height: 96px;
  padding-inline: 42px;
}
.button[data-size='xl']:hover {
  padding-inline: 42px;
}
.button[data-size='xl'] .button-dot {
  position: absolute;
  top: 50%;
  left: 42px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  transition: left var(--transition-base), width var(--transition-base), height var(--transition-base), background-color var(--transition-base);
}
.button[data-size='xl']:hover .button-dot {
  left: 10px;
  width: 76px;
  height: 76px;
}
.button[data-size='xl'] .button-label {
  font-size: var(--text-h5);
  line-height: var(--leading-h5);
}

/* Text link with an underline that grows from the left. */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentcolor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.link:hover::after {
  transform: scaleX(1);
}
.link svg {
  width: 16px;
  height: 16px;
}

/* Header
----------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--surface) 0%, transparent);
  transition: background-color 0.3s ease-out, backdrop-filter 0.3s ease-out;
  pointer-events: none;
}
.site-header[data-scrolled]::before {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header .inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  max-width: var(--page-max);
  min-height: calc(var(--header-height) - 1px);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
/* The Handsoncode logo file is white (it was drawn for the old dark video
   hero); brightness(0) turns it black on the light header. */
.site-logo img {
  display: block;
  width: 175px;
  height: 25px;
  filter: brightness(0);
}
.site-nav {
  position: absolute;
  inset-block: 0;
  left: 50%;
  display: flex;
  align-items: stretch;
  gap: var(--space-8);
  transform: translateX(-50%);
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  line-height: 20px;
  color: var(--ink-muted);
  transition: color var(--transition-base);
}
.site-nav a svg {
  width: 16px;
  height: 16px;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink-strong);
}
.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.site-header .actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle-box {
  position: absolute;
  inset: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding-inline: 8px;
  background: var(--ink-strong);
}
.menu-toggle-box span {
  height: 1px;
  background: var(--surface);
  transition: transform var(--transition-base);
}
.menu-toggle:hover .menu-toggle-box span:nth-child(2) {
  transform: scaleX(0.5);
}
.mobile-menu {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-6) var(--page-inset);
  background: var(--surface);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu ul a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  color: var(--ink-strong);
}
.mobile-menu ul a svg {
  width: 20px;
  height: 20px;
}
.mobile-menu .button {
  width: 100%;
}

@media (width < 1200px) {
  .site-header .inner {
    padding-inline: var(--page-inset);
  }
  .site-logo img {
    width: 140px;
    height: 20px;
  }
  .site-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}
@media (width < 768px) {
  .bar-cta {
    display: none;
  }
}
@media (width >= 1200px) {
  .mobile-menu {
    display: none;
  }
}

/* Page rails: the 1px vertical lines that frame the page on desktop.
----------------------------------*/
.rails {
  position: relative;
}
@media (width >= 1200px) {
  .rails::before,
  .rails::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--rule);
    pointer-events: none;
  }
  .rails::before {
    left: var(--page-inset);
  }
  .rails::after {
    right: var(--page-inset);
  }
}

/* Home hero
----------------------------------*/
.hero-band {
  display: flex;
  align-items: stretch;
  min-height: calc(100svh - var(--header-height) - 113px);
  border-bottom: 1px solid var(--rule);
}
.hero-headline {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  min-width: 0;
  padding: var(--space-16) var(--space-8) var(--space-16) calc(var(--page-inset) + var(--space-8));
}
.hero-aside {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-6);
  padding: var(--space-6);
  padding-right: calc(var(--space-6) + var(--page-bleed));
  border-left: 1px solid var(--rule);
}
.hero-visual {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 16rem;
}
.hero-visual img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero-tail {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.hero-sub {
  max-width: 34rem;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}
@media (width < 1200px) {
  .hero-band {
    flex-direction: column;
    min-height: 0;
  }
  .hero-headline {
    padding: var(--space-16) var(--page-inset) var(--stack-gap);
  }
  .hero-aside {
    padding: var(--space-6) var(--page-inset);
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .hero-visual {
    flex: none;
    min-height: 0;
  }
  .hero-visual img {
    flex: none;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Clients band: a quiet belt of logos under the hero.
----------------------------------*/
.clients-band {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) var(--page-inset);
  border-bottom: 1px solid var(--rule);
}
.clients-band .label {
  flex-shrink: 0;
  padding-left: var(--space-8);
}
.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track {
    animation: marquee 40s linear infinite;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.marquee-track li {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: 64px;
  margin-inline-end: var(--space-20);
}
.marquee-track img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(40px * 228 / 64);
  max-height: 40px;
  opacity: 0.4;
}
@media (width < 768px) {
  .clients-band {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .clients-band .label {
    padding-left: 0;
  }
  .marquee {
    width: 100%;
  }
}

/* Sections
----------------------------------*/
.section {
  padding: var(--space-20) calc(var(--page-inset) + var(--space-8));
  border-bottom: 1px solid var(--rule);
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  max-width: 48rem;
  margin-bottom: var(--space-12);
}
.section-body {
  color: var(--ink-muted);
}
@media (width < 1200px) {
  .section {
    padding: var(--space-16) var(--page-inset);
  }
}

/* Product cards
----------------------------------*/
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-8);
  background: var(--surface-raised);
  border: 1px solid var(--rule);
}
.product-card[data-tone='dark'] {
  --ink: #fff;
  --ink-muted: var(--color-gray-400);
  --rule: rgb(255 255 255 / 10%);
  background: var(--color-gray-950);
  color: #fff;
}
/* The .datagrid / .hyperformula wordmarks ship in brand blue; like v3's
   ProductPitch they are monochromed per tone: black on light, white on dark. */
.product-mark {
  align-self: flex-start;
  width: auto;
  height: 32px;
  filter: brightness(0);
}
.product-card[data-tone='dark'] .product-mark {
  filter: brightness(0) invert(1);
}
@media (width < 768px) {
  .product-mark {
    height: 24px;
  }
}
.product-card p {
  flex: 1;
  max-width: 34rem;
  color: var(--ink-muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.product-card[data-tone='dark'] .tag {
  background: var(--color-gray-800);
  color: var(--color-gray-200);
}
.product-card .link {
  align-self: flex-start;
  color: var(--ink);
}
.product-card[data-tone='light'] .link {
  color: var(--ink-strong);
}
@media (width < 1024px) {
  .products {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: var(--space-6);
  }
}

/* EU funds band: the logo set every page carries for the grants.
----------------------------------*/
.eu-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) calc(var(--page-inset) + var(--space-8));
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.eu-band img {
  display: block;
  width: min(600px, 100%);
  height: auto;
}
.eu-band .link {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-strong);
}
@media (width < 1200px) {
  .eu-band {
    padding-inline: var(--page-inset);
  }
}

/* CTA
----------------------------------*/
.cta-section {
  position: relative;
  overflow: hidden;
  margin: var(--space-20) var(--page-inset);
  padding: 3.75rem;
}
.cta-wash {
  position: absolute;
  inset: 0;
  background: var(--gradient-01);
  background-size: 200% 100%;
  filter: blur(60px);
  opacity: 0.55;
  transform: scale(1.2);
}
.cta-readability {
  position: absolute;
  left: -15%;
  top: -60%;
  width: 90%;
  height: 220%;
  background: radial-gradient(closest-side, rgb(255 255 255 / 96%) 45%, rgb(255 255 255 / 0%) 100%);
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-20);
  min-height: 28rem;
}
.cta-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-12);
  max-width: 55rem;
}
.cta-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 27.5rem;
  flex-shrink: 0;
}
@media (width < 1200px) {
  .cta-section {
    padding: var(--space-6) var(--page-inset);
  }
  .cta-inner {
    flex-direction: column;
    gap: var(--stack-gap);
    min-height: 0;
  }
  .cta-copy {
    gap: var(--stack-gap);
  }
  .cta-aside {
    width: 100%;
  }
}
@media (width < 768px) {
  .button[data-size='xl'] {
    height: 72px;
  }
}

/* Page hero (About us, EU grants)
----------------------------------*/
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--rule);
}
.page-hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-6);
  padding: 7.5rem var(--space-8) 7.5rem calc(var(--page-inset) + var(--space-8));
}
.page-hero-aside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--rule);
}
.statement {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-8);
}
.statement + .statement {
  border-left: 1px solid var(--rule);
}
.page-hero-aside .anchors {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.anchors a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--rule);
  font-size: var(--text-h5);
  line-height: var(--leading-h5);
  color: var(--ink-strong);
  transition: background-color var(--transition-base);
}
.anchors a:hover {
  background: var(--surface-raised);
}
.anchors a .label {
  flex-shrink: 0;
}
@media (width < 1200px) {
  .page-hero {
    grid-template-columns: 1fr;
  }
  .page-hero-main {
    padding: var(--space-16) var(--page-inset) var(--stack-gap);
  }
  .page-hero-aside {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .statement {
    padding: var(--space-6) var(--page-inset);
  }
  .anchors a {
    padding-inline: var(--page-inset);
  }
}
@media (width < 768px) {
  .page-hero-aside {
    grid-template-columns: 1fr;
  }
  .statement + .statement {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}

/* About: "Who we are" — the intro on the left, the product cards on a
   gradient wash on the right (v3 AboutProducts).
----------------------------------*/
.about-products {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-inline: var(--page-inset);
}
.about-products-wash {
  position: absolute;
  z-index: -1;
  inset: 10% 5% 10% 35%;
  background: var(--gradient-01);
  filter: blur(150px);
  opacity: 0.3;
  pointer-events: none;
}
.about-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.about-products-intro {
  padding: var(--space-20) var(--space-12);
}
.about-products-lead {
  margin-top: var(--space-6);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  font-weight: 500;
  color: var(--ink-strong);
}
.about-products-body {
  margin-top: var(--space-6);
  color: var(--ink-muted);
}
.about-products-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-20) var(--space-12) var(--space-20) 0;
}
.about-products-eyebrow {
  color: var(--ink-muted);
}
/* On the wash the cards go translucent, as v3's ProductPitch does. */
.products-section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}
.about-products .product-card[data-tone='light'],
.products-section .product-card[data-tone='light'] {
  background: rgb(255 255 255 / 90%);
  border: 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.about-products .product-card[data-tone='dark'],
.products-section .product-card[data-tone='dark'] {
  background: rgb(0 0 0 / 80%);
  border: 0;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}
@media (width >= 1600px) {
  .about-products-intro {
    padding: var(--space-20) calc(var(--space-20) * 3.5) var(--space-20) var(--space-20);
  }
}
@media (width < 1200px) {
  .about-products-grid {
    grid-template-columns: 1fr;
    border: 0;
  }
  .about-products-intro {
    padding: var(--space-16) 0 0;
  }
  .about-products-cards {
    padding: var(--space-12) 0 var(--space-16);
  }
}

/* About: core values — a ruled band of four equal columns, the first one
   the heading (v3 AboutValues).
----------------------------------*/
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-inline: var(--page-inset);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.values-cell {
  padding: var(--space-20) var(--space-12);
  border-left: 1px solid var(--rule);
}
.values-cell:last-child {
  border-right: 1px solid var(--rule);
}
.values-label {
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  font-weight: 500;
  color: var(--ink-strong);
}
.values-title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-h5);
  line-height: var(--leading-h5);
  font-weight: 500;
  color: var(--ink-strong);
}
.values-body {
  color: var(--ink-muted);
}
@media (width >= 1600px) {
  .values-cell {
    padding-inline: var(--space-20);
  }
}
@media (width < 1024px) {
  .values {
    grid-template-columns: 1fr;
  }
  .values-cell {
    padding: var(--space-10) 0;
    border-top: 1px solid var(--rule);
    border-right: 0;
    border-left: 0;
  }
  .values-cell:first-child {
    padding-top: var(--space-16);
    border-top: 0;
  }
  .values-cell:last-child {
    border-right: 0;
  }
}

/* EU grants
----------------------------------*/
.grant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--space-8) var(--space-16);
  padding: var(--space-20) calc(var(--page-inset) + var(--space-8));
  border-bottom: 1px solid var(--rule);
}
.grant-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.grant-head h2 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  font-weight: 500;
  letter-spacing: var(--tracking-headline);
  color: var(--ink-strong);
}
.grant-logos {
  grid-column: 2;
  width: 100%;
  height: auto;
  padding: var(--space-4);
  border: 1px solid var(--rule);
  background: #fff;
}
.grant-project {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.grant-project + .grant-project {
  padding-top: var(--space-8);
  border-top: 1px dashed var(--color-gray-200);
}
.facts {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}
.facts dt,
.facts dd {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  padding-right: var(--space-6);
  font-size: 12px;
  line-height: 24px;
  letter-spacing: var(--tracking-small);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.facts dd {
  color: var(--ink-strong);
}
.facts dd ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.facts dd li {
  display: flex;
  gap: var(--space-3);
}
.facts dd li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--accent);
}
.grant-note {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}
.grant-note .link {
  color: var(--ink-strong);
}
@media (width < 1200px) {
  .grant {
    padding: var(--space-16) var(--page-inset);
  }
}
@media (width < 1024px) {
  .grant {
    grid-template-columns: 1fr;
  }
  .grant-logos,
  .grant-project {
    grid-column: 1;
  }
}
@media (width < 640px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .facts dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

/* Footer
----------------------------------*/
.site-footer {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff;
  --focus-ring: var(--color-blue-200);
}
.site-footer ::selection {
  background: var(--color-gray-700);
  color: #fff;
}
.footer-glow {
  position: absolute;
  left: 25%;
  bottom: -450px;
  width: 100%;
  height: 480px;
  background: var(--gradient-01);
  background-size: 300% 100%;
  filter: blur(140px);
  opacity: 0.8;
  transform: rotate(-4deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .footer-glow {
    animation: footer-glow 12s ease-in-out infinite alternate;
  }
}
@keyframes footer-glow {
  to {
    background-position: 100% 0;
  }
}
.footer-band {
  position: relative;
  padding-inline: calc(var(--page-inset) + var(--space-8));
}
.footer-contact {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12) var(--space-8);
  padding-block: var(--space-16) var(--space-20);
}
.footer-zone .label {
  margin-bottom: 1.875rem;
  color: var(--color-gray-400);
}
.footer-logo {
  display: block;
  width: 175px;
  height: 25px;
  margin-bottom: var(--space-8);
}
.email {
  display: inline-flex;
  flex-direction: column;
  transition: color var(--transition-base);
}
.email-roll {
  display: flex;
  flex-direction: column;
  height: 2.5rem;
  overflow: hidden;
}
.email-roll > span {
  height: 2.5rem;
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform var(--transition-base);
}
.email-underline {
  display: block;
  height: 2px;
  margin-top: 2px;
  background: currentcolor;
}
.email:hover {
  color: var(--color-blue-200);
}
.email:hover .email-roll > span {
  transform: translateY(-2.5rem);
}
.address {
  font-size: 14px;
  line-height: 24px;
  letter-spacing: var(--tracking-small);
  font-style: normal;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}
.footer-links a {
  padding-block: 4px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: var(--tracking-small);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
  padding-block: 2.25rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
}
.footer-legal .label {
  color: var(--color-gray-400);
}
.footer-legal nav {
  display: flex;
  gap: var(--space-8);
}
.footer-legal nav a {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: var(--tracking-small);
  text-transform: uppercase;
  color: var(--color-gray-400);
}
.footer-legal nav a:hover {
  color: #fff;
}
@media (width < 1200px) {
  .footer-band {
    padding-inline: var(--page-inset);
  }
}
@media (width < 768px) {
  .footer-contact {
    grid-template-columns: 1fr;
  }
  .email-roll,
  .email-roll > span {
    height: 2rem;
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .email:hover .email-roll > span {
    transform: translateY(-2rem);
  }
}
.facts dd > ul:not(:first-child) {
  margin-top: var(--space-2);
}
