/* Trascendent · materiales v4 «la luz recorre el sistema», luz en los bordes y menos texto (2026-12-03).
   Only the hub index loads this sheet; niches and case templates stay untouched.
   Loops read --tc-play so offscreen sections can pause (see trascendent-materiales-20261203.js). */
@property --tc-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --tc-night: #090b10;
  --tc-panel: #11141b;
  --tc-paper: #eeece5;
  --tc-spectrum: #ff4b0a, #ff0a8a, #aa35ff, #3867ff, #28d9f7;
  --tc-ease: cubic-bezier(.16, 1, .3, 1);
  scrollbar-color: #3b3552 var(--tc-night);
  accent-color: #aa35ff;
}
html.builder-mode { --tc-play: paused; }

@keyframes tc-flow { to { background-position: -200% 0; } }
@keyframes tc-rim { to { --tc-angle: 1turn; } }
@keyframes tc-spin { to { transform: rotate(1turn); } }
@keyframes tc-drift-a { to { transform: translate3d(-9vw, 12vh, 0) scale(1.18); } }
@keyframes tc-drift-b { to { transform: translate3d(11vw, -9vh, 0) scale(.88); } }
@keyframes tc-breathe { to { transform: translate3d(3%, -4%, 0) scale(1.08); opacity: .7; } }
@keyframes tc-float { to { transform: translateY(-7px); } }
@keyframes tc-rays-in { from { clip-path: inset(0 100% 0 0); opacity: 0; } to { clip-path: inset(0); opacity: .66; } }
@keyframes tc-ray-pulse {
  0% { background-position: -30% 60%, 50% 59%, 50% 61%; }
  48%, 100% { background-position: 130% 60%, 50% 59%, 50% 61%; }
}
@keyframes tc-spark {
  0% { transform: translateX(-100%); opacity: 0; }
  3% { opacity: 1; }
  18% { transform: translateX(360%); opacity: 1; }
  21%, 100% { transform: translateX(360%); opacity: 0; }
}
@keyframes tc-ping { 0% { box-shadow: 0 0 0 0 #ff0a8acc; } 70%, 100% { box-shadow: 0 0 0 12px #ff0a8a00; } }
@keyframes tc-focus { from { opacity: .2; filter: blur(4px); transform: translateY(14px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes tc-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Browser surfaces belong to the design too ---------- */
::selection { background: #aa35ff5c; color: #fff; }
:is(.projects-section, .capabilities-section, .studio-section, .proof-band) ::selection { background: #aa35ff38; color: #0b0d12; }
:where(input, textarea) { caret-color: #d9afff; }
:where(main a, main button, main summary, .site-footer a):focus-visible { outline: 2px solid #d9afff; outline-offset: 3px; }
:where(.projects-section, .capabilities-section, .studio-section) :where(a, button):focus-visible { outline-color: #5b2a84; }
.scroll-meter span { box-shadow: 0 0 4px #aa35ffb3; }

/* ---------- Ambient: two slow neon auroras behind the whole page ---------- */
body { background-color: var(--tc-night); }
.ambient .ambient-grid { display: none; }
.ambient .ambient-one, .ambient .ambient-two { filter: none; will-change: transform; }
.ambient .ambient-one {
  opacity: .34;
  background: radial-gradient(closest-side, #7d3cff8c, #3867ff3d 55%, transparent);
  animation: tc-drift-a 38s ease-in-out infinite alternate;
}
.ambient .ambient-two {
  opacity: .26;
  background: radial-gradient(closest-side, #ff0a8a73, #ff4b0a2e 55%, transparent);
  animation: tc-drift-b 46s ease-in-out infinite alternate;
}

/* ---------- Pure Glass header with a living spectral seam ---------- */
.site-header { background: #11141b; border-color: #c4cbea35; }
.site-header.scrolled { background: #11141b; border-color: #c4cbea44; }
@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: #0e111bb3;
    backdrop-filter: blur(18px) saturate(170%);
    box-shadow: inset 0 1px #ffffff14, 0 18px 40px -24px #000000cc;
  }
  .site-header.scrolled { background: #0b0e16eb; }
}
.site-header:has([data-menu-button][aria-expanded="true"]) { background: #11141b; }
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 20px -1px;
  height: 1px;
  background: linear-gradient(90deg, #ff4b0a, #ff0a8a, #aa35ff, #3867ff, #28d9f7, #ff4b0a) 0 0 / 200% 100% repeat-x;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: .6;
  animation: tc-flow 10s linear infinite;
  animation-play-state: var(--tc-play, running);
  pointer-events: none;
}

/* ---------- Section codes: a spectral signature ---------- */
.section-code::before, .hero .kicker::before {
  background: linear-gradient(90deg, var(--tc-spectrum));
  box-shadow: 0 0 3px #aa35ff99;
}

/* ---------- Hero: the authored moment. Light switches the glass on. ---------- */
.hero { column-gap: clamp(32px, 5vw, 82px); }
.hero .kicker { order: 2; margin: 16px 0 0; color: #b6b9c9; }
.hero-entry-links { order: 3; }
.hero .availability { order: 4; }
.hero [data-site-headline] { text-align: start; text-wrap: balance; }
.hero [data-site-headline] :is(em, span) { color: #ff9dcc; text-shadow: none; }

.hero-actions .button { transition: transform .35s var(--tc-ease), box-shadow .45s var(--tc-ease), border-color .3s ease, background-color .3s ease; }
.hero-actions .button-primary { position: relative; box-shadow: none; isolation: isolate; }
.hero-actions .button-primary::after {
  content: "";
  position: absolute;
  inset: auto 16% -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tc-spectrum));
  box-shadow: 0 0 4px #aa35ffb3;
  transform: scaleX(.24);
  opacity: .8;
  transition: transform .45s var(--tc-ease), opacity .3s ease;
  pointer-events: none;
}
.hero-actions .button-primary:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px #ff9dcc80, 0 0 12px -3px #ff0a8acc;
}
.hero-actions .button-primary:is(:hover, :focus-visible)::after { transform: scaleX(1); opacity: 1; }
.hero-actions .button:not(.button-primary) { border-color: #f7f6f140; background: #ffffff0a; }
@supports (backdrop-filter: blur(1px)) { .hero-actions .button:not(.button-primary) { backdrop-filter: blur(10px); } }
.hero-actions .button:not(.button-primary):is(:hover, :focus-visible) {
  transform: translateY(-2px);
  border-color: #d9afff;
  box-shadow: inset 0 1px #ffffff24, 0 0 0 1px #d9afff59, 0 0 10px -3px #aa35ffcc;
}

/* Physical order: halo, rays, specimen, translucent console, labels and controls. */
.hero .hero-lab { position: relative; isolation: isolate; min-width: 0; }
.hero .hero-lab::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  inset: auto -6% 6px -9%;
  height: clamp(105px, 19vw, 260px);
  transform: rotate(-17deg);
  border: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, #fff 45%, #ffd6f0 55%, transparent) -30% 60% / 14% 2px no-repeat,
    linear-gradient(90deg, transparent, var(--tc-spectrum), transparent) 50% 59% / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--tc-spectrum), transparent) 50% 61% / 100% 1px no-repeat;
  filter: drop-shadow(0 0 2px #ad48fa);
  opacity: .66;
  animation: tc-rays-in 1.4s var(--tc-ease) .2s both, tc-ray-pulse 5.6s linear 1.7s infinite;
  animation-play-state: var(--tc-play, running);
}
.hero .hero-lab::after { content: none; }
.hero .hero-specimen img {
  outline: 1px solid #ffffff24;
  outline-offset: -1px;
  box-shadow: 0 24px 44px -18px #000000b3;
}

/* Glass rims: a conic light that travels around the edge of the two Dark Glass panels and the studio frame. */
.hero .lab-console::before,
.contact-section .contact-actions::after,
.studio-section .studio-media::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--tc-angle), transparent 0 34%, #ff4b0a 46%, #ff0a8a 55%, #aa35ff 64%, #3867ff 74%, #28d9f7 83%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .9;
  animation: tc-rim 9s linear infinite;
  animation-play-state: var(--tc-play, running);
  pointer-events: none;
}
.hero .lab-console {
  padding: clamp(12px, 2.3vw, 22px);
  border-radius: 16px;
  background: #17192a;
  box-shadow: inset 0 1px #e6e9ff80, inset 0 -2px #a0aff64d, inset 0 0 0 1px #bec9f538, 0 0 14px -6px #aa35ff73, 0 30px 60px -30px #000000d9;
}
@supports (backdrop-filter: blur(1px)) {
  .hero .lab-console {
    background:
      radial-gradient(280px circle at var(--tc-px, -999px) var(--tc-py, -999px), #ffffff0e, transparent 56%),
      linear-gradient(145deg, #cbcaff15, transparent 28%),
      #10131ded;
    backdrop-filter: blur(11px) saturate(108%);
  }
}
.hero .hero-path button {
  background: #161a28;
  transition: transform .35s var(--tc-ease), border-color .25s ease, background-color .25s ease, box-shadow .4s var(--tc-ease);
}
.hero .hero-path button:hover { transform: translateY(-1px); border-color: #8a7ab8; }
.hero .hero-path button:is([aria-selected="true"], [aria-pressed="true"]) {
  border-color: #cfb8fa;
  background: #302541;
  color: #fff;
  box-shadow: inset 0 1px #ffffff24, 0 0 7px -2px #aa35ffb3;
}
.hero .hero-path button span { color: #aab5c4; }
.hero .hero-path button:is([aria-selected="true"], [aria-pressed="true"]) span { color: #d9afff; }
.hero .lab-progress span { background: linear-gradient(90deg, var(--tc-spectrum)); box-shadow: 0 0 4px #aa35ff99; }

/* ---------- Services: matte columns, light on intent ---------- */
.entry-card { position: relative; border-top-color: #f7f6f124; }
.entry-card::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--tc-spectrum));
  box-shadow: 0 0 4px #aa35ff99;
  transform: scaleX(.12);
  transform-origin: left;
  transition: transform .6s var(--tc-ease);
  pointer-events: none;
}
.entry-card:is(:hover, :focus-within)::before { transform: scaleX(1); }
.entry-card .entry-action {
  border: 1px solid #f7f6f138;
  background: #191d26;
  color: var(--white, #f7f6f1);
  box-shadow: inset 0 1px #ffffff14;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .45s var(--tc-ease), transform .35s var(--tc-ease);
}
.entry-card .entry-action:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  border-color: #d9afff;
  background: #211f30;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 1px #ffffff1f, 0 0 0 1px #d9afff40, 0 0 10px -3px #aa35ffcc;
}

/* ---------- Signal strip: the seam keeps flowing ---------- */
.signal-strip::before {
  background: linear-gradient(90deg, #ff4b0a, #ff0a8a, #aa35ff, #3867ff, #28d9f7, #ff4b0a) 0 0 / 200% 100% repeat-x;
  box-shadow: 0 0 4px #aa35ff80;
  animation: tc-flow 14s linear infinite;
  animation-play-state: var(--tc-play, running);
}

/* ---------- Projects: paper, White Glass rail, Pure Glass labels, lit cards ---------- */
.projects-section .project-toolbar {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f7f6f1;
}
.projects-section .project-toolbar::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 14px -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tc-spectrum), transparent);
  box-shadow: 0 0 4px #aa35ff66;
  pointer-events: none;
}
.projects-section .project-toolbar::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: #f7f6f1;
  box-shadow: inset 0 1px #fff, inset 0 0 0 1px #1c20322b, 0 18px 40px -24px #2a184a59;
  pointer-events: none;
}
@supports (backdrop-filter: blur(1px)) {
  .projects-section .project-toolbar::after { background: #fcfbf4a8; backdrop-filter: blur(17px); }
}
.projects-section .project-toolbar .filters { padding-block: 0; }
.projects-section .filter-button { transition: transform .3s var(--tc-ease), box-shadow .4s var(--tc-ease), border-color .25s ease; }
.projects-section .filter-button:hover { transform: translateY(-1px); }
.projects-section .filter-button[aria-pressed="true"] { box-shadow: 0 0 0 1px #aa35ff4d, 0 0 8px -3px #aa35ffb3; }

.projects-section .project-card {
  background: #f7f6f1;
  transition: transform .55s var(--tc-ease), box-shadow .55s var(--tc-ease);
}
.projects-section .project-card:is(:hover, :focus-visible) {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px #aa35ffa6, 0 0 14px -5px #aa35ffb3, 0 26px 40px -26px #0b0d1266;
}
.projects-section .project-card:focus-visible { outline: 2px solid #5b2a84; outline-offset: 4px; }
.projects-section .project-card .project-card-body {
  background: radial-gradient(340px circle at var(--tc-px, -999px) var(--tc-py, -999px), #aa35ff24, transparent 65%), #11141b;
}
.projects-section .project-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, transparent 34%, #ffffff33 47%, #ffffff0d 55%, transparent 66%);
  transform: translateX(-120%);
  pointer-events: none;
}
.projects-section .project-card:is(:hover, :focus-visible) .project-card-media::after {
  transform: translateX(120%);
  transition: transform 1.1s var(--tc-ease);
}
.project-card .project-preview-status {
  border-color: #ffffff2e;
  background: #0c1119e6;
  box-shadow: inset 0 1px #ffffff1f, 0 8px 20px #00000033;
}
@supports (backdrop-filter: blur(1px)) {
  .project-card .project-preview-status { background: #0c111999; backdrop-filter: blur(8px) saturate(140%); }
}
.project-card .project-state { border-color: #887299a6; background: #191d26; }

/* ---------- Process: glass tiles over a violet aurora; the spectrum advances with the scroll ---------- */
.process-section { position: relative; isolation: isolate; overflow: hidden; }
.process-section .process-glow {
  display: block;
  z-index: -1;
  width: 72vw;
  height: 72vw;
  right: -22vw;
  top: -32vw;
  filter: none;
  opacity: 1;
  background: radial-gradient(closest-side, #aa35ff2e, #3867ff14 55%, transparent 72%);
  animation: tc-drift-a 32s ease-in-out infinite alternate;
  animation-play-state: var(--tc-play, running);
  pointer-events: none;
}
.process-section .process-step {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  padding: 28px 24px 26px;
  background: #ffffff08;
  box-shadow: inset 0 0 0 1px #ffffff12, inset 0 1px #ffffff1f, 0 24px 48px -28px #000000cc;
  transition: transform .5s var(--tc-ease), box-shadow .5s var(--tc-ease);
}
@supports (backdrop-filter: blur(1px)) { .process-section .process-step { backdrop-filter: blur(12px) saturate(140%); } }
.process-section .process-step:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc-b) 45%, transparent), inset 0 1px #ffffff2e, 0 0 12px -5px var(--tc-b), 0 24px 48px -28px #000000cc;
}
.process-section .process-step::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0 0 auto;
  width: auto;
  height: 2px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 2px;
  scale: none;
  transform-origin: left;
  background: linear-gradient(90deg, var(--tc-a), var(--tc-b));
  box-shadow: 0 0 5px var(--tc-b);
}
.process-section .process-step::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 28%;
  height: 6px;
  background: radial-gradient(closest-side, #fff, var(--tc-b) 45%, transparent);
  opacity: 0;
  animation: tc-spark 6s linear infinite;
  animation-delay: calc(var(--tc-n) * 1.08s);
  animation-play-state: var(--tc-play, running);
  pointer-events: none;
}
.process-section .process-step:nth-child(1) { --tc-n: 0; --tc-a: #ff4b0a; --tc-b: #ff0a8a; --tc-text: #ffad8a; }
.process-section .process-step:nth-child(2) { --tc-n: 1; --tc-a: #ff0a8a; --tc-b: #aa35ff; --tc-text: #ff9dcc; }
.process-section .process-step:nth-child(3) { --tc-n: 2; --tc-a: #aa35ff; --tc-b: #3867ff; --tc-text: #d9afff; }
.process-section .process-step:nth-child(4) { --tc-n: 3; --tc-a: #3867ff; --tc-b: #28d9f7; --tc-text: #a5baff; }
.process-section .process-step .number { color: var(--tc-text, #d9afff); text-shadow: 0 0 4px color-mix(in srgb, var(--tc-b) 50%, transparent); }

/* ---------- Capabilities: one White Glass slab over warm light ---------- */
.capabilities-section { position: relative; isolation: isolate; }
.capabilities-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 26% 0 2%;
  background:
    radial-gradient(38% 48% at 18% 62%, #ff4b0a1f, transparent 70%),
    radial-gradient(42% 52% at 52% 42%, #aa35ff21, transparent 70%),
    radial-gradient(36% 46% at 86% 72%, #28d9f71f, transparent 70%);
  animation: tc-breathe 18s ease-in-out infinite alternate;
  animation-play-state: var(--tc-play, running);
  pointer-events: none;
}
.capabilities-section .capability-grid {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #fbfaf6;
  box-shadow: inset 0 1px #fff, inset 0 0 0 1px #0b0d121c, 0 34px 70px -36px #2a184a59;
}
@supports (backdrop-filter: blur(1px)) {
  .capabilities-section .capability-grid {
    background: radial-gradient(420px circle at var(--tc-px, -999px) var(--tc-py, -999px), #ffffffa6, transparent 70%), #ffffff5c;
    backdrop-filter: blur(24px) saturate(140%);
  }
}
.capabilities-section .capability { transition: background-color .35s ease; }
.capabilities-section .capability:hover { background: #ffffff70; }
.capabilities-section .capability .index { transition: color .3s ease, text-shadow .3s ease; }
.capabilities-section .capability:hover .index { color: #aa35ff; }

/* ---------- Studio: the photo floats in perspective with a lit rim ---------- */
.studio-section .studio-media {
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
  box-shadow: 34px 44px 80px -36px #2a184a80, inset 0 1px #ffffff1a;
  transition: transform .9s var(--tc-ease), box-shadow .9s var(--tc-ease);
}
.studio-section .studio-media:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.studio-section .studio-frame { box-shadow: inset 0 0 0 1px #ffffff1f; }
.studio-section .studio-pulse {
  display: block;
  right: 20px;
  bottom: 18px;
  width: 8px;
  height: 8px;
  background: #ff0a8a;
  animation: tc-ping 2.4s var(--tc-ease) infinite;
  animation-play-state: var(--tc-play, running);
}

/* ---------- Community: Dark Glass cards over a magenta/blue aurora ---------- */
.community-section { position: relative; isolation: isolate; }
.community-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 0 0;
  background:
    radial-gradient(34% 46% at 14% 72%, #ff0a8a1a, transparent 70%),
    radial-gradient(40% 52% at 82% 40%, #3867ff1f, transparent 70%);
  animation: tc-breathe 20s ease-in-out infinite alternate;
  animation-play-state: var(--tc-play, running);
  pointer-events: none;
}
.community-grid .community-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(260px circle at var(--tc-px, -999px) var(--tc-py, -999px), #ffffff14, transparent 65%), var(--tc-panel);
  box-shadow: inset 0 1px #ffffff14;
  transition: transform .45s var(--tc-ease), border-color .3s ease, box-shadow .45s var(--tc-ease);
}
@supports (backdrop-filter: blur(1px)) {
  .community-grid .community-card {
    background: radial-gradient(260px circle at var(--tc-px, -999px) var(--tc-py, -999px), #ffffff14, transparent 65%), #11141bad;
    backdrop-filter: blur(14px) saturate(140%);
  }
}
.community-grid .community-card:is(:hover, :focus-visible) {
  transform: translateY(-3px);
  border-color: #f7f6f13d;
  box-shadow: inset 0 1px #ffffff1f, 0 0 0 1px #aa35ff59, 0 0 12px -5px #aa35ffa6;
}
.community-grid .community-card::before {
  content: "";
  position: absolute;
  inset: 0 18px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tc-spectrum), transparent);
  box-shadow: 0 0 4px #aa35ff;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.community-grid .community-card:is(:hover, :focus-visible)::before { opacity: 1; }

/* ---------- FAQ: shared shell, smooth opening, lit edge on the open answer ---------- */
.faq-section { padding-inline: max(15px, calc((100% - var(--shell)) / 2)); }
.faq-section .faq-item { position: relative; transition: background-color .4s ease; }
.faq-section .faq-item[open] { background: linear-gradient(180deg, #ffffff07, transparent 80%); }
.faq-section .faq-item::before {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--tc-spectrum));
  box-shadow: 0 0 4px #aa35ff99;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--tc-ease);
  pointer-events: none;
}
.faq-section .faq-item[open]::before { transform: scaleX(1); }
.faq-section .faq-item summary i { transition: transform .45s var(--tc-ease), background-color .3s ease, box-shadow .45s var(--tc-ease); }
.faq-section .faq-item summary:hover i { box-shadow: 0 0 0 5px #aa35ff1f; }
.faq-section .faq-item[open] summary i { box-shadow: 0 0 0 1px #d9afff80, 0 0 8px -2px #aa35ffb3; }
.faq-section .faq-item summary:focus-visible { outline: 2px solid #d9afff; outline-offset: 4px; border-radius: 8px; }
@supports selector(::details-content) {
  .faq-section .faq-item { interpolate-size: allow-keywords; }
  .faq-section .faq-item::details-content {
    height: 0;
    overflow: clip;
    opacity: 0;
    transition: height .5s var(--tc-ease), opacity .4s ease, content-visibility .5s allow-discrete;
  }
  .faq-section .faq-item[open]::details-content { height: auto; opacity: 1; }
}

/* ---------- Contact: the second and last Dark Glass, closing the page like the explorer opens it ---------- */
.contact-section { isolation: isolate; }
.contact-section .contact-orb {
  display: grid;
  z-index: -1;
  border-color: #ffffff0f;
  animation: tc-spin 120s linear infinite;
  animation-play-state: var(--tc-play, running);
  pointer-events: none;
}
.contact-section .contact-orb::before { border-color: #aa35ff2b; }
.contact-section .contact-orb::after { border-color: #28d9f71f; }
.contact-section .contact-orb span { opacity: .4; animation-play-state: var(--tc-play, running); }
.contact-section .contact-copy { position: relative; }
.contact-section .contact-actions {
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding: 4px clamp(14px, 2vw, 24px);
  border-radius: 18px;
  background: #151827;
  box-shadow: inset 0 1px #e6e9ff6b, inset 0 -2px #a0aff640, inset 0 0 0 1px #bec9f533, 0 0 14px -6px #aa35ff73, 0 34px 70px -34px #000000e6;
}
@supports (backdrop-filter: blur(1px)) {
  .contact-section .contact-actions {
    background:
      radial-gradient(320px circle at var(--tc-px, -999px) var(--tc-py, -999px), #ffffff17, transparent 65%),
      linear-gradient(145deg, #cbcaff1f, transparent 38%),
      #101321b3;
    backdrop-filter: blur(11px) saturate(150%);
  }
}
/* The beam lives on the next sibling, so the panel's backdrop blur softens it. */
.contact-section .contact-actions + .contact-maps { position: relative; }
.contact-section .contact-actions + .contact-maps::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -18%;
  right: -3%;
  bottom: calc(100% + 24px);
  height: 300px;
  transform: rotate(-9deg);
  background:
    linear-gradient(90deg, transparent, #fff 45%, #ffd6f0 55%, transparent) -30% 47% / 14% 2px no-repeat,
    linear-gradient(90deg, transparent, var(--tc-spectrum), transparent) 50% 46% / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--tc-spectrum), transparent) 50% 49% / 100% 1px no-repeat;
  filter: drop-shadow(0 0 2px #ad48fa);
  opacity: .6;
  animation: tc-ray-pulse-contact 6.4s linear 1s infinite;
  animation-play-state: var(--tc-play, running);
  pointer-events: none;
}
@keyframes tc-ray-pulse-contact {
  0% { background-position: -30% 47%, 50% 46%, 50% 49%; }
  45%, 100% { background-position: 130% 47%, 50% 46%, 50% 49%; }
}
.contact-section .contact-actions .contact-link:first-child { border-top: 0; }
.contact-section .contact-actions .contact-link { position: relative; z-index: 1; }
.contact-section .contact-link > span:last-child { transition: transform .45s var(--tc-ease), background-color .3s ease, box-shadow .45s var(--tc-ease); }
.contact-section .contact-link:is(:hover, :focus-visible) > span:last-child { box-shadow: 0 0 0 1px #d9afff80, 0 0 8px -2px #aa35ffb3; }

/* ---------- Footer: the spectrum closes the document ---------- */
.site-footer { position: relative; border-top-color: transparent; }
.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, #ff4b0a, #ff0a8a, #aa35ff, #3867ff, #28d9f7, #ff4b0a) 0 0 / 200% 100% repeat-x;
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  box-shadow: 0 0 4px #aa35ff80;
  animation: tc-flow 16s linear infinite;
  animation-play-state: var(--tc-play, running);
  pointer-events: none;
}
.site-footer .footer-brand img { transition: filter .5s ease; }
.site-footer .footer-brand:hover img { filter: drop-shadow(0 0 4px #aa35ff99); }

/* ---------- Scroll-linked motion where the scroll itself carries meaning ---------- */
@media screen and (prefers-reduced-motion: no-preference) {
  .hero .hero-specimen img { animation: tc-float 7s ease-in-out infinite alternate; animation-play-state: var(--tc-play, running); }
  @supports (animation-timeline: view()) {
    /* Headings come into focus like a lens pull as they enter. */
    main section:not(.hero) h2 {
      animation: tc-focus linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }
    /* The spectrum advances 01 → 04 as the reader moves through the method. */
    .process-section .process-step { view-timeline: --tc-step block; }
    .process-section .process-step::before {
      animation: tc-draw linear both;
      animation-timeline: --tc-step;
    }
    .process-section .process-step:nth-child(1)::before { animation-range: entry 0% entry 80%; }
    .process-section .process-step:nth-child(2)::before { animation-range: entry 20% entry 100%; }
    .process-section .process-step:nth-child(3)::before { animation-range: entry 40% cover 26%; }
    .process-section .process-step:nth-child(4)::before { animation-range: entry 60% cover 32%; }
  }
}

@media (min-width: 981px) {
  .contact-grid > div:first-child > div { position: sticky; top: 128px; }
}
@media (max-width: 760px) {
  .hero .hero-lab::before { inset-inline: -2%; bottom: 30px; }
  .hero .lab-console { padding: 12px; }
  .projects-section .project-toolbar { padding-inline: 8px; }
  .projects-section .project-toolbar .filters { padding-block: 4px 8px; }
  .studio-section .studio-media, .studio-section .studio-media:hover { transform: none; }
  .contact-section .contact-orb { display: none; }
  .process-section .process-step { padding: 24px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient .ambient-one, .ambient .ambient-two, .site-header::after, .signal-strip::before,
  .hero .hero-lab::before, .hero .lab-console::before,
  .contact-section .contact-actions::after, .studio-section .studio-media::after,
  .process-section .process-glow, .capabilities-section::before, .community-section::before,
  .contact-section .contact-orb, .contact-section .contact-actions + .contact-maps::before,
  .studio-section .studio-pulse, .site-footer::before { animation: none !important; }
  .process-section .process-step::after { display: none; }
  .studio-section .studio-media, .studio-section .studio-media:hover { transform: none; }
  .hero-actions .button, .hero .hero-path button, .entry-card .entry-action, .projects-section .project-card,
  .process-section .process-step, .community-grid .community-card, .projects-section .filter-button { transition-property: border-color, background-color, box-shadow, color; }
  .hero-actions .button:hover, .hero .hero-path button:hover, .entry-card .entry-action:hover,
  .projects-section .project-card:hover, .process-section .process-step:hover, .community-grid .community-card:hover,
  .projects-section .filter-button:hover { transform: none; }
  .projects-section .project-card-media::after { display: none; }
  .hero-actions .button-primary::after, .entry-card::before, .faq-section .faq-item::before, .community-grid .community-card::before { transition: none; }
}
@media (forced-colors: active) {
  .entry-card::before, .process-section .process-step::before, .process-section .process-step::after,
  .contact-section .contact-actions + .contact-maps::before, .community-grid .community-card::before,
  .faq-section .faq-item::before, .site-header::after, .site-footer::before, .hero .lab-console::before,
  .contact-section .contact-actions::after, .studio-section .studio-media::after,
  .projects-section .project-card-media::after { display: none; }
  .process-section .process-step, .contact-section .contact-actions { border: 1px solid CanvasText; }
  .site-footer { border-top-color: CanvasText; }
}
@media print {
  .ambient, .process-section .process-glow, .contact-section .contact-orb, .site-header::after { display: none; }
  main section h2 { animation: none !important; }
}

/* ---------- v4 «menos texto»: one voice per idea ----------
   Duplicate blocks stay available in the visual editor:
   the second services list (same three doors, told twice), the principles band (repeats the
   manifesto), per-offer limits and the scope note (the FAQ answers both), the portfolio note
   (repeats the projects intro) and the manifesto's steps (the method already shows them). */
:where(html:not(.builder-mode)) :is(
  .solutions-section > .section-heading,
  .solutions-section > .solution-grid,
  .solutions-section > .scope-note,
  .entry-card .entry-limit,
  .proof-band,
  .projects-section > .portfolio-note,
  .manifesto [data-manifesto-steps]
) { display: none; }
:where(html:not(.builder-mode)) .manifesto-foot { grid-template-columns: minmax(0, 1fr); }

/* Short capability lines need no tall cells. */
.capabilities-section .capability { min-height: 0; }
@media (max-width: 760px) {
  .capabilities-section .capability,
  .capabilities-section .capability:hover {
    padding-inline: clamp(16px, 4.5vw, 22px);
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 14px;
  }
  .capabilities-section .capability :is(h3, p) { overflow-wrap: anywhere; }
}


/* Project cards: the media speaks; its truncated caption gives way to the counter alone. */
.project-card .project-preview-status { left: auto; grid-template-columns: auto; gap: 0; }
.project-card .project-preview-status span:first-child { display: none; }
