/* ============================================================
   moriiLabs — hypermedia studio theme
   Type: Bricolage Grotesque (display) · Inter (body) · JetBrains Mono (data)
   ============================================================ */

:root {
  /* Pastel green palette */
  --mint-50:  #f4faf6;
  --mint-100: #e7f4ec;
  --mint-200: #cdeada;
  --mint-300: #a8d8bd;
  --mint-400: #7cc29a;
  --mint-500: #57a77c;
  --mint-600: #3f8763;
  --mint-700: #2f684d;
  --mint-800: #234e3a;

  --cream:    #fbfdf9;
  --ink:      #14231b;
  --ink-soft: #45584e;
  --line:     #dcebe1;
  --amber:    #c07a2b;   /* warm code-string accent, used sparingly */

  --shadow-sm: 0 1px 2px rgba(20, 35, 27, 0.05);
  --shadow-md: 0 12px 34px -14px rgba(20, 50, 34, 0.24);
  --shadow-lg: 0 28px 64px -24px rgba(20, 50, 34, 0.34);

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* One quiet ambient wash — not the whole personality */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
  width: 480px; height: 480px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, var(--mint-200), transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--mint-600);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--mint-700); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--mint-700);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--mint-400); }

/* ------------------------------------------------------------
   Navbar
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(251, 253, 249, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--mint-600);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.brand b { color: var(--mint-700); }
.brand span.light { color: var(--ink); font-weight: 700; }

.nav-menu { display: flex; align-items: center; gap: 30px; margin-left: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--mint-600); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-opt {
  border: none;
  background: none;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-opt:hover { color: var(--mint-700); }
.lang-opt.active { background: var(--mint-600); color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   Section scaffolding
   ------------------------------------------------------------ */
section { padding: 96px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-700);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--mint-400);
}
.center .eyebrow { justify-content: center; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 14px;
  line-height: 1.08;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Restrained keyword accent for section headings (not a gradient) */
.mark-accent {
  color: var(--mint-600);
  box-shadow: inset 0 -0.14em 0 var(--mint-200);
}

/* The single gradient moment on the whole page — the hero keyword */
.grad-text {
  background: linear-gradient(100deg, var(--mint-500), var(--mint-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero { padding-top: 164px; padding-bottom: 92px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 22px 0 20px;
}
.hero p.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat { display: flex; flex-direction: column-reverse; gap: 4px; }
.hero-stats .num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mint-700);
  letter-spacing: -0.01em;
}
.hero-stats .label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Signature: hypermedia request → HTML response panel */
.hero-panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.panel-bar .verb {
  background: var(--mint-600);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.panel-bar .route { color: var(--ink); font-weight: 500; }
.panel-bar .status {
  margin-left: auto;
  color: var(--mint-600);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.panel-req {
  padding: 14px 2px 6px;
  color: var(--ink-soft);
  line-height: 1.9;
  word-break: break-word;
}
.panel-req .attr { color: var(--mint-700); font-weight: 700; }
.panel-req .val { color: var(--amber); }
.panel-label {
  margin: 6px 0 10px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* Response split: equivalent HTML source (left) next to the rendered card (right) */
.frag-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.frag-col { min-width: 0; }
.frag-cap {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  opacity: 0.65;
  margin-bottom: 10px;
}
.frag-code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-soft);
  padding-right: 14px;
}
.frag-code .t { color: var(--mint-600); }
.frag-code .a { color: var(--mint-700); }
.frag-code .v { color: var(--amber); }
.frag-render {
  padding-left: 14px;
  border-left: 1px dashed var(--mint-200);
}

/* The swapped-in, rendered fragment */
.panel-res .frag {
  border: 1px solid var(--mint-200);
  border-radius: 12px;
  background: var(--mint-50);
  padding: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.panel-res.in .frag { opacity: 1; transform: none; }
.frag-head {
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.frag-head b { color: var(--mint-700); }
.frag-head span:last-child { color: var(--ink-soft); font-weight: 400; }
.panel-res .frag p {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 12px;
}
.frag-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.frag-pills span {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--mint-700);
  border: 1px solid var(--mint-200);
}

/* ------------------------------------------------------------
   Trusted-by / clients
   ------------------------------------------------------------ */
.trusted { padding: 44px 0; border-block: 1px solid var(--line); background: var(--mint-50); }
.trusted p {
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
}
.trusted-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: center;
}
.trusted-row span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mint-700);
  letter-spacing: -0.02em;
  opacity: 0.8;
}

/* ------------------------------------------------------------
   Services / abilities
   ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--mint-300);
}
.card .icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--mint-100);
  color: var(--mint-600);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 25px; height: 25px; }
.card h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }

.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--mint-700);
  border: 1px solid var(--mint-200);
}

/* ------------------------------------------------------------
   Work / clients
   ------------------------------------------------------------ */
.work-section { background: var(--mint-50); border-block: 1px solid var(--line); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work-card .cover {
  height: 88px;
  background: linear-gradient(135deg, var(--mint-200), var(--mint-400));
  display: flex;
  align-items: center;
  padding: 0 26px;
  position: relative;
}
.work-card .cover .logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mint-800);
  letter-spacing: -0.02em;
}
.work-card .cover .avail {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mint-800);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 3px 9px;
  border-radius: 999px;
}
/* Per-product covers — each card wears its product's own colour */
.work-card .cover-ensata  { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.work-card .cover-nitro   { background: linear-gradient(310deg, #5e72e4, #825ee4); }
.work-card .cover-reality { background: linear-gradient(135deg, #f87171, #b91c1c); }
.work-card .cover-oxygen  { background: linear-gradient(135deg, #1e3a8a, #2563eb 70%, #3b82f6); }
.work-card .cover-ensata .logo,
.work-card .cover-nitro .logo,
.work-card .cover-reality .logo,
.work-card .cover-oxygen .logo { color: #fff; }
.work-card .cover .avail {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.7);
}
.work-card .buy-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--mint-700);
  transition: color 0.15s ease;
}
.work-card .buy-link:hover { color: var(--mint-800); }
.work-card .body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.work-card .kicker { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.work-card .kicker .type { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; color: var(--mint-600); text-transform: uppercase; letter-spacing: 0.05em; }
.work-card .kicker .when { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); white-space: nowrap; }
.work-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.work-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 16px; flex: 1; }
.work-card .tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* ------------------------------------------------------------
   Process
   ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; counter-reset: step; }
.step {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step .n {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--mint-600);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* ------------------------------------------------------------
   Tech stack strip
   ------------------------------------------------------------ */
.stack { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.stack .pill { font-size: 0.88rem; padding: 9px 18px; }

/* ------------------------------------------------------------
   Founder / about
   ------------------------------------------------------------ */
.founder {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.founder .studio-card {
  background: linear-gradient(150deg, var(--mint-500), var(--mint-800));
  border-radius: 22px;
  padding: 26px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.founder .studio-card-top { display: flex; align-items: center; gap: 14px; }
.founder .studio-card-top .badge {
  width: 52px; height: 52px; flex: none;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.16);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 800;
  letter-spacing: -0.03em;
}
.founder .studio-card-id b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.founder .studio-card-id span { font-size: 0.84rem; opacity: 0.82; }
.founder .studio-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 14px;
  overflow: hidden;
}
.founder .studio-facts > div { background: rgba(255, 255, 255, 0.08); padding: 16px 18px; }
.founder .studio-facts dt {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  opacity: 0.78; margin-bottom: 5px;
}
.founder .studio-facts dd { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }

.founder h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; margin: 16px 0 18px; line-height: 1.1; }
.founder p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.03rem; }
.founder .creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ------------------------------------------------------------
   CTA / contact
   ------------------------------------------------------------ */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--mint-600), var(--mint-800));
  color: #fff;
  border-radius: 26px;
  padding: 72px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.16), transparent 45%);
}
.cta h2 { position: relative; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta p { position: relative; font-size: 1.15rem; opacity: 0.92; max-width: 560px; margin: 0 auto 32px; }
.cta .actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: var(--mint-700); }
.cta .btn-primary:hover { background: var(--mint-50); }
.cta .btn-ghost { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.cta .btn-ghost:hover { border-color: #fff; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer { padding: 48px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-inner .brand { font-size: 1.05rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-links a:hover { color: var(--mint-600); }
.copy { color: var(--ink-soft); font-size: 0.86rem; width: 100%; text-align: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { max-width: 480px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder .studio-card { order: 2; }
}

@media (max-width: 720px) {
  section { padding: 72px 0; }
  .hero { padding-top: 128px; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin: 0;
    padding: 22px 24px 26px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }
  .nav-menu.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-links a { font-size: 1rem; }
  .nav-cta { flex-direction: row; justify-content: space-between; }
  .nav-cta .btn { flex: 1; justify-content: center; }

  .cards { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .panel-res .frag { opacity: 1; transform: none; }
}
