:root {
  --purple: #5115b8;
  --purple-soft: rgba(81, 21, 184, 0.18);
  --purple-line: rgba(81, 21, 184, 0.45);
  --black: #08080b;
  --black-elevated: #101014;
  --silver: #a7a7af;
  --silver-dim: rgba(167, 167, 175, 0.55);
  --white: #f4f4f6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--purple);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(167, 167, 175, 0.12);
  background: rgba(8, 8, 11, 0.92);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--silver);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a:not(.btn) {
  color: var(--silver);
  font-size: 0.95rem;
  font-weight: 450;
  transition: color 0.2s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-sm {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0.95rem 1.5rem;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 30px rgba(81, 21, 184, 0.35);
}

.btn-primary:hover {
  background: #5f1fd0;
}

.btn-ghost {
  border: 1px solid rgba(167, 167, 175, 0.28);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--purple);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7rem);
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
}

.hero-glow {
  position: absolute;
  inset: auto auto 10% -10%;
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 21, 184, 0.28), transparent 68%);
  pointer-events: none;
  filter: blur(8px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.brand-line {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.4vw, 3.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.02;
}

.slogan {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 600;
  color: var(--silver);
  line-height: 1.2;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: var(--silver);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.monogram-stage {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid var(--purple-line);
  opacity: 0.7;
}

.ring-b {
  inset: 0;
  border-color: rgba(167, 167, 175, 0.18);
}

.monogram {
  position: relative;
  width: 58%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}

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

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.9), rgba(8, 8, 11, 1));
  border-block: 1px solid rgba(167, 167, 175, 0.08);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-head p:not(.eyebrow) {
  margin: 0.9rem 0 0;
  color: var(--silver);
  font-size: 1.05rem;
}

.project-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.project-card,
.service-card,
.contact-panel {
  background: var(--black-elevated);
  border: 1px solid rgba(167, 167, 175, 0.1);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
  border-color: var(--purple-line);
  transform: translateY(-3px);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--purple-soft);
  color: #d7c7ff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-muted {
  background: rgba(167, 167, 175, 0.08);
  color: var(--silver);
}

.project-card h3,
.service-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.project-card p,
.service-card p {
  margin: 0;
  color: var(--silver);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.chip-list li {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(167, 167, 175, 0.16);
  border-radius: 999px;
  color: var(--silver);
  font-size: 0.82rem;
}

.text-link {
  margin-top: auto;
  color: #cbb6ff;
  font-weight: 600;
  font-size: 0.92rem;
}

.text-link:hover,
.text-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-index {
  display: block;
  margin-bottom: 1rem;
  color: var(--purple);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.metodo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  border-left: 2px solid var(--purple);
  background: rgba(16, 16, 20, 0.75);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.steps strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.steps span {
  color: var(--silver);
}

.section-contact {
  padding-bottom: clamp(4.5rem, 9vw, 7rem);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.75rem;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-color: var(--purple-line);
  background:
    linear-gradient(135deg, rgba(81, 21, 184, 0.16), transparent 42%),
    var(--black-elevated);
}

.contact-panel p:not(.eyebrow) {
  margin: 0.9rem 0 0;
  color: var(--silver);
  max-width: 36rem;
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
}

.site-footer {
  border-top: 1px solid rgba(167, 167, 175, 0.1);
  padding: 1.75rem 0 2.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  border-radius: 9px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.footer-brand p,
.footer-note {
  margin: 0.15rem 0 0;
  color: var(--silver);
  font-size: 0.88rem;
}

.footer-note {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .metodo-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .monogram-stage {
    width: min(70vw, 260px);
  }

  .project-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .brand-text em {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(8, 8, 11, 0.97);
    border-bottom: 1px solid rgba(167, 167, 175, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid rgba(167, 167, 175, 0.08);
  }

  .site-nav .btn {
    margin-top: 0.5rem;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .contact-actions .btn {
    width: 100%;
  }
}

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

  .monogram,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
