:root {
  color-scheme: dark;
  --background: #100e11;
  --surface: #171318;
  --ivory: #f9f0e9;
  --muted: #bdb1b2;
  --accent: #ff4a32;
  --hairline: #f9f0e929;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ivory); font: 1rem/1.5 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ivory); outline-offset: 5px; }
img { display: block; }
h1, h2, p { margin: 0; }
em { font-family: var(--serif); font-weight: 400; }
.shell { width: min(100% - 112px, 1220px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 0.5rem; left: 0.5rem; padding: 0.65rem 1rem; background: var(--ivory); color: var(--background); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
#aftermovies, #contato { scroll-margin-top: 1rem; }

.masthead { position: absolute; z-index: 2; inset: 0 0 auto; }
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 79px;
  border-bottom: 1px solid var(--hairline);
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  gap: 0.34rem;
  font: italic 700 1.85rem/.8 var(--serif);
  letter-spacing: -.15em;
  padding-inline-end: 0.2rem;
}
.mark span { width: 2px; height: 0.8rem; background: var(--accent); transform: skew(-32deg) translateY(0.23rem); }
.masthead nav { display: flex; gap: clamp(1.25rem, 4vw, 3.5rem); }
.masthead nav a, .social-top { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 600; }
.masthead a:hover, .footer a:hover { color: var(--accent); }
.social-top { justify-self: end; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(630px, 56vw, 790px);
  display: grid;
  align-items: stretch;
  background: #141116;
}
.hero-scene, .grain, .hero-shade, .hero-light, .hero-streak, .contact-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-scene { z-index: -1; overflow: hidden; }
.hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 69%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 24%;
  filter: saturate(.86) brightness(.82);
}
.hero-shade {
  background:
    linear-gradient(0deg, #100e11 0%, #100e11a0 14%, #100e1100 41%),
    linear-gradient(180deg, #100e119a, transparent 24%),
    linear-gradient(90deg, #191218 0%, #191218 29%, #161219f0 34%, #15131955 56%, #1010160a 79%, #100e1166 100%);
}
.hero-light {
  background:
    radial-gradient(ellipse at 0% 59%, #86263250, transparent 43%),
    radial-gradient(ellipse at 87% 17%, #c9ffff28, transparent 38%),
    radial-gradient(ellipse at 96% 80%, #ff4b322d, transparent 45%),
    radial-gradient(ellipse at 31% 100%, #74301e45, transparent 39%);
}
.hero-streak {
  inset: auto -13% 4% 24%;
  height: 35%;
  background:
    linear-gradient(168deg, transparent 24%, #fe442300 36%, #f6452766 49%, #f88c6470 50%, #e13317a2 51%, #e12f1f18 58%, transparent 69%),
    linear-gradient(175deg, transparent 48%, #ee483130 53%, #f0804c65 55%, transparent 63%);
  filter: blur(16px);
  opacity: .59;
  mask-image: linear-gradient(to right, transparent, #000 25%, #000 70%, transparent);
  animation: light-drift 4.8s ease-out both;
}
.grain {
  background: url("media/grain.png") repeat;
  mix-blend-mode: soft-light;
  opacity: .17;
}
@keyframes light-drift {
  from { transform: translate(-3%, 10%) rotate(-2deg); opacity: .23; }
  to { transform: translate(0, 0); }
}
.hero-inner { display: flex; align-items: center; padding-block: 116px 67px; }
.hero-copy { position: relative; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font: 700 0.875rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow span { flex: 0 0 1.45rem; height: 1px; background: var(--accent); box-shadow: 0 0 11px #ff4a3280; }
.hero h1 {
  margin-block: 23px 25px;
  font: 700 clamp(5.5rem, 9.1vw, 9rem)/.82 var(--sans);
  letter-spacing: -.095em;
}
.hero h1 em {
  display: block;
  width: fit-content;
  margin-block-start: .08em;
  padding-inline-end: .15em;
  margin-inline-start: -.04em;
  color: var(--accent);
  font-size: .93em;
  letter-spacing: -.091em;
  text-shadow: 0 0 52px #ff3f2b32;
}
.hero-description { color: #e9dbd9; max-width: 32ch; font-size: clamp(1.1rem, 1.75vw, 1.45rem); line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-block-start: 27px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .77rem 1.36rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.25;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.button-primary { background: var(--accent); color: #150c0c; box-shadow: 0 7px 28px #ff4a3228; }
.button-primary:hover { background: #ff735d; box-shadow: 0 9px 35px #ff4a3255; }
.button-secondary { border-color: #f8e3de68; background: #1b13166e; color: var(--ivory); }
.button-secondary:hover { border-color: var(--ivory); background: #302025; }

.work { padding-block: 64px 94px; background: radial-gradient(ellipse at 2% 50%, #20151d 0%, transparent 50%), var(--background); }
.section-heading {
  margin-block-end: 29px;
  padding-block-end: 25px;
  border-bottom: 1px solid var(--hairline);
}
.section-heading h2 {
  margin-block-start: 11px;
  font: 700 clamp(3.15rem, 6.9vw, 6rem)/.95 var(--sans);
  letter-spacing: -.078em;
}
.punctuation { color: var(--accent); }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: clamp(290px, 36vw, 470px) clamp(180px, 26vw, 330px);
  grid-auto-rows: clamp(150px, 16vw, 242px);
  gap: 13px;
}
.frame {
  position: relative;
  display: flex;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #dfcbcb32;
  border-radius: 5px;
  background: #221c23;
  box-shadow: 0 15px 30px #06050839;
}
.frame-feature, .frame-secondary { grid-column: 1 / -1; }
.frame-feature > img { object-position: 50% 40%; }
.frame-secondary > img { object-position: 50% 35%; }
.frame > img, .frame-fade { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.frame > img { object-fit: cover; transition: transform .48s cubic-bezier(.21,.61,.35,1); }
.frame:hover > img { transform: scale(1.042); }
.frame-fade { background: linear-gradient(0deg, #0b080d 0%, #0b080db9 17%, #0b080d24 53%, transparent 70%); }
.frame-text { display: grid; gap: .42rem; padding: clamp(13px, 2.1vw, 25px); }
.frame-text-with-credit { gap: .26rem; }
.project-credit {
  display: inline-flex;
  align-items: baseline;
  gap: .32em;
  color: #f3dfdc;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
}
.project-credit i { color: #ff9a85; font: italic 400 1.12em/1 var(--serif); }
.frame-meta { color: #f2deda; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.frame-title { font-size: clamp(1.2rem, 2.4vw, 2.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.065em; }
.frame-feature .frame-title { font-size: clamp(2rem, 5vw, 4.9rem); }
.frame-secondary .frame-title { font-size: clamp(1.75rem, 3.6vw, 3.15rem); }
.frame-control {
  position: absolute;
  display: grid;
  place-items: center;
  top: clamp(10px, 2vw, 23px);
  right: clamp(10px, 2vw, 23px);
  width: 44px;
  height: 44px;
  border: 1px solid #f9f0e96e;
  border-radius: 50%;
  background: #16101b7d;
  color: var(--ivory);
  transition: background .2s, color .2s, border-color .2s;
}
.frame:hover .frame-control { background: var(--accent); color: #150c0c; border-color: var(--accent); }
.play-icon { margin-inline-start: 3px; border-block: 7px solid transparent; border-inline-start: 11px solid currentColor; }
.playlist-icon {
  position: relative;
  width: 17px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) left top / 17px 1.5px,
    linear-gradient(currentColor, currentColor) left 6px / 9px 1.5px,
    linear-gradient(currentColor, currentColor) left 12px / 9px 1.5px;
  background-repeat: no-repeat;
}
.playlist-icon::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  border-block: 4px solid transparent;
  border-inline-start: 6px solid currentColor;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block-start: .7rem;
  color: var(--ivory);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .28em;
  text-decoration-color: #f9f0e985;
}
.text-link:hover { color: var(--accent); }

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse at 12% 106%, #702822 0%, transparent 49%),
    radial-gradient(ellipse at 78% 20%, #393039 0%, transparent 59%),
    linear-gradient(130deg, #271c23, #1a151c 58%, #241822);
}
.contact-light {
  z-index: -1;
  inset: 30% -15% -10%;
  background: linear-gradient(163deg, transparent 27%, #f64c3318 42%, #f651353e 52%, #ff785b48 53%, #f9523818 56%, transparent 73%);
  mask-image: linear-gradient(90deg, transparent 15%, #000 33%, #000 59%, transparent 80%);
  filter: blur(21px);
}
.contact > .grain { z-index: -1; opacity: .12; }
.contact-inner {
  display: grid;
  align-items: end;
  grid-template-columns: 1.55fr 1fr;
  gap: 2rem;
  padding-block: clamp(54px, 7.8vw, 102px);
}
.contact h2 {
  margin-block-start: 15px;
  font: 700 clamp(2.75rem, 6.2vw, 5.8rem)/.95 var(--sans);
  letter-spacing: -.077em;
}
.contact h2 em { color: #ff624c; letter-spacing: -.083em; }
.contact-action { display: grid; justify-items: start; gap: .85rem; }
.contact-action p { max-width: 30ch; color: #e6d6d7; font-size: 1.0625rem; }
.contact-action .button { margin-block-start: .2rem; }
.contact-handle { color: #e4cbcd; font-size: 0.875rem; }
.contact-handle:empty { display: none; }

.footer { color: var(--muted); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .9rem;
  min-height: 87px;
  font-size: .875rem;
}
.footer .mark { color: var(--ivory); font-size: 1.55rem; }
.footer a:last-child { display: grid; align-items: center; min-height: 44px; justify-self: end; }

.viewer {
  position: fixed;
  inset: 0;
  max-width: min(900px, 94vw);
  width: fit-content;
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  background: #181319;
  color: var(--ivory);
  box-shadow: 0 20px 90px #000a;
}
.viewer::backdrop { background: #100d11da; backdrop-filter: blur(9px); }
.viewer-top {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .32rem .55rem .32rem 1rem;
  background: #181319;
}
.viewer h2 { font-size: 1.125rem; font-weight: 650; }
.viewer-credit { margin-block-start: .15rem; }
.close-button { display: grid; place-items: center; border: 0; border-radius: 3px; background: transparent; color: inherit; width: 44px; height: 44px; cursor: pointer; }
.close-button:hover { background: #f9f0e91a; }
.close-button span { width: 18px; height: 18px; background: linear-gradient(45deg, transparent 46%, currentColor 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, currentColor 46% 54%, transparent 54%); }
.viewer-media { background: #0e0b0f; }
.viewer-media video { display: block; width: min(850px, 90vw); height: auto; aspect-ratio: 16/9; max-height: 76dvh; object-fit: contain; }
.viewer-status { padding: .55rem 1rem .7rem; color: var(--muted); }
.viewer.has-playlist { width: min(850px, 94vw); }
.viewer-screen { min-width: 0; }
.viewer.has-playlist .viewer-media video { width: 100%; }
.viewer-playlist {
  padding: .85rem;
  border-block-start: 1px solid var(--hairline);
  background: #211920;
}
.viewer-playlist h3 { margin: 0 0 .5rem; font-size: .875rem; font-weight: 650; }
.playlist-tracks { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.playlist-track {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  padding: .25rem .55rem .25rem .3rem;
  border: 1px solid transparent;
  border-radius: 4px;
}
.playlist-track:hover { background: #31252e; }
.playlist-track:focus-visible { outline-offset: 1px; }
.playlist-track[aria-current="true"] { border-color: #ff4a3280; background: #ff4a3220; }
.playlist-track img { width: 64px; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; }
.playlist-track-title { font-weight: 650; }
.playlist-track-duration { color: #e2cfd0; font-size: .875rem; font-variant-numeric: tabular-nums; }

@media (min-width: 781px) {
  .viewer.has-playlist { width: min(1080px, 94vw); max-width: 94vw; }
  .viewer.has-playlist .viewer-content { display: grid; grid-template-columns: minmax(0, 1fr) clamp(13.25rem, 25vw, 17rem); }
  .viewer-playlist { border-block-start: 0; border-inline-start: 1px solid var(--hairline); }
}

@media (max-width: 860px) {
  .shell { width: calc(100% - 64px); }
  .hero-image { width: 77%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 24vw, 200px); }
  .hero-shade { background: linear-gradient(0deg, #100e11 0%, #100e11a0 14%, #100e1100 41%), linear-gradient(180deg, #100e119a, transparent 24%), linear-gradient(90deg, #191218 0%, #191218 22%, #161219cf 34%, #15131942 66%, #100e112a 100%); }
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 38px); }
  .masthead-inner { min-height: 63px; }
  .masthead nav { gap: .9rem; }
  .masthead .nav-contact { display: none; }
  .masthead nav a, .social-top { font-size: .875rem; }
  .hero { min-height: 0; }
  .hero-image {
    width: 100%;
    height: 80%;
    object-position: 54% 20%;
    filter: saturate(.79) brightness(.85);
  }
  .hero-shade {
    background:
      linear-gradient(180deg, #100e1199 0%, #16131800 20%, #16131800 34%, #17121871 52%, #181219 76%, #100e11 100%),
      linear-gradient(90deg, #17101747, transparent 78%);
  }
  .hero-light {
    background:
      radial-gradient(ellipse at 15% 67%, #84313f54, transparent 55%),
      radial-gradient(ellipse at 107% 37%, #b1ebff20, transparent 43%),
      radial-gradient(ellipse at 110% 77%, #f64b2e36, transparent 52%);
  }
  .hero-streak { inset: auto -26% 5% -14%; height: 36%; filter: blur(11px); opacity: .64; }
  .hero-inner { align-items: end; padding-block: clamp(236px, 66vw, 338px) 36px; }
  .hero-copy { width: 100%; }
  .hero h1 { margin-block: 18px 18px; font-size: clamp(3.65rem, 16vw, 6rem); }
  .hero h1 em { font-size: .94em; }
  .hero-description { max-width: 34ch; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block-start: 22px; }
  .hero-actions .button { padding-inline: .4rem; }
  .work { padding-block: 39px 59px; }
  .section-heading { padding-block-end: 18px; margin-block-end: 15px; }
  .section-heading h2 { margin-block-start: 9px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: auto; gap: 9px; }
  .frame { aspect-ratio: 4/3; }
  .frame-feature { aspect-ratio: 16/10; }
  .frame-secondary { aspect-ratio: 2/1; }
  .frame-control { width: 35px; height: 35px; }
  .frame-title { font-size: 1.3rem; }
  .frame-feature .frame-title { font-size: 2.35rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 53px 61px; }
  .contact h2 { font-size: clamp(2.85rem, 10.8vw, 4.6rem); }
  .contact-action .button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr auto; padding-block: 13px; }
  .footer .mark { display: none; }
  .footer a:last-child { justify-self: end; }
}

@media (max-width: 360px) {
  .frame:not(.frame-feature, .frame-secondary) { aspect-ratio: auto; min-height: 8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
