/* ============================================================
   VINGA STUDIO — horizontal deck-site
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink:        #0a0a0a;
  --ink-soft:   #161616;
  --paper:      #ffffff;
  --cream:      #f5e7d6;
  --cream-deep: #ecd9c2;
  --coral:      #1a7f8b;
  --coral-deep: #115e69;
  --teal:       #007f8b;

  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* tweakable */
  --hv: 76;              /* hero square grid size (vh) */
  --brand-scale: 1;      /* header logo box size */

  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --pad: clamp(22px, 4.4vw, 84px);
  --headerH: clamp(64px, 8vh, 96px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { position: fixed; inset: 0; }

::selection { background: var(--coral); color: #fff; }

/* ============================================================
   DECK PAGER
   ============================================================ */
.deck {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  width: 100%;
  transition: transform 0.95s var(--ease);
  will-change: transform;
}
.deck.no-anim { transition: none; }

.panel {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  display: flex;
  background: var(--ink);
}
.panel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: calc(var(--headerH) + clamp(8px,1.6vh,22px)) var(--pad) clamp(88px,12vh,120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============================================================
   HEADER (persistent)
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--headerH);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  pointer-events: none;
  color: var(--paper);
  transition: color 0.5s ease;
  mix-blend-mode: normal;
}
.header.on-light { color: var(--ink); }

.brand {
  pointer-events: auto;
  width: calc(clamp(98px, 9vw, 150px) * var(--brand-scale, 1));
  height: calc(clamp(30px, 2.8vw, 46px) * var(--brand-scale, 1));
  -webkit-mask: url('assets/vinga-wordmark.png') no-repeat center / contain;
          mask: url('assets/vinga-wordmark.png') no-repeat center / contain;
  background: currentColor;
  cursor: pointer;
  flex: none;
}

.header-right {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
}
.counter {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.05vw, 15px);
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.counter .cur { font-weight: 500; }
.counter .sep { opacity: 0.4; }
.counter .tot { opacity: 0.4; }

.header-link {
  pointer-events: auto;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.05vw, 15px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid currentColor;
  transition: opacity 0.25s ease;
}
.header-link:hover { opacity: 0.6; }

/* hamburger */
.menu-btn {
  pointer-events: auto;
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
  background: none; border: 0; cursor: pointer;
  color: inherit;
}
.menu-btn span {
  display: block;
  width: 30px; height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.menu-btn span:nth-child(2) { width: 22px; margin-left: auto; }

/* ============================================================
   NAV ARROWS
   ============================================================ */
.nav-arrow {
  position: fixed;
  bottom: clamp(22px, 4.5vh, 52px);
  z-index: 55;
  width: clamp(58px, 5.4vw, 86px);
  height: clamp(58px, 5.4vw, 86px);
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  color: var(--paper);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: color 0.5s ease, background 0.35s var(--ease), transform 0.35s var(--ease), opacity 0.4s ease;
}
.nav-arrow svg { width: 38%; height: 38%; display: block; }
.nav-arrow:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.nav-arrow.on-light { color: var(--ink); }
.nav-arrow.on-light:hover { color: #fff; }
.nav-next { right: var(--pad); }
.nav-prev { right: calc(var(--pad) + clamp(70px, 6.6vw, 104px)); }
.nav-arrow[disabled] { opacity: 0; pointer-events: none; }

/* progress ticks */
.ticks {
  position: fixed;
  left: var(--pad);
  bottom: clamp(24px, 4.8vh, 56px);
  z-index: 55;
  display: flex;
  gap: 8px;
  color: var(--paper);
  transition: color 0.5s ease;
}
.ticks.on-light { color: var(--ink); }
.tick {
  width: 30px; height: 2px;
  background: currentColor;
  opacity: 0.28;
  cursor: pointer;
  transition: opacity 0.35s ease, width 0.45s var(--ease);
}
.tick.active { opacity: 1; width: 46px; background: var(--coral); }
.ticks.on-light .tick.active { background: var(--ink); }

/* ============================================================
   TYPE HELPERS
   ============================================================ */
.label {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.05vw, 15px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
}
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.body-txt {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.45;
  text-wrap: pretty;
}

/* ============================================================
   BRAND MARKS
   ============================================================ */
.mark { position: relative; display: block; }

.burst {
  position: relative;
  width: 100%; height: 100%;
}
.burst svg { width: 100%; height: 100%; display: block; }
.spin { animation: spin 60s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

.rings {
  position: relative;
  width: 100%; height: 100%;
}
.rings svg { width: 100%; height: 100%; display: block; }
.rings .ring-o { stroke: var(--coral); }
.rings .ring-i { stroke: var(--teal); }

.x-mark { position: relative; width: 100%; height: 100%; }
.x-mark svg { width: 100%; height: 100%; display: block; }
.x-mark .x-ln { stroke: var(--teal); }

.diamond { position: relative; width: 100%; height: 100%; }
.diamond svg { width: 100%; height: 100%; display: block; }
.diamond .dia-o { fill: var(--coral); }

.photo {
  width: 100%; height: 100%;
  background: url('assets/eye.png') center / cover no-repeat;
}

/* arrows */
.big-arrow { display: block; color: currentColor; }
.big-arrow svg { display: block; width: 100%; height: 100%; }

/* ============================================================
   01 — HERO
   ============================================================ */
.hero .panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 0.6fr);
  gap: clamp(20px, 2.4vw, 46px);
  align-content: center;
  align-items: center;
}
.hero-copy { grid-column: 1; align-self: center; }
.hero-h {
  font-size: clamp(1.7rem, 2.9vw, 3.1rem);
}
.hero-h .lite { font-weight: 300; }
.hero-h .blk  { font-weight: 900; }
.hero-sub {
  margin-top: clamp(14px, 1.8vh, 26px);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.05vw, 1.12rem);
  color: rgba(255,255,255,0.62);
  max-width: 30ch;
}
.hero-visual {
  grid-column: 2; align-self: center; justify-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 1.1vw, 18px);
  width: min(44vw, calc(var(--hv, 76) * 1vh));
  aspect-ratio: 1 / 1;
}
.cell {
  position: relative;
  border: 1px solid rgba(255,255,255,0.3);
  display: grid; place-content: stretch;
  overflow: hidden;
}
.cell > .mark, .cell > .photo { width: 100%; height: 100%; padding: 13%; }
.cell > .photo { padding: 0; }

/* animated marks (the eye stays still) */
.hero .x-mark svg { transform-origin: center; animation: xRot 38s linear infinite; }
.hero .rings .ring-o { transform-box: fill-box; transform-origin: center; animation: ringBreatheO 3.8s ease-in-out infinite; }
.hero .rings .ring-i { transform-box: fill-box; transform-origin: center; animation: ringBreatheI 3.8s ease-in-out infinite; }
@keyframes xRot { to { transform: rotate(360deg); } }
@keyframes ringBreatheO { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes ringBreatheI { 0%,100% { transform: scale(1); } 50% { transform: scale(0.86); } }
@media (prefers-reduced-motion: reduce) {
  .spin, .hero .x-mark svg, .hero .rings .ring-o, .hero .rings .ring-i { animation: none; }
}

.hero-tags {
  grid-column: 3; align-self: center; justify-self: end;
  display: flex; flex-direction: column; align-items: flex-end; gap: clamp(3px,0.5vh,7px);
  text-align: right;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.82rem, 1vw, 1.08rem);
  color: rgba(255,255,255,0.8);
}
.hero-tags span { white-space: nowrap; }
.hero-tags span::after { content: " ."; color: var(--coral); }

/* ============================================================
   02 — PORQUÊ (manifesto triptych)
   ============================================================ */
.porque { background: var(--coral); }
.porque .panel-inner { padding: 0; }
.tript {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.04fr 1fr;
  width: 100%; height: 100%;
}
.tript-col {
  position: relative;
  display: flex; flex-direction: column;
  padding: calc(var(--headerH) + clamp(18px,5vh,60px)) clamp(24px,3vw,56px) clamp(64px,11vh,104px);
}
.tript-col > * { position: relative; z-index: 2; }
.tript-col.left  { background: var(--coral); color: var(--ink); }
.tript-col.mid   { position: relative; z-index: 3; background: var(--ink);   color: var(--paper); align-items: center; justify-content: center; gap: clamp(20px,5vh,56px); text-align: center; }
.tript-col.right { background: var(--coral); color: var(--ink); align-items: flex-end; text-align: right; }
.tript-arrow { align-self: center; width: min(78%, 340px); height: auto; aspect-ratio: 1 / 1; }
.tript-line {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.95rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.tript-line .em { font-weight: 900; }

/* rotating black burst straddling left / centre, like the Figma */
.porque-burst {
  position: absolute;
  left: 30%; bottom: -12%;
  width: min(26vw, 36vh);
  aspect-ratio: 1 / 1;
  color: var(--ink);
  z-index: 1;
  pointer-events: none;
}
.porque-burst svg { animation-duration: 40s; }
.mid-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 4.1rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.mid-h .soft { font-weight: 300; }
.mid-h .hv { font-weight: 900; }
.mid-logo {
  width: clamp(150px, 18vw, 300px);
  height: clamp(46px, 5.4vw, 90px);
  -webkit-mask: url('assets/vinga-wordmark.png') no-repeat center / contain;
          mask: url('assets/vinga-wordmark.png') no-repeat center / contain;
  background: var(--paper);
}
.porque-tag {
  position: absolute; top: calc(var(--headerH) - 8px); left: clamp(24px,3vw,56px);
  font-family: var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase;
  font-size: clamp(12px,1vw,15px); color: var(--ink);
}

/* ============================================================
   03 — O QUE FAZEMOS (burst intro)
   ============================================================ */
.fazemos .panel-inner {
  display: grid;
  grid-template-columns: minmax(0,0.92fr) minmax(0,1.08fr);
  align-items: center;
  gap: clamp(20px,4vw,70px);
}
.fazemos-burst {
  justify-self: center;
  width: min(100%, 52vh);
  aspect-ratio: 1/1;
}
.fazemos-burst svg path, .fazemos-burst svg line { stroke: var(--paper); }
.fazemos-burst svg polygon:nth-child(odd)  { fill: var(--paper); }
.fazemos-burst svg polygon:nth-child(even) { fill: var(--coral); }
.fazemos-copy { max-width: 44ch; }
.fazemos-h {
  margin-top: clamp(16px,2vh,26px);
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  font-weight: 900;
}
.fazemos-h .soft { font-weight: 300; display: block; font-size: 0.74em; letter-spacing: -0.02em; margin-top: 0.12em; }
.fazemos-list {
  margin-top: clamp(24px,3.4vh,44px);
  display: flex; flex-direction: column;
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.55rem);
  color: rgba(255,255,255,0.66);
}
.fazemos-list div { padding: clamp(6px,0.9vh,11px) 0; border-top: 1px solid rgba(255,255,255,0.14); }
.fazemos-list div:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }

/* ============================================================
   04 — SERVIÇOS (white list)
   ============================================================ */
.servicos { background: var(--paper); color: var(--ink); }
.servicos .label { color: var(--coral); }
.serv-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: clamp(10px,2vh,26px); }
.serv-head h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1rem,1.4vw,1.4rem); color: rgba(10,10,10,0.5); letter-spacing: -0.01em; }
.serv-rows { display: flex; flex-direction: column; }
.serv-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(16px,3vw,48px);
  padding: clamp(14px,2.2vh,30px) 0;
  border-top: 1px solid rgba(10,10,10,0.16);
}
.serv-row:last-child { border-bottom: 1px solid rgba(10,10,10,0.16); }
.serv-text { min-width: 0; }
.serv-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 3.3rem);
  line-height: 0.98; letter-spacing: -0.03em;
}
.serv-desc {
  margin-top: clamp(6px,1vh,12px);
  font-size: clamp(0.85rem, 1.05vw, 1.12rem);
  color: rgba(10,10,10,0.6); max-width: 52ch;
}
.serv-mark { width: clamp(52px, 6vw, 96px); height: clamp(52px, 6vw, 96px); flex: none; }
.serv-mark .burst svg polygon { fill: var(--ink); }

/* ============================================================
   05 — PARA QUEM (cream)
   ============================================================ */
.paraquem { background: var(--cream); color: var(--ink); }
.paraquem .label { color: var(--coral-deep); }
.paraquem .panel-inner {
  display: grid;
  grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr);
  gap: clamp(24px,4vw,72px);
  align-items: center;
}
.pq-left { align-self: center; max-width: 26ch; }
.pq-h {
  margin-top: clamp(14px,2vh,24px);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
  line-height: 0.95; letter-spacing: -0.03em;
}
.pq-h .coral { color: var(--coral-deep); }
.pq-sub {
  margin-top: clamp(18px,2.6vh,30px);
  font-size: clamp(0.95rem,1.2vw,1.25rem);
  color: rgba(10,10,10,0.62); max-width: 32ch;
}
.pq-list { display: flex; flex-direction: column; }
.pq-item {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline;
  gap: clamp(14px,1.6vw,26px);
  padding: clamp(8px,1.45vh,17px) 0;
  border-top: 1px solid rgba(10,10,10,0.16);
}
.pq-item:last-child { border-bottom: 1px solid rgba(10,10,10,0.16); }
.pq-num { font-family: var(--font-mono); font-size: clamp(0.72rem,0.9vw,0.95rem); color: var(--coral-deep); }
.pq-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.3rem, 2.5vw, 2.5rem);
  letter-spacing: -0.025em; line-height: 1;
  transition: transform 0.4s var(--ease), color 0.3s ease;
}
.pq-item:hover .pq-name { transform: translateX(10px); color: #1a7f8b; }

/* ============================================================
   06 — COMO TRABALHAMOS (process)
   ============================================================ */
.processo .panel-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(20px,4vw,60px);
  align-items: center;
}
.proc-left { position: relative; z-index: 2; max-width: 40ch; }
.proc-h {
  margin-top: clamp(14px,2vh,22px);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 6.4rem);
  line-height: 0.92; letter-spacing: -0.03em;
}
.proc-sub {
  margin-top: clamp(18px,2.6vh,32px);
  font-size: clamp(0.95rem,1.2vw,1.25rem);
  color: rgba(255,255,255,0.55); max-width: 34ch;
}
.proc-note {
  margin-top: clamp(20px,3vh,40px);
  font-style: italic; font-size: clamp(0.85rem,1vw,1.05rem);
  color: rgba(255,255,255,0.42);
}
.proc-right { position: relative; height: 100%; display: grid; align-content: center; }
.ghost-num {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(20rem, 40vw, 46rem);
  line-height: 0.7; color: rgba(255,255,255,0.045);
  letter-spacing: -0.05em; pointer-events: none; user-select: none;
  z-index: 1;
}
.proc-steps { position: relative; z-index: 2; justify-self: end; width: min(100%, 30ch); }
.proc-step {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(12px,1.6vw,26px);
  padding: clamp(12px,1.9vh,22px) 0;
  cursor: pointer;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.proc-step:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.proc-step .ix { font-family: var(--font-mono); font-size: clamp(0.78rem,0.95vw,1rem); color: rgba(255,255,255,0.4); }
.proc-step .nm {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.3rem, 2.4vw, 2.5rem); letter-spacing: -0.02em;
  color: rgba(255,255,255,0.34); transition: color 0.4s ease, transform 0.4s var(--ease);
}
.proc-step .ln { width: 0; height: 2px; background: var(--coral); transition: width 0.5s var(--ease); }
.proc-step.active .nm { color: var(--paper); transform: translateX(6px); }
.proc-step.active .ix { color: var(--coral); }
.proc-step.active .ln { width: clamp(24px,3vw,52px); }

/* ============================================================
   07 — CONTACTOS
   ============================================================ */
.contactos { background: var(--ink); }
.contactos .panel-inner { justify-content: space-between; }
.contactos .label { color: var(--coral); }
.ct-top { display: flex; flex-direction: column; gap: clamp(18px,3vh,40px); }
.ct-h {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 5.4vw, 5.6rem);
  line-height: 0.96; letter-spacing: -0.03em; max-width: 18ch;
}
.ct-h .soft { font-weight: 300; }
.ct-mail {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 3.4rem);
  letter-spacing: -0.02em; color: var(--coral);
  text-decoration: none; width: fit-content;
  border-bottom: 2px solid transparent; transition: border-color 0.3s ease;
}
.ct-mail:hover { border-color: var(--coral); }
.ct-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.ct-meta { display: flex; gap: clamp(28px,5vw,80px); }
.ct-meta .col span { display: block; }
.ct-meta .k { font-family: var(--font-mono); font-size: clamp(11px,0.85vw,13px); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.ct-meta .v { font-size: clamp(0.95rem,1.2vw,1.2rem); color: var(--paper); }
.ct-meta a.v { text-decoration: none; color: var(--paper); transition: color 0.25s; }
.ct-meta a.v:hover { color: var(--coral); }
.ct-logo {
  width: clamp(180px, 22vw, 380px); height: clamp(56px,6.6vw,116px);
  -webkit-mask: url('assets/vinga-wordmark.png') no-repeat center / contain;
          mask: url('assets/vinga-wordmark.png') no-repeat center / contain;
  background: var(--paper);
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: grid; place-content: center; justify-items: center;
  gap: clamp(20px,4vh,46px);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  width: clamp(220px, 34vw, 540px); height: clamp(70px, 11vw, 170px);
  -webkit-mask: url('assets/vinga-wordmark.png') no-repeat center / contain;
          mask: url('assets/vinga-wordmark.png') no-repeat center / contain;
  background: var(--paper);
  opacity: 0; transform: scale(0.96);
  animation: loaderIn 1s var(--ease) 0.1s forwards;
}
@keyframes loaderIn { to { opacity: 1; transform: scale(1); } }
.loader-count {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(1rem,1.6vw,1.5rem); letter-spacing: 0.1em;
  color: var(--paper);
}
.loader-count .sep { color: var(--coral); margin: 0 0.4em; }

/* ============================================================
   MENU OVERLAY
   ============================================================ */
.menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  padding: var(--headerH) var(--pad) clamp(40px,7vh,80px);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
  pointer-events: none;
}
.menu.open { clip-path: inset(0 0 0% 0); pointer-events: auto; }
.menu-intro {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 2.4rem); line-height: 1.05;
  letter-spacing: -0.02em; max-width: 14ch; color: var(--paper);
}
.menu-nav { display: flex; flex-direction: column; }
.menu-link {
  position: relative;
  display: flex; align-items: baseline; gap: clamp(16px,2vw,34px);
  padding: clamp(10px,1.7vh,20px) 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: var(--paper); text-decoration: none; cursor: pointer;
  background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left;
}
.menu-nav .menu-link:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.16); }
.menu-link .mi-num { font-family: var(--font-mono); font-size: clamp(0.75rem,0.95vw,1rem); color: var(--coral); width: 3ch; flex: none; }
.menu-link .mi-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.9rem); line-height: 1; letter-spacing: -0.03em;
  transition: transform 0.45s var(--ease), color 0.3s ease;
}
.menu-link:hover .mi-name { transform: translateX(clamp(10px,1.4vw,26px)); color: var(--coral); }
.menu-link.is-portfolio .mi-name { color: var(--coral); }
.menu-foot {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px;
  font-family: var(--font-mono); font-size: clamp(11px,0.9vw,14px);
  letter-spacing: 0.08em; color: rgba(255,255,255,0.5);
}
.menu-foot a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.25s; }
.menu-foot a:hover { color: var(--coral); }
.menu-close {
  position: fixed; top: 0; right: var(--pad); height: var(--headerH); z-index: 101;
  display: none; align-items: center; gap: 12px;
  background: none; border: 0; color: var(--paper); cursor: pointer;
  font-family: var(--font-mono); font-size: clamp(12px,1vw,15px); letter-spacing: 0.16em; text-transform: uppercase;
}
.menu.open ~ .menu-close { display: flex; }
.menu-close svg { width: 20px; height: 20px; }

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  [data-anim] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.85s var(--ease);
    transition-delay: 0ms;
  }
  .panel.is-active [data-anim] {
    opacity: 1; transform: none;
    transition-delay: calc(var(--d, 0) * 1ms + 350ms);
  }
}

/* ============================================================
   RESPONSIVE — portrait / narrow
   ============================================================ */
@media (max-width: 880px), (max-aspect-ratio: 1/1) {
  .hero .panel-inner { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: clamp(18px,3vh,30px); align-content: center; }
  .hero-copy, .hero-visual, .hero-tags { grid-column: 1; justify-self: start; }
  .hero-visual { grid-row: 2; width: min(86vw, 52vh); justify-self: center; }
  .hero-copy { max-width: none; }
  .hero-tags { grid-row: 3; flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; text-align: left; gap: 4px 14px; }

  .tript { grid-template-columns: 1fr; }
  .tript-col.left, .tript-col.right { display: none; }
  .tript-col.mid { padding: var(--headerH) var(--pad); }
  .porque-burst { display: none; }

  .fazemos .panel-inner { grid-template-columns: 1fr; align-content: center; gap: clamp(16px,3vh,28px); }
  .fazemos-burst { width: min(54vw, 34vh); grid-row: 1; }

  .servicos .panel-inner { justify-content: flex-start; }
  .serv-mark { width: clamp(40px,12vw,64px); height: clamp(40px,12vw,64px); }
  .serv-title { font-size: clamp(1.4rem, 7vw, 2.2rem); }
  .serv-desc { display: none; }

  .paraquem .panel-inner { grid-template-columns: 1fr; align-content: center; gap: clamp(16px,3vh,26px); }
  .pq-sub { display: none; }

  .processo .panel-inner { grid-template-columns: 1fr; align-content: center; }
  .proc-right { display: none; }

  .menu-link .mi-name { font-size: clamp(1.6rem, 8vw, 3rem); }
}

/* ============================================================
   RESPONSIVE — phones (override fixed-px edits)
   ============================================================ */
@media (max-width: 600px) {
  .header-link { display: none; }
  .header-right { gap: 18px; }

  .hero .panel-inner { font-size: initial !important; }
  .hero-h, .hero-h span { font-size: clamp(2rem, 8.5vw, 2.7rem) !important; width: auto !important; }
  .hero-sub { font-size: 15px !important; margin-top: 14px !important; }
  .hero-visual { width: min(82vw, 44vh); }
  .hero-tags, .hero-tags span { font-size: 13px !important; }

  .mid-h { font-size: clamp(1.7rem, 7vw, 2.3rem) !important; width: auto !important; text-align: center !important; }
  .tript-line { font-size: clamp(1.05rem, 5vw, 1.4rem) !important; margin-top: 24px !important; }

  .fazemos-h { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .fazemos-list { font-size: 1rem; }

  .pq-h, .pq-h span { font-size: clamp(2rem, 9vw, 2.8rem) !important; width: auto !important; }
  .pq-name { font-size: clamp(1.3rem, 6vw, 1.9rem) !important; }

  .proc-h { font-size: clamp(2.2rem, 11vw, 3.2rem) !important; }
  .proc-step .nm { font-size: clamp(1.3rem, 6vw, 1.9rem) !important; }

  .ct-h { font-size: clamp(2rem, 9.5vw, 2.9rem); margin-top: 0 !important; }
  .ct-mail { font-size: clamp(1.3rem, 6vw, 1.9rem); }
  .ct-meta { flex-wrap: wrap; gap: 18px 32px; }
  .ct-logo { width: min(60vw, 240px); }

  .menu-link .mi-name { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .menu-intro { font-size: clamp(1.1rem, 5vw, 1.5rem); }
}
