/* ============================================
   UNFADE — Landing Page
   ============================================ */

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

:root {
  --noite: #0A0A0A;
  --linho: #F5F2ED;
  --cru: #EDE8E0;
  --neon: #C8FF00;
  --neon-dim: #9BBF00;

  --font-display: 'Fraunces', Georgia, serif;
  --font-logo: 'Times New Roman', 'Times', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-height: 5rem;

  /* Easing */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--linho);
  background-color: var(--noite);
  overflow-x: hidden;
  line-height: 1.6;
}

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

::selection {
  background: var(--neon);
  color: var(--noite);
}

/* --- Container --- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.4);
  margin-bottom: 3rem;
}

.label__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--neon);
  margin-right: 0.4rem;
  vertical-align: middle;
  /* NO border-radius */
}

.text--accent {
  color: var(--neon);
}

/* ============================================
   PRELOADER
   ============================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--noite);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Terminal boot */
.preloader__terminal {
  width: min(520px, 85vw);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  color: rgba(245, 242, 237, 0.4);
  transition: opacity 0.4s ease;
}


.preloader__terminal .term-line {
  display: block;
  white-space: pre;
  opacity: 0;
  transition: opacity 0.08s;
}

.preloader__terminal .term-line.visible {
  opacity: 1;
}

.preloader__terminal .term-prompt {
  color: var(--neon);
  margin-right: 8px;
}

.preloader__terminal .term-ok {
  color: var(--neon);
  float: right;
  opacity: 0.6;
}

.preloader__terminal .term-line.term-ready {
  color: var(--linho);
  font-weight: 500;
}

.preloader__terminal .term-caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--neon);
  margin-left: 4px;
  animation: term-blink 0.8s steps(2) infinite;
  vertical-align: middle;
}

@keyframes term-blink {
  50% { opacity: 0; }
}

/* Scramble text */
.preloader__scramble {
  font-family: var(--font-logo);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: scaleY(0.90);
  line-height: 1;
  position: relative;
  color: var(--linho);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.preloader__scramble.is-active {
  opacity: 1;
}

.preloader__scramble .char {
  display: inline-block;
  min-width: 0.6em;
  text-align: center;
  color: var(--linho);
  opacity: 0.25;
  transition: color 0.15s, opacity 0.15s;
}

.preloader__scramble .char.resolved-neon {
  color: var(--neon);
  opacity: var(--char-opacity, 1);
}

.preloader__scramble .char.resolved-linho {
  color: var(--linho);
  opacity: var(--char-opacity, 1);
}

/* Glitch effect */
.preloader__scramble.glitch {
  animation: glitch-shake 0.15s steps(1) infinite;
}

.preloader__scramble.glitch::before,
.preloader__scramble.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.preloader__scramble.glitch::before {
  color: var(--neon);
  animation: glitch-neon 2s infinite steps(1);
  opacity: 0.8;
}

.preloader__scramble.glitch::after {
  color: var(--linho);
  animation: glitch-linho 2s infinite steps(1);
  opacity: 0.4;
}

@keyframes glitch-neon {
  0%   { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
  5%   { transform: translate(-4px,1px); clip-path: inset(20% 0 40% 0); }
  10%  { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
  15%  { transform: translate(3px,-2px); clip-path: inset(70% 0 10% 0); }
  20%  { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
  40%  { transform: translate(-2px,0);  clip-path: inset(40% 0 50% 0); }
  42%  { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
  60%  { transform: translate(5px,1px); clip-path: inset(10% 0 70% 0); }
  62%  { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
  80%  { transform: translate(-3px,-1px); clip-path: inset(60% 0 20% 0); }
  82%  { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
  100% { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
}

@keyframes glitch-linho {
  0%   { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
  5%   { transform: translate(4px,-1px); clip-path: inset(20% 0 40% 0); }
  10%  { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
  15%  { transform: translate(-3px,2px); clip-path: inset(70% 0 10% 0); }
  20%  { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
  40%  { transform: translate(2px,0);  clip-path: inset(40% 0 50% 0); }
  42%  { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
  60%  { transform: translate(-5px,-1px); clip-path: inset(10% 0 70% 0); }
  62%  { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
  80%  { transform: translate(3px,1px); clip-path: inset(60% 0 20% 0); }
  82%  { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
  100% { transform: translate(0,0);    clip-path: inset(0 0 0 0); }
}

@keyframes glitch-shake {
  0%  { transform: scaleY(0.90) translate(0, 0); }
  25% { transform: scaleY(0.90) translate(1px, -1px); }
  50% { transform: scaleY(0.90) translate(-1px, 1px); }
  75% { transform: scaleY(0.90) translate(1px, 0); }
  100%{ transform: scaleY(0.90) translate(0, 0); }
}

/* Scanlines */
.preloader__scanlines {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.015) 50%, transparent 50%);
  background-size: 100% 4px;
  pointer-events: none;
  mix-blend-mode: overlay;
  animation: preloader-scan 8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.preloader.is-glitching .preloader__scanlines {
  opacity: 1;
}

@keyframes preloader-scan {
  0%   { background-position: 0 0; }
  100% { background-position: 0 200px; }
}

/* ============================================
   GRAIN OVERLAY
   ============================================ */

.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */

.cursor { display: none; }

@media (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }

  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    mix-blend-mode: difference;
  }

  .cursor__dot {
    width: 6px;
    height: 6px;
    background: var(--neon);
    position: absolute;
    transform: translate(-50%, -50%);
    transition: transform 0.15s var(--ease-out-expo);
  }

  .cursor__ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(200, 255, 0, 0.5);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out-expo),
                height 0.4s var(--ease-out-expo),
                border-color 0.3s;
  }

  .cursor.is-hover .cursor__ring {
    width: 64px;
    height: 64px;
    border-color: var(--neon);
  }

  .cursor.is-hover .cursor__dot {
    transform: translate(-50%, -50%) scale(0);
  }

  .cursor.is-large .cursor__ring {
    width: 100px;
    height: 100px;
    border-color: var(--neon);
  }

  .cursor.is-large .cursor__dot {
    transform: translate(-50%, -50%) scale(0);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s;
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__logo {
  font-family: var(--font-logo);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  letter-spacing: 0.13em;
  line-height: 1;
  transform: scaleY(0.90);
}

/* Logo letter opacity classes */
.logo__u { color: var(--neon); opacity: 1.00; }
.logo__n { color: var(--neon); opacity: 0.82; }
.logo__f { color: var(--linho); opacity: 1.00; }
.logo__a { color: var(--linho); opacity: 0.55; }
.logo__d { color: var(--linho); opacity: 0.30; }
.logo__e { color: var(--linho); opacity: 0.12; }

.logo-letter {
  transition: opacity 0.6s ease;
}

/* Hover: unfade — all letters full opacity */
.nav__logo:hover .logo-letter,
.brand-display__logo:hover .logo-letter,
.footer__logo-large:hover .logo-letter {
  opacity: 1;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__tagline {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.5;
  display: none;
}

@media (min-width: 768px) {
  .nav__tagline { display: block; }
}

.nav__menu-btn {
  width: 32px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0;
}

.nav__menu-line {
  display: block;
  height: 1px;
  background: var(--linho);
  transition: all 0.4s var(--ease-out-expo);
}

.nav__menu-line:first-child { width: 100%; }
.nav__menu-line:last-child { width: 60%; }

.nav__menu-btn:hover .nav__menu-line:last-child { width: 100%; }

.nav__menu-btn.is-active .nav__menu-line:first-child {
  transform: translateY(9.5px) rotate(45deg);
}

.nav__menu-btn.is-active .nav__menu-line:last-child {
  width: 100%;
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ============================================
   FULLSCREEN MENU
   ============================================ */

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--noite);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
}

.menu__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.menu__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 1rem;
  position: relative;
  overflow: hidden;
}

.menu__link-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.4;
  letter-spacing: 1px;
}

.menu__link-text {
  font-family: var(--font-display);
  font-variation-settings: 'wght' 400, 'opsz' 72, 'WONK' 1, 'SOFT' 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  transition: color 0.3s;
  line-height: 1.2;
}

.menu__link:hover .menu__link-text { color: var(--neon); }

.menu__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(245, 242, 237, 0.1);
}

.menu__footer {
  display: flex;
  gap: 3rem;
}

.menu__footer-text {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.4;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============================================
   HERO — TIME MACHINE
   ============================================ */

.hero {
  position: relative;
  height: 300vh;
  padding: 0;
  border-bottom: none;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--nav-height) clamp(1.5rem, 4vw, 3rem) clamp(8rem, 15vh, 12rem);
  overflow: hidden;
  user-select: none;
}

.hero__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.hero__bg-word {
  font-family: var(--font-display);
  font-variation-settings: 'wght' 400, 'opsz' 144, 'WONK' 1, 'SOFT' 0;
  font-size: clamp(20vw, 30vw, 35rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 242, 237, 0.03);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Hero context — Design Studio label */
.hero__context {
  position: absolute;
  top: calc(var(--nav-height) + 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
}

.hero__context-indicator {
  width: 4px;
  height: 4px;
  background: var(--neon);
  /* NO border-radius — square */
}

.hero__context-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--linho);
  opacity: 0.5;
}

/* Brand display — the subject of degradation */
.brand-display {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  transition: filter 0.1s linear;
}

.brand-display__logo {
  font-family: var(--font-logo);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  letter-spacing: 0.13em;
  line-height: 1;
  transition: letter-spacing 0.3s, text-shadow 0.3s;
  transform: scale(var(--logo-scale, 1)) scaleY(0.90);
  transform-origin: center center;
}

.brand-display__palette {
  display: flex;
  gap: 0.75rem;
  margin-top: 0;
  opacity: 1;
}

.brand-display__swatch {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(245, 242, 237, 0.1);
  transition: background-color 0.3s, border-radius 0.3s, transform 0.3s;
}

/* --- Phrase transition --- */

.brand-display__phrase {
  text-align: center;
  opacity: var(--phrase-opacity, 0);
  transform: translateY(var(--phrase-translateY, 20px));
  transition: none; /* controlled by JS custom properties */
  margin-bottom: 1.5rem;
}

.brand-display__phrase span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-variation-settings: 'wght' 400, 'opsz' 48, 'WONK' 1, 'SOFT' 0;
  color: var(--linho);
  line-height: 1.3;
}

.brand-display__it {
  font-weight: 500;
  color: var(--linho);
  letter-spacing: 6px;
  margin-left: 0.15em;
  opacity: var(--it-opacity, 0);
  display: inline-block;
}

.brand-display__services {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.4;
  margin-top: 0;
}

/* Degradation overlay canvas */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* --- Timeline --- */

.timeline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vh, 2.5rem);
  /* NO border-top — removed */
}

.timeline__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.timeline__year-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--linho);
  opacity: 0.4;
  transition: opacity 0.15s;
}

.timeline__year-label.is-fading {
  opacity: 0;
}

.timeline__status-separator {
  width: 4px;
  height: 4px;
  background: var(--neon);
  opacity: 0.6;
  /* NO border-radius — square, matching the system */
}

.timeline__current-year {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-variation-settings: 'wght' 500, 'opsz' 9, 'WONK' 1, 'SOFT' 0;
  color: var(--neon);
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.timeline__track-container {
  position: relative;
  max-width: min(80vw, 900px);
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.timeline__track {
  position: relative;
  height: 2px;
  background: rgba(245, 242, 237, 0.1);
  border-radius: 1px;
  cursor: grab;
}

.timeline__track:active { cursor: grabbing; }

.timeline__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(to right, rgba(245, 242, 237, 0.2), var(--neon));
  border-radius: 1px;
  transition: width 0.05s linear;
  pointer-events: none;
}

.timeline__handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--neon);
  border: 2px solid var(--noite);
  box-shadow: 0 0 12px rgba(200, 255, 0, 0.4);
  cursor: grab;
  transition: box-shadow 0.3s, background 0.3s, transform 0.2s var(--ease-out-expo);
  z-index: 2;
}

.timeline__handle:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

.timeline__handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.2);
}

.timeline__years {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  pointer-events: none;
}

.timeline__year-tick {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.2;
  transition: opacity 0.3s, color 0.3s;
  text-align: center;
  min-width: 2rem;
  font-variant-numeric: tabular-nums;
}

.timeline__year-tick.is-near {
  opacity: 0.4;
}

.timeline__year-tick.is-active {
  opacity: 1;
  color: var(--neon);
}

.timeline__hint {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.3;
  transition: opacity 0.5s;
}

.timeline__hint.is-hidden { opacity: 0; }

/* --- Hero Responsive --- */

@media (max-width: 767px) {
  .hero__sticky { padding-bottom: 0; }

  .timeline { padding-bottom: 1rem; }

  .timeline__years { display: none; }

  .brand-display__logo {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .brand-display__un { letter-spacing: -2px; }
  .brand-display__fade { letter-spacing: 6px; }
}

/* ============================================
   MANIFESTO
   ============================================ */

.manifesto {
  padding: 8rem 0;
  border-bottom: 1px solid rgba(245, 242, 237, 0.06);
}

.manifesto__heading {
  font-family: var(--font-display);
  font-variation-settings: 'wght' 400, 'opsz' 48, 'WONK' 1, 'SOFT' 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.3;
  color: var(--linho);
  max-width: 800px;
  margin-bottom: 4rem;
}

.manifesto__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
}

@media (min-width: 768px) {
  .manifesto__columns {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.manifesto__col {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(245, 242, 237, 0.6);
}

/* ============================================
   MARQUEE
   ============================================ */

.marquee {
  border-top: 1px solid rgba(245, 242, 237, 0.06);
  border-bottom: 1px solid rgba(245, 242, 237, 0.06);
  padding: 2rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 20s linear infinite;
  will-change: transform;
}

.marquee__text {
  font-family: var(--font-display);
  font-variation-settings: 'wght' 400, 'opsz' 72, 'WONK' 1, 'SOFT' 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: rgba(245, 242, 237, 0.12);
  padding-right: 2rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--neon);
  opacity: 0.4;
  vertical-align: middle;
  margin: 0 0.75rem;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   PILLARS
   ============================================ */

.pillars {
  padding: 8rem 0;
  border-bottom: 1px solid rgba(245, 242, 237, 0.06);
}

.pillars__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(245, 242, 237, 0.06);
}

@media (min-width: 768px) {
  .pillars__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  background: var(--noite);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.pillar__symbol {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s var(--ease-out-expo);
}

.pillar__symbol span {
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--neon);
  letter-spacing: 0.13em;
  line-height: 1;
  transform: scaleY(0.90);
}

.pillar:hover .pillar__symbol {
  opacity: 1;
  transform: scale(1);
}

.pillar__number {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: rgba(245, 242, 237, 0.3);
  margin-bottom: 1.5rem;
  display: block;
}

.pillar__title {
  font-family: var(--font-display);
  font-variation-settings: 'wght' 500, 'opsz' 48, 'WONK' 1, 'SOFT' 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--linho);
  margin-bottom: 1rem;
  transition: color 0.3s;
  line-height: 1.2;
}

.pillar:hover .pillar__title {
  color: var(--neon);
}

.pillar__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245, 242, 237, 0.5);
}

/* ============================================
   QUOTE
   ============================================ */

.quote {
  padding: 10rem 0;
  border-bottom: 1px solid rgba(245, 242, 237, 0.06);
}

.quote__text {
  font-family: var(--font-display);
  font-variation-settings: 'wght' 400, 'opsz' 72, 'WONK' 1, 'SOFT' 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.25;
  text-align: center;
  color: var(--linho);
  max-width: 900px;
  margin: 0 auto;
}

.quote__accent {
  color: var(--neon);
}

/* ============================================
   CONTACT: BRAND-CODE (scroll-driven typing)
   ============================================ */

.brand-code {
  position: relative;
  height: 400vh;
}

.brand-code__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Terminal panel */
.terminal-panel {
  width: 42%;
  height: 100%;
  background: var(--noite);
  border-right: 1px solid rgba(245, 242, 237, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  transition: width 0.8s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo), border-color 0.4s;
}

.terminal-panel.is-collapsing {
  width: 0;
  opacity: 0;
  border-right-color: transparent;
}

.terminal-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(245, 242, 237, 0.008) 2px, rgba(245, 242, 237, 0.008) 4px);
  pointer-events: none;
  z-index: 2;
}

.terminal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(245, 242, 237, 0.06);
  flex-shrink: 0;
}

.terminal-header__dots {
  display: flex;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.terminal-header__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 242, 237, 0.15);
}

.terminal-header__title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.3;
}

.terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  scrollbar-width: none;
}

.terminal-body::-webkit-scrollbar {
  display: none;
}

.code-output {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  line-height: 1.7;
  white-space: pre;
  tab-size: 2;
}

.code-line {
  display: flex;
  min-height: 1.7em;
}

.code-line-number {
  width: 3ch;
  text-align: right;
  padding-right: 1.5ch;
  color: var(--linho);
  opacity: 0.15;
  user-select: none;
  flex-shrink: 0;
}

.code-line-content {
  flex: 1;
  min-width: 0;
}

/* Syntax tokens */
.tok-comment { color: var(--linho); opacity: 0.3; font-style: italic; }
.tok-property { color: var(--linho); opacity: 0.6; }
.tok-value { color: var(--linho); }
.tok-color-val { color: var(--neon); }
.tok-selector { color: var(--linho); }
.tok-string { color: var(--neon); }
.tok-tag { color: var(--neon); opacity: 0.7; }
.tok-punct { color: var(--linho); opacity: 0.3; }
.tok-keyword { color: var(--neon); opacity: 0.8; }

/* Terminal cursor */
.terminal-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--neon);
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Viewport panel — the contact page being built */
.viewport-panel {
  flex: 1;
  height: 100%;
  background: var(--noite);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: all 0.8s var(--ease-out-expo);
}

.viewport-content {
  width: 100%;
  max-width: 700px;
  padding: clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Contact elements — invisible until typed */
.ct-element {
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), visibility 0s 0.6s;
}

.ct-element.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), visibility 0s 0s;
}

.ct-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ct-label__dot {
  width: 6px;
  height: 6px;
  background: var(--neon);
  border-radius: 50%;
}

.ct-heading {
  font-family: var(--font-display);
  font-variation-settings: 'wght' 400, 'opsz' 48, 'WONK' 1, 'SOFT' 0;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: -2px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.ct-provocation {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.5;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.ct-separator {
  width: 40px;
  height: 1px;
  background: rgba(245, 242, 237, 0.12);
  margin-bottom: 2.5rem;
}

.ct-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2.5rem;
  border: 1px solid var(--neon);
  color: var(--linho);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease-out-expo);
  align-self: flex-start;
}

.ct-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neon);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease-out-expo);
}

.ct-cta:hover::before {
  transform: translateX(0);
}

.ct-cta:hover {
  color: var(--noite);
}

.ct-cta__text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.ct-cta__arrow {
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--ease-out-expo);
}

.ct-cta:hover .ct-cta__arrow {
  transform: translateX(4px);
}

.ct-footnote {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.2;
}

/* Scroll hint */
.brand-code__hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.6s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
}

.brand-code__hint.is-visible {
  opacity: 0.4;
}

.brand-code__hint-bar {
  width: 40px;
  height: 2px;
  background: rgba(245, 242, 237, 0.1);
  position: relative;
  overflow: hidden;
}

.brand-code__hint-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--neon);
  transition: width 0.1s linear;
}

/* Brand-code mobile */
@media (max-width: 767px) {
  .brand-code__sticky {
    flex-direction: column;
  }

  .terminal-panel {
    width: 100%;
    height: 35vh;
    border-right: none;
    border-bottom: 1px solid rgba(245, 242, 237, 0.06);
  }

  .terminal-panel.is-collapsing {
    width: 100%;
    height: 0;
    border-bottom-color: transparent;
  }

  .viewport-panel {
    height: 65vh;
  }

  .ct-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid rgba(245, 242, 237, 0.06);
  padding: 6rem 0 4rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer__logo-large {
  font-family: var(--font-logo);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  line-height: 1;
  transform: scaleY(0.90);
  cursor: default;
}

.footer__info {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.25;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .brand-display {
    filter: none !important;
    transform: none !important;
  }

  .hero__overlay {
    display: none;
  }

  .marquee__track {
    animation: none;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
  }

  .brand-code { height: auto; }
  .brand-code__sticky { position: relative; height: auto; }
  .terminal-panel { display: none; }
  .ct-element { opacity: 1; transform: none; visibility: visible; }

  html { scroll-behavior: auto; }
}
