/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: #eae6df;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 300;
  letter-spacing: 0.01em;
}

h1, h2, h3,
.about-entry-year,
.ensaio-date,
.project-credit {
  font-feature-settings: "kern", "liga", "onum";
}

/* --- Header / nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.5rem 2rem;
  background:
    radial-gradient(ellipse at top right, rgba(10,10,10,0.36) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(10,10,10,0.7), transparent);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: "Libre Baskerville", Baskerville, Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.logo.visible {
  opacity: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
}

/* --- Versão principal --- */
.nav-links a {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #eae6df;
  opacity: 0.94;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
  transition: opacity 0.2s ease;
}

/* --- Versão comparação (trocar pela de cima se preferir) ---
.nav-links a {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eae6df;
  opacity: 0.94;
  transition: opacity 0.2s ease;
}
--- */

.nav-links a:hover {
  opacity: 1;
}

/* --- Focus states --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(234, 230, 223, 0.9);
  outline-offset: 4px;
}

/* --- Skip link (visível apenas ao receber foco via teclado) --- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: #161616;
  color: #eae6df;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(234, 230, 223, 0.4);
}

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

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image picture,
.work-media picture,
.archive-media picture,
.project-hero picture,
.ensaio-cover picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 2rem 2rem;
  background: linear-gradient(to top, rgba(10,10,10,0.6), transparent 50%);
}

.hero-title {
  width: 100%;
  line-height: 0;
}

.hero-logo {
  display: block;
  width: clamp(98px, 15.75vw, 228px);
  height: auto;
  color: #eae6df;
  fill: currentColor;
}

.hero-tagline {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #eae6df;
  opacity: 0.86;
  margin-top: 0.22rem;
}

.hero-tagline .sep {
  display: inline-block;
  opacity: 0.45;
  font-weight: 400;
  margin: 0 0.15em;
}

.hero-positioning {
  max-width: 48ch;
  margin-top: 0.7rem;
  color: #eae6df;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  line-height: 1.55;
  opacity: 0.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.15rem;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.hero-action--primary {
  border: 1px solid rgba(234, 230, 223, 0.42);
  background: rgba(10, 10, 10, 0.16);
}

.hero-action--secondary {
  border-bottom: 1px solid rgba(234, 230, 223, 0.35);
  opacity: 0.76;
}

.hero-action:hover {
  opacity: 1;
}

.hero-action--primary:hover {
  background: rgba(234, 230, 223, 0.08);
  border-color: rgba(234, 230, 223, 0.72);
}

.hero-action--secondary:hover {
  border-color: rgba(234, 230, 223, 0.72);
}

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(234, 230, 223, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #eae6df;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%   { top: -100%; }
  50%  { top: 0; }
  100% { top: 100%; }
}

/* --- Hero-to-works transition --- */
.hero-fade {
  height: 24px;
  background: linear-gradient(to bottom, rgba(10,10,10,0), #0a0a0a);
  margin-top: -24px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.works-divider {
  width: 40px;
  height: 1px;
  background: rgba(234, 230, 223, 0.12);
  margin: 0 auto;
}

/* --- Works --- */
.works {
  padding: 6rem 2rem 8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 4rem;
  opacity: 0.9;
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: "Libre Baskerville", Baskerville, Georgia, serif;
  font-weight: 400;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
}

.work {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #141414;
  overflow: hidden;
  cursor: pointer;
}

.work-media iframe,
.work-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  filter: brightness(1.08);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.work-media:hover img {
  transform: scale(1.03);
  filter: brightness(1.15);
}

.play-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.play-btn svg {
  width: 48px;
  height: 48px;
  color: #eae6df;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.work-media:hover .play-btn,
.archive-media:hover .play-btn,
.project-hero:hover .play-btn,
.play-btn:focus-visible {
  opacity: 1;
}

.play-btn:focus-visible {
  background: rgba(0, 0, 0, 0.38);
  outline-offset: -8px;
}

@media (hover: none) {
  .play-btn {
    background: rgba(0, 0, 0, 0.18);
    opacity: 1;
  }

  .play-btn svg {
    width: 42px;
    height: 42px;
  }
}

.work-caption h3 {
  font-size: 1.4rem;
}

.work-link {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.work-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.work-arrow {
  display: inline-block;
  font-size: 0.85em;
  opacity: 0;
  margin-left: 0.15em;
  transform: translate(-4px, 0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work:hover .work-link {
  border-color: #eae6df;
}

.work:hover .work-arrow {
  opacity: 0.7;
  transform: translate(0, 0);
}

.work:hover .work-meta {
  opacity: 0.72;
}

.work:hover .work-description {
  opacity: 0.86;
}

.work-caption p {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 0.25rem;
}

.work-meta,
.archive-meta {
  color: #eae6df;
}

.work-description,
.archive-description {
  max-width: 46ch;
  color: #eae6df;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
  opacity: 0.66;
}

/* --- Archive / other projects --- */
.archive {
  padding: 2rem 2rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(234, 230, 223, 0.08);
}

.section-title--small {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-bottom: 2.5rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.archive-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #141414;
  overflow: hidden;
  cursor: pointer;
}

.archive-media iframe,
.archive-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  filter: brightness(1.05);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.archive-media:hover img {
  transform: scale(1.03);
  filter: brightness(1.12);
}

.archive-placeholder {
  width: 100%;
  height: 100%;
  background: #141414;
  border: 1px solid rgba(234, 230, 223, 0.06);
}

.archive-caption h3 {
  font-size: 1.1rem;
}

.archive-caption h3 .work-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.archive-card:hover .work-link {
  border-bottom: 1px solid #eae6df;
  padding-bottom: 2px;
}

.archive-card:hover .work-arrow {
  opacity: 0.7;
  transform: translate(0, 0);
}

.archive-card:hover .archive-meta {
  opacity: 0.64;
}

.archive-card:hover .archive-description {
  opacity: 0.82;
}

.archive-caption p {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-top: 0.15rem;
}

.archive-card--placeholder {
  opacity: 0.35;
}

.archive-card--placeholder .archive-caption h3 {
  font-style: italic;
  opacity: 0.6;
}

/* --- Contact CTA --- */
.contact-cta {
  padding: 5rem 2rem 5.5rem;
  border-top: 1px solid rgba(234, 230, 223, 0.08);
}

.contact-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-kicker {
  margin-bottom: 1rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
}

.contact-cta h2 {
  max-width: 15ch;
  margin: 0 auto 1rem;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.12;
}

.contact-text {
  max-width: 48ch;
  margin: 0 auto 2rem;
  opacity: 0.68;
  line-height: 1.75;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
}

.contact-actions a {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(234, 230, 223, 0.3);
  padding-bottom: 3px;
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.contact-actions a:hover {
  opacity: 1;
  border-color: #eae6df;
}

/* --- Site footer --- */
.site-footer {
  padding: 4rem 2rem 3.5rem;
  border-top: 1px solid rgba(234, 230, 223, 0.08);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-name {
  font-family: "Libre Baskerville", Baskerville, Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-links a {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.45;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.85;
  border-color: rgba(234, 230, 223, 0.4);
}

.footer-sep {
  opacity: 0.25;
  font-size: 0.8rem;
}

/* --- 404 page --- */
.not-found-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.not-found-kicker {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 1.5rem;
}

.not-found-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.not-found-text {
  max-width: 48ch;
  margin: 0 auto 2.5rem;
  opacity: 0.72;
  line-height: 1.75;
}

.not-found-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
}

.not-found-actions a {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(234, 230, 223, 0.3);
  padding-bottom: 3px;
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.not-found-actions a:hover {
  opacity: 1;
  border-color: #eae6df;
}

/* --- Project page --- */
.project-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 2rem;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 1;
}

.project-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #141414;
  margin-bottom: 3rem;
}

.project-hero iframe,
.project-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.project-hero--vertical {
  aspect-ratio: 9 / 16;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.project-hero--vertical img {
  object-position: center top;
}

.project-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
  text-align: center;
}

.project-credit {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.5;
  margin-bottom: 2rem;
}

.project-intro {
  max-width: 55ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.75;
  opacity: 0.88;
  text-align: center;
}

.project-watch {
  display: block;
  width: fit-content;
  margin: 0 auto 3.5rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(234, 230, 223, 0.35);
  padding-bottom: 3px;
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.project-watch:hover {
  opacity: 1;
  border-color: #eae6df;
}

.project-description {
  max-width: 65ch;
  margin: 0 auto 3rem;
  opacity: 0.85;
}

.project-description p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.project-description p:last-child {
  margin-bottom: 0;
}

.project-details {
  display: flex;
  justify-content: center;
  gap: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(234, 230, 223, 0.1);
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.45;
}

.detail-value {
  font-size: 0.95rem;
  line-height: 1.6;
}


/* --- About page (full page) --- */
.about-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 6rem;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  overflow: hidden;
  background: #141414;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.02) contrast(1.02);
}

.about-page-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 0.4rem;
}

.about-page-subtitle {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 5rem;
}

.about-section p {
  line-height: 1.7;
  opacity: 0.82;
  max-width: 65ch;
}

.about-heading {
  font-family: "Libre Baskerville", Baskerville, Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.about-statement {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  opacity: 0.95;
  margin-top: 2rem;
}

.about-positioning p + p {
  margin-top: 1rem;
}

.about-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(234, 230, 223, 0.08);
}

.about-entry-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 300;
}

.about-entry-place {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.55;
}

.about-entry-year {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.4;
  flex-shrink: 0;
}

.about-role {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(234, 230, 223, 0.08);
}

.about-role:first-of-type {
  padding-top: 0;
}

.about-role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.about-role .about-entry-place {
  display: block;
  margin-bottom: 1rem;
}

.about-role-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.72;
  max-width: 65ch;
  margin-bottom: 0.8rem;
}

.about-role-desc:last-child {
  margin-bottom: 0;
}

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

.about-skill-label {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.6rem;
}

.about-skill-group p {
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.75;
  text-align: left;
}

.about-page-contact {
  padding-top: 3rem;
  border-top: 1px solid rgba(234, 230, 223, 0.08);
}

.about-contact-links {
  display: flex;
  gap: 2rem;
}

.about-contact-links a {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(234, 230, 223, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.about-contact-links a:hover {
  border-color: #eae6df;
}

/* --- Ensaios: index --- */
.ensaios-page {
  max-width: 750px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.ensaios-masthead {
  padding-top: 2rem;
  border-top: 1px solid rgba(234, 230, 223, 0.12);
  margin-bottom: 5rem;
}

.ensaios-dateline {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  display: block;
  margin-bottom: 1.5rem;
}

.ensaios-masthead .ensaios-subtitle {
  margin-bottom: 0;
}

.ensaios-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.ensaios-subtitle {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 4rem;
}

.ensaio-list {
  display: flex;
  flex-direction: column;
}

.ensaio-entry {
  display: block;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(234, 230, 223, 0.08);
  transition: opacity 0.2s ease;
}

.ensaio-entry:first-child {
  border-top: 1px solid rgba(234, 230, 223, 0.08);
}

.ensaio-entry:hover {
  opacity: 0.75;
}

.ensaio-entry-content {
  margin-top: 1.25rem;
}

.ensaio-date {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.35;
  display: block;
  margin-bottom: 0.6rem;
}

.ensaio-entry-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.ensaio-excerpt {
  font-family: "Libre Baskerville", Baskerville, Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.7;
  max-width: 55ch;
}

.ensaio-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.ensaio-tag {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  color: #eae6df;
}

.ensaio-meta .ensaio-tag + .ensaio-tag,
.ensaio-tags .ensaio-tag + .ensaio-tag {
  position: relative;
  padding-left: 1rem;
}

.ensaio-meta .ensaio-tag + .ensaio-tag::before,
.ensaio-tags .ensaio-tag + .ensaio-tag::before {
  content: "·";
  position: absolute;
  left: 0.25rem;
  opacity: 0.4;
}

.ensaio-video-badge {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.4;
}

.ensaio-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #141414;
}

.ensaio-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.ensaio-entry:hover .ensaio-cover img {
  transform: scale(1.02);
  filter: brightness(1.12);
}

.ensaio-empty {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  opacity: 0.4;
  padding: 3rem 0;
}

/* --- Ensaios: post page --- */
.ensaio-page {
  max-width: 750px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

.ensaio-article {
  margin-top: 2rem;
}

.ensaio-cover-hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #141414;
  margin-bottom: 2.5rem;
}

.ensaio-cover-hero:empty {
  display: none;
}

.ensaio-cover-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ensaio-header {
  margin-bottom: 3rem;
}

.ensaio-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.ensaio-info {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ensaio-info-sep {
  opacity: 0.4;
}

/* --- Ensaio video embed --- */
.ensaio-video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #141414;
  margin-bottom: 3rem;
}

.ensaio-video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Ensaio body (rendered markdown) --- */
.ensaio-body {
  max-width: 65ch;
}

.ensaio-body h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 300;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.92;
}

.ensaio-body h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  opacity: 0.88;
}

.ensaio-body p {
  font-family: "Libre Baskerville", Baskerville, Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 1.25rem;
}

.ensaio-body blockquote {
  border-left: 2px solid rgba(234, 230, 223, 0.15);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.ensaio-body blockquote p {
  font-style: italic;
  opacity: 0.7;
}

.ensaio-body strong {
  font-weight: 700;
  opacity: 0.9;
}

.ensaio-body em {
  font-style: italic;
}

.ensaio-body ul,
.ensaio-body ol {
  font-family: "Libre Baskerville", Baskerville, Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.95;
  opacity: 0.8;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.ensaio-body li {
  margin-bottom: 0.4rem;
}

.ensaio-body hr {
  border: none;
  height: 1px;
  background: rgba(234, 230, 223, 0.1);
  margin: 3rem 0;
}

.ensaio-body a {
  border-bottom: 1px solid rgba(234, 230, 223, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.ensaio-body a:hover {
  border-color: #eae6df;
}

/* --- Ensaio signature (author sign-off) --- */
.ensaio-signature {
  margin-top: 3.5rem;
  text-align: center;
}

.ensaio-signature:empty {
  display: none;
}

.ensaio-signature-rule {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.5em;
  opacity: 0.3;
  margin-bottom: 2rem;
  padding-left: 0.5em;
}

.ensaio-signature-author {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.78;
  margin-bottom: 0.5rem;
}

.ensaio-signature-place {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.42;
}

/* --- Ensaio tags --- */
.ensaio-tags {
  display: flex;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(234, 230, 223, 0.08);
}

/* --- Ensaio prev/next nav --- */
.ensaio-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(234, 230, 223, 0.08);
}

.ensaio-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 45%;
  transition: opacity 0.2s ease;
}

.ensaio-nav-link:hover {
  opacity: 0.7;
}

.ensaio-nav-next {
  text-align: right;
  margin-left: auto;
}

.ensaio-nav-label {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}

.ensaio-nav-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.75;
}

/* --- Motion preferences --- */
@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;
  }
}

/* --- Tablet / small laptop --- */
@media (max-width: 1024px) {

  .works {
    padding: 5rem 1.5rem 6rem;
  }

  .works-grid {
    gap: 2.5rem 1.5rem;
  }

  .archive {
    padding: 1.5rem 1.5rem 5rem;
  }

  .archive-grid {
    max-width: 100%;
    gap: 1.75rem 1.5rem;
  }

  .about-page,
  .ensaios-page,
  .ensaio-page,
  .project-page {
    padding: 7rem 1.75rem 3.5rem;
  }

  .about-hero {
    gap: 2.5rem;
    grid-template-columns: minmax(200px, 280px) 1fr;
  }

  .about-skills {
    gap: 1.5rem;
  }

  .section-title {
    margin-bottom: 3rem;
  }

}

/* --- Mobile --- */
@media (max-width: 720px) {

  /* --- Nav --- */
  .site-header {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  /* --- Hero --- */
  .hero-overlay {
    padding: 0 1.25rem 0.5rem;
  }

  .hero-logo {
    width: clamp(80px, 25vw, 140px);
  }

  .hero-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .hero-positioning {
    max-width: 34ch;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 0.65rem;
    margin-top: 1rem;
  }

  .hero-action {
    min-height: 40px;
    padding: 0 0.85rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .scroll-indicator {
    right: 1.25rem;
    bottom: 1.5rem;
  }

  /* --- Works --- */
  .works {
    padding: 4rem 1.25rem 5rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
  }

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

  .work-caption h3 {
    font-size: 1.15rem;
  }

  .work-description,
  .archive-description {
    max-width: 100%;
    font-size: 0.88rem;
  }

  /* --- Archive --- */
  .archive {
    padding: 2rem 1.25rem 4rem;
  }

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

  /* --- Contact CTA --- */
  .contact-cta {
    padding: 4rem 1.25rem 4.25rem;
  }

  .contact-cta h2 {
    max-width: 14ch;
    font-size: 1.65rem;
  }

  .contact-text {
    font-size: 0.95rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }

  /* --- Footer --- */
  .site-footer {
    padding: 3rem 1.25rem 2.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-sep {
    display: none;
  }

  /* --- Project pages --- */
  .project-page {
    padding: 6rem 1.25rem 3rem;
  }

  .project-title {
    font-size: 1.6rem;
  }

  .project-credit {
    font-size: 0.75rem;
  }

  .project-intro {
    font-size: 1rem;
  }

  .project-description p {
    font-size: 0.95rem;
  }

  .project-details {
    flex-direction: column;
    gap: 2rem;
  }

  .project-hero--vertical {
    max-width: 280px;
  }

  /* --- About page --- */
  .about-page {
    padding: 6rem 1.25rem 3rem;
  }

  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    margin-bottom: 3.5rem;
  }

  .about-photo {
    width: 180px;
    max-width: 100%;
    justify-self: center;
  }

  .about-page-title {
    font-size: 1.8rem;
  }

  .about-positioning .about-statement {
    font-size: 1.2rem;
  }

  .about-content {
    gap: 3rem;
  }

  .about-entry {
    flex-direction: column;
    gap: 0.3rem;
  }

  .about-role-header {
    flex-direction: column;
    gap: 0.2rem;
  }

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

  .about-contact-links {
    flex-direction: column;
    gap: 1rem;
  }

  /* --- Ensaios mobile --- */
  .ensaios-page {
    padding: 6rem 1.25rem 3rem;
  }

  .ensaios-title {
    font-size: 1.8rem;
  }

  .ensaios-subtitle {
    margin-bottom: 2.5rem;
  }

  .ensaio-cover {
    aspect-ratio: 16 / 9;
  }

  .ensaio-page {
    padding: 6rem 1.25rem 3rem;
  }

  .ensaio-title {
    font-size: 1.5rem;
  }

  .ensaio-nav {
    flex-direction: column;
    gap: 1.5rem;
  }

  .ensaio-nav-link {
    max-width: 100%;
  }

  .ensaio-nav-next {
    text-align: left;
  }

  .nav-links {
    gap: 0.9rem;
  }

}
