/* Dark editorial system: restrained motion, distinct white accents per section. */
:root {
  --bg: #0d0910;
  --bg-soft: #17101a;
  --surface: #211825;
  --border: #392b3d;
  --text: #f5f2f5;
  --muted: #b8aeb9;
  --paper: #faf8f9;
  --ink: #171018;
}

.ambient-scene,
.panel::after,
.hero-content::after,
.motion-ring,
.motion-node,
.motion-logo-halo { display: none; }

.panel::before { filter: none; }
.hero,
.about,
.about-depth,
.projects,
.expertise,
.contact {
  background: #0d0910;
  color: var(--text);
}
.about-depth,
.expertise { background: #141018; }
.projects { background: #100b13; }
.contact { background: #130d17; }

.site-header {
  border-color: rgba(255,255,255,.1);
  background: rgba(13,9,16,.94);
  backdrop-filter: blur(14px);
}
.section-progress a::after,
body:not([data-active-section="inicio"]) .section-progress a::after { background: rgba(255,255,255,.16); }
.section-progress a.active,
body:not([data-active-section="inicio"]) .section-progress a.active { color: #c5bbc5; }
.section-progress a.active::after,
body:not([data-active-section="inicio"]) .section-progress a.active::after { background: var(--accent); }

.hero::after { display: none; }
.hero::before {
  width: 32rem;
  right: 4%;
  top: 20%;
  background: radial-gradient(circle, rgba(211,38,63,.12), transparent 68%);
}
.hero h1 em { background: none; color: var(--accent); animation: none; }
.hero-motion {
  top: 20%;
  right: clamp(4rem, 9vw, 9rem);
  width: clamp(20rem, 31vw, 27rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.6rem;
  background: #f8f5f7;
  box-shadow: none;
  animation: none;
}
.hero-motion::before {
  inset: 1.1rem;
  border: 1px solid rgba(22,15,24,.1);
  border-radius: .9rem;
  animation: none;
}
.motion-core {
  inset: 24%;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}
.motion-core::after { display: none; }
.motion-core img { width: 100%; height: 100%; filter: none; animation: none; }
.motion-caption { bottom: 2.2rem; color: #5c505c; }
.hero-motion::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 2.5rem;
  width: 4rem;
  height: .35rem;
  background: var(--accent);
}
.hero-summary span::before,
.project-status::before { animation: none; box-shadow: none; }
.primary-action { animation: none; box-shadow: none; }

.about::before {
  top: 21%;
  left: var(--page-x);
  right: auto;
  width: .35rem;
  height: 6rem;
  aspect-ratio: auto;
  border-radius: 0;
  background: #f8f5f7;
}
.about h2,
.about-depth h2,
.projects h2,
.expertise h2,
.contact h2 { color: var(--text); }
.about .eyebrow,
.about-depth .eyebrow,
.projects .eyebrow,
.expertise .eyebrow,
.contact .eyebrow { color: var(--muted); }
.about-copy { border-color: rgba(255,255,255,.16); }
.about-copy p { color: #c7bec8; }
.about-highlights span {
  background: transparent;
  border-color: rgba(255,255,255,.2);
  box-shadow: none;
  color: var(--text);
}
.about-highlights span:first-child {
  background: #f8f5f7;
  border-color: #f8f5f7;
  color: var(--ink);
}
.about-highlights span:hover { background: #f8f5f7; color: var(--ink); }

.about-depth::before {
  top: auto;
  right: var(--page-x);
  bottom: 12%;
  left: auto;
  width: 7rem;
  height: .35rem;
  aspect-ratio: auto;
  border-radius: 0;
  background: #f8f5f7;
}
.depth-content {
  border: 0;
  border-radius: 1.15rem;
  background: #f8f5f7;
  box-shadow: none;
  color: var(--ink);
}
.depth-content:hover { border-color: transparent; }
.depth-lead,
.process-list small,
.current-focus { color: #655a66; }
.process-list li,
.current-focus { border-color: rgba(23,16,24,.15); }
.process-list li > span { background: #211825; color: #fff; }
.current-focus span { color: var(--ink); }

.projects::before {
  top: calc(var(--header-height) + 1.4rem);
  right: var(--page-x);
  width: 5rem;
  height: .35rem;
  aspect-ratio: auto;
  border-radius: 0;
  background: #f8f5f7;
}
.projects .section-intro { color: #c7bec8; }
.project-view { filter: none; }
.project-card-link {
  grid-template-columns: minmax(0, 1.06fr) minmax(22rem, .94fr);
  gap: .85rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.project-card-link:hover,
.project-card-link:focus-visible { border-color: transparent; box-shadow: none; }
.project-visual,
.project-copy { border-radius: 1rem; }
.project-visual { border: 1px solid rgba(255,255,255,.18); }
.project-visual::after { border-radius: inherit; }
.project-visual::before {
  z-index: 3;
  inset: auto 1rem 1rem auto;
  width: 4.25rem;
  height: .3rem;
  background: #f8f5f7;
  transform: none;
  animation: none;
}
.project-copy {
  border: 1px solid rgba(255,255,255,.15);
  background: #f8f5f7;
  box-shadow: none;
}
.project-meta { margin-bottom: 1rem; }
.project-facts span { background: transparent; }
.project-arrow { border: 1px solid rgba(255,255,255,.22); box-shadow: none; }
.project-dots {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.project-dot { border-right-color: rgba(255,255,255,.13); }
.project-dot[aria-selected="true"] {
  background: #f8f5f7;
  color: var(--ink);
  box-shadow: inset 0 3px var(--accent);
}
.project-dot[aria-selected="true"]::after { display: none; }

.project-view[data-theme="abyss"] .project-copy {
  border-color: rgba(255,255,255,.48);
  background: #1d1621;
  color: #f8f5f7;
}
.project-view[data-theme="abyss"] .project-copy h3,
.project-view[data-theme="abyss"] .project-copy .project-category,
.project-view[data-theme="abyss"] .project-visit { color: #f8f5f7; }
.project-view[data-theme="abyss"] .project-meta,
.project-view[data-theme="abyss"] .project-copy > p { color: #c9c0ca; }
.project-view[data-theme="abyss"] .project-facts span {
  border-color: rgba(255,255,255,.24);
  color: #eee9ee;
}
.project-view[data-theme="abyss"] .project-visual::before {
  width: 3rem;
  height: 3rem;
  border: 1px solid #fff;
  background: transparent;
}
.project-view[data-theme="luccas"] .project-copy { border-top: .3rem solid #f8f5f7; }
.project-view[data-theme="luccas"] .project-visual::before {
  right: 1rem;
  bottom: 1rem;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.expertise::before {
  top: 18%;
  right: var(--page-x);
  width: 5rem;
  height: 5rem;
  aspect-ratio: 1;
  border: 1px solid #f8f5f7;
  border-radius: 50%;
  background: transparent;
}
.expertise-list { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.expertise-list li { animation: none !important; }
.expertise-list li:nth-child(2) {
  padding-inline: 1rem;
  border: 0;
  border-radius: .8rem;
  background: #f8f5f7;
  color: var(--ink);
}
.expertise-list li:nth-child(2) small { color: #655a66; }
.expertise-list li:nth-child(2) span { background: #211825; color: #fff; }

.contact::before {
  top: 17%;
  right: var(--page-x);
  width: .35rem;
  height: 6rem;
  aspect-ratio: auto;
  border-radius: 0;
  background: #f8f5f7;
}
.contact-intro > p:not(.eyebrow) { color: #c7bec8; }
.contact-form { border: 0; background: #f8f5f7; box-shadow: none; }
.contact-action { border-color: rgba(255,255,255,.18); background: transparent; color: #fff; }
.contact-action small { color: #c7bec8; }
.email-action { border-color: #f8f5f7; background: #f8f5f7; color: var(--ink); }
.email-action small { color: #655a66; }
.whatsapp-action:hover { background: rgba(37,211,102,.1); }
.email-action:hover { background: #fff; }

@media (max-width: 900px) {
  .project-card-link { grid-template-columns: 1fr; gap: .6rem; }
  .hero-motion { right: -8rem; width: 21rem; opacity: .2; }
}
@media (max-width: 560px) {
  .section-progress { display: none; }
  .hero-motion { display: none; }
  .about::before,
  .about-depth::before,
  .projects::before,
  .expertise::before,
  .contact::before { display: none; }
  .project-visual { border-radius: 1rem 1rem 0 0; }
  .project-copy { border-radius: 0 0 1rem 1rem; }
  .project-view[data-theme="abyss"] .project-copy { border-color: rgba(255,255,255,.48); }
  .project-dot { border: 1px solid rgba(255,255,255,.2) !important; background: transparent; }
  .project-dot[aria-selected="true"] { background: #f8f5f7; }
  .contact-action { background: transparent; }
  .email-action { background: #f8f5f7; }
  .expertise-list li:nth-child(2) { padding-inline: .6rem; }
}
