/* SinEnergy website (decision 0005, restart). System fonts, no third-party request, logical properties only
   (RTL and LTR from one file). Palette A (Brand and Identity section 6): Paper (page), Navy (brand colour: bands,
   footer, page headers), SE Blue and Leaf as the only accents. Text-safe tones: #1a6fe0 and #35721a on paper,
   #4F9BFF and #5DB234 on navy.

   Themes: LIGHT BY DEFAULT, dark is a switch. Every colour token is one light-dark(light, dark) pair, so there is a
   single token block. color-scheme is "light" on the root; /assets/theme.js sets data-theme="dark" on <html> (the
   header switch, saved in localStorage) and the dark half applies. The OS preference does not decide.

   Fonts: the tokens --font-display, --font-text and --font-arabic hold system stacks today. Self-hosted web fonts are
   planned (owner, 2026-11-08), but no font file is added until the owner approves specific files. To add one:
   copy the .woff2 into src/assets/fonts/ and uncomment/adapt a rule such as

     @font-face { font-family: "SE Display"; src: url("/fonts/se-display.woff2") format("woff2");
                  font-weight: 600; font-display: swap; }

   then put "SE Display" first in the matching token below. Never a font service (no request to another site). */

:root {
  /* paper in light, navy in dark */
  --bg: light-dark(#f5f8fc, #0b1a2e);
  --surface: light-dark(#e9eff8, #12263f);
  --card: light-dark(#ffffff, #0b1a2e);
  --text: light-dark(#0b1a2e, #eef3f9);
  --muted: light-dark(#44546a, #c4cedb);
  --link: light-dark(#1558c0, #8dbcf8);
  --blue: light-dark(#1a6fe0, #4f9bff);
  --green: light-dark(#35721a, #5db234);
  --green-text: light-dark(#2f6a16, #7fcf55);
  --border: light-dark(#cfd9e7, #2a4160);
  --field-border: light-dark(#64748b, #8aa0bd);
  --focus: light-dark(#1a6fe0, #4f9bff);
  --btn-bg: light-dark(#1a6fe0, #4f9bff);
  --btn-text: light-dark(#ffffff, #0b1a2e);
  --band-bg: light-dark(#0b1a2e, #07111f);
  --band-text: #eef3f9;
  --band-link: #8dbcf8;
  --ok-bg: light-dark(#e8f4e1, #16301a);
  --err-bg: light-dark(#fdecec, #3a1717);
  --err-text: light-dark(#8a1c1c, #ffd0d0);
  /* atmosphere: on paper the glows are a little stronger than their dark twins look, the halo is green-blue */
  --glow-a: light-dark(rgba(31, 138, 91, 0.1), rgba(31, 138, 91, 0.22));
  --glow-b: light-dark(rgba(15, 107, 79, 0.07), rgba(15, 107, 79, 0.18));
  --glow-leaf: light-dark(rgba(93, 178, 52, 0.06), rgba(93, 178, 52, 0.07));
  --glow-blue: light-dark(rgba(48, 136, 255, 0.08), rgba(79, 155, 255, 0.09));
  --grain-opacity: light-dark(0.05, 0.06);
  --cursor-glow: light-dark(rgba(26, 111, 224, 0.06), rgba(93, 178, 52, 0.08));
  --shadow-card: light-dark(0 1px 2px rgba(11, 26, 46, 0.05), 0 0 rgba(0, 0, 0, 0));
  --shadow-card-hover: light-dark(0 14px 32px -18px rgba(11, 26, 46, 0.3), 0 14px 32px -18px rgba(0, 0, 0, 0.6));
  --shadow-pop: light-dark(0 6px 24px rgba(11, 26, 46, 0.18), 0 6px 24px rgba(0, 0, 0, 0.5));
  --shadow-header: light-dark(0 6px 24px -16px rgba(11, 26, 46, 0.45), 0 6px 24px -16px rgba(0, 0, 0, 0.7));
  --art-blue: light-dark(#2a7ae8, #4f9bff);
  --art-green: light-dark(#449321, #5db234);
  --art-ink: light-dark(#3a4d68, #cfe0f5);
  --art-bg: var(--bg);
  /* font tokens (system stacks; the @font-face slot is documented at the top of this file) */
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-arabic: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", system-ui, sans-serif;
  --sans: var(--font-text);
  --serif: var(--font-display);
  --display: var(--font-display);
  --font: var(--font-text);
  /* type scale: ratio 1.25, fluid between 360 px and 1280 px wide */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.45rem);
  --step-2: clamp(1.56rem, 1.4rem + 0.8vw, 2rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.7vw, 2.8rem);
  --step-4: clamp(2.44rem, 1.8rem + 3.2vw, 4rem);
  --step-5: clamp(3rem, 1.9rem + 5.5vw, 6rem);
  /* spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.5rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --radius: 0.75rem;
  color-scheme: light;
}

/* The header switch (theme.js) turns on the dark half; light is the default and the OS preference is ignored. */
:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

html[lang="ar"] {
  /* Arabic: the serif stack has no Arabic letters, so headings use the Arabic stack in a heavier weight */
  --display: var(--font-arabic);
  --font: var(--font-arabic);
}

/* The stage: the navy frame of the hero, page headers, bands and footer, in light and in dark mode. */
.stage {
  --bg: #0b1a2e;
  --surface: #12263f;
  --text: #eef3f9;
  --muted: #c4cedb;
  --link: #8dbcf8;
  --blue: #4f9bff;
  --green: #5db234;
  --green-text: #7fcf55;
  --border: #2a4160;
  --field-border: #8aa0bd;
  --focus: #6fb0ff;
  --btn-bg: #4f9bff;
  --btn-text: #0b1a2e;
  --art-blue: #4f9bff;
  --art-green: #5db234;
  --art-ink: #cfe0f5;
  --art-bg: #0b1a2e;
  color-scheme: dark;
  position: relative;
  background: #0b1a2e;
  color: var(--text);
}

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

html {
  scroll-padding-block-start: 5.5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .btn {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

html[lang="ar"] body {
  line-height: 1.9;
}

img,
svg {
  max-inline-size: 100%;
  block-size: auto;
}

/* Type: the --step-* scale of :root (ratio 1.25, fluid). */
h1,
h2,
h3 {
  margin-block: 0 0.5em;
  text-wrap: balance;
}

.display,
h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

html[lang="ar"] .display,
html[lang="ar"] h2 {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

h1 {
  font-size: var(--step-4);
  line-height: 1.04;
  margin-block-end: 0.45em;
}

html[lang="ar"] h1 {
  line-height: 1.25;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  line-height: 1.3;
  font-weight: 650;
}

p {
  margin-block: 0 1em;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

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

main:focus {
  outline: none;
}

.wrap {
  inline-size: 100%;
  max-inline-size: 74rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Skip link */
.skip {
  position: absolute;
  inset-inline-start: 0.5rem;
  inset-block-start: -4rem;
  z-index: 40;
  padding: 0.6rem 1rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  border-radius: 0.4rem;
}

.skip:focus {
  inset-block-start: 0.5rem;
}

/* Header and navigation: wraps on small screens, no script needed */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-block-end: 1px solid var(--border);
  background: var(--bg);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-block: 0.7rem;
}

.brand {
  display: block;
  inline-size: min(11rem, 55%);
  line-height: 0;
}

.brand img {
  inline-size: 100%;
  block-size: auto;
}

/* Two logo files (navy ink for paper, light ink for navy): the theme decides which one shows. */
.logo-dark {
  display: none;
}

:root[data-theme="dark"] .brand .logo-light {
  display: none;
}

:root[data-theme="dark"] .brand .logo-dark {
  display: block;
}

.nav {
  flex: 1 1 auto;
}

.nav ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border-radius: 0.25rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  background: var(--surface);
}

.nav a[aria-current="page"] {
  color: var(--link);
  box-shadow: inset 0 -2px 0 var(--blue);
  font-weight: 700;
}

/* Language switcher: the three languages written in themselves; the current one is marked, the others are links. */
.lang-switch ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-switch a,
.lang-current {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--field-border);
  border-radius: 0.25rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.lang-switch a:hover {
  background: var(--surface);
}

.lang-current {
  border-color: var(--blue);
  background: var(--surface);
  color: var(--link);
  font-weight: 700;
}

/* Theme switch (theme.js): one button toggling light / dark, shown only when the script runs. */
.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  padding: 0;
  border: 1px solid var(--field-border);
  border-radius: 0.25rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.theme-switch[hidden] {
  display: none;
}

.theme-switch:hover {
  background: var(--surface);
}

.theme-switch svg {
  display: none;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-switch[data-mode="light"] .ic-light,
.theme-switch[data-mode="dark"] .ic-dark {
  display: block;
}

/* Text for screen readers (the live announcement of the new theme) */
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Buttons and the "in preparation" badge */
.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border: 2px solid var(--btn-bg);
  border-radius: 0.3rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-quiet {
  background: transparent;
  color: var(--link);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.5rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-block-end: 1rem;
  padding: 0.2rem 0.8rem;
  padding-inline-start: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--green) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: var(--green-text);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.5;
}

.badge::before {
  content: "";
  flex: none;
  inline-size: 1rem;
  block-size: 1rem;
  background: currentColor;
  -webkit-mask: url("art/mark-sprout.svg") center / contain no-repeat;
  mask: url("art/mark-sprout.svg") center / contain no-repeat;
}

/* ===== The stage: hero and page headers ===== */
.hero,
.page-header {
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6.5rem);
  border-end-start-radius: 2.5rem;
  border-end-end-radius: 2.5rem;
}

.hero {
  padding-block-start: clamp(2rem, 5vw, 4rem);
}

.hero-grid,
.page-header-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* Quiet structure on the stage: a fine grid that fades out, and one soft shape at the inline end */
.stage-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  opacity: 0.16;
  -webkit-mask: url("art/grid.svg") 0 0 / 48px 48px, linear-gradient(to bottom, #000 0%, transparent 85%);
  mask: url("art/grid.svg") 0 0 / 48px 48px, linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.stage-bg::after {
  content: "";
  position: absolute;
  inset-block-start: -20%;
  inset-inline-end: -12%;
  inline-size: min(52rem, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--blue) 70%, transparent), color-mix(in srgb, var(--green) 40%, transparent) 70%);
  opacity: 0.2;
  -webkit-mask: url("art/blob.svg") center / contain no-repeat;
  mask: url("art/blob.svg") center / contain no-repeat;
}

.hero-text,
.page-header-text {
  position: relative;
  z-index: 1;
  min-inline-size: 0;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  max-inline-size: 36rem;
  color: var(--text);
}

html[lang="ar"] .lead {
  line-height: 1.8;
}

.tagline {
  color: var(--muted);
  font-weight: 600;
}

.hero-art {
  display: grid;
  inline-size: 100%;
  max-inline-size: 42rem;
  margin-inline: auto;
}

.hero-art .layer {
  grid-area: 1 / 1;
}

.page-art {
  max-inline-size: 30rem;
  margin-inline: auto;
  inline-size: 100%;
}

.page-header.has-art .page-art .art-singreen-scene,
.page-header.has-art .page-art .art-about {
  max-inline-size: 100%;
}

.motto {
  font-weight: 700;
  color: var(--green-text);
}

.draft {
  padding: 0.75rem 1rem;
  border-inline-start: 4px solid var(--blue);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

/* Contour lines along the foot of the stage */
.wave {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  inline-size: 100%;
  block-size: clamp(3rem, 7vw, 5.5rem);
  max-inline-size: none;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== Sections ===== */
.section {
  position: relative;
  padding-block: clamp(2.75rem, 7vw, 5rem);
}

.section-alt {
  background: var(--surface);
}

.section-band {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section-band .btn-quiet {
  color: var(--link);
  border-color: var(--link);
}

/* Heading in the wide start margin, content beside it; stacked on phones */
.split,
.stack {
  display: grid;
  gap: 1.25rem 2rem;
}

.split-head h2,
.section-head h2 {
  margin: 0;
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-block-end: 2rem;
  max-inline-size: 44rem;
}

.section-text {
  max-inline-size: 38rem;
}

.pull {
  margin-block: 0 2rem;
  padding-inline-start: 1.25rem;
  border-inline-start: 3px solid var(--green);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
  max-inline-size: 36rem;
  text-wrap: pretty;
}

html[lang="ar"] .pull {
  font-weight: 700;
  line-height: 1.6;
}

.sub {
  margin-block-start: 1.5rem;
}

.note {
  color: var(--muted);
}

/* Lists */
.tiles,
.rows,
.steps,
.chips,
.bullets,
.levels,
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Product tiles: art on top, unequal sizes in the bento */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.tile-art {
  --art-bg: var(--surface);
  display: grid;
  place-items: center;
  padding: 1rem 1rem 0.25rem;
  background: var(--surface);
}

.tile-art .art {
  max-inline-size: 22rem;
}

.tile-body {
  padding: 1.1rem 1.25rem 1.4rem;
}

.tile h3 {
  margin-block-end: 0.35rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
}

.tile h3 a {
  color: var(--text);
  text-decoration: none;
}

.tile h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tile p {
  margin-block-end: 0;
  max-inline-size: 30rem;
}

.tile:hover,
.tile:focus-within {
  border-color: var(--blue);
  box-shadow: var(--shadow-card-hover);
}

/* Rows: plain typographic list under hairlines (reasons, values, solutions, ways to join) */
.rows > li {
  display: grid;
  gap: 0.25rem 1.25rem;
  padding-block: 1.4rem;
  border-block-start: 1px solid var(--border);
}

.rows > li:last-child {
  border-block-end: 1px solid var(--border);
}

.rows h3 {
  margin-block-end: 0.3rem;
}

.rows p {
  margin-block-end: 0;
  max-inline-size: 38rem;
}

.row.has-icon {
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: start;
}

.row-icon {
  display: block;
  inline-size: 3.5rem;
}

.rows-cols > li:last-child {
  border-block-end: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 0.75rem;
}

.chips a {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.1rem 0.7rem;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  text-decoration: none;
}

.bullets {
  max-inline-size: 38rem;
}

.bullets li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin-block-end: 0.7rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.72em;
  inline-size: 0.55rem;
  block-size: 0.55rem;
  border-radius: 50%;
  background: var(--green);
}

/* Steps: the one real sequence, so the only numbers on the site */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1.5rem 2rem;
  counter-reset: step;
}

.steps li {
  padding-block-start: 1rem;
  border-block-start: 2px solid var(--blue);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-block-end: 0.4rem;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1;
}

.steps h3 {
  margin-block-end: 0.3rem;
}

.steps p {
  margin: 0;
}

/* Green band */
.band-green {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: radial-gradient(ellipse 60% 90% at 90% 30%, rgba(68, 147, 33, 0.38), transparent 70%), #0b1a2e;
  overflow: hidden;
}

.green-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.green-art {
  min-inline-size: 0;
}

/* Ecosystem diagram */
.eco {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.diagram {
  inline-size: 100%;
  max-inline-size: 22rem;
  margin-inline: auto;
}

.diagram rect {
  fill: var(--bg);
  stroke: var(--blue);
  stroke-width: 2;
}

.diagram .node-0 rect {
  fill: var(--blue);
}

.diagram .node-0 .code {
  fill: var(--btn-text);
}

.diagram .node-3 rect {
  stroke: var(--green);
}

.diagram .code {
  fill: var(--text);
  font: 700 26px var(--font);
  letter-spacing: 0.05em;
}

.diagram .link {
  fill: none;
  stroke: var(--field-border);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.levels li {
  margin-block-end: 0.9rem;
}

.level-name {
  color: var(--muted);
}

.eco-steps {
  font-weight: 700;
  margin-block-end: 0.5rem;
}

/* Contact */
.contact-list li {
  margin-block-end: 0.5rem;
}

.label {
  font-weight: 700;
}

.form {
  max-inline-size: 38rem;
}

.field {
  display: grid;
  gap: 0.3rem;
  margin-block-end: 1rem;
}

.field label {
  font-weight: 600;
}

input,
select,
textarea {
  inline-size: 100%;
  padding: 0.65rem 0.8rem;
  border: 2px solid var(--field-border);
  border-radius: 0.3rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.hp {
  position: absolute;
  inset-inline-start: -10000px;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
}

.form-status {
  margin-inline-start: 0.75rem;
  color: var(--muted);
}

.notice {
  display: none;
  max-inline-size: 38rem;
  margin-block-start: 1rem;
  padding: 1rem 1.25rem;
  border-inline-start: 5px solid var(--green);
  border-radius: 0.3rem;
  background: var(--ok-bg);
  color: var(--text);
}

.notice-err {
  border-inline-start-color: var(--err-text);
  background: var(--err-bg);
  color: var(--err-text);
}

.notice-err a.btn {
  color: var(--btn-text);
}

.notice:target,
.notice.is-visible {
  display: block;
}

.notice-title {
  font-weight: 700;
  margin-block-end: 0.3rem;
}

/* Footer (on the stage): brand block, three link columns, contact block, bottom bar */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-block-start: 3rem;
  padding-block: clamp(4rem, 8vw, 6rem) 1.25rem;
}

.foot-top {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  block-size: 3rem;
  transform: scaleY(-1);
  pointer-events: none;
}

.foot-top .wave {
  inset-block: 0;
  block-size: 100%;
  opacity: 0.45;
}

.foot-mark {
  position: absolute;
  inset-block-end: -4rem;
  inset-inline-end: -3rem;
  inline-size: min(36rem, 90vw);
  opacity: 0.45;
  pointer-events: none;
}

.foot-grid {
  position: relative;
  display: grid;
  gap: 2.25rem 2rem;
}

.foot-logo {
  display: block;
  inline-size: min(13rem, 70%);
  margin-block-end: 1rem;
  line-height: 0;
}

.foot-logo img {
  inline-size: 100%;
  block-size: auto;
}

.foot-tagline {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-block-end: 0.5rem;
}

.foot-brand p {
  max-inline-size: 22rem;
}

.foot-note {
  color: var(--muted);
}

.footer-title {
  margin-block-end: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.site-footer ul {
  flex-direction: column;
  gap: 0.15rem;
}

.site-footer a:not(.foot-logo) {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-block-size: 2rem;
  color: var(--text);
  text-decoration: none;
}

.site-footer a:not(.foot-logo):hover span,
.site-footer a:not(.foot-logo):hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer .with-icon .art {
  inline-size: 1.25rem;
  flex: none;
}

.site-footer .with-icon .art * {
  stroke-width: 1.6;
}

.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.foot-products li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
}

.site-footer .foot-products .art *,
.site-footer .foot-contact .art * {
  stroke: #a9c9f5;
}

.site-footer .foot-green .art * {
  stroke: var(--green-text);
}

.soon {
  color: var(--green-text);
  font-size: 0.8rem;
  opacity: 0.85;
}

.foot-green {
  margin-block-end: 1.5rem;
}

.foot-slogan {
  display: block;
  margin-block-start: 0.15rem;
  padding-inline-start: 1.85rem;
  color: var(--muted);
}

.foot-contact ul li.with-icon {
  min-block-size: 2rem;
  color: var(--text);
}

.legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-block-start: 2.5rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal p {
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.legal-links a:first-child {
  padding-inline: 0.7rem;
  border: 1px solid var(--field-border);
  border-radius: 0.25rem;
}

@media (min-width: 40em) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64em) {
  .foot-grid {
    grid-template-columns: 1.1fr 0.9fr 1.3fr 1.5fr;
  }

  .foot-brand {
    grid-column: auto;
  }
}

/* ===== Art (inline SVG, drawn in assets/art/): colours come from the page, light or dark ===== */
.art {
  display: block;
  inline-size: 100%;
  block-size: auto;
  overflow: visible;
}

.art * {
  stroke: var(--c, var(--art-ink));
  stroke-width: 1.25;
}

.art .b {
  --c: var(--art-blue);
}

.art .g {
  --c: var(--art-green);
}

.art .k {
  --c: var(--art-ink);
}

.art .t {
  fill: color-mix(in srgb, var(--c) 26%, var(--art-bg));
}

.art .l {
  fill: color-mix(in srgb, var(--c) 8%, var(--art-bg));
}

.art .r {
  fill: color-mix(in srgb, var(--c) 15%, var(--art-bg));
}

.art .s {
  fill: var(--c);
  fill-opacity: 0.1;
  stroke: none;
}

.art .d {
  fill: var(--c);
  stroke: none;
}

.art .h {
  stroke-opacity: 0.4;
}

.art .q {
  stroke-opacity: 0.6;
}

.art .w {
  stroke-dasharray: 2 6;
}

.art .glowline path {
  stroke-width: 7;
  stroke-opacity: 0.1;
}

.art .flow {
  stroke-dasharray: 5 11;
  stroke-opacity: 0.9;
}

.art .pk {
  stroke-width: 5;
  stroke-dasharray: 0 2;
}

.art-divider * {
  stroke-width: 1.5;
}

.row-icon .art * {
  stroke-width: 2.4;
}

.row-icon .art {
  --art-bg: transparent;
}

.art-about * {
  stroke-width: 1.4;
}

.layer {
  will-change: translate;
}

/* ===== Atmosphere (WEB-36): compositor-only properties ===== */

/* Eased falloff: alpha follows an ease-out curve over eight stops, so the glows have no visible edge. */
:root {
  --stops-a: color-mix(in srgb, var(--glow-a) 100%, transparent) 0%, color-mix(in srgb, var(--glow-a) 90%, transparent) 14%, color-mix(in srgb, var(--glow-a) 74%, transparent) 28%, color-mix(in srgb, var(--glow-a) 55%, transparent) 42%, color-mix(in srgb, var(--glow-a) 37%, transparent) 56%, color-mix(in srgb, var(--glow-a) 21%, transparent) 70%, color-mix(in srgb, var(--glow-a) 9%, transparent) 84%, transparent 100%;
  --stops-b: color-mix(in srgb, var(--glow-b) 100%, transparent) 0%, color-mix(in srgb, var(--glow-b) 90%, transparent) 14%, color-mix(in srgb, var(--glow-b) 74%, transparent) 28%, color-mix(in srgb, var(--glow-b) 55%, transparent) 42%, color-mix(in srgb, var(--glow-b) 37%, transparent) 56%, color-mix(in srgb, var(--glow-b) 21%, transparent) 70%, color-mix(in srgb, var(--glow-b) 9%, transparent) 84%, transparent 100%;
  --stops-leaf: color-mix(in srgb, var(--glow-leaf) 100%, transparent) 0%, color-mix(in srgb, var(--glow-leaf) 90%, transparent) 14%, color-mix(in srgb, var(--glow-leaf) 74%, transparent) 28%, color-mix(in srgb, var(--glow-leaf) 55%, transparent) 42%, color-mix(in srgb, var(--glow-leaf) 37%, transparent) 56%, color-mix(in srgb, var(--glow-leaf) 21%, transparent) 70%, color-mix(in srgb, var(--glow-leaf) 9%, transparent) 84%, transparent 100%;
  --stops-blue: color-mix(in srgb, var(--glow-blue) 100%, transparent) 0%, color-mix(in srgb, var(--glow-blue) 90%, transparent) 14%, color-mix(in srgb, var(--glow-blue) 74%, transparent) 28%, color-mix(in srgb, var(--glow-blue) 55%, transparent) 42%, color-mix(in srgb, var(--glow-blue) 37%, transparent) 56%, color-mix(in srgb, var(--glow-blue) 21%, transparent) 70%, color-mix(in srgb, var(--glow-blue) 9%, transparent) 84%, transparent 100%;
}

/* The logo sits at the inline start: the strong green goes to the inline end, the blue to the opposite corner. */
html[dir="ltr"] {
  --gx: 88.5%;
  --gy: 11.5%;
  --sweep-from: -100%;
  --sweep-to: 170%;
  --accent-dir: to right;
  --origin: 0 50%;
}

html[dir="rtl"] {
  --gx: 11.5%;
  --gy: 88.5%;
  --sweep-from: 100%;
  --sweep-to: -170%;
  --accent-dir: to left;
  --origin: 100% 50%;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  inset: -15%;
  display: block;
  will-change: translate;
}

.glow-a {
  background:
    radial-gradient(ellipse 84.6% 57.7% at var(--gx) 19.2%, var(--stops-a)),
    radial-gradient(ellipse 34.6% 23.1% at var(--gx) 13.1%, var(--stops-leaf));
}

.glow-b {
  background:
    radial-gradient(ellipse 76.9% 50% at var(--gy) 88.5%, var(--stops-b)),
    radial-gradient(ellipse 50% 42.3% at var(--gy) 59.2%, var(--stops-blue));
}

/* Fine grain over the glows: prevents banding. A file of the site (the CSP allows no data: URL). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("grain.svg");
}

@supports (mix-blend-mode: soft-light) {
  body::after {
    mix-blend-mode: soft-light;
    --grain-opacity: 0.35;
  }
}

/* Cursor halo: created by effects.js on fine pointers only, eased toward the pointer, over the page but under
   the header; it never takes a click. */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 15;
  margin: auto;
  inline-size: min(28rem, 90vw);
  block-size: min(28rem, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, var(--cursor-glow), transparent 65%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  will-change: transform;
}

.cursor-glow.is-on {
  opacity: 1;
}

/* Scroll progress line (CSS scroll-driven animation; absent where unsupported) */
.progress {
  display: none;
}

/* Sticky header: solid by default, translucent and blurred once the page has scrolled */
.site-header.is-stuck {
  box-shadow: var(--shadow-header);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header.is-stuck {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
  }
}

/* Ecosystem diagram: the links draw themselves once visible (static where the script does not run) */
.diagram .link {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* ===== Layout from 48em / 60em ===== */
@media (min-width: 48em) {
  .tiles-bento,
  .tiles-duo {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiles-bento .tile:first-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }

  .tiles-bento .tile:first-child .tile-art {
    flex: 1.15;
    padding: 1.5rem;
  }

  .tiles-bento .tile:first-child .tile-body {
    flex: 1;
    align-self: center;
    padding: 2rem;
  }

  .tiles-bento .tile:first-child h3 {
    font-size: 2rem;
  }

  .rows-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0 2rem;
  }

  .eco {
    grid-template-columns: minmax(0, 20rem) 1fr;
  }

  .nav {
    flex: 1 1 24rem;
  }
}

@media (min-width: 60em) {
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-header.has-art .page-header-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  }

  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .split-head {
    grid-column: 1 / span 4;
    align-self: start;
    position: sticky;
    inset-block-start: 6.5rem;
  }

  .split-body {
    grid-column: 5 / -1;
  }

  .green-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .hero-art {
    margin-inline-end: -2rem;
  }
}

@media print {
  .site-header,
  .skip,
  .site-footer {
    display: none;
  }
}

/* ===== Motion: only for people who have not asked for less ===== */
@media (prefers-reduced-motion: no-preference) {
  .glow {
    animation: drift 50s ease-in-out infinite alternate;
  }

  .glow-b {
    animation-direction: alternate-reverse;
  }

  /* The one orchestrated moment: on load the headline rises word by word, the scene assembles layer by layer,
     then the flow starts. */
  .display .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-block: 0.06em 0.12em;
    margin-block: -0.06em -0.12em;
  }

  .display .w > span {
    display: inline-block;
    animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .display .w:nth-child(1) > span { animation-delay: 0.1s; }
  .display .w:nth-child(2) > span { animation-delay: 0.18s; }
  .display .w:nth-child(3) > span { animation-delay: 0.26s; }
  .display .w:nth-child(4) > span { animation-delay: 0.34s; }
  .display .w:nth-child(5) > span { animation-delay: 0.42s; }
  .display .w:nth-child(6) > span { animation-delay: 0.5s; }
  .display .w:nth-child(n+7) > span { animation-delay: 0.58s; }

  .hero .badge,
  .page-header .badge {
    animation: fade 0.8s ease-out both;
  }

  .hero .lead,
  .page-header .lead {
    animation: fade 0.9s ease-out 0.65s both;
  }

  .hero .tagline,
  .hero .actions,
  .page-header-text .motto {
    animation: fade 0.9s ease-out 0.85s both;
  }

  .layer-back,
  .page-art .layer {
    animation: fade 1.2s ease-out 0.1s both;
  }

  .layer-mid {
    animation: assemble 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
  }

  .layer-front {
    animation: fade 1s ease-out 1.1s both;
  }

  /* One light sweep across the hero on first open, in the reading direction */
  .hero::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    inline-size: 60%;
    background: linear-gradient(to right, transparent, color-mix(in srgb, var(--green) 16%, transparent), transparent);
    opacity: 0;
    pointer-events: none;
    animation: sweep 1.8s ease-out 0.4s 1 both;
  }

  /* The art keeps a slow, quiet pulse of its own: data flowing along the connections */
  .art .flow {
    animation: dash 2.4s linear infinite;
  }

  .art .pk {
    animation: travel 5s linear infinite;
  }

  .art .pk.p1 {
    animation-delay: -1.7s;
  }

  .art .pk.p2 {
    animation-delay: -3.3s;
  }

  .art .ping {
    transform-box: fill-box;
    transform-origin: center;
    animation: ping 3.2s ease-out infinite;
  }

  /* Answers the pointer: the art floats up a little */
  .tile-art .art {
    transition: translate 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .tile:hover .tile-art .art,
  .tile:focus-within .tile-art .art {
    translate: 0 -6px;
  }

  .tile {
    transition: border-color 0.25s ease;
  }

  /* Scroll reveals stay quiet: a short fade, no slide */
  [data-reveal] {
    transition: opacity 0.7s ease-out;
  }

  .js-reveal [data-reveal]:not(.is-visible) {
    opacity: 0;
  }

  .js-reveal .eco:not(.is-visible) .link {
    stroke-dashoffset: 1;
  }

  .diagram .link {
    transition: stroke-dashoffset 1.4s ease-out 0.3s;
  }

  @supports (animation-timeline: scroll()) {
    .progress {
      display: block;
      position: fixed;
      inset-inline: 0;
      inset-block-start: 0;
      z-index: 30;
      block-size: 3px;
      background: linear-gradient(var(--accent-dir), var(--blue), var(--green));
      transform-origin: var(--origin);
      transform: scaleX(0);
      animation: grow linear both;
      animation-timeline: scroll(root block);
    }
  }
}

@keyframes drift {
  from { translate: -3vw 2vh; }
  to { translate: 3vw -2vh; }
}

@keyframes sweep {
  from { translate: var(--sweep-from) 0; opacity: 0; }
  40% { opacity: 1; }
  to { translate: var(--sweep-to) 0; opacity: 0; }
}

@keyframes grow {
  to { transform: scaleX(1); }
}

@keyframes rise {
  from { transform: translateY(110%); }
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes assemble {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
}

@keyframes dash {
  to { stroke-dashoffset: -32; }
}

@keyframes travel {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -2; }
}

@keyframes ping {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.8); opacity: 0; }
}

/* Reduced motion: nothing moves, nothing is hidden, the pointer effects and the progress line are gone */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .glow,
  .hero::after,
  .progress {
    animation: none !important;
  }

  .progress,
  .cursor-glow,
  .hero::after {
    display: none !important;
  }

  [data-reveal],
  .js-reveal [data-reveal]:not(.is-visible) {
    opacity: 1 !important;
    translate: none !important;
    transform: none !important;
  }

  .diagram .link {
    stroke-dashoffset: 0 !important;
  }

  .tile:hover .tile-art .art,
  [data-depth] {
    translate: none !important;
    transform: none !important;
  }
}

/* Cookie notice: the site sets no cookie, the notice says so. Bottom, compact, dismissible, never a modal. */
.cookie-notice {
  position: fixed;
  inset-inline: 0.75rem;
  inset-block-end: 0.75rem;
  z-index: 35;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  max-inline-size: 38rem;
  margin-inline: auto;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-pop);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  flex: 1 1 14rem;
  margin: 0;
}

.cookie-notice .btn {
  padding: 0.4rem 1.1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-notice {
    animation: cookie-in 0.35s ease-out both;
  }

  @keyframes cookie-in {
    from {
      opacity: 0;
      translate: 0 0.75rem;
    }
  }
}

/* Footer: team and help column (staff platform link, support concept) */
.foot-help {
  margin-block-start: 1.25rem;
}

/* Preview only (decision 0005): the corner tag of a variant page and the variants index. */
.variant-tag {
  position: fixed;
  inset-block-end: 0.75rem;
  inset-inline-end: 0.75rem;
  z-index: 60;
  max-inline-size: 18rem;
  padding: 0.4rem 0.7rem;
  border: 2px solid var(--blue);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-pop);
  font-size: 0.85rem;
  line-height: 1.4;
}

.variants-index {
  padding-block: 2rem 4rem;
}

.variants-index table {
  inline-size: 100%;
  border-collapse: collapse;
}

.variants-index th,
.variants-index td {
  padding: 0.7rem 0.8rem;
  border-block-end: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}
