/* A dark gutter separates independent panels so their diagonal planes never join. */
.panel + .panel { margin-top: 1.75rem; }
.contact { border-top: 0; }

/* One full portfolio chapter per project. */
.showcase {
  --showcase-ink: #fff;
  --showcase-muted: #c6c2cf;
  --showcase-accent: #d3263f;
  --showcase-line: rgba(255,255,255,.25);
  color: var(--showcase-ink);
}
.showcase::before { display: none; }
.showcase-mova {
  --showcase-accent: #73e1db;
  background: linear-gradient(112deg, #111629 0 56%, #eef3f9 56.1%);
}
.showcase-abyss {
  --showcase-accent: #7de2de;
  background: linear-gradient(112deg, #091b22 0 56%, #edf7f5 56.1%);
}
.showcase-luccas {
  --showcase-accent: #f06378;
  background: linear-gradient(112deg, #17111e 0 56%, #f7f2f5 56.1%);
}
.showcase-piu {
  --showcase-ink: #2e241e;
  --showcase-muted: #67584d;
  --showcase-accent: #a92f25;
  --showcase-line: rgba(79,47,29,.22);
  background: linear-gradient(112deg, #fff7e8 0 56%, #244b35 56.1%);
}
.showcase-layout {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 3.5vh, 2.6rem);
  padding-top: calc(var(--header-height) + 2.25rem);
  padding-bottom: 1.75rem;
}
.showcase-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--showcase-line);
  color: var(--showcase-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.showcase:not(.showcase-piu) .showcase-heading span:last-child { color: #514a55; }
.showcase-piu .showcase-heading span:last-child { color: #e5f3e7; }
.showcase-body {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  min-width: 0;
}
.showcase-copy { min-width: 0; }
.showcase-type {
  margin: 0 0 1rem;
  color: var(--showcase-accent);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.showcase h2 {
  max-width: 11ch;
  color: var(--showcase-ink);
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .92;
}
.showcase h2 em,
.showcase-period { color: var(--showcase-accent); }
.showcase-lead {
  max-width: 35rem;
  margin: 1.45rem 0 .8rem;
  color: var(--showcase-ink);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
}
.showcase-description {
  max-width: 37rem;
  margin: 0;
  color: var(--showcase-muted);
  font-size: clamp(.88rem, 1.03vw, 1rem);
  line-height: 1.55;
}
.showcase-features {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.showcase-features li {
  padding: .46rem .7rem;
  border: 1px solid var(--showcase-line);
  border-radius: 999px;
  color: var(--showcase-ink);
  font-size: .7rem;
  line-height: 1.2;
}
.showcase-note {
  max-width: 35rem;
  margin: -.65rem 0 1rem;
  color: #8c3e2b;
  font-size: .75rem;
  line-height: 1.45;
}
.showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 2.75rem;
  padding: .65rem 0;
  border-bottom: 2px solid var(--showcase-accent);
  color: var(--showcase-ink);
  font-size: .79rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: gap .25s ease, color .25s ease;
}
.showcase-cta span { color: var(--showcase-accent); font-size: 1.1rem; }
.showcase-cta:hover { gap: 2rem; color: var(--showcase-accent); }
.showcase-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.33;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 1.25rem;
  background: #151729;
  box-shadow: 0 1.4rem 3.5rem rgba(11,7,17,.22);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.showcase-media:hover {
  transform: translateY(-.35rem);
  box-shadow: 0 1.8rem 4rem rgba(11,7,17,.28);
}
.showcase-media img { width: 100%; height: 100%; object-fit: cover; }
.showcase-media-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-width: min(17rem, calc(100% - 2rem));
  padding: .7rem .9rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: .6rem;
  background: rgba(16,13,20,.86);
  color: #fff;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.showcase-media-label b { color: var(--showcase-accent); font-size: 1rem; }
.showcase-mova .showcase-media {
  background: radial-gradient(circle at 50% 55%, #dfe7ff 0 18%, #8b78d0 42%, #111d38 78%);
}
.showcase-mova .showcase-media img {
  width: 82%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 .7rem 1rem rgba(4,10,30,.25));
}
.showcase-abyss .showcase-media { background: #04151b; }
.showcase-abyss .showcase-media img { object-fit: contain; }
.showcase-luccas .showcase-media img { object-position: center 28%; }
.showcase-piu .showcase-media {
  border-color: rgba(57,37,24,.2);
  background: #fff7e8;
}
.showcase-piu .showcase-media img { object-fit: contain; }
.showcase-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--showcase-line);
  border-radius: .85rem;
  background: rgba(12,9,18,.84);
}
.showcase-nav a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: .65rem 1rem;
  border-right: 1px solid rgba(255,255,255,.15);
  color: #c7bec9;
  font-size: .76rem;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.showcase-nav a:last-child { border-right: 0; }
.showcase-nav a:hover { background: #32243a; color: #fff; }
.showcase-nav a[aria-current] {
  box-shadow: inset 0 3px var(--showcase-accent);
  background: #f7f4f6;
  color: #211825;
  font-weight: 700;
}
.showcase-piu .showcase-nav { background: #244b35; }
.showcase-piu .showcase-nav a[aria-current] { background: #fff7e8; color: #a92f25; }

body[data-active-section="projeto-abyss"] .main-nav a[href="#projetos"],
body[data-active-section="projeto-luccas"] .main-nav a[href="#projetos"],
body[data-active-section="projeto-piu-bella"] .main-nav a[href="#projetos"] { color: var(--text); }
body[data-active-section="projeto-abyss"] .main-nav a[href="#projetos"]::after,
body[data-active-section="projeto-luccas"] .main-nav a[href="#projetos"]::after,
body[data-active-section="projeto-piu-bella"] .main-nav a[href="#projetos"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.65rem;
  height: 1px;
  background: var(--accent);
}
body[data-active-section="projeto-abyss"] .section-progress a::after,
body[data-active-section="projeto-luccas"] .section-progress a::after { background: rgba(28,20,31,.26); }
body[data-active-section="projeto-abyss"] .section-progress a.active,
body[data-active-section="projeto-luccas"] .section-progress a.active { color: #514753; }
body[data-active-section="projeto-abyss"] .section-progress a.active::after,
body[data-active-section="projeto-luccas"] .section-progress a.active::after { background: var(--accent); }

@media (max-width: 900px) {
  .showcase:not(.showcase-piu) .showcase-heading span:last-child { color: var(--showcase-muted); }
  .showcase-piu .showcase-heading span:last-child { color: var(--showcase-muted); }
  .showcase-layout { padding-top: calc(var(--header-height) + 1.5rem); }
  .showcase-body { grid-template-columns: 1fr; gap: 1.6rem; padding-block: 1rem; }
  .showcase h2 { font-size: clamp(3.3rem, 8vw, 5.4rem); }
  .showcase-media { aspect-ratio: 1.85; }
  .showcase-mova,
  .showcase-abyss,
  .showcase-luccas { background: linear-gradient(175deg, #11121d 0 62%, #f7f4f6 62.1%); }
  .showcase-abyss { background: linear-gradient(175deg, #091b22 0 62%, #edf7f5 62.1%); }
  .showcase-piu { background: linear-gradient(175deg, #fff7e8 0 62%, #244b35 62.1%); }
}

@media (max-width: 560px) {
  .panel + .panel { margin-top: 1.1rem; }
  .showcase-layout { gap: 1rem; padding-top: calc(var(--header-height) + 1.25rem); padding-bottom: 1.25rem; }
  .showcase-heading { font-size: .62rem; }
  .showcase-body { gap: 1.5rem; padding-block: .5rem; }
  .showcase h2 { font-size: clamp(3rem, 12vw, 4rem); }
  .showcase-lead { margin-top: 1rem; font-size: 1.06rem; }
  .showcase-description { font-size: .84rem; }
  .showcase-features { margin: 1rem 0; }
  .showcase-features li { font-size: .64rem; }
  .showcase-cta { font-size: .72rem; }
  .showcase-media { aspect-ratio: 1.45; border-radius: 1rem; }
  .showcase-media-label { min-width: 0; font-size: .58rem; }
  .showcase-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .showcase-nav a { flex: 0 0 auto; min-width: 8.5rem; min-height: 3rem; padding: .65rem .75rem; font-size: .68rem; }
  .showcase-mova,
  .showcase-luccas { background: linear-gradient(175deg, #11121d 0 72%, #f7f4f6 72.1%); }
  .showcase-abyss { background: linear-gradient(175deg, #091b22 0 72%, #edf7f5 72.1%); }
  .showcase-piu { background: linear-gradient(175deg, #fff7e8 0 72%, #244b35 72.1%); }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-media,
  .showcase-cta,
  .showcase-nav a { transition: none; }
}
