/* Fundo Falso — transplante estrutural de figurefilm.co.uk
   Tokens medidos na captura (design-system.md), não inventados:
   tinta #fcf8c9 · azul #2c54c7 (6.07:1) · carvão #080808 (18.51:1)
   linhas rgba(tinta, .125) · grão 6% · escala 288/60/40/24/12/9 · gutter 20 */

:root {
  --ink: #fcf8c9;
  --blue: #2c54c7;
  --carbon: #080808;
  --line: rgba(252, 248, 201, .125);
  --gutter: 20px;

  --ease: cubic-bezier(.25, .1, .25, 1);      /* transições 0.5s medidas */
  --ease-out: cubic-bezier(.25, 1, .5, 1);    /* Reveal gFkFhL */

  --f-display: "Anybody", "Arial Narrow", sans-serif;
  --f-mono: "PT Mono", ui-monospace, monospace;

  /* colunas da grade: flex-basis medido nos 7 cases */
  --c1: 13.45%; --c2: 14.2%; --c3: 12.4%; --c4: 12.01%;
  --c5: 5.29%;  --c6: 7.06%; --c7: 35.7%;

  /* largura útil e altura do logotipo (viewBox 1880x340) */
  --inner: calc(100vw - var(--gutter) * 2);
  --logo-h: calc(var(--inner) * .180851);
  --compact: .1436;                            /* 270px / 1880px na captura */

  /* 288px a 1920 */
  --h1: calc(var(--inner) * .15319);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--ink);
  font-family: var(--f-display);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p, h2, h3, address { margin: 0; font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: var(--gutter); top: -60px; z-index: 200;
  background: var(--ink); color: var(--carbon);
  font: 12px/1 var(--f-mono); padding: 10px;
}
.skip:focus { top: var(--gutter); }

/* tipos base ----------------------------------------------------------- */
.mono { font: 400 12px/14.4px var(--f-mono); }
.mono--bold { font-weight: 700; }
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  text-transform: uppercase;
}

/* grão: ruído declarado em SVG (o PNG do original não vem junto) -------- */
.grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain--live { inset: -50%; animation: grain 8s steps(10) infinite; }
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 7%); }
  80% { transform: translate(6%, -2%); }
}

/* grade de proporções (Lines) ------------------------------------------ */
.grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; padding: 0 var(--gutter);
}
.grid-lines > span { position: relative; flex: 1 1 var(--c1); overflow: hidden; }
.grid-lines > span:nth-child(2) { flex-basis: var(--c2); }
.grid-lines > span:nth-child(3) { flex-basis: var(--c3); }
.grid-lines > span:nth-child(4) { flex-basis: var(--c4); }
.grid-lines > span:nth-child(5) { flex-basis: var(--c5); }
.grid-lines > span:nth-child(6) { flex-basis: var(--c6); }
.grid-lines > span:nth-child(7) { flex-basis: var(--c7); }
.grid-lines > span::before,
.grid-lines > span:last-child::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px;
  background: var(--line);
  transform-origin: 50% 0;
}
.grid-lines > span:last-child::after { left: auto; right: 0; }
.grid-lines em {
  position: absolute; left: 10px;
  font: 400 10px/1 var(--f-mono); font-style: normal;
  color: var(--ink);
}
.grid-lines--hero em { bottom: 18px; }
.grid-lines--footer em { top: 2px; }

/* entrada das linhas: bDdKQe (height 0→100%, 800ms) refeito em scaleY;
   números: euKHWr (translateY 30px→0, 800ms) */
@media (prefers-reduced-motion: no-preference) {
  .grid-lines--hero > span::before,
  .grid-lines--hero > span:last-child::after {
    animation: line-grow .8s var(--ease) both;
    animation-delay: calc(.1s * var(--n, 0));
  }
  .grid-lines--hero em { animation: num-rise .8s var(--ease) both; animation-delay: calc(.3s + .1s * var(--n, 0)); }
  .grid-lines > span:nth-child(2) { --n: 1; } .grid-lines > span:nth-child(3) { --n: 2; }
  .grid-lines > span:nth-child(4) { --n: 3; } .grid-lines > span:nth-child(5) { --n: 4; }
  .grid-lines > span:nth-child(6) { --n: 5; } .grid-lines > span:nth-child(7) { --n: 6; }
}
@keyframes line-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes num-rise { from { transform: translateY(30px); } to { transform: translateY(0); } }

/* 01 · MENU ------------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: 0; pointer-events: none;
}
.nav a, .nav button { pointer-events: auto; }
.nav__logo {
  position: absolute; top: var(--gutter); left: var(--gutter); right: var(--gutter);
  display: block;
  transform-origin: 50% 0;
  transition: transform .5s var(--ease);
}
.logo { width: 100%; height: auto; overflow: visible; }
.logo__l {
  fill: var(--ink);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 462px;
  font-variation-settings: "wdth" var(--w, 100);
}
.logo__bar { fill: var(--ink); }
/* cCOioF: cada letra cai de cima, 400ms, em escada de 50ms até 0.95s */
@media (prefers-reduced-motion: no-preference) {
  .logo__l, .logo__bar {
    animation: drop .4s var(--ease) both;
    animation-delay: calc(.5s + .05s * var(--i));
  }
}
@keyframes drop { from { transform: translateY(-1400px); } to { transform: translateY(0); } }

.nav__bar {
  position: absolute; left: var(--gutter); right: var(--gutter);
  top: calc(var(--gutter) + var(--logo-h) + 4px);
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.nav__row {
  display: flex; justify-content: space-between; align-items: center;
  height: 27px;
}
@media (prefers-reduced-motion: no-preference) {
  .nav__row { animation: rise 1s var(--ease-out) 1.1s both; }
}
.nav__links { display: flex; gap: 20px; }
.nav__links a {
  display: block;
  font: 800 24px/27px var(--f-display);
  font-variation-settings: "wdth" 72;
  text-transform: uppercase;
}
.nav__links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* estado recolhido: o logotipo desce a 14,36% e a barra sobe junto */
.is-scrolled .nav__logo { transform: scale(var(--compact)); }
.is-scrolled .nav__bar { transform: translateY(calc(var(--logo-h) * (var(--compact) - 1))); }

.nav__burger { display: none; align-items: center; gap: 4px; height: 27px; }
.nav__burger span { font: 400 12px/1 var(--f-mono); text-transform: uppercase; }
.nav__burger i {
  display: block; width: 48px; height: 27px;
  background:
    linear-gradient(currentColor 0 0) 16px 7px / 17px 1px no-repeat,
    linear-gradient(currentColor 0 0) 16px 13px / 17px 1px no-repeat,
    linear-gradient(currentColor 0 0) 16px 19px / 17px 1px no-repeat;
}

.menu-mobile {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  background: var(--carbon);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.menu-mobile[hidden] { display: none; }
.menu-mobile.is-open { opacity: 1; transform: none; }
.menu-mobile > a {
  position: relative; z-index: 1;
  font: 800 40px/45px var(--f-display); font-variation-settings: "wdth" 72;
  text-transform: uppercase;
}
.menu-mobile__last { margin-bottom: 10px; }
.menu-mobile .nav__links { position: relative; z-index: 1; }

/* 02 · HERO ------------------------------------------------------------ */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
@media (prefers-reduced-motion: no-preference) {
  .hero__media { animation: fade 1s ease-in-out 1s both; }   /* jBcSpD */
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero__btn {
  position: absolute; z-index: 10; left: 50%;
  top: calc(var(--gutter) + var(--logo-h) + 62px);
  transform: translateX(-50%);
  overflow: hidden;
  transition: opacity .5s var(--ease);
}
.is-scrolled .hero__btn { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero__btn > .btn { animation: rise 1s var(--ease-out) 1.3s both; }
}

.hero__text {
  position: absolute; z-index: 2; right: var(--gutter); bottom: var(--gutter);
  width: 320px; max-width: calc(100% - var(--gutter) * 2);
  text-align: right;
}
.hero__text p { text-transform: uppercase; }

/* reveal por máscara (Reveal__Wrapper + gFkFhL: 110% → 0) */
.reveal { display: block; overflow: hidden; }
.reveal__in { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero__text .reveal__in { animation: rise 1s var(--ease-out) 1.2s both; }
  html.js .reveal__in[data-io] { transform: translateY(110%); transition: transform 1s var(--ease-out); }
  html.js .reveal__in[data-io].is-in { transform: none; }
  html.js .reveal + .reveal .reveal__in[data-io] { transition-delay: .12s; }
  html.js .seal[data-io], html.js svg[data-io] { opacity: 0; transition: opacity 1s var(--ease); }
  html.js .seal[data-io]:nth-child(2) { transition-delay: .1s; }
  html.js .seal[data-io]:nth-child(3) { transition-delay: .2s; }
  html.js .seal[data-io]:nth-child(4) { transition-delay: .3s; }
  html.js .seal[data-io].is-in, html.js svg[data-io].is-in { opacity: 1; }
}
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }

/* botão com contorno recortado (Btn) ---------------------------------- */
.btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 279px; height: 46px;
  color: var(--ink);
}
.btn__frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: var(--ink); stroke-width: 1; overflow: visible;
}
.btn__frame path { vector-effect: non-scaling-stroke; }
.btn__side {
  position: absolute; top: 50%; transform: translateY(-50%);
  font: 400 10px/1 var(--f-mono);
}
.btn__side--l { left: 16px; }
.btn__side--r { right: 16px; }
.btn__label { display: block; height: 46px; overflow: hidden; }
.btn__label > span {
  display: block;
  font: 800 24px/46px var(--f-display); font-variation-settings: "wdth" 72;
  text-transform: uppercase;
  transition: transform .3s ease-in-out;
}
.btn:hover .btn__label > span,
.btn:focus-visible .btn__label > span { transform: translateY(-100%); }

/* 03 · CASES ----------------------------------------------------------- */
.featured {
  position: relative;
  background: var(--blue);
  overflow: hidden;
}
.featured > *:not(.grain) { position: relative; z-index: 1; }
.featured__top { padding: 0 var(--gutter) 40px; }
.featured__top > .grid-lines { position: absolute; z-index: 0; }

.featured__title {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-top: calc(var(--h1) * -.0533);
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  font-size: var(--h1);
  line-height: .86;
  text-transform: uppercase;
}
.featured__title > .reveal:first-child { margin-left: -.03em; }
.featured__title > .reveal:last-child { margin-top: .733em; margin-right: -.02em; }
.featured__title .reveal { padding-top: .06em; }

.seals {
  position: absolute; z-index: 2; top: calc(var(--h1) * .2); right: var(--gutter);
  display: flex; gap: 20px;
}
.seal { width: 100px; height: 50px; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal line, .seal ellipse, .seal rect, .seal path,
.footer__seal path { stroke: var(--ink); stroke-width: 1; fill: none; }
.s-disp {
  fill: var(--ink); font-family: var(--f-display); font-weight: 900; font-style: italic;
  font-variation-settings: "wdth" 80;
}
.s-mono { fill: var(--ink); font-family: var(--f-mono); }
.s-thin {
  fill: var(--ink); font-family: var(--f-display); font-weight: 300;
  font-variation-settings: "wdth" 120;
}

.featured__lede {
  position: relative; z-index: 1;
  width: 320px; max-width: 100%;
  margin: 40px 0 0;
  text-transform: uppercase;
}

.works {
  display: flex;
  height: 700px;
  padding: 0 var(--gutter);
}
.work {
  position: relative; overflow: hidden; min-width: 0;
  flex: 1 1 var(--c1);
  border-left: 1px solid var(--line);
  border-block: 1px solid var(--line);
  outline-offset: -4px;
  /* anima flex, que é layout: exceção declarada — disparo único por
     interação, faixa isolada de 700px, filhos todos absolutos */
  transition: flex .5s var(--ease);
}
.work:nth-child(2) { flex-basis: var(--c2); }
.work:nth-child(3) { flex-basis: var(--c3); }
.work:nth-child(4) { flex-basis: var(--c4); }
.work:nth-child(5) { flex-basis: var(--c5); }
.work:nth-child(6) { flex-basis: var(--c6); }
.work:nth-child(7) { flex-basis: var(--c7); border-right: 1px solid var(--line); }

.work__media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.work__info {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 20px;
}
.work__title {
  flex: none; width: 420px;
  font: 800 60px/54px var(--f-display); font-variation-settings: "wdth" 72;
  text-transform: uppercase; text-align: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.work__mid { display: flex; justify-content: space-between; align-self: stretch; }
.work__num { opacity: .5; }
.work__type { opacity: 0; transition: opacity .3s var(--ease); }

@media (hover: hover) and (min-width: 900px) {
  .work:hover, .work:focus-visible { flex: 1 1 64.3%; }
  .work:hover .work__media, .work:focus-visible .work__media { opacity: 1; transition: opacity .5s var(--ease) .2s; }
  .work:hover .work__type, .work:focus-visible .work__type { opacity: 1; transition: opacity .5s var(--ease) .2s; }
  .work:hover .work__title, .work:focus-visible .work__title {
    opacity: 1; transform: none;
    transition: opacity .5s var(--ease) .3s, transform .5s var(--ease) .3s;
  }
}

.featured__bottom { display: flex; justify-content: flex-end; }
.featured__btn {
  display: flex; justify-content: center;
  width: calc(var(--inner) * .357 + var(--gutter) * 2);
  padding: 80px var(--gutter);
}

/* 04 · RODAPÉ ---------------------------------------------------------- */
.footer {
  position: relative; overflow: hidden;
  background: var(--carbon);
  padding: 20px 0;
}
.footer__inner {
  position: relative; z-index: 2;
  display: flex; align-items: stretch;
  min-height: 267px;
  padding: 0 var(--gutter);
}
.footer__title {
  flex: 0 0 calc(var(--c1) + var(--c2) + var(--c3));
  display: flex; flex-direction: column; justify-content: space-between;
}
.footer__mark { width: 170px; height: 61px; overflow: visible; }
.footer__h {
  font: 800 60px/54px var(--f-display); font-variation-settings: "wdth" 72;
  text-transform: uppercase;
}
.footer__credit {
  flex: 0 0 calc(var(--c4) + var(--c5) + var(--c6));
  align-self: flex-end;
  font: 400 9px/10px var(--f-mono);
}
.footer__info {
  width: 240px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.footer__lead { margin-bottom: 20px; }
.footer__info a:hover { text-decoration: underline; }
.footer__seal { width: 120px; height: 46px; margin: 40px 0; overflow: visible; }
.footer__company { margin-bottom: 20px; }

/* abaixo de 1920 a captura não tem layout: daqui para baixo é adaptação --- */
@media (max-width: 1100px) {
  .grid-lines em { font-size: 9px; left: 6px; }
}

@media (max-width: 899px) {
  :root { --compact: .56; }

  .nav__row .nav__links { display: none; }
  .nav__row { justify-content: flex-end; }
  .nav__burger { display: inline-flex; }
  .nav__bar { top: calc(var(--gutter) + var(--logo-h) + 8px); }

  .hero__btn { top: calc(var(--gutter) + var(--logo-h) + 70px); }

  .grid-lines em { display: none; }

  .featured__title { margin-top: 0; padding-top: 12px; }
  .seals {
    position: relative; top: auto; right: auto;
    flex-wrap: wrap; gap: 12px; margin-top: 24px;
  }
  .seal { width: 76px; height: 38px; }
  .featured__lede { margin-top: 24px; }

  .works { flex-direction: column; height: auto; }
  .work, .work:nth-child(n) {
    flex: none; min-height: 240px;
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
    border-block: 0; border-top: 1px solid var(--line);
  }
  .work:last-child { border-bottom: 1px solid var(--line); }
  .work__media { opacity: .55; }
  .work__title { width: auto; font-size: 34px; line-height: 32px; opacity: 1; transform: none; }
  .work__info > .work__title:last-child { display: none; }
  .work__info { justify-content: flex-end; align-items: flex-start; gap: 16px; }
  .work__title { text-align: left; order: 2; }
  .work__type { opacity: 1; }

  .featured__btn { width: 100%; padding: 60px var(--gutter); }

  .footer__inner { flex-direction: column; gap: 40px; }
  .footer__title { flex: none; gap: 60px; }
  .footer__credit { flex: none; order: 3; align-self: flex-start; }
  .footer__info { width: 100%; max-width: 320px; }
  .footer__seal { margin: 30px 0; }
}

@media (max-width: 420px) {
  .footer__h { font-size: 48px; line-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
