/* ==========================================================================
   Lyon, design system modeled on appliedcompute.com
   Fonts: Newsreader (≈ Tiempos Headline), Inter (≈ Suisse Intl),
          Geist Mono (labels, as on the reference site)
   ========================================================================== */

:root {
  /* palette lifted from the reference design */
  --cream: #fbfbfa;
  --black: #101010;
  --ink: #26251d;
  --body-text: #464437;
  --orange: #26251d;
  --orange-bright: #323026;
  --blue-pastel: #dceaf2;
  --green-pastel: #e6f0d6;
  --pink-pastel: #f6d6dc;
  --purple-pastel: #e6cfea;
  --light-orange: #f6f4ea;
  --tag-grey: #565656;
  --row-green-bg: #cbf0cb;
  --row-green-text: #007511;
  --row-red-bg: #f6d6d7;
  --row-red-text: #b12a2d;
  --hairline: rgba(38, 37, 29, 0.12);

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Menlo, monospace;

  --max-width: 1200px;
  --pad-x: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p {
  margin: 0;
  color: var(--body-text);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
}

em {
  font-style: italic;
}

::selection {
  background: var(--light-orange);
  color: var(--orange);
}

/* ---------- shared type ---------- */

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.4;
}

.mono-label.dim {
  opacity: 0.55;
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: #ededed;
  color: var(--ink);
  white-space: nowrap;
}

.chip-orange {
  background: var(--light-orange);
  color: var(--orange);
}

.chip-blue {
  background: var(--blue-pastel);
}

.chip-green {
  background: var(--green-pastel);
}

.chip-pink {
  background: var(--pink-pastel);
}

.chip-purple {
  background: var(--purple-pastel);
}

.chip-lorange {
  background: var(--light-orange);
}

.chip-dark {
  background: rgba(255, 250, 247, 0.12);
  color: var(--cream);
}

.desktop-br {
  display: none;
}

@media (min-width: 720px) {
  .desktop-br {
    display: inline;
  }
}

/* ---------- brand logo ----------
   Rendered as a mask so the fill tracks --orange (the accent picked
   in the palette selector) live. Sized to the surrounding text. */

.lyon-logo {
  display: inline-block;
  width: 0.98em;
  /* logo.svg is 732×748; keep its aspect ratio at 1em tall */
  height: 1em;
  vertical-align: -0.12em;
  margin-right: 0.3em;
  background-color: var(--orange);
  -webkit-mask: url("logo.svg") no-repeat center / contain;
  mask: url("logo.svg") no-repeat center / contain;
  flex: none;
}

/* flex containers with their own gap already space the logo */
.banner .lyon-logo,
.wordmark .lyon-logo {
  margin-right: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--black);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--orange);
}

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--ink);
  background: transparent;
}

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

.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
}

/* ---------- banner ---------- */

.banner {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

.banner a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px var(--pad-x);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.banner-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--orange);
  color: var(--cream);
}

.banner-arrow {
  transition: transform 0.18s ease;
  display: inline-block;
}

.banner a:hover .banner-arrow {
  transform: translateX(3px);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--hairline);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wordmark-glyph {
  width: 25px;
  height: 26px;
  /* optical alignment with the serif wordmark text */
  transform: translateY(-3px);
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 5px 12px;
  border-radius: 4px;
  color: var(--ink);
  transition: background-color 0.15s ease;
}

.site-nav a:hover {
  background: var(--light-orange);
  color: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px var(--pad-x) 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
    font-size: 13px;
  }
}

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

.hero-stage {
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 70px, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 70px, black calc(100% - 40px), transparent);
}

.hero-stage .hero {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px var(--pad-x) 72px;
  text-align: center;
}

.hero-kicker {
  color: var(--orange);
  margin: 0 0 28px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7.5vw, 84px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 auto;
  max-width: 950px;
}

.hero-sub {
  max-width: 620px;
  margin: 28px auto 0;
  font-size: 17px;
  line-height: 1.65;
  text-wrap: balance;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ---------- token visualization ---------- */

.token-viz {
  margin: 88px auto 0;
  max-width: 860px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 28px 0 32px;
  background: #fff;
  overflow: hidden;
}

.token-viz-label {
  color: var(--tag-grey);
  margin-bottom: 20px;
}

.token-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.token-row {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
}

.token-row-a {
  animation: stream 42s linear infinite;
}

.token-row-b {
  animation: stream 55s linear infinite reverse;
}

@keyframes stream {
  from {
    transform: translateX(0);
  }

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

.token {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 4px;
  color: var(--ink);
}

.t-blue {
  background: var(--blue-pastel);
}

.t-green {
  background: var(--green-pastel);
}

.t-pink {
  background: var(--pink-pastel);
}

.t-purple {
  background: var(--purple-pastel);
}

.t-orange {
  background: var(--light-orange);
}

.token-ellipsis {
  font-family: var(--font-mono);
  align-self: center;
  color: var(--tag-grey);
}

.token-viz-arrow {
  margin: 22px auto 6px;
  width: 24px;
  color: var(--tag-grey);
}

.token-viz-arrow svg {
  display: block;
  width: 100%;
}

.token-viz-model {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.token-viz-model .mono-label {
  color: var(--tag-grey);
}

.token-next {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 8px 18px;
  border-radius: 4px;
  background: var(--orange);
  color: var(--cream);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 25%, transparent);
  }

  50% {
    box-shadow: 0 0 0 9px color-mix(in srgb, var(--orange) 0%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {

  .token-row-a,
  .token-row-b,
  .token-next {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- credibility strip ---------- */

.cred-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px var(--pad-x) 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.cred-strip>.mono-label {
  color: var(--tag-grey);
}

.cred-items {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.4vw, 32px);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cred-dot {
  color: var(--orange);
}

.yc {
  color: var(--orange);
}

.yc-mark {
  width: 1em;
  height: 1em;
  border-radius: 3px;
  vertical-align: -0.16em;
  margin-right: 0.22em;
}

/* ---------- sections ---------- */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px var(--pad-x);
}

.section-head {
  margin-bottom: 48px;
}

.section-head .chip {
  margin-bottom: 22px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.section-sub {
  max-width: 620px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-text);
  text-wrap: balance;
}

/* ---------- thesis ---------- */

.thesis {
  border-top: 1px solid var(--hairline);
}

.statement {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 900px;
}

.statement em {
  color: var(--orange);
}

.thesis-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 44px;
  max-width: 900px;
}

.thesis-cols p {
  font-size: 17px;
  line-height: 1.7;
}

@media (min-width: 820px) {
  .thesis-cols {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.step p {
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
}

.step-visual {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 46px;
}

.step-visual .token {
  font-size: 10px;
  padding: 4px 10px;
}

.step-visual-pretrain .mono-label {
  color: var(--tag-grey);
}

/* ---------- use cases ---------- */

.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .cases {
    grid-template-columns: 1fr 1fr;
  }
}

.case {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.case-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--ink);
  margin-bottom: 22px;
}

.case-icon svg {
  width: 26px;
  height: 26px;
}

.case-icon-blue {
  background: var(--blue-pastel);
}

.case-icon-green {
  background: var(--green-pastel);
}

.case-icon-pink {
  background: var(--pink-pastel);
}

.case-icon-lorange {
  background: var(--light-orange);
}

.case-industry {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.case-summary {
  font-size: 15px;
  margin-top: 12px;
  max-width: 46ch;
}

.case-toggle {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--orange);
  cursor: pointer;
}

.case-toggle-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.35s ease;
}

.case-toggle[aria-expanded="true"] .case-toggle-arrow {
  transform: rotate(180deg);
}

.case-detail {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.case-detail-inner {
  min-height: 0;
  overflow: hidden;
}

.case-toggle[aria-expanded="true"]+.case-detail {
  grid-template-rows: 1fr;
}

.case-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.case-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 15px;
  color: var(--body-text);
  border-top: 1px solid var(--hairline);
}

.case-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 12px;
  top: 12px;
}

/* ---------- why us: editorial list ---------- */

.value-row {
  border-top: 1px solid var(--hairline);
  padding: 36px 0;
}

.value-list .value-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.value-row-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}

.value-row p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--tag-grey);
  max-width: 620px;
}

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

@media (min-width: 820px) {
  .value-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    column-gap: 48px;
    padding: 44px 0;
  }

  .value-row-title {
    margin-bottom: 0;
  }
}


/* ---------- dark section ---------- */

.section-dark {
  background: var(--ink);
  color: var(--cream);
}

.section-dark .section-title {
  color: var(--cream);
}

.dark-inner {
  padding-top: 104px;
  padding-bottom: 104px;
}

.dark-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 820px) {
  .dark-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dark-card {
  border: 1px solid rgba(255, 250, 247, 0.14);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dark-card .mono-label {
  color: var(--cream);
}

.dark-card p {
  color: rgba(255, 250, 247, 0.72);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- CTA ----------
   Full-bleed warm-paper band closing the page: a decisive ink rule on
   top, a faint blueprint grid, and registration marks in the corners. */

.cta {
  position: relative;
  background: #fff;
  border-top: 2px solid var(--ink);
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 37, 29, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 37, 29, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 85% at 50% 42%, black 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 42%, black 25%, transparent 100%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 112px var(--pad-x) 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-mark {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  color: rgba(38, 37, 29, 0.3);
  user-select: none;
}

.cta-mark-tl {
  top: 32px;
  left: var(--pad-x);
}

.cta-mark-tr {
  top: 32px;
  right: var(--pad-x);
}

.cta-mark-bl {
  bottom: 32px;
  left: var(--pad-x);
}

.cta-mark-br {
  bottom: 32px;
  right: var(--pad-x);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.cta-sub {
  max-width: 560px;
  font-size: 16px;
  text-wrap: balance;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.cta-alt {
  color: rgba(38, 37, 29, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cta-alt:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .cta-inner {
    padding: 84px var(--pad-x) 76px;
  }

  .cta-mark {
    display: none;
  }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px var(--pad-x) 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 64px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (min-width: 720px) {
  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 220px));
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col .mono-label {
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 250, 247, 0.78);
  transition: color 0.15s ease;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--orange-bright);
}

/* header-sized wordmark on the footer's right side */
.footer-brand {
  color: var(--cream);
}

.footer-brand .lyon-logo {
  background-color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 250, 247, 0.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom .mono-label {
  font-size: 11px;
}

/* ---------- legal pages ---------- */

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px var(--pad-x) 40px;
}

.legal-hero {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 40px;
  margin-bottom: 48px;
}

.legal-hero .chip {
  margin-bottom: 22px;
}

.legal-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.legal-updated {
  color: var(--tag-grey);
  margin-top: 20px;
}

.legal-intro {
  font-size: 17px;
  line-height: 1.7;
  margin-top: 24px;
  max-width: 68ch;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal-section {
  scroll-margin-top: 96px;
}

.legal-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}

.legal-section h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
}

.legal-section p {
  font-size: 16px;
  line-height: 1.7;
}

.legal-section p+p {
  margin-top: 16px;
}

.legal-section ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.legal-section li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
  border-top: 1px solid var(--hairline);
}

.legal-section li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 12px;
}

.legal-section a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.legal-toc {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.legal-toc .mono-label {
  color: var(--tag-grey);
  margin-bottom: 14px;
  display: block;
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  counter-reset: toc;
}

@media (min-width: 640px) {
  .legal-toc ol {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--body-text);
  transition: color 0.15s ease;
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero) " · ";
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
}

.legal-toc a:hover {
  color: var(--orange);
}

/* ---------- legal form (deletion requests) ---------- */

.legal-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
}

.legal-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-form-field .mono-label {
  color: var(--tag-grey);
}

.legal-form input,
.legal-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color 0.18s ease;
}

.legal-form textarea {
  resize: vertical;
}

.legal-form input:focus,
.legal-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

/* <button> elements carry a UA border that <a class="btn"> never had */
.legal-form .btn-primary {
  border: none;
  align-self: flex-start;
}

.legal-form-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tag-grey);
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Blog
   ========================================================================== */

.site-nav a.active {
  background: var(--light-orange);
  color: var(--orange);
}

/* ---------- listing ---------- */

.blog-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px var(--pad-x) 96px;
}

.blog-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.blog-hero .chip {
  margin-bottom: 20px;
}

.blog-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

.blog-sub {
  margin-top: 18px;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.7;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-row {
  border-bottom: 1px solid var(--hairline);
}

.post-row-link {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 48px;
  padding: 36px 0;
}

@media (min-width: 820px) {
  .post-row-link {
    grid-template-columns: 220px 1fr;
    padding: 44px 0;
  }
}

.post-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.post-row-date {
  color: var(--tag-grey);
}

.post-row-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  transition: color 0.15s ease;
}

.post-row-link:hover .post-row-title {
  color: var(--orange);
}

.post-row-excerpt {
  margin-top: 12px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.65;
}

.post-row-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--tag-grey);
  transition: color 0.15s ease;
}

.post-row-link:hover .post-row-more {
  color: var(--orange);
}

/* ---------- article ---------- */

.post-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px var(--pad-x) 0;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0 0;
  color: var(--tag-grey);
}

.post-breadcrumb a {
  transition: color 0.15s ease;
}

.post-breadcrumb a:hover {
  color: var(--orange);
}

.post-header {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--hairline);
}

.post-header .chip {
  margin-bottom: 20px;
}

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 22px;
  color: var(--tag-grey);
}

.post-body {
  padding: 44px 0 24px;
}

.post-body>p,
.post-body li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-text);
}

.post-body>p+p {
  margin-top: 22px;
}

.post-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 52px 0 18px;
  text-wrap: balance;
}

.post-body h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 36px 0 12px;
}

.post-body ul,
.post-body ol {
  margin: 22px 0;
  padding-left: 22px;
}

.post-body li+li {
  margin-top: 10px;
}

.post-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(38, 37, 29, 0.3);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.post-body a:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

.post-body blockquote {
  margin: 36px 0;
  padding: 6px 0 6px 24px;
  border-left: 2px solid var(--orange);
}

.post-body blockquote p {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--ink);
}

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

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--light-orange);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 48px 0;
}

.post-body .post-callout {
  margin: 36px 0;
  padding: 24px 28px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--light-orange);
}

.post-body .post-callout p {
  font-size: 16px;
}

/* FAQ block (paired with FAQPage structured data) */

.post-faq {
  margin: 36px 0;
}

.post-faq details {
  border-top: 1px solid var(--hairline);
}

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

.post-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

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

.post-faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--tag-grey);
  flex: none;
}

.post-faq details[open] summary::after {
  content: "−";
}

.post-faq details>p {
  padding: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- article footer ---------- */

.post-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
}

.post-author-glyph {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--light-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-author-glyph .lyon-logo {
  margin-right: 0;
  width: 20px;
  height: 20px;
}

.post-author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.post-author-role {
  font-size: 14px;
  color: var(--tag-grey);
}

.post-cta {
  margin: 24px 0 0;
  padding: 40px 0 96px;
  text-align: center;
}

.post-cta-inner {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 48px 32px;
  background: var(--light-orange);
}

.post-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

.post-cta-sub {
  margin: 14px auto 26px;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.65;
}
/* ---------- company ---------- */

.company {
  border-top: 1px solid var(--hairline);
}

.company-story {
  max-width: 900px;
}

.company-lede {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 28px;
}

.company-lede em {
  color: var(--orange);
}

.company-story p:not(.company-lede) {
  max-width: 620px;
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body-text);
}

.company-story p:last-child {
  margin-bottom: 0;
}

/* ---------- cookie consent banner (LGPD/GDPR) ---------- */

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 0 12px 32px rgba(16, 16, 16, 0.12);
}

.cookie-banner-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body-text);
}

.cookie-banner-text a {
  color: var(--ink);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* <button> elements carry a UA border that <a class="btn"> never had */
.cookie-banner .btn-primary {
  border: none;
}

.cookie-decline {
  border: 1px solid var(--hairline);
  color: var(--ink);
  background: transparent;
}

.cookie-decline:hover {
  border-color: var(--ink);
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}
