/* 2026 consolidated portfolio design system */

:root {
  --canvas: #0b0f14;
  --canvas-soft: #111820;
  --surface: #151d26;
  --surface-2: #1a2430;
  --text: #f4f7fa;
  --muted: #a1afbc;
  --line: rgba(180, 202, 224, 0.14);
  --accent: #5ed6cd;
  --accent-2: #819cff;
  --focus: #8eeae3;
  --display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --page-max: 80rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius-sm: 0.6rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.35rem;
}

html.light {
  --canvas: #f7f9fb;
  --canvas-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2f5;
  --text: #121820;
  --muted: #5c6b78;
  --line: rgba(29, 45, 61, 0.14);
  --accent: #087f80;
  --accent-2: #4f67be;
  --focus: #006c70;
}

html.high-contrast,
html.high-contrast.light {
  --canvas: #ffffff;
  --canvas-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --text: #000000;
  --muted: #000000;
  --line: #000000;
  --accent: #003b80;
  --accent-2: #000000;
  --focus: #000000;
  color-scheme: light;
}

html { scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.006em;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(48rem 28rem at 10% -10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 74%),
    radial-gradient(52rem 30rem at 96% 20%, color-mix(in srgb, var(--accent-2) 6%, transparent), transparent 76%);
}

html.high-contrast body::before { display: none; }

img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.container,
.rb-page,
.hero-content {
  width: min(var(--page-max), calc(100% - (2 * var(--gutter))));
  max-width: none;
  margin-inline: auto;
}

.skip-link:focus { z-index: 1000; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--focus) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px var(--canvas);
}

/* Header */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 200;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(115%);
}

.nav-glass {
  width: min(var(--page-max), calc(100% - (2 * var(--gutter))));
  min-height: 70px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 1.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0;
  text-decoration: none;
}
.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  border-radius: 0.7rem;
  overflow: hidden;
}
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-name {
  font-family: var(--display);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.brand-sub {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding: 0;
  background: transparent;
  border: 0;
}
.nav-links a {
  position: relative;
  padding: 1.65rem 0 1.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 160ms ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

.theme-toggle,
.menu-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}
.theme-toggle { justify-self: end; }
.menu-toggle { display: none; }

/* Typography */
h1, h2, h3, h4 {
  margin-top: 0;
  font-family: var(--display);
  color: var(--text);
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
.eyebrow,
.rb-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Buttons */
.btn,
.btn.primary,
.btn.secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn.primary { background: var(--text); color: var(--canvas); border-color: var(--text); }
.btn.secondary { background: transparent; color: var(--text); }

/* Hero */
.rb-hero,
.page-hero,
.hero-gradient,
.case-hero {
  padding: clamp(4.8rem, 8vw, 7.2rem) 0 clamp(4.5rem, 7vw, 6.5rem);
}
.rb-hero-grid,
.page-hero__grid,
.case-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}
.rb-hero-copy,
.page-hero__copy,
.case-hero__copy { min-width: 0; }
.rb-hero h1,
.page-hero__copy h1,
.hero-content h1,
.case-hero__copy h1 {
  max-width: 11.5ch;
  margin: 0.8rem 0 1.2rem;
  font-size: clamp(3rem, 6.2vw, 6.25rem);
  font-weight: 630;
  line-height: 0.96;
  letter-spacing: -0.048em;
}
.page-hero__copy h1,
.hero-content h1,
.case-hero__copy h1 { font-size: clamp(2.7rem, 5vw, 4.8rem); }
.rb-hero-copy > p:not(.rb-kicker),
.page-hero__copy > p:not(.eyebrow),
.hero-content > p:not(.eyebrow),
.case-hero__copy > p:not(.eyebrow) {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.7;
}
.rb-actions,
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.rb-intro,
.summary-panel,
.case-facts {
  align-self: end;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.rb-intro strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.rb-intro > p { color: var(--muted); }
.rb-meta-list,
.summary-panel,
.case-facts { border-top: 1px solid var(--line); }
.rb-meta-row,
.summary-row,
.case-fact {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  padding: 0.82rem 0;
  border-bottom: 1px solid var(--line);
}
.rb-meta-row span,
.summary-row span,
.case-fact span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.rb-meta-row strong,
.summary-row strong,
.case-fact strong { font-size: 0.82rem; line-height: 1.45; }

/* Sections */
.rb-section,
.section { padding-bottom: var(--section); }
.rb-section-head,
.section-heading {
  display: grid;
  grid-template-columns: minmax(10rem, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: 2.5rem;
}
.rb-section-head h2,
.section-heading h2,
.rb-close h2,
.closing-panel h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.05rem, 3.8vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.rb-section-head p:not(.rb-kicker),
.section-heading p:not(.eyebrow) {
  max-width: 62ch;
  margin: 0.65rem 0 0;
  color: var(--muted);
}

/* Featured work */
.rb-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}
.rb-work-stack { display: grid; gap: 1px; background: var(--line); }
.rb-work-primary,
.rb-work-secondary {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--canvas-soft);
  color: var(--text);
  text-decoration: none;
  transition: background-color 160ms ease;
}
.rb-work-secondary { min-height: 194px; }
.rb-work-index { color: var(--accent); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.rb-work-title {
  max-width: 14ch;
  margin-bottom: 0.7rem;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.rb-work-secondary .rb-work-title { font-size: clamp(1.35rem, 2vw, 2rem); }
.rb-work-copy { max-width: 54ch; color: var(--muted); line-height: 1.62; }
.rb-work-foot { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-top: 1.5rem; }
.rb-tags,
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rb-tags span,
.tag,
.stat-pill {
  padding: 0.32rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}
.rb-arrow { font-size: 1.35rem; transition: transform 160ms ease; }

/* Ledgers */
.rb-capability-list,
.skill-ledger,
.experience-list,
.case-study-list { border-top: 1px solid var(--line); }
.rb-capability,
.skill-entry,
.experience-entry,
.case-study-row {
  display: grid;
  grid-template-columns: 64px minmax(13rem, 0.75fr) minmax(0, 1.25fr);
  gap: 1.5rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.rb-capability > span,
.case-study-row__mark { color: var(--accent); font-size: 0.68rem; letter-spacing: 0.1em; }
.rb-capability h3,
.skill-entry h3,
.experience-entry h3,
.case-study-row h2,
.case-study-row h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.rb-capability p,
.skill-entry p,
.experience-entry p,
.experience-entry li,
.case-study-row p { margin: 0; color: var(--muted); }

.profile-layout,
.experience-layout,
.contact-shell,
.case-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.32fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.profile-aside,
.case-aside { display: grid; gap: 1rem; }
.aside-panel,
.credential-panel,
.form-panel,
.card,
.profile-embed {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--canvas-soft);
  box-shadow: none;
}
.aside-panel p,
.aside-panel li,
.credential-panel p,
.credential-panel li,
.form-panel > p { color: var(--muted); }

/* Proof strip */
.rb-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rb-proof-item {
  min-width: 0;
  padding: 1.5rem 1.2rem;
  border-right: 1px solid var(--line);
}
.rb-proof-item:last-child { border-right: 0; }
.rb-proof-item strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.rb-proof-item span { display: block; margin-top: 0.45rem; color: var(--muted); font-size: 0.76rem; line-height: 1.4; }

/* Contact */
.contact-intro h2,
.form-panel h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.04em; }
.contact-links { border-top: 1px solid var(--line); }
.contact-link-row { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-link-row span { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-link-row a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.form-panel label { display: block; margin: 0.9rem 0 0.35rem; font-weight: 600; }
.form-panel input,
.form-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--text);
}
.form-panel textarea { min-height: 10rem; resize: vertical; }

/* Case studies */
.case-shell { grid-template-columns: minmax(0, 1fr) 250px; }
.case-main { min-width: 0; }
.case-section { padding: 2rem 0 2.4rem; border-top: 1px solid var(--line); }
.case-section:first-child { padding-top: 0; border-top: 0; }
.case-section h2 { max-width: 18ch; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.04em; }
.case-section > p { max-width: 68ch; color: var(--muted); }
.finding-list { margin-top: 1.4rem; border-top: 1px solid var(--line); }
.finding { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.finding__index { color: var(--accent); font-size: 0.68rem; }
.finding h3 { margin-bottom: 0.35rem; font-size: 1.08rem; }
.finding p { margin: 0; color: var(--muted); }
.outcome-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.4rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.outcome-item { padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.outcome-item span { display: block; margin-top: 0.35rem; color: var(--muted); }
.case-aside { position: sticky; top: 6.5rem; }
.case-aside__panel { padding: 1rem 0; border-top: 1px solid var(--line); }
.case-aside__panel p,
.case-aside__panel li { color: var(--muted); font-size: 0.82rem; }
.case-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

/* Supporting pages */
.hero-gradient { text-align: left; }
.hero-content { margin-inline: auto; }
.stats { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.prose-content { width: min(820px, calc(100% - (2 * var(--gutter)))); margin: 0 auto; }
.prose-content section { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.prose-content h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -0.035em; }
.prose-content p,
.prose-content li { color: var(--muted); }

/* Closing and footer */
.rb-close,
.closing-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.rb-close p,
.closing-panel p { max-width: 62ch; color: var(--muted); }
footer { border-top: 1px solid var(--line); background: transparent; padding-bottom: env(safe-area-inset-bottom); }
.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-inner p,
.footer-links a { color: var(--muted); font-size: 0.74rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--canvas); }
  .btn.secondary:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
  .rb-work-primary:hover,
  .rb-work-secondary:hover { background: var(--surface); }
  .rb-work-primary:hover .rb-arrow,
  .rb-work-secondary:hover .rb-arrow { transform: translate(0.18rem, -0.18rem); }
}

@media (max-width: 62rem) {
  .nav-glass { display: flex; min-height: 66px; }
  .brand { flex: 1 1 auto; }
  .brand-sub { display: none; }
  .theme-toggle { margin-left: auto; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; order: 3; }
  .menu-toggle span { width: 18px; height: 1.5px; background: currentColor; }
  .theme-toggle { order: 2; }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.45rem var(--gutter) 0.65rem;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--canvas) 97%, transparent);
    backdrop-filter: blur(14px);
  }
  .nav-links.active { display: flex; }
  .nav-links a { min-height: 48px; display: flex; align-items: center; padding: 0 0.1rem; }
  .nav-links a::after { display: none; }
  .nav-links a.active {
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 0.75rem;
  }

  .rb-hero-grid,
  .page-hero__grid,
  .case-hero__grid,
  .profile-layout,
  .experience-layout,
  .contact-shell,
  .case-shell { grid-template-columns: 1fr; }
  .rb-intro,
  .summary-panel,
  .case-facts { padding-left: 0; border-left: 0; }
  .rb-section-head,
  .section-heading { grid-template-columns: 1fr; }
  .rb-work-grid { grid-template-columns: 1fr; }
  .rb-work-primary { min-height: 330px; }
  .rb-work-secondary { min-height: 205px; }
  .rb-capability,
  .skill-entry,
  .experience-entry,
  .case-study-row { grid-template-columns: 42px minmax(0, 1fr); gap: 0.9rem; }
  .rb-capability p,
  .skill-entry p,
  .experience-entry p,
  .experience-entry ul,
  .case-study-row p { grid-column: 2; }
  .rb-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-proof-item:nth-child(2) { border-right: 0; }
  .rb-proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; }
  .case-aside { position: static; }
}

@media (max-width: 48rem) {
  :root { --gutter: max(1rem, env(safe-area-inset-left)); }
  html { scroll-padding-top: 4.75rem; }
  .nav-glass { width: calc(100% - 2rem); min-height: 62px; }
  .brand-mark { width: 2.15rem; height: 2.15rem; flex-basis: 2.15rem; }
  .brand-name { font-size: 0.9rem; }

  .rb-hero,
  .page-hero,
  .hero-gradient,
  .case-hero { padding-top: 4rem; padding-bottom: 3.8rem; }
  .rb-hero h1,
  .page-hero__copy h1,
  .hero-content h1,
  .case-hero__copy h1 { max-width: 12ch; font-size: clamp(2.65rem, 13vw, 4rem); line-height: 0.98; letter-spacing: -0.04em; }
  .rb-actions,
  .home-hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .rb-actions .btn,
  .home-hero__actions .btn { width: 100%; }
  .rb-section,
  .section { padding-bottom: 4.5rem; }
  .rb-section-head h2,
  .section-heading h2,
  .rb-close h2,
  .closing-panel h2 { font-size: clamp(1.9rem, 9vw, 2.75rem); line-height: 1.05; }
  .rb-work-title { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .rb-work-primary { min-height: 310px; }
  .rb-work-secondary { min-height: 190px; }

  /* Three strongest proof points on mobile; experience stays in narrative pages */
  .rb-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rb-proof-item { padding: 1.1rem 0.75rem; border-bottom: 0 !important; }
  .rb-proof-item:nth-child(3) { border-right: 0; }
  .rb-proof-item:nth-child(4) { display: none; }
  .rb-proof-item strong { font-size: clamp(1.25rem, 7vw, 1.7rem); }
  .rb-proof-item span { font-size: 0.66rem; }

  .outcome-list { grid-template-columns: 1fr; }
  .rb-close,
  .closing-panel { grid-template-columns: 1fr; align-items: start; }
  .footer-inner { min-height: 0; padding: 1.5rem 0; flex-direction: column; align-items: flex-start; }

  input,
  textarea,
  select { font-size: 1rem !important; }
}

@media (max-width: 26rem) {
  .rb-actions,
  .home-hero__actions { grid-template-columns: 1fr; }
  .rb-proof { grid-template-columns: 1fr; }
  .rb-proof-item { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .rb-proof-item:nth-child(3) { border-bottom: 0 !important; }
  .rb-proof-item span { max-width: 24ch; }
}

html.high-contrast .nav-wrapper,
html.high-contrast .nav-links,
html.high-contrast .aside-panel,
html.high-contrast .credential-panel,
html.high-contrast .form-panel,
html.high-contrast .rb-work-primary,
html.high-contrast .rb-work-secondary,
html.high-contrast .card,
html.high-contrast .profile-embed,
html.high-contrast .form-panel input,
html.high-contrast .form-panel textarea {
  background: #ffffff;
  color: #000000;
}

html.high-contrast .rb-tags span,
html.high-contrast .tag,
html.high-contrast .stat-pill,
html.high-contrast .btn,
html.high-contrast .theme-toggle,
html.high-contrast .menu-toggle {
  border-color: #000000;
}

html.high-contrast a:not(.btn):not(.brand) {
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

html.reduced-motion *,
html.reduced-motion *::before,
html.reduced-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  :root,
  html.light,
  html.high-contrast {
    forced-color-adjust: auto;
  }

  :where(a, button, input, textarea, select):focus-visible {
    outline: 2px solid Highlight !important;
    box-shadow: none;
  }

  .btn,
  .theme-toggle,
  .menu-toggle,
  .rb-work-grid,
  .rb-work-primary,
  .rb-work-secondary,
  .aside-panel,
  .credential-panel,
  .form-panel,
  .card,
  .profile-embed {
    border: 1px solid CanvasText;
  }
}
