/*
  Association Soundoxy — feuille de styles principale
  Architecture : mobile-first, sans framework, progressive enhancement.
*/

:root {
  --ink-950: #06111e;
  --ink-900: #081827;
  --ink-850: #0b1d30;
  --ink-800: #10253b;
  --ink-700: #1b3853;
  --paper: #f7f4ec;
  --paper-2: #efeadd;
  --white: #ffffff;
  --text-on-dark: #f7fafc;
  --muted-on-dark: #b6c5d5;
  --text-on-light: #142334;
  --muted-on-light: #536477;
  --lime: #ddf66b;
  --lime-strong: #cce94a;
  --cyan: #65e4f3;
  --coral: #ff8066;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(8, 24, 39, 0.14);
  --shadow-sm: 0 10px 30px rgba(3, 14, 26, 0.12);
  --shadow-lg: 0 28px 80px rgba(3, 14, 26, 0.28);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-pill: 999px;
  --container: 1180px;
  --header-height: 84px;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Arial Rounded MT Bold", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --step--1: clamp(0.84rem, 0.8rem + 0.18vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.18rem, 1.08rem + 0.5vw, 1.42rem);
  --step-2: clamp(1.46rem, 1.22rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.42rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.65rem + 4.5vw, 5.6rem);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  background: var(--ink-950);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink-900);
  color: var(--text-on-dark);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

p,
ul,
ol,
blockquote {
  margin-block: 0 1.2rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}

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

h3 {
  font-size: var(--step-2);
}

h4 {
  font-size: var(--step-1);
}

::selection {
  background: var(--lime);
  color: var(--ink-950);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--ink-950);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(calc(100% - 2rem), 780px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 8rem);
}

.section--tight {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.section--paper {
  background: var(--paper);
  color: var(--text-on-light);
}

.section--paper-alt {
  background: var(--paper-2);
  color: var(--text-on-light);
}

.section--ink {
  background: var(--ink-900);
  color: var(--text-on-dark);
}

.section--deep {
  background: var(--ink-950);
  color: var(--text-on-dark);
}

.section--gradient {
  background:
    radial-gradient(circle at 10% 10%, rgba(101, 228, 243, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 80%, rgba(255, 128, 102, 0.14), transparent 28rem),
    var(--ink-900);
}

.section-heading {
  display: grid;
  gap: 1.15rem;
  max-width: 790px;
  margin-bottom: clamp(2.25rem, 5vw, 4.25rem);
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted-on-dark);
  font-size: var(--step-1);
}

.section--paper .section-heading p,
.section--paper-alt .section-heading p {
  color: var(--muted-on-light);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.55rem;
  margin: 0;
  color: var(--lime);
  font-size: var(--step--1);
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.section--paper .eyebrow,
.section--paper-alt .eyebrow {
  color: #4a6410;
}

.lede {
  max-width: 64ch;
  color: var(--muted-on-dark);
  font-size: var(--step-1);
}

.section--paper .lede,
.section--paper-alt .lede {
  color: var(--muted-on-light);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  font-weight: 800;
  text-decoration-color: var(--cyan);
}

.text-link svg {
  width: 1.05em;
  transition: transform 180ms ease;
}

.text-link:hover svg {
  transform: translateX(0.2rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.button--primary {
  background: var(--lime);
  color: var(--ink-950);
  box-shadow: 0 10px 30px rgba(221, 246, 107, 0.16);
}

.button--primary:hover {
  background: var(--lime-strong);
  box-shadow: 0 13px 34px rgba(221, 246, 107, 0.25);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.button--secondary:hover {
  border-color: var(--cyan);
  background: rgba(101, 228, 243, 0.09);
}

.button--dark {
  background: var(--ink-900);
  color: var(--white);
}

.button--dark:hover {
  background: var(--ink-800);
}

.button--ghost-dark {
  border-color: rgba(8, 24, 39, 0.23);
  background: transparent;
  color: var(--text-on-light);
}

.button--ghost-dark:hover {
  border-color: var(--ink-900);
  background: rgba(8, 24, 39, 0.04);
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.icon-badge {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 1rem;
  background: rgba(221, 246, 107, 0.13);
  color: var(--lime);
}

.section--paper .icon-badge,
.section--paper-alt .icon-badge {
  background: rgba(8, 24, 39, 0.08);
  color: var(--ink-900);
}

.icon-badge .icon {
  width: 1.55rem;
  height: 1.55rem;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(6, 17, 30, 0.78);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-dark);
  background: rgba(6, 17, 30, 0.94);
  box-shadow: 0 10px 36px rgba(3, 12, 23, 0.26);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--white);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 2.8rem;
  height: 2.8rem;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.brand-kind {
  margin-top: 0.26rem;
  color: var(--muted-on-dark);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.5rem 0.72rem;
  border-radius: var(--radius-pill);
  color: var(--muted-on-dark);
  font-size: 0.94rem;
  font-weight: 760;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.nav-toggle .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.nav-toggle .icon-close {
  display: none;
}

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

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

/* Hero */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(3rem, 6vw, 6.5rem) clamp(5rem, 9vw, 9rem);
  background:
    radial-gradient(circle at 12% 16%, rgba(101, 228, 243, 0.13), transparent 25rem),
    radial-gradient(circle at 85% 30%, rgba(255, 128, 102, 0.12), transparent 30rem),
    var(--ink-900);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
}

.hero h1 {
  max-width: 12ch;
}

.hero h1 .accent {
  color: var(--lime);
}

.hero .lede {
  max-width: 58ch;
  margin: 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-on-dark);
  font-size: var(--step--1);
  font-weight: 730;
}

.hero-points .icon {
  width: 1rem;
  color: var(--lime);
}

.hero-visual {
  position: relative;
  min-height: 28rem;
}

.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: clamp(1.5rem, 4vw, 3rem);
  background: var(--ink-800);
  box-shadow: var(--shadow-lg);
}

.hero-photo picture,
.hero-photo img {
  width: 100%;
  height: 100%;
}

.hero-photo img {
  object-fit: cover;
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 17, 30, 0.88));
  content: "";
}

.hero-caption {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.hero-caption strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.03rem;
}

.hero-caption span {
  color: var(--muted-on-dark);
  font-size: 0.85rem;
}

.hero-wave {
  position: absolute;
  z-index: 3;
  top: -1.2rem;
  right: -1rem;
  display: flex;
  height: 5rem;
  align-items: center;
  gap: 0.32rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.4rem;
  background: rgba(8, 24, 39, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.hero-wave span {
  width: 0.27rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to top, var(--lime), var(--cyan));
  animation: wave 1.6s ease-in-out infinite;
}

.hero-wave span:nth-child(1) { height: 35%; animation-delay: -0.2s; }
.hero-wave span:nth-child(2) { height: 70%; animation-delay: -0.6s; }
.hero-wave span:nth-child(3) { height: 45%; animation-delay: -0.9s; }
.hero-wave span:nth-child(4) { height: 90%; animation-delay: -0.4s; }
.hero-wave span:nth-child(5) { height: 55%; animation-delay: -1.1s; }
.hero-wave span:nth-child(6) { height: 75%; animation-delay: -0.1s; }
.hero-wave span:nth-child(7) { height: 38%; animation-delay: -0.8s; }
.hero-wave span:nth-child(8) { height: 65%; animation-delay: -0.5s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.72); opacity: 0.72; }
  50% { transform: scaleY(1.08); opacity: 1; }
}

.hero-orbit {
  position: absolute;
  z-index: 3;
  bottom: -1.4rem;
  left: -1.2rem;
  width: 8.4rem;
  height: 8.4rem;
  border: 1px solid rgba(221, 246, 107, 0.34);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hero-orbit::before {
  top: 0.45rem;
  left: 1.2rem;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--lime);
  box-shadow: 0 0 28px rgba(221, 246, 107, 0.55);
}

.hero-orbit::after {
  inset: 1.2rem;
  border: 1px dashed rgba(101, 228, 243, 0.36);
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.page-hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 7vw, 7rem);
  background:
    radial-gradient(circle at 75% 20%, rgba(101, 228, 243, 0.13), transparent 28rem),
    radial-gradient(circle at 12% 86%, rgba(255, 128, 102, 0.1), transparent 26rem),
    var(--ink-900);
}

.page-hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.page-hero-copy {
  display: grid;
  gap: 1.35rem;
}

.page-hero h1 {
  max-width: 13ch;
}

.page-hero .lede {
  margin: 0;
}

.page-hero-visual {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--ink-800);
  box-shadow: var(--shadow-lg);
}

.page-hero-visual picture,
.page-hero-visual img {
  width: 100%;
  height: 100%;
}

.page-hero-visual img {
  object-fit: cover;
}

.page-hero-visual::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 48%, rgba(6,17,30,.68));
  content: "";
  pointer-events: none;
}

.page-hero-note {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1rem;
  background: rgba(6,17,30,.7);
  color: var(--muted-on-dark);
  font-size: var(--step--1);
  backdrop-filter: blur(9px);
}

.page-hero-note strong {
  color: var(--white);
}

/* Layout utilities */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

.split {
  display: grid;
  align-items: center;
  gap: clamp(2.2rem, 6vw, 6rem);
}

.split--start {
  align-items: start;
}

.prose {
  max-width: 72ch;
}

.prose > * + * {
  margin-top: 1.2rem;
}

.prose h2,
.prose h3 {
  margin-top: 2.4rem;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose a {
  font-weight: 750;
  text-decoration-color: var(--cyan);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose--light {
  color: var(--text-on-light);
}

.prose--light p,
.prose--light li {
  color: var(--muted-on-light);
}

.prose--dark p,
.prose--dark li {
  color: var(--muted-on-dark);
}

.rich-image {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  border-radius: var(--radius-lg);
  background: var(--ink-800);
  box-shadow: var(--shadow-sm);
}

.rich-image picture,
.rich-image img {
  width: 100%;
  height: 100%;
}

.rich-image img {
  object-fit: cover;
}

.rich-image figcaption {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
  background: rgba(6, 17, 30, 0.72);
  color: var(--muted-on-dark);
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
}

/* Cards */
.card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(101, 228, 243, 0.34);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow-sm);
}

.section--paper .card,
.section--paper-alt .card,
.card--light {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text-on-light);
}

.section--paper .card:hover,
.section--paper-alt .card:hover,
.card--light:hover {
  border-color: rgba(8, 24, 39, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.card p {
  margin: 0;
  color: var(--muted-on-dark);
}

.section--paper .card p,
.section--paper-alt .card p,
.card--light p {
  color: var(--muted-on-light);
}

.card .text-link {
  margin-top: auto;
}

.card-number {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section--paper .card-number,
.section--paper-alt .card-number {
  color: #4a6410;
}

.card--accent {
  border-color: rgba(221, 246, 107, 0.42);
  background: linear-gradient(145deg, rgba(221,246,107,.12), rgba(101,228,243,.05));
}

.card--coral {
  border-color: rgba(255,128,102,.32);
  background: linear-gradient(145deg, rgba(255,128,102,.11), rgba(255,255,255,.035));
}

.value-card {
  position: relative;
  overflow: hidden;
}

.value-card::after {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 6rem;
  height: 6rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.07;
  content: "";
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card-visual {
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-800);
}

.media-card-visual picture,
.media-card-visual img {
  width: 100%;
  height: 100%;
}

.media-card-visual img {
  object-fit: cover;
  transition: transform 400ms ease;
}

.media-card:hover .media-card-visual img {
  transform: scale(1.035);
}

.media-card-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.45rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.62rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  color: var(--muted-on-dark);
  font-size: 0.74rem;
  font-weight: 780;
  line-height: 1;
  opacity: 0.9;
}

.section--paper .tag,
.section--paper-alt .tag,
.card--light .tag {
  color: var(--muted-on-light);
}

/* Feature strip */
.feature-strip {
  position: relative;
  z-index: 2;
  margin-top: clamp(-3.5rem, -5vw, -2rem);
}

.feature-strip-inner {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(6, 17, 30, 0.95);
  box-shadow: var(--shadow-lg);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.25rem;
}

.feature-item + .feature-item {
  border-top: 1px solid var(--line-dark);
}

.feature-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: var(--step--1);
}

.feature-item .icon {
  color: var(--lime);
}

/* Steps / process */
.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding-bottom: 2rem;
  counter-increment: step;
}

.step::before {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(221,246,107,.35);
  border-radius: 50%;
  background: rgba(221,246,107,.1);
  color: var(--lime);
  content: counter(step, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.step:not(:last-child)::after {
  position: absolute;
  top: 3rem;
  bottom: 0.3rem;
  left: 1.33rem;
  width: 1px;
  background: linear-gradient(var(--line-dark), transparent);
  content: "";
}

.section--paper .step::before,
.section--paper-alt .step::before {
  border-color: rgba(8,24,39,.2);
  background: rgba(8,24,39,.06);
  color: var(--ink-900);
}

.section--paper .step:not(:last-child)::after,
.section--paper-alt .step:not(:last-child)::after {
  background: linear-gradient(var(--line-light), transparent);
}

.step h3,
.step h4 {
  margin-bottom: 0.45rem;
}

.step p {
  margin: 0;
  color: var(--muted-on-dark);
}

.section--paper .step p,
.section--paper-alt .step p {
  color: var(--muted-on-light);
}

/* Highlight quote */
.quote-block {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(221, 246, 107, 0.28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 15%, rgba(101,228,243,.14), transparent 18rem),
    linear-gradient(135deg, rgba(221,246,107,.1), rgba(255,255,255,.035));
}

.quote-block blockquote {
  max-width: 24ch;
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.quote-block cite {
  color: var(--muted-on-dark);
  font-style: normal;
}

.quote-block::after {
  position: absolute;
  top: -2rem;
  right: 1rem;
  color: rgba(221,246,107,.1);
  content: "“";
  font-family: Georgia, serif;
  font-size: 16rem;
  line-height: 1;
}

/* CTA */
.cta-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 10%, rgba(221,246,107,.17), transparent 20rem),
    radial-gradient(circle at 88% 90%, rgba(255,128,102,.16), transparent 20rem),
    var(--ink-800);
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  max-width: 16ch;
}

.cta-panel p {
  max-width: 61ch;
  margin: 1rem 0 0;
  color: var(--muted-on-dark);
}

.cta-panel::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 18rem;
  height: 18rem;
  border: 1px dashed rgba(101,228,243,.24);
  border-radius: 50%;
  content: "";
}

/* Data / identity */
.identity-list {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.6);
}

.identity-row {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.2rem;
}

.identity-row + .identity-row {
  border-top: 1px solid var(--line-light);
}

.identity-row dt {
  color: var(--muted-on-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-row dd {
  margin: 0;
  color: var(--text-on-light);
  font-weight: 750;
  overflow-wrap: anywhere;
}

/* Projects */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-button {
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted-on-light);
  font-size: 0.86rem;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--white);
}

.project-card[hidden] {
  display: none;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted-on-light);
  font-size: 0.82rem;
  font-weight: 760;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-meta .icon {
  width: 1rem;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(101, 228, 243, 0.08);
}

.notice p {
  margin: 0;
}

.notice .icon {
  color: var(--cyan);
}

.section--paper .notice,
.section--paper-alt .notice {
  background: rgba(8,24,39,.055);
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line-light);
}

.faq-item {
  border-bottom: 1px solid var(--line-light);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  color: var(--text-on-light);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: rgba(8,24,39,.06);
}

.faq-answer {
  max-width: 74ch;
  padding: 0 3rem 1.35rem 0;
  color: var(--muted-on-light);
}

/* Contact */
.contact-layout {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.contact-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.045);
}

.contact-card a {
  font-weight: 850;
  overflow-wrap: anywhere;
  text-decoration-color: var(--lime);
}

.contact-card p {
  margin: 0;
  color: var(--muted-on-dark);
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.copy-button {
  padding: 0.48rem 0.72rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.04);
  color: var(--muted-on-dark);
  font-size: 0.78rem;
  font-weight: 780;
}

.copy-button:hover {
  border-color: var(--cyan);
  color: var(--white);
}

.contact-form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label,
.form-field legend {
  color: var(--text-on-light);
  font-size: 0.88rem;
  font-weight: 850;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(8,24,39,.24);
  border-radius: 0.8rem;
  background: rgba(255,255,255,.9);
  color: var(--text-on-light);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input,
.form-field select {
  min-height: 3.2rem;
  padding: 0.7rem 0.85rem;
}

.form-field textarea {
  min-height: 10rem;
  resize: vertical;
  padding: 0.8rem 0.85rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #287b88;
  box-shadow: 0 0 0 4px rgba(101,228,243,.19);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #a82f22;
}

.field-help,
.field-error {
  margin: 0;
  font-size: 0.78rem;
}

.field-help {
  color: var(--muted-on-light);
}

.field-error {
  color: #8d261c;
  font-weight: 740;
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
}

.checkbox-field input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.25rem;
  accent-color: var(--ink-900);
}

.checkbox-field label {
  color: var(--muted-on-light);
  font-size: 0.82rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted-on-light);
  font-size: 0.88rem;
  font-weight: 740;
}

.form-status.is-success {
  color: #23643d;
}

.form-status.is-error {
  color: #8d261c;
}

/* Legal / credits */
.legal-layout {
  display: grid;
  align-items: start;
  gap: 2.5rem;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  padding: 1.2rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.58);
}

.legal-nav strong {
  display: block;
  margin-bottom: 0.65rem;
}

.legal-nav ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-nav a {
  color: var(--muted-on-light);
  font-size: 0.86rem;
  font-weight: 730;
}

.credit-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.65);
}

.credit-card-visual {
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.credit-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.credit-card-body {
  padding: 1.2rem;
}

.credit-card-body p {
  color: var(--muted-on-light);
}

.credit-card-body a {
  font-weight: 760;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-dark);
  background: var(--ink-950);
  color: var(--text-on-dark);
}

.footer-main {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.footer-brand p {
  max-width: 42ch;
  margin-top: 1rem;
  color: var(--muted-on-dark);
}

.footer-columns {
  display: grid;
  gap: 2rem;
}

.footer-column h2 {
  margin-bottom: 0.9rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a {
  color: var(--muted-on-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-on-dark);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: inherit;
}

.back-to-top {
  position: fixed;
  z-index: 900;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: rgba(6,17,30,.9);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.7rem);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--lime);
}

/* Reveal animation */
.js.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 580ms ease, transform 580ms ease;
}

.js.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (min-width: 640px) {
  .container,
  .container--narrow {
    width: min(calc(100% - 3rem), var(--container));
  }

  .container--narrow {
    max-width: 780px;
  }

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

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

  .feature-strip-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-item + .feature-item {
    border-top: 0;
    border-left: 1px solid var(--line-dark);
  }

  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .hero-grid,
  .page-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  }

  .hero-copy {
    padding-block: 1rem;
  }

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

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

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

  .cta-panel {
    grid-template-columns: minmax(0, 1.3fr) auto;
  }

  .cta-panel .button-row {
    justify-content: flex-end;
  }

  .contact-layout {
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  }

  .legal-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .footer-main {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.1fr);
  }

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

@media (min-width: 1060px) {
  .header-cta {
    display: inline-flex;
    min-height: 2.8rem;
    padding-inline: 1rem;
    font-size: 0.88rem;
  }

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

@media (max-width: 1059px) {
  .js .nav-toggle {
    display: grid;
  }

  .js .site-nav {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    left: 0;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding: 1rem;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(6, 17, 30, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.6rem);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .js .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav ul {
    display: grid;
    gap: 0.3rem;
  }

  .site-nav a {
    width: 100%;
    min-height: 3.2rem;
    justify-content: space-between;
    padding-inline: 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 639px) {
  :root {
    --header-height: 76px;
  }

  .brand img {
    width: 2.45rem;
    height: 2.45rem;
  }

  .brand-kind {
    display: none;
  }

  .hero-visual {
    min-height: 23rem;
  }

  .page-hero-visual {
    min-height: 19rem;
  }

  .hero-wave {
    top: -0.8rem;
    right: -0.3rem;
    transform: scale(0.86);
  }

  .hero-orbit {
    bottom: -1.2rem;
    left: -0.8rem;
    width: 6.8rem;
    height: 6.8rem;
  }

  .feature-strip {
    margin-top: -2rem;
  }

  .legal-nav {
    position: static;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

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

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .back-to-top,
  .button-row,
  .nav-toggle,
  .filter-bar,
  .contact-form {
    display: none !important;
  }

  .section,
  .hero,
  .page-hero {
    padding-block: 1.5rem;
    background: white !important;
    color: black !important;
  }

  .card,
  .quote-block,
  .cta-panel,
  .identity-list {
    border-color: #bbb !important;
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  p,
  li,
  .lede,
  .section-heading p,
  .card p {
    color: #333 !important;
  }

  a {
    color: black;
  }
}
