/* =========================================================
   EGD × ZAPA
   Identidade: laranja e navy da EGD, papel claro, tipografia
   com caráter. Linguagem de ilha de edição: timecode,
   keyframes, waveform, letterbox, marcas de corte.
   ========================================================= */

:root {
  --orange: #cf793b;
  --orange-deep: #a85a22;
  --orange-soft: #e8a06a;
  --navy: #283f4e;
  --navy-deep: #1b2b36;
  --ink: #12171b;
  --ink-soft: #2e3840;

  --paper: #f6f4f0;
  --paper-2: #efece6;
  --white: #ffffff;
  --line: #e3dfd8;
  --line-strong: #cfc9bf;
  --muted: #5a6670;
  --muted-2: #8b949b;

  --on-dark: #f2efe9;
  --on-dark-muted: #a9b4bc;
  --line-dark: #2a343c;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(72px, 9vw, 150px);

  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Barlow Condensed", "Barlow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-film: cubic-bezier(0.65, 0, 0.1, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--orange); text-decoration: none; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--orange); color: #fff; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* =========================================================
   Base de layout
   ========================================================= */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); position: relative; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--navy, .section--grid { background: var(--ink); color: var(--on-dark); }
.section--grid { background-image: none; }
.section--paper + .section--white, .section--white + .section--paper { border-top: 1px solid var(--line); }

/* =========================================================
   Tipografia
   ========================================================= */
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: 0; text-transform: uppercase; }

h1 { font-size: clamp(56px, 8.4vw, 128px); line-height: 0.9; letter-spacing: -0.005em; }
h2 { font-size: clamp(40px, 4.8vw, 70px); line-height: 0.95; color: var(--ink); text-wrap: balance; }
.section--navy h2, .section--grid h2, .section--navy h3 { color: var(--on-dark); }

.lede { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; max-width: 52ch; }
.section--navy .lede, .section--grid .lede { color: var(--on-dark-muted); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange);
}
.eyebrow .tc { position: relative; padding-left: 16px; }
.eyebrow .tc::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 8px; height: 8px; margin-top: -4px; background: var(--orange); transform: rotate(45deg);
}
.eyebrow .rule {
  flex: 0 1 56px; height: 1px; background: currentColor; opacity: 0.45;
  transform-origin: left; transform: scaleX(0); transition: transform 0.9s var(--ease) 0.1s;
}
.is-in .eyebrow .rule { transform: scaleX(1); }

.head-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px 72px; align-items: end; }
.head-col { display: flex; flex-direction: column; gap: 20px; }

.bar { width: 40px; height: 10px; background: var(--orange); }

/* =========================================================
   Movimento
   ========================================================= */
[data-reveal] {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal="mask"] {
  clip-path: inset(50% 0 50% 0); opacity: 1; transform: none;
  transition: clip-path 1.2s var(--ease-film);
}
[data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

.line-wrap { display: block; overflow: hidden; padding: 0.16em 0 0.12em; margin: -0.16em 0 -0.12em; }
.line-wrap > span {
  display: block; transform: translate3d(0, 108%, 0);
  transition: transform 1.05s var(--ease-film); transition-delay: var(--d, 0ms);
}
.is-in .line-wrap > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .line-wrap > span { transform: none; }
}

/* =========================================================
   Chrome do player
   ========================================================= */
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--orange); z-index: 60; }
#progress::after { content: ""; position: absolute; right: 0; top: -3px; width: 2px; height: 8px; background: var(--orange); }

#cursor, #cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 70; will-change: transform; }
#cursor { width: 26px; height: 26px; margin: -13px 0 0 -13px; transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease); }
#cursor::before, #cursor::after { content: ""; position: absolute; background: var(--orange); }
#cursor::before { left: 50%; top: 0; width: 1px; height: 100%; margin-left: -0.5px; }
#cursor::after { top: 50%; left: 0; height: 1px; width: 100%; margin-top: -0.5px; }
#cursor.is-hot { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
#cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border: 1px solid var(--orange); background: transparent; }
@media (hover: none), (max-width: 900px) { #cursor, #cursor-dot { display: none; } }

.noise {
  position: fixed; inset: 0; z-index: 55; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.crop { position: absolute; width: 14px; height: 14px; border: 1px solid var(--orange); opacity: 0.9; z-index: 3; }
.crop.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.crop.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.crop.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.crop.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* =========================================================
   Nav
   ========================================================= */
nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 244, 240, 0.86);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid var(--line);
}
nav .inner { max-width: var(--container); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nav-brand { display: flex; align-items: center; gap: 16px; }
.nav-brand img { height: 40px; width: auto; mix-blend-mode: multiply; transition: height 0.35s var(--ease); }
nav.is-stuck .nav-brand img { height: 32px; }
.nav-div { width: 1px; height: 24px; background: var(--line-strong); }
.nav-x { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); flex-wrap: wrap; font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links a { color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav-links a:not(.btn):hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active { color: var(--orange); }

/* =========================================================
   Botões
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 17px 26px; position: relative; overflow: hidden;
  color: #fff; background: var(--orange); transition: color 0.4s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform 0.5s var(--ease-film); }
.btn:hover::before { transform: translateY(0); }
.btn--ghost { background: transparent; border: 1px solid rgba(242, 239, 233, 0.28); color: var(--on-dark); }
.btn--ghost::before { background: var(--orange); }
.btn--ghost-white { background: transparent; border: 1px solid #fff; color: #fff; }
.btn--ghost-white::before { background: var(--ink); }
.btn--navy { background: var(--ink); }
.btn--navy::before { background: #fff; }
.btn--navy:hover { color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 16px; }

/* =========================================================
   Hero
   ========================================================= */
#hero { position: relative; overflow: hidden; background: var(--ink); }
#hero canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; }
#hero .container { position: relative; z-index: 2; padding-top: clamp(56px, 7vw, 104px); }

.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); }
h1 .accent { color: var(--orange); position: relative; display: inline-block; }
h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; animation: wipe 1s var(--ease-film) 0.9s forwards;
}
@keyframes wipe { to { transform: scaleX(1); } }
.hero-copy p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--on-dark-muted); margin: 0; max-width: 52ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-frame { position: relative; aspect-ratio: 4/3; width: 100%; border: 1px solid var(--line-dark); background: #0b0e11; }
.hero-frame .media { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0b0e11; }
.hero-frame .media::before, .hero-frame .media::after { content: ""; position: absolute; left: 0; right: 0; height: 9%; background: #0b0e11; z-index: 2; pointer-events: none; }
.hero-frame .media::before { top: 0; }
.hero-frame .media::after { bottom: 0; }
.hero-frame .media video, .hero-frame .media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.hero-tag {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: rgba(11, 14, 17, 0.72); color: var(--on-dark);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; padding: 7px 10px;
  display: flex; align-items: center; gap: 8px; backdrop-filter: blur(6px);
}
.hero-tag i { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; animation: rec 1.6s infinite; }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.1; } }

.scrub { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; height: 3px; background: rgba(242, 239, 233, 0.22); }
.scrub i { display: block; height: 100%; width: 0; background: var(--orange); }
.scrub b {
  position: absolute; right: 0; bottom: 10px; font-weight: 400;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--on-dark-muted);
}

.slot {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(242, 239, 233, 0.4); border: 1px dashed rgba(242, 239, 233, 0.15);
}
.slot small { opacity: 0.55; font-size: 9px; letter-spacing: 0.06em; text-transform: none; }
.slot--light { color: var(--muted-2); border-color: var(--line-strong); }

.hero-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); border-top: 1px solid var(--line-dark); }
.hero-strip > div { padding: 22px 22px 28px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line-dark); }
.hero-strip > div:first-child { padding-left: 0; }
.hero-strip > div:last-child { border-right: 0; }
.hero-strip .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted-2); }
.hero-strip .v { font-family: var(--display); font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: 0; }

.scroll-hint { display: flex; align-items: center; gap: 12px; padding: 0 0 26px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted-2); }
.scroll-hint i { width: 1px; height: 30px; background: var(--line-dark); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--orange); animation: drop 2s var(--ease) infinite; }
@keyframes drop { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* =========================================================
   01 Projeto
   ========================================================= */
.projeto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(32px, 5vw, 88px); }
.projeto-text { display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.projeto-text p { margin: 0; }
.projeto-text .strong { color: var(--ink); font-weight: 500; font-size: 19px; border-left: 2px solid var(--orange); padding-left: 18px; }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.nums > div { display: flex; flex-direction: column; gap: 2px; background: transparent; padding: 0; }
.nums .n { font-family: var(--display); font-size: clamp(34px, 3.4vw, 48px); font-weight: 700; letter-spacing: 0; color: var(--ink); }
.nums .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }

/* =========================================================
   Local
   ========================================================= */
.locais { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.local-card .frame { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.local-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.local-card:hover .frame img { transform: scale(1.04); }
.local-card .legenda { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted-2); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }

.ficha { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ficha .r { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ficha .r span:first-child { color: var(--muted); }
.ficha .r span:last-child { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink); }
.ficha--row { flex-direction: row; flex-wrap: wrap; border-top: 1px solid var(--line); background: transparent; gap: 0; }
.ficha--row .r { flex: 1 1 200px; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 0; border-bottom: 0; }

/* =========================================================
   02 Imersão
   ========================================================= */
.dias { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.dia { background: var(--ink); display: flex; flex-direction: column; position: relative; transition: background 0.35s; }
.dia::after { display: none; }
.dia:hover { background: #171d22; }
.dia::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-film); z-index: 2;
}
.dia:hover::before { transform: scaleX(1); }
.dia-head { padding: 24px; border-bottom: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 10px; }
.dia-head .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dia-head .c { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--orange); }
.dia-head .d { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); }
.dia-head .t { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: 0; line-height: 1; text-transform: uppercase; }
.dia-head .f { font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); }
.pessoa { padding: 15px 24px; border-bottom: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 5px; animation: pop 0.45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.pessoa .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pessoa .fn { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.pessoa .h { font-family: var(--mono); font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.pessoa .faz { font-size: 13px; line-height: 1.55; color: var(--on-dark-muted); text-wrap: pretty; }
.dia-total { margin-top: auto; padding: 15px 24px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--orange); }

.kit-wrap { display: flex; flex-direction: column; gap: 22px; margin-top: 12px; }
.kit-head { display: flex; flex-direction: column; gap: 12px; }
.kit-head h3 { font-size: clamp(28px, 2.8vw, 38px); font-weight: 700; letter-spacing: 0; color: var(--on-dark); text-transform: uppercase; }
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.kit-item { background: var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: background 0.3s; position: relative; }
.kit-item:hover { background: #171d22; }
.kit-item .kn { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.kit-item .kd { font-size: 13px; line-height: 1.55; color: var(--on-dark-muted); }

/* =========================================================
   03 Entregas
   ========================================================= */
.entregas { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.entrega {
  display: grid; grid-template-columns: minmax(80px, 110px) minmax(70px, 110px) minmax(0, 1.1fr) minmax(0, 2fr);
  gap: clamp(12px, 2.2vw, 36px); padding: 28px 0; border-bottom: 1px solid var(--line);
  align-items: baseline; position: relative; transition: padding-left 0.5s var(--ease);
}
.entrega::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--orange); transition: width 0.6s var(--ease-film); z-index: 1; }
.entrega:hover { padding-left: 14px; }
.entrega:hover::before { width: 100%; }
.entrega .cod { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted-2); }
.entrega .qtd { font-family: var(--display); font-size: clamp(32px, 3.2vw, 46px); font-weight: 700; letter-spacing: 0; color: var(--orange); line-height: 1; }
.entrega .nome { font-family: var(--display); font-size: clamp(21px, 1.9vw, 27px); font-weight: 600; letter-spacing: 0.01em; line-height: 1.12; color: var(--ink); text-transform: uppercase; }
.entrega .desc { font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
@media (max-width: 1020px) {
  .entrega { grid-template-columns: 80px 80px minmax(0, 1fr); row-gap: 10px; align-items: center; }
  .entrega .desc { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .entrega { grid-template-columns: 64px minmax(0, 1fr); }
  .entrega .nome { grid-column: 2; }
}

/* =========================================================
   04 Formatos
   ========================================================= */
.formatos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.formato { border: 0; background: var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 12px; position: relative; transition: background 0.35s; overflow: hidden; }
.formato::before { display: none; }
.formato:hover { background: #171d22; }
.formato::after { content: ""; position: absolute; left: 28px; bottom: 0; height: 2px; width: 0; background: var(--orange); transition: width 0.5s var(--ease-film); }
.formato:hover::after { width: calc(100% - 56px); }
.formato .meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; }
.formato .meta .tipo { color: var(--orange); }
.formato .meta .rede { color: var(--muted-2); }
.formato h3 { font-size: 28px; line-height: 1.05; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.formato p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--on-dark-muted); text-wrap: pretty; }

/* =========================================================
   05 Estúdio
   ========================================================= */
.estudio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: center; }
.retratos { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.retrato { position: relative; aspect-ratio: 3/4; background: var(--paper-2); overflow: hidden; }
.retrato:nth-child(2) { margin-top: 40px; }
.retrato:nth-child(3) { margin-top: 80px; }
.retrato img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.retrato:hover img { transform: scale(1.05); }

/* =========================================================
   06 Portfólio
   ========================================================= */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.case { display: flex; flex-direction: column; gap: 12px; }
.case .frame { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.case .frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.case .cap { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 11px; text-decoration: none; transition: border-color 0.3s; }
.case .cap:hover { border-color: var(--orange); }
.case .cap .t { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); text-transform: uppercase; }
.case .cap .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--orange); white-space: nowrap; }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; background: var(--paper); }
.marquee .track {
  display: flex; gap: 40px; width: max-content; animation: slide 46s linear infinite;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.marquee .track span { display: flex; align-items: center; gap: 40px; }
.marquee .track em { font-style: normal; color: var(--orange); }
@keyframes slide { to { transform: translateX(-50%); } }

/* =========================================================
   07 Cronograma — timeline de edição
   ========================================================= */
.timeline-head { position: relative; height: 22px; border-bottom: 1px solid var(--line); }
.timeline-head .ticks { position: absolute; inset: 0; background-image: linear-gradient(90deg, var(--line-strong) 1px, transparent 1px); background-size: 28px 100%; opacity: 0.7; }
.timeline-head .play { position: absolute; top: 0; bottom: -4px; width: 1px; background: var(--orange); left: 0; }
.timeline-head .play::before { content: ""; position: absolute; top: 0; left: -5px; width: 11px; height: 8px; background: var(--orange); }

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 2px; position: relative; }
.etapa { padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 10px; position: relative; border-top: 0; background: var(--paper-2); transition: background 0.35s; }
.etapa:hover { background: var(--white); }
.etapa.on { background: var(--ink); }
.etapa.on .data { color: var(--orange-soft); }
.etapa.on .item { color: var(--on-dark); }
.etapa .dot { width: 9px; height: 9px; background: var(--muted-2); margin: 0; transform: rotate(45deg); transition: background 0.3s, transform 0.4s var(--ease); }
.etapa.on .dot { background: var(--orange); }
.etapa:hover .dot { transform: rotate(45deg) scale(1.5); }
.etapa .data { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted-2); }
.etapa .item { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.12; color: var(--ink); text-transform: uppercase; }

/* =========================================================
   08 Investimento
   ========================================================= */
.invest { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start; }
.mods { display: flex; flex-direction: column; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.mod {
  all: unset; box-sizing: border-box; cursor: pointer; background: var(--ink); border: 0; padding: 24px;
  display: flex; justify-content: space-between; gap: 20px; align-items: flex-start;
  transition: background 0.25s; position: relative;
}
.mod::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease-film); }
.mod.is-on::before, .mod.is-base::before { transform: scaleY(1); }
.mod:hover { background: #171d22; transform: none; }
.mod:focus-visible { outline: 1px solid var(--orange); outline-offset: -1px; }
.mod.is-on, .mod.is-base { background: #171d22; }
.mod.is-base { cursor: default; }
.mod .left { display: flex; gap: 16px; align-items: flex-start; }
.mod .check {
  width: 16px; height: 16px; flex: none; border: 1px solid var(--muted-2); margin-top: 3px;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  font-size: 10px; font-weight: 700; transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.mod.is-on .check { background: var(--orange); border-color: var(--orange); color: #fff; }
.mod .cod { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted-2); }
.mod.is-base .cod { color: var(--orange); }
.mod .nome { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; }
.mod .desc { font-size: 13px; line-height: 1.55; color: var(--on-dark-muted); }
.mod .body { display: flex; flex-direction: column; gap: 7px; }
.mod .preco { font-family: var(--mono); font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--muted-2); transition: color 0.25s; }
.mod.is-on .preco, .mod.is-base .preco { color: var(--on-dark); }

.resumo { background: var(--paper); color: var(--ink); padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; gap: 22px; position: sticky; top: 92px; }
.resumo .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.resumo .head .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.resumo .head .b { width: 32px; height: 8px; background: var(--orange); }
.resumo .linhas { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.resumo .linha { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 9px; animation: pop 0.3s var(--ease) both; }
.resumo .linha .v { font-family: var(--mono); font-size: 13px; white-space: nowrap; color: var(--muted); }
.resumo .tot-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.resumo .total { font-family: var(--display); font-size: clamp(52px, 5.4vw, 72px); font-weight: 700; letter-spacing: 0; line-height: 0.95; color: var(--ink); font-variant-numeric: tabular-nums; }
.resumo .economia { font-size: 13px; color: var(--orange-deep); font-weight: 500; margin-top: 4px; }
.resumo .cond { font-size: 13px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* =========================================================
   Aprovar + rodapé
   ========================================================= */
#aprovar { background: var(--orange); color: #fff; position: relative; overflow: hidden; }
#aprovar .container {
  padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 32px 72px; align-items: end; position: relative; z-index: 1;
}
#aprovar h2 { font-size: clamp(48px, 6.4vw, 96px); line-height: 0.9; color: #fff; letter-spacing: -0.005em; }
#aprovar p { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
#aprovar .col { display: flex; flex-direction: column; gap: 22px; }
#aprovar .actions { display: flex; gap: 10px; flex-wrap: wrap; }

footer { background: var(--ink); color: var(--muted-2); }
footer .inner { max-width: var(--container); margin: 0 auto; padding: 28px var(--gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; }

.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  background: var(--ink); color: var(--on-dark);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; border: 1px solid var(--orange);
  transform: translateY(140%); transition: transform 0.6s var(--ease), background 0.3s, color 0.3s;
}
.wa.is-vis { transform: none; }
.wa:hover { background: var(--orange); color: #fff; }

/* valor fechado: cards de escopo, sem clique */
.mod.is-fixed { cursor: default; }
.mod.is-fixed:hover { background: #171d22; }
.mod.is-fixed .preco { font-size: 10px; letter-spacing: 0.16em; color: var(--orange); }

/* =========================================================
   Capa de abertura
   ========================================================= */
#capa {
  min-height: 100svh; background: var(--ink); color: var(--on-dark);
  display: flex; align-items: stretch; position: relative; overflow: hidden;
}
#capa::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(242,239,233,.05) 1px, transparent 1px);
  background-size: 28px 100%;
}
.capa-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: 36px; padding-bottom: 36px; width: 100%; position: relative; z-index: 1; }
.capa-top { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--muted-2); }
.capa-top img { height: 34px; width: auto; filter: invert(1) grayscale(1) contrast(1.35); mix-blend-mode: screen; opacity: 0.92; }
#capa h1 { font-size: clamp(50px, 8vw, 118px); line-height: 0.9; letter-spacing: -0.005em; max-width: 20ch; }
#capa h1 em { font-style: normal; font-weight: 500; color: var(--orange); text-transform: none; }
.capa-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted-2); }
.capa-cta { display: flex; align-items: center; gap: 12px; color: var(--orange); }
.capa-cta i { width: 1px; height: 26px; background: var(--line-dark); position: relative; overflow: hidden; }
.capa-cta i::after { content: ""; position: absolute; inset: 0; background: var(--orange); animation: drop 2s var(--ease) infinite; }

/* fonte dos dados */
.fonte { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); margin-top: 4px; }

/* =========================================================
   Preparação e condições
   ========================================================= */
.prep { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--ink); }
.prep-item { background: var(--paper); padding: 24px 22px 28px; display: flex; flex-direction: column; gap: 10px; transition: background 0.35s; }
.prep-item:hover { background: var(--white); }
.prep-item .pn { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--orange); }
.prep-item .pi { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.12; color: var(--ink); text-transform: uppercase; }
.prep-item .pd { font-size: 14px; line-height: 1.55; color: var(--muted); }

.cond-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; }
.cond-item { display: flex; flex-direction: column; gap: 5px; }
.cond-item .ck { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.cond-item .cv { font-size: 15px; line-height: 1.45; color: var(--ink); }

/* HUD de câmera no bloco de equipamento */
.hud { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted-2); }
.hud span { border: 1px solid var(--line-dark); padding: 5px 9px; }
.hud .rec { color: var(--orange); border-color: var(--orange); display: flex; align-items: center; gap: 7px; }
.hud .rec::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); animation: rec 1.6s infinite; }

/* rodapé confidencial */
footer .conf { border-top: 1px solid var(--line-dark); padding-top: 18px; margin-top: -8px; }
footer .conf span { max-width: 90ch; line-height: 1.7; letter-spacing: 0.06em; text-transform: none; font-size: 10px; }

/* =========================================================
   Propósito, intuito e objetivo
   ========================================================= */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--ink); }
.trio-item { background: var(--white); padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 12px; transition: background 0.35s; }
.trio-item:hover { background: var(--paper); }
.trio-item .tk { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--orange); }
.trio-item .tt { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.1; color: var(--ink); text-transform: uppercase; }
.trio-item .td { font-size: 14px; line-height: 1.6; color: var(--muted); }

.contatos { display: flex; flex-direction: column; gap: 14px; }
.contatos .ck { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted-2); }
.contatos .cl { display: flex; flex-wrap: wrap; gap: 8px; }
.contatos .cl span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink);
  border: 1px solid var(--line-strong); padding: 7px 11px; transition: border-color 0.3s, color 0.3s;
}
.contatos .cl span:hover { border-color: var(--orange); color: var(--orange); }

/* faixa de ato no card de dia */
.dia-head .ato {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
  color: var(--orange); border-bottom: 1px solid var(--line-dark);
  padding-bottom: 10px; margin-bottom: 2px;
}
.dia-head .ato em { font-style: normal; color: var(--muted-2); letter-spacing: 0.12em; }

/* =========================================================
   Imagem de fundo dos banners
   ========================================================= */
.bg-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-media img { width: 100%; height: 100%; object-fit: cover; }

/* escuro: foto bem apagada, só como textura de profundidade */
#capa .bg-media img, #hero .bg-media img,
#imersao .bg-media img, #formatos .bg-media img, #investimento .bg-media img {
  opacity: 0.17; filter: grayscale(0.7) contrast(1.1);
}
#capa .bg-media::after, #hero .bg-media::after,
#imersao .bg-media::after, #formatos .bg-media::after, #investimento .bg-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,23,27,.7) 0%, rgba(18,23,27,.92) 70%, var(--ink) 100%);
}

/* laranja: foto em multiply, a cor da marca continua mandando */
#aprovar .bg-media img { opacity: 0.3; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
#aprovar .bg-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(207,121,59,.55), rgba(207,121,59,.1));
}

.has-bg > .container, .has-bg .capa-inner { position: relative; z-index: 1; }
#imersao.has-bg, #formatos.has-bg, #investimento.has-bg, #aprovar.has-bg { overflow: hidden; }

/* enquadramentos diferentes para a mesma foto de campo não repetir igual */
#capa .bg-media img { object-position: 50% 35%; }
#formatos .bg-media img { object-position: 50% 70%; transform: scaleX(-1); }
#aprovar .bg-media img { object-position: 50% 50%; }
