/* ==========================================================================
   Codenome — institutional site
   ========================================================================== */

:root {
  color-scheme: light dark;
  --bg: #f7f5f0;
  --bg-elevated: #efede7;
  --bg-card: rgba(12, 12, 12, 0.035);
  --border: rgba(12, 12, 12, 0.12);
  --border-strong: rgba(12, 12, 12, 0.24);
  --text: #111111;
  --text-muted: rgba(17, 17, 17, 0.68);
  --text-dim: rgba(17, 17, 17, 0.58);
  --focus-ring: rgba(17, 17, 17, 0.72);
  --gold: #111111;
  --gold-soft: #303030;
  --gold-deep: #000000;
  --accent-cool: #656565;
  --accent-rgb: 17, 17, 17;
  --header-bg: rgba(247, 245, 240, 0.82);
  --white: #ffffff;
  --radius: 6px;
  --radius-sm: 3px;
  --radius-pill: 999px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --container: 1120px;
  --whatsapp: #25d366;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080808;
    --bg-elevated: #111111;
    --bg-card: rgba(255, 255, 255, 0.035);
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.24);
    --text: #f7f5f0;
    --text-muted: rgba(247, 245, 240, 0.68);
    --text-dim: rgba(247, 245, 240, 0.58);
    --focus-ring: rgba(247, 245, 240, 0.82);
    --gold: #ffffff;
    --gold-soft: #e5e5e5;
    --gold-deep: #a8a8a8;
    --accent-cool: #909090;
    --accent-rgb: 255, 255, 255;
    --header-bg: rgba(8, 8, 8, 0.82);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .site-header {
  background: var(--bg);
  border-bottom-color: var(--border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--white);
  color: var(--bg);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  border-radius: var(--radius-sm);
}

.btn:focus-visible {
  outline-offset: 4px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.site-header.is-solid {
  background: var(--header-bg);
}

.header-inner {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  z-index: 2;
}

.logo-picture,
.logo-symbol {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.logo-symbol {
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--text);
  border-radius: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: background 0.25s, color 0.25s;
}

.lang-btn.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 120;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 560;
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--gold-soft);
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.14);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.btn-whatsapp {
  position: relative;
}

.btn-whatsapp::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.38), transparent 52%, rgba(var(--accent-rgb), 0.16));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  filter: blur(8px);
}

.btn-whatsapp:hover::after {
  opacity: 1;
  animation: cta-glow 2.4s ease-in-out infinite;
}

@keyframes cta-glow {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) 20px 80px;
  overflow: hidden;
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.035) 1px, transparent 1px),
    radial-gradient(ellipse 70% 50% at 50% 28%, rgba(var(--accent-rgb), 0.08), transparent 65%),
    var(--bg);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 18%;
  left: 50%;
  translate: -50% 0;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 68%);
  filter: blur(40px);
  animation: pulse-glow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero-stage {
  position: absolute;
  top: 12%;
  left: 50%;
  translate: -50% 0;
  width: min(720px, 92vw);
  height: min(420px, 48vh);
  z-index: 1;
  pointer-events: none;
}

.brand-emblem {
  --px: 0px;
  --py: 0px;
  position: absolute;
  left: 50%;
  top: 48%;
  translate: calc(-50% + var(--px)) calc(-50% + var(--py));
  width: min(300px, 48vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  will-change: transform;
}

.brand-emblem::before,
.brand-emblem::after {
  content: "";
  position: absolute;
  width: 28%;
  aspect-ratio: 1;
  border-color: var(--border-strong);
  opacity: 0.75;
}

.brand-emblem::before {
  inset: 0 auto auto 0;
  border-top: 1px solid;
  border-left: 1px solid;
}

.brand-emblem::after {
  inset: auto 0 0 auto;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.brand-emblem picture,
.brand-emblem img {
  width: 100%;
  height: 100%;
}

.brand-emblem img {
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.16));
}

.orb {
  --px: 0px;
  --py: 0px;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: calc(-50% + var(--px)) calc(-50% + var(--py));
  width: min(340px, 55vw);
  height: min(340px, 55vw);
  will-change: transform;
}

.orb-core,
.orb-layer {
  position: absolute;
  inset: 0;
  border-radius: 42% 58% 48% 52% / 52% 42% 58% 48%;
}

.orb-core {
  background:
    radial-gradient(circle at 32% 28%, rgba(var(--accent-rgb), 0.45), transparent 28%),
    radial-gradient(circle at 68% 62%, rgba(var(--accent-rgb), 0.18), transparent 42%),
    radial-gradient(circle at 50% 50%, var(--gold-soft) 0%, var(--gold-deep) 36%, var(--bg-elevated) 70%, var(--bg) 100%);
  box-shadow:
    0 0 60px rgba(var(--accent-rgb), 0.18),
    inset 0 0 40px rgba(255, 255, 255, 0.12);
  animation: orb-morph 18s ease-in-out infinite, orb-spin 28s linear infinite;
}

.orb-layer-1 {
  inset: -8%;
  background: radial-gradient(circle at 40% 40%, rgba(var(--accent-rgb), 0.2), transparent 55%);
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: orb-morph 14s ease-in-out infinite reverse;
}

.orb-layer-2 {
  inset: 12%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.35), transparent 40%);
  filter: blur(8px);
  mix-blend-mode: overlay;
  animation: orb-morph 22s ease-in-out infinite;
}

.orb-layer-3 {
  inset: -4%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  animation: orb-spin 40s linear infinite reverse;
  opacity: 0.5;
}

.orb-shine {
  position: absolute;
  top: 18%;
  left: 22%;
  width: 28%;
  height: 18%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
  filter: blur(6px);
  transform: rotate(-28deg);
  pointer-events: none;
}

@keyframes orb-morph {
  0%,
  100% {
    border-radius: 42% 58% 48% 52% / 52% 42% 58% 48%;
  }
  25% {
    border-radius: 58% 42% 62% 38% / 38% 58% 42% 62%;
  }
  50% {
    border-radius: 48% 52% 38% 62% / 62% 38% 52% 48%;
  }
  75% {
    border-radius: 38% 62% 52% 48% / 48% 62% 38% 52%;
  }
}

@keyframes orb-spin {
  to {
    rotate: 360deg;
  }
}

.glass-card {
  --px: 0px;
  --py: 0px;
  position: absolute;
  width: min(200px, 42vw);
  padding: 18px 20px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elevated) 74%, transparent);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  will-change: transform;
  translate: var(--px) var(--py);
  animation: float-card 7s ease-in-out infinite;
}

.glass-card-left {
  left: 0;
  top: 28%;
  animation-delay: 0s;
}

.glass-card-right {
  right: 0;
  top: 42%;
  animation-delay: -2.5s;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.glass-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.glass-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
}

.glass-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin-top: min(38vh, 340px);
}

@media (min-width: 901px) {
  .hero-stage {
    top: 9%;
    height: min(360px, 42vh);
  }

  .brand-emblem {
    top: 42%;
    width: min(260px, 34vw);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--text);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  width: 24px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  z-index: 2;
  opacity: 0.5;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Hero entrance */
.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-line > *,
.hero-brand.reveal-line,
.hero-title .reveal-line {
  animation: line-up 0.9s var(--ease) both;
}

.hero-brand {
  animation: line-up 0.9s var(--ease) 0.1s both;
}

.hero-title .reveal-line,
.hero-title {
  animation: line-up 0.9s var(--ease) 0.25s both;
}

.hero-sub.reveal-up {
  animation: fade-up 0.85s var(--ease) 0.45s both;
}

.hero-ctas.reveal-up {
  animation: fade-up 0.85s var(--ease) 0.6s both;
}

.glass-card-left {
  animation: card-in 0.9s var(--ease) 0.85s both, float-card 7s ease-in-out 1.8s infinite;
}

.glass-card-right {
  animation: card-in 0.9s var(--ease) 1s both, float-card 7s ease-in-out 2.2s infinite;
}

@keyframes card-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes line-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 12px 0 18px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 52ch;
}

/* About */
.about {
  background: linear-gradient(180deg, transparent, rgba(14, 14, 20, 0.6) 40%, transparent);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list li {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.chip-list li:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.07);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 20px;
}

.services-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card-wide {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .services-grid .feature-card:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .services-grid .feature-card:nth-child(n + 4):nth-child(-n + 5) {
    grid-column: span 3;
  }

  .feature-card-wide {
    grid-column: span 3;
  }
}

.feature-card,
.project-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.5), transparent 42%, rgba(var(--accent-rgb), 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.feature-card:hover,
.project-card:hover {
  border-color: transparent;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.feature-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3,
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feature-card p,
.project-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.55;
}

.card-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold-soft);
  transition: color 0.25s;
}

.card-more:hover {
  color: var(--gold);
}

/* Projects */
.projects-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid .project-card:nth-child(4),
  .projects-grid .project-card:nth-child(5) {
    grid-column: span 1;
  }
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* How */
.profiles {
  display: grid;
  gap: 20px;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .profiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profile {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.profile h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.profile p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

.differentials h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.diff-list {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .diff-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.diff-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.diff-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--text);
  box-shadow: none;
}

/* CTA section */
.cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 140px 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(var(--accent-rgb), 0.08), transparent 70%),
    var(--bg);
}

.cta-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.cta-orb .orb-core {
  animation: orb-morph 20s ease-in-out infinite, orb-spin 36s linear infinite;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.cta-section .section-head,
.cta-inner h2 {
  margin-inline: auto;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 12px 0 18px;
}

.cta-inner .lead {
  margin-inline: auto;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nap {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.footer-nap a {
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer-nap a:hover {
  color: var(--gold-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--text);
}

.copyright {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.card-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.card-grid .reveal:nth-child(4) {
  transition-delay: 0.24s;
}
.card-grid .reveal:nth-child(5) {
  transition-delay: 0.32s;
}

.i18n-fade {
  animation: i18n-crossfade 0.28s var(--ease);
}

@keyframes i18n-crossfade {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    padding: calc(var(--header-h) + 24px) 28px 40px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu-nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-align: center;
  }

  .mobile-menu-nav a:not(.btn) {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
  }

  .mobile-menu-cta {
    margin-top: 12px;
  }

  .site-header {
    z-index: 120;
  }

  .hero-stage {
    height: min(360px, 42vh);
  }

  .glass-card {
    display: none;
  }

  .hero-content {
    margin-top: min(42vh, 300px);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 88px 0;
  }

  .hero {
    padding-bottom: 64px;
  }

  .orb {
    width: min(260px, 70vw);
    height: min(260px, 70vw);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Service / SEO pages
   -------------------------------------------------------------------------- */

.page-service .page-hero {
  padding: calc(var(--header-h) + 64px) 0 56px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.06), transparent 42%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(var(--accent-rgb), 0.07), transparent 50%),
    var(--bg);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color 0.25s;
}

.breadcrumbs a:hover {
  color: var(--gold-soft);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 18ch;
  margin: 12px 0 18px;
}

.page-hero .lead {
  max-width: 54ch;
  margin-bottom: 28px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
  margin: 48px 0 16px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.7;
}

.check-list,
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 24px;
}

.check-list li,
.steps-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--text);
}

.steps-list {
  counter-reset: step;
  list-style: none;
}

.steps-list li {
  counter-increment: step;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
}

.steps-list strong {
  color: var(--text);
  font-weight: 500;
}

.related-services h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-grid a {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.related-grid a:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.06);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-brand,
  .hero-title,
  .hero-sub,
  .hero-ctas,
  .glass-card-left,
  .glass-card-right {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
