/* ==========================================================================
   Portfólio Lucas Ruon
   O expediente em Curitiba: a rolagem vai das 7h às 19h30. O céu passa
   pela neblina da manhã, pelo dia claro, pela tarde dourada, pelo
   entardecer âmbar e fecha na noite verde de araucária.
   ========================================================================== */

:root {
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ink: #17201c;
  --ink-2: #3a4540;
  --muted: #535d58;
  --line: rgba(23, 32, 28, 0.12);
  --paper: #fbfaf5;
  --pine: #1f5c45;
  --pine-2: #2f7a5d;
  --night: #0b1411;
  --night-ink: #e9efe9;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: min(1200px, 100% - 48px);
  --day: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: rgba(23, 32, 28, 0.35) transparent; }
html.is-still { scroll-behavior: auto; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--sans);
  font-optical-sizing: auto;
  color: var(--ink);
  background: #dfe5e4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
::selection { background: var(--pine); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; color: var(--pine); }
.night em { color: #8fd1b0; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: #8fd1b0; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Tipografia ---------- */
.t-h2 {
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.t-h3 { font-weight: 600; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -0.015em; }
.meta { font-size: 15px; color: var(--muted); }
.block-title { font-size: 15px; font-weight: 600; color: var(--ink); }

/* ---------- Céu: o dia de Curitiba ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.sky__layer[data-layer='manha'] { background: linear-gradient(180deg, #d5dddd 0%, #e2e7e3 55%, #ebede6 100%); }
.sky__layer[data-layer='dia'] { background: linear-gradient(180deg, #d7e6ee 0%, #e9f0ee 55%, #f3f3ec 100%); }
.sky__layer[data-layer='tarde'] { background: linear-gradient(180deg, #ece7d6 0%, #e9d9b8 60%, #e3c896 100%); }
.sky__layer[data-layer='entardecer'] { background: linear-gradient(180deg, #e7bb8f 0%, #d9ad8c 34%, #b3b4a6 72%, #9eb0ae 100%); }
.sky__layer[data-layer='noite'] {
  background: linear-gradient(180deg, #08100d 0%, #102019 100%);
}
html[data-sky='manha'] [data-layer='manha'],
html[data-sky='dia'] [data-layer='dia'],
html[data-sky='tarde'] [data-layer='tarde'],
html[data-sky='entardecer'] [data-layer='entardecer'],
html[data-sky='noite'] [data-layer='noite'] { opacity: 1; }
/* neblina da manhã: duas massas lentas, só na primeira camada */
.fog { position: absolute; width: 90vw; height: 60vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)); filter: blur(30px); }
.fog--a { left: -20vw; top: 34vh; animation: drift 38s ease-in-out infinite alternate; }
.fog--b { right: -30vw; top: 4vh; opacity: 0.7; animation: drift 46s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(18vw, -4vh, 0); } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--pine); }
.btn--ghost { color: var(--ink); border: 1.5px solid rgba(23, 32, 28, 0.3); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--night-ink); color: var(--night); }
.btn--light:hover { background: #fff; }
.btn--line { color: var(--night-ink); border: 1.5px solid rgba(233, 239, 233, 0.3); }
.btn--line:hover { border-color: var(--night-ink); }

/* ---------- Barra do expediente ---------- */
.nav {
  position: fixed; z-index: 20; inset: 0 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 68px; padding: 0 max(24px, (100% - 1200px) / 2);
  background: rgba(244, 243, 236, 0.94);
  transition: background-color 0.5s, color 0.5s;
}
.nav__brand { display: grid; line-height: 1.15; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; justify-self: start; }
.nav__brand span { font-size: 13px; font-weight: 400; color: var(--muted); }
.nav__clock { display: flex; align-items: baseline; gap: 12px; }
.nav__time { font: 500 15px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.nav__where { font-size: 14px; color: var(--muted); min-width: 9em; }
.nav__end { display: flex; align-items: center; gap: 20px; justify-self: end; }
.nav__links { display: flex; gap: 20px; }
.nav__links a { font-size: 14px; text-decoration: none; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); text-decoration: underline; }
/* a linha do dia: o sol anda conforme a rolagem */
.nav__day { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity 0.5s; }
.nav.is-scrolled .nav__day { opacity: 1; }
.nav__day i { position: absolute; top: -4px; left: calc(var(--day) * (100% - 9px)); width: 9px; height: 9px; border-radius: 50%; background: #e0a233; box-shadow: 0 0 0 3px rgba(224, 162, 51, 0.22); }
html.is-night .nav { background: rgba(8, 16, 13, 0.92); color: var(--night-ink); }
html.is-night .nav__brand span, html.is-night .nav__where { color: rgba(233, 239, 233, 0.6); }
html.is-night .nav__links a { color: rgba(233, 239, 233, 0.75); }
html.is-night .nav__links a:hover { color: #fff; }
html.is-night .nav .btn--ink { background: var(--night-ink); color: var(--night); }
html.is-night .nav__day { background: rgba(233, 239, 233, 0.14); }
html.is-night .nav__day i { background: #e9efe9; box-shadow: 0 0 0 3px rgba(233, 239, 233, 0.16); }

/* ---------- Revelação ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.hero [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.hero [data-reveal]:nth-child(3) { transition-delay: 0.16s; }

/* ---------- 1. Abertura ---------- */
.hero {
  position: relative; min-height: min(100svh, 760px);
  display: grid; align-items: end;
}
.hero__text { display: grid; gap: 28px; width: var(--wrap); margin-inline: auto; padding: 132px 0 112px; }
.hero__title { font-weight: 600; font-size: clamp(52px, 7.2vw, 112px); line-height: 0.95; letter-spacing: -0.04em; text-wrap: balance; max-width: 12ch; }
.hero__lead { max-width: 34em; font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #48c486; box-shadow: 0 0 0 4px rgba(72, 196, 134, 0.2); }
.hero__scroll { position: absolute; left: max(24px, (100vw - 1200px) / 2); bottom: 40px; font-size: 14px; color: var(--muted); }

/* ---------- Cenas fixas ---------- */
.is-pinned { position: relative; }
.is-pinned > .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- 2. Antes e depois ---------- */
.chaos { --p: 0; }
.chaos > .stage { min-height: 100vh; min-height: 100svh; }
.chaos:not(.is-pinned) > .stage { position: relative; }
.chaos__lines { position: absolute; left: 50%; top: 16vh; transform: translateX(-50%); width: var(--wrap); text-align: center; z-index: 2; }
.chaos__line {
  position: absolute; inset: 0 0 auto;
  font-weight: 600; font-size: clamp(34px, 4.8vw, 72px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
.chaos__line--a { opacity: clamp(0, 1 - (var(--p) - 0.3) * 6, 1); transform: translateY(calc(clamp(0, (var(--p) - 0.3) * 6, 1) * -24px)); }
.chaos__line--b { opacity: clamp(0, (var(--p) - 0.46) * 6, 1); transform: translateY(calc((1 - clamp(0, (var(--p) - 0.46) * 6, 1)) * 24px)); }
.chaos__bits li {
  --k: calc(1 - clamp(0, (var(--p) - var(--d)) / 0.5, 1));
  position: absolute; left: 50%; top: 58%; z-index: 1;
  padding: 9px 14px; border-radius: 8px; white-space: nowrap;
  font: 400 13px/1.3 var(--mono); color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 10px 24px -14px rgba(23, 32, 28, 0.35);
  transform: translate(-50%, -50%) translate(calc(var(--x) * var(--k)), calc(var(--y) * var(--k))) rotate(calc(var(--r) * var(--k))) scale(calc(0.7 + var(--k) * 0.3));
  opacity: clamp(0, var(--k) * 1.6, 1);
}
.chaos__window {
  --w: clamp(0, (var(--p) - 0.44) * 4, 1);
  position: absolute; left: 50%; top: 58%; z-index: 2;
  width: min(440px, 86vw); border-radius: var(--radius); overflow: hidden;
  background: var(--paper); box-shadow: 0 40px 80px -36px rgba(23, 32, 28, 0.45);
  opacity: var(--w); transform: translate(-50%, -50%) scale(calc(0.86 + var(--w) * 0.14));
}
.win__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 400 12px var(--mono); color: var(--muted); }
.win__bar i, .device__bar i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcd2; }
.win__bar span { margin-left: 8px; }
.win__body { padding: 6px 20px 14px; }
.win__row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.win__row:last-child { border: 0; }
.win__k { color: var(--muted); }
.win__v { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.win__v::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--pine-2); }

/* ---------- 3. Projetos ---------- */
.pan { --p: 0; }
.pan > .stage { display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 110px 0 48px; }
.pan__head { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 40px; }
.pan__hint { max-width: 22em; color: var(--ink-2); font-size: 15px; }
.pan__viewport { padding-inline: max(24px, (100% - 1200px) / 2); }
.pan__track {
  --pp: clamp(0, (var(--p) - 0.06) / 0.86, 1);
  display: flex; gap: 20px; width: max-content;
  transform: translate3d(calc(var(--pp) * -1 * var(--travel, 0px)), 0, 0);
  will-change: transform;
}
.pan__progress { width: var(--wrap); margin-inline: auto; height: 2px; background: var(--line); overflow: hidden; }
.pan__progress span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(clamp(0, (var(--p) - 0.06) / 0.86, 1)); }

.card { width: clamp(300px, 33vw, 480px); flex: none; }
.card__link {
  display: grid; height: 100%; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(23, 32, 28, 0.06), 0 18px 40px -28px rgba(23, 32, 28, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card__link:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(23, 32, 28, 0.06), 0 34px 60px -34px rgba(23, 32, 28, 0.5); }
.card__media {
  height: clamp(220px, 34vh, 330px); display: grid; place-items: end center; overflow: hidden;
  background: var(--accent); padding: 26px 26px 0;
}
.card__media--desktop .device { width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.card__media--phone .device { width: 46%; margin-bottom: -36%; }
.card__body { display: grid; gap: 6px; padding: 20px 24px 24px; }
.card__body p:not(.meta) { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin-top: 6px; }
.card__more { font-size: 14px; font-weight: 600; padding-top: 8px; color: var(--pine); }
.card__more span { display: inline-block; transition: transform 0.4s var(--ease); }
.card__link:hover .card__more span { transform: translateX(4px); }

/* ---------- Aparelhos ---------- */
.device { position: relative; }
.device--phone { padding: 7px; border-radius: 32px; background: #111614; box-shadow: 0 24px 48px -26px rgba(0, 0, 0, 0.55); }
.device--phone .device__screen { border-radius: 26px; overflow: hidden; background: #000; }
.device--desktop { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 24px 48px -30px rgba(23, 32, 28, 0.5); }
.device__bar { display: flex; gap: 6px; padding: 9px 12px; background: #f1f1ea; border-bottom: 1px solid var(--line); }
.device__screen img { width: 100%; }

/* ---------- 4. Casos ---------- */
.case { padding: clamp(96px, 15vh, 170px) 0 clamp(64px, 10vh, 110px); scroll-margin-top: 60px; }
.case__head { display: grid; gap: 10px; max-width: 900px; margin-bottom: clamp(40px, 6vh, 64px); }
.case__head .t-h2 { display: flex; align-items: center; gap: 16px; }
.case__head .t-h2::before { content: ''; flex: none; width: 0.42em; height: 0.42em; border-radius: 4px; background: var(--accent); }
.case__lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.42; color: var(--ink-2); max-width: 30em; text-wrap: pretty; margin-top: 8px; }
.case__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 64px); }
.case__block { display: grid; align-content: start; gap: 16px; }
.case__problem { font-size: 18px; color: var(--ink-2); max-width: 32em; }
.facts { display: grid; margin-top: 10px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 72px 1fr; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 24px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; color: var(--ink); }
.facts dd { font-size: 15px; color: var(--ink-2); }
.built { display: grid; counter-reset: b; }
.built li { counter-increment: b; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
.built li::before { content: counter(b); font: 400 12px/2 var(--mono); color: var(--muted); }

/* Galeria: com espaço, fica presa e as telas andam para o lado com a rolagem (como o trilho de projetos);
   em tela estreita ou com movimento reduzido, vira faixa de arrastar. */
.gallery {
  --edge: max(24px, (100vw - 1200px) / 2);
  --shot-h: clamp(360px, 54vh, 500px);
  --pp: clamp(0, (var(--p, 0) - 0.06) / 0.86, 1);
  margin: clamp(32px, 6vh, 64px) calc(var(--edge) * -1) 0;
}
.gallery.is-pinned { margin-top: 0; }
.gallery.is-pinned > .stage { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; }
.gallery__viewport { padding: 8px var(--edge) 24px; }
.gallery__track { display: flex; align-items: flex-start; gap: 22px; width: max-content; }
.gallery.is-pinned .gallery__track { transform: translate3d(calc(var(--pp) * -1 * var(--travel, 0px)), 0, 0); will-change: transform; }
.gallery:not(.is-pinned) .gallery__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: thin; scrollbar-color: rgba(23, 32, 28, 0.3) transparent;
}
.gallery:not(.is-pinned) .gallery__viewport::-webkit-scrollbar { height: 6px; }
.gallery:not(.is-pinned) .gallery__viewport::-webkit-scrollbar-thumb { background: rgba(23, 32, 28, 0.25); border-radius: 6px; }
.shot { flex: none; width: min-content; scroll-snap-align: start; display: grid; gap: 12px; }
.shot .device__bar { height: 30px; box-sizing: border-box; align-items: center; }
.shot .device__screen img { display: block; width: auto; max-width: none; }
.shot--desktop .device__screen img { height: calc(var(--shot-h) - 30px); aspect-ratio: 16 / 10; }
.shot--phone .device__screen img { height: calc(var(--shot-h) - 14px); aspect-ratio: 780 / 1688; }
.shot figcaption { font-size: 14px; font-weight: 600; }
.shot figcaption span { font-weight: 400; color: var(--muted); }
.shot__btn { all: unset; cursor: zoom-in; display: block; border-radius: 12px; transition: transform 0.5s var(--ease); }
.shot__btn:hover { transform: translateY(-4px); }
.shot__btn:focus-visible { outline: 2px solid var(--pine); outline-offset: 4px; }

.case__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.case__foot > div { display: grid; gap: 12px; align-content: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 8px; font-size: 14px; background: var(--paper); }
.chips--quiet li { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

/* Fluxo do n8n */
.flow { margin-top: clamp(48px, 7vh, 80px); display: grid; gap: 14px; --draw: 0; }
.flow__canvas { padding: clamp(16px, 2.4vw, 32px); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.flow svg { width: 100%; height: auto; display: block; }
.flow__edges path { fill: none; stroke: rgba(23, 32, 28, 0.26); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw)); }
.flow__nodes rect { opacity: clamp(0, (var(--draw) * 90 - var(--i)) / 8, 1); }
.flow figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--ink-2); }
.flow__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.flow__legend span { display: inline-flex; align-items: center; gap: 6px; }
.flow__legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- 5. Como trabalho ---------- */
.process { padding: clamp(96px, 16vh, 170px) 0; }
.process__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.process__intro { position: sticky; top: 130px; display: grid; gap: 20px; }
.process__intro p:last-child { color: var(--ink-2); max-width: 26em; }
.step { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font: 300 52px/0.9 var(--sans); letter-spacing: -0.03em; color: var(--pine); font-variant-numeric: tabular-nums; }
.step div { display: grid; gap: 8px; }
.step p { color: var(--ink-2); }

/* ---------- 6. O que eu faço ---------- */
.services { padding: 0 0 clamp(96px, 14vh, 150px); }
.services__grid { display: grid; margin-top: 40px; border-top: 1px solid rgba(23, 32, 28, 0.28); }
.service { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px 64px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.service__title { font-weight: 600; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -0.025em; }
.service p { color: var(--ink-2); font-size: 17px; max-width: 34em; }
.aud { margin-top: 72px; display: grid; grid-template-columns: 0.9fr 2.1fr; gap: 32px; }
.aud__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.aud__item { display: grid; gap: 8px; }
.aud__item h4 { font-weight: 600; font-size: 18px; }
.aud__item p { color: var(--ink-2); font-size: 15px; }

/* ---------- 2. Apresentação ---------- */
.about { padding: clamp(32px, 5vh, 72px) 0 clamp(96px, 16vh, 180px); }
.about__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.about__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; background: rgba(15, 24, 20, 0.78); color: #eef2ee; font-size: 14px;
}
.about__text { display: grid; gap: 20px; }
.about__text > p { font-size: 18px; color: var(--ink-2); max-width: 34em; }

/* ---------- 8. Noite: fim do expediente ---------- */
.night { color: var(--night-ink); background-color: #0b1411; background-image: linear-gradient(180deg, #08100d 0%, #102019 100%); }
.contact { position: relative; padding: clamp(140px, 22vh, 230px) 0 0; overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.contact__grid > div:first-child { display: grid; gap: 24px; }
.contact__title { font-size: clamp(40px, 5.2vw, 84px); }
.contact__lead { max-width: 30em; font-size: 18px; color: rgba(233, 239, 233, 0.74); }
.contact__list { display: grid; }
.contact__list div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(233, 239, 233, 0.12); }
.contact__list dt { font-size: 14px; color: rgba(233, 239, 233, 0.55); }
.contact__list a { text-decoration: underline; text-decoration-color: rgba(233, 239, 233, 0.3); }
.contact__list a:hover { text-decoration-color: var(--night-ink); }
.closing { width: var(--wrap); margin: clamp(80px, 12vh, 140px) auto 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; user-select: none; }
.closing__time { font: 300 clamp(110px, 19vw, 300px)/0.8 var(--mono); letter-spacing: -0.06em; color: #8fd1b0; font-variant-numeric: tabular-nums; }
.closing__text { padding-bottom: 0.6em; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; color: rgba(233, 239, 233, 0.7); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding: 26px 0 32px; font-size: 13px; color: rgba(233, 239, 233, 0.5); border-top: 1px solid rgba(233, 239, 233, 0.1); }

/* ---------- Ampliação ---------- */
.lightbox { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; gap: 12px; padding: 40px 24px; background: rgba(8, 16, 13, 0.92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 94vw); max-height: 82vh; width: auto; border-radius: 10px; }
.lightbox__cap { color: rgba(233, 239, 233, 0.75); font-size: 14px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 10px; border: 0; background: rgba(233, 239, 233, 0.12); color: #fff; font: 400 26px/1 var(--sans); cursor: pointer; }
.lightbox__close:hover { background: rgba(233, 239, 233, 0.22); }

/* ---------- Sem cenas fixas (movimento reduzido ou celular) ---------- */
.pan:not(.is-pinned) > .stage { padding: clamp(96px, 14vh, 140px) 0 24px; }
.pan:not(.is-pinned) .pan__viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: none; }
.pan:not(.is-pinned) .pan__viewport::-webkit-scrollbar { display: none; }
.pan:not(.is-pinned) .pan__track { transform: none; padding-right: 24px; }
.pan:not(.is-pinned) .card { scroll-snap-align: center; }
.pan:not(.is-pinned) .pan__progress { display: none; }
.is-still .chaos > .stage { min-height: auto; padding: 120px 0; display: grid; gap: 40px; justify-items: center; }
.is-still .chaos__lines, .is-still .chaos__window { position: static; transform: none; }
.is-still .chaos__line { position: static; }
.is-still .chaos__line--a, .is-still .chaos__bits { display: none; }
.is-still .chaos__line--b { opacity: 1; transform: none; }
.is-still .chaos__window { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .fog { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Telas menores ---------- */
@media (max-width: 1080px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__clock { display: none; }
  .nav__links { display: none; }
  .aud { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  body { font-size: 16px; }
  .nav { height: 60px; }
  .nav__brand span { display: none; }
  .hero { min-height: 0; }
  .hero__text { padding: 120px 0 104px; }
  .hero__scroll { left: 24px; bottom: 32px; }
  .about { padding-top: 8px; }
  .chaos__lines { top: 13vh; }
  .chaos__bits li { font-size: 11px; padding: 7px 10px; }
  .pan__head { grid-template-columns: 1fr; }
  .card { width: min(84vw, 400px); }
  .case__grid, .case__foot, .process__grid, .about__grid, .contact__grid, .service { grid-template-columns: 1fr; }
  .service { gap: 10px; }
  .process__intro { position: static; }
  .aud__grid { grid-template-columns: 1fr; gap: 20px; }
  .step { grid-template-columns: 56px 1fr; }
  .step__n { font-size: 40px; }
  .about__photo { max-width: 360px; }
  .gallery { --edge: 24px; }
  .shot--desktop .device__screen img { height: auto; width: 82vw; }
  .shot--phone .device__screen img { height: auto; width: 52vw; }
  .closing__text { padding-bottom: 0; }
}
