/* =========================================================
   Gustavo Nascimento — Portfólio audiovisual · v0.5
   Paleta em tons de azul, preto azulado com textura granulada
   ========================================================= */

:root {
  /* Claros */
  --paper: #eef1f4;          /* branco frio */
  --paper-raised: #f7f9fb;   /* painéis claros */
  --sky: #d3dfeb;            /* azul névoa */
  /* Escuros (preto menos preto) */
  --ink: #141b24;            /* texto principal no claro */
  --night: #161e29;          /* fundo escuro */
  --night-raised: #1e2936;
  /* Azuis */
  --mist: #aebfd2;           /* azul acinzentado claro: texto secundário no escuro */
  --steel: #36547a;          /* azul médio: texto secundário no claro */
  --blue: #6f95c2;           /* acento */
  --deep: #22344b;

  --line: rgba(20, 27, 36, 0.14);
  --light-line: rgba(174, 191, 210, 0.22);
  --white: #f4f7fa;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");

  --shell: 1440px;
  --gutter: clamp(1.1rem, 4vw, 4.5rem);
  --section-space: clamp(5.5rem, 10vw, 9.5rem);
  --radius: clamp(1rem, 1.8vw, 1.7rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

figure {
  margin: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--deep);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell));
  margin-inline: auto;
}

.section {
  margin-top: var(--section-space);
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -6rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: var(--white);
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Superfícies escuras com ruído ---------- */

.tone-dark {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 88% 0%, rgba(58, 86, 122, 0.42) 0%, transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(34, 52, 75, 0.55) 0%, transparent 65%),
    var(--night);
  color: var(--white);
}

.tone-dark::before,
.player::after,
.shelf-media::after,
.media-tile.is-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  opacity: 0.22;
}

.tone-dark::before {
  z-index: -1;
}

.tone-dark :focus-visible {
  outline-color: var(--mist);
}

.tone-dark .section-label {
  color: var(--mist);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 30;
  background: var(--paper);
}

.header-inner {
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-inner-centered {
  justify-content: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.3rem);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav a,
.back-link {
  position: relative;
}

.back-link {
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a::after,
.back-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.back-link:hover::after,
.back-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Tipografia compartilhada ---------- */

.section-label {
  margin: 0;
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.text-link {
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--blue);
}

/* ---------- Abertura ---------- */

.hero {
  padding-top: clamp(3.5rem, 7vw, 7rem);
}

.hero-type {
  display: grid;
  justify-items: center;
  gap: clamp(0.55rem, 1.2vw, 1rem);
  margin-bottom: clamp(2.4rem, 5vw, 4.4rem);
  text-align: center;
}

.hero-type p {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.hero-type .hero-kicker {
  color: var(--steel);
  font-size: clamp(1.35rem, 2.8vw, 2.55rem);
  font-weight: 700;
}

.hero-type .hero-subline {
  color: var(--steel);
  font-size: clamp(1.1rem, 2vw, 1.72rem);
}

.hero-type h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6.8vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 0.96;
  white-space: nowrap;
}

/* ---------- Player ---------- */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 70% 35%, rgba(111, 149, 194, 0.4), transparent 32%),
    linear-gradient(140deg, #121922, #22344b 70%, #4d6d93);
  color: var(--white);
  isolation: isolate;
}

.player.is-playing::after {
  display: none;
}

.player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.player-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease), filter 400ms ease;
}

.player-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 20, 28, 0.05) 40%, rgba(14, 20, 28, 0.55));
}

.player-poster:hover img,
.player-poster:focus-visible img {
  transform: scale(1.015);
}

.player-ui,
.player-empty {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.player-ui .play-symbol {
  width: clamp(3.6rem, 6vw, 5rem);
  background: rgba(14, 20, 28, 0.32);
  backdrop-filter: blur(8px);
}

.play-symbol,
.tile-play,
.shelf-play {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.2rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.play-symbol::before,
.tile-play::before,
.shelf-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.18rem;
  border-top: 0.34rem solid transparent;
  border-bottom: 0.34rem solid transparent;
  border-left: 0.52rem solid currentColor;
}

/* ---------- Apresentação ---------- */

.intro {
  display: grid;
  grid-template-columns: minmax(8rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.intro-copy {
  max-width: 61rem;
  margin-left: auto;
}

.intro-copy p {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.14;
}

/* ---------- Títulos de seção ---------- */

.work-heading,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.4rem, 2.6vw, 2.4rem);
}

.work-heading h2,
.section-heading h2,
.contact-grid h2,
.project-hero h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 0.94;
}

.work-heading h2,
.section-heading h2 {
  font-size: clamp(3rem, 7vw, 7.2rem);
}

/* ---------- Trabalhos ---------- */

.work-section {
  overflow: hidden;
}

.work-tabs-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-tabs {
  display: flex;
  gap: 0.5rem;
  padding-block: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.work-tabs::-webkit-scrollbar {
  display: none;
}

.work-tab {
  flex: 0 0 auto;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.work-tab:hover,
.work-tab:focus-visible {
  border-color: var(--steel);
  color: var(--steel);
}

.work-tab.is-active {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--white);
}

.shelf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(1.4rem, 2.6vw, 2.2rem);
}

.shelf-count {
  margin: 0;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 600;
}

.shelf-controls,
.rail-controls {
  display: flex;
  gap: 0.55rem;
}

.shelf-controls button,
.rail-controls button {
  width: 2.9rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.shelf-controls button:hover,
.shelf-controls button:focus-visible {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--white);
}

.rail-controls button {
  border-color: var(--light-line);
}

.rail-controls button:hover,
.rail-controls button:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--night);
}

.work-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(20rem, 31vw);
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--shell)) / 2));
  padding: 0.9rem max(var(--gutter), calc((100vw - var(--shell)) / 2)) 1.3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}

.work-shelf.is-square {
  grid-auto-columns: minmax(16rem, 22vw);
}

.shelf-card {
  min-width: 0;
  scroll-snap-align: start;
}

.shelf-card a,
.shelf-card figure {
  display: block;
}

.shelf-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  isolation: isolate;
  transition: transform 420ms var(--ease);
}

.shelf-media.is-square {
  aspect-ratio: 1;
}

.shelf-media img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelf-media.has-image::after {
  display: none;
}

.shelf-media.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 20, 28, 0.35));
}

.shelf-card a:hover .shelf-media,
.shelf-card a:focus-visible .shelf-media {
  transform: translateY(-0.35rem);
}

.tone-a { background: linear-gradient(135deg, #131a23, #2a3c53 58%, #7e9cbf); }
.tone-b { background: linear-gradient(150deg, #22344b, #4b6a90 55%, #b7c8db); }
.tone-c { background: linear-gradient(135deg, #182029, #33475f 60%, #5f7f9f); }
.tone-d { background: linear-gradient(145deg, #2d4462, #6f95c2 60%, #c9d7e6); }
.tone-e { background: linear-gradient(135deg, #10161e, #263446 55%, #4e6684); }
.tone-f { background: linear-gradient(150deg, #1d2b3c, #3e5c80 55%, #93afcd); }

.shelf-media-name {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.shelf-badge {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  left: 0.95rem;
  padding: 0.3rem 0.62rem;
  border: 1px solid currentColor;
  border-radius: 100vmax;
  background: rgba(14, 20, 28, 0.18);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.shelf-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 3.2rem;
  background: rgba(14, 20, 28, 0.25);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
  transition: background-color 200ms ease;
}

.shelf-card a:hover .shelf-play,
.shelf-card a:focus-visible .shelf-play {
  background: rgba(111, 149, 194, 0.55);
}

.shelf-media.is-loading,
.media-tile.is-loading {
  background: var(--sky);
  animation: pulse 1.6s ease-in-out infinite;
}

.skeleton-line {
  display: block;
  width: 55%;
  height: 0.9rem;
  border-radius: 0.3rem;
  background: var(--sky);
}

@keyframes pulse {
  50% { opacity: 0.55; }
}

.shelf-caption {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.85rem;
}

.shelf-caption h3,
.shelf-caption p {
  margin: 0;
}

.shelf-caption h3 {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.shelf-caption p {
  color: var(--steel);
  font-size: 0.88rem;
  font-weight: 600;
}

.shelf-media:not(.has-image) .shelf-play,
.shelf-media.thumb-failed .shelf-play {
  display: none;
}

.shelf-media.has-image:not(.thumb-failed) .shelf-media-name {
  display: none;
}

.shelf-media.has-image.thumb-failed::after {
  display: block;
}

.media-tile.thumb-failed,
.player-poster.thumb-failed {
  background: linear-gradient(140deg, #22344b, #4b6a90 60%, #a9bed6);
}

.audio-cover.thumb-failed {
  background: linear-gradient(140deg, #22344b, #4b6a90 60%, #a9bed6);
}

.player:has(.player-poster)::after {
  display: none;
}

/* ---------- Mídia em destaque ---------- */

.media-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--night-raised);
  color: var(--white);
  isolation: isolate;
}

.media-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

a.media-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 50%, rgba(14, 20, 28, 0.6));
}

a.media-tile:hover img,
a.media-tile:focus-visible img {
  transform: scale(1.025);
}

.media-tile.is-empty {
  background: linear-gradient(140deg, #22344b, #4b6a90 60%, #a9bed6);
}

.tile-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(3rem, 4.5vw, 4.4rem);
  background: rgba(14, 20, 28, 0.25);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
}

.tile-caption {
  position: absolute;
  left: 1.05rem;
  right: 1.05rem;
  bottom: 0.95rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.featured {
  padding-block: clamp(3.5rem, 6.5vw, 6.5rem);
}

.featured h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.9vw, 5.3rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 0.94;
}

.featured p:not(.section-label) {
  margin: 0;
  font-size: clamp(1.06rem, 1.3vw, 1.24rem);
  line-height: 1.6;
}

/* Manifesto (escuro) */

.project-spread {
  display: grid;
  grid-template-columns: minmax(16rem, 0.36fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.spread-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.3rem;
}

.spread-copy h2 {
  max-width: 8ch;
}

.featured-dark .spread-copy p:not(.section-label) {
  max-width: 28rem;
  color: var(--mist);
}

.spread-copy .text-link {
  margin-top: 0.6rem;
}

.manifesto-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.manifesto-main {
  grid-column: 1 / -1;
}

/* Raxaria (claro, horizontal) */

.featured-light {
  background: var(--paper);
}

.raxaria-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.62fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(1.8rem, 3.5vw, 3rem);
}

.raxaria-head .section-label {
  margin-bottom: 1.1rem;
}

.raxaria-intro {
  display: grid;
  justify-items: start;
  gap: 1.2rem;
  padding-top: 0.2rem;
}

.raxaria-intro p {
  max-width: 34rem;
}

.episode-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.85rem;
}

.episode-gallery .episode-main {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 100%;
}

.episode-gallery .episode-main .tile-caption {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.episode-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.episode-strip:empty {
  display: none;
}

/* ---------- Empresas (escuro) ---------- */

.company-section {
  overflow: hidden;
  padding-block: clamp(4rem, 7vw, 7rem);
}

.company-heading {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--light-line);
}

.company-rail {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--shell)) / 2));
  padding: 0.6rem max(var(--gutter), calc((100vw - var(--shell)) / 2)) 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--mist) transparent;
}

.company-card {
  position: relative;
  min-height: clamp(23rem, 40vw, 36rem);
  flex: 0 0 min(46rem, 54vw);
  padding: clamp(1.3rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  border-radius: var(--radius);
  scroll-snap-align: start;
  isolation: isolate;
  background: var(--deep);
  color: var(--white);
}

.company-two {
  flex-basis: min(38rem, 46vw);
}

.company-three {
  flex-basis: min(30rem, 38vw);
  background:
    radial-gradient(circle at 75% 70%, rgba(111, 149, 194, 0.55), transparent 40%),
    linear-gradient(150deg, #dde7f1, #b5c7da);
  color: var(--ink);
}

.company-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.company-card:has(.company-bg)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 20, 28, 0.72) 0%, rgba(14, 20, 28, 0.15) 45%, rgba(14, 20, 28, 0.6) 100%);
}

.company-card:hover .company-bg,
.company-card:focus-visible .company-bg {
  transform: scale(1.03);
}

.company-name {
  max-width: 11ch;
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.98;
}

.company-action {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.company-action .tile-play {
  position: static;
  width: 2.8rem;
  transform: none;
}

/* ---------- Sobre (claro) ---------- */

.about-section {
  padding-block: clamp(5rem, 9vw, 8rem);
  background: var(--paper);
}

.about-card {
  padding: clamp(1.5rem, 4vw, 4rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.2rem, 2.4vw, 2.4rem);
  background: var(--paper-raised);
}

.about-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.7fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.about-copy h2 {
  margin: 0 0 clamp(1.6rem, 3vw, 2.8rem);
  font-size: clamp(3.4rem, 7.5vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 0.92;
}

.about-copy p {
  max-width: 43rem;
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.6;
}

.about-copy p + p {
  margin-top: 1.2rem;
}

.profile-photo {
  position: relative;
  min-height: clamp(24rem, 40vw, 36rem);
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 33%, #6f95c2 0 12%, transparent 12.5%),
    radial-gradient(ellipse at 50% 88%, #22344b 0 35%, transparent 35.5%),
    linear-gradient(145deg, #dbe4ee, #aebfd2);
}

.profile-photo span {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.about-resume {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 7rem);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.resume-column h3 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.6rem, 2.7vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.006em;
}

.resume-entry {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.2rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.resume-entry p,
.resume-entry div,
.resume-tags {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.resume-entry p {
  color: var(--steel);
  font-weight: 600;
}

.resume-entry div {
  display: grid;
  gap: 0.18rem;
}

.resume-entry strong {
  font-weight: 700;
}

.resume-tags {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.resume-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Contato e rodapé (escuro) ---------- */

.contact-section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.34fr);
  gap: 3rem;
  align-items: start;
}

.contact-grid .section-label {
  margin-bottom: 1.2rem;
}

.contact-grid h2 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 8vw, 8.2rem);
}

.contact-links {
  display: grid;
  gap: 0.9rem;
  padding-top: 2.4rem;
  color: var(--mist);
  font-size: 1.1rem;
  font-weight: 600;
}

.site-footer.tone-dark::before {
  opacity: 0.18;
}

.footer-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--light-line);
  color: var(--mist);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ---------- Página individual ---------- */

.project-main {
  padding-top: clamp(3rem, 6vw, 5.5rem);
}

.project-hero {
  padding-bottom: clamp(2rem, 4vw, 3.2rem);
}

.project-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.8rem, 7vw, 7rem);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
}

.project-meta div {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.project-meta dt {
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.project-meta dd {
  margin: 0.5rem 0 0;
  font-size: 1.06rem;
  font-weight: 600;
}

.project-external {
  margin: 1.2rem 0 0;
}

.project-media.is-audio {
  display: grid;
  grid-template-columns: minmax(14rem, 26rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}

.audio-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sky);
}

.audio-embed {
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: var(--radius);
}

.project-media.is-audio .project-external {
  grid-column: 2;
  margin-top: 0;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.section-marker {
  margin: 0;
  color: var(--steel);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.project-details article p {
  margin: 1rem 0 0;
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.6;
}

.company-works {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
}

.company-works h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.company-works-list {
  border-top: 1px solid var(--line);
}

.company-works-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  transition: color 180ms ease, padding 260ms var(--ease);
}

.company-works-list a:hover,
.company-works-list a:focus-visible {
  padding-left: 0.6rem;
  color: var(--steel);
}

.project-pagination {
  margin-top: clamp(4rem, 8vw, 7rem);
  margin-bottom: clamp(5rem, 10vw, 9rem);
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  font-weight: 600;
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .work-shelf {
    grid-auto-columns: minmax(19rem, 64vw);
  }

  .work-shelf.is-square {
    grid-auto-columns: minmax(15rem, 40vw);
  }

  .company-card {
    flex-basis: 65vw;
  }

  .company-two {
    flex-basis: 56vw;
  }

  .company-three {
    flex-basis: 48vw;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .project-spread {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .spread-copy h2 {
    max-width: none;
  }

  .raxaria-head {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .about-profile {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.72fr);
    gap: 2.5rem;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }

  .menu-toggle-lines {
    position: relative;
    width: 1.25rem;
    height: 1px;
    background: currentColor;
    transition: transform 200ms ease;
  }

  .menu-toggle-lines::before {
    content: "";
    position: absolute;
    left: 0;
    top: -0.38rem;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: top 200ms ease, transform 200ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
    top: 0;
    transform: rotate(90deg);
  }

  .site-nav {
    position: fixed;
    inset: 4.6rem 0 auto;
    min-height: calc(100vh - 4.6rem);
    padding: 2.2rem var(--gutter);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: var(--paper);
    font-size: 1.7rem;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 420ms var(--ease), visibility 420ms;
  }

  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

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

  .episode-gallery .episode-main {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

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

  .episode-gallery .media-tile:not(.episode-main) .tile-play,
  .episode-strip .tile-play,
  .manifesto-gallery .media-tile:not(.manifesto-main) .tile-play {
    display: none;
  }

  .about-profile {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    min-height: 30rem;
  }

  .project-details {
    grid-template-columns: 1fr;
  }

  .project-media.is-audio {
    grid-template-columns: 1fr;
  }

  .project-media.is-audio .project-external {
    grid-column: 1;
  }

  .audio-cover {
    max-width: 22rem;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 1rem;
    --section-space: 5rem;
    --radius: 1rem;
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 4.2rem;
  }

  .site-nav {
    inset: 4.2rem 0 auto;
    min-height: calc(100vh - 4.2rem);
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-type {
    margin-bottom: 2.2rem;
  }

  .hero-type h1 {
    font-size: clamp(1.95rem, 8.6vw, 3.1rem);
    letter-spacing: 0;
  }

  .hero-type .hero-kicker {
    font-size: 1.45rem;
  }

  .hero-type .hero-subline {
    font-size: 1.1rem;
  }

  .player-ui span:last-child {
    display: none;
  }

  .work-heading h2,
  .section-heading h2 {
    font-size: 3.2rem;
  }

  .work-shelf {
    grid-auto-columns: 84vw;
  }

  .work-shelf.is-square {
    grid-auto-columns: 68vw;
  }

  .shelf-controls,
  .rail-controls {
    display: none;
  }

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

  .manifesto-gallery .media-tile:last-child {
    grid-column: 1 / -1;
  }

  .tile-caption {
    font-size: 0.8rem;
  }

  .company-card,
  .company-two,
  .company-three {
    min-height: 26rem;
    flex-basis: 80vw;
  }

  .about-section {
    padding-block: 4rem;
  }

  .about-card {
    padding: 1.1rem;
  }

  .about-copy h2 {
    font-size: 3.5rem;
  }

  .profile-photo {
    min-height: 26rem;
  }

  .about-resume {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .resume-entry {
    grid-template-columns: 6.4rem minmax(0, 1fr);
  }

  .resume-footer,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
  }

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

  .contact-links {
    padding-top: 0;
  }

  .contact-grid h2 {
    font-size: 3.8rem;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .project-pagination {
    flex-direction: column;
  }
}

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

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