:root {
  --bg: #050816;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f8fc;
  --muted: #a7afc7;
  --accent: #6ee7f9;
  --accent-2: #8b5cf6;
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #050816 0%, #10162c 45%, #050816 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

a,
button {
  font: inherit;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
}

.orb-one {
  width: 260px;
  height: 260px;
  background: var(--accent);
  top: 8%;
  left: -60px;
}

.orb-two {
  width: 320px;
  height: 320px;
  background: var(--accent-2);
  bottom: 10%;
  right: -80px;
}

.nav,
.hero,
.section {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.nav {
  width: 100vw;
  margin-left: 0;
  padding: 0.55rem 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  pointer-events: none;
}

.nav-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
}

.brand-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem 1rem;
  margin-bottom: -0.2rem;
  min-width: 11rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.08);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 250ms ease;
  pointer-events: auto;
}

/* Mantém o hover ativo enquanto o cursor atravessa o espaço até ao menu. */
.brand-shell::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 24rem;
  max-width: 100vw;
  height: 0.45rem;
  transform: translateX(-50%);
}

.brand-trigger {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 74px;
  padding: 0;
}

.brand-trigger img,
.brand-logo-video {
  width: 100%;
  height: auto;
  display: block;
}

.nav-popover {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  display: flex;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 30;
  min-width: 16rem;
  justify-content: center;
}

.brand-shell:hover .nav-popover,
.brand-shell:focus-within .nav-popover,
.brand-shell.is-open .nav-popover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-popover a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.25rem 0.5rem;
}

.nav-popover a:hover {
  color: #0f172a;
}

.fullscreen-video {
  --video-scale: 1;
  --video-brightness: 1;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 200vh;
  background: #000;
}

.video-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(var(--video-scale));
  filter: brightness(var(--video-brightness));
  transform-origin: center center;
  will-change: transform, filter;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.video-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.video-content h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 8px 32px rgba(0, 0, 0, 0.72);
}

.video-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.2);
  text-decoration: none;
  font-weight: 700;
  opacity: var(--header-cta-opacity, 0);
  transform: translateY(var(--header-cta-shift, 1.5rem));
  pointer-events: var(--header-cta-events, none);
  transition: background 0.2s ease, color 0.2s ease;
  will-change: opacity, transform;
}

.video-cta:hover {
  color: #0f172a;
  background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .video-cta {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.hero-interaction {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-interaction.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.interaction-card {
  width: min(100%, 440px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.interaction-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.interaction-copy {
  padding: 1rem 1.1rem 1.2rem;
}

.interaction-copy h3 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.hero h1,
.section h2,
.contact-card h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.lead,
.about-card p,
.about-card li,
.project-info p,
.process-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050816;
  box-shadow: 0 10px 30px rgba(110, 231, 249, 0.18);
}

.btn.secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.hero-slider {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slider-frame {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.1) 0%, rgba(5, 8, 22, 0.7) 100%);
}

.slide-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.slide-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.slide-content h2 {
  color: #ffffff;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.25;
  max-width: 340px;
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-arrows {
  display: flex;
  gap: 0.5rem;
}

.slider-btn,
.dot {
  border: none;
  cursor: pointer;
}

.slider-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.slider-dots {
  display: flex;
  gap: 0.45rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.dot.active {
  background: var(--accent);
}

.section {
  padding: 2rem 0 2.5rem;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.project-selector-tabs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0.1rem 1rem;
  scrollbar-color: var(--accent) transparent;
}

.project-selector-tab {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.7rem 1rem;
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-selector-tab:hover,
.project-selector-tab.is-active {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-3px);
}

.project-selector-tab:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.project-selector-preview {
  display: block;
  width: 100%;
  height: 72px;
  margin-bottom: 0.45rem;
  border-radius: 10px;
}

.project-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 1rem;
  scrollbar-color: var(--accent) transparent;
}

.project-list-item {
  flex: 0 0 180px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-list-item:hover,
.project-list-item.is-active {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.project-list-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.project-list-item img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.project-list-item span {
  display: block;
  padding: 0.65rem 0.7rem;
}

.project-display {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.project-display[hidden] {
  display: none;
}

.project-display-visual {
  height: min(52vw, 430px);
  min-height: 260px;
}

.project-slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) transparent;
}

.project-slider-track {
  display: flex;
}

.project-slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem 0;
}

.project-slider-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
}

.project-slider-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-slider-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.project-slider-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.project-slide {
  flex: 0 0 100%;
  height: min(52vw, 520px);
  min-height: 280px;
  scroll-snap-align: start;
  background: #050816;
}

.project-slide img,
.project-slide video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.project-slide video {
  background: #000;
}

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

.about-card,
.process-card,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.about-card,
.process-card {
  padding: 1.25rem;
}

.about-card h3,
.process-card h3,
.project-info h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.about-card ul {
  padding-left: 1rem;
  display: grid;
  gap: 0.4rem;
}

.project-visual {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.visual-1 {
  background-image: linear-gradient(135deg, rgba(110, 231, 249, 0.75), rgba(17, 24, 39, 0.95)), url('https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&w=900&q=80');
}

.visual-2 {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(139, 92, 246, 0.7)), url('https://images.unsplash.com/photo-1519643381401-22c77e60520e?auto=format&fit=crop&w=900&q=80');
}

.visual-3 {
  background-image: linear-gradient(135deg, rgba(6, 182, 212, 0.8), rgba(59, 130, 246, 0.95)), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=900&q=80');
}

.visual-4 {
  background-image: linear-gradient(135deg, rgba(249, 115, 22, 0.8), rgba(251, 191, 36, 0.8)), url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=900&q=80');
}

.visual-5 {
  background-image: linear-gradient(135deg, rgba(236, 72, 153, 0.8), rgba(129, 140, 248, 0.8)), url('https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?auto=format&fit=crop&w=900&q=80');
}

.visual-6 {
  background-image: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(34, 211, 238, 0.8)), url('https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?auto=format&fit=crop&w=900&q=80');
}

.project-info {
  padding: 1rem 1rem 1.2rem;
}

.tag {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.contact-card {
  padding: 1.6rem;
  text-align: center;
}

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

  .hero {
    gap: 1.4rem;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 0.45rem 0;
  }

  .nav-popover {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 18px;
    padding: 0.7rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .slider-frame {
    min-height: 320px;
  }
}

/* Portfolio: navegação editorial em três níveis. */
.portfolio {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: clamp(6rem, 10vw, 9rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 7vw, 5rem);
  isolation: isolate;
  overflow: hidden;
  background: #101826;
}

.portfolio > .section-heading,
.portfolio > .project-selector {
  display: none;
}

.portfolio-background,
.portfolio-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.portfolio-background {
  z-index: -2;
  background: radial-gradient(circle at 75% 20%, #273c5c 0%, #101826 44%, #070b13 100%);
  background-position: center;
  background-size: cover;
  transition: opacity 400ms ease, transform 700ms ease;
}

.portfolio-background.is-media {
  transform: scale(1.025);
}

.portfolio-background img,
.portfolio-background video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.portfolio-shade {
  z-index: -1;
  background: none;
}

.portfolio-layout {
  width: min(1320px, 100%);
  min-height: calc(100svh - clamp(9rem, 17vw, 14rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
}

.portfolio-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: min(100%, 920px);
}

.portfolio-categories {
  position: static;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.portfolio-kicker {
  margin-bottom: 1.4rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.category-wheel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: min(100%, 880px);
  padding: 0.8rem 0 0.4rem;
  border: 0;
}

.category-wheel-item {
  position: relative;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 700;
  text-align: center;
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.category-wheel-item::before {
  display: none;
}

.category-wheel-item:hover,
.category-wheel-item.is-active {
  color: #fff;
  transform: translateY(-1px);
  background: rgba(110, 231, 249, 0.14);
  border-color: var(--accent);
}

.category-wheel-item.is-active {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.category-wheel-item:focus-visible,
.project-picker-item:focus-visible,
.media-wheel-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.portfolio-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  padding-top: 0;
}

.portfolio-intro {
  width: min(100%, 920px);
  text-align: center;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.portfolio-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4.7vw, 5.1rem);
  line-height: 1.02;
}

.portfolio-intro h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.portfolio-intro > p:last-child {
  max-width: 54ch;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.project-picker {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: min(100%, 980px);
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(5, 9, 18, 0.82);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: project-popup-in 220ms ease-out;
}

.project-picker[hidden],
.media-wheel-wrap[hidden] {
  display: none;
}

.project-picker-item {
  min-height: auto;
  padding: 0.75rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 9, 18, 0.56);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: center;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-picker-item:last-child {
  border-bottom: 0;
}

.project-picker-item:hover,
.project-picker-item.is-active {
  background: rgba(110, 231, 249, 0.16);
  box-shadow: inset 3px 0 0 var(--accent);
  transform: none;
}

.project-picker-item small {
  display: none;
}

.project-picker-item:last-child {
  border-bottom: 0;
}

.media-wheel-wrap {
  order: 3;
  min-width: 0;
  width: 100%;
  max-width: 1080px;
}

.portfolio-top,
.portfolio-content,
.portfolio-categories,
.category-wheel,
.project-picker,
.media-wheel-wrap {
  width: 100%;
}

@media (min-width: 880px) {
  .portfolio-layout {
    width: min(1180px, 100%);
  }
}

@keyframes project-popup-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.media-wheel-label {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.media-wheel {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.25rem 0.2rem 1.25rem;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--accent) transparent;
}

.media-wheel-item {
  position: relative;
  flex: 0 0 clamp(132px, 15vw, 205px);
  height: clamp(82px, 10vw, 125px);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0.75rem;
  background: #080d16;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 180ms ease, transform 180ms ease;
}

.media-wheel-item img,
.media-wheel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transition: opacity 180ms ease;
}

.media-wheel-item::after {
  content: attr(data-label);
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.4rem 0.55rem 0.45rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-size: 0.67rem;
  font-weight: 700;
  text-align: left;
}

.media-wheel-item:hover,
.media-wheel-item.is-active {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.media-wheel-item.is-active img,
.media-wheel-item.is-active video,
.media-wheel-item:hover img,
.media-wheel-item:hover video {
  opacity: 1;
}

@media (max-width: 720px) {
  .portfolio {
    padding-top: 7rem;
  }

  .portfolio-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .portfolio-categories {
    position: static;
    padding-left: 0;
  }

  .category-wheel {
    display: flex;
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 0;
  }

  .category-wheel-item {
    flex: 0 0 auto;
    padding: 1rem 0.9rem 0;
  }

  .category-wheel-item::before {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
  }

  .category-wheel-item:hover,
  .category-wheel-item.is-active {
    transform: translateY(0.2rem);
  }

  .portfolio-content {
    padding-top: 0;
  }

  .portfolio-shade {
    background: linear-gradient(180deg, rgba(4, 8, 16, 0.9), rgba(4, 8, 16, 0.48));
  }
}

.section-heading h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

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

.about-card,
.process-card {
  padding: 1.25rem;
}

.about-card h3,
.process-card h3,
.project-info h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.about-card ul {
  padding-left: 1rem;
  display: grid;
  gap: 0.4rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.filter-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(110, 231, 249, 0.12);
}

.project-visual {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.visual-1 {
  background: linear-gradient(135deg, rgba(110,231,249,0.8), rgba(17,24,39,0.95));
}

.visual-2 {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(139,92,246,0.65));
}

.visual-3 {
  background: linear-gradient(135deg, rgba(6,182,212,0.8), rgba(59,130,246,0.95));
}

.visual-4 {
  background: linear-gradient(135deg, rgba(249,115,22,0.8), rgba(251,191,36,0.8));
}

.visual-5 {
  background: linear-gradient(135deg, rgba(236,72,153,0.8), rgba(129,140,248,0.8));
}

.visual-6 {
  background: linear-gradient(135deg, rgba(16,185,129,0.8), rgba(34,211,238,0.8));
}

.project-info {
  padding: 1rem 1rem 1.2rem;
}

.tag {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.contact-card {
  padding: 1.6rem;
  text-align: center;
}

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

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .hero {
    padding-top: 0.5rem;
  }

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

  .stats {
    flex-direction: column;
  }
}

/* Ajuste de composição: título sob a wheel e projetos em popup lateral. */
.portfolio-categories .portfolio-intro {
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.portfolio-categories .portfolio-intro h2 {
  max-width: 8ch;
  font-size: clamp(1.7rem, 2.8vw, 3.25rem);
  line-height: 0.98;
}

.portfolio-categories .portfolio-intro > p:last-child {
  display: none;
}

.portfolio-content {
  padding-top: 0;
  align-content: start;
}

.portfolio-layout {
  gap: clamp(1rem, 3vw, 2.5rem);
}

.project-picker {
  width: min(245px, 100%);
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.8rem;
  background: rgba(5, 9, 18, 0.68);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.project-picker-item {
  min-height: 0;
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
  font-size: 0.82rem;
}

.project-picker-item:last-child {
  border-bottom: 0;
}

.project-picker-item:hover,
.project-picker-item.is-active {
  background: rgba(110, 231, 249, 0.16);
  transform: none;
}

@media (max-width: 720px) {
  .portfolio-categories .portfolio-intro {
    margin-top: 2rem;
  }

  .portfolio-categories .portfolio-intro h2 {
    max-width: 12ch;
  }

  .project-picker {
    width: min(320px, 100%);
  }
}

/* Variante horizontal: categorias primeiro, projetos num pop-up compacto. */
.portfolio-layout {
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1180px;
}

.portfolio-categories {
  position: static;
  padding-left: 0;
}

.portfolio-kicker {
  margin-bottom: 0.7rem;
}

.category-wheel {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 0;
  scrollbar-color: var(--accent) transparent;
}

.category-wheel-item {
  flex: 0 0 auto;
  padding: 0.8rem 1rem 0.1rem;
}

.category-wheel-item::before {
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.category-wheel-item:hover,
.category-wheel-item.is-active {
  transform: translateY(0.2rem);
}

.portfolio-content {
  gap: 1.3rem;
  padding-top: 0;
}

.project-picker {
  position: relative;
  order: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  width: fit-content;
  max-width: min(100%, 860px);
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.22);
}

.project-picker::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: clamp(1.8rem, 10%, 4rem);
  width: 0.8rem;
  height: 2rem;
  border-top: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  background: #fff;
  transform: rotate(45deg);
}

.project-picker-item {
  min-height: auto;
  padding: 0.42rem 0.6rem;
  border: 0;
  border-radius: 0.6rem;
  color: #334155;
  background: transparent;
  font-size: 0.88rem;
  white-space: nowrap;
}

.project-picker-item small {
  display: none;
}

.project-picker-item:hover,
.project-picker-item.is-active {
  color: #0f172a;
  background: #e9faff;
  transform: none;
}

.project-picker-item.is-active {
  box-shadow: inset 3px 0 0 var(--accent), 0 10px 28px rgba(0, 0, 0, 0.22);
}

.portfolio-intro {
  order: 2;
  max-width: 680px;
}

.portfolio-intro h2 {
  font-size: clamp(2rem, 4.7vw, 5.1rem);
}

.media-wheel-wrap {
  order: 3;
}

@media (max-width: 620px) {
  .project-picker {
    width: 100%;
    border-radius: 1rem;
  }

  .project-picker-item {
    white-space: normal;
    text-align: left;
  }
}

/* A roda de categorias mantém-se vertical em desktop; o seletor abre à direita. */
@media (min-width: 721px) {
  .portfolio-layout {
    grid-template-columns: minmax(155px, 0.28fr) minmax(0, 1fr);
    gap: clamp(2rem, 7vw, 8rem);
  }

  .portfolio-categories {
    position: sticky;
    top: 7rem;
    padding-left: 1.15rem;
  }

  .portfolio-kicker {
    margin-bottom: 1.4rem;
  }

  .category-wheel {
    display: grid;
    gap: 0.2rem;
    overflow: visible;
    padding: 0;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
  }

  .category-wheel-item {
    padding: 0.8rem 0 0.8rem 1.25rem;
  }

  .category-wheel-item::before {
    top: 50%;
    left: -4px;
    transform: translateY(-50%);
  }

  .category-wheel-item:hover,
  .category-wheel-item.is-active {
    transform: translateX(0.3rem);
  }
}

/* O popup de projetos é sempre uma lista vertical, separado da imagem de fundo. */
.portfolio-content {
  justify-items: start;
}

.project-picker {
  display: grid;
  grid-template-columns: 1fr;
  width: min(100%, 340px);
  max-width: 340px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.1rem;
  background: rgba(5, 9, 18, 0.82);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.project-picker::before {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(5, 9, 18, 0.82);
}

.project-picker-item {
  min-height: 5.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(5, 9, 18, 0.52);
  font-size: inherit;
  white-space: normal;
}

.project-picker-item small {
  display: block;
}

.project-picker-item:hover,
.project-picker-item.is-active {
  color: #fff;
  background: rgba(110, 231, 249, 0.16);
  transform: translateY(-3px);
}

.portfolio-intro {
  width: min(100%, 340px);
  max-width: 340px;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  background: rgba(5, 9, 18, 0.72);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.portfolio-intro h2 {
  font-size: clamp(2rem, 3.6vw, 3.7rem);
}

/* Estado final da navegação lateral. */
@media (min-width: 721px) {
  .portfolio-layout {
    gap: clamp(1rem, 3vw, 2.5rem);
  }
}

.portfolio-categories .portfolio-intro {
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.portfolio-categories .portfolio-intro h2 {
  max-width: 8ch;
  font-size: clamp(1.7rem, 2.8vw, 3.25rem);
  line-height: 0.98;
}

.portfolio-categories .portfolio-intro > p:last-child {
  display: none;
}

.project-picker {
  width: min(245px, 100%);
  max-width: 245px;
  padding: 0;
}

.project-picker-item {
  min-height: 0;
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  font-size: 0.82rem;
}

.project-picker-item:last-child {
  border-bottom: 0;
}

.project-picker-item:hover,
.project-picker-item.is-active {
  transform: none;
}

@media (max-width: 720px) {
  .portfolio-categories .portfolio-intro h2 {
    max-width: 12ch;
  }

  .project-picker {
    width: min(320px, 100%);
    max-width: 320px;
  }
}

/* Media wheel vertical, ancorada ao lado direito da secção. */
@media (min-width: 721px) {
  .portfolio .media-wheel-wrap {
    position: absolute;
    top: 50%;
    right: clamp(1rem, 3vw, 3.5rem);
    z-index: 2;
    width: clamp(130px, 13vw, 190px);
    max-width: none;
    transform: translateY(-50%);
  }

  .portfolio .media-wheel-label {
    margin-bottom: 0.65rem;
    text-align: center;
    font-size: 0.62rem;
  }

  .portfolio .media-wheel {
    flex-direction: column;
    align-items: stretch;
    max-height: 62svh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.2rem 0.45rem 0.2rem 0.15rem;
    scroll-snap-type: y proximity;
  }

  .portfolio .media-wheel-item {
    flex: 0 0 auto;
    width: 100%;
    height: clamp(82px, 9vw, 112px);
    scroll-snap-align: start;
  }
}

/* Barra de categorias encostada à esquerda e a toda a altura do portfolio. */
@media (min-width: 721px) {
  .portfolio {
    padding-left: clamp(12rem, 20vw, 18rem);
  }

  .portfolio-layout {
    width: 100%;
    max-width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .portfolio-categories {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: clamp(11rem, 17vw, 15.5rem);
    padding: clamp(7rem, 10vw, 9rem) 1.5rem 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(4, 8, 16, 0.38);
  }

  .portfolio-content {
    width: min(100%, 720px);
  }
}

/* Portfolio wheel — estrutura final. */
.portfolio {
  position: relative;
  min-height: 100svh;
  padding: clamp(6.5rem, 11vh, 9rem) clamp(1rem, 4vw, 4rem) clamp(4rem, 9vh, 7rem);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #080d15;
}

.portfolio .portfolio-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 1;
  transform: none;
  transition: opacity 280ms ease;
}

.portfolio .portfolio-background img,
.portfolio .portfolio-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portfolio .portfolio-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 7, 13, 0.56), rgba(3, 7, 13, 0.2) 48%, rgba(3, 7, 13, 0.62)),
    radial-gradient(circle at center, rgba(3, 7, 13, 0.04), rgba(3, 7, 13, 0.38));
}

.portfolio .portfolio-layout {
  position: relative;
  width: min(1120px, 100%);
  min-height: min(720px, calc(100svh - 10rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.15rem, 3vh, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  background: rgba(4, 8, 15, 0.27);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.portfolio-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-align: center;
}

@media (min-width: 701px) {
  .portfolio .portfolio-header {
    position: absolute;
    top: clamp(1.25rem, 3.5vh, 2.5rem);
    right: auto;
    left: 0;
    width: min(900px, calc(100% - 2rem));
    align-items: flex-start;
    text-align: left;
  }

  .portfolio .portfolio-header .category-wheel {
    justify-content: flex-start;
    padding-inline: 0;
  }
}

.portfolio .portfolio-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.portfolio-header h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(2.5rem, 7vw, 6.25rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.portfolio .horizontal-wheel {
  width: min(100%, 920px);
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: safe center;
  gap: clamp(0.45rem, 1.2vw, 0.8rem);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.45rem max(1rem, calc((100% - 720px) / 2)) 0.85rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}

.portfolio .horizontal-wheel::-webkit-scrollbar {
  display: none;
}

.portfolio .category-wheel-item,
.portfolio .project-picker-item {
  flex: 0 0 auto;
  min-height: auto;
  width: auto;
  padding: 0.72rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(4, 8, 15, 0.34);
  box-shadow: none;
  font: inherit;
  font-size: clamp(0.82rem, 1.25vw, 0.96rem);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: center;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.portfolio .category-wheel-item:hover,
.portfolio .category-wheel-item.is-active,
.portfolio .project-picker-item:hover,
.portfolio .project-picker-item.is-active {
  color: #061018;
  border-color: #fff;
  background: #fff;
  box-shadow: none;
  transform: translateY(-2px);
}

.portfolio .project-picker {
  position: static;
  width: min(100%, 1040px);
  max-width: 100%;
  padding-inline: max(1rem, calc((100% - 880px) / 2));
  animation: none;
}

.portfolio .project-picker::before {
  display: none;
}

.portfolio-project-copy {
  min-height: 4.5rem;
  max-width: 620px;
  text-align: center;
}

.portfolio-project-copy #project-title-new {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.portfolio-project-copy #project-description-new {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.portfolio .media-dots {
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.portfolio .media-dot {
  width: 0.62rem;
  height: 0.62rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.portfolio .media-dot:hover,
.portfolio .media-dot.is-active {
  background: #fff;
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.portfolio .media-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

@media (max-width: 700px) {
  .portfolio {
    padding: 5.75rem 0.7rem 2rem;
  }

  .portfolio .portfolio-layout {
    min-height: calc(100svh - 7.75rem);
    padding: 1.5rem 0.35rem;
    border-radius: 1rem;
  }

  .portfolio .horizontal-wheel {
    justify-content: safe center;
    padding-inline: calc(50% - 4.25rem);
  }

  .portfolio-header h2 {
    font-size: clamp(2.6rem, 15vw, 4.5rem);
  }

  .portfolio-project-copy {
    padding-inline: 1rem;
  }
}

/* Composição final sem caixa/contentor visual. */
.portfolio {
  padding: clamp(5.5rem, 9vh, 7rem) clamp(1rem, 4vw, 4rem) clamp(1.25rem, 3vh, 2.25rem);
  place-items: stretch;
}

.portfolio .portfolio-layout {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: calc(100svh - clamp(7rem, 12vh, 9.25rem));
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.portfolio .portfolio-kicker {
  display: none;
}

@media (min-width: 701px) {
  .portfolio .portfolio-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto;
    column-gap: clamp(2rem, 7vw, 8rem);
    row-gap: 1rem;
    align-items: end;
  }

  .portfolio .portfolio-header {
    position: absolute;
    top: -1rem;
    right: auto;
    left: 0;
    width: min(920px, 76vw);
    align-items: flex-start;
    text-align: left;
  }

  .portfolio .portfolio-header .category-wheel {
    justify-content: flex-start;
    padding-inline: 0;
  }

  .portfolio .project-picker {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: 100%;
    max-width: none;
    padding-inline: 0;
    justify-content: flex-start;
  }

  .portfolio .portfolio-project-copy {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    width: 100%;
    max-width: 620px;
    text-align: right;
  }

  .portfolio .media-navigation {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
  }
}

@media (max-width: 700px) {
  .portfolio .portfolio-layout {
    min-height: calc(100svh - 7rem);
    padding: 0;
    border-radius: 0;
    justify-content: flex-end;
  }

  .portfolio .portfolio-header {
    position: absolute;
    top: -0.5rem;
    left: 0;
  }
}

/* Navegação editorial e transições de media. */
.portfolio .portfolio-shade {
  background: transparent;
  pointer-events: none;
}

.portfolio .portfolio-background-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 600ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio .portfolio-background-media.is-visible {
  opacity: 1;
  transform: scale(1);
}

.portfolio .portfolio-background-media.is-leaving {
  opacity: 0;
}

.portfolio-header h2 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
}

.portfolio .project-picker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.6rem 0.25rem 0.75rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  font-weight: 500;
}

.portfolio .project-picker-item:hover,
.portfolio .project-picker-item.is-active {
  color: #fff;
  border-color: #fff;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.project-picker-number {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.project-picker-item.is-active .project-picker-number {
  color: var(--accent);
}

.portfolio-project-copy.is-changing {
  animation: portfolio-copy-in 420ms ease both;
}

@keyframes portfolio-copy-in {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio .media-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.portfolio .media-counter {
  margin: 0;
  min-width: 3.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.13em;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio .portfolio-background-media,
  .portfolio-project-copy.is-changing {
    animation: none;
    transition: none;
  }
}

/* Portfolio inicial: wheel abstrata de linhas verticais. */
.portfolio:not(.has-project-selection) .portfolio-background {
  opacity: 0.38;
  background: #05080d url('assets/modulo-tease-project.jpg') center / cover no-repeat;
  filter: blur(3px) saturate(0.72);
  transform: scale(1.025);
}

.portfolio:not(.has-category-selection) .portfolio-shade {
  background:
    radial-gradient(circle at 50% 52%, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.72) 62%, rgba(0, 0, 0, 0.9)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.72));
}

.portfolio:not(.has-category-selection) .portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
}

.portfolio:not(.has-category-selection) .portfolio-header {
  position: static;
  inset: auto;
  width: min(1120px, 92vw);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(13rem, 0.8fr) minmax(18rem, 1.2fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: clamp(0.75rem, 2vh, 1.5rem);
  align-self: center;
  justify-self: center;
  grid-column: 1;
  grid-row: 1;
}

.portfolio:not(.has-category-selection) .project-picker,
.portfolio:not(.has-category-selection) .portfolio-project-copy,
.portfolio:not(.has-category-selection) .media-navigation {
  display: none;
}

.portfolio:not(.has-category-selection) .portfolio-default-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 8ch;
  justify-self: start;
  text-align: left;
}

.portfolio:not(.has-category-selection) .portfolio-header h2 {
  max-width: none;
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3.6vw, 3.25rem);
  letter-spacing: -0.04em;
  text-align: left;
}

.portfolio-default-copy > p {
  margin: 0;
  min-width: 18rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  line-height: 1.6;
}

.portfolio-default-copy .portfolio-interaction-hint {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-interaction-hint span {
  margin-right: 0.45rem;
  color: var(--accent);
  font-size: 1rem;
}

.portfolio:not(.has-category-selection) .portfolio-header .category-wheel {
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 46rem);
  min-height: 22rem;
  margin: 0 auto;
  padding: 2rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  overflow: visible;
}

.portfolio:not(.has-category-selection) .category-wheel-item {
  margin-inline: auto;
}

.portfolio-back {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: none;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.portfolio.has-category-selection .portfolio-back {
  display: block;
}

.portfolio-back:hover,
.portfolio-back:focus-visible {
  color: #fff;
  border-color: var(--accent);
}

.portfolio.has-category-selection .portfolio-default-copy > p {
  display: none;
}

/* Categorias sempre acessíveis depois de entrar no portfolio. */
.portfolio.has-category-selection .portfolio-header .category-wheel {
  width: auto;
  max-width: min(100%, 48rem);
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.55rem;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.portfolio.has-category-selection .category-wheel-item {
  min-height: 2.65rem;
  padding: 0.72rem 1.05rem;
  touch-action: manipulation;
}

.portfolio:not(.has-category-selection) .category-wheel-item {
  position: relative;
  width: clamp(5.5rem, 10vw, 7.5rem);
  height: 2rem;
  min-width: 0;
  min-height: 2rem;
  flex: 0 0 2rem;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 999px;
  color: transparent;
  background: linear-gradient(180deg, #cfd3d7 0%, #fff 42%, #fff 58%, #c5c9ce 100%);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 0.45rem 1.4rem rgba(255, 255, 255, 0.12), inset 0.1rem 0 0.16rem rgba(255, 255, 255, 0.7);
  writing-mode: horizontal-tb;
  transform: none;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1), flex-basis 420ms cubic-bezier(0.22, 1, 0.36, 1), height 520ms cubic-bezier(0.22, 1, 0.36, 1), color 240ms ease, background 240ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .portfolio:not(.has-category-selection) .category-wheel-item:hover {
    width: clamp(13rem, 24vw, 17rem);
    flex-basis: 2.6rem;
    height: 2.6rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(0.75rem);
  }

  .portfolio:not(.has-category-selection) .category-wheel-item:has(+ .category-wheel-item:hover),
  .portfolio:not(.has-category-selection) .category-wheel-item:hover + .category-wheel-item {
    width: clamp(9rem, 17vw, 12rem);
  }

  .portfolio:not(.has-category-selection) .category-wheel-item:has(+ .category-wheel-item + .category-wheel-item:hover),
  .portfolio:not(.has-category-selection) .category-wheel-item:hover + .category-wheel-item + .category-wheel-item {
    width: clamp(7rem, 13vw, 9rem);
  }

  .portfolio:not(.has-category-selection) .category-wheel-item:hover::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    width: auto;
    height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
  }
}

.portfolio:not(.has-category-selection) .category-wheel-item:focus-visible {
  width: clamp(13rem, 24vw, 17rem);
  flex-basis: 2.6rem;
  height: 2.6rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: 1px solid var(--accent);
  outline-offset: 0.4rem;
}

.portfolio:not(.has-project-selection) .media-navigation {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 700px) {
  .portfolio:not(.has-category-selection) .portfolio-header {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .portfolio:not(.has-category-selection) .portfolio-header h2 {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    text-align: center;
    justify-self: center;
  }

  .portfolio:not(.has-category-selection) .portfolio-default-copy {
    max-width: none;
    justify-self: center;
    text-align: center;
  }

  .portfolio-default-copy > p {
    min-width: 0;
    text-align: center;
  }

  .portfolio-back {
    top: auto;
    right: 0.5rem;
    bottom: 0;
  }

  .portfolio:not(.has-category-selection) .portfolio-header .category-wheel {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    justify-content: center;
    padding-inline: 1.25rem;
  }

  .portfolio.has-category-selection .portfolio-header .category-wheel {
    width: 100%;
    max-width: none;
    justify-content: center;
    padding-inline: 0.5rem;
  }

  .portfolio.has-category-selection .category-wheel-item {
    padding-inline: 0.8rem;
    font-size: 0.76rem;
  }
}

/* About — composição editorial assimétrica. */
.about {
  --section-transition: 0;
  --about-clip: 15vh;
  --about-radius: 8vw;
  --about-shift: 12vh;
  --about-content-shift: 3rem;
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: -16vh 0 0;
  min-height: 100svh;
  padding: clamp(6.5rem, 12vh, 9rem) 1rem clamp(3rem, 7vh, 5rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  clip-path: inset(var(--about-clip) 0 0 0 round var(--about-radius) var(--about-radius) 0 0);
  transform: translateY(var(--about-shift));
  will-change: clip-path, transform;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about::before {
  z-index: -2;
  background: #020203 url('assets/modulo-tease-project.jpg') center center / cover no-repeat;
}

.about-layout {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  column-gap: clamp(2.5rem, 7vw, 7.5rem);
  row-gap: clamp(2.5rem, 7vh, 5rem);
  align-items: center;
  opacity: var(--section-transition);
  transform: translateY(var(--about-content-shift));
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .video-stage video,
  .about,
  .about-layout {
    transform: none;
    filter: none;
    clip-path: none;
    opacity: 1;
  }
}

.about-copy {
  grid-column: 1;
  max-width: 690px;
  margin: 0 auto;
  text-align: center;
}

.about-reveal-item {
  opacity: 0;
  transform: translateY(2.25rem);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--about-reveal-delay, 0ms);
  will-change: opacity, transform;
}

.about.is-text-visible .about-reveal-item {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .about-reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.about-index {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: clamp(2rem, 6vh, 4.5rem);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  justify-content: center;
}

.about-index::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.about-index span {
  color: var(--muted);
}

.about .about-copy h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-inline: auto;
}

.about-lead {
  max-width: 53ch;
  margin-top: clamp(1.75rem, 4vh, 3rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.7;
  margin-inline: auto;
}

.about-context {
  max-width: 58ch;
  margin-top: 1rem;
  color: rgba(167, 175, 199, 0.78);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.7;
  margin-inline: auto;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.about-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.about-project-status {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  gap: 0.45rem;
  margin: 0;
  color: #ef3f32;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.about-project-status span {
  color: rgba(255, 255, 255, 0.68);
}

.about-project-status .about-project-tools {
  color: rgba(255, 255, 255, 0.46);
  font-weight: 600;
  letter-spacing: 0.11em;
}

.about-project-status .about-project-type {
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.13em;
}

.about-disciplines {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-disciplines p {
  padding: 1.15rem 0;
  color: var(--muted);
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-disciplines p:not(:first-child) {
  padding-left: clamp(1rem, 3vw, 3rem);
  border-left: 1px solid var(--border);
}

@media (max-width: 900px) {
  .about {
    min-height: auto;
  }

  .about-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2.5rem;
  }

  .about::before {
    background-position: 58% center;
  }

  .about .about-copy h2 {
    max-width: 15ch;
  }

  .about-project-status {
    position: static;
    justify-self: center;
    text-align: center;
  }

  .about-disciplines {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .about {
    width: 100%;
    padding-top: 6rem;
  }

  .about-index {
    margin-bottom: 1.75rem;
  }

  .about .about-copy h2 {
    font-size: clamp(2.55rem, 12vw, 3.7rem);
  }

  .about-disciplines {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-disciplines p {
    padding: 1rem;
  }

  .about-disciplines p:not(:first-child) {
    padding-left: 1rem;
  }

  .about-disciplines p:nth-child(3) {
    border-left: 0;
  }

  .about-disciplines p:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

/* Contact — encerramento editorial. */
.contact {
  width: 100%;
  max-width: none;
  min-height: 82svh;
  margin: 0;
  padding: clamp(6rem, 12vh, 9rem) 1rem clamp(2rem, 5vh, 3.5rem);
  display: flex;
  align-items: stretch;
  color: #f5f4f0;
  background: #020203;
}

.contact-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(3rem, 9vw, 9rem);
  row-gap: clamp(4rem, 10vh, 7rem);
  align-items: center;
}

.contact-index {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: clamp(2rem, 7vh, 5rem);
  color: #d6362c;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.contact-index::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.contact-index span {
  color: rgba(255, 255, 255, 0.42);
}

.contact .contact-heading h2 {
  max-width: 11ch;
  margin: 0;
  color: #f5f4f0;
  font-size: clamp(3.1rem, 7vw, 7.2rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.contact .contact-heading h2.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.055em;
  height: 0.82em;
  margin-left: 0.08em;
  background: currentColor;
  animation: contact-cursor 700ms steps(1) infinite;
}

@keyframes contact-cursor {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .contact .contact-heading h2.is-typing::after {
    display: none;
    animation: none;
  }
}

.contact-intro {
  align-self: end;
}

.contact-intro > p {
  max-width: 46ch;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.contact-form,
.contact-form label {
  display: grid;
  gap: 0.55rem;
}

.contact-form {
  gap: 1.15rem;
}

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

.contact-form label > span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  outline: 0;
  padding: 0.7rem 0;
  color: #f5f4f0;
  background: transparent;
  resize: vertical;
  transition: border-color 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #d6362c;
}

.contact-form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-form-submit button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  color: #f5f4f0;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.contact-form-submit button:hover {
  color: #ef4b40;
  border-color: #ef4b40;
}

.contact-form-submit button:disabled {
  cursor: wait;
  opacity: 0.45;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-status {
  min-height: 1.4em;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
}

.contact-form-status.is-success {
  color: #7ee2a8;
}

.contact-form-status.is-error {
  color: #ff7d73;
}

.contact-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-footer a {
  color: #f5f4f0;
  text-decoration: none;
}

.contact-footer .site-build-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

@media (max-width: 800px) {
  .contact {
    min-height: 100svh;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-content: center;
  }

  .contact .contact-heading h2 {
    max-width: 12ch;
  }

  .contact-footer {
    grid-column: 1;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .contact-layout {
    row-gap: 3rem;
  }

  .contact .contact-heading h2 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .contact-footer {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .g-recaptcha {
    max-width: 100%;
    transform: scale(0.88);
    transform-origin: left center;
  }
}

/* Refinamento final: maior clareza sem perder a linguagem cinematográfica. */
.fullscreen-video {
  height: 165vh;
}

.video-content {
  gap: 1.1rem;
}

.video-eyebrow,
.video-subtitle {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

.video-eyebrow {
  margin-bottom: 0.25rem;
  font-size: clamp(0.62rem, 1vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.video-subtitle {
  max-width: 44ch;
  font-size: clamp(0.88rem, 1.25vw, 1.05rem);
  line-height: 1.55;
  opacity: var(--header-subtitle-opacity, 0);
  transform: translateY(var(--header-subtitle-shift, 0.8rem));
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .video-subtitle {
    opacity: 1;
    transform: none;
  }
}

.brand-shell {
  min-width: 0;
  padding: 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand-trigger {
  width: 117px;
}

.brand-trigger img,
.brand-logo-video {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.62));
  transition: opacity 180ms ease, transform 180ms ease;
}

.brand-trigger:hover img,
.brand-trigger:focus-visible img,
.brand-trigger:hover .brand-logo-video,
.brand-trigger:focus-visible .brand-logo-video {
  opacity: 0.72;
  transform: scale(0.96);
}

.brand-logo-video {
  pointer-events: none;
}

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

.nav-popover {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 0.85rem;
  color: #fff;
  background: rgba(4, 8, 15, 0.88);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-popover a,
.nav-popover a:hover {
  color: #fff;
}

.nav-popover a:hover {
  opacity: 0.7;
}

/* Os controlos abstratos continuam a funcionar como linhas, mas já são legíveis. */
.portfolio:not(.has-category-selection) .category-wheel-item {
  width: clamp(13rem, 23vw, 17rem);
  height: 2.6rem;
  flex-basis: 2.6rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

@media (hover: hover) and (pointer: fine) {
  .portfolio:not(.has-category-selection) .category-wheel-item:hover {
    width: clamp(14rem, 25vw, 18rem);
    color: #061018;
    background: #fff;
  }

  .portfolio:not(.has-category-selection) .category-wheel-item:hover::before {
    display: none;
  }
}

.portfolio-project-copy #project-description-new {
  color: rgba(255, 255, 255, 0.82);
}

/* Protege a interface quando os projetos usam imagens muito claras. */
.portfolio.has-project-selection .portfolio-shade {
  background: linear-gradient(
    180deg,
    rgba(2, 5, 10, 0.78) 0%,
    rgba(2, 5, 10, 0.38) 16%,
    transparent 36%,
    transparent 64%,
    rgba(2, 5, 10, 0.42) 84%,
    rgba(2, 5, 10, 0.82) 100%
  );
}

.project-facts {
  margin: 1.15rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.project-facts[hidden] {
  display: none;
}

.project-facts > div {
  padding-top: 0.75rem;
}

.project-facts dt {
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  line-height: 1.45;
}

@media (min-width: 701px) {
  .portfolio .portfolio-project-copy {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  .fullscreen-video {
    height: 145vh;
  }

  .video-content h1 {
    font-size: clamp(2.35rem, 12vw, 4.5rem);
  }

  .video-subtitle {
    max-width: 32ch;
  }

  .portfolio:not(.has-category-selection) .portfolio-header .category-wheel {
    gap: 0.85rem;
  }

  .portfolio:not(.has-category-selection) .category-wheel-item {
    width: min(17rem, 78vw);
  }

  .project-facts {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .portfolio .portfolio-project-copy {
    text-align: left;
  }
}
