/* SYD X — shared site styles */

:root {
  --bg: #161616;
  --accent: #c1c6c8;
  --muted: #8a8d90;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: rgba(193, 198, 200, 0.12);
  --border-strong: rgba(193, 198, 200, 0.28);
  --surface: #1a1a1a;
  --surface-elevated: #1e1e1e;
  --live: #4ade80;
  --header-height: 64px;
  --content-width: 1080px;
  --section-gap: 6rem;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 400;
  padding: 0.5rem 0.9rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-height);
  padding: 0 1.25rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.scrolled .nav-bar,
.site-header.menu-open .nav-bar {
  background: rgba(22, 22, 22, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: max-width 0.35s var(--ease), opacity 0.35s var(--ease);
}

/* On the home page the brand stays hidden until the big hero logo scrolls away */
.home .site-header .nav-brand {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.home .site-header.scrolled .nav-brand,
.home .site-header.menu-open .nav-brand {
  max-width: 280px;
  opacity: 1;
  pointer-events: auto;
}

.nav-brand img {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-brand span {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text);
  white-space: nowrap;
}

.nav-inline {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  list-style: none;
}

.nav-inline a {
  display: block;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav-inline a:hover,
.nav-inline a[aria-current="page"] {
  color: var(--text);
  background: rgba(193, 198, 200, 0.08);
}

.nav-inline .nav-cta {
  margin-left: 0.5rem;
  color: #161616;
  background: var(--accent);
  font-weight: 600;
}

.nav-inline .nav-cta:hover,
.nav-inline .nav-cta[aria-current="page"] {
  color: #161616;
  background: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 202;
}

.menu-toggle:hover {
  background: rgba(193, 198, 200, 0.08);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: min(300px, 85vw);
  padding: 1.5rem 1.25rem 2.5rem;
  background: var(--surface-elevated);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0.3s;
  z-index: 201;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.site-header.menu-open .nav-menu {
  transform: translateX(0);
  visibility: visible;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-list a {
  display: block;
  padding: 0.85rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(193, 198, 200, 0.1);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.nav-backdrop[hidden] {
  display: none;
}

@media (max-width: 1060px) {
  .nav-inline {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #161616;
}

.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  color: var(--text);
  background: rgba(30, 30, 30, 0.6);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.btn svg {
  width: 16px;
  height: 16px;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  color: #fff;
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Home hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 5rem;
  position: relative;
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(193, 198, 200, 0.08), transparent),
    var(--bg);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(193, 198, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 198, 200, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 780px;
}

.hero-lockup {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 1.4rem);
  margin-bottom: 2.25rem;
  text-align: left;
}

.hero-mark {
  width: auto;
  height: clamp(64px, 14vw, 92px);
}

.hero-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-name {
  font-size: clamp(2.6rem, 9vw, 3.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  margin-right: -0.14em;
  color: var(--text);
}

.hero-tagline {
  font-size: clamp(0.62rem, 1.9vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(30, 30, 30, 0.7);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

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

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 36em;
  margin-bottom: 2.25rem;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero .cta-row {
  justify-content: center;
}

.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  opacity: 0.5;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scroll-arrow.hidden {
  opacity: 0;
}

.scroll-arrow svg {
  width: 20px;
  height: 20px;
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-height) + 5rem) 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(193, 198, 200, 0.08), transparent),
    var(--bg);
}

.page-hero h1 {
  max-width: 16em;
}

.page-hero p {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 38em;
}

.page-hero .cta-row {
  margin-top: 2rem;
}

/* ---------- Sections ---------- */

.page-section {
  padding-bottom: var(--section-gap);
}

.page-section .container {
  border-top: 1px solid var(--border);
  padding-top: var(--section-gap);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.eyebrow .num {
  color: var(--accent);
}

.section-header h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 22em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 40em;
  margin-top: 0.9rem;
}

.prose p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Cards ---------- */

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
}

a.card {
  display: block;
  text-decoration: none;
}

a.card:hover {
  transform: translateY(-2px);
}

.card-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.card .icon {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(193, 198, 200, 0.06);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.tag.highlight {
  color: var(--accent);
  border-color: var(--border-strong);
}

/* ---------- Grids ---------- */

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

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

.grid-3 > .card,
.grid-4 > .card {
  display: flex;
  flex-direction: column;
}

.grid-3 > .card .more,
.grid-4 > .card .more {
  margin-top: auto;
  padding-top: 1rem;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  overflow: hidden;
}

.stat-strip > div {
  padding: 1.4rem 1.5rem;
  border-right: 1px solid var(--border);
}

.stat-strip > div:last-child {
  border-right: none;
}

.stat-strip strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.stat-strip span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Service detail (services page) ---------- */

.service-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.service-index a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.service-index a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.service-detail .icon-lg {
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-bottom: 1.25rem;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-elevated);
}

.service-detail h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.service-detail .intro {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}

.service-detail .examples {
  margin-top: 1.5rem;
}

.service-detail .examples h3,
.check-list-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-elevated);
}

.check-list li strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Case studies ---------- */

.case {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  padding: 2.25rem;
  margin-bottom: 1.25rem;
}

.case:last-child {
  margin-bottom: 0;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.case h3 {
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.case .summary {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

.case-detail {
  display: grid;
  gap: 1.15rem;
}

.case-detail h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.case-detail p,
.case-detail li {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.bullets {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.bullets li {
  position: relative;
  padding-left: 1.1rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--muted);
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.75rem;
}

.work-card h3 {
  font-size: 1.3rem;
}

.work-card .case-meta {
  margin-bottom: 0.2rem;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.fact-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  overflow: hidden;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.fact-list li:last-child {
  border-bottom: none;
}

.fact-list .k {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.12rem;
}

.fact-list .v {
  color: var(--text);
  text-align: right;
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: var(--border-strong);
}

.timeline > li {
  position: relative;
  padding-bottom: 2.25rem;
}

.timeline > li:last-child {
  padding-bottom: 0;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem + 1px);
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline .when {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.25rem 0 0.15rem;
}

.timeline .org {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.timeline .bullets {
  max-width: 44em;
  gap: 0.45rem;
}

.timeline .bullets li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.toolkit .card h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.toolkit .pill {
  font-size: 0.78rem;
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
  padding: 0.38rem 0.7rem;
}

.process {
  list-style: none;
  counter-reset: step;
}

.process li {
  counter-increment: step;
}

.process .card {
  height: 100%;
}

.process .card::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.principle {
  padding: 1.1rem 1.25rem;
  border-left: 2px solid var(--border-strong);
}

.principle strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.principle span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */

.contact-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(193, 198, 200, 0.07), transparent),
    var(--surface-elevated);
}

.contact-panel h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.contact-panel p {
  color: var(--text-muted);
}

.contact-links {
  display: grid;
  gap: 0.6rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.contact-links a:hover {
  border-color: var(--accent);
  background: #222;
}

.contact-links svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-links .label {
  display: block;
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-links .value {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-word;
}

.contact-location {
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.brief-list {
  list-style: none;
  counter-reset: brief;
  display: grid;
  gap: 0.75rem;
}

.brief-list li {
  counter-increment: brief;
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.brief-list li::before {
  content: counter(brief);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.brief-list strong {
  color: var(--text);
  font-weight: 600;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
}

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

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1.1rem;
  line-height: 1.4;
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--text-muted);
  padding-bottom: 1.2rem;
  max-width: 46em;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 3.5rem 2rem;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(193, 198, 200, 0.08), transparent),
    var(--surface-elevated);
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 34em;
  margin: 0 auto 1.75rem;
}

.cta-band .cta-row {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 0 0 2.5rem;
}

.site-footer .container {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .nav-brand {
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 24em;
  margin-top: 0.75rem;
}

.footer-grid h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-grid a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Cookie consent ---------- */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.25rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 300;
  transform: translateY(calc(100% + 1.5rem));
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

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

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-banner button {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.cookie-banner button:hover {
  opacity: 0.85;
}

.cookie-banner p a {
  color: var(--text);
}

/* Accept and refuse carry equal visual weight */
.cookie-choice {
  flex: 1 1 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

/* ---------- Announcement pill (home hero) ---------- */

.status-badge.announce {
  text-decoration: none;
  color: var(--text);
  border-color: var(--border-strong);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.status-badge.announce:hover {
  border-color: var(--accent);
  background: rgba(40, 40, 40, 0.8);
}

.status-badge.announce .new {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--live);
}

.status-badge.announce svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}

.status-badge.announce:hover svg {
  transform: translateX(2px);
}

/* ---------- Automation ---------- */

.hero-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-proof li::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--live);
  border-bottom: 2px solid var(--live);
  transform: rotate(-45deg) translateY(-2px);
}

.auto-card {
  display: flex;
  flex-direction: column;
}

.auto-card .eg {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.auto-band {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(74, 222, 128, 0.06), transparent),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(193, 198, 200, 0.06), transparent),
    var(--surface-elevated);
}

.auto-band h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.auto-band p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.auto-tiles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.auto-tiles li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.auto-tiles svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
}

.flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem 1.5rem 1.6rem;
  border-right: 1px solid var(--border);
}

.flow li:last-child {
  border-right: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(74, 222, 128, 0.04);
}

.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  z-index: 1;
  width: 10px;
  height: 10px;
  background: var(--surface-elevated);
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  transform: translateY(-50%) rotate(45deg);
}

.flow-step {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.flow strong {
  font-size: 1rem;
  font-weight: 600;
}

.flow li > span:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.calc-copy h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.calc-copy p {
  color: var(--text-muted);
}

.calc-panel {
  display: grid;
  gap: 1.35rem;
  padding: 2rem;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-elevated);
}

.calc-field {
  display: grid;
  gap: 0.6rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc-label output {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
}

.calc-field input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 4px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / var(--fill, 50%) 100% no-repeat,
    rgba(193, 198, 200, 0.15);
  cursor: pointer;
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}

.calc-field input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}

.calc-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.calc-result div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.calc-result strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.calc-result div:last-child strong {
  color: var(--live);
}

.calc-result span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.calc-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.who-chips .pill {
  font-size: 0.8rem;
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-elevated);
  padding: 0.5rem 0.9rem;
}

.plan {
  display: flex;
  flex-direction: column;
}

.plan .bullets {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.plan .bullets li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-featured {
  border-color: var(--border-strong);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(193, 198, 200, 0.08), transparent),
    var(--surface-elevated);
}

.plan-featured .card-label {
  color: var(--live);
}

.plan-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 50% 100% at 100% 50%, rgba(74, 222, 128, 0.06), transparent),
    var(--surface-elevated);
}

.callout h2 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 0.3rem;
}

.callout p {
  color: var(--text-muted);
  max-width: 38em;
}

@media (max-width: 960px) {
  .auto-band,
  .calc {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

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

  .flow li:nth-child(2) {
    border-right: none;
  }

  .flow li:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .flow li:last-child {
    border-radius: 0 0 var(--radius) 0;
  }

  .flow li::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .auto-band,
  .calc-panel,
  .callout {
    padding: 1.5rem;
  }

  .auto-tiles,
  .flow {
    grid-template-columns: 1fr;
  }

  .flow li {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .flow li:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .calc-result {
    grid-template-columns: 1fr;
  }
}

/* ---------- Language switch ---------- */

.nav-inline .lang-switch {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
}

.nav-list .lang-switch {
  font-family: var(--mono);
  font-size: 0.9rem;
}

.nav-list .nav-cta {
  margin-top: 0.75rem;
  text-align: center;
  color: #161616;
  background: var(--accent);
  font-weight: 600;
}

.nav-list .nav-cta:hover {
  background: #fff;
}

/* ---------- Audience, status tags, Peppol ---------- */

.audience-card {
  display: flex;
  flex-direction: column;
}

.audience-card .more {
  margin-top: auto;
  padding-top: 1rem;
}

.tag.status-live {
  color: var(--live);
  border-color: rgba(74, 222, 128, 0.35);
}

.tag.status-done {
  color: var(--text);
  border-color: var(--border-strong);
}

.callout-peppol {
  align-items: flex-start;
}

.callout-peppol h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 0.6rem;
}

.callout .source {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.callout .source a {
  color: var(--accent);
}

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

/* ---------- Offers table ---------- */

.offer-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
}

.offer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.offer-table th,
.offer-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.offer-table tbody tr:last-child th,
.offer-table tbody tr:last-child td {
  border-bottom: none;
}

.offer-table thead th {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.offer-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.offer-table td {
  color: var(--text-muted);
}

.offer-price strong {
  display: block;
  color: var(--text);
  font-weight: 650;
  white-space: nowrap;
}

.offer-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Booking embeds ---------- */

.embed-card {
  padding: 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-elevated);
}

.embed-card iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
}

.embed-cal {
  min-height: 720px;
  overflow: auto;
  border-radius: 12px;
}

.embed-tally {
  min-height: 900px;
  background: #fff;
}

.embed-fallback {
  padding: 0.75rem 0.5rem 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-cta {
  margin-top: 1.5rem;
}

.contact-hours {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 40em;
}

.plan-fine {
  margin-top: 1rem;
}

/* ---------- Footer legal ---------- */

.footer-contact {
  list-style: none;
  display: grid;
  gap: 0.3rem;
  margin-top: 1rem;
}

.footer-contact a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-legal {
  padding: 1.25rem 0;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal-links {
  margin-top: 0.4rem;
}

.footer-legal a,
.link-button {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover,
.link-button:hover {
  color: var(--text);
}

.link-button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ---------- Legal pages ---------- */

.page-hero-compact {
  padding-bottom: 2.5rem;
}

.legal {
  max-width: 48em;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.75rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal .bullets {
  margin-bottom: 1rem;
}

.legal .bullets li {
  color: var(--text-muted);
}

.legal a {
  color: var(--text);
}

.legal code {
  font-family: var(--mono);
  font-size: 0.85em;
}

.legal-facts {
  margin-bottom: 1rem;
}

.legal-facts .v {
  max-width: 60%;
}

.legal-updated {
  margin-top: 2.5rem;
  font-size: 0.85rem;
}

.cookie-table {
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  /* Offers: each row becomes a stacked card */
  .offer-table:not(.cookie-table) thead {
    display: none;
  }

  .offer-table:not(.cookie-table) tr {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border);
  }

  .offer-table:not(.cookie-table) tbody tr:last-child {
    border-bottom: none;
  }

  .offer-table:not(.cookie-table) th,
  .offer-table:not(.cookie-table) td {
    padding: 0;
    border-bottom: none;
  }

  .offer-table:not(.cookie-table) .offer-price {
    margin-top: 0.3rem;
  }

  .offer-table:not(.cookie-table) .offer-price strong {
    white-space: normal;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 0.85rem 1rem;
  }

  .embed-cal {
    min-height: 820px;
  }


  .callout-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Disclosure ("En savoir plus") ---------- */

.fold {
  margin-top: 0.9rem;
}

.fold > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  border-radius: 6px;
}

.fold > summary::-webkit-details-marker {
  display: none;
}

.fold > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.fold[open] > summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.fold > summary:hover {
  color: #fff;
}

.fold-body {
  padding-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.fold-body > * + * {
  margin-top: 0.75rem;
}

.fold-table > summary {
  margin-bottom: 0.9rem;
}

/* ---------- Icon tiles ---------- */

.ico {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: var(--surface);
}

.ico svg {
  width: 24px;
  height: 24px;
}

.offer-name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.offer-name svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

.card .benefit {
  color: var(--text);
  font-size: 0.95rem;
}

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.service-card h2 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.service-card .fold-body .chips {
  margin-bottom: 0.25rem;
}

.service-card .check-list li {
  font-size: 0.88rem;
}

/* ---------- Steps ("Comment ça marche") ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}

.step {
  position: relative;
  text-align: center;
}

.step .ico {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: var(--surface-elevated);
}

/* Connector between step icons */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 40px);
  right: calc(-50% - 1.5rem + 40px);
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), var(--border-strong) 60%, transparent);
}

.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.step h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 22em;
  margin: 0 auto;
}

/* ---------- Avant / Après ---------- */

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr;
  gap: 1.25rem;
  align-items: stretch;
}

.ba-col {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
}

.ba-after {
  border-color: var(--border-strong);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(74, 222, 128, 0.06), transparent),
    var(--surface-elevated);
}

.ba-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.ba-after .ba-title {
  color: var(--live);
}

.ba-lead {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.ba-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.ba-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.ba-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ba-before .ba-list li {
  color: var(--muted);
}

.ba-before .ba-list s {
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--muted);
}

.ba-after .ba-list svg {
  color: var(--accent);
}

.ba-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.ba-arrow svg {
  width: 28px;
  height: 28px;
}

/* ---------- Screenshots ---------- */

.shot {
  margin: 0;
}

.shot-frame {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.shot-bar {
  display: flex;
  gap: 5px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-elevated);
}

.shot-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(193, 198, 200, 0.22);
}

.shot-view {
  position: relative;
}

.shot-view img {
  display: block;
  width: 100%;
  height: auto;
}

/* The tablet capture already includes its own device bezel */
.shot-tablet .shot-frame {
  max-width: 340px;
  margin: 0 auto;
  border-radius: 18px;
  background: #e8edf2;
}

.shot-placeholder {
  display: none;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  aspect-ratio: 16 / 9;
  font-size: 0.85rem;
  color: var(--muted);
}

.shot-placeholder svg {
  width: 28px;
  height: 28px;
}

.shot-missing .shot-view img {
  display: none;
}

.shot-missing .shot-placeholder {
  display: grid;
}

.shot-tablet.shot-missing .shot-placeholder {
  aspect-ratio: 3 / 4;
}

.shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.work-card .shot {
  margin: 0.25rem 0 0.5rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.shot-grid-3 {
  grid-template-columns: 1.3fr 1.3fr 0.8fr;
  align-items: start;
}

/* ---------- Peppol cards ---------- */

.service-detail-single {
  grid-template-columns: minmax(0, 46em);
}


.fact-card p + p {
  margin-top: 0.6rem;
}

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 1rem;
    text-align: left;
    padding-bottom: 1.5rem;
  }

  .step .ico {
    grid-row: span 3;
    margin: 0;
  }

  .step p {
    margin: 0;
  }

  /* Vertical connector on mobile */
  .step:not(:last-child)::after {
    top: 56px;
    bottom: 0;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
    background: var(--border-strong);
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .ba-arrow svg {
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  .service-grid,
  .shot-grid,
  .shot-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Homepage logo intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 450;
  pointer-events: none;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.intro-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 24px);
}

.intro-word {
  height: clamp(48px, 10vw, 76px);
  width: auto;
  color: var(--text);
  opacity: 0;
}

.intro-mark {
  height: clamp(110px, 22vw, 168px);
  aspect-ratio: 101.76 / 116.25;
  transform-origin: 0 0;
}

.intro-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.intro-fill {
  opacity: 0;
}

.intro-spark {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.hero-mark.intro-hold {
  visibility: hidden;
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status-dot {
    animation: none;
  }

  .fold > summary::after {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .stat-strip > div:nth-child(2) {
    border-right: none;
  }

  .stat-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .case,
  .about-grid,
  .contact-panel,
  .service-detail {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  :root {
    --section-gap: 4rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-strip > div {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-strip > div:last-child {
    border-bottom: none;
  }

  .case,
  .contact-panel,
  .cta-band {
    padding: 1.5rem;
  }

  .page-hero {
    padding: calc(var(--header-height) + 3rem) 0 3rem;
  }

  .cta-row .btn {
    width: 100%;
    justify-content: center;
  }
}
