:root {
  --paper: #e9e7e1;
  --paper-dark: #dcdad2;
  --ink: #121212;
  --muted: #6d6b65;
  --blue: #1942d8;
  --night: #121212;
  --line: rgba(18, 18, 18, 0.18);
  --display: "Antonio", Impact, sans-serif;
  --body: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--paper);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 14px;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
button:focus-visible,
a:focus-visible,
video:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 999;
  left: 1rem;
  top: -4rem;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1rem;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 17px clamp(18px, 3vw, 52px);
  mix-blend-mode: normal;
  transition: background 0.3s;
}
.site-header nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 35px);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-header nav a {
  position: relative;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s;
}
.site-header nav a:hover::after {
  width: 100%;
}
.wordmark {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
}
.wordmark span {
  color: var(--blue);
}
.language-toggle {
  justify-self: end;
  border: 0;
  background: none;
  cursor: pointer;
  font: 500 11px var(--mono);
  letter-spacing: 0.06em;
  padding: 4px 0;
}
.language-toggle span {
  color: var(--muted);
  padding: 0 3px;
}
.language-toggle.is-pt {
  color: var(--blue);
}
.hero {
  position: relative;
  height: 100svh;
  min-height: 630px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grain {
  pointer-events: none;
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}
.hero-copy {
  position: absolute;
  z-index: 4;
  inset: 50% clamp(18px, 4.1vw, 70px) auto;
  transform: translateY(-48%);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 14px;
  font: 500 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-title {
  margin: 0;
  font: 500 clamp(92px, 16.4vw, 270px) / 0.76 var(--display);
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.hero-title span {
  display: block;
}
.hero-title span + span {
  margin-left: clamp(27px, 5vw, 85px);
}
.hero-role {
  margin: clamp(26px, 5vw, 65px) 0 0 clamp(4px, 10vw, 165px);
  font: 400 clamp(18px, 2.1vw, 32px) / 1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.computer-stage {
  position: absolute;
  z-index: 2;
  inset: 0 0 0 37%;
  isolation: isolate;
}
.computer-stage::after {
  content: "";
  position: absolute;
  left: 18%;
  bottom: 15%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(30px);
  background: rgba(25, 66, 216, 0.17);
  z-index: -1;
}
.computer-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.model-ready canvas {
  opacity: 1;
}
.computer-fallback {
  position: absolute;
  left: 40%;
  top: 49%;
  width: min(24vw, 370px);
  aspect-ratio: 1.13;
  background: #bcb9b0;
  border: clamp(7px, 1vw, 13px) solid #595a58;
  border-radius: 8% 8% 3% 3%;
  transform: translate(-50%, -50%) rotate(-9deg);
  box-shadow: 1.1rem 2rem 0 rgba(17, 17, 17, 0.13);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.model-failed .computer-fallback {
  opacity: 1;
}
.computer-fallback span {
  position: absolute;
  inset: 14% 11% 29%;
  display: grid;
  place-items: center;
  background: #2043d7;
  color: #e9e7e1;
  font: 500 clamp(23px, 4vw, 55px) var(--display);
  letter-spacing: -0.04em;
}
.computer-fallback i {
  position: absolute;
  bottom: -28%;
  left: 38%;
  width: 30%;
  height: 29%;
  border: clamp(7px, 1vw, 13px) solid #595a58;
  border-top: 0;
}
.computer-fallback b {
  position: absolute;
  bottom: -36%;
  left: 20%;
  width: 67%;
  height: 14%;
  background: #595a58;
  border-radius: 50% 50% 5% 5%;
}
.model-ready .computer-fallback {
  opacity: 0;
}
.hero-scroll {
  position: absolute;
  z-index: 5;
  left: clamp(18px, 4.1vw, 70px);
  bottom: clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-scroll i {
  font-style: normal;
  font-size: 18px;
  color: var(--blue);
  animation: arrow 1.5s ease-in-out infinite;
}
.hero-index {
  position: absolute;
  right: clamp(18px, 3vw, 50px);
  bottom: clamp(20px, 4vw, 48px);
  z-index: 5;
  margin: 0;
  font: 500 10px var(--mono);
  letter-spacing: 0.08em;
}
@keyframes arrow {
  50% {
    transform: translateY(5px);
  }
}
.work-section {
  background: var(--night);
  color: #f2f0e9;
  padding: clamp(85px, 12vw, 170px) 0 clamp(62px, 8vw, 115px);
  overflow: hidden;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  padding: 0 clamp(18px, 4.1vw, 70px) clamp(36px, 5vw, 65px);
}
.section-heading h2 {
  margin: 0;
  font: 500 clamp(56px, 8.8vw, 135px) / 0.82 var(--display);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.section-note {
  font-size: 12px;
  max-width: 150px;
  margin: 0 0 3px;
  color: #b9b6ae;
}

.manifesto {
  padding: clamp(84px, 14vw, 210px) clamp(18px, 16vw, 280px);
  background: var(--blue);
  color: #f2f0e9;
}
.manifesto p {
  margin: 0;
  font: 400 clamp(48px, 8vw, 126px) / 0.88 var(--display);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 1.12fr);
  gap: clamp(35px, 10vw, 160px);
  align-items: center;
  padding: clamp(80px, 13vw, 200px) clamp(18px, 9vw, 150px);
}
.about-image-wrap {
  position: relative;
  max-width: 420px;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-dark);
}
.about-image-wrap::after {
  content: "RF / 02";
  position: absolute;
  bottom: 11px;
  left: 11px;
  color: #fff;
  font: 500 9px var(--mono);
  letter-spacing: 0.08em;
}
.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}
.about-content h2 {
  margin: 0;
  max-width: 550px;
  font: 400 clamp(48px, 6.8vw, 105px) / 0.86 var(--display);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.about-content > p:not(.eyebrow) {
  max-width: 465px;
  margin: 30px 0 35px;
  font-size: 14px;
  line-height: 1.7;
}
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.services span {
  padding: 11px 5px 11px 0;
  border-bottom: 1px solid var(--line);
  font: 500 10px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.services span:nth-child(even) {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.contact {
  padding: clamp(65px, 10vw, 150px) clamp(18px, 4.1vw, 70px) 20px;
  background: var(--ink);
  color: #f1efe8;
}
.contact h2 {
  margin: 0 0 clamp(35px, 6vw, 85px);
  font: 400 clamp(68px, 12.5vw, 205px) / 0.78 var(--display);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 27px);
  padding-bottom: 3px;
  border-bottom: 1px solid #eee;
  font: 400 clamp(18px, 3.2vw, 48px) var(--display);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.contact-email:hover {
  color: #8fa3ff;
}
.contact-email span {
  color: var(--blue);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(75px, 12vw, 170px);
  padding-top: 14px;
  border-top: 1px solid #55534f;
  color: #aaa69d;
  font: 400 10px var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-bottom a {
  color: #f1efe8;
}
.model-credit {
  position: relative;
}
.model-credit summary {
  cursor: pointer;
  list-style: none;
}
.model-credit summary::-webkit-details-marker {
  display: none;
}
.model-credit summary::after {
  content: " +";
  color: var(--blue);
}
.model-credit[open] summary::after {
  content: " −";
}
.model-credit p {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: min(280px, 70vw);
  margin: 0;
  padding: 13px;
  background: #292929;
  color: #d6d3cd;
  border: 1px solid #56534e;
  font: 400 10px/1.55 var(--body);
  letter-spacing: 0;
  text-transform: none;
}
.model-credit p a {
  text-decoration: underline;
}
@media (max-width: 700px) {
  .site-header {
    padding: 15px 17px;
    grid-template-columns: 1fr auto 1fr;
  }
  .site-header nav {
    gap: 12px;
    font-size: 9px;
  }
  .wordmark {
    font-size: 24px;
  }
  .language-toggle {
    font-size: 9px;
  }
  .hero {
    min-height: 580px;
  }
  .hero-copy {
    inset: 47% 17px auto;
    transform: translateY(-50%);
  }
  .hero-title {
    font-size: clamp(83px, 23.5vw, 142px);
    line-height: 0.77;
  }
  .hero-title span + span {
    margin-left: 16px;
  }
  .hero-role {
    margin: 31px 0 0 4px;
    font-size: 22px;
  }
  .computer-stage {
    inset: 25% -13% 1% 16%;
    opacity: 0.96;
  }
  .computer-fallback {
    left: 48%;
    top: 54%;
    width: 55vw;
  }
  .hero-scroll {
    left: 17px;
    bottom: 21px;
    font-size: 9px;
  }
  .hero-index {
    right: 17px;
    bottom: 21px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    padding: 0 17px 28px;
  }
  .section-heading h2 {
    font-size: 65px;
  }
  .section-note {
    max-width: 220px;
  }
  .work-section {
    padding-top: 82px;
  }

  .manifesto {
    padding: 84px 17px;
  }
  .manifesto p {
    font-size: 58px;
  }
  .about-section {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 82px 17px;
  }
  .about-image-wrap {
    width: 70%;
    max-width: 340px;
  }
  .about-content h2 {
    font-size: 61px;
  }
  .about-content > p:not(.eyebrow) {
    margin: 27px 0 30px;
    line-height: 1.65;
  }
  .services {
    font-size: 9px;
  }
  .contact {
    padding: 66px 17px 19px;
  }
  .contact h2 {
    font-size: 76px;
  }
  .contact-email {
    font-size: 22px;
  }
  .footer-bottom {
    margin-top: 75px;
    font-size: 9px;
    align-items: end;
    line-height: 1.5;
  }
  .footer-bottom span {
    text-align: right;
  }
}
.site-header {
  color: var(--ink);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(233, 231, 225, 0.91);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 18, 18, 0.13);
}
.site-header.is-dark {
  background: rgba(18, 18, 18, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f2f0e9;
}
.language-toggle {
  color: inherit;
}
.hero-title {
  line-height: 0.88;
}

@media (max-width: 700px) {
  .hero-copy {
    top: 15svh;
    inset-inline: 17px;
    transform: none;
  }
  .hero-title {
    font-size: clamp(83px, 23.5vw, 142px);
    line-height: 0.95;
  }
  .computer-stage {
    inset: 42% -2% 6% 2%;
    opacity: 0.96;
  }

  .manifesto {
    padding: 54px 17px;
  }
  .manifesto p {
    font-size: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Keep naturally wrapped display headings legible in both languages. */
.about-content h2,
.contact h2 {
  line-height: 0.98;
}

/* Keep the full picture and playback controls within a typical viewport. */
.reel-viewport {
  height: min(74svh, 725px);
  min-height: 380px;
}

.language-toggle,
.language-toggle.is-pt {
  color: inherit;
}
.language-toggle:not(.is-pt) .lang-en,
.language-toggle.is-pt .lang-pt {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-header.is-dark .language-toggle span {
  color: #a6a6a0;
}
.site-header.is-dark .language-toggle:not(.is-pt) .lang-en,
.site-header.is-dark .language-toggle.is-pt .lang-pt {
  color: #f2f0e9;
}

@media (max-width: 700px) {
  .site-header {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .site-header nav a,
  .language-toggle,
  .wordmark {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Format drawers: browse one collection at a time. */
.format-archive {
  margin: 0 clamp(18px, 4.1vw, 70px);
  border-bottom: 1px solid #3b3b37;
}
.format-item {
  border-top: 1px solid #3b3b37;
  scroll-margin-top: 70px;
}
.format-item h3 {
  margin: 0;
}
.format-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 142px;
  padding: 25px 18px;
  border: 0;
  background: transparent;
  color: #f2f0e9;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s;
}
.format-toggle:hover,
.format-toggle[aria-expanded="true"] {
  background: #1c1d20;
}
.format-index {
  align-self: center;
  color: #9e9c96;
  font: 400 11px var(--mono);
}
.format-title {
  font: 500 clamp(40px, 5vw, 76px) / 1.15 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  transition: color 0.25s;
}
.format-toggle[aria-expanded="true"] .format-title {
  color: #91a7ff;
}
.format-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  font: 400 11px var(--mono);
  white-space: nowrap;
  color: #bdbbb3;
}
.format-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #66665e;
  border-radius: 50%;
  font: 300 28px/1 var(--body);
  color: #f2f0e9;
}
.format-toggle[aria-expanded="true"] .format-symbol {
  border-color: var(--blue);
  background: var(--blue);
}
.format-panel {
  padding: 12px 18px 36px;
}
.format-panel[hidden] {
  display: none;
}
.format-gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0;
}
.format-gallery li {
  min-width: 0;
}
.project-tile {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.tile-image {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #080809;
  border: 1px solid #333430;
}
/* vídeo vertical dentro do quadro padrão: o próprio poster, borrado, preenche as laterais */
.tile-image::before {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: -1;
  background: var(--poster) center / cover no-repeat;
  filter: blur(24px) brightness(0.5);
}
.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s;
}
.project-tile:hover .tile-image img {
  opacity: 0.8;
}
.tile-caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  padding-top: 13px;
  font: 400 10px/1.6 var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tile-caption > span {
  color: #8e8f89;
}
.tile-caption strong {
  font-weight: 400;
}
.tile-caption i {
  font-style: normal;
  color: #91a7ff;
  font-size: 16px;
  line-height: 1;
}
.format-empty {
  margin: 0;
  padding: 15px 0 12px;
  color: #b8b6af;
  font-size: 13px;
}
.manifesto p {
  line-height: 1.2;
}

/* Player opens only after choosing a project. */
body.project-open {
  overflow: hidden;
}
.project-dialog {
  position: fixed;
  padding: 0;
  width: min(1050px, 94vw);
  max-width: 94vw;
  max-height: 94svh;
  border: 1px solid #45453f;
  color: #f2f0e9;
  background: #121212;
  overflow: auto;
}
.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
}
.project-dialog-inner {
  padding: 52px 20px 22px;
  position: relative;
}
.dialog-close {
  position: absolute;
  top: 6px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: 300 32px/1 var(--body);
}
.project-player {
  display: grid;
  place-items: center;
  background: #000;
}
.project-player video {
  display: block;
  width: 100%;
  max-height: 70svh;
  object-fit: contain;
}
.project-player iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: 0;
}
.project-dialog.is-portrait {
  width: min(480px, 94vw);
}
.project-dialog.is-portrait video {
  height: 65svh;
}
.project-dialog-meta {
  padding-top: 18px;
}
.project-dialog-meta .eyebrow {
  color: #a3aff0;
  margin-bottom: 9px;
}
.project-dialog-meta h2 {
  margin: 0;
  font: 400 clamp(23px, 3vw, 36px) / 1.2 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.project-dialog-meta > p:last-child {
  font-size: 13px;
  line-height: 1.5;
  color: #bebcb5;
  margin: 10px 0 0;
}
.project-dialog-meta > [hidden] {
  display: none;
}
@media (max-width: 700px) {
  .format-toggle {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 110px;
    padding: 23px 0;
  }
  .format-title {
    font-size: clamp(30px, 7vw, 44px);
    line-height: 1.18;
    overflow-wrap: break-word;
  }
  .format-meta {
    flex-direction: column-reverse;
    gap: 9px;
    font-size: 9px;
  }
  .format-symbol {
    width: 36px;
    height: 36px;
    font-size: 25px;
  }
  .format-panel {
    padding: 5px 0 28px;
  }
  .format-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 13px;
  }
  .tile-caption {
    gap: 6px;
    font-size: 9px;
    line-height: 1.6;
  }
  .tile-caption i {
    display: none;
  }
  .project-dialog-inner {
    padding: 50px 12px 18px;
  }
  .project-dialog-meta h2 {
    font-size: 24px;
  }
  .manifesto p {
    line-height: 1.2;
  }
}
.youtube-link {
  margin: 12px 16px;
  font: 400 12px/1.5 var(--body);
  color: #c5ceff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-player iframe { background-position:center; background-size:contain; background-repeat:no-repeat; }
