/* ============================================================
   LAYOUT — AC7 Studio
   Reset, base, grid, containers, sections
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-page);
  transition: background-color var(--dur-med) var(--ease),
              color var(--dur-med) var(--ease);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ---------- Focus visible (WCAG) ---------- */
:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--sp-4);
  background: var(--color-brand);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--sp-4); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide);   }

/* ---------- Section base ---------- */
section {
  position: relative;
  padding-block: var(--sp-24);
}
@media (max-width: 768px) {
  section { padding-block: var(--sp-16); }
}

/* ---------- Section alt bg ---------- */
.section--alt   { background-color: var(--bg-section-alt); }
.section--dark  { background-color: var(--bg-hero); color: var(--text-inverse); }
.section--brand { background-color: var(--color-brand); color: #fff; }
[data-theme="high-contrast"] .section--brand { color: #000000; }

/* ---------- Grid utilities ---------- */
.grid { display: grid; gap: var(--sp-8); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---------- Flex utilities ---------- */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ---------- Text utilities ---------- */
.text-center { text-align: center; }
.text-brand  { color: var(--text-brand); }
.text-muted  { color: var(--text-muted); }

/* ---------- Section header ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-brand);
  margin-bottom: var(--sp-4);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-brand);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: pretty;
}
.section--dark .section-title,
.section--brand .section-title { color: #fff; }

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: var(--lh-loose);
  max-width: 600px;
  text-wrap: pretty;
}
.section--dark .section-subtitle { color: rgba(255,255,255,0.75); }
.section--brand .section-subtitle { color: rgba(255,255,255,0.85); }

.section-header { margin-bottom: var(--sp-12); }
.section-header--center { text-align: center; }
.section-header--center .section-eyebrow { margin-inline: auto; }
.section-header--center .section-subtitle { margin-inline: auto; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease),
              box-shadow var(--dur-med) var(--ease);
}
.nav.scrolled {
  background: var(--nav-bg);
  border-color: var(--nav-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo img {
  height: 40px;
  width: auto;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: max-content;
}
.nav__logo--light { display: block; }
.nav__logo--dark  { display: none; }
.nav.scrolled .nav__logo--light { display: none; }
.nav.scrolled .nav__logo--dark  { display: block; }
[data-theme="dark"] .nav__logo--light,
[data-theme="high-contrast"] .nav__logo--light { display: block; }
[data-theme="dark"] .nav__logo--dark,
[data-theme="high-contrast"] .nav__logo--dark { display: none; }
[data-theme="dark"] .nav.scrolled .nav__logo--light,
[data-theme="high-contrast"] .nav.scrolled .nav__logo--light { display: block; }
[data-theme="dark"] .nav.scrolled .nav__logo--dark,
[data-theme="high-contrast"] .nav.scrolled .nav__logo--dark { display: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-3), 1.5vw, var(--sp-6));
}
.nav__link {
  font-size: clamp(0.78rem, 0.9vw, var(--font-size-sm));
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: color var(--dur-fast);
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--color-brand);
  transition: width var(--dur-med) var(--ease);
}
.nav__link:hover::after { width: 100%; }
.nav.scrolled .nav__link { color: var(--text-primary); }
.nav__link:hover { color: var(--text-brand); }
[data-theme="dark"] .nav__link,
[data-theme="high-contrast"] .nav__link { color: var(--text-primary); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  color: white;
  transition: color var(--dur-fast);
}
.nav.scrolled .nav__hamburger { color: var(--text-primary); }
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease), opacity var(--dur-med);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: flex;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--bg-surface);
  padding: var(--sp-8) var(--sp-6);
  flex-direction: column;
  gap: var(--sp-4);
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--dur-med) var(--ease-out);
}
.nav__mobile.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav__mobile-link {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--border-default);
}

.btn.mobile-bottom-cta {
  display: none;
}

/* ---------- HERO ---------- */
#hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--bg-hero);
  padding-top: 72px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ---- Hero variant: image background ---- */
/* Add class="hero--image-bg" to #hero and set --hero-bg-image CSS var or inline style */
#hero.hero--image-bg { background: var(--bg-hero); }
#hero.hero--image-bg .hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}
#hero.hero--image-bg .hero__orb { display: block; }
#hero.hero--image-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(1,12,46,0.55) 0%,
    rgba(1,12,46,0.35) 40%,
    rgba(1,12,46,0.75) 100%
  );
  pointer-events: none;
  z-index: 0;
}
#hero.hero--image-bg .hero__inner { z-index: 1; }

/* ---- Hero variant: video background ---- */
/* Add class="hero--video-bg" to #hero */
#hero.hero--video-bg { background: #000; }
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.5;
}
#hero.hero--video-bg .hero__orb { display: none; }
#hero.hero--video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(1,12,46,0.7) 0%,
    rgba(0,8,28,0.5) 50%,
    rgba(0,47,255,0.15) 100%
  );
  pointer-events: none;
  z-index: 0;
}
#hero.hero--video-bg .hero__inner { z-index: 1; }

/* ---- Hero variant: mixed (orbs + overlay image blend) ---- */
/* Add class="hero--mixed-bg" — image blends with orbs */
#hero.hero--mixed-bg .hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
  mix-blend-mode: luminosity;
}

/* ---- Default orbs ---- */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: var(--color-brand);
  top: -100px; right: -100px;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: var(--text-brand);
  bottom: -50px; left: -80px;
  opacity: 0.2;
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: var(--sp-24);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: color-mix(in srgb, var(--color-brand) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-brand) 46%, transparent);
  color: var(--text-brand);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-8);
}
.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--text-brand);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero__title {
  position: relative;
  isolation: isolate;
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--sp-6);
  text-wrap: balance;
}
.hero__title::before {
  content: attr(data-shine);
  position: absolute;
  inset: 0;
  z-index: -1;
  white-space: pre-line;
  pointer-events: none;
  color: transparent;
  text-shadow: none;
}
.hero__title::after {
  content: attr(data-shine);
  position: absolute;
  inset: 0;
  z-index: 1;
  white-space: pre-line;
  pointer-events: none;
  color: transparent;
  background:
    linear-gradient(
      110deg,
      transparent 0%,
      transparent 18%,
      rgba(85, 128, 255, 0.06) 28%,
      rgba(85, 128, 255, 0.18) 38%,
      rgba(0, 47, 255, 0.72) 47%,
      var(--color-brand) 50%,
      rgba(0, 47, 255, 0.72) 53%,
      rgba(85, 128, 255, 0.18) 62%,
      rgba(85, 128, 255, 0.06) 72%,
      transparent 82%,
      transparent 100%
    );
  background-repeat: no-repeat;
  background-size: clamp(220px, 26vw, 420px) 100%;
  background-position: calc(0% - 420px) 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
  opacity: 1;
}
.hero__title em {
  font-style: normal;
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: none;
}
.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
  line-height: var(--lh-loose);
  text-wrap: pretty;
}
.hero__ctas {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast),
    transform var(--dur-fast) var(--ease);
}
.hero__scroll:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  transform: translateX(-50%) translateY(-2px);
}
.hero__scroll:active {
  transform: translateX(-50%) scale(0.96);
}
.hero__scroll-icon {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll,
  .hero__scroll-icon {
    animation: none;
  }
}

/* ---------- PROCESS STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--sp-6);
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  padding: var(--sp-8) var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  transition: box-shadow var(--dur-med), border-color var(--dur-med);
}
.step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1;
  color: var(--color-brand-light);
  margin-bottom: var(--sp-4);
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .step::before { color: rgba(0,47,255,0.3); }
.step__title { font-size: var(--font-size-lg); font-weight: 700; margin-bottom: var(--sp-2); }
.step__desc  { color: var(--text-secondary); font-size: var(--font-size-sm); line-height: var(--lh-loose); }

/* ---------- WHY LIST ---------- */
.why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--sp-4);
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  transition: box-shadow var(--dur-med), border-color var(--dur-med);
}
.why-item:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.why-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--color-brand-light);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--color-brand);
}
[data-theme="dark"] .why-icon { background: rgba(0,47,255,0.2); }
.why-item__text { font-weight: 600; font-size: var(--font-size-base); line-height: var(--lh-snug); }

/* ---------- PORTFOLIO GRID ---------- */
#portfolio {
  background:
    radial-gradient(circle at 12% 8%, rgba(var(--rgb-brand), 0.18), transparent 32%),
    linear-gradient(180deg, #000617 0%, #000b2a 48%, #00040f 100%);
  color: var(--text-inverse);
}
#portfolio .section-eyebrow {
  color: #8faaff;
}
#portfolio .section-eyebrow::before {
  background: #8faaff;
}
#portfolio .section-title {
  color: #ffffff;
}
#portfolio .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--sp-6);
}
.portfolio-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med);
}
.portfolio-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.portfolio-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 0;
  text-align: center;
  color: var(--text-muted);
}
.portfolio-placeholder svg { opacity: 0.3; }
.portfolio-placeholder span {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 1;
  max-width: calc(100% - var(--sp-8));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-primary);
  font-size: var(--font-size-xs);
  font-weight: 700;
  font-family: var(--font-sans);
  line-height: var(--lh-snug);
  padding: var(--sp-1) var(--sp-3);
  box-shadow: var(--shadow-sm);
}
#portfolio .portfolio-placeholder span {
  background: rgba(255, 255, 255, 0.94);
  color: #071040;
  border: 1px solid rgba(255, 255, 255, 0.72);
  text-shadow: none;
}
.portfolio-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease);
}
.portfolio-preview--video {
  background: var(--bg-surface-2);
}
.portfolio-item:hover .portfolio-preview {
  transform: scale(1.04);
}
.portfolio-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-8);
}
.portfolio-load-more[hidden] {
  display: none;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(var(--sp-8), 5vw, var(--sp-16));
  align-items: center;
  margin-bottom: var(--sp-12);
}
.about-grid__content {
  margin-bottom: 0;
}
.about-grid__content .section-subtitle {
  max-width: 760px;
}
.about-grid__text {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  max-width: 760px;
}
.about-grid__text p {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: var(--lh-loose);
}
.about-grid__media {
  position: relative;
  margin: 0;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: var(--bg-hero);
}
.about-grid__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,12,46,0.02), rgba(1,12,46,0.16));
  pointer-events: none;
}
.about-grid__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---------- SOCIAL PROOF ---------- */
.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.82fr);
  gap: clamp(var(--sp-8), 7vw, var(--sp-16));
  align-items: center;
}
.results-title {
  max-width: 760px;
  margin-top: var(--sp-3);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
#prova .section-eyebrow {
  color: #7fa8ff;
}
#prova .section-eyebrow::before {
  background: #7fa8ff;
}
.proof-text {
  max-width: 680px;
  margin-top: var(--sp-5);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: var(--lh-loose);
  color: rgba(255,255,255,0.94);
  text-wrap: pretty;
}
.results-support {
  max-width: 640px;
  margin-top: var(--sp-4);
  color: rgba(224,232,255,0.82);
  font-size: var(--font-size-base);
  line-height: var(--lh-loose);
}
.proof-stats {
  display: grid;
  gap: var(--sp-4);
}
.stat { display: flex; flex-direction: column; gap: var(--sp-1); }
.results-indicator {
  position: relative;
  padding: var(--sp-6);
  border: 1px solid rgba(143,170,255,0.32);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(85,128,255,0.18), rgba(255,255,255,0.055));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}
.results-indicator__number {
  color: #9bb4ff;
  font-size: var(--font-size-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
}
.results-indicator__title {
  margin-top: var(--sp-2);
  color: #fff;
  font-size: var(--font-size-lg);
  font-weight: 800;
  line-height: var(--lh-snug);
}
.stat__num {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat__label {
  margin-top: var(--sp-2);
  font-size: var(--font-size-sm);
  color: rgba(235,240,255,0.84);
  font-weight: 500;
  line-height: var(--lh-loose);
}
[data-theme="high-contrast"] .proof-text,
[data-theme="high-contrast"] .results-support,
[data-theme="high-contrast"] .stat__label,
[data-theme="high-contrast"] .results-title,
[data-theme="high-contrast"] .results-indicator__title { color: var(--text-primary); }
[data-theme="high-contrast"] .results-indicator {
  border-color: var(--border-strong);
  background: var(--bg-surface);
}
[data-theme="dark"] #portfolio {
  background:
    radial-gradient(circle at 12% 8%, rgba(var(--rgb-brand-soft), 0.14), transparent 32%),
    linear-gradient(180deg, #00030d 0%, #00071c 52%, #000000 100%);
}
[data-theme="high-contrast"] #portfolio {
  background: #000000;
  color: var(--text-primary);
}
[data-theme="high-contrast"] #portfolio .section-title,
[data-theme="high-contrast"] #portfolio .section-subtitle,
[data-theme="high-contrast"] #portfolio .section-eyebrow {
  color: var(--text-primary);
}
[data-theme="high-contrast"] #portfolio .section-eyebrow::before {
  background: var(--color-contrast);
}

@media (max-width: 900px) {
  .results-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
}

@media (max-width: 640px) {
  .results-title {
    font-size: clamp(1.85rem, 10vw, 2.65rem);
  }
  .results-indicator {
    padding: var(--sp-5);
  }
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--bg-hero);
  color: rgba(255,255,255,0.68);
  padding-block: var(--sp-16) var(--sp-8);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(4, minmax(140px, 1fr));
  gap: var(--sp-10);
  margin-bottom: var(--sp-16);
}
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
}
.footer__brand p { font-size: var(--font-size-sm); line-height: var(--lh-loose); margin-top: var(--sp-4); max-width: 300px; }
.footer__brand-link {
  display: inline-flex;
  margin-top: var(--sp-4);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 700;
  transition: color var(--dur-fast);
}
.footer__brand-link:hover { color: rgba(255,255,255,0.78); }
.footer__logo { height: 36px; width: auto; margin-bottom: var(--sp-4); }
.footer__col h4 { color: #fff; font-size: var(--font-size-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-4); }
.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__col a { font-size: var(--font-size-sm); transition: color var(--dur-fast); }
.footer__col a:hover { color: #fff; }
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer__share {
  margin-top: var(--sp-6);
}
.footer__share-title {
  color: rgba(255,255,255,0.78);
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
.footer__social a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.footer__social--follow a {
  background: rgba(var(--rgb-brand), 0.9);
  border-color: rgba(var(--rgb-brand), 0.9);
  color: #fff;
}
.footer__social--follow a:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  transform: translateY(-2px);
}
.footer__social--share a {
  color: rgba(255,255,255,0.74);
  background: transparent;
  border-color: transparent;
}
.footer__social--share a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.footer__social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-theme="high-contrast"] footer {
  border-top-color: var(--border-strong);
}
[data-theme="high-contrast"] .footer__bottom {
  border-top-color: var(--border-strong);
}
[data-theme="high-contrast"] .footer__social a {
  color: var(--color-brand);
  border-color: var(--border-strong);
  background: transparent;
}
[data-theme="high-contrast"] .footer__social--follow a {
  color: #000000;
  border-color: var(--color-brand);
  background: var(--color-brand);
}
[data-theme="high-contrast"] .footer__social a:hover {
  color: #000000;
  background: var(--color-brand);
  border-color: var(--color-brand);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--font-size-xs);
}
.footer__bottom-primary,
.footer__legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer__legal {
  color: rgba(255,255,255,0.72);
}
.footer__legal a {
  font-weight: 700;
  transition: color var(--dur-fast);
}
.footer__legal a:hover {
  color: #fff;
}
.footer__legal a + a::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin-right: var(--sp-3);
  vertical-align: -0.12em;
  background: rgba(255,255,255,0.22);
}

/* ---------- Responsive nav ---------- */
@media (min-width: 901px) {
  .nav__mobile {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__actions .btn--outline { display: none; }
  .nav__logo {
    min-width: 112px;
  }
  .nav__logo img {
    height: 40px;
    min-width: 112px;
    flex-shrink: 0;
    object-fit: contain;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .about-grid__media {
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  .nav__cta-desktop,
  .nav__actions .nav__cta-desktop {
    display: none;
  }
  .btn.mobile-bottom-cta {
    display: inline-flex;
    position: fixed;
    inset: auto max(var(--sp-4), env(safe-area-inset-right)) max(var(--sp-4), env(safe-area-inset-bottom)) max(var(--sp-4), env(safe-area-inset-left));
    top: auto;
    z-index: 1100;
    width: auto;
    min-height: 56px;
    padding-inline: var(--sp-5);
    margin: 0;
    justify-content: center;
    box-shadow: 0 14px 36px rgba(0, 47, 255, 0.28);
  }
  body {
    padding-bottom: calc(72px + max(var(--sp-4), env(safe-area-inset-bottom)));
  }
}

@media (max-width: 480px) {
  .nav__inner {
    gap: var(--sp-3);
  }
  .nav__actions {
    gap: var(--sp-2);
  }
  .nav__logo {
    min-width: 104px;
  }
  .nav__logo img {
    height: 36px;
    min-width: 104px;
  }
}
