/* =========================================================
   Daniela Domingos — Filmmaker
   Colours and logo from the bydanieladomingos brand guide: a sunset
   over the sea (plum, blush, soft blue, peach, sun). Dark plum for
   the film parts, light blush for reading. Motion lives at the end.
   ========================================================= */
:root {
  --plum: #3B2933;
  --blush: #FCEDE7;
  --blue: #6E8FB0;
  --peach: #F6AE92;
  --sun: #EF8460;
  --bg: var(--plum);
  --bg-2: #46313D;
  --ink: var(--blush);
  --soft: rgba(252, 237, 231, 0.74);
  --dim: rgba(252, 237, 231, 0.52);
  --line: rgba(252, 237, 231, 0.16);
  --title: var(--blush);
  --mark: var(--peach);
  --grad: linear-gradient(180deg, #6E8FB0 0%, #DDA3A4 50%, #F6AE92 100%); /* "mar e sol" */
  --sunset: linear-gradient(90deg, #EF8460, #C2707A 50%, #6E8FB0);
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
/* Light parts of the page: blush background, plum text, blue titles */
.light {
  --ink: var(--plum); --soft: #6E5862; --dim: #6E5862; --line: rgba(59, 41, 51, 0.14);
  --bg-2: #fff; --title: var(--blue); --mark: var(--sun);
  background: #FBF5F1; color: var(--ink);
}
.glint { display: block; fill: var(--sun); }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }

/* PT / EN: only the chosen language is shown */
html[data-lang="pt"] [data-l="en"], html[data-lang="en"] [data-l="pt"] { display: none; }

/* ---------- Top bar ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: var(--sunset); transform: scaleX(0); transform-origin: 0 50%;
}
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: calc(14px + env(safe-area-inset-top)) var(--pad) 14px;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.top.solid {
  background: rgba(59, 41, 51, 0.8);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-color: var(--line);
}
/* Logo: white over the film, in colour once the bar turns plum */
.brand { position: relative; flex: none; width: clamp(150px, 15vw, 190px); aspect-ratio: 1031 / 156; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.4s; }
.brand .lg-c, .top.solid .lg-w, .menu-open .lg-w { opacity: 0; }
.top.solid .lg-c, .menu-open .lg-c { opacity: 1; }
.menu { display: none; margin-left: auto; gap: clamp(18px, 2.6vw, 36px); }
.menu a { font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); position: relative; padding: 6px 0; transition: color 0.3s; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--peach); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s var(--ease); }
.lang {
  margin-left: auto; min-width: 44px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; color: var(--soft);
  transition: border-color 0.3s, color 0.3s;
}
/* Phone: two-line button that turns into an X, and a full-screen menu */
.burger { position: relative; width: 44px; height: 44px; margin-right: -10px; flex: none; }
.burger span { position: absolute; left: 10px; right: 10px; top: 50%; height: 1.5px; background: #fff; border-radius: 2px; transition: transform 0.5s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.menu-open .burger span:first-child { transform: rotate(45deg); }
.menu-open .burger span:last-child { transform: rotate(-45deg); }
html.menu-open { overflow: hidden; }
.menu-open .top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; }
.sheet {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(90px + env(safe-area-inset-top)) var(--pad) calc(36px + env(safe-area-inset-bottom));
  background: rgba(50, 34, 43, 0.96); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s 0.45s;
}
.menu-open .sheet { opacity: 1; visibility: visible; transition: opacity 0.45s ease; }
.sheet > a {
  display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.9rem, 9vw, 2.8rem); font-weight: 500; line-height: 1.2; color: var(--blush);
}
.sheet small { font-size: 0.7rem; font-weight: 300; letter-spacing: 0.3em; color: var(--peach); }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.sheet-foot .btn { margin-top: 0; }
.sheet > * { opacity: 0; transform: translateY(22px); transition: opacity 0.3s ease, transform 0.3s ease; }
.menu-open .sheet > * { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.8s var(--ease); transition-delay: calc(120ms + var(--i) * 70ms); }
@media (hover: none) { .sheet > a:active { color: var(--peach); } }
@media (min-width: 760px) {
  .menu { display: flex; }
  .lang { margin-left: 0; }
  .burger, .sheet { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  padding: 110px var(--pad) 90px;
  background: #000;
}
.hero-media { position: absolute; inset: -6% 0; will-change: transform; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The YouTube player is stretched past the edges so its own title/logo never show */
.hero-yt { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; overflow: hidden; }
.hero-yt.on { opacity: 1; }
.hero-yt iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: max(100vw, 200svh); height: max(113svh, 64vw);
  transform: translate(-50%, -50%) scale(1.25);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.42) 45%, rgba(59,41,51,0.85) 88%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1100px; will-change: transform, opacity; }
.kicker { font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--peach); margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.5rem, 10.4vw, 7.4rem); font-weight: 600; line-height: 1.03; letter-spacing: 0.01em;
  color: rgba(252, 237, 231, 0.86); text-wrap: balance;
}
/* the brand's glint (sun on the sea) between the name and the role; white because it sits over film */
.rule { display: block; width: 44px; height: auto; margin: 22px auto 18px; fill: rgba(255, 255, 255, 0.85); transform-origin: 38% 62%; }
.role {
  font-size: clamp(0.62rem, 1.6vw, 1.2rem); letter-spacing: clamp(0.7em, 1.4vw, 1em); padding-left: 1em;
  text-transform: uppercase; color: rgba(252, 237, 231, 0.8);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.06em;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn.ghost { margin-top: 38px; border: 1px solid rgba(255,255,255,0.4); color: #fff; background: rgba(255,255,255,0.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn:active { transform: scale(0.97); }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 1px; height: 46px; overflow: hidden; background: rgba(255,255,255,0.18); }
.scroll-hint span { position: absolute; inset: 0; background: var(--peach); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Gradient bands (intro + contact) ---------- */
.band { background: var(--grad); color: var(--plum); padding: clamp(64px, 11vw, 150px) var(--pad); }
.statement {
  max-width: 1050px; margin: 0 auto; text-align: center; text-wrap: balance;
  font-size: clamp(1.3rem, 3.3vw, 2.5rem); font-weight: 500; line-height: 1.4;
}

.band.light { background: var(--blush); }
.mark { width: 34px; margin: 0 auto clamp(22px, 3vw, 36px); }

/* ---------- Section heads ---------- */
.head { padding: clamp(72px, 10vw, 140px) var(--pad) clamp(28px, 4vw, 56px); max-width: 1400px; margin: 0 auto; }
.eyebrow { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.34em; color: var(--mark); margin-bottom: 14px; }
.eyebrow.dark { color: rgba(59,41,51,0.7); }
.head h2, .contact h2 { font-size: clamp(2.1rem, 6.4vw, 4.6rem); font-weight: 600; line-height: 1.08; letter-spacing: 0.01em; }
.head h2 { color: var(--title); }
.sub { margin-top: 16px; max-width: 46ch; color: var(--soft); }
.sub.dark { color: rgba(59,41,51,0.86); font-weight: 400; margin-inline: auto; }

/* ---------- Films: full-width tiles, like the original ---------- */
.film-grid { display: grid; grid-template-columns: 1fr; }
.film { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: #20181D; isolation: isolate; }
.film img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  opacity: 0; transform: scale(1.02); filter: saturate(0.9);
  transition: opacity 0.9s ease, transform 1.4s var(--ease), filter 0.9s ease;
}
.film img.ok { opacity: 0.5; }
.film img.lb { transform: scale(1.38); } /* crops the black bars of the standard YouTube cover */
.film::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.6)); transition: opacity 0.6s; }
.film-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.film-meta { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--soft); }
.film-title { font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 300; letter-spacing: 0.08em; line-height: 1.2; color: var(--blush); }
.film:nth-child(even) .film-title { color: var(--peach); }
.film-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.12em; color: #fff; }
.film-go svg { width: 26px; height: 26px; padding: 7px; border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; fill: #fff; transition: background 0.3s, fill 0.3s, border-color 0.3s; }
@media (min-width: 760px) {
  .film-grid { grid-template-columns: 1fr 1fr; }
  .film { aspect-ratio: 16 / 9.5; }
}

/* ---------- Services ---------- */
.svc-grid { display: grid; gap: 14px; padding: 0 var(--pad); max-width: 1400px; margin: 0 auto; }
.svc {
  position: relative; overflow: hidden; padding: 32px 26px 28px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2);
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.svc::before { /* light that follows the mouse */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(246,174,146,0.2), transparent 65%);
}
.num { display: block; font-size: 3.4rem; font-weight: 600; line-height: 1; margin-bottom: 26px; color: var(--peach); }
.svc h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 10px; }
.svc p { color: var(--soft); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; min-height: 44px; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.more i { font-style: normal; color: var(--sun); transition: transform 0.4s var(--ease); }
@media (min-width: 860px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .svc { padding: 44px 36px 36px; }
}

/* ---------- About ---------- */
.about { padding-bottom: clamp(72px, 10vw, 140px); }
.about-body { padding: 0 var(--pad); max-width: 1400px; margin: 0 auto; display: grid; gap: 32px; }
.lead { font-size: clamp(1.25rem, 2.6vw, 1.9rem); font-weight: 400; line-height: 1.4; color: var(--title); max-width: 26ch; }
.about-text { display: grid; gap: 18px; color: var(--soft); max-width: 62ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts b { font-weight: 500; color: var(--ink); letter-spacing: 0.02em; }
.facts li > span { font-size: 0.88rem; color: var(--dim); }
@media (min-width: 900px) {
  .about-body { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(40px, 6vw, 110px); }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-top: 0; column-gap: 32px; margin-top: 24px; }
  .facts li { border-top: 1px solid var(--line); border-bottom: 0; }
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-in { max-width: 900px; margin: 0 auto; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.btn.dark { background: var(--plum); color: var(--blush); border: 1px solid var(--plum); }
.btn.dark.line { background: transparent; color: var(--plum); }
.todo { display: none; padding: 12px 22px; border: 1px dashed rgba(59,41,51,0.5); border-radius: 999px; font-size: 0.86rem; font-weight: 400; }
html.no-contact .todo { display: inline-block; }

footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding: 30px var(--pad) calc(30px + env(safe-area-inset-bottom));
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--dim);
}

.foot-logo { flex: 1 0 100%; }
.foot-logo img { width: 170px; height: auto; }
@media (min-width: 760px) { .foot-logo { flex: 0 0 auto; margin-right: auto; } }

/* ---------- Film panel ---------- */
.panel {
  position: fixed; inset: 0; z-index: 100; background: rgba(32, 24, 29, 0.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.6s var(--ease), visibility 0s 0.6s;
}
.panel.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s ease, transform 0.6s var(--ease); }
.panel-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: calc(64px + env(safe-area-inset-top)) 0 64px; }
.panel-close {
  position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top)); right: max(12px, calc(var(--pad) - 12px));
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(59,41,51,0.7);
  display: grid; place-items: center; transition: transform 0.4s var(--ease), border-color 0.3s;
}
.panel-close svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.player { max-width: min(1200px, calc((100svh - 150px) * 16 / 9)); margin: 0 auto; padding: 0; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.panel-info { max-width: 1200px; margin: 0 auto; padding: 30px var(--pad) 0; }
.panel-info h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: 0.06em; line-height: 1.15; margin: 8px 0 28px; color: var(--blush); }
.panel-info h3 { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--peach); margin-bottom: 14px; }
.cols { display: grid; gap: 36px; }
.syn p { color: var(--soft); margin-bottom: 14px; max-width: 60ch; }
.crew dl { margin: 0; display: grid; gap: 0; }
.crew dl > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.crew dt { font-size: 0.8rem; color: var(--dim); letter-spacing: 0.04em; }
.crew dd { margin: 0; font-size: 0.92rem; font-weight: 400; }
@media (min-width: 900px) {
  .player { border-radius: 14px; overflow: hidden; }
  .cols { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 100px); }
}

/* =========================================================
   Motion — everything below only runs when scripts are on
   (html.js) and plays once.
   ========================================================= */

/* Hover: mouse only */
@media (hover: hover) {
  .menu a:hover { color: #fff; }
  .menu a:hover::after { transform: scaleX(1); }
  .lang:hover { border-color: var(--peach); color: #fff; }
  .btn.ghost:hover { background: var(--blush); color: var(--plum); border-color: var(--blush); transform: translateY(-2px); }
  .btn.dark:hover { transform: translateY(-2px); }
  .btn.dark.line:hover { background: var(--plum); color: var(--blush); }
  .film:hover img.ok { opacity: 0.85; transform: scale(1.07); filter: saturate(1.05); }
  .film:hover img.lb { transform: scale(1.45); }
  .film:hover::before { opacity: 0.55; }
  .film:hover .film-go svg { background: var(--blush); fill: var(--plum); border-color: var(--blush); }
  .svc:hover { transform: translateY(-6px); border-color: var(--peach); }
  .svc:hover::before { opacity: 1; }
  .more:hover i { transform: translateX(6px); }
  .panel-close:hover { transform: rotate(90deg); border-color: var(--peach); }
}
@media (hover: none) {
  .film:active img.ok { opacity: 0.8; }
  .svc:active { transform: scale(0.985); }
}

/* Words rise out of a mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w > span { display: inline-block; }
.js .hero h1 .w > span, .js .head h2 .w > span, .js .contact h2 .w > span {
  transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 70ms);
}
.js.ready .hero h1 .w > span, .js .head.in h2 .w > span, .js .contact h2.in .w > span { transform: none; }
.js .hero h1 .w > span { transition-delay: calc(250ms + var(--wi) * 110ms); transition-duration: 1.2s; }

/* Hero lines come in one after another */
.js .kicker, .js .role, .js .hero .btn, .js .scroll-hint { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s var(--ease); }
.js .rule { transform: scale(0) rotate(-90deg); transition: transform 1.2s var(--ease) 0.75s; }
.js.ready .kicker { opacity: 1; transform: none; transition-delay: 0.1s; }
.js.ready .rule { transform: none; }
.js.ready .role { opacity: 1; transform: none; transition-delay: 0.95s; }
.js.ready .hero .btn { opacity: 1; transform: none; transition-delay: 1.2s; }
.js.ready .scroll-hint { opacity: 1; transform: translateX(-50%); transition-delay: 1.6s; }
.scroll-hint { transform: translateX(-50%); }
.hero-poster { animation: breathe 22s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Intro sentence lights up word by word as you scroll */
.js [data-light] .w { overflow: visible; }
.js [data-light] .w > span { opacity: 0.22; transition: opacity 0.5s ease; }
.js [data-light] .w.lit > span { opacity: 1; }

/* Fade up; groups stagger their children */
.js .rv:not(.grp):not(.head) { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.js .rv.in:not(.grp):not(.head) { opacity: 1; transform: none; }
.js .head .eyebrow, .js .head .sub { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease, transform 0.9s var(--ease); }
.js .head.in .eyebrow { opacity: 1; transform: none; }
.js .head.in .sub { opacity: 1; transform: none; transition-delay: 0.35s; }
.js .rv.grp > * { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 130ms); }
.js .rv.grp.in > * { opacity: 1; transform: none; }
/* once shown, drop the delays so hover and language changes feel instant */
.js .rv.done, .js .rv.grp.done > * { transition-delay: 0s; }
.js .svc.rv, .js .rv.grp.done > .svc { transition: transform 0.5s var(--ease), border-color 0.4s, opacity 0.9s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .rv.grp > *, .js .head .eyebrow, .js .head .sub, .js .w > span,
  .js .kicker, .js .role, .js .hero .btn, .js .scroll-hint { opacity: 1 !important; transform: none !important; }
  .js .scroll-hint { transform: translateX(-50%) !important; }
  .js .rule { transform: none !important; }
}
