/* =========================================================================
   Khaleha 3alena — warm editorial commerce system (per DESIGN.md)
   Tinted cream canvas + coral accent + dark-navy product surfaces.
   Display: Cormorant Garamond (serif, 500/600, negative tracking)
   Body/UI: Inter 400/500/600 · Code: JetBrains Mono
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  /* brand & accent */
  --primary:          #cc785c;
  --primary-active:   #a9583e;
  --primary-disabled: #e6dfd8;
  --accent-teal:      #5db8a6;
  --accent-amber:     #e8a55a;

  /* surface */
  --canvas:              #faf9f5;
  --surface-soft:        #f5f0e8;
  --surface-card:        #efe9de;
  --surface-cream-strong:#e8e0d2;
  --surface-dark:        #181715;
  --surface-dark-elevated:#252320;
  --surface-dark-soft:   #1f1e1b;
  --hairline:            #e6dfd8;
  --hairline-soft:       #ebe6df;

  /* text */
  --ink:         #141413;
  --body-strong: #252523;
  --body:        #3d3d3a;
  --muted:       #6c6a64;
  --muted-soft:  #8e8b82;
  --on-primary:  #ffffff;
  --on-dark:     #faf9f5;
  --on-dark-soft:#a09d96;

  /* semantic */
  --success: #5db872;
  --warning: #d4a017;
  --error:   #c64545;
  --sale:    #c64545;
  --info:    #5db8a6;

  /* semantic aliases the components consume */
  --bg:            var(--canvas);
  --surface:       var(--canvas);
  --surface-2:     var(--surface-soft);
  --border:        var(--hairline);
  --border-2:      var(--hairline);
  --text:          var(--ink);
  --text-soft:     var(--body);
  --text-mute:     var(--muted);
  --charcoal:      var(--body);
  --mute:          var(--muted);
  --stone:         var(--muted-soft);
  --soft-cloud:    var(--surface-soft);

  --primary-contrast: var(--on-primary);
  --brand:            var(--primary);
  --brand-text:       var(--primary);

  --success-bg: #e7f2e9;
  --warning-bg: #f7efdb;
  --danger:     var(--error);   --danger-bg: #f8e7e7;
  --info-bg:    #e5f2ef;

  --radius:      12px;   /* content + product cards  (rounded.lg) */
  --radius-sm:   8px;    /* buttons + inputs         (rounded.md) */
  --radius-lg:   16px;   /* hero container / marquee (rounded.xl) */
  --radius-md:   12px;
  --radius-xs:   6px;
  --radius-pill: 9999px;

  --shadow-sm: none;
  --shadow:    none;
  --shadow-lg: none;

  --container: 1200px;
  --nav-h: 64px;
  --sp: 8px;

  --font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: 'Cormorant Garamond', 'EB Garamond', Garamond, 'Times New Roman', serif;
}

/* Dark toggle — map onto the dark-navy product surfaces. Not a DESIGN.md
   surface mode, but the app ships a theme switch we must keep coherent. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas:              #181715;
  --surface-soft:        #1f1e1b;
  --surface-card:        #1f1e1b;
  --surface-cream-strong:#252320;
  --hairline:            #322f2b;
  --hairline-soft:       #2a2825;
  --ink:         #faf9f5;
  --body-strong: #ece9e2;
  --body:        #d7d3ca;
  --muted:       #a09d96;
  --muted-soft:  #86837c;
  --on-dark:     #faf9f5;

  --bg: var(--canvas); --surface: var(--canvas); --surface-2: var(--surface-soft);
  --border: var(--hairline); --border-2: var(--hairline);
  --text: var(--ink); --text-soft: var(--body); --text-mute: var(--muted);
  --charcoal: var(--body); --mute: var(--muted); --stone: var(--muted-soft);
  --soft-cloud: var(--surface-soft);
  --primary: #d98c72; --primary-active: #c0735a;
  --brand: var(--primary); --brand-text: var(--primary);
  --success: #6fc584; --success-bg: rgba(111,197,132,.16);
  --info: #6fc7b8; --info-bg: rgba(111,199,184,.16);
  --error: #e07a7a; --sale: #e07a7a; --danger: #e07a7a; --danger-bg: rgba(224,122,122,.16);
  --warning: #e0b652; --warning-bg: rgba(224,182,82,.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #181715; --surface-soft: #1f1e1b; --surface-card: #1f1e1b;
    --surface-cream-strong: #252320; --hairline: #322f2b; --hairline-soft: #2a2825;
    --ink: #faf9f5; --body-strong: #ece9e2; --body: #d7d3ca; --muted: #a09d96; --muted-soft: #86837c;
    --on-dark: #faf9f5;
    --bg: var(--canvas); --surface: var(--canvas); --surface-2: var(--surface-soft);
    --border: var(--hairline); --border-2: var(--hairline);
    --text: var(--ink); --text-soft: var(--body); --text-mute: var(--muted);
    --charcoal: var(--body); --mute: var(--muted); --stone: var(--muted-soft);
    --soft-cloud: var(--surface-soft);
    --primary: #d98c72; --primary-active: #c0735a;
    --brand: var(--primary); --brand-text: var(--primary);
    --success: #6fc584; --success-bg: rgba(111,197,132,.16);
    --info: #6fc7b8; --info-bg: rgba(111,199,184,.16);
    --error: #e07a7a; --sale: #e07a7a; --danger: #e07a7a; --danger-bg: rgba(224,122,122,.16);
    --warning: #e0b652; --warning-bg: rgba(224,182,82,.16);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--body); }
small { font-size: .8125rem; }
code, .mono { font-family: var(--mono); font-size: .875em; }

.display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-size: clamp(2.75rem, 1.4rem + 6.5vw, 5rem);
  color: var(--ink);
}

/* ---------- layout utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2rem; } }

.stack   { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: .5rem; }
.stack-lg { display: flex; flex-direction: column; gap: 2rem; }
.row     { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.grid    { display: grid; gap: 1rem; }
.push    { margin-left: auto; }
.center  { text-align: center; }
.muted   { color: var(--muted); }
.soft    { color: var(--body); }
.section { padding-block: clamp(56px, 8vw, 96px); }
.divider { border: 0; border-top: 1px solid var(--hairline); margin: 0; }
.hidden  { display: none !important; }
.nowrap  { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.text-brand { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--error); }
.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; }

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

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface-card);
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 500; font-size: .9rem; letter-spacing: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  transition: background-color .12s, opacity .12s, transform .06s;
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn svg { width: 1em; height: 1em; }

.btn-primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); }
.btn-primary:active { --btn-bg: var(--primary-active); }
.btn-brand   { --btn-bg: var(--primary); --btn-fg: var(--on-primary); }
.btn-brand:active { --btn-bg: var(--primary-active); }
.btn-outline { --btn-bg: var(--canvas); --btn-fg: var(--ink); --btn-bd: var(--hairline); }
.btn-secondary { --btn-bg: var(--surface-card); --btn-fg: var(--ink); }
.btn-ghost   { --btn-bg: transparent; --btn-fg: var(--ink); border: 0; padding-inline: 12px; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-danger  { --btn-bg: transparent; --btn-fg: var(--error); border: 0; }
.btn-on-image { --btn-bg: var(--canvas); --btn-fg: var(--ink); }
.btn-sm { padding: 8px 16px; min-height: 38px; font-size: .8rem; }
.btn-lg { padding: 14px 28px; min-height: 48px; font-size: 1rem; }
.btn-icon { padding: 0; width: 40px; height: 40px; min-height: 40px; border-radius: var(--radius-pill); background: transparent; border: 0; }
.btn-icon:hover { background: var(--surface-card); }
.btn-block { width: 100%; }

/* theme toggle: icon reflects the theme currently active — sun in light mode,
   moon once dark is active — so the button gives visual feedback, not just
   an aria-label change. */
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-light { display: none; }
  :root:not([data-theme="light"]) .theme-icon-dark { display: block; }
}

/* ---------- cards / containers ---------- */
.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.card-pad { padding: 32px; }
.card-hover { transition: border-color .15s; }
.card-hover:hover { border-color: var(--primary); }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 500; line-height: 1.4;
  background: var(--surface-card); color: var(--ink);
  border: 1px solid transparent;
}
.badge svg { width: .8em; height: .8em; }
.badge-info    { color: #2f6f63; background: var(--info-bg); }
.badge-success { color: #2f7a45; background: var(--success-bg); }
.badge-warning { color: #8a6a12; background: var(--warning-bg); }
.badge-danger  { color: var(--error); background: var(--danger-bg); }
.badge-brand   { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }
.badge-neutral { color: var(--muted); background: var(--hairline-soft); }

/* ---------- chips (filter) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline); background: var(--canvas);
  font-size: .85rem; font-weight: 500; color: var(--muted);
}
.chip.is-active { background: var(--surface-cream-strong); color: var(--ink); border-color: var(--surface-cream-strong); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .label { font-size: .8rem; font-weight: 500; color: var(--body-strong); }
.input, .select, .textarea {
  width: 100%;
  padding: 10px 14px;
  min-height: 40px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
.textarea { resize: vertical; min-height: 5rem; }
.input:disabled, .select:disabled { background: var(--surface-card); color: var(--muted); }
.field-error { color: var(--error); font-size: .78rem; }
.input-group { position: relative; }
.input-group .input { padding-left: 2.25rem; background: var(--canvas); border-color: var(--hairline); border-radius: var(--radius-sm); }
.input-group .input:focus { border-color: var(--primary); }
.input-group > svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--muted); pointer-events: none; }

.check { display: flex; align-items: flex-start; gap: .55rem; font-size: .875rem; cursor: pointer; }
.check input { margin-top: .15rem; width: 1rem; height: 1rem; accent-color: var(--primary); }

.option-card {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: 16px; border: 1px solid var(--hairline); border-radius: var(--radius);
  cursor: pointer; transition: border-color .12s;
}
.option-card:hover { border-color: var(--primary); }
.option-card:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.option-card input { margin-top: .2rem; accent-color: var(--primary); }

/* ---------- navbar (cream, ink, flat) ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--canvas);
  box-shadow: inset 0 -1px 0 var(--hairline);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
@media (max-width: 400px) {
  .brand { font-size: .92rem; gap: .4rem; }
  .nav-actions { gap: .35rem; }
  .nav-actions .btn-icon { width: 36px; height: 36px; min-height: 36px; }
}
.brand-mark { width: 32px; height: 32px; background: var(--surface-card); color: var(--ink); display: grid; place-items: center; overflow: hidden; }
.brand-mark svg { width: 18px; height: 18px; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
/* logo variant — the wordmark's own art carries its colour, no chip backdrop needed */
.brand-mark.brand-mark-logo, .footer .brand-mark.brand-mark-logo { background: transparent; }
.brand .amber { color: var(--primary); }
.nav-links { display: none; gap: 1.5rem; }
.nav-links a { padding: 4px 0; font-size: .875rem; font-weight: 500; color: var(--body); border-bottom: 2px solid transparent; transition: color .12s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); border-color: var(--primary); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nav-search { display: none; }
@media (min-width: 900px) { .nav-links { display: flex; } }
@media (min-width: 1100px) { .nav-search { display: block; width: 14rem; } }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 0; right: 0;
  min-width: 1rem; height: 1rem; padding: 0 .2rem;
  background: var(--primary); color: var(--on-primary);
  border-radius: var(--radius-pill); font-size: .62rem; font-weight: 700;
  display: grid; place-items: center;
}
.avatar {
  width: 36px; height: 36px; border-radius: var(--radius-pill);
  background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center; font-size: .78rem; font-weight: 600;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- dropdown menu (anchored, e.g. profile menu) ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 45;
  width: max-content; min-width: 15rem; max-width: calc(100vw - 2rem);
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(20,20,19,.12), 0 2px 8px rgba(20,20,19,.06);
  padding: 8px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.dropdown-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown-header { padding: 8px 10px 10px; }
.dropdown-header strong { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); }
.dropdown-header p { font-size: .8rem; margin-top: 2px; overflow-wrap: anywhere; }
.dropdown-divider { border: 0; border-top: 1px solid var(--hairline-soft); margin: 6px 2px; }
.dropdown-item {
  display: flex; align-items: center; gap: .65rem; width: 100%;
  padding: 9px 10px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--ink); text-align: left;
}
.dropdown-item svg { flex-shrink: 0; color: var(--muted); }
.dropdown-item:hover { background: var(--surface-card); }
.dropdown-item-danger { color: var(--error); }
.dropdown-item-danger svg { color: var(--error); }
.dropdown-item-danger:hover { background: var(--danger-bg); }

/* ---------- drawer / dialog ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(20,20,19,.5); display: none; }
.scrim.is-open { display: block; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 51;
  width: min(90vw, 24rem); background: var(--canvas);
  box-shadow: inset 1px 0 0 var(--hairline);
  padding: 24px; transform: translateX(100%); transition: transform .22s ease; overflow-y: auto;
}
.drawer.left { right: auto; left: 0; box-shadow: inset -1px 0 0 var(--hairline); transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0); }

.dialog { position: fixed; inset: 0; z-index: 51; display: none; align-items: center; justify-content: center; padding: 1rem; }
.dialog.is-open { display: flex; }
.dialog-panel { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-lg); width: 100%; max-width: 34rem; max-height: 90vh; overflow-y: auto; padding: 32px; }
.dialog-panel.wide { max-width: 44rem; }

/* ---------- table (responsive → stacked cards) ---------- */
.table-wrap { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.data th { text-align: left; font-weight: 500; color: var(--muted); padding: 12px 14px; background: var(--surface-soft); box-shadow: inset 0 -1px 0 var(--hairline); }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--hairline-soft); color: var(--body); }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-soft); }
.t-end { text-align: right; }
/* "table.data th" above out-specifies the plain ".t-end" utility, so a right-aligned
   header label (Total, Status, …) was silently staying left-aligned — pin it back. */
table.data th.t-end { text-align: right; }

.cards-list { display: none; flex-direction: column; gap: .5rem; }
.card-row { border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--canvas); padding: 16px; }
.card-row dl { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; }
.card-row dl > div { display: flex; justify-content: space-between; gap: 1rem; }
.card-row dt { color: var(--muted); }
@media (max-width: 767px) { .table-wrap { display: none; } .cards-list { display: flex; } }

/* ---------- module card ---------- */
.module-card { display: flex; flex-direction: column; background: transparent; }
.module-card .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--surface-card); overflow: hidden; border-radius: var(--radius); }
.module-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.module-card .thumb-badges { position: absolute; inset: 8px 8px auto; display: flex; justify-content: space-between; gap: .5rem; }
.module-card .body { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 0; }
.module-card .meta { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .8rem; color: var(--muted); }
.module-card .title { font-weight: 500; font-size: .95rem; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.module-card .desc { font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.module-card .price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price .now { font-weight: 600; font-size: 1rem; color: var(--ink); }
.price .was { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.price .off { font-size: .8rem; color: var(--error); font-weight: 500; }
.price.on-sale .now { color: var(--error); }

/* ---------- hero (editorial 6/6 split — cream copy left, dark showcase right) ---------- */
.hero { background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding: clamp(48px, 4vw + 24px, 96px) 1rem;
}
@media (min-width: 640px) { .hero-grid { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .hero-grid { padding-inline: 2rem; grid-template-columns: 1fr .92fr; gap: 4.5rem; } }

.hero-copy .badge { margin-bottom: 1.75rem; }
.hero-copy .display { max-width: 13ch; }
.hero-copy p { max-width: 40ch; margin-top: 22px; font-size: 1.05rem; }
.hero-actions { margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; column-gap: 2.5rem; row-gap: 1rem; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.hero-stats dt { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-soft); }
.hero-stats dd { font-size: .95rem; font-weight: 500; color: var(--ink); margin-top: 4px; }

.hero-illustration-card {
  position: relative; overflow: hidden;
  background: var(--surface-dark); color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 2vw + 1.25rem, 3rem);
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-illustration-card::before {
  content: ""; position: absolute; inset: -25% -30% auto auto; z-index: 0;
  width: 65%; aspect-ratio: 1/1;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--primary) 26%, transparent) 0%, transparent 70%);
}
.hero-illustration-card::after {
  content: ""; position: absolute; left: -20%; bottom: -30%; z-index: 0;
  width: 55%; aspect-ratio: 1/1;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent-teal) 16%, transparent) 0%, transparent 70%);
}
.hero-chrome { position: relative; z-index: 1; display: flex; gap: 6px; margin-bottom: 2.25rem; }
.hero-chrome span { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-dark-elevated); }
.hero-figure { position: relative; z-index: 1; }
.hero-figure .num {
  font-family: var(--display); font-weight: 500; line-height: 1; letter-spacing: -0.02em;
  font-size: clamp(3.25rem, 2vw + 2.5rem, 4.5rem); color: var(--on-dark);
}
.hero-figure .num-label { display: block; margin-top: 8px; max-width: 26ch; font-size: .95rem; color: var(--on-dark-soft); }
.hero-figure .divider-dark { border: 0; border-top: 1px solid var(--surface-dark-elevated); margin: 1.75rem 0; }
.hero-includes { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.hero-includes li { display: flex; align-items: center; gap: .65rem; font-size: .95rem; color: var(--on-dark); }
.hero-includes svg { color: var(--primary); flex-shrink: 0; }
@media (max-width: 1023px) { .hero-copy .display { max-width: none; } }

/* ---------- testimonials (homepage) ---------- */
.testimonial-card { display: flex; flex-direction: column; gap: 1.25rem; height: 100%; }
.testimonial-card svg { width: .95rem; height: .95rem; }
.testimonial-card .star-filled svg { fill: var(--primary); color: var(--primary); }
.testimonial-card .star-empty svg { color: var(--hairline); }
.testimonial-quote { flex: 1; font-size: 1.02rem; line-height: 1.6; color: var(--body-strong); }

/* ---------- catalogue (PLP) ---------- */
.sub-nav { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 18px; box-shadow: inset 0 -1px 0 var(--hairline); margin-bottom: 24px; }
.catalog-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .catalog-layout { grid-template-columns: 220px 1fr; } }
.filter-rail { display: none; }
@media (min-width: 1024px) { .filter-rail { display: block; } .filter-rail form { position: sticky; top: calc(var(--nav-h) + 1rem); } .filters-toggle { display: none; } }
.filter-group h3 { font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: .75rem; }
.filter-group .check { margin-bottom: .55rem; }
.catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
@media (max-width: 1023px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px)  { .catalog-grid { grid-template-columns: 1fr; } }

/* ---------- module detail (PDP) ---------- */
.pdp-layout { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 1024px) { .pdp-layout { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.pdp-side { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .pdp-side { position: sticky; top: calc(var(--nav-h) + 1rem); align-self: start; } }
.gallery-main { aspect-ratio: 4 / 3; background: var(--surface-card); overflow: hidden; border-radius: var(--radius); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gallery-thumb { width: 4.5rem; aspect-ratio: 1/1; overflow: hidden; border: 1px solid transparent; border-radius: var(--radius-sm); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--primary); }

.deliverables { list-style: none; padding: 0; margin-top: .75rem; display: grid; gap: 0; }
.deliverables li { display: flex; align-items: flex-start; gap: .55rem; padding: 16px 0; box-shadow: inset 0 -1px 0 var(--hairline); font-size: .9rem; color: var(--body); }
.deliverables li svg { flex-shrink: 0; margin-top: .1rem; color: var(--primary); }
.deliverables li.excluded { color: var(--muted); }
.deliverables li.excluded span { text-decoration: line-through; }
.deliverables li.excluded svg { color: var(--muted); }
@media (min-width: 560px) { .deliverables { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

.trust-list { list-style: none; padding: 18px 0 0; margin-top: 18px; box-shadow: inset 0 1px 0 var(--hairline); display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; color: var(--body); }
.trust-list li { display: flex; align-items: flex-start; gap: .5rem; }
.trust-list svg { flex-shrink: 0; margin-top: .15rem; color: var(--primary); }

.course-fit { list-style: none; padding: 0; margin-top: .75rem; display: flex; flex-direction: column; gap: .6rem; font-size: .85rem; }
.course-fit li { display: flex; flex-direction: column; }
.course-fit .muted { font-size: .78rem; }

/* ---------- cart / checkout / orders ---------- */
.cart-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 20rem; align-items: start; } }
.cart-line { display: flex; gap: 1rem; padding: 16px; }
.cart-thumb { width: 8rem; aspect-ratio: 1/1; background: var(--surface-card); overflow: hidden; flex-shrink: 0; border-radius: var(--radius-sm); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--hairline); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { padding: 6px 12px; }
.qty span { width: 2.25rem; text-align: center; font-size: .875rem; }

.checkout-layout, .order-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .checkout-layout { grid-template-columns: 1fr 22rem; align-items: start; }
  .order-layout { grid-template-columns: 1fr 20rem; align-items: start; }
}
.pay-instructions { border: 1px solid var(--hairline); background: var(--surface-soft); padding: 16px; font-size: .85rem; border-radius: var(--radius); }
.pay-instructions ul { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.pay-instructions li { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; width: 100%; padding: 24px 16px; border: 1px dashed var(--hairline); background: var(--surface-soft); border-radius: var(--radius); }
.dropzone:hover { border-color: var(--primary); }
.proof-preview { max-width: 14rem; border: 1px solid var(--hairline); border-radius: var(--radius-sm); }
.copy-btn { color: var(--muted); }
.copy-btn:hover { color: var(--primary); }

/* ---------- stepper / progress ---------- */
.steps { display: flex; align-items: flex-start; list-style: none; padding: 0; margin: 0; }
.steps .step { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex: 1; }
.steps .step:last-child { flex: none; }
.steps .dot { width: 2rem; height: 2rem; border-radius: var(--radius-pill); display: grid; place-items: center; border: 1px solid var(--hairline); color: var(--muted); font-weight: 500; font-size: .8rem; }
.steps .dot.done { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.steps .dot.current { border-color: var(--primary); color: var(--primary); }
.steps .bar { flex: 1; height: 1px; background: var(--hairline); margin: 1rem .5rem 0; }
.steps .bar.done { background: var(--primary); }
.step-label { font-size: .72rem; font-weight: 500; color: var(--muted); }

.timeline { display: flex; flex-direction: column; gap: 1rem; }
.timeline .t-row { display: flex; gap: .75rem; }
.timeline .t-dot { width: 1.75rem; height: 1.75rem; border-radius: var(--radius-pill); display: grid; place-items: center; border: 1px solid var(--hairline); color: var(--muted); flex-shrink: 0; }
.timeline .t-dot.done { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.timeline .t-dot.current { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.progress { height: .5rem; background: var(--surface-card); overflow: hidden; border-radius: var(--radius-pill); }
.progress > span { display: block; height: 100%; background: var(--primary); transition: width .4s ease; }

/* ---------- delivery status (order deadline card) ---------- */
.delivery-status h2 svg { color: var(--muted); }
.delivery-status-info h2 svg { color: var(--info); }
.delivery-status-warning h2 svg { color: var(--warning); }
.delivery-status-danger h2 svg { color: var(--error); }
.delivery-status-danger { border-color: var(--error); }
.delivery-status-info .progress > span { background: var(--info); }
.delivery-status-warning .progress > span { background: var(--warning); }
.delivery-status-danger .progress > span { background: var(--error); }

/* ---------- empty state ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 56px 24px; border: 1px solid var(--hairline); background: var(--surface-soft); border-radius: var(--radius); }
.empty .icon { width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--canvas); border: 1px solid var(--hairline); display: grid; place-items: center; color: var(--primary); margin-bottom: .5rem; }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--surface-dark); color: var(--on-dark); border: 0; border-radius: var(--radius-sm); padding: 12px 16px; font-size: .85rem; max-width: 20rem; animation: toast-in .18s ease; }
.toast.error { background: var(--error); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- footer (dark navy — closes every page) ---------- */
.footer { margin-top: auto; background: var(--surface-dark); color: var(--on-dark-soft); }
.footer-grid { display: grid; gap: 2rem; padding-block: 64px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.footer .brand { color: var(--on-dark); }
.footer .brand-mark { background: var(--surface-dark-elevated); color: var(--on-dark); }
.footer .brand .amber { color: var(--primary); }
.footer h4 { font-size: .95rem; font-weight: 600; color: var(--on-dark); font-family: var(--font); letter-spacing: 0; }
.footer p { color: var(--on-dark-soft); }
.footer .muted { color: var(--on-dark-soft); }
.footer ul { list-style: none; padding: 0; margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.footer a { font-size: .875rem; color: var(--on-dark-soft); }
.footer a:hover { color: var(--on-dark); }
.footer-bottom { box-shadow: inset 0 1px 0 var(--surface-dark-elevated); padding-block: 20px; font-size: .75rem; color: var(--on-dark-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; letter-spacing: 0; text-transform: none; }

/* ---------- misc ---------- */
.breadcrumb { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); }
.breadcrumb svg { width: .9rem; height: .9rem; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose p { margin-bottom: 1rem; color: var(--body); }
.prose p:last-child { margin-bottom: 0; }
.kbd, .tag { display: inline-block; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface-card); border: 1px solid transparent; font-size: .78rem; }
.icon-16 { width: 1rem; height: 1rem; }
.icon-20 { width: 1.25rem; height: 1.25rem; }

.auth-wrap { width: 100%; max-width: 24rem; }
.google-btn svg { width: 1rem; height: 1rem; }

/* ---------- admin ---------- */
.admin-body { min-height: 100dvh; background: var(--surface-soft); }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 16rem; background: var(--canvas); box-shadow: inset -1px 0 0 var(--hairline); padding: 1rem; display: none; flex-direction: column; }
@media (min-width: 1024px) { .admin-sidebar { display: flex; } .admin-main { padding-left: 16rem; } }
.admin-nav { display: flex; flex-direction: column; gap: .25rem; margin-top: 1.5rem; flex: 1; }
.admin-nav a { display: flex; align-items: center; gap: .65rem; padding: 10px 12px; font-size: .9rem; font-weight: 500; color: var(--muted); border-radius: var(--radius-sm); }
.admin-nav a:hover { background: var(--surface-soft); color: var(--ink); }
.admin-nav a.is-active { background: var(--primary); color: var(--on-primary); }
.admin-topbar { position: sticky; top: 0; z-index: 30; height: 3.5rem; display: flex; align-items: center; gap: .75rem; padding: 0 1rem; background: var(--canvas); box-shadow: inset 0 -1px 0 var(--hairline); }
@media (min-width: 1024px) { .admin-topbar { padding: 0 2rem; } .admin-burger { display: none; } }
.admin-content { padding: 1.25rem; }
@media (min-width: 640px) { .admin-content { padding: 2rem; } }
.metric-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .metric-grid { grid-template-columns: 1fr; } }
.chart { width: 100%; height: 260px; }
.chart .area { fill: color-mix(in srgb, var(--primary) 12%, transparent); }
/* The SVG stretches its viewBox non-uniformly to fill the card (preserveAspectRatio="none"),
   which without vector-effect drags stroke-width along for the ride — thick on one diagonal,
   hairline-thin and jagged on the other. non-scaling-stroke keeps it a crisp, even line. */
.chart .line { fill: none; stroke: var(--primary); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .grid-line { stroke: var(--hairline); stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart-wrap { position: relative; }
.chart .dot { fill: var(--canvas); stroke: var(--primary); stroke-width: 2; opacity: 0; pointer-events: none; vector-effect: non-scaling-stroke; }
.chart .dot.is-active { opacity: 1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-tooltip {
  position: absolute; top: 0; left: 0; transform: translate(-50%, -100%);
  background: var(--ink); color: var(--canvas); font-size: .75rem; line-height: 1.35;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .12s ease; z-index: 5;
}
.chart-tooltip.is-visible { opacity: 1; }
.chart-tooltip strong { display: block; font-size: .8rem; }
.chart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  height: 200px; color: var(--text-mute); border: 1px dashed var(--border-2); border-radius: var(--radius);
}
.chart-empty p { font-size: .85rem; }

/* ---------- dashboard: needs-attention panel ---------- */
.attention-panel.attention-clear { color: var(--success); font-weight: 600; font-size: .9rem; }
.attention-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1rem; }
.attention-heading { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; }
.attention-list { display: flex; flex-direction: column; gap: .3rem; margin-top: .6rem; }
.attention-list a {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
  padding: 8px 10px; border-radius: var(--radius-sm); font-size: .84rem; color: var(--body);
}
.attention-list a:hover { background: var(--surface-soft); }
.attention-list a span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- taxonomy tree (admin) ---------- */
.tax-tree { display: flex; flex-direction: column; gap: 12px; }
.tax-faculty { border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--canvas); overflow: hidden; }
.tax-faculty > summary,
.tax-year > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem;
  padding: 14px 16px; font-weight: 500;
}
.tax-faculty > summary::-webkit-details-marker,
.tax-year > summary::-webkit-details-marker { display: none; }
.tax-faculty > summary::before,
.tax-year > summary::before {
  content: ""; width: 8px; height: 8px; flex-shrink: 0;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg); transition: transform .15s;
}
.tax-faculty[open] > summary::before,
.tax-year[open] > summary::before { transform: rotate(45deg); }
.tax-faculty > summary { background: var(--surface-soft); box-shadow: inset 0 -1px 0 var(--hairline); }
.tax-faculty > summary .tax-count { margin-left: auto; font-weight: 400; font-size: .8rem; color: var(--muted); }
.tax-faculty-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.tax-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.tax-year { border: 1px solid var(--hairline-soft); border-radius: var(--radius-sm); }
.tax-year > summary { padding: 10px 14px; font-size: .9rem; }
.tax-year > summary .tax-count { margin-left: auto; font-weight: 400; font-size: .78rem; color: var(--muted); }
.tax-year-body { padding: 0 14px 14px; display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .tax-year-body { grid-template-columns: 1fr; } }

.tax-term { border: 1px solid var(--hairline-soft); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--canvas); }
.tax-term-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tax-term-head strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--body-strong); }
.tax-course { display: flex; align-items: baseline; gap: .5rem; font-size: .85rem; padding: 6px 0; box-shadow: inset 0 -1px 0 var(--hairline-soft); }
.tax-course:last-of-type { box-shadow: none; }
.tax-course .code { font-family: var(--mono); font-size: .75rem; color: var(--muted); flex-shrink: 0; }
.tax-course form { margin-left: auto; }
.tax-course-empty { font-size: .8rem; color: var(--muted-soft); padding: 4px 0; }

/* =========================================================================
   Motion — quiet, editorial: things settle into place, nothing bounces.
   Respects prefers-reduced-motion throughout.
   ========================================================================= */
@keyframes fade-up   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop        { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes chart-line-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes spin       { to { transform: rotate(360deg); } }

/* smooth, consistent transitions on interactive surfaces */
a, .btn, .card, .card-hover, .module-card .thumb img, .chip, .badge, .nav-links a,
.avatar, .theme-icon-light, .theme-icon-dark, .gallery-thumb, .category-tab, .admin-nav a {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

/* cards: a quiet lift instead of a static border flip */
.card-hover:hover, .module-card:hover .thumb, .connector-tile:hover, .option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(20,20,19,.08);
}
.module-card .thumb { transition: box-shadow .2s ease, transform .2s ease; }
.module-card .thumb img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.module-card:hover .thumb img { transform: scale(1.06); }

/* nav links: underline eases in from the left instead of snapping */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px;
  background: var(--primary); transition: right .22s cubic-bezier(.2,.7,.3,1);
}
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { border-color: transparent; }

/* buttons: a light lift on hover, the existing press-scale stays for :active */
.btn-primary:hover, .btn-outline:hover, .btn-secondary:hover { transform: translateY(-1px); }
.btn-primary:hover { box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent); }

/* theme toggle: crossfade + a quarter-turn instead of an instant swap */
.theme-icon-light, .theme-icon-dark { transition: opacity .25s ease, transform .35s ease; }
:root[data-theme="dark"] .theme-icon-dark,
:root:not([data-theme="light"]) .theme-icon-dark { animation: fade-in .3s ease; }
.btn[data-theme-toggle]:active svg { transform: rotate(25deg); }

/* cart count: a small pop whenever the number changes */
.cart-count.is-bumped { animation: pop .35s ease; }

/* badges/chips: gentle feedback on hover where they're interactive */
.chip:hover { border-color: var(--primary); }
a.badge:hover { transform: translateY(-1px); }

/* dashboard chart: the revenue line wipes in on load. A stroke-dasharray "draw" effect
   would need its length recalculated per path — clip-path reveals left-to-right instead,
   which stays correct regardless of the path's actual length or the non-scaling-stroke
   vector-effect above (dash patterns render in a different unit space once that's on). */
.chart .line { clip-path: inset(0 100% 0 0); animation: chart-line-reveal 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
.chart .area { opacity: 0; animation: fade-in .8s ease .5s forwards; }

/* spinner, for any future async state */
.spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- hero: staggered entrance on load ---------- */
.hero-copy .badge,
.hero-copy .display,
.hero-copy p,
.hero-actions,
.hero-stats,
.hero-illustration-card {
  opacity: 0; animation: fade-up .7s cubic-bezier(.2,.7,.3,1) forwards;
}
.hero-copy .badge { animation-delay: .02s; }
.hero-copy .display { animation-delay: .08s; }
.hero-copy p { animation-delay: .18s; }
.hero-actions { animation-delay: .26s; }
.hero-stats { animation-delay: .34s; }
.hero-illustration-card { animation-delay: .22s; }

/* ---------- scroll reveal: repeated content grids ease up as they enter view ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .chart .line { clip-path: none; }
}
