:root {
  --color-background: #070907;
  --color-surface: #111411;
  --color-surface-secondary: #191d19;
  --color-primary: #9cff00;
  --color-primary-hover: #b4ff3b;
  --color-primary-dark: #63a800;
  --color-text: #f5f7f3;
  --color-text-muted: #a5ada2;
  --color-border: rgba(156, 255, 0, 0.22);
  --color-border-neutral: rgba(255, 255, 255, 0.1);
  --color-glow: rgba(156, 255, 0, 0.24);
  --font-display: "Sora", "Arial Black", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-depth: 0 24px 70px rgba(0, 0, 0, 0.42);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background:
    radial-gradient(circle at 87% 10%, rgba(156, 255, 0, 0.08), transparent 25rem),
    radial-gradient(circle at 5% 52%, rgba(99, 168, 0, 0.05), transparent 24rem),
    var(--color-background);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
select {
  font: inherit;
}

a,
button,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

svg {
  display: block;
}

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

.page-grid {
  position: fixed;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 100%;
  max-width: 100vw;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #081000;
  background: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--color-border-neutral);
}

.brand {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.brand span {
  color: var(--color-primary);
}

.brand i {
  width: 5px;
  height: 5px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary);
}

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

.location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location i,
.contact-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-glow);
}

.share-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  color: var(--color-text);
  border: 1px solid var(--color-border-neutral);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.share-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.share-button:hover {
  color: var(--color-primary);
  border-color: var(--color-border);
  background: rgba(156, 255, 0, 0.06);
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border-neutral);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(25, 29, 25, 0.92), rgba(13, 16, 13, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.78fr);
  gap: 16px;
  padding-block: 28px 82px;
}

.hero-copy {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 68px);
}

.hero-copy::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -130px;
  bottom: -150px;
  border-radius: 50%;
  background: var(--color-primary);
  filter: blur(110px);
  opacity: 0.1;
}

.eyebrow {
  position: absolute;
  top: 27px;
  right: 30px;
  left: 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span:first-child {
  color: var(--color-primary);
}

.hero-intro {
  margin: 0 0 13px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.1vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.97;
}

.hero h1 em {
  color: var(--color-primary);
  font-style: normal;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 220ms var(--ease), color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 200ms ease;
}

.button-primary {
  color: #081000;
  background: var(--color-primary);
  box-shadow: 0 12px 32px rgba(156, 255, 0, 0.12);
}

.button-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 14px 36px rgba(156, 255, 0, 0.2);
  transform: translateY(-2px);
}

.button-primary:hover svg {
  transform: translateX(3px);
}

.button-ghost {
  color: var(--color-text);
  border-color: var(--color-border-neutral);
  background: rgba(255, 255, 255, 0.025);
}

.button-ghost:hover {
  color: var(--color-primary);
  border-color: var(--color-border);
  background: rgba(156, 255, 0, 0.045);
  transform: translateY(-2px);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 25px 0 0;
  margin: 42px 0 0;
  border-top: 1px solid var(--color-border-neutral);
  list-style: none;
}

.capability-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--color-text-muted);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.capability-list span {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 0.62rem;
}

.hero-visual {
  --pointer-x: 50%;
  --pointer-y: 50%;
  min-height: 620px;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(156, 255, 0, 0.18), transparent 32%),
    linear-gradient(155deg, #151a15, #090b09);
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(156, 255, 0, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 255, 0, 0.12) 1px, transparent 1px);
  background-size: 29px 29px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0, transparent 64%);
}

.visual-meta {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 25px;
  left: 25px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-meta span:first-child {
  color: var(--color-primary);
}

.live-clock {
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
}

.portrait {
  position: absolute;
  z-index: 3;
  width: 190px;
  height: 250px;
  top: 50%;
  left: 50%;
  overflow: hidden;
  border: 1px solid rgba(156, 255, 0, 0.62);
  border-radius: 95px 95px 30px 30px;
  box-shadow: 0 0 0 9px rgba(156, 255, 0, 0.055), 0 22px 60px rgba(0, 0, 0, 0.44);
  transform: translate(-50%, -48%);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -55px 60px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.84) contrast(1.05);
}

.orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-primary);
  box-shadow: 0 0 14px var(--color-glow);
}

.orbit-one {
  width: 310px;
  height: 310px;
}

.orbit-one::before {
  top: 42px;
  right: 31px;
}

.orbit-one::after {
  left: -4px;
  bottom: 115px;
}

.orbit-two {
  width: 410px;
  height: 410px;
  border-color: rgba(255, 255, 255, 0.07);
}

.orbit-two::before {
  top: 86px;
  left: 17px;
}

.orbit-two::after {
  right: 45px;
  bottom: 52px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.signal-grid {
  position: absolute;
  width: 74px;
  height: 74px;
  right: 28px;
  bottom: 82px;
  opacity: 0.55;
  background: repeating-linear-gradient(0deg, var(--color-primary) 0 3px, transparent 3px 10px);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.monogram {
  position: absolute;
  z-index: 2;
  top: 92px;
  left: 28px;
  color: rgba(245, 247, 243, 0.07);
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-weight: 700;
  letter-spacing: -0.18em;
  line-height: 1;
}

.monogram span {
  color: rgba(156, 255, 0, 0.13);
}

.visual-note {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 25px;
  left: 28px;
  margin: 0;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.services-section,
.groups-section {
  padding-bottom: 94px;
  scroll-margin-top: 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.52fr);
  gap: 30px;
  align-items: end;
  padding-bottom: 35px;
}

.section-index {
  margin: 0 0 13px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading h2,
.groups-copy h2 {
  max-width: 790px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.2vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-heading h2 span,
.groups-copy h2 span {
  color: var(--color-text-muted);
}

.section-heading > p {
  max-width: 390px;
  margin: 0 0 4px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.contact-card,
.portfolio-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid var(--color-border-neutral);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.service-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  padding: 26px;
  text-decoration: none;
  transition: transform 260ms var(--ease), border-color 220ms ease, background 220ms ease, box-shadow 260ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  bottom: -100px;
  border-radius: 50%;
  background: var(--color-primary);
  filter: blur(80px);
  opacity: 0;
  transition: opacity 260ms ease;
}

.service-card-featured {
  grid-column: span 7;
  min-height: 350px;
  background:
    linear-gradient(145deg, rgba(156, 255, 0, 0.075), transparent 45%),
    var(--color-surface);
}

.service-card-featured + .service-card {
  grid-column: span 5;
  min-height: 350px;
}

.service-card:hover {
  z-index: 2;
  border-color: rgba(156, 255, 0, 0.48);
  background-color: #151a15;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(156, 255, 0, 0.08);
  transform: translateY(-5px);
}

.service-card:hover::before {
  opacity: 0.1;
}

.card-number {
  position: absolute;
  top: 27px;
  right: 27px;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
}

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  color: var(--color-primary);
  background: rgba(156, 255, 0, 0.055);
}

.icon-box svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.card-body {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 44px;
}

.card-body small {
  margin-bottom: 7px;
  color: var(--color-primary);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-body strong {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.card-body > span {
  max-width: 450px;
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.card-arrow {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.4rem;
  transition: transform 220ms var(--ease);
}

.service-card:hover .card-arrow {
  transform: translate(3px, -3px);
}

.contact-card {
  grid-column: span 5;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  color: #081000;
  background:
    repeating-linear-gradient(145deg, transparent 0 23px, rgba(7, 9, 7, 0.05) 23px 24px),
    var(--color-primary);
  text-decoration: none;
  transition: transform 260ms var(--ease), background 220ms ease, box-shadow 260ms ease;
}

.contact-card::after {
  content: "pA";
  position: absolute;
  right: -5px;
  bottom: -36px;
  color: rgba(7, 9, 7, 0.11);
  font-family: var(--font-display);
  font-size: 9.5rem;
  font-weight: 700;
  letter-spacing: -0.17em;
  line-height: 1;
}

.contact-card:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 20px 55px rgba(156, 255, 0, 0.17);
  transform: translateY(-5px);
}

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-status i {
  background: #081000;
  box-shadow: none;
}

.contact-card strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.contact-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(7, 9, 7, 0.22);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-link b {
  font-size: 1.3rem;
  transition: transform 220ms var(--ease);
}

.contact-card:hover .contact-link b {
  transform: translate(3px, -3px);
}

.portfolio-card {
  grid-column: span 7;
  min-height: 360px;
  padding: 30px;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -180px;
  right: -90px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(156, 255, 0, 0.018), 0 0 0 60px rgba(156, 255, 0, 0.012);
}

.portfolio-card h3 {
  max-width: 440px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.portfolio-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 30px;
}

.portfolio-links a {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-neutral);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.portfolio-links a span {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 0.6rem;
}

.portfolio-links a b {
  color: var(--color-primary);
  font-size: 1rem;
  transition: transform 200ms ease;
}

.portfolio-links a:hover {
  color: var(--color-primary);
  border-color: var(--color-border);
  background: rgba(156, 255, 0, 0.045);
}

.portfolio-links a:hover b {
  transform: translate(2px, -2px);
}

.groups-intro {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  gap: 50px;
  align-items: end;
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at 74% 35%, rgba(156, 255, 0, 0.095), transparent 27%),
    linear-gradient(145deg, rgba(25, 29, 25, 0.95), rgba(12, 15, 12, 0.98));
}

.groups-intro::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  top: -210px;
  right: 14%;
  border: 1px solid rgba(156, 255, 0, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(156, 255, 0, 0.012), 0 0 0 92px rgba(156, 255, 0, 0.009);
}

.groups-copy {
  position: relative;
  z-index: 1;
}

.groups-copy > p:last-child {
  max-width: 630px;
  margin: 20px 0 0;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

.groups-action {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
}

.groups-count {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.groups-count strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.groups-toggle {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.groups-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.groups-panel {
  margin-top: 14px;
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-lg);
}

.groups-panel[hidden] {
  display: none;
}

.groups-toolbar {
  display: grid;
  grid-template-columns: auto minmax(210px, 300px) 1fr;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-neutral);
}

.groups-toolbar label {
  color: var(--color-text);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  min-height: 46px;
  padding: 10px 42px 10px 14px;
  color: var(--color-text);
  border: 1px solid var(--color-border-neutral);
  border-radius: 13px;
  outline: 0;
  appearance: none;
  background: var(--color-surface-secondary);
  cursor: pointer;
}

.select-wrap select:focus-visible {
  border-color: var(--color-border);
  box-shadow: 0 0 0 3px rgba(156, 255, 0, 0.14);
}

.select-wrap svg {
  position: absolute;
  width: 17px;
  top: 50%;
  right: 14px;
  fill: none;
  stroke: var(--color-primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  pointer-events: none;
  transform: translateY(-50%);
}

.groups-toolbar > p {
  justify-self: end;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.73rem;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 24px;
}

.group-link {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 2px 12px;
  padding: 15px 17px;
  border: 1px solid var(--color-border-neutral);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 220ms var(--ease);
}

.group-link span {
  grid-column: 1;
  color: var(--color-primary);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.group-link b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--color-primary);
  font-size: 1rem;
}

.group-link:hover {
  color: var(--color-primary);
  border-color: var(--color-border);
  background: rgba(156, 255, 0, 0.045);
  transform: translateY(-2px);
}

.group-link[hidden] {
  display: none;
}

.site-footer {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 40px;
  border-top: 1px solid var(--color-border-neutral);
}

.brand-footer {
  font-size: 1.55rem;
}

.site-footer p {
  margin: 13px 0 0;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: var(--color-text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-meta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-underline-offset: 4px;
}

.footer-meta a:hover {
  color: var(--color-primary);
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

.reveal {
  animation: reveal-up 520ms var(--ease) backwards;
}

.bento-grid .reveal:nth-child(2) { animation-delay: 70ms; }
.bento-grid .reveal:nth-child(3) { animation-delay: 110ms; }
.bento-grid .reveal:nth-child(4) { animation-delay: 150ms; }
.bento-grid .reveal:nth-child(5) { animation-delay: 190ms; }
.bento-grid .reveal:nth-child(6) { animation-delay: 230ms; }

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  }

  .hero-copy,
  .hero-visual {
    min-height: 570px;
  }

  .capability-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .service-card,
  .service-card-featured,
  .service-card-featured + .service-card,
  .contact-card,
  .portfolio-card {
    grid-column: span 6;
    min-height: 320px;
  }

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

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .site-header {
    min-height: 76px;
  }

  .location {
    display: none;
  }

  .share-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .share-button {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-block: 18px 70px;
  }

  .hero-copy {
    min-height: auto;
    padding: 82px 24px 28px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12.8vw, 4.6rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .capability-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
    margin-top: 32px;
    padding-top: 21px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .orbit-one {
    width: 280px;
    height: 280px;
  }

  .orbit-two {
    width: 360px;
    height: 360px;
  }

  .portrait {
    width: 168px;
    height: 225px;
  }

  .section-heading,
  .groups-intro {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 18px;
  }

  .section-heading > p {
    max-width: 590px;
  }

  .service-card,
  .service-card-featured,
  .service-card-featured + .service-card,
  .contact-card,
  .portfolio-card {
    grid-column: 1 / -1;
    min-height: 300px;
  }

  .contact-card {
    min-height: 340px;
  }

  .portfolio-card {
    min-height: auto;
  }

  .groups-intro {
    min-height: auto;
    gap: 35px;
    align-items: start;
  }

  .groups-action {
    width: 100%;
  }

  .groups-toolbar {
    grid-template-columns: 1fr;
  }

  .groups-toolbar > p {
    justify-self: start;
  }

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

  .site-footer {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .brand {
    font-size: 1.08rem;
  }

  .panel,
  .service-card,
  .contact-card,
  .portfolio-card {
    border-radius: 22px;
  }

  .eyebrow {
    top: 23px;
    right: 22px;
    left: 22px;
  }

  .eyebrow span:first-child {
    max-width: 170px;
  }

  .hero-copy {
    padding-inline: 21px;
  }

  .hero h1 {
    letter-spacing: -0.07em;
  }

  .hero-text {
    margin-top: 19px;
  }

  .capability-list li {
    font-size: 0.63rem;
  }

  .hero-visual {
    min-height: 430px;
  }

  .visual-meta {
    right: 20px;
    left: 20px;
  }

  .monogram {
    top: 76px;
    left: 18px;
    font-size: 5rem;
  }

  .signal-grid {
    right: 18px;
    bottom: 70px;
  }

  .orbit-two {
    width: 330px;
    height: 330px;
  }

  .section-heading h2,
  .groups-copy h2 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .service-card,
  .contact-card,
  .portfolio-card {
    padding: 22px;
  }

  .service-card {
    min-height: 280px;
  }

  .card-body strong {
    max-width: 90%;
    font-size: 1.75rem;
  }

  .portfolio-links {
    grid-template-columns: 1fr;
  }

  .groups-intro,
  .groups-panel {
    padding: 24px 20px;
  }

  .site-footer {
    min-height: 230px;
    flex-direction: column;
    justify-content: center;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

@media (max-width: 350px) {
  .eyebrow span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .capability-list {
    flex-direction: column;
  }

  .orbit-two {
    width: 300px;
    height: 300px;
  }
}

/* ========================= LINKTREE COMPOSITION ========================= */
.linktree-layout {
  --shell: 760px;
}

.linktree-layout .site-header {
  min-height: 78px;
}

.linktree-layout .hero {
  grid-template-columns: 1fr;
  gap: 12px;
  padding-block: 22px 64px;
}

.linktree-layout .hero-visual {
  order: -1;
  min-height: 250px;
}

.linktree-layout .hero-copy {
  min-height: auto;
  padding: 68px 42px 34px;
}

.linktree-layout .hero h1 {
  max-width: 650px;
  font-size: clamp(2.15rem, 6vw, 3.2rem);
  line-height: 1;
}

.linktree-layout .hero-text {
  max-width: 580px;
}

.linktree-layout .portrait {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  transform: translate(-50%, -46%);
}

.linktree-layout .portrait img {
  object-position: center 52%;
}

.linktree-layout .orbit-one {
  width: 198px;
  height: 198px;
}

.linktree-layout .orbit-two {
  width: 250px;
  height: 250px;
}

.linktree-layout .monogram {
  top: 50px;
  font-size: 4.2rem;
}

.linktree-layout .signal-grid {
  width: 50px;
  height: 50px;
  bottom: 48px;
}

.linktree-layout .visual-note {
  font-size: 0.65rem;
}

.linktree-layout .services-section,
.linktree-layout .groups-section {
  padding-bottom: 70px;
}

.linktree-layout .section-heading {
  grid-template-columns: 1fr;
  gap: 12px;
  padding-bottom: 24px;
}

.linktree-layout .section-heading h2,
.linktree-layout .groups-copy h2 {
  font-size: clamp(2.1rem, 7vw, 3.25rem);
}

.linktree-layout .section-heading > p {
  max-width: 590px;
}

.linktree-layout .bento-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.linktree-layout .service-card,
.linktree-layout .service-card-featured,
.linktree-layout .service-card-featured + .service-card {
  width: 100%;
  min-height: 138px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
}

.linktree-layout .service-card-featured {
  background:
    linear-gradient(110deg, rgba(156, 255, 0, 0.09), transparent 50%),
    var(--color-surface);
}

.linktree-layout .card-number {
  display: block;
  top: 16px;
  right: 20px;
  color: rgba(237, 241, 235, 0.48);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.linktree-layout .icon-box {
  grid-column: 1;
  grid-row: 1;
}

.linktree-layout .card-body {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  margin: 0;
  padding: 0;
}

.linktree-layout .card-body small {
  margin-bottom: 3px;
}

.linktree-layout .card-body strong {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
}

.linktree-layout .card-body > span {
  max-width: 540px;
  margin-top: 5px;
  font-size: 0.77rem;
}

.linktree-layout .card-arrow {
  position: static;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.linktree-layout .contact-card {
  width: 100%;
  min-height: 148px;
  padding: 22px 26px;
}

.linktree-layout .contact-card strong {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
}

.linktree-layout .portfolio-card {
  width: 100%;
  min-height: auto;
  padding: 26px;
}

.linktree-layout .portfolio-card h3 {
  font-size: clamp(1.65rem, 5vw, 2.25rem);
}

.linktree-layout .portfolio-links {
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 22px;
}

.linktree-layout .portfolio-links a {
  min-height: 58px;
}

.linktree-layout .groups-intro {
  min-height: auto;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  padding: 34px;
}

.linktree-layout .groups-action {
  width: 100%;
}

.linktree-layout .groups-toggle {
  min-height: 56px;
}

.linktree-layout .groups-panel {
  padding: 26px;
}

.linktree-layout .groups-toolbar {
  grid-template-columns: 1fr;
}

.linktree-layout .groups-toolbar > p {
  justify-self: start;
}

.linktree-layout .groups-grid {
  grid-template-columns: 1fr;
}

.linktree-layout .group-link {
  min-height: 72px;
}

.linktree-layout .site-footer {
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.linktree-layout .footer-meta {
  align-items: center;
}

@media (max-width: 600px) {
  .linktree-layout .hero-copy {
    padding: 68px 21px 28px;
  }

  .linktree-layout .hero-visual {
    min-height: 230px;
  }

  .linktree-layout .hero h1 {
    font-size: clamp(2.05rem, 10.5vw, 2.7rem);
  }

  .linktree-layout .eyebrow,
  .linktree-layout .visual-meta,
  .linktree-layout .visual-note {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .linktree-layout .service-card,
  .linktree-layout .service-card-featured,
  .linktree-layout .service-card-featured + .service-card {
    min-height: 128px;
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    gap: 13px;
    padding: 17px;
  }

  .linktree-layout .icon-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .linktree-layout .card-body > span {
    display: none;
  }

  .linktree-layout .contact-card {
    min-height: 140px;
    padding: 22px;
  }

  .linktree-layout .portfolio-card,
  .linktree-layout .groups-intro,
  .linktree-layout .groups-panel {
    padding: 22px 18px;
  }
}

/* ========================= SIGNAL CINEMA ========================= */
.linktree-layout {
  --scene-x: 0px;
  --scene-y: 0px;
  --scene-soft-x: 0px;
  --scene-soft-y: 0px;
  --scene-orbit-x: 0px;
  --scene-orbit-y: 0px;
  --scene-corner-x: 0px;
  --scene-corner-y: 0px;
  --scene-tilt-x: 0deg;
  --scene-tilt-y: 0deg;
}

.linktree-layout .page-grid {
  opacity: 0.42;
  background:
    radial-gradient(ellipse at 50% 0, rgba(156, 255, 0, 0.065), transparent 38rem),
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.012) 50%, transparent 82%);
  mask-image:
    linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.76) 44%, transparent 92%);
}

.linktree-layout .site-header {
  position: relative;
}

.linktree-layout .site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 84px;
  height: 1px;
  background: var(--color-primary);
  box-shadow: 0 6px 20px rgba(156, 255, 0, 0.18);
  transform-origin: right;
}

.linktree-layout .brand i {
  animation: signal-dot 2.8s var(--ease) infinite;
}

.linktree-layout .share-button {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.linktree-layout .hero-visual {
  --pointer-x: 50%;
  --pointer-y: 50%;
  perspective: 900px;
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(156, 255, 0, 0.2), transparent 30%),
    linear-gradient(155deg, #151a15, #090b09);
  box-shadow: var(--shadow-depth), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.linktree-layout .hero-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 27%, rgba(7, 9, 7, 0.18) 49%, rgba(7, 9, 7, 0.58) 100%),
    linear-gradient(90deg, transparent 0 49.8%, rgba(156, 255, 0, 0.08) 50%, transparent 50.2%);
}

.linktree-layout .visual-meta,
.linktree-layout .visual-note,
.linktree-layout .monogram,
.linktree-layout .signal-grid {
  transform: translate3d(
    var(--scene-soft-x),
    var(--scene-soft-y),
    20px
  );
  transition: transform 520ms var(--ease-cinema);
}

.linktree-layout .monogram {
  text-shadow: 14px 18px 38px rgba(0, 0, 0, 0.34);
}

.linktree-layout .portrait {
  z-index: 4;
  transform:
    translate(-50%, -46%)
    translate3d(var(--scene-x), var(--scene-y), 42px)
    rotateX(var(--scene-tilt-x))
    rotateY(var(--scene-tilt-y));
  transform-style: preserve-3d;
  transition: transform 560ms var(--ease-cinema), box-shadow 420ms ease;
  box-shadow:
    8px 20px 48px rgba(0, 0, 0, 0.46),
    0 0 0 9px rgba(156, 255, 0, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.linktree-layout .hero-visual:hover .portrait {
  box-shadow:
    12px 26px 58px rgba(0, 0, 0, 0.5),
    0 0 0 9px rgba(156, 255, 0, 0.075),
    0 0 36px rgba(156, 255, 0, 0.11);
}

.linktree-layout .orbit {
  transform:
    translate(
      calc(-50% + var(--scene-orbit-x)),
      calc(-50% + var(--scene-orbit-y))
    );
  transition: transform 620ms var(--ease-cinema);
}

.linktree-layout .hero-visual.is-active .orbit-one {
  animation: orbit-forward 13s linear infinite;
}

.linktree-layout .hero-visual.is-active .orbit-two {
  animation: orbit-reverse 19s linear infinite;
}

.signal-scan {
  position: absolute;
  z-index: 6;
  top: -36%;
  right: 7%;
  left: 7%;
  height: 34%;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(156, 255, 0, 0.025) 30%,
      rgba(156, 255, 0, 0.32) 96%,
      rgba(180, 255, 59, 0.72)
    );
  filter: blur(0.2px);
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.hero-visual.is-active .signal-scan {
  animation: signal-scan 5.8s var(--ease-cinema) infinite;
}

.signal-corners {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  pointer-events: none;
  transform:
    translate(-50%, -48%)
    translate3d(var(--scene-corner-x), var(--scene-corner-y), 30px);
  transition: transform 580ms var(--ease-cinema);
}

.signal-corners i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(156, 255, 0, 0.55);
  border-style: solid;
  opacity: 0.68;
}

.signal-corners i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.signal-corners i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.signal-corners i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.signal-corners i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.hero-visual.is-active .signal-corners i {
  animation: corner-lock 3.4s var(--ease) infinite;
}

.linktree-layout .hero-copy {
  background:
    linear-gradient(112deg, rgba(156, 255, 0, 0.05), transparent 38%),
    linear-gradient(145deg, rgba(25, 29, 25, 0.92), rgba(13, 16, 13, 0.96));
  box-shadow: 8px 22px 62px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.linktree-layout .hero-copy::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 22px;
  width: 58px;
  height: 7px;
  opacity: 0.44;
  background: repeating-linear-gradient(90deg, var(--color-primary) 0 4px, transparent 4px 10px);
}

.linktree-layout .hero h1 {
  text-wrap: balance;
}

.linktree-layout .service-card,
.linktree-layout .portfolio-card {
  isolation: isolate;
  box-shadow: 7px 14px 34px rgba(0, 0, 0, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.028);
}

.linktree-layout .service-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: -42%;
  width: 36%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(156, 255, 0, 0.065), transparent);
  transform: skewX(-18deg);
  transition: left 620ms var(--ease-cinema), opacity 180ms ease;
}

.linktree-layout .service-card:hover::after,
.linktree-layout .service-card:focus-visible::after {
  left: 114%;
  opacity: 1;
}

.linktree-layout .service-card:hover,
.linktree-layout .service-card:focus-visible {
  box-shadow:
    9px 22px 54px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(156, 255, 0, 0.1);
  transform: translateY(-4px) scale(1.006);
}

.linktree-layout .service-card .icon-box {
  position: relative;
  transition: transform 360ms var(--ease-cinema), border-color 220ms ease, box-shadow 300ms ease;
}

.linktree-layout .service-card:hover .icon-box,
.linktree-layout .service-card:focus-visible .icon-box {
  border-color: rgba(156, 255, 0, 0.52);
  box-shadow: 5px 9px 24px rgba(0, 0, 0, 0.3), inset 0 0 18px rgba(156, 255, 0, 0.07);
  transform: translate3d(2px, -3px, 0) rotate(-2deg);
}

.linktree-layout .service-card-ai {
  min-height: 150px;
  border-color: rgba(156, 255, 0, 0.32);
  background:
    linear-gradient(105deg, rgba(156, 255, 0, 0.1), transparent 58%),
    var(--color-surface);
}

.linktree-layout .service-card-ai::before {
  right: -40px;
  bottom: -125px;
  width: 250px;
  height: 250px;
  opacity: 0.08;
}

.ai-signal {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 46px;
  width: min(32%, 170px);
  color: var(--color-primary);
  opacity: 0.23;
  transform: translateY(-50%);
}

.ai-signal svg {
  width: 100%;
  overflow: visible;
  fill: var(--color-surface);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.ai-signal path {
  stroke-dasharray: 8 8;
}

.service-card-ai.is-visible .ai-signal path {
  animation: route-signal 7s linear infinite;
}

.service-card-ai:hover .ai-signal,
.service-card-ai:focus-visible .ai-signal {
  opacity: 0.44;
}

.linktree-layout .contact-card {
  box-shadow: 10px 20px 48px rgba(0, 0, 0, 0.34), 0 18px 48px rgba(156, 255, 0, 0.1);
}

.linktree-layout .contact-card:hover,
.linktree-layout .contact-card:focus-visible {
  box-shadow: 12px 28px 68px rgba(0, 0, 0, 0.42), 0 22px 58px rgba(156, 255, 0, 0.18);
  transform: translateY(-4px) scale(1.008);
}

.linktree-layout .portfolio-links a,
.linktree-layout .group-link {
  box-shadow: 3px 7px 18px rgba(0, 0, 0, 0.15);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 280ms var(--ease),
    transform 280ms var(--ease);
}

.linktree-layout .portfolio-links a:hover,
.linktree-layout .portfolio-links a:focus-visible,
.linktree-layout .group-link:hover,
.linktree-layout .group-link:focus-visible {
  box-shadow: 5px 12px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.linktree-layout .groups-intro::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 92px;
  pointer-events: none;
  opacity: 0.4;
  background:
    linear-gradient(90deg, transparent 49%, var(--color-primary) 50% 51%, transparent 52%),
    linear-gradient(transparent 49%, var(--color-primary) 50% 51%, transparent 52%);
  mask-image: linear-gradient(135deg, #000, transparent 68%);
}

.linktree-layout .cta-bar {
  box-shadow: 0 -12px 42px rgba(0, 0, 0, 0.38);
}

.linktree-layout .cta-bar .button {
  box-shadow: 6px 10px 26px rgba(0, 0, 0, 0.32), 0 10px 28px rgba(156, 255, 0, 0.12);
}

/* El contenido es visible sin JavaScript; esta clase activa la coreografía. */
.reveal {
  opacity: 1;
  filter: none;
  clip-path: inset(0 0 0 0);
  transform: none;
}

.motion-ready .reveal {
  opacity: 0;
  filter: blur(7px);
  clip-path: inset(0 0 12% 0 round 18px);
  transform: translateY(24px);
  transition:
    opacity 720ms var(--ease-cinema),
    filter 780ms var(--ease-cinema),
    clip-path 820ms var(--ease-cinema),
    transform 820ms var(--ease-cinema);
}

.motion-ready .hero-visual.reveal {
  clip-path: inset(0 0 100% 0 round var(--radius-xl));
  filter: saturate(0.55) blur(9px);
  transform: scale(0.985);
  transition-duration: 1050ms;
}

.motion-ready .hero-copy.reveal {
  clip-path: inset(8% 0 0 0 round var(--radius-xl));
  transform: translateY(16px);
  transition-delay: 150ms;
}

.motion-ready .contact-card.reveal {
  clip-path: inset(0 100% 0 0 round var(--radius-lg));
  filter: saturate(0.7);
  transform: none;
}

.motion-ready .service-card.reveal:nth-child(even) {
  transform: translateY(20px) translateX(8px);
}

.motion-ready .service-card.reveal:nth-child(odd) {
  transform: translateY(20px) translateX(-8px);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  filter: none;
  clip-path: inset(0 0 0 0 round 0);
  transform: none;
}

.motion-ready .bento-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.motion-ready .bento-grid .reveal:nth-child(2) { transition-delay: 55ms; }
.motion-ready .bento-grid .reveal:nth-child(3) { transition-delay: 95ms; }
.motion-ready .bento-grid .reveal:nth-child(4) { transition-delay: 135ms; }
.motion-ready .bento-grid .reveal:nth-child(5) { transition-delay: 175ms; }
.motion-ready .bento-grid .reveal:nth-child(6) { transition-delay: 215ms; }
.motion-ready .bento-grid .reveal:nth-child(7) { transition-delay: 255ms; }

@keyframes signal-dot {
  0%, 72%, 100% { opacity: 1; transform: scale(1); }
  82% { opacity: 0.45; transform: scale(0.74); }
}

@keyframes orbit-forward {
  to {
    transform:
      translate(
        calc(-50% + var(--scene-orbit-x)),
        calc(-50% + var(--scene-orbit-y))
      )
      rotate(360deg);
  }
}

@keyframes orbit-reverse {
  to {
    transform:
      translate(
        calc(-50% + var(--scene-orbit-x)),
        calc(-50% + var(--scene-orbit-y))
      )
      rotate(-360deg);
  }
}

@keyframes signal-scan {
  0%, 13% { top: -38%; opacity: 0; }
  19% { opacity: 0.6; }
  46% { top: 104%; opacity: 0.2; }
  52%, 100% { top: 104%; opacity: 0; }
}

@keyframes corner-lock {
  0%, 68%, 100% { opacity: 0.68; }
  76% { opacity: 1; }
  84% { opacity: 0.34; }
}

@keyframes route-signal {
  to { stroke-dashoffset: -128; }
}

@media (hover: none), (pointer: coarse) {
  .linktree-layout {
    --scene-x: 0px !important;
    --scene-y: 0px !important;
    --scene-soft-x: 0px !important;
    --scene-soft-y: 0px !important;
    --scene-orbit-x: 0px !important;
    --scene-orbit-y: 0px !important;
    --scene-corner-x: 0px !important;
    --scene-corner-y: 0px !important;
    --scene-tilt-x: 0deg !important;
    --scene-tilt-y: 0deg !important;
  }

  .linktree-layout .portrait,
  .linktree-layout .orbit,
  .linktree-layout .visual-meta,
  .linktree-layout .visual-note,
  .linktree-layout .monogram,
  .linktree-layout .signal-grid,
  .signal-corners {
    transition: none;
  }

  .hero-visual.is-active .signal-scan {
    animation-iteration-count: 1;
    animation-duration: 2.2s;
  }
}

@media (max-width: 600px) {
  .linktree-layout .hero-visual,
  .linktree-layout .hero-copy {
    box-shadow: 5px 14px 38px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .signal-corners {
    width: 150px;
    height: 150px;
  }

  .linktree-layout .service-card:hover,
  .linktree-layout .service-card:focus-visible,
  .linktree-layout .contact-card:hover,
  .linktree-layout .contact-card:focus-visible {
    transform: translateY(-2px);
  }

  .linktree-layout .service-card-ai {
    min-height: 136px;
  }

  .ai-signal {
    right: 34px;
    width: 118px;
    opacity: 0.14;
  }
}

@media (max-width: 420px) {
  .ai-signal {
    display: none;
  }
}

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

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

  .motion-ready .reveal,
  .motion-ready .reveal.is-visible {
    opacity: 1 !important;
    filter: none !important;
    clip-path: none !important;
    transform: none !important;
  }

  .hero-visual .signal-scan {
    display: none;
  }
}

/* ========================= FORMULARIO DE CONTACTO ========================= */

/* La tarjeta de contacto ahora es un <button>: normalizar apariencia */
.contact-card {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

/* --- Barra inferior fija --- */
.cta-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  border-top: 1px solid var(--color-border);
  background: rgba(9, 11, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(0);
  transition: transform 260ms var(--ease), opacity 200ms ease;
}

.cta-bar[hidden] {
  display: none;
}

.cta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-bar-text {
  color: var(--color-text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.cta-bar .button {
  min-height: 46px;
  flex-shrink: 0;
}

/* Espacio para que la barra no tape el contenido del footer */
body {
  padding-bottom: 84px;
}

/* Ocultar la barra cuando el modal está abierto */
body.modal-open .cta-bar,
body.contact-card-in-view .cta-bar {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* Evitar scroll de fondo con el modal abierto */
body.modal-open {
  overflow: hidden;
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 4, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade 200ms var(--ease);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: clamp(26px, 4vw, 40px);
  animation: modal-rise 280ms var(--ease);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--color-text);
  border: 1px solid var(--color-border-neutral);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.modal-close svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.9;
}

.modal-close:hover {
  color: var(--color-primary);
  border-color: var(--color-border);
  background: rgba(156, 255, 0, 0.06);
}

.modal-head {
  margin-bottom: 22px;
}

.modal-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.modal-head h2 span {
  color: var(--color-primary);
}

.modal-intro {
  margin: 14px 0 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* --- Campos --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field label span[aria-hidden] {
  color: var(--color-primary);
}

.field-opt {
  color: var(--color-text-muted);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form .select-wrap select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--color-text);
  border: 1px solid var(--color-border-neutral);
  border-radius: 13px;
  outline: 0;
  background: var(--color-surface-secondary);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form .select-wrap select:focus {
  border-color: var(--color-border);
  box-shadow: 0 0 0 3px rgba(156, 255, 0, 0.14);
}

.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: rgba(255, 99, 99, 0.6);
}

/* Honeypot: fuera de vista, no anunciado */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.form-msg {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
}

.form-msg[hidden] {
  display: none;
}

.form-msg--ok {
  color: #0b1400;
  background: var(--color-primary);
}

.form-msg--error {
  color: #ffd9d9;
  border: 1px solid rgba(255, 99, 99, 0.5);
  background: rgba(255, 60, 60, 0.1);
}

.form-submit {
  margin-top: 4px;
}

.form-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .cta-bar-text {
    display: none;
  }

  .cta-bar-inner {
    justify-content: center;
  }

  .cta-bar .button {
    width: 100%;
  }

  body {
    padding-bottom: 90px;
  }
}
