/* ============================================================================
   ORACLE PROJECTS INTERNATIONAL — styles.css
   ----------------------------------------------------------------------------
   Organization
     1.  Design tokens (CSS custom properties)  ← re-theme the whole site here
     2.  Reset & base
     3.  Reusable utilities (.container, .eyebrow, .btn, .reveal)
     4.  Header + burger
     5.  Nav overlay
     6.  Hero
     7.  Stats
     8.  Section heads + capability cards
     9.  Solutions
     10. Featured carousel
     11. Vision + pillars
     12. Gallery grid
     13. Footer
     14. Responsive breakpoints (mobile-first → up)
     15. Reduced-motion & focus (accessibility)

   Method: MOBILE-FIRST. Base rules target small screens; `min-width` media
   queries at the bottom progressively enhance for tablet/desktop.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. DESIGN TOKENS
   Change these to re-skin the site. Colors are sampled from the brief:
   deep navy field, warm gold accent, cool light text.
--------------------------------------------------------------------------- */
:root {
  /* Color */
  --c-bg:        #030508;   /* page background (near-black navy)            */
  --c-bg-2:      #0a0f1b;   /* alternating section background               */
  --c-panel:     #161d32;   /* cards / panels                               */
  --c-panel-2:   #141a2b;   /* card hover / raised panels                   */
  --c-line:      rgba(255,255,255,.08);   /* hairline dividers              */
  --c-gold:      #cda350;   /* primary accent                               */
  --c-gold-soft: #e6cd8a;   /* accent highlight                             */
  --c-text:      #eef1f8;   /* primary text                                 */
  --c-muted:     #98a1b6;   /* secondary text                               */
  --c-white:     #ffffff;
  --c-black:     #000000;

  /* Typography */
  --font-display: "Montserrat", system-ui, "Segoe UI", Arial, sans-serif; /* caps/headings */
  --font-body:    "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Layout */
  --maxw: 1200px;           /* content max width                            */
  --gutter: 20px;           /* horizontal page padding (mobile)             */
  --header-h: 64px;         /* header height (used for scroll offset)       */
  --radius: 12px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --reveal-dur: .7s;
}

/* ---------------------------------------------------------------------------
   2. RESET & BASE
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Offset for the sticky header when jumping to #anchors */
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;   /* stop iOS Safari auto-zooming text   */
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;            /* Roboto 200 (thin) as the body default */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;     /* crisper text on WebKit/Chrome */
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;                       /* guard against side-scroll    */
}

/* When the menu is open we lock body scroll (class added by JS) */
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul  { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.05; }

/* All inline SVG icons inherit color + stroke so they're easy to recolor */
svg {
  width: 100%; height: 100%;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------------------------
   3. UTILITIES
--------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small uppercase gold label that sits above titles */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: clamp(.8rem, 1.6vw, 1.2rem);   /* min · scales-with-width · max */
  font-weight: 500;
  color: var(--c-gold);
  margin: 0 0 14px;
}
.eyebrow--center { text-align: center; }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }   /* arrow nudges on hover  */

.btn--gold  { background: var(--c-gold); color: #1a1205; }
.btn--gold:hover  { background: var(--c-gold-soft); }

.btn--ghost { border-color: var(--c-gold); color: var(--c-gold); }
.btn--ghost:hover { background: var(--c-gold); color: #1a1205; }

/* Section title shared style */
.section__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .04em;
  font-size: clamp(1.6rem, 5.5vw, 2.6rem);  /* fluid sizing across screens */
  line-height: 1.3;
}
.section__rule {                  /* short gold underline under titles    */
  display: block;
  width: 54px; height: 3px;
  background: var(--c-gold);
  margin: 16px auto 0;
  border-radius: 2px;
}
.section__head { text-align: center; margin-bottom: 36px; }

/* Generic vertical rhythm for full sections */
.section { padding: 64px 0; }

/*  REVEAL ANIMATION
    Elements start hidden/shifted; JS adds `.is-visible` when they scroll
    into view, transitioning them in. `--delay` (set inline) staggers groups. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--reveal-dur) var(--ease),
              transform var(--reveal-dur) var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Accessibility helper: visually hide but keep for screen readers / focus */
.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--c-gold); color: #1a1205;
  padding: 10px 16px; border-radius: var(--radius);
  z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------------------
   4. HEADER + BURGER
--------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;            /* pin to top, full width                  */
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
/* JS toggles this once the user scrolls past the hero top */
.site-header.is-scrolled {
  background: rgba(6,8,15,.85);
  border-bottom-color: var(--c-line);
  -webkit-backdrop-filter: blur(10px);   /* Safari needs the prefix        */
  backdrop-filter: blur(10px);
}
.site-header__inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;   /* logo left | email icon right */
}

/* Logo (left) */
.brand { display: inline-flex; }
.brand__logo {
  height: 30px; width: auto;        /* wide horizontal lockup (~4:1)        */
  /* subtle glow so the chrome logo reads on busy hero imagery */
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.6));
}

/* Email button (right) — icon only */
.contact-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;        /* square icon button                   */
  color: var(--c-gold);
}

.contact-btn__icon {
  display: block; width: 100%; height: 100%;
  background: currentColor;             /* inherits .contact-btn color */
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}

/* ---------------------------------------------------------------------------
   6. HERO
--------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;             /* svh = correct mobile viewport height  */
  display: flex; align-items: stretch;   /* content fills full height       */
  padding: calc(var(--header-h) + 24px) 0 80px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }

/* Layered radial "nebula" — pure CSS, no asset required */
.hero__nebula {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 70% 30%, rgba(124,58,237,.55), transparent 60%),
    radial-gradient(55% 50% at 80% 55%, rgba(37,99,235,.45), transparent 60%),
    radial-gradient(40% 40% at 55% 20%, rgba(217,70,239,.35), transparent 65%),
    linear-gradient(180deg, #0a0a1f 0%, #06080f 70%);
}
/* Animated starfield canvas (drawn by main.js) */
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Per-slide background images: stacked, only the active one is visible.
   Opacity transitions on both the incoming and outgoing image = crossfade. */
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.hero__media.is-active { opacity: 1; }
/* Dark scrim gradient keeps the headline readable over any background */
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
            rgba(0,0,0,.85) 0%,      /* dark at very top */
            transparent 30%,          /* clear through the middle */
            transparent 50%,
            rgba(0,0,0,.85) 100%);   /* dark at very bottom */
}

.hero__content { position: relative; z-index: 2; width: 100%;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  text-align: center;                         /* center the slide content   */
  display: flex; flex-direction: column; align-items: center; }

/* Slides stack on top of each other; only .is-active is shown */
.hero__slide {
  display: none;
  max-width: calc(var(--maxw) * 0.85);      /* 85% of the max content width */
  margin-inline: auto;                      /* center the constrained block */
  animation: heroIn .8s var(--ease) both;   /* fade/slide each time shown  */
}
.hero__slide.is-active { display: flex; flex-direction: column; flex: 1; width: 100%; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.8rem, 6.5vw, 3.4rem);  /* min · scales-with-width · max */
  letter-spacing: .01em;
  line-height: 1.3;
  /* safety net only: keeps an unusually long word from overflowing */
  overflow-wrap: break-word;
  margin-bottom: 20px;
}
.hero__lead {
  color: #d7dbe6;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  max-width: none;                           /* span 100% of the slide width */
  margin: 0 0 0;
  margin-top: auto;                          /* push the lead to the bottom  */
}

/* Numbered slide indicators: a horizontal row centered at the bottom of the
   hero, at every screen size. Positioned absolutely so they sit independently
   of the (top-aligned) slide content. */
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);    /* horizontal centering */
  z-index: 2;
  display: flex;
  gap: 16px;
}
.hero__dot {
  background: none; border: 0;
  font-family: var(--font-display);
  color: var(--c-muted);
  letter-spacing: .1em;
  padding: 6px 2px;
  position: relative;
  transition: color .25s var(--ease);
}
.hero__dot::after {                 /* growing underline on active slide   */
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--c-gold);
  transition: width .3s var(--ease);
}
.hero__dot.is-active { color: var(--c-text); }
.hero__dot.is-active::after { width: 100%; }

/* ---------------------------------------------------------------------------
   7. STATS
--------------------------------------------------------------------------- */
.stats { background: var(--c-bg-2);
  /* border-block: 1px solid var(--c-line); */
  padding: 36px 0; }
.stats__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;     /* centers a short last row              */
  --n: 2;                      /* columns at this breakpoint (mobile)   */
  gap: 28px 12px;
  text-align: center;
}
/* each item is one "column" wide; −1px guards against rounding wrap */
.stat { flex: 0 0 calc((100% - (var(--n) - 1) * 12px) / var(--n) - 1px); }
.stat__icon {
  width: 70px; height: 70px; margin: 0 auto 10px;
  /* Icon shape comes from an embedded data-URI mask; color is set here. */
  color: var(--c-gold);
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  margin: 0;
  color: var(--c-text);
}
.stat__label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 1rem;
  color: var(--c-muted);
  margin: 4px 0 0;
}

/* ---------------------------------------------------------------------------
   8. CAPABILITY CARDS
--------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;        /* single column on mobile            */
  gap: 18px;
}
.card {
  background: var(--c-bg-2);
  /* border: 1px solid var(--c-line); */
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(205,163,80,.5);
  background: var(--c-panel-2);
}
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }   /* zoom on hover */
.card__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--c-gold);
  padding: 18px 18px 0;
  text-align: center;
}
.card__text {
  color: var(--c-white);
  font-size: 1rem;
  line-height: 1.4;
  padding: 8px 18px 20px;
  margin: 0;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   9. SOLUTIONS
--------------------------------------------------------------------------- */
.solutions {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
}
/* full-bleed background image + dark scrim for text legibility */
.solutions__bg { position: absolute; inset: 0; z-index: 0; }
.solutions__bg img { width: 100%; height: 100%; object-fit: cover; }
.solutions__scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
}
.solutions__inner { position: relative; z-index: 1; text-align: center; }
.solutions__lead {
  color: var(--c-muted);
  margin: 14px auto 42px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.6; 
  max-width: 85%;
}
/* row of icon items (mobile: 2 columns) */
.solutions__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;     /* centers a short last row              */
  --n: 2;                      /* columns at this breakpoint (mobile)   */
  gap: 34px 18px;
  margin: 0; padding: 0; list-style: none;
}
.solution {
  flex: 0 0 calc((100% - (var(--n) - 1) * 18px) / var(--n) - 1px);
  text-align: center;
}
.solution__icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  color: var(--c-gold);                 /* icon color (change here) */
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.solution__label {
  color: #ffffff; font-size: 1.2rem; margin: 0;
  max-width: 16ch; margin-inline: auto; line-height: 1.4;
}

/* ---------------------------------------------------------------------------
   10. FEATURED CAROUSEL
--------------------------------------------------------------------------- */
.carousel {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
}
.carousel__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;       /* snap each card into place        */
  -webkit-overflow-scrolling: touch;   /* momentum scroll on iOS           */
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 20px;
  scrollbar-width: none;               /* hide scrollbar (Firefox)         */
}
.carousel__track::-webkit-scrollbar { display: none; }  /* hide (WebKit)   */

.feature {
  flex: 0 0 78%;                       /* ~1 card per view on mobile       */
  scroll-snap-align: start;
}
.feature__media {
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}
.feature__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.feature:hover .feature__media img { transform: scale(1.05); }
.feature__title {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .05em;
  font-size: 1.2rem; font-weight: 800;
  margin: 12px 0 2px;
}
.feature__loc {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; color: var(--c-gold); margin: 0;
}

/* Prev/next arrows — hidden on touch-first mobile, shown on wider screens */
.carousel__btn {
  display: none;
  position: absolute; top: 38%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(6,8,15,.7);
  border: 1px solid var(--c-line);
  color: var(--c-text);
  align-items: center; justify-content: center;
  z-index: 3;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn:hover { background: var(--c-gold); color: #1a1205; border-color: var(--c-gold); }
.carousel__btn--prev { left: 6px; }
.carousel__btn--next { right: 6px; }

/* ---------------------------------------------------------------------------
   11. VISION + PILLARS
--------------------------------------------------------------------------- */
.vision {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
}
/* full-bleed background image + dark scrim */
.vision__bg { position: absolute; inset: 0; z-index: 0; }
.vision__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.vision__scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
}
.vision__inner { position: relative; z-index: 1; text-align: center;}
.vision__lead {
  color: var(--c-muted);
  margin: 14px auto 42px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.6; 
  max-width: 85%;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 18px;
}
.pillar { text-align: center; }                 /* center icon, title, text */
.pillar__icon {
  width: 64px; height: 64px; margin: 0 auto 12px;
  color: var(--c-gold);                 /* icon color (change here) */
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.pillar__title {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--c-gold);
  margin-bottom: 6px;
}
.pillar__text {
  color: var(--c-white); font-size: 1rem; margin: 0;
  max-width: 28ch; margin-inline: auto; line-height: 1.4;
}

/* ---------------------------------------------------------------------------
   12. GALLERY GRID
   Uniform 16:9 grid. Every tile is 16:9; a tile tagged `.gallery__item--big`
   spans a 2×2 block — which is ALSO 16:9 (2×16 : 2×9 = 16:9).

   HOW THE 16:9 CELL IS ACHIEVED
   The grid is full-bleed (spans the full viewport width). Each column is
   (100vw − gaps) ÷ columns wide, so we set the row height to that column
   width × 9/16. Result: a 1×1 tile is exactly 16:9, and a 2×2 tile is ~16:9
   (off only by the thin gap). Column count is a fixed whole number per
   breakpoint, so the grid always fills the width and never cuts a cell.

   TO MAKE A TILE BIG: add the class `gallery__item--big` (2×2 block).
   That is the only size modifier — every other tile is a single 16:9 cell.
   `grid-auto-flow: dense` back-fills the gaps a big tile leaves behind, so a
   big tile that won't fit at the right edge simply moves down and the small
   tiles flow around it (same packing you see in the sample image).
--------------------------------------------------------------------------- */
.gallery { padding: 0; }
.gallery__grid {
  --cols: 4;                          /* columns at this breakpoint (mobile)  */
  --gap: 4px;                         /* thin space between cells             */
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  /* row height = one column's width × 9/16  →  each 1×1 cell is 16:9 */
  grid-auto-rows: calc((100vw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 9 / 16);
  grid-auto-flow: dense;              /* pack gaps left by big tiles          */
  gap: var(--gap);
}
.gallery__item { position: relative; overflow: hidden; margin: 0; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;                  /* crop to fill the 16:9 cell           */
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.07); filter: brightness(1.08); }

/* Reveal effect tuned for the grid: tiles scale up slightly as they appear */
.gallery__item.reveal { transform: translateY(20px) scale(.96); }
.gallery__item.reveal.is-visible { transform: none; }

/* BIG tile = 2 columns × 2 rows = 4 cells, still ~16:9.
   Works at every breakpoint because the grid is always ≥ 2 columns wide. */
.gallery__item--big { grid-column: span 2; grid-row: span 2; }

/* Tap-to-expand: tiles are tappable; the open tile sits above its neighbors
   while the FLIP reflow animates (transform/transition are driven in JS). */
.gallery__item { cursor: pointer; -webkit-user-select: none; user-select: none; }
.gallery__item.is-expanded { z-index: 5; }

/* ---------------------------------------------------------------------------
   13. FOOTER
--------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
  padding: 34px 0;
}
.site-footer__inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  text-align: center;
}
.site-footer__logo { height: 30px; width: auto; opacity: .9; }
.site-footer__copy {
  color: var(--c-muted);
  font-size: .82rem; letter-spacing: .04em;
  margin: 0;
}

/* ===========================================================================
   14. RESPONSIVE BREAKPOINTS  (mobile-first → larger)
   =========================================================================== */

/* ≥ 600px — small tablets */
@media (min-width: 600px) {
  .stats__grid { --n: 4; }  /* 4-up stats   */
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pillars { gap: 30px 24px; }
  .solutions__items { --n: 3; }
  .feature { flex-basis: 46%; }
  .gallery__grid { --cols: 6; }       /* row height recalculates from --cols */
}

/* ≥ 860px — tablets / small laptops */
@media (min-width: 860px) {
  :root { --gutter: 32px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .feature { flex-basis: 31%; }
  .carousel__btn { display: inline-flex; }   /* show arrows on pointer UIs */
  .gallery__grid { --cols: 8; }
}

/* ≥ 1080px — desktop */
@media (min-width: 1080px) {
  .brand__logo { height: 38px; }
  .gallery__grid { --cols: 10; }
  .solutions__items { --n: 5; }
}

/* ≥ 2560px — 2K / QHD displays: add gallery columns so tiles don't get huge.
   NOTE: media queries use CSS pixels, not the panel's native pixels. A 4K
   screen running at 150–200% OS scaling reports ~1920–2560 CSS px, so it will
   typically match THIS 2K band rather than the 4K one below. */
@media (min-width: 2560px) {
  .gallery__grid { --cols: 14; }
}

/* ≥ 3840px — 4K / UHD displays at 100% scaling (true 3840 CSS px wide). */
@media (min-width: 3840px) {
  .gallery__grid { --cols: 18; }
}

/* ===========================================================================
   15. ACCESSIBILITY: focus + reduced motion
   =========================================================================== */

/* Clear keyboard focus ring on all interactive elements */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Respect users who prefer less motion: disable transitions/animations and
   show all reveal content immediately. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
