/* ============================================================
   RESET & VARIABLES
============================================================ */
:root {
  --bg:           #0c0c0c;
  --bg-card:      #141414;
  --bg-hover:     #1a1a1a;
  --text:         #f0ede8;
  --text-muted:   #6b6b6b;
  --text-subtle:  #444;
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --accent:       #f0ede8;
  --green:        #4ade80;
  --font:         'Inter', -apple-system, sans-serif;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] {
  --bg:           #f5f2ed;
  --bg-card:      #eceae5;
  --bg-hover:     #e4e1db;
  --text:         #111111;
  --text-muted:   #888;
  --text-subtle:  #bbb;
  --border:       rgba(0,0,0,0.09);
  --border-hover: rgba(0,0,0,0.2);
  --accent:       #111111;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

body.flipped {
  transform: rotate(180deg);
  transform-origin: center center;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: var(--font);
  cursor: pointer;
}

/* ============================================================
   LAYOUT UTILS
============================================================ */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ============================================================
   CUSTOM CURSOR
============================================================ */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }

  #cur-dot {
    position: fixed;
    inset: 0;
    width: 8px;
    height: 8px;
    background: var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s;
    will-change: left, top;
  }

  #cur-ring {
    position: fixed;
    inset: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(240,237,232,0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    will-change: left, top;
    transition: width 0.25s, height 0.25s, border-color 0.25s;
  }

  body.cursor-hover #cur-dot  { width: 14px; height: 14px; }
  body.cursor-hover #cur-ring { width: 56px; height: 56px; border-color: rgba(240,237,232,0.55); }
}

/* ============================================================
   NAVIGATION
============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s;
}

.nav-brand {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--green);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.22);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2.2s ease-in-out infinite;
}

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

.nav-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  transition: all 0.2s;
}

.theme-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100svh;
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 5rem 2rem 3.5rem 2rem;
  z-index: 1;
}

.hero-img {
  position: relative;
  overflow: hidden;
}

.hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 55%;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-headline {
  font-size: clamp(1.5rem, 2.8vw, 3rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 520px;
  margin-bottom: 0;
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-loc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 400;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.btn-solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-solid:hover {
  background: transparent;
  color: var(--text);
}

/* ============================================================
   MARQUEE
============================================================ */
.marquee-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  background: var(--bg);
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}

.marquee-inner:hover { animation-play-state: paused; }

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-subtle);
  flex-shrink: 0;
}

/* ============================================================
   SECTION BASE
============================================================ */
.section {
  border-bottom: 1px solid var(--border);
  padding: 6rem 0;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.section-heading {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

/* ============================================================
   OVERVIEW
============================================================ */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.overview-bio {
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 300;
  line-height: 1.52;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-hover);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s, opacity 0.2s;
}

.inline-link:hover { border-color: var(--text); }

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testi {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  transition: border-color 0.25s, background 0.25s;
}

.testi:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.testi-quote {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
  font-style: italic;
}

.testi-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.testi-name {
  font-size: 0.82rem;
  font-weight: 500;
}

.testi-company {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testi-period {
  font-size: 0.7rem;
  color: var(--text-subtle);
  margin-top: 0.1rem;
}

/* ============================================================
   TWO-COLUMN LAYOUT
============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 6rem;
  align-items: start;
}

.col-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ============================================================
   TECH TAGS
============================================================ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.tag {
  padding: 0.42rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.tag:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--bg-hover);
}

/* ============================================================
   CLIENTS
============================================================ */
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
}

.client {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.client:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ============================================================
   STRATEGY PILLARS
============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  transition: all 0.25s;
}

.pillar:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateY(-3px);
}

.pillar-num {
  font-size: 0.7rem;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.pillar-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   PROJECTS
============================================================ */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.proj {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.35s var(--ease);
  cursor: pointer;
}

.proj:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
}

/* Todos os cards ocupam 1 coluna — layout uniforme */
.proj-wide,
.proj-half,
.proj-third { grid-column: span 1; }

/* Área de imagem: quadrado uniforme */
.proj-img {
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
}

.proj:hover .proj-img img { transform: scale(1.06); }

.proj-info {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.proj-name {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.proj-techs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.proj-tech {
  font-size: 0.68rem;
  background: var(--bg-hover);
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.proj-arrow {
  font-size: 1rem;
  color: var(--text-subtle);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.proj:hover .proj-arrow {
  color: var(--text);
  transform: translate(3px, -3px);
}

/* Período abaixo do nome */
.proj-period {
  font-size: 0.68rem;
  color: var(--text-subtle);
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

/* ============================================================
   FAQ
============================================================ */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  text-align: left;
  gap: 2rem;
  transition: color 0.2s;
}

.faq-btn:hover { color: var(--text-muted); }

.faq-icon {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease), padding 0.3s;
}

.faq-item.open .faq-body { max-height: 300px; padding-bottom: 1.5rem; }

.faq-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
}

/* ============================================================
   PLAY
============================================================ */
.play-cards {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  align-items: stretch;
}

.play-card {
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  min-width: 180px;
  transition: all 0.25s;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.play-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.play-card:active { transform: scale(0.97); }

.play-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.play-val {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ============================================================
   SPOTIFY PLAYER CARD
============================================================ */
.sp-connect-val { color: var(--green); }

/* Single-row layout: art · info · controls — matches other play-cards height */
.sp-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.sp-art {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-hover);
}

.sp-info {
  min-width: 0;
  flex: 1;
}

.sp-track {
  font-size: 0.88rem !important;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  margin-bottom: 0;
}

.sp-artist {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.sp-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.sp-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.55rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  flex-shrink: 0;
}

.sp-btn:hover { border-color: var(--border-hover); color: var(--text); }

.sp-btn-main {
  width: 24px;
  height: 24px;
  font-size: 0.55rem;
  background: var(--green);
  border-color: var(--green);
  color: #0c0c0c;
}

.sp-btn-main:hover { opacity: 0.85; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  padding: 4rem 0 3rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.footer-email {
  font-size: clamp(1.4rem, 3.5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--border-hover);
  padding-bottom: 0.2rem;
  transition: opacity 0.2s, border-color 0.2s;
}

.footer-email:hover {
  opacity: 0.6;
  border-color: transparent;
}

.footer-meta {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.footer-socials a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-socials a:hover { color: var(--text); }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.19s; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .two-col        { grid-template-columns: 1fr; gap: 2rem; }
  .pillars        { grid-template-columns: 1fr; }

  .projects-grid  { grid-template-columns: repeat(2, 1fr); max-width: 640px; }

  /* Hero mobile — image as full background, dark gradient rises from bottom */
  .hero {
    grid-template-columns: 1fr;
    position: relative;
  }

  .hero-img {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  /* Hide the desktop left-fade; replace with a bottom-to-top gradient */
  .hero-img::before {
    width: 100%;
    background: linear-gradient(to top, var(--bg) 48%, transparent 100%);
  }

  .hero-body {
    position: relative;
    z-index: 1;
    justify-content: flex-end;
    padding: 64px 1.25rem 3rem;
  }

  .hero-footer  { flex-direction: column; align-items: flex-start; }
  .footer-grid  { flex-direction: column; align-items: flex-start; }
  .footer-meta  { text-align: left; }
  .footer-socials { justify-content: flex-start; }

  .play-cards { flex-direction: column; }
}

@media (max-width: 520px) {
  .projects-grid { grid-template-columns: 1fr; max-width: 320px; }
}

@media (max-width: 620px) {
  .nav-right .nav-link,
  .nav-right .theme-btn { display: none; }
  .wrap { padding: 0 1.25rem; }
  nav   { padding: 0 1.25rem; }
  .hero { padding: 64px 1.25rem 0; }
}
