/* Logus — layout do site (header, seções, motion) */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.section {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  padding: 0.7em 1.25em;
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: var(--void); }
.btn--on-void { background: var(--signal); color: var(--void); }
.btn--on-void:hover { filter: brightness(1.05); }
.btn--ghost-void {
  background: transparent;
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--line-on-void);
}
.btn--ghost-void:hover { background: rgba(230, 225, 214, 0.06); }

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(230, 225, 214, 0.82);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header--void {
  background: rgba(7, 7, 8, 0.88);
  color: var(--bone);
}
.site-header--void.is-scrolled { border-bottom-color: var(--line-on-void); }

.site-header__inner {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.mark__symbol { width: 28px; height: 28px; color: var(--ink); flex-shrink: 0; }
.site-header--void .mark__symbol { color: var(--bone); }
.mark__symbol img, .mark__symbol svg { width: 100%; height: 100%; }

.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.site-nav a { color: var(--graphite); }
.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); }
.site-header--void .site-nav a:hover,
.site-header--void .site-nav a.is-active { color: var(--bone); }

.site-header__cta { display: none; margin-left: 8px; }

.nav-toggle {
  margin-left: auto;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; width: 18px; height: 1.5px;
  background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bone);
  z-index: 99;
  padding: 32px 24px;
  display: none;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.mobile-nav--void { background: var(--void); color: var(--bone); border-top-color: var(--line-on-void); }

@media (min-width: 860px) {
  .site-nav { display: flex; }
  .site-header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ——— Orb pulse (8s) ——— */
.signal-orb {
  animation: orb-glow 8s ease-in-out infinite;
}
@keyframes orb-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(226, 255, 61, 0.35), 0 0 18px 2px rgba(226, 255, 61, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(226, 255, 61, 0), 0 0 32px 8px rgba(226, 255, 61, 0.35);
    transform: scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .signal-orb { animation: none; }
}

/* ——— Reveal ——— */
.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s ease;
}
.reveal-word.is-in > span {
  transform: translateY(0);
  opacity: 1;
}
.reveal-word.is-graphite > span {
  transition-delay: 80ms; /* graphite half ~80ms later — overridden per-word in JS */
}
@media (prefers-reduced-motion: reduce) {
  .reveal-word > span {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* ——— Hero ——— */
.hero {
  min-height: 100dvh;
  padding: calc(var(--header-h) + 56px) 20px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(226, 255, 61, 0.045), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(18, 17, 15, 0.04), transparent 50%),
    linear-gradient(180deg, #EAE5DA 0%, var(--bone) 40%, #E2DDD2 100%);
}
.hero::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%, transparent 50%, rgba(7, 7, 8, 0.08) 100%);
}
.hero__inner {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 9.5vw, 6.6rem);
  line-height: var(--lh-display);
  letter-spacing: -0.05em;
  max-width: 11ch;
}
.hero__headline .ink { font-weight: 700; color: var(--ink); }
.hero__headline .graphite { font-weight: 400; color: var(--graphite); }

.hero__sub {
  margin-top: 28px;
  max-width: 42ch;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: rgba(18, 17, 15, 0.78);
}

.hero__card {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.55) 0%, transparent 50%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  position: relative;
}
.hero__card::before {
  content: "";
  position: absolute;
  top: 0; left: 14%; right: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
}
.hero__card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__card-text strong {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1rem;
}
.hero__card-text span {
  font-size: 0.85rem;
  color: var(--graphite);
}
@media (min-width: 900px) {
  .hero__card {
    position: absolute;
    right: 0;
    bottom: 4%;
    margin-top: 0;
  }
}

/* ——— Thesis ——— */
.thesis {
  padding: 100px 20px;
  border-top: 1px solid var(--line);
  background: var(--bone);
}
.thesis p {
  width: min(920px, 100%);
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-align: center;
  color: var(--ink);
}
.thesis em {
  font-family: var(--font-serif-accent);
  font-style: italic;
  font-weight: 400;
}

/* ——— Para quem ——— */
.para-quem {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
  background: var(--bone);
}
.para-quem__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 800px) {
  .para-quem__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .para-quem__col + .para-quem__col {
    border-left: 1px solid var(--line);
    padding-left: 48px;
  }
  .para-quem__col:first-child { padding-right: 48px; }
}
.para-quem__label { margin-bottom: 20px; }
.para-quem__col h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 20px;
}
.para-quem__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.para-quem__col li {
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(18, 17, 15, 0.78);
  padding-left: 1em;
  position: relative;
}
.para-quem__col li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--graphite);
}
.para-quem__col--nao h3 { color: var(--graphite); font-weight: 500; }

/* ——— Method / phases scroll ——— */
.method {
  padding: 80px 0 48px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, #F6F3EB 0%, var(--paper) 100%);
}
.method__head {
  width: min(var(--max-w), 100%);
  margin: 0 auto 28px;
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.method__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.method__hint {
  font-family: var(--font-micro);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  white-space: nowrap;
}

.phases {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 36px;
  cursor: grab;
  scrollbar-width: none;
}
.phases::-webkit-scrollbar { display: none; }
.phases.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.phase-card {
  flex: 0 0 min(78vw, 300px);
  scroll-snap-align: start;
  border-radius: var(--radius-phase);
  padding: 28px 24px 32px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.4) 0%, transparent 42%),
    var(--bone);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 12px 32px rgba(7, 7, 8, 0.05);
  user-select: none;
  color: var(--ink);
}
.phase-card--first {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28) 0%, transparent 30%),
    linear-gradient(180deg, var(--signal) 0%, var(--bone) 72%);
  box-shadow: 0 16px 40px rgba(226, 255, 61, 0.18);
}
.phase-card__body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase-card__body p {
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.phase-card__body p + p { color: rgba(18, 17, 15, 0.7); }
@media (min-width: 900px) {
  .phase-card { flex-basis: 300px; }
  .phases { padding-left: max(20px, calc((100vw - var(--max-w)) / 2 + 20px)); }
}

/* ——— Product stage ——— */
.product {
  padding: 110px 20px 120px;
  background:
    radial-gradient(ellipse 70% 50% at 60% 60%, rgba(7, 7, 8, 0.04), transparent 60%),
    linear-gradient(180deg, var(--bone) 0%, #E0DBD0 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.product__stage::before {
  content: "";
  pointer-events: none;
  position: absolute;
  width: 55%;
  height: 70%;
  left: 15%;
  top: 10%;
  background: radial-gradient(ellipse, rgba(226, 255, 61, 0.06), transparent 65%);
  filter: blur(40px);
  z-index: 0;
}
.product__stage > * { position: relative; z-index: 1; }
.product__head {
  width: min(var(--max-w), 100%);
  margin: 0 auto 48px;
}
.product__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 12px 0 12px;
}
.product__head p {
  max-width: 48ch;
  color: rgba(18, 17, 15, 0.72);
  line-height: 1.4;
}
.product__stage {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
@media (min-width: 900px) {
  .product__stage {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 0;
  }
  .product__phone-wrap {
    position: absolute;
    right: 4%;
    bottom: -24px;
    z-index: 2;
  }
}

/* ——— Modules diagram (asymmetric) ——— */
.modules {
  padding: 110px 20px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, #F6F3EB 0%, var(--paper) 100%);
}
.modules__head {
  width: min(var(--max-w), 100%);
  margin: 0 auto 48px;
}
.modules__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-top: 12px;
}
.modules__diagram {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  position: relative;
}
.mod-node {
  background:
    linear-gradient(165deg, rgba(255,255,255,0.45) 0%, transparent 40%),
    var(--bone);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  position: relative;
  box-shadow: 0 8px 20px rgba(7, 7, 8, 0.03);
}
.mod-node--tracao {
  grid-row: 1 / 3;
  padding: 28px 26px;
  background:
    linear-gradient(165deg, rgba(226,255,61,0.08), transparent 50%),
    var(--ink);
  color: var(--bone);
  border-color: transparent;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(7, 7, 8, 0.2);
}
.mod-node__name {
  font-family: var(--font-micro);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 10px;
}
.mod-node--tracao .mod-node__name { color: rgba(230, 225, 214, 0.55); }
.mod-node__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.mod-node--tracao .mod-node__title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.mod-node__desc {
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(18, 17, 15, 0.7);
}
.mod-node--tracao .mod-node__desc { color: rgba(230, 225, 214, 0.7); margin-top: auto; }

/* thin connector lines */
.mod-node::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
@media (max-width: 799px) {
  .modules__diagram {
    grid-template-columns: 1fr 1fr;
  }
  .mod-node--tracao {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 200px;
  }
}

/* ——— Closing CTA ——— */
.final-cta {
  padding: 140px 20px;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(226, 255, 61, 0.07), transparent 60%),
    var(--void);
  color: var(--bone);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 4.8rem);
  line-height: var(--lh-display);
  letter-spacing: -0.045em;
  font-weight: 700;
}
.final-cta .tagline {
  margin-top: 18px;
  color: var(--graphite);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.final-cta__links {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--void);
  color: var(--graphite);
  padding: 28px 20px 40px;
  border-top: 1px solid var(--line-on-void);
}
.site-footer__inner {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-micro);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.site-footer a { color: var(--bone); }
.site-footer a:hover { color: var(--signal); }
.site-footer__credit { color: var(--graphite); }
.site-footer__links { display: flex; gap: 16px; }

/* ——— Page shells (eco / campo / motion) ——— */
.page-hero {
  padding: calc(var(--header-h) + 64px) 20px 64px;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { width: min(var(--max-w), 100%); margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: var(--lh-display);
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-top: 16px;
  max-width: 16ch;
}
.page-hero h1 em {
  font-family: var(--font-serif-accent);
  font-style: italic;
  font-weight: 400;
}
.page-hero__sub {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 1.1rem;
  line-height: 1.4;
  color: rgba(18, 17, 15, 0.72);
}

.page-void .page-hero {
  background: var(--void);
  color: var(--bone);
  border-bottom-color: var(--line-on-void);
}
.page-void .page-hero__sub { color: var(--graphite); }

.posts-shell {
  padding: 80px 20px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.posts-shell__grid {
  width: min(var(--max-w), 100%);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) {
  .posts-shell__grid { grid-template-columns: repeat(2, 1fr); }
}
.posts-shell__cell {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background: var(--bone);
  border: 1px dashed rgba(18, 17, 15, 0.18);
  display: grid;
  place-items: center;
  font-family: var(--font-micro);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}

.reel-mock {
  background: var(--ink);
  border-radius: 20px;
  aspect-ratio: 9 / 16;
  max-width: 280px;
  width: 100%;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  color: var(--bone);
  box-shadow: 0 30px 60px rgba(7, 7, 8, 0.4);
  position: relative;
  overflow: hidden;
}
.reel-mock__label {
  font-family: var(--font-micro);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}
.reel-mock__title {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.reel-mock__orb {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0.9;
  top: 38%;
  right: 18%;
  box-shadow: 0 0 40px rgba(226, 255, 61, 0.4);
}
.reels-grid {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  padding: 40px 20px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  justify-items: center;
}
@media (max-width: 700px) {
  .reels-grid { grid-template-columns: 1fr; }
}


/* ——— Founder (type-only) ——— */
.founder {
  padding: 100px 20px;
  background: var(--bone);
  border-top: 1px solid var(--line);
  text-align: center;
}
.founder__inner {
  width: min(640px, 100%);
  margin: 0 auto;
}
.founder__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  margin-top: 16px;
}
.founder__line {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.4;
  color: rgba(18, 17, 15, 0.7);
  letter-spacing: -0.015em;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

/* ——— Thesis denser ——— */
.thesis {
  position: relative;
}
.thesis::before {
  content: "";
  pointer-events: none;
  position: absolute;
  width: 120px; height: 120px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(226,255,61,0.08), transparent 70%);
  filter: blur(20px);
}

/* Device float ambient */
.product__phone-wrap {
  filter: drop-shadow(0 28px 40px rgba(7, 7, 8, 0.22));
}
@media (min-width: 900px) {
  .product__phone-wrap {
    transform: translateY(-8px);
  }
}

/* Page hero editorial */
.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  pointer-events: none;
  position: absolute;
  width: 40%; height: 60%;
  right: -5%; top: 10%;
  background: radial-gradient(ellipse, rgba(226,255,61,0.05), transparent 65%);
  filter: blur(30px);
}

.hero__headline .serif-one {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
