/*==================================================
  AOCA GAME LAB — UI ENHANCEMENTS LAYER
  --------------------------------------------------
  Additive polish loaded after the base theme.
  Keeps the existing dark / black→red brand language
  (#d63939, #f44336) while modernising spacing, depth,
  motion and accessibility. Nothing here changes the
  fullpage.js / Owl / Bootstrap structure.
==================================================*/

:root {
  /* --- Historical / editorial palette (Level 1) ---------------
     Concept: humanities + technology, timeless & archival.
     Keeps the red lineage of the logo as ONE curated accent,
     paired with warm ink and brass/ochre — flexible enough for
     ARIDA and future historical IPs (not a literal desert theme). */
  --ink-900: #14100e;   /* deepest background */
  --ink-800: #1b1512;   /* body background */
  --ink-700: #241c18;   /* raised surfaces */

  --ember: #c0452c;       /* brand accent (curated red) */
  --ember-bright: #d9543a;/* hover / highlight */
  --ochre: #cda35b;       /* brass / parchment-gold highlight */
  --ochre-soft: #e0c089;

  --parchment: #f1e9db;   /* warm near-white text */
  --parchment-dim: rgba(241, 233, 219, 0.72);

  /* Back-compat aliases used by the polish rules below */
  --aoca-red: var(--ember);
  --aoca-red-bright: var(--ember-bright);
  --aoca-ink: var(--ink-900);

  --glass-bg: rgba(241, 233, 219, 0.06);
  --glass-border: rgba(241, 233, 219, 0.14);
  --glass-bg-hover: rgba(241, 233, 219, 0.12);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 18px 45px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/*--------------------------------------------------
  00. THEME / PALETTE OVERRIDES (Level 1)
  Re-skins the base template's black→red toward the
  historical/editorial palette above.
--------------------------------------------------*/
body {
  background: var(--ink-800);
  color: var(--parchment);
}

/* Background video tint: ink → ember with a brass mid-tone */
#video:after {
  opacity: 0.78;
  background: linear-gradient(160deg,
              var(--ink-900) 0%,
              #3a201a 52%,
              var(--ember) 128%) !important;
}

/* Preloader matches the new gradient */
.preloader {
  background: linear-gradient(160deg,
              var(--ink-900) 0%,
              #3a201a 52%,
              var(--ember) 128%) !important;
}

/* Timeline rule: parchment → ember instead of white → bootstrap red */
.row-the_journey {
  border-image: linear-gradient(to right,
                var(--ochre) 0%, var(--ember) 100%) !important;
  border-image-slice: 1 !important;
}

a { color: var(--parchment); }
a:hover, a:focus { color: #fff; }

/* Home hero logo reduced by 10% (250px -> 225px), reliably centered as a
   block (so it never drifts off-centre from inline whitespace/animation). */
.logo-main {
  display: block;
  width: 225px;
  height: auto;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/*--------------------------------------------------
  00b. FULLPAGE SCROLL — breathing room
  scrollOverflow is ON and now sizes its own window
  (the broken `height: calc(100vh - 200px)` override
  was removed from aocagamelab.css). Here we only add
  padding so tall content clears the fixed header/footer
  and hover zoom/glows aren't clipped at the edges.
--------------------------------------------------*/
.fp-scroller {
  /* Keep scrolled content clear of the fixed header (top) and footer
     (bottom). getPaddings() only reads SECTION padding, so this inner
     padding doesn't shrink the .fp-scrollable box. */
  padding: 92px 0 50px;
}

/* Custom scrollbar for the scrolloverflow window (brass on dark) */
.fp-scrollable .fp-scrollbar,
.fp-scrollable .fp-scroller > .iScrollVerticalScrollbar .iScrollIndicator {
  background: rgba(205, 163, 91, 0.55) !important;
  border-radius: 4px !important;
}

/*--------------------------------------------------
  01. Accessible focus states (keyboard users)
--------------------------------------------------*/
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.navbar-nav li a:focus-visible,
.social-icons li a:focus-visible,
input:focus-visible,
.cover-game-main:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 8px;
}

/* Remove focus ring only when using a pointer */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/*--------------------------------------------------
  02. Section titles — gradient accent underline
--------------------------------------------------*/
.title-block h2,
.about-contentbox h2 {
  position: relative;
  display: block;
  letter-spacing: 0.04em;
}

.title-block h2::after {
  content: '';
  display: block;
  width: 220px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent 0%, var(--ochre) 50%, transparent 100%);
}

.about-contentbox h2::after {
  content: '';
  display: block;
  width: 220px;
  height: 2px;
  margin: 14px 0 0;
  background: linear-gradient(90deg, var(--ochre) 0%, transparent 100%);
}

/* Animated gold shine on section titles */
.welcome-first,
.title-block h2,
.about-contentbox h2 {
  background: linear-gradient(100deg,
              #9c6b1e 0%, #f3d27a 18%, #fff6cf 33%, #e7b94e 50%,
              #fff6cf 67%, #f3d27a 82%, #9c6b1e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldShine 5s linear infinite;
}

@keyframes goldShine {
  to { background-position: 200% center; }
}

.about-contentbox span,
.title-block span {
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.14em;
}

/*--------------------------------------------------
  03. Primary button — gradient hover + lift
--------------------------------------------------*/
.btn {
  position: relative;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}

.btn:hover,
.btn:focus {
  background: linear-gradient(135deg, var(--aoca-red-bright) 0%, var(--aoca-red) 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/*--------------------------------------------------
  04. Navigation — smoother gradient underline
--------------------------------------------------*/
.navbar-nav li a::after {
  background: linear-gradient(90deg, transparent 0%, var(--ochre) 50%, transparent 100%);
  /* Fade-in / fade-out instead of the old scale grow. The line stays at
     full width and just cross-fades; a 2px lift adds a subtle touch.
     Resolution-independent (opacity-based). */
  transform: translateY(3px) scale(1) !important;
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.navbar-nav li a:hover::after,
.navbar-nav li.active a::after {
  opacity: 1;
  transform: translateY(0) scale(1) !important;
}

/* Radial brass glow behind the label on hover.
   z-index:0 on the link makes the ::before (z-index:-1) sit BEHIND the
   text but IN FRONT of the nav pill's background. */
.navbar-nav li a {
  position: relative;
  z-index: 0;
}

.navbar-nav li a::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  /* horizontally distorted: clearly wider than tall */
  width: 260%;
  height: 150%;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  /* ~50% weaker than before (alphas halved) */
  background: radial-gradient(closest-side,
              rgba(205, 163, 91, 0.25) 0%,
              rgba(205, 163, 91, 0.09) 45%,
              rgba(205, 163, 91, 0) 72%);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.navbar-nav li a:hover::before,
.navbar-nav li.active a::before {
  opacity: 1;
  /* gentle breathing loop while hovered */
  animation: navGlowPulse 2.4s ease-in-out infinite;
}

@keyframes navGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); }
  50%      { transform: translate(-50%, -50%) scale(1.08); }
}

.navbar-nav li a:hover {
  opacity: 1;
}

/* Pull the header closer to the top edge of the page */
#header {
  padding: 6px 0;
}

/* Desktop: rounded glass tray behind the menu so page content
   scrolling underneath never bleeds through the nav labels. */
@media only screen and (min-width: 768px) {
  .navigation-menu.navbar-nav {
    align-items: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(20, 16, 14, 0.55);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    flex-wrap: nowrap;
  }
}

/* Medium desktops (768–1279px): compress nav items so 11 labels fit on one line */
@media only screen and (min-width: 768px) and (max-width: 1279px) {
  .navigation-menu.navbar-nav {
    padding: 8px 14px;
  }
  .navbar-nav li {
    margin-left: 14px;
  }
  .navbar-nav li a {
    font-size: 11px;
  }
}

/* Language dropdown — same glass background as the nav pill */
.dropdown-menu-aoca {
  background: rgba(20, 16, 14, 0.55);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  border-radius: 14px;
  padding: 8px;
  min-width: 160px;
}

.dropdown-menu-aoca .dropdown-item {
  color: var(--parchment);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.dropdown-menu-aoca .dropdown-item:hover,
.dropdown-menu-aoca .dropdown-item:focus {
  background: rgba(205, 163, 91, 0.16);
  color: #fff;
}

/* Current language (English) is marked .disabled — show it in brass */
.dropdown-menu-aoca .dropdown-item.disabled {
  color: var(--ochre);
  opacity: 0.8;
}

.dropdown-menu-aoca .dropdown-divider {
  border-top: 1px solid var(--glass-border);
  margin: 4px 0;
}

/*--------------------------------------------------
  05. Social icons — pill depth + brand hover
--------------------------------------------------*/
.social-icons li {
  margin: 10px 0;
}

.social-icons li a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  line-height: 25px;
  font-size: 9px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.social-icons li a svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.social-icons li a:hover {
  transform: translateX(-4px) scale(1.05);
  background: #fff;
  color: var(--aoca-ink);
  box-shadow: -6px 0 22px rgba(0, 0, 0, 0.4);
}

/*--------------------------------------------------
  06. Cards — glassmorphism + hover lift
  (our vision, team, contact info, store)
--------------------------------------------------*/
.our_vision-list .item,
.team-list .item,
.team-section .item,
.contact-row {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
              box-shadow 0.4s var(--ease), color 0.4s var(--ease);
}

.our_vision-list .item:hover,
.team-list .item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
}

.team-section .item:hover,
.contact-row:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
}

/* Our-vision icon picks up a subtle brand tint */
.our_vision-icon {
  color: #fff;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.our_vision-list .item:hover .our_vision-icon {
  transform: scale(1.08);
  color: var(--aoca-red);
}

/* Contact icons in brand red for quick scanning */
.contact-row i {
  color: var(--aoca-red-bright);
}

/*--------------------------------------------------
  07. Game covers — refined hover (no harsh fade)
--------------------------------------------------*/
.cover-game-main {
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  /* keep aspect ratio: the imgs carry width/height attributes, so without
     height:auto the height stays fixed while width shrinks on mobile = squish */
  height: auto;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              opacity 0.4s var(--ease) !important;
}

/* ARIDA: top-align the text block with the cover image when the columns sit
   side by side. (.about-contentbox had 80px top vs the cover's 50px.) */
@media only screen and (min-width: 768px) {
  .about-contentbox {
    margin-top: 50px;
  }
}

.cover-game-main:hover {
  opacity: 0.92 !important;
  transform: scale(1.04) !important;
  box-shadow: var(--shadow-lift);
}

/*--------------------------------------------------
  08. Store — out-of-stock items
--------------------------------------------------*/
.sold-out {
  position: relative;
}

.sold-out .cover-game-main {
  filter: grayscale(0.55) brightness(0.85);
  cursor: not-allowed;
}

.sold-out:hover .cover-game-main {
  transform: none !important;
  opacity: 1 !important;
}

/* Store covers: keep a tidy square frame without vertically
   stretching the artwork (proportional, cropped to fill). */
[data-section="store"] .cover-game-main {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Store product titles: locked to 2 lines via the <br> in markup.
   `white-space: nowrap` keeps each line from wrapping further, so the
   2-line layout holds at ANY resolution — adjust font-size freely. */
[data-section="store"] .about-img h2 {
  font-size: 20px;
  line-height: 1.25;
  white-space: nowrap;
  margin-top: 10px;
  margin-bottom: 0;
}

.sold-out-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--aoca-red-bright), var(--aoca-red));
  box-shadow: var(--shadow-soft);
}

/*--------------------------------------------------
  09. Platform badges — gentle lift on hover
--------------------------------------------------*/
a.xbox-badge img,
a.nintendo-badge img,
a.steam-badge img,
a.microsoft-badge img,
a.humble-badge img,
a.epic-badge img,
a.nuuvem-badge img,
a.greenmangaming-badge img,
a.mobile-badge img {
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease),
              filter 0.3s var(--ease) !important;
}

a.steam-badge:hover img,
a.mobile-badge:hover img,
a.xbox-badge:hover img,
a.nintendo-badge:hover img {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

/*--------------------------------------------------
  10. Form fields — focus glow
--------------------------------------------------*/
.form-control {
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease);
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.25);
  border-color: var(--aoca-red-bright);
}

/*--------------------------------------------------
  11. Scroll-down hint — smooth up-down bob animation
--------------------------------------------------*/
.scroll-down img {
  animation: aoca-bob 2s ease-in-out infinite !important;
}

@keyframes aoca-bob {
  0%, 100% { transform: translateY(-4px); }
  50%      { transform: translateY(5px); }
}

/*--------------------------------------------------
  12. Footer — readability over the red gradient
--------------------------------------------------*/
/* Footer now lives inside the contact section flow (below the box). */
footer {
  position: static !important;
  height: auto !important;
  width: 100%;
  z-index: auto;
  margin-top: 48px;
  padding: 24px 0 56px;
  margin-bottom: 24px;
  border-top: 1px solid var(--glass-border);
}

footer p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.footer-links {
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.footer-links a:hover { color: var(--ochre) !important; }

.footer-copy {
  margin-bottom: 8px !important;
}

.footer-logo {
  height: auto;
  opacity: 0.9;
}



/* ARIDA II — Steam wishlist as a real rounded button, brand colours + pulse */
.arida2-wishlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 50%;
  min-height: 70px;
  margin: 18px auto 0;
  border-radius: 999px;
  padding: 12px 48px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
  background: linear-gradient(120deg, var(--ember), var(--ochre-soft), var(--ember-bright));
  background-size: 200% auto;
  box-shadow: 0 6px 20px rgba(192, 69, 44, 0.45);
  animation: aridaWishlistPulse 3s ease-in-out infinite;
}
.arida2-wishlist-btn .wishlist-steam-ic {
  height: 75px;
  width: auto;
}
@keyframes aridaWishlistPulse {
  0%, 100% { transform: scale(1); background-position: 0% center; box-shadow: 0 6px 20px rgba(192, 69, 44, 0.45); }
  50% { transform: scale(1.05); background-position: 100% center; box-shadow: 0 11px 30px rgba(217, 84, 58, 0.6); }
}

/* Typewriter caret suppressed — cursor intentionally hidden during title animation. */

/* Partners section — three explicit rows (template loop in layout.njk). */
.partners-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 20px;
}
.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 44px;
  width: 100%;
}
.partners-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.partners-grid a:hover { opacity: 1; transform: translateY(-3px); }

/* Balance logos by BOTH dimensions: constraining height alone makes wide,
   horizontal marks (Nuuvem, Uneb) overpower square ones. max-width + a fixed
   max-height + object-fit keeps every logo within the same visual box. */
.partners-grid img {
  max-height: 42px;
  max-width: 150px;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Row 1 (Google) — 75% × 1.5 = 162.5% of base row. */
.partners-row-1 img {
  max-height: 111px;
  max-width: 395px;
}

/* Row 3 — 35% smaller × 1.25 = ~19% smaller than base. */
.partners-row-3 img {
  max-height: 34px;
  max-width: 123px;
}


/*--------------------------------------------------
  13. Team member LinkedIn icon — brand affordance
--------------------------------------------------*/
.team-section .item a .fa-linkedin {
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.team-section .item a:hover .fa-linkedin {
  color: var(--aoca-red) !important;
  transform: translateY(-2px);
  display: inline-block;
}

/*==================================================
  LEVEL 2 — SECTION REDESIGNS
==================================================*/

/*--------------------------------------------------
  L2.1 THE JOURNEY — editorial timeline
  Turns the plain year/title/text rows into a
  curated historical timeline with a brass→ember
  spine, prominent year numerals and refined nodes.
--------------------------------------------------*/
.row-the_journey {
  border-width: 2px !important;
  transition: transform 0.4s var(--ease);
}

/* Year sits on top (position kept), now compact in brass */
.row-the_journey h5 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ochre);
  margin-bottom: 8px;
  line-height: 1;
}

/* Milestone title is now the prominent element, with an ember underline */
.row-the_journey h4 {
  position: relative;
  display: inline-block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--parchment);
  padding-bottom: 12px;
  margin-bottom: 10px;
  line-height: 1.15;
}

.row-the_journey h4::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--ochre) 50%, transparent 100%);
}

.row-the_journey p {
  color: var(--parchment-dim);
}

/* Refined node on the spine: ember core + brass ring */
.row-the_journey:before {
  background-color: var(--ember) !important;
  box-shadow: 0 0 0 4px rgba(205, 163, 91, 0.35),
              0 0 18px rgba(217, 84, 58, 0.55);
  width: 0.7em;
  height: 0.7em;
}

.row-the_journey:hover {
  transform: translateY(-3px);
}

/*--------------------------------------------------
  L2.2 STORE / PLATFORM BADGES — grouped panel
  Gathers the loose platform buttons into a tidy
  glass tray so they read as one deliberate block.
--------------------------------------------------*/
.about-contentbox .px-0.text-center {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px 28px;
  margin-top: 16px;
  padding: 22px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ARIDA II wishlist container — strip the glass tray (only ARIDA I uses it). */
[data-section="arida_2"] .about-contentbox .px-0.text-center {
  background: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  margin-top: 8px;
}

/* Keep each store button from stretching full-width inside the flex tray */
.about-contentbox .px-0.text-center > a {
  flex: 0 0 auto;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
}

/* Neutralise the legacy left-margins now that we use gap */
.about-contentbox .px-0.text-center img.ic-xbox-badge,
.about-contentbox .px-0.text-center img.ic-greenmangaming-badge,
.about-contentbox .px-0.text-center img.ic-nintendo-badge,
.about-contentbox .px-0.text-center img.ic-steam-badge,
.about-contentbox .px-0.text-center img.ic-humble-badge,
.about-contentbox .px-0.text-center img.ic-epic-badge,
.about-contentbox .px-0.text-center img.ic-microsoft-badge,
.about-contentbox .px-0.text-center img.ic-nuuvem-badge,
.about-contentbox .px-0.text-center img.ic-mobile-badge {
  margin-left: 0 !important;
  margin-bottom: 0 !important;
}

/* Platform badges grouped by category (Consoles / PC / Mobile) inside the
   single tray, with small labels. PC spans the full width; Consoles + Mobile
   share the next line — so it stays compact and aligned with the cover. */
.about-contentbox .px-0.text-center.platform-groups {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2px 26px;
  padding: 3px 16px;
  /* badges are sized in em — shrinking the font-size scales them all down
     ~22% so the block's height matches the awards strip on the other column */
  font-size: 0.78em;
}

/* Mobile: shrink badges so all 6 PC stores fit in 2 rows instead of 3 */
@media only screen and (max-width: 767px) {
  .about-contentbox .px-0.text-center.platform-groups {
    font-size: 0.6em;
    gap: 4px 10px;
    padding: 4px 8px;
  }
}

/* Prevent the Our Vision carousel's owl-dots from drifting beyond the
   viewport and causing a 32px horizontal overflow on mobile. */
@media only screen and (max-width: 767px) {
  [data-section="our_vision"] .our_vision-section {
    overflow-x: hidden;
  }
}

.platform-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 0 1 auto;
}

.platform-group.group-pc {
  flex-basis: 100%;
}

.platform-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  opacity: 0.9;
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px 18px;
}

.platform-badges a {
  flex: 0 0 auto;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
}

/* Forces a new line inside a flex row: Steam/Microsoft/Nuuvem/Epic stay on
   the top row, Humble + GreenManGaming drop to the row below. */
.platform-badges .badge-row-break {
  flex-basis: 100%;
  height: 0;
  margin: 0;
}

/*--------------------------------------------------
  L2.3 HOME — hero refinement
  Editorial eyebrow, tighter lead paragraph and
  brass-highlighted key phrases.
--------------------------------------------------*/
.welcome-first {
  color: var(--ochre);
  font-weight: 400;
  letter-spacing: 0.3em;
  /* letter-spacing adds a trailing gap after the last char, which shifts
     centered text left. A matching text-indent adds an equal leading gap,
     balancing it so the text is truly centered (invisible, no stray "."). */
  text-indent: 0.3em;
  margin-bottom: 6px;
}

/* Thin brass rule flanking the eyebrow */
.welcome-first::after {
  content: '';
  display: block;
  width: 220px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg,
              transparent 0%, var(--ochre) 50%, transparent 100%);
}

.welcome-box p {
  color: var(--parchment-dim);
  max-width: 900px;
}

/* Desktop-only type sizing (won't clobber responsive.css on mobile) */
@media only screen and (min-width: 768px) {
  .welcome-first { font-size: 22px; }
  .welcome-box p { font-size: 17px; }
}

.welcome-box p b {
  color: var(--ochre-soft);
  font-weight: 600;
}

.scroll-down.next-section span {
  color: var(--parchment-dim);
  letter-spacing: 0.18em;
  font-size: 12px;
}

/*--------------------------------------------------
  L2.4 OUR VISION — pillar cards with medallions
  Icons become brass medallions; cards stay on-theme
  (dark glass) instead of flipping to white on hover.
--------------------------------------------------*/
.our_vision-box {
  padding: 34px 22px;
}

/* Circular brass medallion around each icon */
.our_vision-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  line-height: 1;
  margin: 6px auto 20px;
  font-size: 38px;
  color: var(--ochre);
  border-radius: 50%;
  border: 2px solid rgba(205, 163, 91, 0.45);
  background: rgba(205, 163, 91, 0.08);
}

/* Center the Font Awesome glyph itself (no stray inline metrics) */
.our_vision-icon .fa {
  display: block;
  line-height: 1;
}

.our_vision-box h3 {
  letter-spacing: 0.04em;
  color: var(--parchment);
}

.our_vision-box span {
  color: var(--parchment-dim);
  line-height: 1.7;
}

/* Keep hover on-theme (dark glass) + light the medallion ember */
.our_vision-list .item:hover {
  background: var(--glass-bg-hover) !important;
  color: var(--parchment) !important;
}

.our_vision-list .item:hover .our_vision-icon {
  background: linear-gradient(135deg, var(--ember-bright), var(--ember));
  border-color: transparent;
  color: #fff;
  transform: scale(1.06);
}

.our_vision-list .item:hover .our_vision-box h3 {
  color: #fff;
}

.our_vision-list .item:hover .our_vision-box span {
  color: var(--parchment);
}

/*--------------------------------------------------
  L2.5 ABOUT / TEAM — on-theme member cards
  Keeps cards dark glass on hover (were flipping to
  white) and makes the LinkedIn icons legible.
--------------------------------------------------*/
.team-section .item {
  padding: 26px 20px;
}

.team-section .item img.rounded-circle {
  border: 2px solid rgba(205, 163, 91, 0.4);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
              opacity 0.6s var(--ease);
}

/* Fade team photos in as lazysizes loads them (instead of popping in when
   the carousel paginates). lazysizes swaps `.lazyload` -> `.lazyloaded`. */
.team-section img.lazyload,
.team-section img.lazyloading {
  opacity: 0;
}

.team-section img.lazyloaded {
  opacity: 1;
}

/* Team pagination = group crossfade: custom.js toggles .owl-stage opacity
   on change/changed; this transition makes it fade out then in (owl's own
   fade only supports items:1, hence the group-level approach). */
.team-list .owl-stage {
  transition: opacity 0.45s var(--ease);
}

.team-section .item h4 {
  letter-spacing: 0.03em;
  color: var(--parchment);
}

.team-section .item .team-content span {
  color: var(--parchment-dim);
}

/* LinkedIn icon: visible on the dark card (was bootstrap text-dark) */
.team-content a .fa-linkedin {
  color: var(--ochre) !important;
  font-size: 20px;
}

/* Keep team hover on-theme + light the brass ring */
.team-list .item:hover,
.team-section .item:hover {
  background: var(--glass-bg-hover) !important;
  color: var(--parchment) !important;
}

.team-section .item:hover img.rounded-circle {
  border-color: var(--ember-bright);
  transform: scale(1.04);
}

/* About intro paragraph */
[data-section="about"] .title-block p {
  color: var(--parchment-dim);
}

/*--------------------------------------------------
  L2.6 CONTACT — both panels share the same glass frame
--------------------------------------------------*/
#mc-embedded-subscribe-form,
[data-section="contact"] .contact-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px 26px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
}

[data-section="contact"] .title-block p {
  color: var(--parchment-dim);
}

/* Mailchimp logo: invert dark SVG to white so it reads on the dark panel */
.brandingLogo img {
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
}

.brandingLogo:hover img {
  opacity: 1;
}

/* "View previous campaigns" underline accent */
[data-section="contact"] ins {
  text-decoration-color: var(--ochre);
  text-underline-offset: 3px;
}

/*--------------------------------------------------
  L2.9 CAROUSEL SHADOW CLIPPING (team + our vision)
  Owl wraps items in `.owl-stage-outer { overflow:hidden }`,
  which crops the card box-shadows and looks like a glitch.
  Give the stage vertical breathing room (padding offset by a
  negative margin so the layout doesn't shift) and keep the
  carousel-card shadows tight enough to fit inside it.
--------------------------------------------------*/
/* (Card box-shadows are defined once in section 06.) Keep only the stage
   breathing room so the shadows aren't clipped by owl's overflow:hidden. */
.team-list .owl-stage-outer,
.our_vision-list .owl-stage-outer {
  padding: 20px 0;
  margin: -20px 0;
}

/*--------------------------------------------------
  L2.11 SHORT-VIEWPORT header clearance for the centered
  fp-noscroll sections. On short screens their centered
  title pushes up under the fixed menu; top-anchor them
  with header clearance there. Tall screens stay centered.
  (Scrollable sections handle this via .fp-scroller padding;
  Home via its own rule above.)
--------------------------------------------------*/
@media only screen and (max-height: 760px) {
  [data-section="store"] .fp-tableCell,
  [data-section="our_vision"] .fp-tableCell,
  [data-section="about"] .fp-tableCell,
  [data-section="contact"] .fp-tableCell {
    vertical-align: top;
    padding-top: 96px;
  }
}

/*--------------------------------------------------
  L2.7 MOBILE — responsive layout fixes
  fullpage.js forces every section to 100vh via an
  inline style on .fp-tableCell even in fp-responsive
  mode. Override so sections shrink to their content
  height and don't leave vast empty dark gaps.
  The welcome-box already carries its own 150px
  padding so home is excluded from the top override.
--------------------------------------------------*/
body.fp-responsive .section {
  height: auto !important;
}

body.fp-responsive .fp-tableCell {
  height: auto !important;
  display: block !important;
  padding-top: 120px;  /* clear fixed header — measured 117px on mobile */
  padding-bottom: 48px;
  box-sizing: border-box;
}

/* Home: welcome-box carries its own top clearance — don't double-pad via tableCell */
body.fp-responsive [data-section="home"] .fp-tableCell {
  padding-top: 0;
  padding-bottom: 0;
}

/* Home welcome-box top padding must clear the fixed header (117px on mobile) */
@media only screen and (max-width: 767px) {
  .welcome-box {
    padding: 130px 0 70px;
  }
}
@media only screen and (max-width: 575px) {
  .welcome-box {
    padding: 125px 0 60px;
  }
}

/* Hide the fixed social-icons sidebar on mobile — too narrow to be
   useful and overlaps content at 375px. */
@media only screen and (max-width: 767px) {
  #social-icons {
    display: none;
  }
}

/* Prevent horizontal scrollbar.
   overflow-x:clip on html: clips at padding-edge, cannot be scrolled even
   via JS, and does NOT create a BFC so fixed elements stay viewport-anchored.
   overflow-x:hidden on body: creates the clip scroll container for content. */
html {
  overflow-x: clip;
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Any element whose natural width would exceed the viewport on mobile
   should be capped so it can't widen the scroll container. */
@media only screen and (max-width: 767px) {
  .section-inner,
  .about-section,
  .container-fluid {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Force OWL carousels to stay within viewport width.
     OWL JS can set an inline width wider than the viewport when the
     stage slides extend off-screen; this override prevents the dots
     row from overflowing to the right. */
  .our_vision-list.owl-carousel,
  .team-list.owl-carousel {
    max-width: 100% !important;
  }

  /* Clip any residual dot overflow at the section level */
  [data-section="about"] .team-section {
    overflow-x: hidden;
  }
}

@media only screen and (max-width: 767px) {
  /* Brand colour for the mobile menu's decorative corner */
  .navigation-menu:before {
    border-color: transparent transparent var(--ember) transparent !important;
  }

  /* Mobile dropdown links use the brand red on tap/hover */
  .navigation-menu > li > a:hover,
  .navigation-menu > li.active > a {
    color: var(--ember) !important;
  }

  /* Ensure the fixed header / logo never gets clipped on mobile scroll */
  #header {
    overflow: visible;
    max-width: 100vw;
  }
  a#logo {
    overflow: visible;
  }
  a#logo img {
    display: block;
  }

  /* Anchor .navbar-toggle right: 0 to the navbar width (not the full header)
     so the button stays within the viewport even when content overflows. */
  .navbar {
    position: relative;
  }

  /* Timeline: drop the edge nodes that misalign on narrow screens,
     shrink the now-large titles, tighten spacing. */
  .row-the_journey:before {
    display: none;
  }

  .row-the_journey {
    padding: 26px 0;
  }

  .row-the_journey h4 {
    font-size: 20px;
    margin-top: 20px;
  }

  .row-the_journey h5 {
    font-size: 16px;
    padding: 0 15px;
  }

  /* Contact panels — add vertical gap when they stack on mobile */
  [data-section="contact"] .col-md-6:first-child {
    margin-bottom: 20px;
  }

  /* Owl carousel items — add lateral breathing room when margin is 0 on mobile */
  .our_vision-list .owl-item .item,
  .team-list .owl-item .item {
    margin: 0 6px;
  }

  /* Section titles — allow wrapping to 2 lines on narrow screens */
  .welcome-first,
  .title-block h2,
  .about-contentbox h2 {
    white-space: normal !important;
    word-break: break-word;
    hyphens: auto;
  }

  .welcome-first {
    font-size: 16px;
    letter-spacing: 0.12em;
  }

  /* Reduce section headings so long game titles fit in ~2 lines */
  .title-block h2,
  .about-contentbox h2 {
    font-size: 22px;
  }

  /* Steam wishlist button — widen container and let icon grow naturally */
  .arida2-wishlist-btn {
    width: 90%;
    padding: 12px 24px;
  }
  .arida2-wishlist-btn .wishlist-steam-ic {
    height: 80px;
    width: auto;
    max-width: 100%;
  }

  /* Footer links — stack one per line on mobile */
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 2;
  }
  .footer-links a {
    display: block;
  }
}

/*--------------------------------------------------
  L2.8 LAPTOP RANGE (1200–1440) — align with >1440
  The template's `max-width: 1440px` breakpoint inflates
  section headings to 56px and tightens line-height,
  making ~1223px laptops look heavier than ~1494px (where
  the base 32px type reads best). Re-align that band so the
  visual is consistent across both widths.
--------------------------------------------------*/
@media only screen and (min-width: 1200px) and (max-width: 1440px) {
  h1,
  h2 {
    font-size: 32px;
    line-height: 1.2;
  }

  .title-block h2,
  .about-contentbox h2 {
    font-size: 32px;
  }
}

/* Prevent ARIDA game titles from wrapping at desktop widths.
   Fluid font-size ensures the full title fits on one line. */
@media only screen and (min-width: 1024px) {
  .about-contentbox h2 {
    white-space: nowrap;
    font-size: min(28px, 2.4vw);
  }
}

/* Hero clearance on laptops (<=1440): the taller, narrower-wrapped hero was
   getting vertically-centered up UNDER the fixed menu. Anchor it to the TOP
   with header-clearing padding (guaranteed, height-independent) and trim the
   logo/spacing so the whole hero still fits. */
@media only screen and (max-width: 1440px) {
  [data-section="home"] .fp-tableCell {
    vertical-align: top;
    padding-top: 104px; /* clears the fixed header (~87px) + a small gap */
    padding-bottom: 32px;
  }

  .logo-main {
    width: 185px;
  }

  .welcome-first {
    margin-bottom: 2px;
  }

  .welcome-box p {
    margin-bottom: 16px;
  }
}

/*--------------------------------------------------
  L2.10 ARIDA — awards & recognition grid
  Compact wrapping grid of accolade thumbnails under the
  cover; stacks into rows so it fits the column without any
  horizontal scroll.
--------------------------------------------------*/
.arida-awards {
  margin-top: 16px;
  text-align: left;
}

.arida-awards-title {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 8px;
}

.arida-awards-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.arida-awards-track picture {
  display: inline-flex;
  line-height: 0;
}

.arida-awards-track img {
  height: 44px;
  width: auto;
  border-radius: 5px;
  border: 1px solid transparent;
  opacity: 0.85;
  cursor: zoom-in;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.arida-awards-track img:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Lightbox (shared, built by custom.js) — click an award to view it large */
.aoca-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(10, 8, 7, 0.5); /* mid tint — the blur adds the separation */
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  cursor: zoom-out;
}

.aoca-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.aoca-lightbox img {
  max-width: 48vw;   /* ~50% smaller than the full-screen version */
  max-height: 56vh;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lift);
  transform: scale(0.97);
  transition: transform 0.3s var(--ease);
}

.aoca-lightbox.is-open img {
  transform: scale(1);
}

.aoca-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.aoca-lightbox-caption {
  color: var(--parchment);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
  max-width: 80vw;
}

.aoca-lightbox-close,
.aoca-lightbox-nav {
  position: absolute;
  width: 46px;
  height: 46px;
  font-size: 28px;
  line-height: 42px;
  text-align: center;
  color: var(--parchment);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.aoca-lightbox-close {
  top: 16px;
  right: 24px;
}

.aoca-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
}

.aoca-lightbox-prev { left: 24px; }
.aoca-lightbox-next { right: 24px; }

.aoca-lightbox-close:hover,
.aoca-lightbox-nav:hover {
  background: var(--ember);
  color: #fff;
}

/*--------------------------------------------------
  L2.12 CONTACT — both columns equal height; last info row at form base
--------------------------------------------------*/
[data-section="contact"] .contact-section .row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
}

[data-section="contact"] .contact-section .col-md-6 {
  display: flex !important;
  flex-direction: column;
}

[data-section="contact"] .contact-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  box-sizing: border-box;
}

[data-section="contact"] #mc-embedded-subscribe-form {
  flex: 1;
  box-sizing: border-box;
}

/* Inside the contact panel, rows are plain rows — the box itself is the glass container */
[data-section="contact"] .contact-row {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

[data-section="contact"] .contact-row:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------
  L2.13 CAROUSELS — circular dots (team + our vision)
--------------------------------------------------*/
/* Circular dots — small circles, active 100% / inactive 50% opacity */
.team-list .owl-dots,
.our_vision-list .owl-dots {
  display: flex !important;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.team-list .owl-dot,
.our_vision-list .owl-dot {
  background: none !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.team-list .owl-dot span,
.our_vision-list .owl-dot span {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--parchment) !important;
  opacity: 0.5;
  border: none !important;
  margin: 0 !important;
  display: block !important;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.team-list .owl-dot.active span,
.our_vision-list .owl-dot.active span {
  opacity: 1;
  transform: scale(1.3);
}

/*--------------------------------------------------
  L2.14 STORE — product price and buy button
--------------------------------------------------*/
.product-price {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ochre);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.store-buy-btn {
  display: block;
  width: fit-content;
  margin: 8px auto 0;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 55px !important;
  background: linear-gradient(135deg, var(--ember-bright), var(--ember)) !important;
  color: #fff !important;
  border-color: transparent !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(192, 69, 44, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease) !important;
}

.store-buy-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(192, 69, 44, 0.55) !important;
  color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  /* Tame our DECORATIVE animations only. fullpage.js drives its section
     transitions and scrolloverflow momentum with CSS transitions/transforms
     on these elements — excluding them keeps navigation working (an earlier
     blanket `* { transition-duration: 0.001ms }` was killing the smooth
     scroll between sections when the OS "reduce motion" setting is on). */
  /* `:not(:where(...))` keeps ZERO specificity, so our intentional
     exemptions below (nav fade/glow, lazy/owl fades) reliably win.
     A high-specificity `:not():not()...` chain was overriding them. */
  *:not(:where(#fullpage, .fp-section, .fp-slidesContainer, .fp-scrollable, .fp-scroller)),
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* A gentle opacity cross-fade is accessibility-safe, so keep the nav
     underline + glow fades working even under reduced-motion (drop the
     positional movement: no lift on the underline, no scale on the glow). */
  .navbar-nav li a::after,
  .navbar-nav li a:hover::after,
  .navbar-nav li.active a::after {
    transition-duration: 0.45s !important;
    transform: none !important;
  }

  .navbar-nav li a::before {
    transition-duration: 0.4s !important;
  }

  /* Keep the hover-only glow pulse (it's triggered by interaction, subtle,
     and not ambient page motion) even under reduced-motion. */
  .navbar-nav li a:hover::before,
  .navbar-nav li.active a::before {
    animation: navGlowPulse 2.4s ease-in-out infinite !important;
  }

  /* Lazy-load + team group crossfade are opacity-only (accessibility-safe). */
  .team-section .item img.rounded-circle,
  .team-list .owl-stage {
    transition-duration: 0.45s !important;
  }

  /* Keep the gold title shine running. */
  .welcome-first,
  .title-block h2,
  .about-contentbox h2 {
    animation: goldShine 5s linear infinite !important;
  }

  .arida2-wishlist-btn {
    animation: aridaWishlistPulse 3s ease-in-out infinite !important;
  }

  /* Keep the scroll-down bob running (subtle, interaction-hinting motion). */
  .scroll-down img {
    animation: aoca-bob 2s ease-in-out infinite !important;
  }
}

/* ============================================================
   High contrast — main site overrides
   ============================================================ */
html[data-a11y-contrast] body,
html[data-a11y-contrast] .section,
html[data-a11y-contrast] .section-inner,
html[data-a11y-contrast] #video {
    background: #000 !important;
    background-image: none !important;
}

html[data-a11y-contrast] p,
html[data-a11y-contrast] h1, html[data-a11y-contrast] h2,
html[data-a11y-contrast] h3, html[data-a11y-contrast] h4,
html[data-a11y-contrast] span:not([class*="a11y"]),
html[data-a11y-contrast] li {
    color: #fff !important;
    text-shadow: none !important;
}

html[data-a11y-contrast] #header,
html[data-a11y-contrast] .header-fixed {
    background: #000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html[data-a11y-contrast] .navigation-menu a,
html[data-a11y-contrast] nav a {
    color: #fff !important;
}

html[data-a11y-contrast] .navigation-menu a:hover,
html[data-a11y-contrast] nav a:hover {
    color: #ffe000 !important;
}

/* ============================================================
   Reduce motion — at end of file to override earlier !important
   animation rules (e.g. aoca-bob in scroll-down)
   ============================================================ */
html[data-a11y-motion] *,
html[data-a11y-motion] *::before,
html[data-a11y-motion] *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
    scroll-behavior:           auto   !important;
}
html[data-a11y-motion] [data-aos],
html[data-a11y-motion] .animate {
    opacity:    1    !important;
    transform:  none !important;
    transition: none !important;
}

/* Text scaling — allow headings to wrap instead of clipping */
html[data-a11y-text] h1,
html[data-a11y-text] h2,
html[data-a11y-text] h3,
html[data-a11y-text] h4 {
    white-space:   normal !important;
    overflow:      visible !important;
    text-overflow: clip    !important;
}

/* Owl Carousel — allow stage/items to grow in height when text is scaled */
html[data-a11y-text] .owl-stage { height: auto !important; }
html[data-a11y-text] .owl-item  { height: auto !important; }

/* fullPage.js scrollable sections — let iScroll container grow with text */
html[data-a11y-text] .fp-scroller { height: auto !important; }

