/* ==========================================================================
   ISSG — Integrated Smart Systems Group
   Design system, rebuilt from the Chakra UI theme the React site used.

   Every value here is the resolved Chakra token, not an approximation:
   spacing is n x 0.25rem, the gray ramp is Chakra's, the shadows are
   Chakra's, and the breakpoints are 30/48/62/80em. That is what keeps the
   rebuild looking like the original rather than merely similar.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* ISSG palette — from src/theme/theme-config.ts */
  --issg-dark: #334155;
  --issg-accent-dark: #475569;
  --issg-muted: #5d6d7e;
  --issg-silver: #aab7b8;
  --issg-background: #eef4fb;
  --issg-background-gray: #e6f0f8;
  --issg-sage: #e6ede4;

  /* Chakra gray ramp */
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --gray-900: #171923;

  /* Accents used by badges and dots */
  --green-100: #c6f6d5;
  --green-400: #48bb78;
  --green-800: #22543d;
  --blue-100: #bee3f8;
  --blue-500: #3182ce;
  --blue-800: #2a4365;
  --red-500: #e53e3e;
  --yellow-400: #ecc94b;

  /* Chakra shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Chakra radii */
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* The React build referenced --font-inter and --font-geist-sans and defined
     neither, so font-family was invalid at computed-value time and the site
     rendered in the browser's default serif — Times New Roman. That was
     reproduced faithfully at first, then replaced once it was visible next to
     the rest of the design: it reads as an unstyled page, because a page with
     no font specified is exactly what it was.

     The system stack costs no download and looks native everywhere. */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/* --- Reset -------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  position: relative;
  min-height: 100%;
  font-family: var(--font-body);
  /* Chakra emitted `line-height: relaxed`, which is not a valid CSS value,
     so the computed line-height was normal. Reproduced deliberately. */
  line-height: normal;
  letter-spacing: 0.025em; /* letterSpacings.wide */
  font-feature-settings: "kern";
  color: var(--issg-dark);
  background: var(--issg-background);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  font-family: inherit;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

svg {
  display: block;
  flex-shrink: 0;
}

/* Chakra's scrollbar + selection styling, from globals.css */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}
::selection {
  background: var(--issg-sage);
  color: var(--issg-dark);
}

/* --- Layout ------------------------------------------------------------- */

/* Chakra Container: width 100%, auto margins, px of 1rem, capped by maxW. */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}
.container--4xl { max-width: 56rem; }
.container--5xl { max-width: 64rem; }
.container--6xl { max-width: 72rem; }
.container--7xl { max-width: 80rem; }

main {
  min-height: calc(100vh - 80px);
}

.section {
  padding-block: 3rem;
}
@media (min-width: 48em) {
  .section {
    padding-block: 4rem;
  }
}

/* Utility for the anchored sections the nav dropdowns jump to. Matches the
   scrollMarginTop="90px" the React pages set, so a heading is not hidden
   behind the sticky header. */
[id] {
  scroll-margin-top: 90px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Typography helpers ------------------------------------------------- */

/* Chakra Heading sizes are responsive; these reproduce the pairs used. */
.h-2xl {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
}
.h-xl {
  font-size: 1.875rem;
  line-height: 1.33;
  font-weight: 700;
}
.h-lg {
  font-size: 1.5rem;
  line-height: 1.33;
  font-weight: 700;
}
.h-md {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
}
.h-sm {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
}
.h-xs {
  font-size: 0.875rem;
  line-height: 1.2;
  font-weight: 700;
}
@media (min-width: 48em) {
  .h-2xl { font-size: 3rem; line-height: 1; }
  .h-xl  { font-size: 2.25rem; line-height: 1.2; }
  .h-lg  { font-size: 1.875rem; line-height: 1.2; }
}

/* The small uppercase kicker above most section headings. */
.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--issg-accent-dark);
}
.eyebrow--xs {
  font-size: 0.75rem;
}

/* Clamped text. Chakra's noOfLines, which the cards relied on heavily. */
.clamp-2,
.clamp-3,
.clamp-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
.clamp-4 { -webkit-line-clamp: 4; }

/* --- Navbar ------------------------------------------------------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--issg-dark);
}

.navbar__bar {
  min-height: 70px;
  display: flex;
  align-items: center;
  padding-inline: 1rem;
}

.navbar__inner {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
}

.navbar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.5rem;
  border-radius: var(--radius-md);
  color: #fff;
  transition: background 0.2s;
}
.navbar__toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}
@media (min-width: 48em) {
  .navbar__toggle {
    display: none;
  }
}

.navbar__brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar__logo {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  object-fit: contain;
}

.navbar__name {
  display: none;
}
@media (min-width: 30em) {
  .navbar__name {
    display: block;
  }
}
.navbar__name span {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  line-height: 1.25;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 48em) {
  .navbar__links {
    display: flex;
  }
}

.navbar__item {
  position: relative;
}

.navbar__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.navbar__link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.36);
}
.navbar__link.is-active {
  color: #fff;
  border-bottom-color: #fff;
}

/* Hover dropdown, replacing the Chakra Popover. Kept in CSS so it opens
   instantly; the JS only handles keyboard focus. */
.navbar__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  width: max-content;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding-block: 0.5rem;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.navbar__item:hover .navbar__menu,
.navbar__item:focus-within .navbar__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--issg-dark);
}
.navbar__menu a:hover {
  background: var(--issg-background);
}
.navbar__menu small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-500);
  margin-top: 0.125rem;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.navbar__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s, background 0.2s;
}
.navbar__icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile drawer */
.navbar__mobile {
  display: none;
  background: var(--issg-accent-dark);
  padding: 0.75rem 1rem;
}
.navbar__mobile.is-open {
  display: block;
}
@media (min-width: 48em) {
  .navbar__mobile,
  .navbar__mobile.is-open {
    display: none;
  }
}

.navbar__mobile a {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  border-left: 3px solid transparent;
  transition: color 0.15s, padding-left 0.15s;
}
.navbar__mobile a:hover {
  color: #fff;
  padding-left: 1rem;
}
.navbar__mobile a.is-active {
  color: #fff;
  border-left-color: #fff;
}

.navbar__mobile-sub {
  padding-left: 1.5rem;
  margin-left: 0.75rem;
  margin-bottom: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.navbar__mobile-sub a {
  padding: 0.5rem;
  border-left: none;
  font-weight: 400;
}
.navbar__mobile-sub a:hover {
  padding-left: 0.5rem;
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  background: var(--issg-dark);
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-block: 1.25rem;
}
@media (min-width: 30em) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 48em) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.footer__blurb {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.64);
}

.footer__social {
  display: flex;
  gap: 1.5rem;
}
.footer__social a:hover {
  color: #cbd5e1; /* brand.300 */
}

.footer__heading {
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__col a:hover {
  color: #cbd5e1;
}

.footer__contact-row {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}
.footer__contact-row svg {
  margin-right: 0.75rem;
}
.footer__contact-row--top {
  align-items: flex-start;
}
.footer__contact-row--top svg {
  margin-top: 0.25rem;
}

.footer__bottom {
  padding-block: 0.75rem;
}

/* The "ISSG" wordmark flanked by two rules. */
.footer__divider {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.footer__divider::before,
.footer__divider::after {
  content: "";
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-grow: 1;
}
.footer__divider::before {
  margin-right: 2rem;
}
.footer__divider::after {
  margin-left: 2rem;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 0.25rem;
}
.footer__legal p {
  font-size: 0.875rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.48);
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  padding: 0 1rem;
  height: 2.5rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
}

.btn--solid {
  background: var(--issg-dark);
  color: #fff;
}
.btn--solid:hover {
  background: var(--issg-accent-dark);
}

.btn--outline {
  border: 1px solid var(--gray-300);
  color: var(--issg-dark);
}
.btn--outline:hover {
  background: var(--gray-50);
}

.btn--lg {
  height: 3rem;
  font-size: 1.125rem;
  padding: 0 1.5rem;
}

.btn--sm {
  height: 2rem;
  font-size: 0.875rem;
  padding: 0 0.75rem;
}

.btn--link {
  height: auto;
  padding: 0;
  color: var(--issg-dark);
  font-weight: 600;
}
.btn--link:hover {
  color: var(--issg-accent-dark);
}

/* The two pill buttons in the hero. */
.btn--pill {
  border-radius: var(--radius-full);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  height: auto;
}
@media (min-width: 48em) {
  .btn--pill {
    padding: 0.75rem 1.75rem;
  }
}
.btn--pill-light {
  background: #fff;
  color: var(--issg-dark);
  box-shadow: var(--shadow-lg);
}
.btn--pill-light:hover {
  background: var(--issg-sage);
  transform: translateY(-1px);
}
.btn--pill-ghost {
  border: 2px solid rgba(255, 255, 255, 0.64);
  color: #fff;
}
.btn--pill-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Filter chips on the news page. */
.chip {
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-300);
  color: var(--issg-dark);
  background: transparent;
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}
.chip:hover {
  background: var(--gray-100);
}
.chip.is-active {
  background: var(--issg-dark);
  color: #fff;
  border-color: var(--issg-dark);
}
.chip.is-active:hover {
  background: var(--issg-accent-dark);
}

/* --- Forms -------------------------------------------------------------- */

.field {
  display: block;
}
.field + .field {
  margin-top: 1.5rem;
}

.field__label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.field__label .req {
  color: var(--red-500);
  margin-left: 0.25rem;
}

.input,
.textarea {
  width: 100%;
  background: var(--gray-50);
  border: none;
  border-radius: var(--radius-md);
  padding: 0 1rem;
  height: 2.5rem;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.textarea {
  padding: 0.5rem 1rem;
  height: auto;
  line-height: 1.5;
  resize: vertical;
}
.input:focus,
.textarea:focus {
  background: #fff;
  box-shadow: var(--shadow-md);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--gray-400);
}

.form-card {
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}
@media (min-width: 48em) {
  .form-card {
    padding: 2rem;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 30em) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.form-row .field + .field {
  margin-top: 0;
}

/* --- Contact block (shared by home and team) ---------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 48em) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-item__icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  background: var(--issg-sage);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--issg-dark);
}
.contact-item__label {
  font-weight: 700;
  font-size: 1.125rem;
}
.contact-item__value {
  color: var(--gray-600);
}

/* --- Skeletons ---------------------------------------------------------- */

/* Placeholders shaped like the thing that is coming, rather than a spinner.
   A spinner says "wait"; a skeleton says "here is where the projects go, and
   there are three of them" — so the layout does not jump when data lands and
   the wait feels shorter than it measures.

   The sheen is a gradient swept across by transform, not by animating
   background-position: transform runs on the compositor, so twenty of these
   on one page cost nothing. */

.sk {
  position: relative;
  overflow: hidden;
  background: var(--gray-200);
  border-radius: var(--radius-md);
}

.sk::after {
  display: none;
}

@keyframes sk-sheen {
  100% { transform: translateX(100%); }
}

/* On the dark stats strip the sheen has to be lighter than the bar, not
   darker, or it reads as a hole rather than a shine. */
.sk--dark {
  background: rgba(255, 255, 255, 0.1);
}
.sk--dark::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
}

/* Text lines. The last line of a paragraph is short, because real ones are —
   a block of equal-length bars reads as a table, not prose. */
.sk-line {
  height: 0.75rem;
  border-radius: var(--radius-base);
  margin-bottom: 0.5rem;
}
.sk-line:last-child { margin-bottom: 0; }
.sk-line--title { height: 1.125rem; width: 70%; margin-bottom: 0.75rem; }
.sk-line--short { width: 45%; }
.sk-line--long  { width: 90%; }

.sk-stack {
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: reduce) {
  .sk::after { animation: none; }
}

/* --- Spinner ------------------------------------------------------------ */

.spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: var(--radius-full);
  animation: spin 0.45s linear infinite;
  border-top-color: var(--issg-dark);
  border-right-color: var(--issg-dark);
}
.spinner--lg {
  width: 3rem;
  height: 3rem;
}
.spinner--light {
  border-top-color: rgba(255, 255, 255, 0.48);
  border-right-color: rgba(255, 255, 255, 0.48);
}
.spinner-wrap {
  display: flex;
  justify-content: center;
  padding-block: 5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Empty states ------------------------------------------------------- */

.empty {
  text-align: center;
  padding-block: 5rem;
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-xl);
  color: var(--gray-500);
}
.empty svg {
  margin: 0 auto 1rem;
  color: var(--gray-300);
}
.empty--sm {
  padding-block: 3rem;
}
.empty--sm svg {
  margin-bottom: 0.75rem;
}

/* --- Section divider with a centred label ------------------------------- */

.labelled-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.labelled-divider::before,
.labelled-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--issg-dark);
}
.labelled-divider span {
  padding: 0.5rem 1.5rem;
  background: var(--issg-silver);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  color: var(--issg-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-size: 1rem;
}
.labelled-divider--lg span {
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
}

/* --- Toast -------------------------------------------------------------- */

.toast-host {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}

.toast {
  min-width: 300px;
  max-width: 560px;
  background: #38a169;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.2s ease-out;
}
.toast--error {
  background: var(--red-500);
}
.toast--info {
  background: var(--blue-500);
}
.toast strong {
  display: block;
  font-size: 1rem;
}
.toast span {
  display: block;
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.125rem;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* --- Reveal on scroll --------------------------------------------------- */

/* The React site used Framer Motion's whileInView. This is the same effect
   with an IntersectionObserver in script.js: 20px up, 0.6s, once only. */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-x {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-x.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-x {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
