/* ============================================================
   Isabelle Carvalho — V3 "O manual da marca"
   Papel creme, filete vinho, laranja só para ação.
   ============================================================ */
:root {
  --paper: #f2efeb;
  --wine: #651515;
  --orange: #fa6900;
  --black: #000;
  --ink: #1b1514;
  --rule: rgba(101, 21, 21, .55);
  --hair: 1px solid var(--rule);

  --m: clamp(20px, 2.9vw, 40px);            /* margem da página */
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --voice: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sign: "Instrument Serif", "Bodoni Moda", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 400; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.voice { font-family: var(--voice); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

/* ---------- fólio (cabeçalho de capítulo) ---------- */
.folio {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 14px; border-bottom: var(--hair);
  font-size: clamp(14px, 1.3vw, 19px); font-weight: 500; color: var(--wine);
}
.folio b { font-weight: 700; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  border: 1.5px solid var(--orange); color: var(--orange);
  font-weight: 700; font-size: clamp(13px, 1.1vw, 16px); letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; background: rgba(242,239,235,.9);
  transition: background-color .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--orange); color: #fff; }
.btn--light { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn--light:hover, .btn--light:focus-visible { background: var(--paper); color: var(--orange); }

/* ============ 01 CAPA ============ */
.cover {
  position: relative;
  display: grid; grid-template-columns: 60.6% 1fr;
  height: 100svh; min-height: 640px; max-height: 1100px;
}
.cover__page {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: var(--m) var(--m) 0; min-width: 0; min-height: 0;
}
.cover__page .folio { border-bottom-color: var(--rule); }
.cover__mark { display: flex; align-items: center; min-height: 0; padding: clamp(10px, 2vh, 24px) 0; }
.mark { width: 100%; height: 100%; overflow: visible; }
.mark__grid line { stroke: rgba(101,21,21,.16); stroke-width: 1; }
.mark__dims .draw { stroke: var(--wine); stroke-width: 1.6; fill: none; }
.mark__labels text { font-family: var(--sans); font-size: 17px; font-weight: 500; fill: var(--wine); }
.mark__a { font-family: var(--sans); font-weight: 800; font-size: 300px; fill: var(--wine); letter-spacing: -14px; }
.mark__b { font-family: var(--sign); font-style: italic; font-size: 292px; fill: var(--wine); }

.cover__sub {
  padding: clamp(14px, 2.2vh, 26px) 0;
  border-top: var(--hair); border-bottom: var(--hair);
  font-size: clamp(18px, 1.9vw, 28px); line-height: 1.3; font-weight: 400; color: var(--ink);
  padding-right: 4%;
}
.plates {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(16px, 3vh, 34px) calc(var(--m) * -1) 0;
  height: clamp(84px, 13.5vh, 112px);
}
.plate { display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(14px, 2.2vw, 30px); font-size: clamp(13px, 1.25vw, 19px); line-height: 1.35; }
.plate b { font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.plate span { font-weight: 400; }
.plate--wine { background: var(--wine); color: var(--paper); }
.plate--orange { background: var(--orange); color: var(--paper); }
.plate--cream { background: var(--paper); color: var(--wine); box-shadow: inset 0 1px 0 var(--rule); }
.plate--black { background: var(--black); color: var(--paper); }

.cover__photo { position: relative; overflow: hidden; background: #c9cacc; }
.cover__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.btn--top { position: absolute; top: var(--m); right: var(--m); z-index: 2; }

/* construção: filetes desenham, depois a assinatura entra */
.js .mark .draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.1s cubic-bezier(.6,0,.2,1) forwards; }
.js .mark__dims .draw:nth-child(n+3) { animation-delay: .35s; }
.js .mark__labels, .js .mark__a, .js .mark__b { opacity: 0; animation: ink .7s ease forwards; }
.js .mark__labels { animation-delay: .9s; }
.js .mark__a { animation-delay: 1.0s; }
.js .mark__b { animation-delay: 1.25s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ink { to { opacity: 1; } }

/* ============ capítulos ============ */
.chapter { padding: var(--m) var(--m) clamp(64px, 9vw, 130px); }
.chapter + .chapter { border-top: 0; }

/* ---------- 02 percepção e entrega ---------- */
.gap { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.gap__grid {
  display: grid; grid-template-columns: 1fr minmax(240px, 27%); grid-template-rows: auto auto;
  column-gap: clamp(24px, 3vw, 48px); align-content: center;
  padding-top: clamp(28px, 4vw, 56px);
}
.statement {
  grid-column: 1; font-family: var(--voice); font-style: italic; font-weight: 500;
  font-size: clamp(38px, 5.6vw, 92px); line-height: 1.02; letter-spacing: -0.025em; color: var(--wine);
  padding-bottom: clamp(24px, 3vw, 44px); border-bottom: var(--hair);
}
.gap__aside {
  grid-column: 2; grid-row: 1 / span 2; align-self: stretch;
  border-left: var(--hair); padding: clamp(40px, 6vw, 90px) 0 0 clamp(20px, 2.6vw, 40px);
  font-size: clamp(18px, 2.1vw, 34px); line-height: 1.28; color: var(--ink);
}
.gap__aside strong { font-weight: 600; color: var(--wine); }

.bars { --p: 0; grid-column: 1; position: relative; padding: clamp(36px, 4.6vw, 64px) 0 0 clamp(36px, 3.4vw, 52px); }
.bars__dim { position: relative; height: 34px; color: var(--wine); font-size: clamp(14px, 1.3vw, 19px); font-weight: 600; text-align: center; }
.bars__dim::before { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; border-top: 1.5px solid var(--wine); }
.bars__dim::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 11px; border-left: 1.5px solid var(--wine); border-right: 1.5px solid var(--wine); }
.bars__dim span { position: relative; top: -6px; background: var(--paper); padding: 0 8px; }
.bars__dim--perc { width: calc(40% + 60% * var(--p)); margin-top: 8px; }
.bars__row { position: relative; display: flex; align-items: center; height: clamp(44px, 4.4vw, 58px); margin-top: 8px; }
.bars__h { position: absolute; left: calc(clamp(36px, 3.4vw, 52px) * -1); font-style: normal; font-size: 14px; font-weight: 600; color: var(--wine); }
.bar { height: 100%; display: flex; align-items: center; padding: 0 clamp(14px, 1.6vw, 22px); color: var(--paper); font-size: clamp(16px, 1.9vw, 28px); text-transform: uppercase; }
.bar b { font-weight: 700; }
.bar--perc { width: calc(40% + 60% * var(--p)); background: var(--wine); }
.bar--entrega { width: 100%; background: var(--orange); }
.bars__arrow { position: absolute; top: 50%; right: 0; left: calc(40% + 60% * var(--p) + 12px); height: 0; border-top: 2px dashed var(--wine); opacity: calc(1 - var(--p) * 1.2); }
.bars__arrow::after { content: ""; position: absolute; right: -2px; top: -7px; width: 12px; height: 12px; background: var(--wine); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- figuras com marcas de corte ---------- */
.fig { position: relative; }
.crop { position: relative; }
.crop::before, .crop::after {
  content: ""; position: absolute; inset: -14px; pointer-events: none;
  background:
    linear-gradient(var(--wine), var(--wine)) left 14px top 0 / 1px 10px,
    linear-gradient(var(--wine), var(--wine)) left 0 top 14px / 10px 1px,
    linear-gradient(var(--wine), var(--wine)) right 14px top 0 / 1px 10px,
    linear-gradient(var(--wine), var(--wine)) right 0 top 14px / 10px 1px,
    linear-gradient(var(--wine), var(--wine)) left 14px bottom 0 / 1px 10px,
    linear-gradient(var(--wine), var(--wine)) left 0 bottom 14px / 10px 1px,
    linear-gradient(var(--wine), var(--wine)) right 14px bottom 0 / 1px 10px,
    linear-gradient(var(--wine), var(--wine)) right 0 bottom 14px / 10px 1px;
  background-repeat: no-repeat;
}
.crop::after { display: none; }
.crop img { width: 100%; height: 100%; object-fit: cover; }
.fig figcaption { margin-top: 22px; font-family: var(--voice); font-style: italic; font-size: clamp(15px, 1.4vw, 20px); color: var(--wine); }

/* ---------- 03 quem assina ---------- */
.about__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: start; padding-top: clamp(40px, 5vw, 72px);
}
.about__fig .crop { aspect-ratio: 4 / 5; }
.about__fig img { object-position: 52% 30%; filter: brightness(1.3) contrast(1.06); }
.about__title { font-size: clamp(64px, 8.6vw, 148px); line-height: .9; color: var(--wine); margin-bottom: clamp(24px, 3vw, 40px); }
.about__text { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.62; font-weight: 300; max-width: 34em; }
.about__text p + p { margin-top: 1em; }
.about__text strong { font-weight: 500; color: var(--wine); }
.spec { margin-top: clamp(28px, 3.4vw, 48px); border-top: var(--hair); }
.spec div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-bottom: var(--hair); font-size: clamp(14px, 1.2vw, 17px); }
.spec dt { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--wine); font-size: .86em; padding-top: .15em; }

/* ---------- 04 princípio ---------- */
.principle__grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end;
  padding-top: clamp(48px, 7vw, 110px);
}
.principle__title { font-size: clamp(60px, 9.4vw, 168px); line-height: .86; letter-spacing: -0.035em; color: var(--orange); font-weight: 500; }
.principle__text { display: grid; gap: 22px; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.55; }
.principle__text p { display: grid; grid-template-columns: 3.2em 1fr; border-top: var(--hair); padding-top: 14px; }
.step { font-weight: 700; color: var(--wine); }

/* ---------- 05 serviços ---------- */
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px);
  padding-top: clamp(40px, 5vw, 72px);
}
.service { display: grid; grid-template-rows: auto auto 1fr; gap: 18px; }
.service__plate {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 1.8vw, 26px);
}
.service__plate .voice { font-size: clamp(64px, 7.6vw, 128px); line-height: .9; }
.service__plate small { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.service__title {
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; color: var(--ink);
  font-size: clamp(19px, 1.75vw, 26px); line-height: 1.15;
  padding-bottom: 14px; border-bottom: var(--hair);
}
.service p { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.58; font-weight: 300; }

/* ---------- 06 aplicações ---------- */
.works__grid { display: grid; grid-template-columns: minmax(260px, 27%) 1fr; gap: clamp(28px, 3vw, 48px); padding-top: clamp(32px, 4vw, 56px); align-items: start; }
.works__title { font-size: clamp(34px, 3.4vw, 56px); line-height: 1; color: var(--wine); margin-bottom: clamp(20px, 2.4vw, 36px); }
.works__list { border-top: var(--hair); }
.works__list li { border-bottom: var(--hair); }
.work { position: relative; display: block; width: 100%; padding: 18px 0 18px 30px; color: var(--wine); }
.work .step { position: absolute; left: 0; top: 21px; font-size: clamp(13px, 1.1vw, 16px); }
.work__name { display: block; font-weight: 700; font-size: clamp(18px, 1.75vw, 26px); line-height: 1.15; letter-spacing: -0.01em; }
.work__what { display: block; font-family: var(--voice); font-style: italic; font-size: clamp(17px, 1.6vw, 24px); line-height: 1.2; }
.work::before {
  content: ""; position: absolute; left: -2px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  background: var(--orange); transform: scale(0); transition: transform .2s;
}
.work .step { transition: opacity .2s; }
.work.is-active::before { transform: scale(1); }
.work.is-active .step { opacity: 0; }
.work:not(.is-active) { color: rgba(101,21,21,.62); }
.work:hover { color: var(--wine); }
.works__fig .crop { aspect-ratio: 1366 / 768; }
.works__stack { display: none; }

/* ---------- 07 contato ---------- */
.contact { background: var(--orange); color: var(--paper); min-height: 92svh; display: grid; grid-template-rows: auto 1fr; }
.contact .folio { color: var(--paper); border-bottom-color: rgba(242,239,235,.6); }
.contact__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; padding-top: clamp(48px, 6vw, 96px); }
.contact__title { font-size: clamp(44px, 6vw, 108px); line-height: .96; letter-spacing: -0.03em; font-weight: 500; }
.contact__side { display: grid; gap: 24px; justify-items: start; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.5; }
.contact__wa { font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(242,239,235,.6); }
.contact__wa:hover { border-bottom-color: var(--paper); }

/* ---------- contracapa ---------- */
.back { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between; padding: 28px var(--m); background: var(--wine); color: rgba(242,239,235,.75); font-size: 14px; }
.logo { display: inline-flex; align-items: baseline; color: var(--paper); font-size: 26px; line-height: 1; }
.logo__a { font-weight: 800; letter-spacing: -0.05em; }
.logo__b { font-family: var(--sign); font-style: italic; font-size: 1.12em; margin-left: .04em; }

/* ---------- entrada por camadas ---------- */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .mark .draw, .js .mark__labels, .js .mark__a, .js .mark__b { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .js .rise { opacity: 1; transform: none; transition: none; }
}

/* ============ RESPONSIVO ============ */
@media (max-width: 960px) {
  .cover { grid-template-columns: 1fr; height: auto; max-height: none; min-height: 0; }
  .cover__page { padding-top: calc(var(--m) + 56px); }
  .mark { max-height: none; }
  .cover__photo { aspect-ratio: 4 / 5; }
  .btn--top { top: var(--m); right: var(--m); min-height: 40px; }

  .gap { min-height: 0; }
  .gap__grid { grid-template-columns: 1fr; }
  .gap__aside { grid-column: 1; grid-row: auto; border-left: 0; padding: 28px 0 0; }
  .bars { grid-row: auto; }

  .about__grid, .principle__grid, .contact__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .service__plate { aspect-ratio: 16 / 7; }

  .works__grid { grid-template-columns: 1fr; }
  .works__list, .works__fig { display: none; }
  .works__title { margin-bottom: 0; }
  .works__stack { display: grid; gap: 48px; padding-top: 36px; }
}
@media (max-width: 520px) {
  .folio { font-size: 13px; }
  .plates { grid-template-columns: repeat(2, 1fr); height: auto; }
  .plate { padding: 14px 16px; }
  .bars__dim span { font-size: 13px; }
}
