/* ===================================================================
   ZenAgent Labs — Ink & Paper
   Light "Washi" / Dark "Sumi" · accent: hanko seal red
   =================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/fraunces-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}

:root {
  --paper: #FAF8F2;
  --paper-2: #F3F0E8;
  --ink: #1E1C18;
  --ink-soft: #5C574C;
  --line: rgba(30, 28, 24, 0.13);
  --seal: #C2402A;
  --seal-strong: #A93722;
  --on-seal: #FDFBF6;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1120px;
  --radius: 18px;
}

[data-theme='dark'] {
  --paper: #1B1914;
  --paper-2: #232019;
  --ink: #EAE6DC;
  --ink-soft: #A8A296;
  --line: rgba(234, 230, 220, 0.14);
  --seal: #DE614A;
  --seal-strong: #E97A63;
  --on-seal: #1B1914;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

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

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

body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 380;
  line-height: 1.65;
  letter-spacing: 0.001em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.theming body,
html.theming .site-header,
html.theming .card,
html.theming .stamp,
html.theming .btn-ghost {
  transition: background-color 350ms ease, color 350ms ease,
    border-color 350ms ease;
}

::selection {
  background: var(--seal);
  color: var(--on-seal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ------------------------------------------------------------------ */
/* Typography                                                          */
/* ------------------------------------------------------------------ */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  font-weight: 400;
  line-height: 1.04;
}

h1 em {
  font-style: italic;
  font-weight: 380;
  color: var(--seal);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

h3 {
  font-size: 1.25rem;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 520;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--seal);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 58ch;
  text-wrap: pretty;
}

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

/* Animated underline for inline links */
.ulink {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: color 200ms ease;
  padding-bottom: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .ulink:hover {
    color: var(--seal);
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.5em;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  background: var(--seal);
  color: var(--on-seal);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}

.btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--seal-strong);
  }
}

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

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    background: var(--paper-2);
    border-color: var(--ink-soft);
  }
}

.btn .arrow {
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover .arrow {
    transform: translateX(3px);
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 480;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-right: auto;
}

.brand .seal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--seal);
  align-self: center;
  translate: 0 1px;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 440;
  color: var(--ink-soft);
}

.nav-links a {
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--ink);
  }
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang {
  font-size: 0.82rem;
  font-weight: 460;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.lang a {
  transition: color 200ms ease;
}

.lang .active {
  color: var(--ink);
  font-weight: 560;
}

@media (hover: hover) and (pointer: fine) {
  .lang a:hover {
    color: var(--seal);
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), color 200ms ease,
    border-color 200ms ease;
}

.theme-toggle:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    color: var(--ink);
    border-color: var(--ink-soft);
  }
}

.theme-toggle .moon,
[data-theme='dark'] .theme-toggle .sun {
  display: none;
}

[data-theme='dark'] .theme-toggle .moon {
  display: block;
}

.nav .btn {
  padding: 0.62em 1.2em;
  font-size: 0.88rem;
}

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

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

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

.section {
  padding-block: clamp(76px, 12vh, 132px);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vh, 64px);
}

.section-head .lede {
  margin-top: 0.9rem;
}

.hairline {
  border: 0;
  border-top: 1px solid var(--line);
  max-width: var(--container);
  margin: 0 auto;
}

/* A single brush stroke as the pause before the final ask */
.sumi-divider {
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.sumi-divider svg {
  width: 148px;
  height: 14px;
  opacity: 0.6;
  overflow: visible;
}

.sumi-divider path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  min-height: calc(92svh - 68px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(48px, 8vh, 96px);
}

.hero-copy .eyebrow {
  margin-bottom: 1.4rem;
}

.hero-copy .lede {
  margin-top: 1.6rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 2.4rem;
}

.enso {
  position: relative;
  display: grid;
  place-items: center;
}

.enso img {
  width: min(100%, 560px);
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 99%);
  mask-image: radial-gradient(closest-side, #000 78%, transparent 99%);
  transform-origin: 56% 42%;
  animation: enso-in 1.6s var(--ease-out) both,
    enso-kenburns 26s var(--ease-in-out) 1.6s infinite alternate;
  will-change: transform, opacity;
}

@keyframes enso-in {
  from {
    opacity: 0;
    transform: scale(0.97) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Ken Burns: slow drift-zoom around an off-centre origin */
@keyframes enso-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .enso {
    order: -1;
  }
  .enso img {
    width: min(72vw, 380px);
  }
}

/* ------------------------------------------------------------------ */
/* Zen statement                                                       */
/* ------------------------------------------------------------------ */

.zen {
  padding-block: clamp(64px, 10vh, 110px);
  text-align: center;
}

.zen .eyebrow {
  margin-bottom: 1.5rem;
}

.zen-statement {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.zen-statement em {
  font-style: italic;
  font-weight: 380;
  color: var(--seal);
}

.zen-sub {
  margin: 1.4rem auto 0;
  max-width: 54ch;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

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

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.portrait {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 420px;
}

.about-copy p + p {
  margin-top: 1.1em;
}

.about-copy h2 {
  margin-bottom: 1.2rem;
}

.principle {
  margin-top: 2.2rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.principle .q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
}

.principle .q::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--seal);
  margin-right: 12px;
  translate: 0 -2px;
}

.principle .a {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

/* ------------------------------------------------------------------ */
/* Cards (results, services, teaching)                                 */
/* ------------------------------------------------------------------ */

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  background: transparent;
  transition: transform 220ms var(--ease-out), border-color 220ms ease,
    background-color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--ink) 30%, transparent);
    background: var(--paper-2);
  }
}

.card .org {
  font-size: 0.74rem;
  font-weight: 520;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.card .metric {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 460;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
  text-wrap: balance;
}

.card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Ink stamp icon chips */
.stamp {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.3rem;
  background: #faf7f0;
}

.stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card .h3-kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 520;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--seal);
  margin-bottom: 0.45rem;
}

/* ------------------------------------------------------------------ */
/* Quote                                                               */
/* ------------------------------------------------------------------ */

.quote {
  max-width: 760px;
  margin: clamp(56px, 8vh, 88px) auto 0;
  text-align: center;
}

.quote::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--seal);
  margin: 0 auto 1.6rem;
}

.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 380;
  line-height: 1.45;
  text-wrap: pretty;
}

.quote figcaption {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* Services note / CTA rows                                            */
/* ------------------------------------------------------------------ */

.note-row {
  margin-top: clamp(40px, 6vh, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.note-row p {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ */
/* Featured case study (Content Sidekick)                              */
/* ------------------------------------------------------------------ */

.feature-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: clamp(28px, 4.5vw, 60px);
}

.feature-copy .lede {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1.7rem;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5em;
  font-size: 0.97rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--seal);
}

.feature-list strong {
  color: var(--ink);
  font-weight: 520;
}

.feature-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 2rem;
}

.feature-ctas .fineprint {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.feature-visual {
  display: grid;
  gap: 14px;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 16px 18px;
}

.post-card:nth-child(2) {
  margin-left: clamp(12px, 2.5vw, 28px);
}

.post-card:nth-child(3) {
  margin-left: clamp(24px, 5vw, 56px);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

.post-chip {
  font-size: 0.64rem;
  font-weight: 520;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.post-chip.chip-live {
  background: var(--seal);
  border-color: var(--seal);
  color: var(--on-seal);
}

.post-card > p:last-child {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

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

/* ------------------------------------------------------------------ */
/* Knowledge strip                                                     */
/* ------------------------------------------------------------------ */

.section-slim {
  padding-block: clamp(48px, 7vh, 76px);
}

.cred .eyebrow {
  margin-bottom: 1.6rem;
}

.cred-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px clamp(28px, 4vw, 52px);
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cred-item svg {
  flex: none;
  color: var(--seal);
}

.cred-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.cred-sub {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.cred-cta {
  margin-left: auto;
}

@media (max-width: 700px) {
  .cred-cta {
    margin-left: 0;
  }
}

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

/* ------------------------------------------------------------------ */
/* Process                                                             */
/* ------------------------------------------------------------------ */

/* Step numerals as brush strokes: 一 二 三 — one stroke per step count */
.step .num {
  margin-bottom: 0.9rem;
}

.step .num svg {
  display: block;
  width: 46px;
  height: 30px;
  overflow: visible;
}

.step .num path {
  fill: none;
  stroke: var(--seal);
  stroke-width: 3.4;
  stroke-linecap: round;
}

html.js .step .num path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

html.js .step.reveal.in .num path {
  animation: ink-draw 700ms var(--ease-out) forwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + 150ms);
}

html.js .step.reveal.in .num path:nth-child(2) {
  animation-delay: calc(var(--reveal-delay, 0ms) + 380ms);
}

html.js .step.reveal.in .num path:nth-child(3) {
  animation-delay: calc(var(--reveal-delay, 0ms) + 610ms);
}

@keyframes ink-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

.contact {
  text-align: center;
}

.contact .section-head {
  margin-inline: auto;
}

.contact .lede {
  margin-inline: auto;
}

.contact-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 2.4rem;
}

.contact .fineprint {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.contact-alt {
  margin-top: 2.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vh, 72px) 32px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-grid .brand {
  margin-right: 0;
  margin-bottom: 12px;
  color: var(--ink);
}

.footer-grid p {
  max-width: 34ch;
  text-wrap: pretty;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 520;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover {
    color: var(--ink);
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.84rem;
}

.footer-bottom nav {
  display: flex;
  gap: 20px;
}

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

/* ------------------------------------------------------------------ */
/* Ensō background — the brush follows the reader through the page.    */
/* Blend modes melt the artwork's paper into the page: multiply on     */
/* washi (light), screen on sumi (dark). JS drives the mask offset.    */
/* ------------------------------------------------------------------ */

.enso-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.enso-bg svg {
  width: min(135vmin, 1240px);
  height: auto;
  opacity: 0.09;
  mix-blend-mode: multiply;
}

[data-theme='dark'] .enso-bg svg {
  opacity: 0.13;
  mix-blend-mode: screen;
}

.enso-bg-stroke {
  fill: none;
  stroke: #fff;
  stroke-width: 310;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* ------------------------------------------------------------------ */
/* Scroll reveal (progressive enhancement — content visible w/o JS)    */
/* ------------------------------------------------------------------ */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

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

  .enso img {
    animation: enso-in 600ms ease both;
  }

  html.js .reveal {
    transform: none;
  }

  html.js .reveal.in {
    transition: opacity 400ms ease;
  }

  .card,
  .btn,
  .theme-toggle {
    transition-property: background-color, border-color, color;
  }

  /* Ink strokes appear instantly; the background ensō still tracks
     scroll 1:1 (user-driven, no autonomous motion) */
  html.js .step.reveal.in .num path {
    animation-duration: 1ms;
    animation-delay: 0ms;
  }
}
