/* =========================================================
   Mauricio Trabanino — Film Composer
   Cinematic dark editorial design system
   ========================================================= */

:root {
  --ink:        #0b0b0d;
  --ink-2:      #101013;
  --ink-3:      #16161b;
  --card:       #131318;
  --paper:      #f3efe7;
  --muted:      #a29c92;
  --muted-dim:  #6f6a63;
  --line:       rgba(243, 239, 231, 0.10);
  --line-soft:  rgba(243, 239, 231, 0.06);
  --amber:      #d9a441;
  --amber-2:    #e9be6a;
  --amber-soft: rgba(217, 164, 65, 0.14);
  --ember:      #c65a2e;

  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--amber); color: #1a1206; }

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

/* ---------- Typography helpers ---------- */
.overline {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin: 0 0 1rem;
}

.section__no {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}
.btn__ico { font-size: 1.05em; line-height: 1; }
.btn--primary {
  background: var(--amber);
  color: #1a1206;
  border: 1px solid var(--amber);
}
.btn--primary:hover { background: var(--amber-2); border-color: var(--amber-2); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--amber);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  letter-spacing: -0.02em;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav__links a:not(.nav__cta):hover { color: var(--paper); }
.nav__links a.is-active { color: var(--paper); }
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 1px; width: 0;
  background: var(--amber);
  transition: width 0.35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--line);
  padding: 0.5rem 1.05rem;
  border-radius: 100px;
  color: var(--paper) !important;
  transition: border-color 0.3s, color 0.3s;
}
.nav__cta:hover { border-color: var(--amber); color: var(--amber) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--paper);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile[hidden] { display: none; }
.nav__mobile {
  display: flex;
  flex-direction: column;
  padding: 0.5rem var(--gutter) 1.5rem;
  gap: 0.25rem;
  background: rgba(11, 11, 13, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__mobile a {
  font-family: var(--serif);
  font-size: 1.4rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--paper);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--gutter) 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(217, 164, 65, 0.08), transparent 55%),
    radial-gradient(90% 70% at 10% 100%, rgba(198, 90, 46, 0.06), transparent 60%);
  pointer-events: none;
}
.hero__bars { position: absolute; inset: 0; pointer-events: none; }
.hero__bars::before, .hero__bars::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: clamp(24px, 4vh, 46px);
  background: var(--ink);
  z-index: 3;
}
.hero__bars::before { top: 0; }
.hero__bars::after { bottom: 0; }

.hero__grid {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 1.6rem;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 1.8rem;
  font-weight: 300;
}
.hero__meta { display: flex; gap: 0.6rem; margin-bottom: 2rem; }
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__figure { margin: 0; }
.frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}
.frame img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) brightness(0.96); }
.frame__code {
  position: absolute;
  bottom: 12px; left: 14px;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(11,11,13,0.6);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.hero__figure .frame { aspect-ratio: 4 / 5; }

.hero__scroll {
  position: absolute;
  bottom: clamp(30px, 6vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line { width: 1px; height: 42px; background: linear-gradient(var(--amber), transparent); animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 1.1rem 0;
  background: var(--ink-2);
}
.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--muted-dim);
  white-space: nowrap;
}
.marquee__track .dot { color: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vw, 9rem) var(--gutter);
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
}

/* ============ ABOUT ============ */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__media { position: relative; margin: 0; }
.frame--tall { aspect-ratio: 3 / 4; }
.about__inset {
  position: absolute;
  right: -18px; bottom: -34px;
  width: 44%;
  margin: 0;
  border: 4px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.about__inset img { width: 100%; height: 100%; object-fit: cover; }

.about__body .lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3;
  font-weight: 300;
  color: var(--paper);
  margin: 0 0 1.8rem;
  text-wrap: balance;
}
.about__body p { color: var(--muted); margin: 0 0 1.2rem; max-width: 52ch; }
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 2rem 0;
}
.chips li {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.45rem 0.95rem;
  background: var(--ink-2);
}
.about__links { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.linkline {
  color: var(--amber);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.linkline:hover { border-color: var(--amber); }

/* ============ RELEASE ============ */
.release__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.release__intro { display: flex; gap: clamp(1.2rem, 3vw, 2rem); align-items: flex-start; }
.release__cover {
  flex: 0 0 clamp(120px, 20vw, 190px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.release__cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.release__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.release__credit { color: var(--paper); margin: 0 0 0.9rem; }
.release__credit strong { color: var(--amber); font-weight: 500; }
.release__desc { color: var(--muted); margin: 0 0 1.5rem; }
.release__facts {
  display: flex;
  gap: 2rem;
  margin: 0 0 1.6rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.release__facts dt { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dim); margin-bottom: 0.3rem; }
.release__facts dd { margin: 0; font-family: var(--serif); font-size: 1.1rem; }
.release__player iframe { display: block; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }

.tracklist { margin-top: clamp(3rem, 6vw, 5rem); }
.tracklist ol {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.tracklist li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s, padding 0.3s;
}
.tracklist li:hover { background: var(--amber-soft); padding-left: 0.6rem; }
.tk__n { font-family: var(--serif); font-size: 0.85rem; color: var(--amber); min-width: 1.6em; }
.tk__t { font-size: 0.95rem; color: var(--paper); }

/* ============ REEL ============ */
.reel__wrap { max-width: 980px; margin: 0 auto; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--ink-2);
}
.video__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.5s; filter: brightness(0.72) contrast(1.05); }
.video:hover .video__thumb { transform: scale(1.04); filter: brightness(0.6); }
.video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(243,239,231,0.5);
  background: rgba(11,11,13,0.35);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.4s, transform 0.4s var(--ease), border-color 0.4s;
}
.video:hover .video__play { background: var(--amber); border-color: var(--amber); transform: translate(-50%, -50%) scale(1.08); }
.video__tri {
  width: 0; height: 0;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent var(--paper);
  margin-left: 5px;
  transition: border-color 0.4s;
}
.video:hover .video__tri { border-left-color: #1a1206; }
.video__label {
  position: absolute;
  bottom: 18px; left: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  z-index: 2;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============ FILMS ============ */
.films__list { list-style: none; margin: 0; padding: 0; }
.film {
  display: grid;
  grid-template-columns: 5rem 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.film:hover { background: var(--ink-2); padding-left: 1.2rem; padding-right: 1.2rem; }
.film__year { font-family: var(--serif); font-size: 1.5rem; color: var(--amber); }
.film__body { display: flex; flex-direction: column; gap: 0.2rem; }
.film__role { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dim); }
.film__name { font-family: var(--serif); font-size: clamp(1.15rem, 2.5vw, 1.6rem); color: var(--paper); }
.film__dir { color: var(--muted); font-size: 0.9rem; }
.film__place {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 0.3rem 0.8rem; white-space: nowrap;
}
.films__cta { margin-top: 2.5rem; }

/* ============ NEWS ============ */
.news__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(217,164,65,0.3); }
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.2;
  margin: 0.4rem 0 0.8rem;
}
.card h3 em { font-style: italic; color: var(--amber-2); }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.card__date { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dim) !important; display: flex; align-items: center; gap: 0.6rem; }
.pill {
  background: var(--amber);
  color: #1a1206;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 600;
}
.card--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.card--feature .card__media { overflow: hidden; }
.card--feature .card__media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; filter: brightness(0.85) contrast(1.05); transition: transform 0.7s var(--ease); }
.card--feature:hover .card__media img { transform: scale(1.05); }
.card--feature .card__text { padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }

/* ============ CONTACT ============ */
.contact {
  text-align: center;
  max-width: 820px;
}
.contact__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.contact__lede { color: var(--muted); font-size: 1.1rem; margin: 0 auto 2.5rem; max-width: 48ch; }
.contact__email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  color: var(--amber);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
  transition: border-color 0.4s, color 0.4s;
}
.contact__email:hover { border-color: var(--amber); color: var(--amber-2); }
.contact__socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0 2rem;
}
.contact__socials a {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.contact__socials a:hover { color: var(--amber); }
.contact__places { color: var(--muted-dim); font-size: 0.85rem; letter-spacing: 0.05em; }
.contact__places .sep { margin: 0 0.7rem; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); background: var(--ink-2); }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer p { color: var(--muted-dim); font-size: 0.85rem; margin: 0; }
.footer__top { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; transition: color 0.3s; }
.footer__top:hover { color: var(--amber); }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__scroll-line { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__figure { max-width: 380px; }
  .hero__figure .frame { aspect-ratio: 4 / 3; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; margin-bottom: 2.5rem; }
  .release__grid { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .card--feature { grid-template-columns: 1fr; }
  .card--feature .card__media img { min-height: 220px; }
  .tracklist ol { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .hero { padding-top: 6rem; }
  .release__intro { flex-direction: column; }
  .release__cover { flex-basis: auto; width: clamp(150px, 42vw, 200px); }
  .film { grid-template-columns: 3.5rem 1fr; grid-template-areas: "year body" "place dir"; row-gap: 0.6rem; }
  .film__year { grid-area: year; }
  .film__body { grid-area: body; }
  .film__dir { grid-area: dir; justify-self: end; }
  .film__place { grid-area: place; justify-self: start; }
  .film:hover { padding-left: 0.5rem; padding-right: 0.5rem; }
  .tracklist ol { grid-template-columns: 1fr; }
  .contact__socials { gap: 1.3rem; flex-wrap: wrap; }
}
