/* Brandbook PW7 · IA — editorial em preto: fios, mono, títulos leves e grandes */

#liquid-bg { opacity: calc(var(--bg-o, 1) * 0.9); }

/* ───── Capa ───── */
.cover {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 0 40px;
}
.cover__logo { width: min(80vw, 760px); }
.draw { width: 100%; height: auto; overflow: visible; }
.draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: stroke 1.6s var(--ease-io) forwards;
}
.draw path:nth-child(2) { animation-delay: .12s; }
.draw path:nth-child(3) { animation-delay: .24s; }
.draw path:nth-child(4) { animation-delay: .36s; }
.draw path:nth-child(5) { animation-delay: .48s; }
.draw path:nth-child(6) { animation-delay: .6s; }
.draw path:nth-child(7) { animation-delay: .72s; }
@keyframes stroke { to { stroke-dashoffset: 0; } }
.cover__meta {
  position: absolute; left: 0; right: 0; bottom: 40px;
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--text-3);
  opacity: 0; animation: fade 1s var(--ease) 2s forwards;
}
@keyframes fade { to { opacity: 1; } }
@media (max-width: 600px) { .cover__meta { flex-direction: column; align-items: center; gap: 6px; } }

/* ───── Página ───── */
.page { padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.55); }
.meta { display: flex; justify-content: space-between; gap: 16px; color: var(--text-3); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: clamp(56px, 8vw, 104px); }
.title {
  margin: 0 0 clamp(40px, 6vw, 72px);
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 300;
}
.title .dimmer, .dimmer { color: var(--text-3); }
.sub { margin: clamp(64px, 9vw, 112px) 0 28px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; letter-spacing: -0.04em; }
.lead-bb { font-size: clamp(17px, 1.6vw, 21px); max-width: 34em; margin: -24px 0 clamp(48px, 6vw, 72px); }
.caption { margin: 14px 0 0; font-size: 11px; }

.toc { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(24px, 6vw, 96px); }
.toc li { break-inside: avoid; border-top: 1px solid var(--line); }
.toc a {
  display: flex; align-items: baseline; gap: 24px; padding: 22px 0;
  font-size: clamp(26px, 3.4vw, 44px); font-weight: 300; letter-spacing: -0.04em;
  transition: padding var(--t-3) var(--ease), color var(--t-2);
}
.toc a .mono { color: var(--text-3); }
.toc a:hover { padding-left: 14px; }
@media (max-width: 640px) { .toc { columns: 1; } }

.statement {
  margin: 0 0 clamp(64px, 9vw, 112px);
  font-size: clamp(26px, 3.6vw, 48px); line-height: 1.18; letter-spacing: -0.035em; font-weight: 300;
  max-width: 22em;
}
.statement .w { color: rgba(255, 255, 255, 0.16); transition: color var(--t-3) var(--ease); }
.statement .w.on { color: var(--white); }

.cols3, .cols2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.cols2 { grid-template-columns: 1fr 1fr; }
.cols3 > div, .cols2 > div { border-top: 1px solid var(--line-2); padding-top: 20px; }
.cols3 h3 { margin: 28px 0 10px; font-size: clamp(30px, 3.2vw, 44px); font-weight: 300; letter-spacing: -0.04em; }
.cols3 p, .cols2 p { margin: 0 0 8px; font-size: 15px; }
.cols3--tight { margin-top: 48px; }
@media (max-width: 860px) { .cols3, .cols2 { grid-template-columns: 1fr; } }

/* ───── Logotipo ───── */
.logo-stage {
  position: relative; border: 1px solid var(--line);
  aspect-ratio: 16 / 7; display: grid; place-items: center;
  background: var(--black);
}
.logo-stage__mark { width: 62%; aspect-ratio: 905 / 84; height: auto; color: var(--white); transition: opacity var(--t-3) var(--ease); }
.logo-stage__grid {
  position: absolute; left: 50%; top: 50%; width: calc(62% * 1025 / 905); transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.55); opacity: 0; transition: opacity var(--t-3) var(--ease);
  overflow: visible; pointer-events: none;
}
.mono-svg text { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; fill: rgba(255, 255, 255, 0.55); }
.logo-stage.is-grid .logo-stage__grid { opacity: 1; }
.logo-stage.is-grid .logo-stage__mark { opacity: 0.35; }
.logo-stage__ctrl { position: absolute; right: 16px; bottom: 16px; }
.toggle {
  padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2);
  transition: background var(--t-2), color var(--t-2);
}
.toggle[aria-pressed="true"], .toggle:hover { background: var(--white); color: var(--black); }
@media (max-width: 600px) { .logo-stage { aspect-ratio: 4 / 3; } .logo-stage__mark { width: 80%; } .logo-stage__grid { width: calc(80% * 1025 / 905); } .mono-svg { display: none; } }

.versions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.versions figure, .donts figure, .apps figure { margin: 0; }
.v { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.v > svg { width: 66%; aspect-ratio: 905 / 84; }
.v figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 10px; }
.v--black { background: var(--black); color: var(--white); }
.v--black figcaption { color: var(--text-3); }
.v--white { background: var(--white); color: var(--black); }
.v--white figcaption { color: rgba(0, 0, 0, 0.5); }
.v--glass { background: var(--black); color: var(--white); }
.v__bg { position: absolute; inset: 0; background: radial-gradient(40% 50% at 30% 35%, #d1d1d6, transparent 70%), radial-gradient(35% 40% at 75% 70%, #8e8e93, transparent 70%), #0a0a0b; animation: drift 9s var(--ease-io) infinite alternate; }
@keyframes drift { to { transform: translate(6%, -4%) scale(1.1); } }
.v__lens { width: 72%; aspect-ratio: 1.8; display: grid; place-items: center; border-radius: 28px; }
.v__lens svg { width: 74%; aspect-ratio: 905 / 84; }
.v--glass figcaption { color: var(--text-2); z-index: 3; }
.v--icon { background: var(--onyx); }
.v--icon figcaption { color: var(--text-3); }
.appicon { width: 40%; aspect-ratio: 1; border-radius: 22%; background: var(--black); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--white); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.appicon svg { width: 46%; aspect-ratio: 102 / 84; }
@media (max-width: 860px) { .versions { grid-template-columns: 1fr 1fr; } }

.donts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dont { aspect-ratio: 1.3; background: #f2f2f2; color: var(--black); display: grid; place-items: center; position: relative; overflow: hidden; }
.dont::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), #000 calc(50% - 0.5px), #000 calc(50% + 0.5px), transparent calc(50% + 1px)); opacity: 0.5; }
.dont svg { width: 66%; aspect-ratio: 905 / 84; }
.donts figcaption { margin-top: 12px; font-size: 11px; color: var(--text-2); }
@media (max-width: 860px) { .donts { grid-template-columns: 1fr 1fr; } }

/* ───── Cor ───── */
.swatches { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); }
.sw {
  position: relative; text-align: left; background: var(--c); color: var(--t);
  min-height: 360px; padding: 18px; display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line);
  transition: flex var(--t-3) var(--ease), transform var(--t-3) var(--ease);
}
.sw:last-child { border-right: 0; }
.sw__name { font-size: 20px; letter-spacing: -0.03em; margin-bottom: auto; }
.sw .mono { font-size: 10px; opacity: 0.7; }
.sw__use { opacity: 1 !important; }
.sw::after { content: 'copiar'; position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity var(--t-2); }
.sw:hover::after { opacity: 0.7; }
@media (max-width: 960px) {
  .swatches { grid-template-columns: 1fr; }
  .sw { min-height: 92px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sw__name { margin-bottom: 8px; }
}
.ratio { display: flex; height: 120px; margin-top: 48px; border: 1px solid var(--line); }
.ratio div { display: flex; align-items: flex-end; padding: 14px; min-width: 0; }
.ratio .mono { font-size: 10px; white-space: nowrap; }
.ratio div:last-child .mono { white-space: normal; }

/* ───── Tipografia ───── */
.specimen { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: clamp(24px, 4vw, 48px) 0; margin-bottom: clamp(56px, 8vw, 96px); }
.specimen__big {
  margin: 0; outline: none;
  font-size: clamp(56px, 12vw, 180px); line-height: 1; letter-spacing: -0.06em;
  font-weight: var(--w); font-variation-settings: 'wght' var(--w);
  overflow-wrap: anywhere;
}
.specimen__ctrl { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.specimen__ctrl label { display: flex; gap: 10px; min-width: 110px; }
.specimen__ctrl output { color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: min(320px, 100%); height: 2px; background: var(--line-2); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--white); cursor: grab; box-shadow: 0 0 0 6px rgba(255,255,255,.1); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--white); cursor: grab; }
.type-name { font-size: clamp(48px, 6vw, 80px) !important; font-weight: 300; letter-spacing: -0.05em; margin: 20px 0 16px !important; line-height: 1; }
.type-name--mono { font-family: var(--mono); letter-spacing: -0.03em; }
.glyphs { margin-top: 28px !important; font-size: 20px !important; line-height: 1.5; letter-spacing: 0.02em; color: var(--text-2); overflow-wrap: anywhere; }
.glyphs--mono { font-family: var(--mono); font-size: 16px !important; }

.scale { width: 100%; border-collapse: collapse; margin-top: clamp(56px, 8vw, 96px); font-size: 15px; }
.scale th { text-align: left; font-weight: 400; font-size: 11px; padding: 0 16px 12px 0; border-bottom: 1px solid var(--line-2); }
.scale td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.scale td.mono { font-size: 12px; }
.ex { white-space: nowrap; }
.ex--d { font-size: 56px; font-weight: 600; letter-spacing: -0.06em; line-height: 1; }
.ex--h { font-size: 32px; font-weight: 600; letter-spacing: -0.045em; }
.ex--s { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
@media (max-width: 760px) {
  .scale:not(.tokens):not(.voice) th:nth-child(3), .scale:not(.tokens):not(.voice) td:nth-child(3),
  .scale:not(.tokens):not(.voice) th:nth-child(4), .scale:not(.tokens):not(.voice) td:nth-child(4) { display: none; }
  .ex--d { font-size: 40px; } .ex--h { font-size: 22px; } .ex { white-space: normal; }
  .tokens th:nth-child(3), .tokens td:nth-child(3) { display: none; }
}
.tokens { margin-top: 48px; }

/* ───── Lab Liquid Glass ───── */
.lab { display: grid; grid-template-columns: 1fr 300px; border: 1px solid var(--line); }
.lab__scene {
  position: relative; min-height: 520px; overflow: hidden; touch-action: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 48px),
    #000;
}
.lab__type {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  font-size: clamp(64px, 11vw, 160px); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.7);
  padding-left: 4%; white-space: nowrap; user-select: none;
  animation: marquee 18s linear infinite alternate;
}
.lab__type::before { content: ''; }
@keyframes marquee { to { transform: translateX(-18%); } }
.lab__lens {
  --lab-blur: 22px; --lab-sat: 170%;
  position: absolute; left: 50%; top: 50%; width: min(340px, 70%); aspect-ratio: 1.5;
  display: grid; place-items: center; cursor: grab; user-select: none; touch-action: none;
  border-radius: var(--lab-rad, 40px);
  -webkit-backdrop-filter: blur(var(--lab-blur)) saturate(var(--lab-sat)) brightness(1.08);
  backdrop-filter: blur(var(--lab-blur)) saturate(var(--lab-sat)) brightness(1.08);
  transform: translate(-50%, -50%);
}
.lg-refract .lab__lens { backdrop-filter: url(#lg-refract) blur(var(--lab-blur)) saturate(var(--lab-sat)) brightness(1.08); }
.lab__lens:active { cursor: grabbing; }
.lab__lens svg { width: 26%; aspect-ratio: 102 / 84; color: var(--white); pointer-events: none; }
.lab__ctrl { border-left: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 28px; }
.lab__ctrl label { display: grid; grid-template-columns: 1fr auto; gap: 14px; color: var(--text-2); }
.lab__ctrl output { color: var(--text); }
.lab__ctrl input { grid-column: 1 / -1; width: 100%; }
.lab__note { margin: auto 0 0; font-size: 10px; line-height: 1.6; }
@media (max-width: 860px) {
  .lab { grid-template-columns: 1fr; }
  .lab__scene { min-height: 380px; }
  .lab__ctrl { border-left: 0; border-top: 1px solid var(--line); }
}

/* ───── Movimento ───── */
.motion { border-top: 1px solid var(--line-2); margin-bottom: clamp(56px, 8vw, 96px); }
.mrow {
  width: 100%; display: grid; grid-template-columns: 180px 1fr 160px; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-align: left;
}
.mrow__track { position: relative; height: 1px; background: var(--line-2); }
.mrow__track i {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--white);
  transition: left var(--dur) var(--ease);
}
.mrow.go .mrow__track i { left: calc(100% - 14px); }
.mrow:hover .mrow__track { background: rgba(255,255,255,.35); }
@media (max-width: 700px) { .mrow { grid-template-columns: 1fr; gap: 14px; } }
.curve { width: 120px; height: 120px; margin-bottom: 20px; overflow: visible; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.curve path { fill: none; stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* ───── Voz ───── */
.voice { margin-top: 0; font-size: clamp(17px, 1.8vw, 22px); }
.says { margin-top: clamp(56px, 8vw, 96px); }
.quote { font-size: clamp(24px, 2.8vw, 36px) !important; font-weight: 300; letter-spacing: -0.035em; line-height: 1.2; margin-top: 18px !important; }
.quote--no { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ───── Aplicações ───── */
.apps { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 24px; align-items: start; }
.apps figcaption { margin-top: 12px; font-size: 11px; }
.card-front, .card-back { aspect-ratio: 85 / 55; padding: 7%; display: flex; }
.card-front { background: var(--black); border: 1px solid var(--line-2); color: var(--white); align-items: center; justify-content: center; position: relative; }
.card-front svg { width: 52%; aspect-ratio: 905 / 84; }
.card-front span { position: absolute; right: 7%; bottom: 9%; font-size: 9px; color: var(--text-3); }
.card-back { background: var(--white); color: var(--black); flex-direction: column; justify-content: space-between; }
.card-back b { display: block; font-weight: 600; font-size: clamp(15px, 1.6vw, 20px); letter-spacing: -0.02em; }
.card-back .mono { font-size: 9px; color: rgba(0,0,0,.6); line-height: 1.7; }
.post { aspect-ratio: 4 / 5; background: var(--black); border: 1px solid var(--line-2); padding: 9%; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.post::before { content: ''; position: absolute; width: 90%; aspect-ratio: 1; right: -30%; top: -20%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #8e8e93 25%, #1c1c1e 55%, transparent 70%); opacity: .55; filter: blur(2px); }
.post > * { position: relative; }
.post .mono { font-size: 9px; color: var(--text-3); }
.post p { margin: 0; font-size: clamp(22px, 2.6vw, 34px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.post p span { color: var(--text-3); }
.post svg { width: 44%; aspect-ratio: 905 / 84; color: var(--white); }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } .apps__post { max-width: 360px; } }

.end { min-height: 70svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; border-top: 1px solid var(--line); }
.end svg { width: min(60vw, 360px); aspect-ratio: 905 / 84; color: var(--white); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 18px; border-radius: 999px; background: var(--white); color: var(--black);
  transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease); pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.nav .nav__wordmark { width: 104px; height: 9.65px; color: var(--white); }
.lab__lens svg { color: var(--white); }
.logo-stage__grid { aspect-ratio: 1025 / 204; height: auto; }
@media (max-width: 760px) {
  .scale .ex--d { font-size: 28px; }
  .scale td { overflow-wrap: anywhere; }
}
