/* =========================================================
   VÉRTICE — sistema visual
   Editorial brutalista / off-white / acid lime
   ========================================================= */

:root {
  --paper: #f5f4ef;
  --paper-deep: #e9e8e1;
  --ink: #111111;
  --muted: #73736d;
  --line: rgba(17, 17, 17, .22);
  --line-strong: rgba(17, 17, 17, .68);
  --lime: #b7ff35;
  --accent: var(--lime);
  --red: #ff593d;
  --violet: #8c75ff;
  --display: "Archivo Black", Impact, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --mono: "DM Mono", monospace;
  --gutter: clamp(1.1rem, 4vw, 4.5rem);
  --ease: cubic-bezier(.2, .75, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

::selection {
  background: var(--lime);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

button, input { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; }

.mono {
  font-family: var(--mono);
  letter-spacing: -.035em;
}

.lime-text { color: var(--accent); }

.section-pad { padding-inline: var(--gutter); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .8rem 1rem;
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

/* CABEÇALHO E NAVEGAÇÃO */

.topbar {
  height: 4.4rem;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
  background: var(--paper);
}

.wordmark,
.footer-wordmark {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -.09em;
  width: fit-content;
}

.wordmark span,
.footer-wordmark span {
  font-family: var(--mono);
  font-size: .55em;
  vertical-align: top;
  margin-left: .18rem;
  letter-spacing: 0;
}

.topbar-status {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: .55rem;
  font: .62rem var(--mono);
  letter-spacing: .02em;
}

.status-dot,
.console-live i {
  display: inline-block;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #4b9d22;
  box-shadow: 0 0 0 .2rem rgba(75,157,34,.12);
}

.menu-toggle {
  justify-self: end;
  border: 0;
  padding: .5rem 0 .5rem .75rem;
  background: none;
  display: flex;
  align-items: center;
  gap: .8rem;
  cursor: pointer;
  font: .7rem var(--mono);
}

.menu-toggle-icon {
  width: 1.5rem;
  height: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
}

.menu-toggle-icon i {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:first-child {
  transform: translateY(2px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:last-child {
  transform: translateY(-2px) rotate(-45deg);
}

.site-menu {
  position: fixed;
  z-index: 45;
  inset: 4.4rem 0 0;
  padding: 2rem var(--gutter) 1.5rem;
  background: var(--lime);
  display: flex;
  flex-direction: column;
  transform: translateY(-105%);
  visibility: hidden;
  transition: transform .55s var(--ease), visibility .55s;
}

.site-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}

.menu-head,
.menu-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font: .65rem var(--mono);
}

.site-menu > a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid rgba(17,17,17,.35);
  padding: .65rem 0 .75rem;
  font: clamp(2rem, 6vw, 5.8rem)/1.08 var(--display);
  letter-spacing: -.075em;
}

.site-menu > a:first-of-type { margin-top: auto; }

.site-menu > a span {
  font: .72rem var(--mono);
  letter-spacing: 0;
}

.site-menu > a b {
  font: 1.5rem var(--body);
  transition: transform .25s;
}

.site-menu > a:hover b { transform: translate(5px,-5px); }

.menu-foot {
  margin-top: auto;
  padding-top: 1.3rem;
}

/* 01 — ABERTURA TIPOGRÁFICA */

.hero {
  min-height: clamp(650px, calc(100svh - 4.4rem), 940px);
  padding: 0 var(--gutter) 1.4rem;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: clip;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  font-size: .59rem;
  line-height: 1.4;
}

.hero-stage {
  flex: 1;
  min-height: 470px;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-type {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-left: clamp(2rem, 8vw, 9rem);
  margin-top: -1.3rem;
}

.hero-line {
  font-family: var(--display);
  font-size: clamp(5.4rem, 15.5vw, 15.7rem);
  line-height: .76;
  letter-spacing: -.105em;
  white-space: nowrap;
  position: relative;
  overflow: visible;
}

.hero-line-one { margin-left: 0; }

.hero-line-two {
  margin-left: clamp(1rem, 9vw, 10rem);
  margin-top: .28em;
  display: flex;
  align-items: baseline;
  gap: .07em;
}

.hero-line span { display: inline-block; }

.hero-period {
  color: var(--accent);
  transform: translateX(-.04em);
}

.outline-word {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.hero-side-note {
  position: absolute;
  z-index: 4;
  top: 17%;
  left: 0;
  display: flex;
  flex-direction: column;
  font-size: .56rem;
  line-height: 1.65;
}

.side-note-rule {
  width: 2rem;
  height: 1px;
  background: var(--ink);
  margin: .7rem 0 .45rem;
}

.hero-stamp {
  width: clamp(5.5rem, 10vw, 9rem);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: absolute;
  z-index: 3;
  right: 7%;
  top: 12%;
  display: grid;
  place-items: center;
  transform: rotate(-12deg);
}

.stamp-ring {
  position: absolute;
  inset: .35rem;
  border: 1px dashed var(--ink);
  border-radius: 50%;
  font: clamp(.36rem, .6vw, .55rem) var(--mono);
  text-align: center;
  padding-top: .48rem;
  word-spacing: .3rem;
}

.stamp-center {
  font: clamp(2.5rem, 5vw, 4.6rem)/1 var(--display);
  letter-spacing: -.1em;
}

.stamp-center span { color: var(--accent); }

.hero-crosshair {
  position: absolute;
  z-index: 1;
  font: 2rem/1 var(--mono);
}

.crosshair-one { top: 22%; right: 34%; }

.crosshair-two {
  bottom: 12%;
  left: 20%;
  color: var(--accent);
}

.hero-vertical-index {
  position: absolute;
  right: 0;
  bottom: 14%;
  writing-mode: vertical-rl;
  font-size: .57rem;
}

.hero-lime-block {
  position: absolute;
  z-index: -1;
  width: clamp(5rem, 12vw, 13rem);
  height: clamp(5rem, 12vw, 13rem);
  background: var(--accent);
  right: 8%;
  bottom: 7%;
  transform: rotate(12deg);
  transition: transform .8s var(--ease), background .3s;
}

.hero-stage:hover .hero-lime-block {
  transform: rotate(-8deg) scale(.92);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  position: relative;
  z-index: 4;
}

.hero-statement {
  font-size: clamp(.95rem, 1.5vw, 1.4rem);
  line-height: 1.35;
  margin: 0;
  font-weight: 500;
  letter-spacing: -.055em;
}

.hero-statement em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: .16em;
  text-underline-offset: .1em;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: .6rem;
  font: .58rem var(--mono);
  white-space: nowrap;
}

.scroll-cue-line {
  display: block;
  width: 2.4rem;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transition: transform .3s;
}

.scroll-cue:hover .scroll-cue-line { transform: scaleX(1.5); }

.scroll-cue-arrow { font-size: 1rem; }

.hero-index {
  justify-self: end;
  display: flex;
  gap: .45rem;
  align-items: center;
  font-size: .55rem;
}

.hero-index span:nth-child(even) {
  color: var(--accent);
  font-size: .9rem;
}

.hero-edge-label {
  position: absolute;
  top: 48%;
  right: -2.2rem;
  transform: rotate(90deg);
  transform-origin: center;
  font: .55rem var(--mono);
  letter-spacing: .08em;
}

/* MARCADORES DAS SEÇÕES */

.section-marker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font: .62rem var(--mono);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.section-marker span:last-child {
  text-align: right;
  color: var(--muted);
}

/* 02 — TESE */

.thesis {
  padding-top: clamp(5rem, 11vw, 10rem);
  padding-bottom: 4rem;
}

.thesis-layout {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) 2.3fr;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.thesis-label {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding-top: .8rem;
  font-size: .6rem;
  line-height: 1.65;
}

.label-square {
  width: .7rem;
  height: .7rem;
  background: var(--accent);
  flex: 0 0 auto;
  margin-top: .2rem;
}

.display-title {
  font: clamp(3.8rem, 10vw, 10.8rem)/.87 var(--display);
  letter-spacing: -.105em;
  margin: 0;
}

.thesis-copy .display-title { max-width: 11ch; }

.underline-lime {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.underline-lime::after {
  content: "";
  position: absolute;
  z-index: -1;
  height: .19em;
  left: -.02em;
  right: -.05em;
  bottom: .03em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}

.is-visible .underline-lime::after { transform: scaleX(1); }

.thesis-bottom {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.thesis-large-copy {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.065em;
}

.body-copy {
  margin: .25rem 0 0;
  max-width: 37ch;
  font-size: .94rem;
  line-height: 1.8;
  color: #4c4c47;
}

.thesis-ruler {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: .6rem;
}

.thesis-ruler i {
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* 03 — ARQUIVO DE PROJETOS */

.archive {
  background: var(--ink);
  color: var(--paper);
  padding-top: 2rem;
}

.archive .section-marker { border-color: rgba(245,244,239,.25); }

.archive .section-marker span:last-child { color: #aaa9a2; }

.archive-title-row {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: end;
  gap: 2rem;
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.archive-title-row .display-title {
  font-size: clamp(4.3rem, 12vw, 12rem);
}

.archive-title-row .display-title > span {
  display: inline-block;
  margin-left: clamp(1rem, 11vw, 12rem);
}

.archive-title-row p {
  max-width: 25ch;
  margin: 0 0 .6rem auto;
  color: #b8b7b0;
  font-size: .95rem;
  line-height: 1.7;
}

.project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(245,244,239,.28);
}

.project {
  padding: 1rem var(--gutter) 1.6rem;
  border-bottom: 1px solid rgba(245,244,239,.28);
  min-width: 0;
}

.project:nth-child(odd) {
  border-right: 1px solid rgba(245,244,239,.28);
}

.project-number {
  display: flex;
  gap: .8rem;
  color: var(--accent);
  font-size: .6rem;
  margin-bottom: .8rem;
}

.project-number span { color: #aaa9a2; }

.project-art {
  aspect-ratio: 1.24;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background .3s;
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

.project-info h3 {
  margin: 0 0 .4rem;
  font: clamp(1.35rem, 2.5vw, 2.3rem)/1 var(--display);
  letter-spacing: -.075em;
}

.project-info p {
  margin: 0;
  color: #aaa9a2;
  font-size: .78rem;
  line-height: 1.5;
}

.project-arrow {
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(245,244,239,.45);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex: 0 0 auto;
  transition: color .3s, background .3s, transform .3s;
}

.project:hover .project-arrow,
.project:focus-visible .project-arrow {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}

.project-forma { padding-top: 1rem; }

/* PROJETO 001 — FORMA ZERO */

.forma-art {
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.forma-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: .53rem;
}

.forma-word {
  font: clamp(3.5rem, 8vw, 8.6rem)/.8 var(--display);
  letter-spacing: -.12em;
  transform: rotate(-7deg);
  z-index: 1;
}

.forma-zero {
  position: absolute;
  right: 4%;
  bottom: -20%;
  font: 24vw/.8 var(--display);
  letter-spacing: -.12em;
  opacity: .12;
}

.forma-tag {
  position: absolute;
  right: 7%;
  top: 15%;
  font: .6rem/1.3 var(--mono);
  text-align: right;
}

.art-cross {
  position: absolute;
  bottom: 8%;
  left: 8%;
  font: 2rem var(--mono);
}

/* PROJETO 002 — ESTRATO */

.project-estrato { padding-top: 3rem; }

.estrato-art {
  background: #e4e1d8;
  color: #111;
}

.estrato-lines {
  position: absolute;
  inset: -15% -20%;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 22px,
    rgba(17,17,17,.17) 23px 24px
  );
  transform: rotate(-7deg);
  transition: transform .7s var(--ease);
}

.project-estrato:hover .estrato-lines {
  transform: rotate(2deg) scale(1.1);
}

.estrato-word {
  position: absolute;
  left: 5%;
  top: 35%;
  font: clamp(2.8rem, 7vw, 7rem)/.9 var(--display);
  letter-spacing: -.11em;
}

.estrato-small {
  position: absolute;
  left: 6%;
  bottom: 8%;
  font-size: .55rem;
}

.estrato-block {
  position: absolute;
  width: 23%;
  aspect-ratio: 1;
  right: 10%;
  top: 12%;
  background: var(--accent);
  mix-blend-mode: multiply;
  transform: rotate(18deg);
}

.estrato-coord {
  position: absolute;
  right: 5%;
  bottom: 7%;
  font-size: .55rem;
  text-align: right;
}

/* PROJETO 003 — RUÍDO/01 */

.ruido-art {
  background: #ff593d;
  color: #111;
}

.ruido-kicker {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: .53rem;
}

.ruido-word {
  position: absolute;
  z-index: 2;
  top: 27%;
  left: 4%;
  font: clamp(2.4rem, 6.5vw, 6.7rem)/.85 var(--display);
  letter-spacing: -.11em;
}

.ruido-word span { color: var(--paper); }

.ruido-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1%;
  transform: skewY(-13deg);
}

.ruido-bars i {
  width: 2.7%;
  height: 20%;
  background: #111;
  transform-origin: center;
  transition: height .4s var(--ease);
}

.ruido-bars i:nth-child(3n) { height: 56%; }
.ruido-bars i:nth-child(4n) { height: 82%; }
.ruido-bars i:nth-child(5n) { height: 35%; }

.project-ruido:hover .ruido-bars i:nth-child(odd) { height: 75%; }
.project-ruido:hover .ruido-bars i:nth-child(even) { height: 25%; }

.ruido-date {
  position: absolute;
  right: 5%;
  bottom: 6%;
  font-size: .57rem;
  line-height: 1.3;
  text-align: right;
}

/* PROJETO 004 — NODO */

.project-nodo { padding-top: 3rem; }

.nodo-art {
  background: #d8d6cf;
  color: #111;
}

.nodo-kicker {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: .55rem;
}

.nodo-network {
  position: absolute;
  inset: 10% 5% 14%;
}

.nodo-network svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #111;
  stroke-width: 1.5;
}

.node {
  position: absolute;
  z-index: 2;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid #111;
}

.n1 { left: 12%; top: 13%; }
.n2 { left: 38%; top: 31%; }
.n3 { left: 67%; top: 9%; }
.n4 { right: 8%; top: 49%; }
.n5 { left: 58%; bottom: 5%; }
.n6 { left: 29%; bottom: 17%; }
.n7 { left: 10%; top: 64%; }

.nodo-word {
  position: absolute;
  left: 7%;
  bottom: 7%;
  font: clamp(3rem, 7vw, 7rem)/.8 var(--display);
  letter-spacing: -.12em;
}

.nodo-word span { color: var(--accent); }

.nodo-caption {
  position: absolute;
  right: 5%;
  bottom: 9%;
  font-size: .52rem;
  writing-mode: vertical-rl;
}

.archive-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.3rem;
  font-size: .55rem;
  color: #aaa9a2;
}

/* 04 — LABORATÓRIO INTERATIVO */

.lab {
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.lab-intro {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 2rem;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.lab-intro .display-title {
  font-size: clamp(4rem, 11vw, 11rem);
}

.lab-intro p {
  max-width: 30ch;
  margin: 0 0 .4rem auto;
  font-size: .95rem;
  line-height: 1.75;
  color: #4c4c47;
}

.lab-console {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr);
  border: 1px solid var(--ink);
}

.lab-console-head {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--ink);
  font-size: .55rem;
}

.console-live {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.console-live i {
  width: .36rem;
  height: .36rem;
}

.lab-playground {
  min-width: 0;
  background: var(--paper-deep);
  border-right: 1px solid var(--ink);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.playground-meta,
.playground-bottom {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .54rem;
}

.playground-stage {
  position: relative;
  flex: 1;
  min-height: 340px;
  overflow: hidden;
  margin: 1rem 0;
  background: var(--paper);
  isolation: isolate;
}

.play-grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(17,17,17,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.1) 1px, transparent 1px);
  background-size: 32px 32px;
  transition: opacity .3s;
}

.play-shape {
  position: absolute;
  transition:
    transform .65s var(--ease),
    border-radius .5s,
    background .3s,
    width .5s,
    height .5s;
}

.shape-a {
  width: 45%;
  aspect-ratio: 1;
  background: var(--accent);
  left: 13%;
  top: 15%;
  transform: rotate(12deg);
}

.shape-b {
  width: 28%;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  right: 12%;
  top: 28%;
  transform: rotate(45deg);
}

.shape-c {
  width: 14%;
  aspect-ratio: 1;
  background: var(--ink);
  right: 28%;
  bottom: 12%;
}

.play-word {
  position: absolute;
  z-index: 2;
  left: 8%;
  top: 42%;
  font: clamp(2.4rem, 6vw, 6.5rem)/.8 var(--display);
  letter-spacing: -.12em;
}

.play-word span {
  display: block;
  margin-left: 30%;
}

.play-coordinate {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: .53rem;
  line-height: 1.6;
  text-align: right;
}

.play-note {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: .53rem;
}

/* Modos do laboratório */

.lab-playground[data-mode="orbit"] .play-grid { opacity: .18; }

.lab-playground[data-mode="orbit"] .shape-a {
  border-radius: 50%;
  transform: translate(25%, 3%) rotate(0deg);
}

.lab-playground[data-mode="orbit"] .shape-b {
  border-radius: 50%;
  transform: translate(-25%, 15%) rotate(0deg);
}

.lab-playground[data-mode="orbit"] .shape-c {
  border-radius: 50%;
  transform: translate(-70%, -80%);
}

.lab-playground[data-mode="cut"] .play-grid { opacity: .8; }

.lab-playground[data-mode="cut"] .shape-a {
  width: 70%;
  height: 20%;
  aspect-ratio: auto;
  left: 0;
  top: 24%;
  transform: rotate(-12deg);
}

.lab-playground[data-mode="cut"] .shape-b {
  width: 55%;
  height: 12%;
  aspect-ratio: auto;
  right: -12%;
  top: 58%;
  transform: rotate(35deg);
}

.lab-playground[data-mode="cut"] .shape-c {
  width: 22%;
  aspect-ratio: 1;
  right: 16%;
  bottom: 10%;
  transform: rotate(45deg);
}

.lab-playground[data-density="1"] .shape-b,
.lab-playground[data-density="1"] .shape-c { opacity: .15; }

.lab-playground[data-density="2"] .shape-c { opacity: .35; }

.lab-playground[data-density="4"] .shape-a { width: 52%; }
.lab-playground[data-density="5"] .shape-a { width: 61%; }

.lab-playground[data-density="4"] .shape-b,
.lab-playground[data-density="5"] .shape-b { border-width: 5px; }

.lab-playground[data-density="5"] .play-grid { opacity: .95; }

.lab-controls {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.control-group label {
  display: block;
  font: .62rem var(--mono);
  margin-bottom: .8rem;
}

.control-options {
  display: flex;
  border: 1px solid var(--ink);
}

.control-option {
  flex: 1;
  border: 0;
  background: transparent;
  padding: .75rem .4rem;
  font: .58rem var(--mono);
  cursor: pointer;
}

.control-option + .control-option { border-left: 1px solid var(--ink); }

.control-option.is-active {
  background: var(--ink);
  color: var(--paper);
}

input[type="range"] {
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--ink);
  display: block;
  margin: 1.25rem 0 .8rem;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 0;
  background: var(--accent);
  border: 1px solid var(--ink);
}

input[type="range"]::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 0;
  background: var(--accent);
  border: 1px solid var(--ink);
}

.range-ends {
  display: flex;
  justify-content: space-between;
  gap: .4rem;
  font-size: .48rem;
  color: var(--muted);
}

.swatch-options {
  display: flex;
  gap: .55rem;
}

.swatch {
  width: 2.2rem;
  height: 2.2rem;
  padding: .25rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.swatch i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--swatch);
}

.swatch.is-active { border-color: var(--ink); }

.lab-feedback {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  line-height: 1.6;
  color: #4c4c47;
}

.lab-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0;
  font-size: .55rem;
  color: var(--muted);
}

/* 05 — MÉTODO */

.method {
  background: #e5e4dc;
  padding-top: 2rem;
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.method-heading {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 2rem;
  align-items: end;
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.method-heading .display-title {
  font-size: clamp(4rem, 10.5vw, 10rem);
}

.method-heading .display-title span { color: #8e8e83; }

.method-heading p {
  max-width: 28ch;
  margin: 0 0 .5rem auto;
  font-size: .95rem;
  line-height: 1.75;
  color: #4c4c47;
}

.method-track { position: relative; }

.method-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(17,17,17,.16);
}

.method-progress span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--ink);
  transform-origin: top;
}

.method-step {
  display: grid;
  grid-template-columns: .7fr .55fr 1.2fr .65fr;
  gap: 1.5rem;
  align-items: center;
  min-height: 245px;
  padding: 2rem 0 2rem 2rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.method-step::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 2.3rem;
  width: 10px;
  height: 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
  transition: background .3s;
}

.method-step.is-visible::before { background: var(--accent); }

.step-index,
.step-side {
  font-size: .57rem;
  align-self: start;
  padding-top: .3rem;
}

.step-side {
  justify-self: end;
  text-align: right;
  color: var(--muted);
}

.step-copy h3 {
  margin: 0 0 .7rem;
  font: clamp(1.5rem, 3vw, 3rem)/.98 var(--display);
  letter-spacing: -.08em;
}

.step-copy p {
  max-width: 34ch;
  margin: 0;
  color: #55554f;
  font-size: .82rem;
  line-height: 1.65;
}

.step-symbol {
  width: clamp(4rem, 8vw, 7rem);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.symbol-investigate i {
  position: absolute;
  width: 70%;
  height: 70%;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.symbol-investigate i:nth-child(2) {
  width: 48%;
  height: 48%;
}

.symbol-investigate i:nth-child(3) {
  width: 12%;
  height: 12%;
  background: var(--accent);
  border: 0;
}

.symbol-question {
  font: clamp(4rem, 8vw, 7rem)/1 var(--display);
  color: var(--accent);
  -webkit-text-stroke: 1px var(--ink);
}

.symbol-build {
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  transform: rotate(-8deg);
}

.symbol-build i {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
}

.symbol-build i:nth-child(2),
.symbol-build i:nth-child(3) { background: var(--accent); }

.symbol-refine span {
  width: 75%;
  height: 75%;
  border: 1px solid var(--ink);
  transform: rotate(45deg);
  position: relative;
}

.symbol-refine span::after {
  content: "";
  position: absolute;
  inset: 25%;
  background: var(--accent);
}

/* 06 — CONTATO E RODAPÉ */

.contact {
  background: var(--accent);
  position: relative;
  overflow: clip;
}

.contact-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(17,17,17,.35);
  font: .6rem var(--mono);
}

.contact-main {
  min-height: clamp(520px, 72vw, 850px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.contact-aside {
  position: absolute;
  right: var(--gutter);
  top: 15%;
  font-size: .58rem;
  line-height: 1.65;
  text-align: right;
}

.contact-title {
  position: relative;
  z-index: 1;
  font: clamp(3.7rem, 12.6vw, 13rem)/.79 var(--display);
  letter-spacing: -.12em;
  margin: 0 0 3rem;
  max-width: 12ch;
}

.contact-title > span {
  display: inline-block;
  margin-left: clamp(1.5rem, 12vw, 13rem);
  color: var(--paper);
  -webkit-text-stroke: 1px var(--ink);
}

.contact-period { color: var(--paper); }

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100%, 26rem);
  padding: 1rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font: .68rem var(--mono);
  position: relative;
  z-index: 2;
}

.contact-link b {
  font: 1.5rem var(--body);
  transition: transform .25s;
}

.contact-link:hover b { transform: translate(5px,-5px); }

.contact-stamp {
  position: absolute;
  right: 8%;
  bottom: 17%;
  width: clamp(7rem, 16vw, 15rem);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font: clamp(1.1rem, 2.5vw, 2.5rem)/.85 var(--display);
  letter-spacing: -.08em;
  transform: rotate(13deg);
  opacity: .75;
}

.footer {
  border-top: 1px solid rgba(17,17,17,.4);
  display: grid;
  grid-template-columns: .8fr 1.2fr 1fr;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.footer-wordmark {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  align-self: start;
}

.footer-note {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font: .57rem var(--mono);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  align-items: flex-start;
  font: .6rem var(--mono);
}

.footer-links a { border-bottom: 1px solid transparent; }
.footer-links a:hover { border-color: var(--ink); }

.footer-bottom {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(17,17,17,.35);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: .53rem;
}

/* PROGRESSO, CURSOR E REVELAÇÕES */

.scroll-progress {
  position: fixed;
  z-index: 60;
  right: 0;
  top: 0;
  width: 3px;
  height: 100vh;
  pointer-events: none;
  background: rgba(17,17,17,.05);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--accent);
}

.cursor-label {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  pointer-events: none;
  padding: .65rem .8rem;
  background: var(--accent);
  color: var(--ink);
  font: .56rem var(--mono);
  opacity: 0;
  transform: translate(-50%,-50%) scale(.8);
  transition: opacity .18s, transform .18s;
}

.cursor-label.is-active {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}

.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-line] {
  clip-path: inset(0 0 100% 0);
  transform: translateY(35px);
  transition: clip-path 1s var(--ease), transform 1s var(--ease);
}

.hero.is-ready [data-reveal-line] {
  clip-path: inset(0 0 -10% 0);
  transform: translateY(0);
}

.hero.is-ready .hero-line-two { transition-delay: .16s; }

.project-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .25s;
}

.project:hover .project-art::after {
  border-color: rgba(17,17,17,.35);
}

:focus-visible {
  outline: 2px solid #2865e9;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor .project { cursor: none; }
}

/* TABLETS */

@media (max-width: 900px) {
  .hero-line { font-size: clamp(5rem, 15vw, 10rem); }
  .hero-type { padding-left: 4vw; }
  .hero-side-note { font-size: .5rem; }

  .hero-bottom { grid-template-columns: 1fr auto; }
  .hero-index { grid-column: 1/-1; justify-self: start; }
  .hero-statement { grid-row: 1; }
  .scroll-cue { grid-row: 1; }

  .thesis-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .thesis-label { padding-top: 0; }

  .thesis-bottom { grid-template-columns: 1fr 1fr; }

  .lab-console { grid-template-columns: 1fr; }

  .lab-playground {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .playground-stage { min-height: 380px; }

  .lab-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .lab-feedback { grid-column: 1/-1; }

  .method-step { grid-template-columns: .7fr .45fr 1.4fr; }
  .step-side { display: none; }

  .contact-stamp {
    right: 5%;
    bottom: 10%;
  }
}

/* CELULARES */

@media (max-width: 600px) {
  :root { --gutter: 1.1rem; }

  .topbar {
    height: 3.8rem;
    grid-template-columns: 1fr auto;
  }

  .topbar-status { display: none; }
  .site-menu { top: 3.8rem; }

  .site-menu > a {
    grid-template-columns: 2.3rem 1fr auto;
    font-size: clamp(1.8rem, 9vw, 3.2rem);
  }

  .menu-head,
  .menu-foot { font-size: .52rem; }

  .hero {
    min-height: 730px;
    min-height: calc(100svh - 3.8rem);
    padding-bottom: 1rem;
  }

  .hero-topline {
    font-size: .48rem;
    padding-top: .8rem;
  }

  .hero-coordinate { display: none; }
  .hero-stage { min-height: 480px; }

  .hero-type {
    padding-left: 0;
    margin-top: -1rem;
  }

  .hero-line {
    font-size: clamp(4rem, 17.5vw, 7rem);
    letter-spacing: -.11em;
  }

  .hero-line-two { margin-left: 8vw; }

  .hero-side-note {
    top: 7%;
    font-size: .47rem;
  }

  .hero-stamp {
    width: 5rem;
    top: 5%;
    right: 2%;
  }

  .stamp-ring { font-size: .35rem; }
  .stamp-center { font-size: 2.3rem; }

  .crosshair-one { top: 24%; right: 12%; }
  .crosshair-two { bottom: 15%; left: 10%; }

  .hero-lime-block {
    width: 6rem;
    height: 6rem;
    right: 10%;
    bottom: 9%;
  }

  .hero-vertical-index,
  .hero-edge-label { display: none; }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .hero-statement { font-size: 1rem; }
  .scroll-cue { justify-self: start; }
  .hero-index { font-size: .5rem; }

  .section-marker { font-size: .52rem; }

  .section-marker span:last-child { max-width: 50%; }

  .thesis { padding-top: 4rem; }
  .thesis-layout { padding: 3rem 0; }

  .display-title { font-size: clamp(3.5rem, 15vw, 6rem); }

  .thesis-bottom {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .thesis-ruler {
    gap: .45rem;
    font-size: .47rem;
  }

  .archive-title-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
  }

  .archive-title-row .display-title {
    font-size: clamp(4rem, 16vw, 7rem);
  }

  .archive-title-row .display-title > span { margin-left: 9vw; }

  .archive-title-row p {
    margin: 0;
    font-size: .85rem;
  }

  .project-list { grid-template-columns: 1fr; }

  .project,
  .project:nth-child(odd) {
    padding: 1rem var(--gutter) 1.4rem;
    border-right: 0;
  }

  .project-estrato,
  .project-nodo { padding-top: 1rem; }

  .project-art { aspect-ratio: 1.18; }

  .forma-word { font-size: 22vw; }
  .estrato-word { font-size: 15vw; }
  .ruido-word { font-size: 14vw; }
  .nodo-word { font-size: 17vw; }

  .archive-foot {
    flex-wrap: wrap;
    font-size: .48rem;
  }

  .archive-foot span:nth-child(2) { display: none; }

  .lab {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .lab-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
  }

  .lab-intro .display-title { font-size: clamp(4rem, 16vw, 7rem); }

  .lab-intro p {
    margin: 0;
    font-size: .85rem;
  }

  .lab-console-head {
    flex-wrap: wrap;
    font-size: .48rem;
  }

  .lab-console-head span:last-child { display: none; }

  .lab-playground { padding: .7rem; }
  .playground-stage { min-height: 320px; }

  .play-word { font-size: clamp(2.6rem, 13vw, 4.5rem); }

  .lab-controls {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .lab-feedback { grid-column: auto; }

  .lab-caption {
    flex-direction: column;
    font-size: .48rem;
  }

  .method { padding-top: 1rem; }

  .method-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
  }

  .method-heading .display-title {
    font-size: clamp(3.8rem, 15vw, 6.5rem);
  }

  .method-heading p {
    margin: 0;
    font-size: .85rem;
  }

  .method-step {
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1.7rem 0 1.7rem 1.4rem;
    min-height: 0;
  }

  .step-index { grid-column: 1/-1; }

  .step-symbol {
    grid-column: 2;
    grid-row: 2;
    width: 4rem;
  }

  .step-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .step-copy h3 { font-size: 1.8rem; }
  .step-copy p { font-size: .78rem; }

  .contact-topline { font-size: .49rem; }

  .contact-main {
    min-height: 570px;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .contact-aside {
    top: 7%;
    font-size: .49rem;
  }

  .contact-title {
    font-size: clamp(3.3rem, 14.5vw, 6rem);
    margin-bottom: 2.5rem;
  }

  .contact-title > span { margin-left: 12vw; }

  .contact-stamp {
    width: 6.5rem;
    right: 8%;
    bottom: 8%;
    font-size: 1.1rem;
  }

  .contact-link {
    width: 100%;
    font-size: .58rem;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .footer-wordmark { font-size: 1.7rem; }
  .footer-note { font-size: .5rem; }

  .footer-links {
    grid-column: 1/-1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .52rem;
  }

  .footer-bottom {
    font-size: .45rem;
    flex-wrap: wrap;
    margin-top: .5rem;
  }

  .footer-bottom span:nth-child(2) { display: none; }
  .cursor-label { display: none; }
}

/* ACESSIBILIDADE: MOVIMENTO REDUZIDO */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal-line] {
    clip-path: none;
    transform: none;
  }

  .reveal-text {
    opacity: 1;
    transform: none;
  }
}
