/* ==========================================================================
   MrCode extra — portfolio design system
   Techy / precise · stacked panels · tonal hue steps · indigo + cyan + one amber
   ========================================================================== */

:root {
  --navy: #0F172A;
  --navy-2: #0B1226;
  --navy-3: #070D1F;
  --indigo: #6366F1;
  --indigo-2: #4F46E5;
  --cyan: #22D3EE;
  --cyan-2: #67E8F9;
  --amber: #F59E0B;
  --snow: #F8FAFC;

  --text: #E8EEF9;
  --muted: #AEBBD3;
  --faint: #8D9BB6;
  --line: rgba(148, 163, 184, .18);
  --line-2: rgba(165, 180, 252, .34);
  --grid: rgba(129, 140, 248, .075);
  --danger: #FCA5A5;

  --font-body: var(--mrc-font-en, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif);
  --font-display: var(--mrc-font-en, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif);
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --pad-x: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  --section-y: clamp(3.75rem, 8.5vw, 7rem);
  --overlap: clamp(1.75rem, 4.5vw, 3.25rem);

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --r-xl: 42px;
  --r-btn: 14px;

  --shadow-card: 0 24px 60px -28px rgba(2, 6, 23, .9);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--indigo); color: #fff; }

a {
  color: var(--cyan-2);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .2s ease;
}
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only, .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.container, .wrap, .wrapper, .inner, .section-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--snow);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  max-width: 24ch;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.015em;
}

h4 { font-size: 1.05rem; font-weight: 700; }

h1 em, h2 em, h3 em,
h2 .light, h1 .light {
  font-style: normal;
  font-weight: 300;
  color: var(--cyan-2);
}

p { color: var(--muted); max-width: 64ch; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; color: var(--snow); }

.lead, .intro, .subtitle, .section-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  color: #CBD5E1;
}

.eyebrow, .kicker, .section-label, .section-kicker, .hero-eyebrow, .hero-tag, .overline {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before, .kicker::before, .section-label::before,
.section-kicker::before, .hero-eyebrow::before, .hero-tag::before, .overline::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  border-radius: 2px;
}

code, kbd, .mono {
  font-family: var(--font-mono);
}
code, kbd {
  font-size: .85em;
  color: var(--cyan-2);
  background: rgba(99, 102, 241, .16);
  border: 1px solid var(--line-2);
  padding: .12em .55em;
  border-radius: 999px;
}

/* ---------- Header ---------- */
body > header, .site-header {
  position: relative;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  padding: .85rem var(--pad-x);
  background: rgba(15, 23, 42, .86);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

body > header > :is(.container, .wrap, .wrapper, .inner, .header-inner, .nav-wrap, .navbar),
.site-header > :is(.container, .wrap, .wrapper, .inner, .header-inner, .nav-wrap, .navbar) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
}

body > header :is(.logo, .brand, .site-logo, .brand-name, .navbar-brand, .wordmark),
.site-header :is(.logo, .brand, .site-logo, .brand-name, .navbar-brand, .wordmark) {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--snow);
  text-decoration: none;
  white-space: nowrap;
  -webkit-text-fill-color: currentColor;
  background: none;
}

body > header :is(.logo, .brand, .site-logo, .brand-name, .navbar-brand):not(:has(img, svg, .logo-mark, .logo-dot))::before,
.site-header :is(.logo, .brand, .site-logo, .brand-name, .navbar-brand):not(:has(img, svg, .logo-mark, .logo-dot))::before {
  content: "";
  width: .7rem; height: .7rem;
  margin-right: .6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  box-shadow: 0 0 14px var(--cyan);
}

/* mobile nav: links stay visible as a compact pill group (no toggle needed) */
.nav-toggle, .menu-toggle, .hamburger, .burger, .mobile-menu-toggle, .navbar-toggle,
button[aria-controls*="nav"], button[aria-controls*="menu"] {
  display: none !important;
}

body > header nav, .site-header nav { flex: 1 1 100%; }

body > header nav ul, .site-header nav ul,
body > header nav:not(:has(ul)), .site-header nav:not(:has(ul)) {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  list-style: none;
  margin: 0;
  padding: .3rem;
  background: rgba(30, 41, 82, .5);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
}

body > header nav li, .site-header nav li { list-style: none; }

body > header nav a, .site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: .5rem .95rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

body > header nav a:hover, .site-header nav a:hover {
  color: #fff;
  background: rgba(99, 102, 241, .28);
}

body > header nav a:is([aria-current="page"], .active, .is-active, .current),
.site-header nav a:is([aria-current="page"], .active, .is-active, .current) {
  color: #fff;
  background: var(--indigo-2);
  box-shadow: 0 0 0 1px rgba(165, 180, 252, .35) inset;
}

body > header [data-cta="primary"], .site-header [data-cta="primary"] {
  min-height: 2.75rem;
  font-size: .9rem;
}

@media (min-width: 900px) {
  body > header, .site-header {
    position: sticky;
    top: 0;
    flex-wrap: nowrap;
  }
  body > header nav, .site-header nav { flex: 0 1 auto; }
}

/* ---------- Main: stacked panels with tonal hue steps ---------- */
main { display: block; position: relative; }

main > section {
  --tone: #0F172A;
  --glow1: rgba(99, 102, 241, .30);
  --glow2: rgba(34, 211, 238, .16);
  --gx1: 85%;
  --gx2: 8%;
  position: relative;
  isolation: isolate;
  padding: var(--section-y) var(--pad-x) calc(var(--section-y) + var(--overlap));
  background-color: var(--tone);
  background-image:
    radial-gradient(60rem 28rem at var(--gx1) -6%, var(--glow1), transparent 70%),
    radial-gradient(44rem 24rem at var(--gx2) 106%, var(--glow2), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}

main > section + section {
  margin-top: calc(var(--overlap) * -1);
  padding-top: calc(var(--section-y) + var(--overlap));
  border-radius: var(--overlap) var(--overlap) 0 0;
  border-top: 1px solid rgba(165, 180, 252, .16);
  box-shadow: 0 -26px 60px -30px rgba(0, 0, 0, .7);
}

main > section:nth-of-type(2) { --tone: hsl(226 48% 13%); --gx1: 12%; --gx2: 92%; }
main > section:nth-of-type(3) { --tone: hsl(233 46% 16%); --glow1: rgba(34, 211, 238, .16); --glow2: rgba(99, 102, 241, .28); }
main > section:nth-of-type(4) { --tone: hsl(240 44% 18%); --gx1: 12%; --gx2: 92%; }
main > section:nth-of-type(5) { --tone: hsl(210 50% 15%); }
main > section:nth-of-type(6) { --tone: hsl(196 52% 14%); --gx1: 12%; --gx2: 92%; }
main > section:nth-of-type(7) { --tone: hsl(190 55% 13%); }

main > section > :is(.container, .wrap, .wrapper, .inner, .section-inner) { padding: 0; }

main > section[id] { scroll-margin-top: 5rem; }

main header, .section-header, .section-head, .section-intro {
  max-width: 780px;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
main header > :last-child { margin-bottom: 0; }

/* ---------- Hero (text-first, massive wordmark) ---------- */
main > section:first-of-type {
  padding-top: clamp(3.5rem, 9vw, 7.5rem);
  padding-bottom: calc(clamp(3.5rem, 9vw, 7rem) + var(--overlap));
  background-image:
    radial-gradient(56rem 26rem at 88% -8%, rgba(99, 102, 241, .38), transparent 70%),
    radial-gradient(40rem 22rem at 4% 100%, rgba(34, 211, 238, .2), transparent 70%),
    linear-gradient(180deg, rgba(15, 23, 42, .42), rgba(15, 23, 42, .93) 96%),
    url("../img/bg-desktop.jpg");
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center top;
  background-repeat: no-repeat;
}

main > section:first-of-type:has(:is(.wordmark, .hero-wordmark, .hero-brand, .brand-wordmark, .hero-logo)) {
  padding-top: clamp(4rem, 11vw, 9rem);
  padding-bottom: calc(clamp(4.5rem, 11vw, 9rem) + var(--overlap));
}

@media (max-width: 700px) {
  main > section:first-of-type {
    background-image:
      radial-gradient(40rem 20rem at 88% -8%, rgba(99, 102, 241, .38), transparent 70%),
      radial-gradient(30rem 18rem at 4% 100%, rgba(34, 211, 238, .2), transparent 70%),
      linear-gradient(180deg, rgba(15, 23, 42, .42), rgba(15, 23, 42, .93) 96%),
      url("../img/bg-mobile.jpg");
  }
}

main > section:first-of-type h1 {
  max-width: 20ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.035em;
  background: linear-gradient(100deg, #fff 30%, #A5F3FC 70%, #C7D2FE);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

main > section:first-of-type:has(:is(.wordmark, .hero-wordmark, .hero-brand, .brand-wordmark, .hero-logo)) h1 {
  max-width: none;
  font-size: clamp(1.35rem, 3.1vw, 2.3rem);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -.015em;
  background: none;
  color: var(--snow);
  -webkit-text-fill-color: currentColor;
}

main > section:first-of-type p {
  max-width: 58ch;
  margin-bottom: 1.75rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  color: #CBD5E1;
}

/* wordmark */
main > section:first-of-type :is(.wordmark, .hero-wordmark, .hero-brand, .brand-wordmark, .hero-logo) {
  display: block;
  max-width: 100%;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 12.4vw, 9.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
  background: linear-gradient(100deg, #F8FAFC 0%, #67E8F9 22%, #6366F1 48%, #22D3EE 72%, #F8FAFC 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(99, 102, 241, .35));
  transition: letter-spacing .5s var(--ease), filter .5s var(--ease);
  animation: mrc-shimmer 9s ease-in-out infinite;
}

main > section:first-of-type :is(.wordmark, .hero-wordmark, .hero-brand, .brand-wordmark, .hero-logo):hover {
  letter-spacing: -.035em;
  filter: drop-shadow(0 0 34px rgba(34, 211, 238, .45));
}

main > section:first-of-type :is(.wordmark, .hero-wordmark) :is(em, .extra, .outline) {
  font-style: normal;
  -webkit-text-stroke: 2px rgba(248, 250, 252, .85);
}

.wordmark-outline, .text-outline, .outline-text {
  color: transparent;
  background: none;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
}

@keyframes mrc-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  main > section:first-of-type h1,
  main > section:first-of-type :is(.wordmark, .hero-wordmark) { color: var(--cyan-2); }
}

/* hero action group */
.hero-actions, .cta-group, .btn-group, .actions, .hero-cta, .hero-buttons, .buttons, .button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 1.5rem;
}

.stats, .hero-stats, .hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  margin: 2.25rem 0 0;
  padding: 1.25rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--faint);
}
.stats strong, .hero-stats strong, .hero-facts strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cyan-2);
}

main :is(.hero-graphic, .hero-visual, .hero-art) { margin-top: 2rem; }
main :is(.hero-graphic, .hero-visual, .hero-art) img {
  width: min(100%, 280px);
  border-radius: 38%;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -28px rgba(99, 102, 241, .75);
}
@media (min-width: 960px) {
  main > section:first-of-type :is(.hero-inner, .hero-grid):has(:is(.hero-graphic, .hero-visual, .hero-art)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: center;
  }
}

/* ---------- Buttons ---------- */
.btn, .button, .btn-secondary, .btn--secondary, .btn-ghost, .btn-outline,
.button-secondary, .cta-secondary, .cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  margin: .35rem .7rem .35rem 0;
  padding: .7rem 1.4rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--snow);
  background: rgba(34, 211, 238, .06);
  border: 1.5px solid rgba(34, 211, 238, .55);
  border-radius: var(--r-btn);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s ease, color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}
.btn:hover, .button:hover, .btn-secondary:hover, .btn--secondary:hover, .btn-ghost:hover,
.btn-outline:hover, .button-secondary:hover, .cta-secondary:hover, .cta-ghost:hover {
  color: var(--navy);
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(34, 211, 238, .6);
}
.btn:active, .button:active, .btn-secondary:active, .btn--secondary:active, .btn-ghost:active,
.btn-outline:active, .button-secondary:active, .cta-secondary:active, .cta-ghost:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* primary CTA: rectangular high-contrast block + attached icon chip */
a[data-cta="primary"], .btn-primary, .btn--primary, .button-primary,
.cta-button, .cta-btn, .cta-primary, a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 3.5rem;
  margin: .35rem .7rem .35rem 0;
  padding: .375rem .375rem .375rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .005em;
  line-height: 1.2;
  color: var(--navy);
  background: var(--amber);
  border: 0;
  border-radius: var(--r-btn);
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 14px 32px -12px rgba(245, 158, 11, .55),
    0 4px 10px -2px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease;
}

a[data-cta="primary"]::after, .btn-primary::after, .btn--primary::after, .button-primary::after,
.cta-button::after, .cta-btn::after, .cta-primary::after, a.cta::after {
  content: "\2192";
  content: "\2192" / "";
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: 1.25rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  background: var(--navy);
  border-radius: 10px;
  transition: transform .25s var(--ease), background .2s ease;
}

a[data-cta="primary"]:has(> :is(.btn-icon, .cta-icon, .icon-chip, .btn-chip, .btn-arrow, .cta-arrow, .arrow, svg, i))::after,
:is(.btn-primary, .btn--primary, .button-primary, .cta-button, .cta-btn, .cta-primary, a.cta):has(> :is(.btn-icon, .cta-icon, .icon-chip, .btn-chip, .btn-arrow, .cta-arrow, .arrow, svg, i))::after {
  content: none;
}

:is(a[data-cta="primary"], .btn-primary, .btn--primary, .button-primary, .cta-button, .cta-btn, .cta-primary, a.cta)
  > :is(.btn-icon, .cta-icon, .icon-chip, .btn-chip, .btn-arrow, .cta-arrow, .arrow, svg, i) {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: 1.25rem;
  padding: 0;
  font-style: normal;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--cyan);
  background: var(--navy);
  border-radius: 10px;
}
:is(a[data-cta="primary"], .btn-primary, .cta-button, .cta-btn) > svg { padding: .7rem; stroke: currentColor; }

a[data-cta="primary"]:hover, .btn-primary:hover, .btn--primary:hover, .button-primary:hover,
.cta-button:hover, .cta-btn:hover, .cta-primary:hover, a.cta:hover {
  color: var(--navy);
  background: #FBBF24;
  transform: translateY(-2px);
  box-shadow:
    0 22px 40px -14px rgba(245, 158, 11, .65),
    0 8px 16px -4px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .4);
}
a[data-cta="primary"]:hover::after, .btn-primary:hover::after, .btn--primary:hover::after,
.button-primary:hover::after, .cta-button:hover::after, .cta-btn:hover::after,
.cta-primary:hover::after, a.cta:hover::after { transform: translateX(3px); }

a[data-cta="primary"]:active, .btn-primary:active, .btn--primary:active, .button-primary:active,
.cta-button:active, .cta-btn:active, .cta-primary:active, a.cta:active {
  transform: translateY(1px) scale(.985);
  background: #D98B06;
  box-shadow: 0 5px 12px -6px rgba(245, 158, 11, .6), inset 0 2px 4px rgba(0, 0, 0, .2);
}

a[data-cta="primary"]:focus-visible, .btn-primary:focus-visible, .cta-button:focus-visible,
.btn:focus-visible, .btn-secondary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
  border-radius: var(--r-btn);
}

button[disabled], .btn[aria-disabled="true"], .is-loading {
  opacity: .65;
  cursor: wait;
  pointer-events: none;
}

/* ---------- Card system ---------- */
.grid, .cards, .card-grid, .grid-2, .grid-3, .grid-4, .projects-grid, .games-grid, .product-grid,
.services-grid, .apps-grid, .skills-grid, .platform-grid, .info-grid, .collab-grid, .features,
.steps, .process-steps, .process-list, .workflow-steps, .timeline,
main > section :where(div, ul, ol):has(> article) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

:is(main > section:not(:first-of-type) > ul, main > section:not(:first-of-type) > div > ul):not([class*="tag"]):not([class*="badge"]):not([class*="chip"]):not([class*="pill"]):not([class*="meta"]):not([class*="platform-list"]) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(.9rem, 2vw, 1.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

:is(main > section:not(:first-of-type) > ul, main > section:not(:first-of-type) > div > ul):not([class*="tag"]):not([class*="badge"]):not([class*="chip"]):not([class*="pill"]):not([class*="meta"]):not([class*="platform-list"]) > li {
  position: relative;
  padding: 1.4rem 1.5rem;
  color: var(--muted);
  background: linear-gradient(160deg, rgba(99, 102, 241, .14), rgba(15, 23, 42, .4) 60%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .35s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
:is(main > section:not(:first-of-type) > ul, main > section:not(:first-of-type) > div > ul):not([class*="tag"]):not([class*="badge"]):not([class*="chip"]):not([class*="pill"]):not([class*="meta"]):not([class*="platform-list"]) > li:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, .45);
  box-shadow: 0 22px 50px -26px rgba(34, 211, 238, .4);
}

:is(.card, .game-card, .project-card, .product-card, .app-card, .service-card, .skill-card,
    .info-card, .collab-card, .platform-card, .feature-card, .story-card, .tile),
main > section:not(:first-of-type) article {
  --card-pad: clamp(1.25rem, 2.5vw, 1.75rem);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: var(--card-pad);
  background: linear-gradient(160deg, rgba(99, 102, 241, .16), rgba(15, 23, 42, .4) 60%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s ease, box-shadow .3s ease;
}

:is(.card, .game-card, .project-card, .product-card, .app-card, .service-card, .skill-card,
    .info-card, .collab-card, .platform-card, .feature-card, .story-card, .tile):hover,
main > section:not(:first-of-type) article:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 28px 64px -26px rgba(34, 211, 238, .38), 0 0 0 1px rgba(99, 102, 241, .35);
}

:is(.card, .game-card, .project-card, .product-card, .app-card, .service-card, .skill-card,
    .info-card, .collab-card, .platform-card, .feature-card, .story-card, .tile) img,
main > section:not(:first-of-type) article img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  transition: filter .4s ease, transform .4s var(--ease);
}
main > section:not(:first-of-type) article:hover img { filter: brightness(1.1) saturate(1.1); transform: scale(1.015); }

main > section:not(:first-of-type) article h3 { color: var(--snow); }
main > section:not(:first-of-type) article p { margin-bottom: 0; font-size: .98rem; }

:is(.card-actions, .card-footer, .card-links, .actions-row) {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: auto;
  padding-top: .5rem;
}
main > section:not(:first-of-type) article > :is(.btn, .button, .card-link, .text-link, .link-arrow):last-child { margin-top: auto; align-self: flex-start; }
main > section:not(:first-of-type) article .btn { min-height: 2.75rem; padding: .55rem 1.15rem; font-size: .9rem; }

:is(.card-link, .text-link, .link-arrow) {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}
:is(.card-link, .text-link, .link-arrow)::after { content: "\2192"; transition: transform .2s ease; }
:is(.card-link, .text-link, .link-arrow):hover::after { transform: translateX(4px); }

:is(.card-icon, .service-icon, .platform-icon, .skill-icon, .feature-icon),
main > section:not(:first-of-type) article > .icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo-2), #0E7490);
  border-radius: 50%;
  box-shadow: 0 10px 24px -10px rgba(34, 211, 238, .55);
}

/* badges / tags */
.tags, .badges, .chips, .tag-list, .platform-list, .platform-tags, .card-tags, .card-meta, .pills, .meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  margin: 0 0 .25rem;
  padding: 0;
}

.badge, .tag, .chip, .pill, .platform-badge, .platform-tag, .platform,
:is(.tags, .badges, .chips, .tag-list, .platform-list, .platform-tags, .card-tags, .card-meta, .pills) > li {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  padding: .28rem .8rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--cyan-2);
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: 999px;
}

/* games list: story-led alternating rows */
:is(#games-list, .games-list) > :is(.container, .wrap, .inner, .games-grid, .grid, .cards),
:is(#games-list, .games-list) {
  --rows: 1;
}
:is(#games-list, .games-list) :where(div, ul):has(> article) {
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
}

:is(#games-list, .games-list) article {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--r-xl);
  align-items: center;
}
:is(#games-list, .games-list) article > :is(img, figure, picture, .card-media, .card-image, .game-media) { width: 100%; }
:is(#games-list, .games-list) article img { aspect-ratio: 1 / 1; max-height: 460px; border-radius: var(--r-lg); }
:is(#games-list, .games-list) article h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; }
:is(#games-list, .games-list) article p { font-size: 1.05rem; font-weight: 300; color: #CBD5E1; }

@media (min-width: 860px) {
  :is(#games-list, .games-list) article { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  :is(#games-list, .games-list) article:nth-child(even) > :first-child { order: 2; }
}

/* process / workflow: numbered steps */
:is(#process, .process, #workflow, .workflow) { counter-reset: step; }

:is(#process, .process, #workflow, .workflow) :is(li, article, .step, .process-step, .workflow-step) {
  counter-increment: step;
}
:is(#process, .process, #workflow, .workflow) :is(li, article, .step, .process-step, .workflow-step):not(:has(.step-number, .step-num, .num, .number, .step-index))::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: .35rem;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.25px var(--cyan);
}
:is(.step-number, .step-num, .num, .number, .step-index) {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.25px var(--cyan);
}

/* notes */
.note, .info-note, .response-note, aside.note {
  max-width: 64ch;
  margin-top: 1.75rem;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .86rem;
  line-height: 1.6;
  color: var(--muted);
  background: rgba(34, 211, 238, .05);
  border: 1px dashed rgba(34, 211, 238, .45);
  border-radius: var(--r-md);
}

blockquote {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--cyan);
  background: rgba(99, 102, 241, .1);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text);
}

/* ---------- Closing CTA panel ---------- */
section.cta, section#cta, .cta-section, .cta-band {
  --tone: #312E81;
  --glow1: rgba(34, 211, 238, .30);
  --glow2: rgba(99, 102, 241, .45);
  overflow: clip;
  text-align: center;
  background-image:
    radial-gradient(50rem 24rem at 80% -10%, var(--glow1), transparent 70%),
    radial-gradient(40rem 22rem at 10% 110%, var(--glow2), transparent 70%),
    linear-gradient(135deg, #312E81 0%, #4338CA 45%, #155E75 100%),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
}
section.cta::after, section#cta::after, .cta-section::after, .cta-band::after {
  content: "MrCode extra";
  content: "MrCode extra" / "";
  position: absolute;
  left: 50%;
  bottom: -.18em;
  z-index: -1;
  translate: -50% 0;
  font-size: clamp(4rem, 19vw, 16rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .16);
  pointer-events: none;
}
section.cta h2, section#cta h2, .cta-section h2, .cta-band h2 {
  margin-inline: auto;
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: #fff;
}
section.cta p, section#cta p, .cta-section p, .cta-band p {
  margin-inline: auto;
  color: var(--snow);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}
section.cta :is(.cta-group, .btn-group, .actions, .buttons),
section#cta :is(.cta-group, .btn-group, .actions, .buttons),
.cta-section :is(.cta-group, .btn-group, .actions, .buttons) {
  justify-content: center;
  margin-top: 2rem;
}
section.cta .btn, section#cta .btn, .cta-section .btn {
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
  background: rgba(15, 23, 42, .25);
}
section.cta .btn:hover, section#cta .btn:hover, .cta-section .btn:hover {
  color: var(--navy);
  background: #fff;
  border-color: #fff;
}

/* ---------- Contact: elevated card in a contrasting section ---------- */
main > section:has(form) {
  --tone: #312E81;
  background-image:
    radial-gradient(46rem 24rem at 15% -10%, rgba(34, 211, 238, .28), transparent 70%),
    radial-gradient(40rem 22rem at 90% 110%, rgba(99, 102, 241, .5), transparent 70%),
    linear-gradient(160deg, #1E1B4B 0%, #3730A3 50%, #155E75 100%),
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
}

main > section:has(form) > :is(h2, p, .section-header, .eyebrow, .kicker) { margin-inline: auto; text-align: center; }
main > section:has(form) > h2 { color: #fff; }
main > section:has(form) > p { color: var(--snow); }

main > section:has(form) :is(form, .contact-card, .form-card, .contact-box, .form-wrap, .form-wrapper, .form-panel) {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, #111B3A, #0B1226);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-xl);
  box-shadow: 0 44px 90px -32px rgba(0, 0, 0, .8), 0 0 0 8px rgba(255, 255, 255, .04), 0 0 80px -20px rgba(34, 211, 238, .25);
}

main > section:has(form) :is(.contact-card, .form-card, .contact-box, .form-wrap, .form-wrapper, .form-panel) form {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

main form { display: grid; gap: 1.15rem; }

:is(.form-row, .form-grid, .field-row) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

:is(.field, .form-group, .form-field) { display: grid; gap: .45rem; }

label {
  display: block;
  margin-bottom: .45rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan-2);
}
:is(.field, .form-group, .form-field) > label { margin-bottom: 0; }

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
select, textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: .9rem 1.4rem;
  font-size: 1rem;
  color: var(--snow);
  background: rgba(15, 23, 42, .92);
  border: 1.5px solid rgba(148, 163, 184, .32);
  border-radius: 999px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
textarea {
  min-height: 9rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--r-lg);
  resize: vertical;
  line-height: 1.6;
}
::placeholder { color: #8795B1; opacity: 1; }

input:hover, select:hover, textarea:hover { border-color: rgba(34, 211, 238, .5); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .22);
  background: #0B1226;
}
:is(input, select, textarea):is([aria-invalid="true"], .is-invalid, .invalid) {
  border-color: #F87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, .18);
}
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--cyan); }

form :is(button[type="submit"], input[type="submit"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  min-height: 3.4rem;
  margin: .35rem 0 0;
  padding: .8rem 1.75rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--cyan);
  border: 0;
  border-radius: var(--r-btn);
  box-shadow: 0 14px 30px -14px rgba(34, 211, 238, .7);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease;
}
form button[type="submit"]::after { content: none; }
form :is(button[type="submit"], input[type="submit"]):hover {
  background: #67E8F9;
  transform: translateY(-2px);
  box-shadow: 0 22px 38px -16px rgba(34, 211, 238, .75);
}
form :is(button[type="submit"], input[type="submit"]):active {
  transform: translateY(1px);
  box-shadow: none;
}

.form-status, .form-message, .form-feedback, [data-form-status], .alert {
  padding: 1rem 1.4rem;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--snow);
  background: rgba(99, 102, 241, .16);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}
.form-status:empty, .form-message:empty, .form-feedback:empty, [data-form-status]:empty { display: none; }
:is(.form-status, .form-message, .form-feedback, [data-form-status], .alert):is(.success, .is-success, .form-success, [data-state="success"]) {
  color: #ECFEFF;
  background: rgba(34, 211, 238, .12);
  border-color: rgba(34, 211, 238, .6);
}
:is(.form-status, .form-message, .form-feedback, [data-form-status], .alert):is(.error, .is-error, .form-error, [data-state="error"]) {
  color: #FEE2E2;
  background: rgba(248, 113, 113, .12);
  border-color: rgba(248, 113, 113, .6);
}
.field-error, .error-text { font-size: .85rem; color: var(--danger); }
.form-hint, .form-note, form small { font-size: .82rem; color: var(--faint); }

/* ---------- Accordion (details) ---------- */
details {
  background: rgba(15, 23, 42, .6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s ease;
}
details + details { margin-top: .75rem; }
details[open] { border-color: rgba(34, 211, 238, .45); }
summary {
  padding: 1rem 1.4rem;
  font-weight: 700;
  color: var(--snow);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-family: var(--font-mono); color: var(--cyan); }
details[open] summary::after { content: "\2212"; }
details > :not(summary) { padding: 0 1.4rem 1.2rem; }

/* ---------- Gallery + lightbox ---------- */
.gallery, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem;
}
.gallery :is(a, button), .gallery-grid :is(a, button), .thumb {
  display: block;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .25s var(--ease), border-color .25s ease;
}
.gallery :is(a, button):hover, .gallery-grid :is(a, button):hover, .thumb:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}
.gallery img, .gallery-grid img, .thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(2, 6, 23, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 84vh;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .85);
}
.lightbox :is(.lightbox-close, .close, button) {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--snow);
  background: rgba(30, 41, 82, .9);
  border: 1px solid var(--line-2);
  border-radius: 50%;
}

/* ---------- Footer (editorial) ---------- */
body > footer, .site-footer {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--overlap) * -1);
  padding: calc(var(--section-y) * .75 + var(--overlap)) var(--pad-x) 2rem;
  color: var(--muted);
  background: linear-gradient(180deg, hsl(196 52% 11%), #070D1F 65%);
  border-top: 1px solid rgba(165, 180, 252, .16);
  border-radius: var(--overlap) var(--overlap) 0 0;
  overflow: clip;
}

body > footer :is(.wordmark, .footer-wordmark, .footer-brand-name, .footer-big),
.site-footer :is(.wordmark, .footer-wordmark, .footer-brand-name, .footer-big) {
  display: block;
  max-width: 100%;
  margin: 0 0 clamp(1.5rem, 4vw, 2.75rem);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 12vw, 10rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(148, 163, 184, .38);
  background: linear-gradient(180deg, rgba(103, 232, 249, .22), transparent 80%);
  -webkit-background-clip: text;
  background-clip: text;
  text-decoration: none;
  transition: -webkit-text-stroke-color .3s ease;
}
body > footer :is(.wordmark, .footer-wordmark, .footer-brand-name, .footer-big):hover {
  -webkit-text-stroke-color: rgba(34, 211, 238, .7);
}

.footer-grid, .footer-columns, .footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

body > footer :is(h2, h3, h4), .site-footer :is(h2, h3, h4) {
  margin-bottom: .75rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
body > footer p, .site-footer p { max-width: 46ch; font-size: .95rem; color: var(--muted); }
body > footer ul, .site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
body > footer a, .site-footer a {
  font-size: .92rem;
  color: var(--muted);
  text-decoration: none;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color .2s ease, background-size .25s ease;
}
body > footer a:hover, .site-footer a:hover { color: #fff; background-size: 100% 1px; }

.footer-bottom, .copyright, body > footer small {
  display: block;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--faint);
}

/* ---------- Scroll reveal (pure CSS, content visible by default) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes mrc-rise {
      from { opacity: 0; translate: 0 36px; }
      to   { opacity: 1; translate: 0 0; }
    }
    main > section:not(:first-of-type) :is(h2, .section-header, .section-head, article, .card, .game-card,
      .project-card, .product-card, .app-card, .service-card, .skill-card, .info-card, .collab-card,
      .platform-card, .step, .note, form, .reveal, [data-reveal]),
    main > section:not(:first-of-type) > ul > li,
    main > section:not(:first-of-type) > div > ul > li {
      animation: mrc-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  :is(.form-row, .form-grid, .field-row) { grid-template-columns: 1fr 1fr; }
  form :is(button[type="submit"], input[type="submit"]) { width: auto; justify-self: start; min-width: 14rem; }
}

@media (min-width: 760px) {
  .footer-grid, .footer-columns, .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 520px) {
  main > section:first-of-type :is(.hero-actions, .cta-group, .btn-group, .actions, .hero-cta, .hero-buttons, .buttons, .button-row) {
    flex-direction: column;
    align-items: stretch;
  }
  a[data-cta="primary"], .btn-primary, .btn--primary, .button-primary, .cta-button, .cta-btn, .cta-primary, a.cta {
    display: flex;
    width: 100%;
    margin-right: 0;
  }
  main > section:first-of-type .btn, main > section:first-of-type .btn-secondary,
  main > section:first-of-type .btn-ghost, main > section:first-of-type .btn-outline,
  main > section:first-of-type .cta-secondary {
    display: flex;
    width: 100%;
    margin-right: 0;
  }
  section.cta :is(.cta-group, .btn-group, .actions, .buttons),
  section#cta :is(.cta-group, .btn-group, .actions, .buttons) { flex-direction: column; align-items: stretch; }
  main > section:not(:first-of-type) article .btn { width: auto; }
  body > header nav a, .site-header nav a { padding: .45rem .8rem; font-size: .78rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  a[data-cta="primary"]:hover, .btn:hover, main > section:not(:first-of-type) article:hover { transform: none; }
}