/* ==========================================================================
   AOAS Perícias de Engenharia: cinematic one-page
   ========================================================================== */

:root {
  --bg: #0b0c0f;
  --bg-2: #101216;
  --panel: #15171c;
  --paper: #f2efe9;
  --paper-2: #eae6de;
  --ink: #16181d;
  --ink-soft: #4c505a;
  --white-warm: #f5f1ea;
  --dim: #9aa0ab;
  --amber: #c9924a;
  --amber-hi: #e2ac60;
  --line-l: rgba(255, 255, 255, 0.09);
  --line-d: rgba(22, 24, 29, 0.14);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1240px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* Grain global */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-2%, -3%); }
  80% { transform: translate(4%, 2%); }
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; color: var(--white-warm); }
.loader__icon { width: 64px; height: 64px; margin: 0 auto 18px; opacity: 0.92; }
.loader__word {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 500; letter-spacing: 0.32em;
  margin-left: 0.32em;
}
.loader__sub {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--dim); margin-top: 6px;
}
.loader__bar {
  width: 180px; height: 1px; margin: 26px auto 10px;
  background: var(--line-l); position: relative; overflow: hidden;
}
.loader__bar span {
  position: absolute; inset: 0; width: 0%;
  background: var(--amber); transition: width 0.25s linear; display: block;
}
.loader__pct { color: var(--amber); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background 0.45s, backdrop-filter 0.45s, border-color 0.45s, transform 0.45s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(11, 12, 15, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-l);
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; color: var(--white-warm); }
.nav__brand img { width: 34px; height: 34px; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav__brand-text strong { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.18em; font-size: 1.02rem; }
.nav__brand-text small { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dim); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  color: var(--dim); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.02em; position: relative; padding: 6px 0;
  transition: color 0.3s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white-warm); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { flex-shrink: 0; }
.nav__burger {
  display: none; background: none; border: 0;
  width: 40px; height: 40px; position: relative; margin-left: auto;
}
.nav__burger span {
  position: absolute; left: 8px; right: 8px; height: 1.5px;
  background: var(--white-warm); transition: transform 0.35s var(--ease-out), top 0.35s;
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 24px; }
body.menu-open .nav__burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 890;
  background: rgba(11, 12, 15, 0.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 clamp(28px, 8vw, 64px);
  opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0.45s;
}
body.menu-open .mmenu { opacity: 1; visibility: visible; }
.mmenu__links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 36px; }
.mmenu__links a {
  font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 400; color: var(--white-warm); padding: 6px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
body.menu-open .mmenu__links a { opacity: 1; transform: none; }
.mmenu__links a:nth-child(1) { transition-delay: 0.05s; }
.mmenu__links a:nth-child(2) { transition-delay: 0.1s; }
.mmenu__links a:nth-child(3) { transition-delay: 0.15s; }
.mmenu__links a:nth-child(4) { transition-delay: 0.2s; }
.mmenu__links a:nth-child(5) { transition-delay: 0.25s; }

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid transparent; border-radius: 2px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--amber { background: var(--amber); color: #14100a; }
.btn--amber:hover { background: var(--amber-hi); }
.btn--ghost { border-color: rgba(245, 241, 234, 0.28); color: var(--white-warm); background: transparent; }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber-hi); }
.btn--dark { background: var(--ink); color: var(--white-warm); }
.btn--dark:hover { background: #23262d; }
.btn--ghost-dark { border-color: var(--line-d); color: var(--ink); }
.btn--ghost-dark:hover { border-color: var(--amber); color: var(--amber); }
.nav__cta { padding: 9px 18px; font-size: 0.76rem; }

/* ==========================================================================
   Hero: sequência canvas
   ========================================================================== */
.hero { position: relative; background: var(--bg); }
.hero__pin {
  position: relative; height: 100vh; height: 100svh;
  overflow: hidden;
}
.hero__poster, .hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero__canvas { z-index: 2; }
.hero__poster { z-index: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: 3;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(11, 12, 15, 0.55) 100%),
    linear-gradient(to top, rgba(11, 12, 15, 0.6), transparent 30%),
    linear-gradient(to bottom, rgba(11, 12, 15, 0.5), transparent 22%);
  pointer-events: none;
}

.hero__stage {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(20px, 6vw, 90px);
  color: var(--white-warm);
  pointer-events: none;
}
.hero__stage > * { pointer-events: auto; }
.hero__stage--2, .hero__stage--3 { opacity: 0; visibility: hidden; }
.hero__stage--3 { align-items: center; text-align: center; }

.eyebrow {
  color: var(--amber); margin-bottom: 18px;
}
.eyebrow--light { color: var(--amber-hi); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 13ch;
}
.hero__title em { font-style: italic; color: var(--amber-hi); }
.hero__lead {
  margin-top: 22px; max-width: 46ch;
  color: rgba(245, 241, 234, 0.78);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 300;
}
.hero__ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero__mid {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.1;
}
.hero__metrics {
  display: flex; gap: clamp(28px, 5vw, 64px);
  margin-top: 42px; flex-wrap: wrap;
}
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric__num {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--amber-hi); letter-spacing: 0.04em;
}
.metric__label { font-size: 0.8rem; color: var(--dim); max-width: 20ch; }

.hero__phrase {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.9rem, 4.8vw, 3.8rem); line-height: 1.15;
}
.hero__phrase--b em { color: var(--amber-hi); }

.hero__hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 6; color: var(--dim);
  display: flex; align-items: center; gap: 12px;
}
.hero__hint span {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(to bottom, transparent, var(--amber));
  animation: hint 2s var(--ease-out) infinite;
}
@keyframes hint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   Seções base
   ========================================================================== */
.section { position: relative; padding: clamp(80px, 12vh, 150px) 0; }
.section--tight { padding-top: clamp(40px, 7vh, 80px); }
.section--paper {
  background:
    linear-gradient(rgba(22, 24, 29, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 24, 29, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--ink);
}
.section--dark { background: var(--bg); color: var(--white-warm); }

.section__head { max-width: 780px; margin-bottom: clamp(40px, 6vh, 72px); }
.section__head--row {
  max-width: none; display: flex; justify-content: space-between;
  align-items: flex-end; gap: 40px; flex-wrap: wrap;
}
.section__lead { margin-top: 18px; color: var(--ink-soft); max-width: 58ch; }
.section__lead--right { max-width: 34ch; text-align: left; }

.h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.12;
  letter-spacing: -0.01em; margin-top: 14px;
}
.h2--light { color: var(--white-warm); }
.h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.2;
}

.reveal-lines .line { display: block; overflow: hidden; }
.reveal-lines .line > span { display: block; }

/* ==========================================================================
   Grandes áreas
   ========================================================================== */
.bigareas { display: flex; flex-direction: column; border-top: 1px solid var(--line-d); }
.bigarea {
  display: grid;
  grid-template-columns: 64px 1fr 1.2fr 40px;
  gap: 24px; align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line-d);
  transition: background 0.35s, padding 0.35s var(--ease-out);
  position: relative;
}
.bigarea:hover { background: rgba(201, 146, 74, 0.06); padding-left: 20px; }
.bigarea__idx { color: var(--amber); }
.bigarea__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.2;
}
.bigarea__desc { color: var(--ink-soft); font-size: 0.92rem; }
.bigarea__arrow {
  font-size: 1.3rem; color: var(--amber);
  transform: translateX(-8px); opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
.bigarea:hover .bigarea__arrow { transform: none; opacity: 1; }

/* Para quem */
.publics {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.public {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line-d); border-radius: 2px;
  font-size: 0.92rem; font-weight: 500;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.public:hover { border-color: var(--amber); transform: translateY(-3px); }
.public__idx {
  color: var(--amber); border: 1px solid currentColor; border-radius: 50%;
  width: 26px; height: 26px; display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}

/* ==========================================================================
   Áreas de atuação
   ========================================================================== */
.segnav {
  position: sticky; top: var(--nav-h); z-index: 40;
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 14px 0; margin-bottom: clamp(36px, 6vh, 64px);
  background: linear-gradient(var(--paper) 82%, transparent);
}
.segnav__item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--line-d); border-radius: 100px;
  background: var(--paper);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.segnav__item .mono { color: var(--amber); }
.segnav__item:hover, .segnav__item.is-active { border-color: var(--ink); background: var(--ink); color: var(--white-warm); }

.segment { margin-bottom: clamp(70px, 10vh, 120px); scroll-margin-top: 130px; }
.segment:last-child { margin-bottom: 0; }
.segment__banner {
  position: relative; overflow: hidden; border-radius: 2px;
  aspect-ratio: 21 / 7; margin-bottom: 34px;
}
.segment__banner img {
  width: 100%; height: 115%; object-fit: cover; object-position: center;
  will-change: transform;
}
.segment__banner-tag {
  position: absolute; left: 18px; bottom: 16px;
  color: var(--white-warm); background: rgba(11, 12, 15, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 7px 14px; border-radius: 2px;
  border-left: 2px solid var(--amber);
}
.segment__head { max-width: 640px; margin-bottom: 34px; }
.segment__head p { color: var(--ink-soft); margin-top: 10px; }

.services {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.service {
  position: relative;
  padding: 26px 24px 22px;
  border: 1px solid var(--line-d); border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
  scroll-margin-top: 150px;
}
.service::before {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--amber); border-left: 1px solid var(--amber);
  opacity: 0; transition: opacity 0.3s;
}
.service:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 146, 74, 0.5);
  box-shadow: 0 18px 40px -18px rgba(22, 24, 29, 0.25);
}
.service:hover::before { opacity: 1; }
.service.is-target { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.service h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.12rem; line-height: 1.25; margin-bottom: 10px;
}
.service p { color: var(--ink-soft); font-size: 0.88rem; flex: 1; }
.service__cta {
  margin-top: 18px; font-size: 0.78rem; font-weight: 600;
  color: var(--amber); letter-spacing: 0.03em;
  transition: color 0.3s;
}
.service__cta:hover { color: var(--ink); }

/* ==========================================================================
   Experiência: horizontal
   ========================================================================== */
.exp { padding: 0; overflow: hidden; }
.exp__pin { padding: clamp(80px, 12vh, 140px) 0; }
.exp__headwrap { margin-bottom: clamp(40px, 6vh, 64px); }
.exp__note { color: var(--dim); font-size: 0.85rem; margin-top: 16px; max-width: 52ch; }
.exp__track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  padding: 0 clamp(20px, 4vw, 48px);
  width: max-content;
}
.case {
  width: clamp(280px, 30vw, 420px);
  flex-shrink: 0;
  background: var(--panel);
  border: 1px solid var(--line-l); border-radius: 2px;
  padding-bottom: 26px;
  transition: border-color 0.35s, transform 0.35s var(--ease-out);
}
.case:hover { border-color: rgba(201, 146, 74, 0.45); transform: translateY(-6px); }
.case__img { aspect-ratio: 16 / 9; overflow: hidden; }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.case:hover .case__img img { transform: scale(1.05); }
.case__idx { display: block; color: var(--amber); margin: 20px 24px 8px; }
.case h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.15rem; line-height: 1.3; margin: 0 24px 10px;
}
.case p { color: var(--dim); font-size: 0.86rem; margin: 0 24px; }

/* ==========================================================================
   A AOAS
   ========================================================================== */
.about {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
}
.about__text p { color: var(--ink-soft); margin-top: 18px; max-width: 56ch; }
.about__text p strong { color: var(--ink); }
.about__facts { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.about__facts li {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-d);
  font-size: 0.92rem; color: var(--ink-soft);
}
.about__facts .mono { color: var(--amber); min-width: 64px; font-size: 0.85rem; }
.about__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.about__photo { position: relative; }
.about__photo img {
  border-radius: 2px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.about__photo::after {
  content: ''; position: absolute; inset: 14px;
  border: 1px solid rgba(245, 241, 234, 0.35); border-radius: 1px;
  pointer-events: none;
}
.about__photo figcaption {
  margin-top: 14px; color: var(--ink-soft);
  font-size: 0.62rem; line-height: 1.7;
}
.about__photo figcaption small { color: var(--amber); }

/* ==========================================================================
   Responsável técnico
   ========================================================================== */
.rt {
  background:
    radial-gradient(70% 80% at 12% 30%, rgba(201, 146, 74, 0.08), transparent 60%),
    var(--bg);
}
.rt__grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
}
.rt__photo { max-width: 440px; }
.rt__frame { position: relative; }
.rt__frame img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
  border-radius: 2px;
  filter: saturate(0.92) contrast(1.03);
}
.rt__frame::before {
  content: ''; position: absolute; top: -14px; left: -14px;
  width: 42px; height: 42px;
  border-top: 1px solid var(--amber); border-left: 1px solid var(--amber);
}
.rt__frame::after {
  content: ''; position: absolute; bottom: -14px; right: -14px;
  width: 42px; height: 42px;
  border-bottom: 1px solid var(--amber); border-right: 1px solid var(--amber);
}
.rt__photo figcaption {
  margin-top: 14px; color: var(--dim);
  font-size: 0.6rem;
}
.rt__text p { color: var(--dim); margin-top: 18px; max-width: 58ch; }
.rt__creds {
  color: var(--amber-hi); font-size: 0.68rem;
  border-bottom: 1px solid var(--line-l);
  padding-bottom: 16px; max-width: 520px;
}
.rt__tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 26px 0 30px;
}
.rt__tags li {
  font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white-warm);
  border: 1px solid var(--line-l); border-radius: 100px;
  padding: 8px 14px;
  transition: border-color 0.3s, color 0.3s;
}
.rt__tags li:hover { border-color: var(--amber); color: var(--amber-hi); }

/* ==========================================================================
   Conteúdo técnico
   ========================================================================== */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.post {
  border: 1px solid var(--line-d); border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  padding-bottom: 24px; overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  cursor: pointer;
}
.post:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -20px rgba(22, 24, 29, 0.28); }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 20px; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.post:hover .post__img img { transform: scale(1.05); }
.post__meta { color: var(--amber); margin: 0 22px 10px; }
.post h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.12rem; line-height: 1.3; margin: 0 22px 10px;
}
.post p { color: var(--ink-soft); font-size: 0.86rem; margin: 0 22px; }
.post__link {
  display: inline-block; margin: 16px 22px 0;
  font-size: 0.78rem; font-weight: 600; color: var(--amber);
}
.post__img--slides { position: relative; }
.post__img--slides img {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.9s var(--ease-out);
}
.post__img--slides img.is-on { opacity: 1; }
.post__dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.post__dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s, transform 0.3s;
}
.post__dots i.is-on { background: var(--amber-hi); transform: scale(1.3); }

/* ==========================================================================
   Contato
   ========================================================================== */
.contact {
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(201, 146, 74, 0.07), transparent 60%),
    var(--bg);
}
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
}
.contact__lead { color: var(--dim); margin-top: 18px; max-width: 44ch; }
.contact__channels { margin-top: 40px; display: flex; flex-direction: column; }
.channel {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line-l);
  transition: padding 0.3s var(--ease-out), border-color 0.3s;
}
.channel:first-child { border-top: 1px solid var(--line-l); }
.channel:hover { padding-left: 14px; border-bottom-color: var(--amber); }
.channel__label { color: var(--amber); }
.channel__value { color: var(--white-warm); font-size: 0.95rem; font-weight: 500; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { color: var(--dim); font-size: 0.62rem; }
.field input, .field select, .field textarea {
  background: rgba(245, 241, 234, 0.04);
  border: 1px solid var(--line-l); border-radius: 2px;
  padding: 13px 14px; color: var(--white-warm);
  font: inherit; font-size: 0.9rem;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--white-warm); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); background: rgba(245, 241, 234, 0.07);
}
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__submit { justify-content: center; margin-top: 6px; }
.form__ok { color: var(--amber-hi); font-size: 0.9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #08090b; color: var(--dim);
  border-top: 1px solid var(--line-l);
  padding: clamp(50px, 8vh, 80px) 0 30px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px; padding-bottom: 44px;
  border-bottom: 1px solid var(--line-l);
  margin-bottom: 26px;
}
.footer__brand img { width: 210px; margin-bottom: 18px; }
.footer__brand p { font-size: 0.85rem; max-width: 30ch; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__legal a { font-size: 0.85rem; transition: color 0.3s; }
.footer__nav a:hover, .footer__legal a:hover { color: var(--amber-hi); }
.footer__legal { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__legal .mono { font-size: 0.62rem; line-height: 2; color: #6b7280; }
.footer__cookies {
  background: none; border: 0; color: var(--dim);
  font-size: 0.85rem; padding: 0; text-align: left;
  transition: color 0.3s;
}
.footer__cookies:hover { color: var(--amber-hi); }
.footer__base {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 0.72rem; color: #6b7280;
}

/* ==========================================================================
   Cookies
   ========================================================================== */
.cookies {
  position: fixed; left: 20px; bottom: 20px; z-index: 950;
  max-width: 380px;
  background: rgba(21, 23, 28, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line-l); border-radius: 3px;
  padding: 22px;
  color: var(--dim); font-size: 0.82rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
.cookies__actions { display: flex; gap: 10px; margin-top: 16px; }
.cookies__actions .btn { padding: 9px 18px; font-size: 0.74rem; }

/* ==========================================================================
   Página de artigo
   ========================================================================== */
.artigo-page { background: var(--paper); }
.artigo-page .nav { background: rgba(11, 12, 15, 0.92); border-bottom-color: var(--line-l); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.artigo { padding: 150px 0 90px; }
.artigo .wrapn { max-width: 780px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.artigo__back { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--amber); margin-bottom: 26px; }
.artigo__back:hover { color: var(--ink); }
.artigo h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.12;
  letter-spacing: -0.01em; margin: 14px 0 18px; color: var(--ink);
}
.artigo__lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 60ch; }
.artigo__hero { max-width: 1080px; margin: 44px auto 0; padding: 0 clamp(20px, 4vw, 48px); }
.artigo__hero img { border-radius: 2px; aspect-ratio: 21 / 9; object-fit: cover; width: 100%; }
.artigo__body { padding-top: 40px; }
.artigo__body p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1rem; line-height: 1.85; }
.artigo__body h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.45rem; color: var(--ink); margin: 40px 0 14px;
}
.artigo__body ul { margin: 0 0 18px 20px; color: var(--ink-soft); line-height: 1.85; }
.artigo__body li { margin-bottom: 8px; }
.artigo__body strong { color: var(--ink); }
.callout {
  border-left: 2px solid var(--amber);
  background: rgba(255, 255, 255, 0.6);
  padding: 20px 24px; margin: 28px 0;
  border-radius: 2px;
}
.callout p { margin: 0; font-size: 0.95rem; }
.artigo__cta {
  margin-top: 50px; padding: 36px;
  background: var(--bg); border-radius: 3px;
  color: var(--white-warm);
}
.artigo__cta h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 10px; }
.artigo__cta p { color: var(--dim); margin-bottom: 22px; max-width: 54ch; }
.artigo__rel { margin-top: 60px; }
.artigo__rel h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.artigo__rel-links { display: flex; flex-direction: column; }
.artigo__rel-links a {
  padding: 16px 4px; border-top: 1px solid var(--line-d);
  font-family: var(--font-display); font-size: 1.05rem; color: var(--ink);
  transition: padding 0.3s var(--ease-out), color 0.3s;
}
.artigo__rel-links a:last-child { border-bottom: 1px solid var(--line-d); }
.artigo__rel-links a:hover { padding-left: 14px; color: var(--amber); }
.artigo__note { margin-top: 34px; font-size: 0.72rem; color: #8a8f99; }
.post { display: block; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  background: var(--bg);
  border-top: 1px solid var(--line-l);
  border-bottom: 1px solid var(--line-l);
  overflow: hidden;
  padding: 22px 0;
  position: relative;
  z-index: 5;
}
.marquee--paper {
  background: var(--paper);
  border-color: var(--line-d);
}
.marquee__track {
  display: flex; width: max-content;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  letter-spacing: 0.02em;
  color: var(--white-warm);
  white-space: nowrap;
  padding-right: 8px;
}
.marquee--paper .marquee__track span { color: var(--ink); }
.marquee__track span i {
  font-style: normal; color: var(--amber);
  padding: 0 18px; font-family: var(--font-mono);
  font-size: 0.8em;
}

/* ==========================================================================
   Cursor customizado
   ========================================================================== */
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9995;
  border-radius: 50%;
  display: none;
}
html.has-cursor .cursor, html.has-cursor .cursor-ring { display: block; }
.cursor {
  width: 6px; height: 6px;
  background: var(--amber-hi);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(201, 146, 74, 0.55);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.cursor-ring.is-hover {
  width: 58px; height: 58px;
  border-color: rgba(226, 172, 96, 0.9);
  background: rgba(201, 146, 74, 0.08);
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .posts { grid-template-columns: 1fr; max-width: 560px; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
  .contact__grid { grid-template-columns: 1fr; }
  .rt__grid { grid-template-columns: 1fr; }
  .rt__photo { max-width: 380px; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .bigarea { grid-template-columns: 40px 1fr 32px; grid-template-rows: auto auto; }
  .bigarea__idx { grid-row: 1; }
  .bigarea__title { grid-column: 2; }
  .bigarea__desc { grid-column: 2; grid-row: 2; }
  .bigarea__arrow { grid-row: 1; opacity: 1; transform: none; }
  .segment__banner { aspect-ratio: 16 / 9; }
  .form__row { grid-template-columns: 1fr; }
  .exp__track {
    width: auto; overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .exp__track::-webkit-scrollbar { height: 3px; }
  .exp__track::-webkit-scrollbar-thumb { background: var(--amber); }
  .case { scroll-snap-align: start; width: min(78vw, 360px); }
  .cookies { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .hero__metrics { gap: 22px; }
  .segnav { top: calc(var(--nav-h) - 8px); }
}

@media (max-width: 480px) {
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .services { grid-template-columns: 1fr; }
}

/* Motion reduzido */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__hint span { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
