/* =========================================================
   BFLOW FILMS · style.css (v5)
   Charcoal and light grey in alternating scenes, heavy
   uppercase headlines, small quiet body text, footage in
   black and white where it is a backdrop and in colour where
   it is the work.
   Tokens → base → chrome → home scenes → project page
   ========================================================= */

@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --coal: #1e1e1e;
  --coal-2: #2b2b2b;
  --ash: #e2e2e2;
  --black: #151515;
  --white: #fff;
  /* a scene sets these four; everything inside reads them */
  --bg: var(--coal);
  --fg: var(--white);
  --mute: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.16);

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(18px, 2.6vw, 44px);
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped, html.is-locked { overflow: hidden; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--white); color: var(--black); }
:focus { outline: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 300; padding: 10px 16px; background: var(--white); color: var(--black); border-radius: 3px; transform: translateY(-160%); transition: transform 0.4s var(--ease); }
.skip:focus { transform: none; }

/* headlines: heavy, uppercase, tight */
.display { font-weight: 800; font-stretch: 106%; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.02em; }
/* labels */
.mono, .label, .eyebrow { font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); font-variant-numeric: tabular-nums; }
.eyebrow { display: flex; gap: 1em; margin-bottom: 18px; }
.logo { width: 100%; height: auto; color: currentColor; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-width: 210px; height: 44px; padding: 0 22px; border-radius: 3px; background: var(--white); color: var(--black); font-size: 13px; font-weight: 500; transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.btn:hover { background: var(--black); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.btn--ghost { background: none; color: var(--fg); box-shadow: inset 0 0 0 1px var(--mute); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); box-shadow: none; }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.btn--small { min-width: 0; height: 36px; padding: 0 16px; }
.link { display: inline-flex; gap: 0.4em; align-items: baseline; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 0.5s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.chip { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 150px; padding: 0 18px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--mute); transition: background-color 0.3s, color 0.3s; }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { background: rgba(255, 255, 255, 0.26); color: var(--fg); }

/* scenes */
[data-theme="light"] { --bg: var(--ash); --fg: var(--black); --mute: rgba(21, 21, 21, 0.62); --line: rgba(21, 21, 21, 0.16); color: var(--fg); }
.scene { position: relative; background: var(--bg); color: var(--fg); }

/* ---------- chrome ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); padding: 0 var(--gutter); color: var(--white); transition: transform 0.6s var(--ease), color 0.4s; }
.header.is-hidden { transform: translateY(-100%); }
/* the header reads what is under each of its ends: black over a light scene, white over a dark one */
.header__pill, .header__actions { transition: color 0.4s; }
.header.is-light-l .header__pill, .header.is-light-r .header__actions { color: var(--black); }
.header.is-menu .header__pill, .header.is-menu .header__actions { color: var(--white); }
.header__pill { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.header__logo { display: block; width: 92px; }
.header__nav { display: flex; gap: clamp(14px, 1.8vw, 28px); font-size: 13px; }
.header__nav a { padding: 8px 0; opacity: 0.7; transition: opacity 0.3s; }
.header__nav a:hover, .header__nav a.is-current { opacity: 1; }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header .btn { min-width: 0; height: 36px; padding: 0 16px; }
.header.is-light-r .btn { background: var(--black); color: var(--white); }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; height: 36px; font-size: 13px; opacity: 0.7; transition: opacity 0.3s; }
.motion-toggle:hover { opacity: 1; }
.motion-toggle__icon { position: relative; width: 9px; height: 9px; }
.motion-toggle__icon::before, .motion-toggle__icon::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: currentColor; }
.motion-toggle__icon::before { left: 1px; }
.motion-toggle__icon::after { right: 1px; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::before { width: 8px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::after { display: none; }
.menu-btn { display: none; }
.menu { display: none; }
.no-js .motion-toggle, .no-js .menu-btn { display: none; }

/* the pointer's caption */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; opacity: 0; transition: opacity 0.25s; will-change: transform; }
.has-cursor .cursor.is-on { opacity: 1; }
.cursor__label { display: block; margin: 16px 0 0 14px; padding: 7px 11px; border-radius: 3px; background: var(--white); color: var(--black); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

/* page-to-page: one charcoal curtain covers the page being left and uncovers the one that arrives */
.curtain { position: fixed; inset: 0; z-index: 400; background: var(--coal); visibility: hidden; pointer-events: none; will-change: transform; }
.is-arriving .curtain { visibility: visible; animation: curtain-failsafe 0.01s 4s forwards; }
@keyframes curtain-failsafe { to { visibility: hidden; } }

/* =========================================================
   HOME
   ========================================================= */
/* 1 · opening: the reel in colour, the line, the first button */
.hero { height: 100svh; min-height: 560px; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.86); }
.hero::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(rgba(30, 30, 30, 0), rgba(30, 30, 30, 0.82)); pointer-events: none; }
.hero__in { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero__title { font-size: clamp(2.3rem, 5.1vw, 5.6rem); max-width: 11.5em; }
.hero__aside { flex: none; width: min(32vw, 330px); display: grid; gap: 20px; }
.hero__aside p { font-size: 14px; line-height: 1.45; text-align: justify; }
.hero__aside .btn { width: 100%; }

/* 2 · who has been on set, and what the house is */
.about { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 12vh; padding: calc(var(--header-h) + 10px) 0 var(--gutter); overflow: hidden; }
.about__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.42); }
.marquee { position: relative; overflow: hidden; }
.marquee__track { display: flex; gap: clamp(40px, 6vw, 110px); width: max-content; animation: marquee 46s linear infinite; }
.marquee__track li { flex: none; font-size: clamp(13px, 1.1vw, 17px); font-weight: 700; font-stretch: 106%; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; opacity: 0.9; }
@keyframes marquee { to { transform: translateX(-50%); } }
.is-paused .marquee__track { animation-play-state: paused; }
.about__in { position: relative; display: grid; gap: 28px; justify-items: start; padding: 0 var(--gutter); }
.statement { max-width: 27em; font-size: clamp(1.25rem, 2.25vw, 2.4rem); font-weight: 700; font-stretch: 104%; line-height: 1.06; letter-spacing: -0.01em; text-transform: uppercase; }

/* 3 · the work: a ring of films turning in space */
.work { padding-top: clamp(90px, 16vh, 190px); overflow: hidden; }
.work::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background:
  radial-gradient(circle at 78% 62%, transparent 0 21.9%, var(--line) 22% 22.1%, transparent 22.2%),
  radial-gradient(circle at 78% 62%, transparent 0 37.9%, var(--line) 38% 38.1%, transparent 38.2%),
  radial-gradient(circle at 18% 30%, transparent 0 29.9%, var(--line) 30% 30.1%, transparent 30.2%); }
.work { --r: clamp(340px, 46vw, 900px); }
.work__title { position: relative; margin: 0 auto; padding: 0 var(--gutter); text-align: center; font-size: clamp(3rem, 8.4vw, 9rem); }
.ln { display: block; }
/* a cylinder of films seen from outside: the near side faces the viewer, the far side shows through the gaps */
.ring-wrap { position: relative; z-index: 1; height: calc(var(--r) * 1.34); margin-top: calc(var(--r) * -0.3); overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ring-wrap.is-dragging { cursor: grabbing; }
.ring-wrap.is-dragging .rcard { pointer-events: none; }
.ring-stage { position: absolute; inset: 0; perspective: clamp(900px, 120vw, 2400px); transform: rotate(5deg); will-change: transform; pointer-events: none; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateY(0deg); will-change: transform; }
.rcard { position: absolute; left: 0; top: 0; display: block; width: var(--w); aspect-ratio: var(--ar); overflow: hidden; background: var(--coal-2); pointer-events: auto; transform: translate(-50%, -50%) rotateY(var(--a)) translateZ(calc(var(--r) * var(--k))) translateY(var(--y)); transition: filter 0.6s; -webkit-user-drag: none; }
.rcard.is-back { filter: brightness(0.42); pointer-events: none; }
.rcard.is-back .rcard__cap { opacity: 0; }
.ring__r { position: absolute; width: var(--r); height: 0; visibility: hidden; pointer-events: none; }
.rcard video, .rcard img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: filter 0.45s, transform 0.8s var(--ease); }
.rcard__cap { position: absolute; left: 10px; right: 10px; bottom: 8px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); transition: opacity 0.3s; }
.rcard__more { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-stretch: 106%; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0; transition: opacity 0.35s; }
.rcard__more::after { content: "↗"; position: absolute; top: 10px; right: 12px; font-size: 15px; font-weight: 400; }
.rcard:hover video, .rcard:hover img, .rcard:focus-visible video, .rcard:focus-visible img { filter: blur(9px) brightness(0.72); transform: scale(1.08); }
.rcard:hover .rcard__more, .rcard:focus-visible .rcard__more { opacity: 1; }
.rcard:hover .rcard__cap, .rcard:focus-visible .rcard__cap { opacity: 0; }
.work__foot { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: calc(var(--r) * -0.1); padding: 0 var(--gutter) var(--gutter); pointer-events: none; }
.work__foot p { max-width: 21em; font-size: 14px; line-height: 1.45; text-align: justify; }
.work__foot .btns { display: flex; gap: 8px; pointer-events: auto; }

/* 4 · what the house does */
.services { padding: clamp(100px, 17vh, 200px) var(--gutter) clamp(80px, 12vh, 150px); text-align: center; }
.services__title { font-size: clamp(2.5rem, 6.9vw, 7.4rem); }
.services__sub { max-width: 30em; margin: 26px auto 0; font-size: 14px; line-height: 1.45; text-align: justify; text-align-last: center; }
.svc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: clamp(50px, 9vh, 110px) 0 clamp(40px, 7vh, 80px); }
.svc { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4.7; overflow: hidden; border-radius: 10px; background: var(--coal); color: var(--white); }
.svc__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(16px) brightness(0.72); transform: scale(1.2); transition: filter 0.7s var(--ease), transform 1.1s var(--ease); }
.svc::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(rgba(21, 21, 21, 0), rgba(21, 21, 21, 0.85)); }
.svc__title { position: relative; z-index: 1; padding: 0 12px; font-size: clamp(1rem, 1.35vw, 1.4rem); font-weight: 800; font-stretch: 106%; line-height: 1; text-transform: uppercase; }
.svc__desc { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; font-size: 13px; line-height: 1.4; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.6s var(--ease); }
.svc:hover .svc__media, .svc:focus-within .svc__media { filter: brightness(0.8); transform: scale(1.02); }
.svc:hover .svc__desc, .svc:focus-within .svc__desc { opacity: 1; transform: none; }

/* 5 · every project, in a row */
.projects { padding: clamp(80px, 13vh, 150px) 0 clamp(70px, 11vh, 130px); overflow: hidden; }
.projects::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55; background:
  radial-gradient(circle at 0% 100%, transparent 0 39.9%, var(--line) 40% 40.08%, transparent 40.2%),
  radial-gradient(circle at 0% 100%, transparent 0 61.9%, var(--line) 62% 62.08%, transparent 62.2%),
  linear-gradient(90deg, transparent calc(59% - 0.5px), var(--line) calc(59% - 0.5px) calc(59% + 0.5px), transparent calc(59% + 0.5px)); }
.projects__title { position: relative; text-align: center; font-size: clamp(1.4rem, 2.3vw, 2.3rem); }
.tabs { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 34px 0 44px; padding: 0 var(--gutter); }
.strip { position: relative; display: flex; gap: 8px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; }
.strip.is-dragging a { pointer-events: none; }
.pcard { flex: none; width: clamp(170px, 15.5vw, 250px); -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--coal-2); }
.pcard__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pcard:hover video, .pcard:focus-visible video { transform: scale(1.05); }
.pcard__name { display: block; margin-top: 10px; font-size: 13px; }
.pcard__kind { display: block; font-size: 12px; color: var(--mute); }

/* 6 · the house, in its own words */
.house { padding: clamp(90px, 16vh, 190px) var(--gutter); text-align: center; }
.house p { max-width: 33em; margin: 0 auto; font-size: clamp(1.05rem, 1.75vw, 1.7rem); line-height: 1.3; text-align: justify; }
.house .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }

/* 7 · behind the camera */
.behind { padding: 0 var(--gutter) clamp(90px, 14vh, 170px); }
.behind__list { display: flex; justify-content: center; gap: 8px; }
.behind__list li { width: clamp(150px, 16vw, 250px); }
.behind__list img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter 0.6s; }
.behind__list li:hover img { filter: none; }
.behind__cap { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12px; }
.behind__cap span:last-child { color: var(--mute); text-align: right; }

/* 8 · the call */
.call { display: grid; grid-template-columns: 1fr 1fr; min-height: 86svh; }
.call picture { position: relative; display: block; min-height: 62svh; overflow: hidden; }
.call__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.1); }
.call__in { display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: var(--gutter) clamp(22px, 4vw, 70px); background: linear-gradient(140deg, var(--ash) 55%, #c9d2cf 78%, #d9a98f 118%); }
.call__title { font-size: clamp(2.6rem, 6.2vw, 6.6rem); }
.call__in p { max-width: 24em; font-size: 15px; }
.call__in .btn { align-self: flex-start; }

/* 9 · contact */
.contact { padding: clamp(70px, 11vh, 130px) var(--gutter) clamp(80px, 13vh, 150px); }
.contact__title { font-size: clamp(2.5rem, 8.4vw, 9rem); text-align: justify; text-align-last: justify; }
.contact__card { width: min(620px, 100%); margin: clamp(40px, 7vh, 80px) auto 0; padding: 10px 22px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); }
.contact__card li { display: grid; grid-template-columns: 7em minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact__card li:last-child { border-bottom: 0; }
.contact__card .label { color: var(--mute); }

/* 10 · footer */
.footer { padding: clamp(50px, 8vh, 90px) var(--gutter) var(--gutter); }
.footer__logo { width: min(46vw, 250px); margin: 0 auto; }
.footer__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-top: clamp(40px, 7vh, 80px); }
.footer__row a { display: inline-block; padding: 6px 0; color: var(--fg); }
.footer__family a { margin-left: 10px; }

/* opening: the page waits a beat under the curtain colour, then the line rises */
.is-intro .hero__in, .is-intro .header { opacity: 0; }
.hero__in, .header { transition: opacity 0.9s var(--ease), transform 0.6s var(--ease), color 0.4s; }

/* =========================================================
   PROJECT PAGE (trabalhos/<slug>/)
   ========================================================= */
.p-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 90px); align-items: end; min-height: 100svh; padding: calc(var(--header-h) + 16px) var(--gutter) var(--gutter); }
.p-hero__text { min-width: 0; }
.p-back { display: inline-flex; gap: 0.6em; padding: 8px 0; margin-bottom: clamp(24px, 6vh, 72px); transition: color 0.3s; }
.p-back:hover { color: var(--fg); }
.p-title { font-weight: 800; font-stretch: 106%; text-transform: uppercase; font-size: clamp(2.2rem, 5.6vw, 6.2rem); line-height: 0.92; letter-spacing: -0.02em; }
.p-sub { margin-top: 18px; font-size: clamp(1.1rem, 1.7vw, 1.6rem); font-weight: 500; line-height: 1.2; }
.p-desc { margin-top: 12px; max-width: 44ch; color: var(--mute); }
.p-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin-top: clamp(24px, 4vh, 48px); }
.p-facts > div { padding: 12px 0; border-top: 1px solid var(--line); }
.p-facts dt { margin-bottom: 4px; }
.p-reel { position: relative; height: calc(100svh - var(--header-h) - 16px - var(--gutter)); min-height: 420px; aspect-ratio: 9 / 16; overflow: hidden; background: var(--coal-2); }
.p-video { width: 100%; height: 100%; object-fit: cover; }
.p-sound { position: absolute; top: 12px; right: 12px; min-width: 0; height: 36px; background: var(--white); color: var(--black); box-shadow: none; font-weight: 600; }
.p-sound[aria-pressed="true"] { background: var(--black); color: var(--white); }

.project[data-ratio="16/9"] .p-hero { grid-template-columns: 1fr; align-items: start; min-height: 0; }
.project[data-ratio="16/9"] .p-reel { order: -1; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; max-height: 72svh; }
.project[data-ratio="16/9"] .p-back { margin-bottom: 20px; }

.p-frames { padding: clamp(60px, 8vw, 120px) var(--gutter); }
.p-frames__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.p-frame { position: relative; display: block; width: 100%; overflow: hidden; background: var(--coal-2); }
.p-frame img { width: 100%; height: auto; filter: grayscale(1) contrast(1.06); transition: transform 1s var(--ease), filter 0.4s; }
.p-frame .mono { position: absolute; left: 10px; bottom: 8px; color: var(--white); text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); }
.p-frame:hover img, .p-frame:focus-visible img { transform: scale(1.05); filter: none; }

.p-next { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 78svh; padding: var(--gutter); overflow: hidden; }
.p-next video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.4) contrast(1.1); transition: filter 0.7s; }
.p-next:hover video, .p-next:focus-visible video { filter: brightness(0.7); }
.p-next > span { position: relative; z-index: 1; }
.p-next .eyebrow { color: var(--white); }
.p-next__name { font-weight: 800; font-stretch: 106%; text-transform: uppercase; font-size: clamp(2.2rem, 8vw, 9rem); line-height: 0.92; letter-spacing: -0.02em; }
.p-next__title { margin-top: 14px; font-size: clamp(1rem, 1.5vw, 1.4rem); }

/* =========================================================
   Smaller screens
   ========================================================= */
@media (max-width: 1099px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc { aspect-ratio: 3 / 4; }
}
@media (max-width: 1023px) {
  .p-hero { grid-template-columns: 1fr; align-items: start; min-height: 0; }
  .p-reel { order: -1; justify-self: center; width: min(100%, 420px); height: auto; min-height: 0; max-height: 74svh; }
  .p-back { margin-bottom: 18px; }
  .p-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-frames__list { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding-left: var(--gutter); }
  .p-frames__list::-webkit-scrollbar { display: none; }
  .p-frames__list li { flex: none; width: 40vw; scroll-snap-align: start; }
  .project[data-ratio="16/9"] .p-frames__list li { width: 70vw; }
  .p-next { min-height: 64svh; }
}
@media (max-width: 767px) {
  :root { --header-h: 62px; }
  .header__logo { width: 78px; }
  .header__nav { display: none; }
  .header .btn { display: none; }
  .motion-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .js .menu-btn { display: inline-flex; align-items: center; height: 36px; font-size: 13px; }
  .menu-btn span { display: none; }
  .menu-btn::after { content: "Menu"; }
  .menu-btn[aria-expanded="true"]::after { content: "Fechar"; }
  .menu { position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 30px) var(--gutter) var(--gutter); background: var(--coal); color: var(--white); opacity: 0; transition: opacity 0.5s var(--ease); }
  .menu.is-open { opacity: 1; }
  .menu li a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 2rem; font-weight: 800; font-stretch: 106%; text-transform: uppercase; letter-spacing: -0.02em; }
  .menu__foot { display: flex; gap: 22px; }
  .menu__foot a { padding: 8px 0; color: var(--white); }

  .hero__in { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero__title { font-size: 10.6vw; }
  .hero__aside { width: 100%; }
  .statement { font-size: 6vw; }
  .about__in .btn { width: 100%; }
  .work__title { font-size: 13vw; }
  .work__title .ln, .contact__title .ln { display: inline; }
  .ring-wrap { margin-top: calc(var(--r) * -0.14); }
  .work__foot { flex-direction: column; align-items: stretch; margin-top: 12px; }
  .work__foot .btns { flex-direction: column; }
  .btn { min-width: 0; }
  .services__title { font-size: 11.5vw; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { aspect-ratio: 16 / 11; }
  .svc__media { filter: brightness(0.62); transform: none; }
  .svc__desc { opacity: 1; transform: none; }
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-width: 0; }
  .pcard { width: 46vw; }
  .house p { text-align: left; }
  .behind__list { justify-content: flex-start; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .behind__list::-webkit-scrollbar { display: none; }
  .behind__list li { flex: none; width: 62vw; }
  .behind__cap { flex-direction: column; gap: 0; }
  .behind__cap span:last-child { text-align: left; }
  .call { grid-template-columns: 1fr; }
  .call__title { font-size: 14vw; }
  .call__in { padding: 56px var(--gutter); }
  .call__in .btn { align-self: stretch; }
  .contact__title { font-size: 13.5vw; text-align: left; text-align-last: left; }
  .contact__card li { grid-template-columns: 5.5em minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
