body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 1s var(--hover),color 1s var(--hover);
}

/* profundidade: duas camadas de luz fixas + grao */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(42% 38% at 18% 12%,var(--l2) 0%,transparent 70%),
    radial-gradient(50% 44% at 84% 28%,var(--l1) 0%,transparent 70%),
    radial-gradient(40% 40% at 70% 92%,var(--l3) 0%,transparent 70%),
    radial-gradient(36% 36% at 8% 78%,var(--l4) 0%,transparent 70%),
    radial-gradient(120% 90% at 50% 45%,transparent 55%,var(--vig) 100%);
  animation: depth 36s ease-in-out infinite alternate;
  transition: background 1.2s var(--hover);
}

@keyframes depth {
  to {
    transform: translate(4%,3%) scale(1.08);
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

header,.intro,.list,footer {
  position: relative;
  z-index: 1;
}

@media(prefers-reduced-motion:reduce) {
  body::before {
    animation: none;
  }
}

body,.win,.win .bar,.item .ln,footer,header.s {
  transition-property: background,color,border-color,background-color;
  transition-duration: 1s;
  transition-timing-function: var(--hover);
}

/* ---------- botao de tema ---------- */
#theme {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: border-color .6s var(--hover),background 1s var(--hover),transform .6s var(--hover);
}

#theme:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

#theme:active {
  transform: scale(.94);
}

#theme svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  transform: rotate(0);
  transition: transform .9s cubic-bezier(.34,1.3,.5,1);
}

:root[data-theme="light"] #theme svg {
  transform: rotate(90deg);
}

#theme .body {
  fill: var(--text);
  transition: fill 1s var(--hover);
}

#theme .cut {
  transform: translate(0,0);
  transition: transform .9s cubic-bezier(.34,1.3,.5,1);
}

:root[data-theme="light"] #theme .cut {
  transform: translate(10px,-10px);
}

#theme .rays {
  transform-origin: 12px 12px;
  transform: scale(.5);
  opacity: 0;
  transition: transform .9s cubic-bezier(.34,1.3,.5,1),opacity .5s var(--hover);
}

:root[data-theme="light"] #theme .rays {
  transform: scale(1);
  opacity: 1;
}

#theme .rays line {
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: stroke 1s var(--hover);
}

:root[data-theme="light"] #theme .body {
  r: 5.2;
}

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

.wrap {
  max-width: var(--w);
  margin: 0 auto;
  width: min(90%,var(--w));
  position: relative;
  z-index: 1;
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 34px 0;
  transition: padding 1s var(--ease),background 1s var(--hover);
}

header.s {
  padding: 16px 0;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

header .r {
  display: flex;
  align-items: center;
  gap: 26px;
}

header .name {
  font-family: var(--display);
  font-weight: 600;
}

.u {
  position: relative;
  color: var(--dim);
  transition: color .6s var(--hover);
}

.u::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .7s var(--hover);
}

.u:hover {
  color: var(--text);
}

.u:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.intro {
  padding: clamp(80px,13vh,160px) 0 clamp(70px,9vw,120px);
}

.intro h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.02;
  font-size: clamp(2.4rem,5.6vw,5rem);
  max-width: 16ch;
}

.intro p {
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 44ch;
}

.intro .row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

.intro .row i {
  width: 36px;
  height: 1px;
  background: var(--dim);
}

/* ---------- grade ---------- */
.list {
  display: grid;
  gap: clamp(64px,8vw,110px) 56px;
  padding-bottom: clamp(90px,12vw,160px);
}

@media(min-width:800px) {
  .list {
    grid-template-columns: 1fr 1fr;
  }
  .item:nth-child(even) {
    transform: translateY(96px);
  }
  .list {
    padding-bottom: calc(clamp(90px,12vw,160px) + 96px);
  }
}

.item {
  display: block;
  position: relative;
  transition: opacity 1.2s var(--hover);
}

/* linha de cima: numero + categoria */
.item .n {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--dim);
}

.item:where(.will-reveal) .n {
  opacity: 0;
  transition: opacity 1.4s var(--ease) .1s;
}

.item.in .n {
  opacity: 1;
}

.soon {
  display: inline-block;
  margin-left: 12px;
  padding: 2px 8px;
  border: 1px dashed var(--line);
  border-radius: 99px;
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  vertical-align: 1px;
  white-space: nowrap;
}

/* janela: a imagem nunca muda; o que muda e o que esta em volta */
.win {
  position: relative;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.item:where(.will-reveal) .win {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.8s var(--ease),transform 1.8s var(--ease),border-color 1.4s var(--hover);
}

.item.in .win {
  opacity: 1;
  transform: none;
}

.item.in .win {
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: opacity 1.8s var(--ease),transform .9s var(--hover),border-color .9s var(--hover),box-shadow .9s var(--hover);
}

.item.in:hover .win {
  transform: translateY(-5px);
  border-color: rgba(157,163,192,.35);
  box-shadow: 0 26px 50px -26px var(--shadow);
}

.win .bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--elev);
}

.win .bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dotbg);
  transition: background .9s var(--hover);
}

.item:hover .win .bar i {
  background: rgba(157,163,192,.55);
}

.win .bar b {
  margin-left: 10px;
  flex: 1;
  height: 14px;
  border-radius: 4px;
  background: var(--dotbg);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--dim);
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.win .shot {
  position: relative;
  aspect-ratio: 2908/1594;
  overflow: hidden;
}

.win .shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* meta */
.item .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 18px;
}

.item:where(.will-reveal) .meta {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.4s var(--ease) .3s,transform 1.4s var(--ease) .3s;
}

.item.in .meta {
  opacity: 1;
  transform: none;
}

.item h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  position: relative;
  display: inline-block;
}

.item h2 .ar {
  position: absolute;
  left: 100%;
  top: 50%;
  margin-left: 10px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-8px,-50%);
  transition: opacity .5s var(--hover),transform .7s var(--hover);
}

a.item:hover h2 .ar {
  opacity: 1;
  transform: translate(0,-50%);
}

.item .desc {
  margin-top: 10px;
  font-size: .95rem;
  color: var(--muted);
  max-width: 56ch;
}

.item:where(.will-reveal) .desc {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.4s var(--ease) .4s,transform 1.4s var(--ease) .4s;
}

.item.in .desc {
  opacity: 1;
  transform: none;
}

.item .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.item:where(.will-reveal) .tags {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.4s var(--ease) .5s,transform 1.4s var(--ease) .5s;
}

.item.in .tags {
  opacity: 1;
  transform: none;
}

.item .tags span {
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  white-space: nowrap;
}

.item .ln {
  height: 1px;
  background: var(--line);
  margin-top: 18px;
  position: relative;
  overflow: hidden;
}

.item .ln::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--hover);
}

.item:hover .ln::after {
  transform: scaleX(1);
}

@media(max-width:600px) {
  .item .meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---------- rodape: frase de contato, canais em linhas e faixa final ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: clamp(72px,9vw,120px) 0 36px;
  position: relative;
  z-index: 1;
}

.ft {
  display: grid;
  gap: clamp(40px,6vw,72px);
  align-items: end;
}

@media(min-width:900px) {
  .ft {
    grid-template-columns: 1fr 1fr;
  }
}

.ft .k {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.ft h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  font-size: clamp(2.4rem,5.2vw,4.4rem);
}

.ft h2 em {
  font-style: normal;
  color: var(--dim);
}

.ch {
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.ch a {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.ch .ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color .8s var(--hover),background .8s var(--hover);
}

.ch .ico svg {
  width: 18px;
  height: 18px;
  fill: var(--dim);
  transition: fill .8s var(--hover);
}

.ch .ico svg.st {
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .8s var(--hover);
}

.ch small {
  display: block;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}

.ch b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem,1.6vw,1.3rem);
  letter-spacing: -.015em;
  margin-top: 4px;
  transition: color .8s var(--hover);
  overflow-wrap: anywhere;
}

.ch .go {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .8s var(--hover),stroke .8s var(--hover);
}

.ch a:hover b {
  color: var(--accent);
}

.ch a:hover .ico {
  border-color: var(--accent);
}

.ch a:hover .ico svg {
  fill: var(--accent);
}

.ch a:hover .ico svg.st {
  fill: none;
  stroke: var(--accent);
}

.ch a:hover .go {
  stroke: var(--accent);
  transform: translate(3px,-3px);
}

.fb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: clamp(56px,7vw,96px);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

.fb .end {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fb .top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--dim);
  transition: color .6s var(--hover),border-color .6s var(--hover),transform .6s var(--hover);
}

.fb .top svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fb .top:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-3px);
}

@media(max-width:600px) {
  .fb {
    flex-direction: column;
    align-items: flex-start;
  }
  .fb .end {
    width: 100%;
    justify-content: space-between;
  }
}

/* progresso de leitura e menu que some ao descer */
.prog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 40;
  background: var(--accent);
  transform: scaleX(var(--p,0));
  transform-origin: left;
  pointer-events: none;
}

header {
  transition: padding 1s var(--ease),background 1s var(--hover),transform .6s var(--ease);
}

header.hide {
  transform: translateY(-100%);
}

.rv:where(.will-reveal) {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.6s var(--ease),transform 1.6s var(--ease);
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    transition: none!important;
  }
  .rv,.item .meta,.item .n,.item .desc,.item .tags,.win {
    opacity: 1;
    transform: none;
  }
  .win .shot img {
    filter: none;
  }
}
