/* Diakino website — diakino.gr
   Brand: navy #091F35, mint #31FFAB (accent on navy only), IBM Plex Sans. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }

:root {
  --navy: #091f35;
  --navy-2: #0f2b47;
  --navy-3: #18395a;
  --mint: #31ffab;
  --ink: #091f35;
  --ink-2: #3b4b5c;
  --ink-3: #5f6e7d;
  --line: #dde3e9;
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --blue: #0f62fe;
  --blue-hover: #0050e6;
  --on-navy: #ffffff;
  --on-navy-2: #b9c6d3;
  --error: #da1e28;
  --ok: #198038;
  --radius: 8px;
  --max: 1120px;
  --gutter: 20px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.on-navy :focus-visible { outline-color: var(--mint); }

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section--tint { background: var(--paper-2); }
.on-navy { background: var(--navy); color: var(--on-navy); }
.eyebrow { font-size: 0.95rem; font-weight: 500; color: var(--ink-3); margin-bottom: 14px; }
.on-navy .eyebrow { color: var(--mint); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46rem; margin-top: 18px; }
.on-navy .lead { color: var(--on-navy-2); }
.section-head { max-width: 46rem; margin-bottom: 48px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--mint { background: var(--mint); color: var(--navy); }
.btn--mint:hover, .nav .btn--mint:hover { background: #fff; color: var(--navy); }
.btn--mint:active { background: #d9fff0; color: var(--navy); }
.btn--ghost { color: var(--on-navy); border-color: rgba(255,255,255,.35); background: transparent; }
.btn--ghost:hover { color: var(--on-navy); border-color: var(--on-navy); background: rgba(255,255,255,.06); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--on-navy-2); text-decoration: none; font-size: .97rem; font-weight: 500; }
.nav a:not(.btn):hover { color: #fff; }
.nav .btn { color: var(--navy); }
@media (max-width: 900px) { .nav a:not(.btn) { display: none; } }
.nav .short { display: none; }
@media (max-width: 480px) { .nav .long { display: none; } .nav .short { display: inline; } }

/* Hero */
.hero { padding: 88px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .95rem; color: var(--on-navy-2); }
@media (max-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

/* Flow illustration in the hero */
.flow-card { margin: 0; background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 22px; }
.flow-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.flow-card__title { font-weight: 600; }
.flow-card__tag { font-size: .8rem; color: var(--on-navy-2); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.flow-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.flow-steps::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: rgba(49,255,171,.35); }
.flow-step { position: relative; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 10px 0; }
.flow-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); border: 2px solid var(--mint); display: grid; place-items: center; z-index: 1; }
.flow-dot svg { width: 16px; height: 16px; stroke: var(--mint); }
.flow-step__label { font-size: .8rem; color: var(--on-navy-2); }
.flow-step__text { font-weight: 500; line-height: 1.35; }
.flow-step__meta { font-size: .85rem; color: var(--on-navy-2); text-align: right; white-space: nowrap; }
.flow-step--done .flow-dot { background: var(--mint); }
.flow-step--done .flow-dot svg { stroke: var(--navy); }
@media (max-width: 420px) { .flow-step { grid-template-columns: 32px minmax(0,1fr); } .flow-step__meta { grid-column: 2; text-align: left; } }

/* Problem list */
.problems { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.problem { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 16px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.icon-box { width: 44px; height: 44px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; }
.icon-box svg { width: 22px; height: 22px; stroke: var(--navy); }
.problem p { color: var(--ink-2); }
.problem strong { display: block; color: var(--ink); margin-bottom: 4px; }
.callout { margin-top: 32px; font-size: 1.15rem; font-weight: 500; max-width: 46rem; border-left: 3px solid var(--navy); padding-left: 18px; }
@media (max-width: 760px) { .problems { grid-template-columns: minmax(0,1fr); } }

/* The flow: three pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; counter-reset: pillar; }
.pillar { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: var(--paper); display: flex; flex-direction: column; }
.pillar__step { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-3); font-size: .95rem; margin-bottom: 18px; }
.pillar__step span { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--mint); display: grid; place-items: center; font-size: .85rem; }
.pillar h3 { margin-bottom: 18px; font-size: 1.3rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 14px; height: 8px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.on-navy .ticks li { color: var(--on-navy-2); }
.on-navy .ticks li::before { border-color: var(--mint); }
.flow-arrow { display: none; }
@media (max-width: 900px) { .pillars { grid-template-columns: minmax(0,1fr); } }

/* Greek trade band */
.trade { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: start; }
.trade-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.trade-item { background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 20px; }
.trade-item strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.trade-item p { color: var(--on-navy-2); font-size: .97rem; line-height: 1.5; }
.fine { font-size: .92rem; color: var(--on-navy-2); margin-top: 24px; max-width: 34rem; }
@media (max-width: 900px) { .trade { grid-template-columns: minmax(0,1fr); gap: 36px; } }
@media (max-width: 520px) { .trade-grid { grid-template-columns: minmax(0,1fr); } }

/* On your side */
.sides { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.side { padding-top: 20px; border-top: 2px solid var(--navy); }
.side h3 { font-size: 1.1rem; margin-bottom: 8px; }
.side p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 960px) { .sides { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .sides { grid-template-columns: minmax(0,1fr); } }

/* Who it's for */
.who { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 32px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.fact b { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.fact span { font-size: .92rem; color: var(--ink-3); }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.roles li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.roles b { font-weight: 600; }
.roles span { color: var(--ink-2); }
@media (max-width: 900px) { .who { grid-template-columns: minmax(0,1fr); gap: 40px; } }
@media (max-width: 560px) { .roles li { grid-template-columns: minmax(0,1fr); gap: 2px; } .facts { grid-template-columns: minmax(0,1fr); } }

/* Pilot steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--navy); font-weight: 600; margin-bottom: 18px; }
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0,1fr); } }

/* FAQ */
.faq { max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 42rem; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.contact-aside p + p { margin-top: 14px; }
.contact-aside a { color: var(--mint); }
.form { background: var(--paper); color: var(--ink); border-radius: 12px; padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .95rem; font-weight: 500; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #a6b2be; border-radius: 6px; padding: 11px 12px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: .88rem; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.consent { font-size: .9rem; color: var(--ink-3); margin-top: 18px; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 6px; font-size: .97rem; }
.form-status:empty { display: none; }
.form-status--ok { background: #defbe6; color: #0e6027; }
.form-status--error { background: #fff1f1; color: #a2191f; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0,1fr); gap: 36px; } }
@media (max-width: 560px) { .form { padding: 22px; } .form-grid { grid-template-columns: minmax(0,1fr); } }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-2); padding: 48px 0 40px; border-top: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-top img { height: 24px; width: auto; margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.footer-links a { color: var(--on-navy-2); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.footer-bottom a { color: var(--on-navy-2); }

/* Legal page */
.legal { padding: 64px 0 96px; }
.legal .wrap > * { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 12px 0 0; }
.legal li + li { margin-top: 6px; }
.legal .updated { color: var(--ink-3); font-size: .95rem; }
.todo { background: #fcf4d6; color: #5c4400; padding: 0 4px; border-radius: 3px; }

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
}

/* ---------- Motion (only when .motion is set by motion.js) ---------- */

/* Header and nav */
.site-header { transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }
.nav a:not(.btn) { position: relative; transition: color .15s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a[aria-current]:not(.btn) { color: #fff; }
.nav a[aria-current]:not(.btn)::after { transform: scaleX(1); }
.btn { transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn--mint:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }

/* Hero: delivery routes behind the text */
.hero { position: relative; isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-routes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-routes .route { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.5; }
.hero-routes .route--live { stroke: rgba(49, 255, 171, .22); stroke-dasharray: 2 14; stroke-linecap: round; }
.motion .hero-routes .route--live { animation: route-flow 2.4s linear infinite; }
.hero-routes .depot { fill: var(--navy); stroke: rgba(49, 255, 171, .55); stroke-width: 1.5; }
.hero-routes .truck { fill: var(--mint); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 20% 45%, rgba(9, 31, 53, .92) 0%, rgba(9, 31, 53, .55) 55%, rgba(9, 31, 53, 0) 100%); }
@keyframes route-flow { to { stroke-dashoffset: -32; } }

/* Hero entrance */
.motion .hero .eyebrow, .motion .hero h1, .motion .hero .lead, .motion .hero-actions, .motion .hero-note, .motion .flow-card {
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.motion .hero h1 { animation-delay: .08s; }
.motion .hero .lead { animation-delay: .16s; }
.motion .hero-actions { animation-delay: .24s; }
.motion .hero-note { animation-delay: .3s; }
.motion .flow-card { animation-delay: .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Flow card: the order travels step by step */
.flow-steps::after { content: ""; position: absolute; left: 15px; top: 16px; width: 2px; height: calc((100% - 32px) * var(--p, 1)); background: var(--mint); transition: height .9s cubic-bezier(.4, 0, .2, 1); }
.flow-card.is-playing .flow-steps::before { background: rgba(255, 255, 255, .12); }
.flow-card.is-playing .flow-step { transition: opacity .4s ease; }
.flow-card.is-playing .flow-step:not(.flow-step--done):not(.flow-step--active) { opacity: .42; }
.flow-card.is-playing .flow-step:not(.flow-step--done):not(.flow-step--active) .flow-step__meta { opacity: 0; }
.flow-step__meta { transition: opacity .4s ease; }
.flow-dot { transition: background-color .35s ease, transform .35s ease; }
.flow-dot svg { transition: stroke .35s ease; }
.flow-step--active .flow-dot { transform: scale(1.08); }
.flow-step--active .flow-dot::after { content: ""; position: absolute; top: -2px; left: -2px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--mint); animation: ping 1.4s ease-out infinite; }
.flow-dot { position: relative; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.flow-card { transition: border-color .5s ease, box-shadow .5s ease; }
.flow-card.is-complete { border-color: rgba(49, 255, 171, .45); box-shadow: 0 0 0 1px rgba(49, 255, 171, .15), 0 18px 50px rgba(0, 0, 0, .25); }
.flow-card__tag { transition: color .4s, border-color .4s; }
.flow-card.is-complete .flow-card__tag { color: var(--mint); border-color: rgba(49, 255, 171, .5); }

/* Scroll reveals */
.motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Cards respond to the pointer */
.problem, .pillar, .steps li, .trade-item { transition: border-color .2s, box-shadow .2s, transform .2s; }
@media (hover: hover) {
  .problem:hover, .pillar:hover, .steps li:hover { border-color: #b9c5d1; box-shadow: 0 10px 30px rgba(9, 31, 53, .08); transform: translateY(-2px); }
  .trade-item:hover { border-color: rgba(49, 255, 171, .35); }
}
.icon-box { transition: background-color .2s; }
.problem:hover .icon-box { background: #e6ebf0; }

/* Pillars: arrows that hand over from one step to the next */
@media (min-width: 901px) {
  .pillars { gap: 44px; }
  .pillar { position: relative; }
  .pillar:not(:last-child)::after {
    content: ""; position: absolute; top: 40px; right: -36px; width: 28px; height: 12px;
    background: no-repeat center/28px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6h25M20 1l5 5-5 5' fill='none' stroke='%23091F35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  .motion .pillar:not(:last-child)::after { clip-path: inset(0 100% 0 0); transition: clip-path .6s ease; transition-delay: calc(var(--d, 0) * 90ms + .5s); }
  .motion .pillar.is-in:not(:last-child)::after { clip-path: inset(0 0 0 0); }
}

/* Pilot steps: a line that draws from first to last step */
@media (min-width: 961px) {
  .steps { position: relative; }
  .steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 42px; height: 2px; background: var(--navy); z-index: 0; transform-origin: left; }
  .steps li { position: relative; z-index: 1; }
  .motion .steps::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.4, 0, .2, 1) .2s; }
  .motion .steps.is-in::before { transform: scaleX(1); }
}
.steps li::before { transition: background-color .3s, color .3s; }
.steps li:hover::before { background: var(--navy); color: var(--mint); }

/* Facts: a quiet underline grows in */
.fact { position: relative; overflow: hidden; }
.fact::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--navy); transform-origin: left; }
.motion .fact::after { transform: scaleX(0); transition: transform .8s ease; transition-delay: calc(var(--d, 0) * 120ms + .3s); }
.motion .fact.is-in::after { transform: scaleX(1); }

/* FAQ answer eases open */
.faq details[open] p { animation: rise .35s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Keep anchored sections clear of the sticky header */
section[id] { scroll-margin-top: 68px; }
