/* ==========================================================================
   Notyga — Data Intelligence
   Design system and page styles.

   Palette rule: a single hue family taken from the logo ink (#006401) plus
   warm neutrals. No second brand colour is introduced anywhere.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand green, sampled from the logo file, and its tints/shades. */
  --green-900: #04240e;
  --green-800: #04380f;
  --green-700: #005200;
  --green-600: #006401; /* brand */
  --green-500: #14791b;
  --green-300: #8bbb90;
  --green-200: #c6dfc7;
  --green-100: #e7f1e7;
  --green-050: #f3f8f3;

  /* Neutrals, very slightly warmed so the green never reads cold. */
  --ink: #101611;
  --ink-soft: #384038;
  --muted: #5d685e;
  --line: #e3e7e3;
  --line-strong: #cfd6cf;
  --paper: #ffffff;
  --paper-2: #f8faf8;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono",
    Menlo, Consolas, monospace;

  /* Fluid type scale */
  --fs-display: clamp(2.75rem, 1.35rem + 5.9vw, 7rem);
  --fs-h2: clamp(2rem, 1.25rem + 3.1vw, 3.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-lede: clamp(1.0625rem, 0.98rem + 0.45vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* Rhythm */
  --section-y: clamp(5rem, 3rem + 9vw, 10.5rem);
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --maxw: 1240px;
  --maxw-text: 62ch;

  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

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

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

::selection {
  background: var(--green-600);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -120%;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--green-600);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 500;
  border-radius: 0 0 10px 10px;
  transition: translate 0.2s var(--ease);
}

.skip-link:focus-visible {
  translate: -50% 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tint {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.section--dark {
  background: var(--green-900);
  color: #fff;
}

/* Section header: mono eyebrow, large heading, optional lede. */
.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section--dark .eyebrow {
  color: var(--green-300);
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.05;
  text-wrap: balance;
}

.section-head h2 {
  font-size: var(--fs-h2);
  max-width: 20ch;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--muted);
  max-width: 54ch;
  text-wrap: pretty;
}

.section--dark .lede {
  color: var(--green-200);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--green-600);
  --btn-fg: #fff;
  --btn-bd: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 100px;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  --btn-bg: var(--green-700);
  --btn-bd: var(--green-700);
  transform: translateY(-1px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--green-050);
  --btn-fg: var(--green-700);
  --btn-bd: var(--green-300);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--green-900);
  --btn-bd: #fff;
}

.btn--light:hover {
  --btn-bg: var(--green-100);
  --btn-bd: var(--green-100);
}

/* Sized on .arrow itself, not scoped to .btn: an inline SVG with no width or
   height attribute otherwise falls back to the 300x150 default and blows out
   whatever flex row it sits in. */
.arrow {
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow,
.link:hover .arrow {
  transform: translateX(3px);
}

/* Quiet text link with an animated underline. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green-600);
  font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}

.link:hover {
  background-size: 100% 1px;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  flex: none;
  display: block;
  padding-block: 0.35rem;
}

/* Full logo (motif + wordmark + tagline), kept whole as supplied. */
.brand img {
  height: 3rem;
  width: auto;
}

/* Desktop: nav row and actions sit on one line, pushed to the right. */
.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.4rem + 1.4vw, 2rem);
  flex: 1;
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="true"] {
  color: var(--green-700);
  background: var(--green-050);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* EN | FR switcher */
.lang {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang a {
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang a:hover {
  color: var(--green-700);
  background: var(--green-050);
}

.lang [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.lang__sep {
  opacity: 0.4;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header__nav {
    position: fixed;
    inset: 4.5rem 0 auto;
    display: grid;
    gap: 0.25rem;
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(16, 22, 17, 0.4);
    visibility: hidden;
    opacity: 0;
    translate: 0 -0.5rem;
    transition: opacity 0.25s var(--ease), translate 0.25s var(--ease),
      visibility 0.25s;
  }

  .header__nav.is-open {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
  }

  .nav__link {
    padding: 0.8rem 0.75rem;
    font-size: 1.0625rem;
    border-radius: 10px;
  }

  .header__actions {
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 7vw, 8rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
}

/* Faint blueprint grid; fades out before it reaches the copy. */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 65% at 50% 15%,
    #000 0%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 80% 65% at 50% 15%,
    #000 0%,
    transparent 78%
  );
  opacity: 0.75;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero__content {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  justify-items: start;
}

.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 15ch;
}

.hero .lede {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  max-width: 48ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 100, 1, 0.12), 0 0 0 1px var(--line);
  aspect-ratio: 16 / 10;
  background: var(--green-050);
}

@media (min-width: 960px) {
  .hero__media {
    aspect-ratio: 4 / 5;
    max-height: 520px;
  }
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.hero__media:hover img {
  transform: scale(1.03);
}

/* Scrolling strip of the seven domains. */
.marquee {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding-inline: 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-300);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   7. Expertise grid
   -------------------------------------------------------------------------- */

/* Explicit column counts rather than auto-fit: there are seven cards plus a
   closing prompt, and the counts below make every row come out full at each
   breakpoint instead of leaving bare cells in the 1px grid background. */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 7 cards + a prompt spanning 2 = three complete rows. */
  .card--cta {
    grid-column: span 2;
  }
}

.card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  background: var(--paper);
  transition: background 0.3s var(--ease);
}

.card:hover {
  background: var(--green-050);
}

.card__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--green-050);
  margin-bottom: 0.25rem;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.05);
}

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

.card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.card:hover .card__icon {
  background: var(--green-600);
  color: #fff;
  transform: translateY(-2px);
}

.card__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

/* Decorative (aria-hidden), but --line-strong sat at 1.5:1 and read as a
   smudge rather than a number. ~3:1 keeps it quiet and still legible. */
.card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: #8d998e;
  transition: color 0.3s var(--ease);
}

.card:hover .card__num {
  color: var(--green-600);
}

.card h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.card p {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.65;
  text-wrap: pretty;
}

/* Closing cell of the grid: an invitation rather than a service. */
.card--cta {
  align-content: center;
  gap: 0.85rem;
  background: var(--green-050);
}

.card--cta:hover {
  background: var(--green-100);
}

.card--cta h3 {
  max-width: 22ch;
}

.card--cta p {
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   8. Approach steps
   -------------------------------------------------------------------------- */

.approach__banner {
  position: relative;
  margin-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px -12px rgba(0, 100, 1, 0.08), 0 0 0 1px var(--line);
  aspect-ratio: 21 / 9;
  max-height: 420px;
  background: var(--green-050);
}

@media (max-width: 680px) {
  .approach__banner {
    aspect-ratio: 16 / 9;
  }
}

.approach__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.6s var(--ease);
}

.approach__banner:hover img {
  transform: scale(1.02);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  counter-reset: step;
}

.step {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding-top: 1.75rem;
  border-top: 2px solid var(--green-600);
}

.step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--green-600);
}

.step h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.022em;
}

.step p {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.65;
  text-wrap: pretty;
}

/* Discipline chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.chip {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  background: var(--paper);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--green-300);
  color: var(--green-700);
}

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

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

.founder__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-100);
  aspect-ratio: 4 / 5;
}

.founder__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.founder__body {
  display: grid;
  gap: 1.1rem;
  max-width: var(--maxw-text);
}

/* Deliberately below --fs-h2: at the larger size "Gaëlle Saint-Hilary, PhD"
   breaks across the hyphen on most desktop widths. */
.founder__name {
  font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem);
  line-height: 1.1;
}

.founder__role {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
}

.founder__body p {
  color: var(--muted);
  text-wrap: pretty;
}

.founder__body p strong {
  color: var(--ink);
  font-weight: 600;
}

/* Team block */
.team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4.5rem);
  margin-top: clamp(3.5rem, 2rem + 5vw, 7rem);
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-top: 1px solid var(--line);
}

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

.team > h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.022em;
  align-self: start;
}

.team__body {
  display: grid;
  gap: 1.1rem;
}

.team__body p {
  color: var(--muted);
  font-size: var(--fs-lede);
  line-height: 1.55;
  text-wrap: pretty;
}

.team__body p strong {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. Contact
   -------------------------------------------------------------------------- */

.contact {
  position: relative;
  overflow: hidden;
}

.contact__inner {
  position: relative;
  display: grid;
  gap: 2rem;
  justify-items: start;
}

.contact h2 {
  font-size: var(--fs-h2);
  max-width: 18ch;
}

.contact__email {
  font-size: clamp(1.25rem, 0.9rem + 1.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.2s var(--ease);
}

.contact__email:hover {
  color: var(--green-300);
  background-size: 0% 1px;
}

/* Soft glow so the dark block is not a flat slab. */
.contact::before {
  content: "";
  position: absolute;
  width: 46rem;
  height: 46rem;
  right: -14rem;
  top: -18rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(20, 121, 27, 0.5),
    transparent 62%
  );
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--green-900);
  color: var(--green-200);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

.footer__brand {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  max-width: 34ch;
}

.footer__brand img {
  width: 172px;
}

.footer__brand p {
  font-size: var(--fs-small);
  color: var(--green-300);
  text-wrap: pretty;
}

.footer__col h3 {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.footer__col li + li {
  margin-top: 0.6rem;
}

.footer__col a {
  font-size: var(--fs-small);
  color: var(--green-200);
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: #fff;
}

/* The switcher is reused here on a dark ground, so re-point its colours. */
.footer .lang {
  color: var(--green-300);
}

.footer .lang a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-small);
  color: var(--green-300);
}

/* --------------------------------------------------------------------------
   12. Scroll reveal
   -------------------------------------------------------------------------- */

/* Only applied once JS confirms IntersectionObserver support, so the page
   is never left invisible if the script fails to run. */
.js-reveal [data-reveal] {
  opacity: 0;
  translate: 0 1.25rem;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .js-reveal [data-reveal] {
    opacity: 1;
    translate: none;
  }
}

/* --------------------------------------------------------------------------
   13. Error page
   -------------------------------------------------------------------------- */

.error {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  min-height: 70vh;
  text-align: center;
}

.error h1 {
  font-size: var(--fs-h2);
}

.error p {
  color: var(--muted);
  max-width: 44ch;
}

@media print {
  .header,
  .marquee,
  .hero__grid,
  .nav-toggle {
    display: none !important;
  }

  body {
    color: #000;
  }
}
