/* ════════════════════════════════════════════════
   SOUZATECH — baseado em bepatrickdavid.com
   ════════════════════════════════════════════════ */

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

:root {
  --bg:      #0c0c0c;
  --fg:      #f0e8d8;
  --gold:    #c4922a;
  --terra:   #8b4513;
  --dim:     rgba(240,232,216,.45);
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
  --pad:     clamp(24px, 5vw, 80px);
}

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

body {
  background: var(--bg);
  background-image: url('https://i.imgur.com/zn5ZhMB.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

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

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #080808;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* faixas de texto */
.lt-rows {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  pointer-events: none;
}

.lt-row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.lt-track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  letter-spacing: .05em;
  color: rgba(240,232,216,.07);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.lt-track span { padding: 0 12px; }
.lt-track i    { font-style: normal; color: rgba(196,146,42,.15); padding: 0 4px; }

.lt-row--right .lt-track { animation: lt-right 18s linear infinite; }
.lt-row--left  .lt-track { animation: lt-left  18s linear infinite; }
.lt-row--fast  .lt-track { animation-duration: 11s !important; }
.lt-row--slow  .lt-track { animation-duration: 26s !important; }

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

/* logo central */
#loader-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#loader-logo-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}


#loader-logo-name {
  line-height: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: lt-fade-up .9s cubic-bezier(.76,0,.24,1) .5s forwards;
}

.loader-logo-img {
  height: clamp(60px, 12vw, 130px);
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

#loader-logo-name em {
  font-style: italic;
  color: var(--gold);
}


@keyframes lt-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* rodapé: número + barra */
#loader-foot {
  position: absolute;
  bottom: clamp(24px,4vw,48px);
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: center;
  gap: 20px;
}

#loader-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(240,232,216,.5);
  letter-spacing: -.01em;
  flex-shrink: 0;
  min-width: 52px;
}

#loader-num::after { content: '%'; font-size: .75em; }

#loader-bar-wrap {
  flex: 1;
  height: 1px;
  background: rgba(240,232,216,.08);
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  box-shadow: 4px 0 12px var(--gold);
  transition: width .07s linear;
}

/* saída — fade + scale */
#loader.exit {
  animation: lt-exit .7s cubic-bezier(.76,0,.24,1) forwards;
}

@keyframes lt-exit {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}

/* ── GRAIN ── */
#grain {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 8000;
  opacity: .04;
}

/* ── CURSOR ── */
#cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
}

#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(240,232,216,.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, border-color .3s;
}

#cursor-ring.hovered {
  width: 56px; height: 56px;
  border-color: var(--gold);
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad);
  transition: background .4s;
}

#nav.solid {
  background: rgba(12,12,12,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(240,232,216,.08);
}

.nav-left { display: flex; align-items: baseline; gap: 14px; }

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter .2s;
}

#nav.solid .nav-logo-img { filter: brightness(0) invert(1); }

.nav-label {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--dim);
  transition: color .2s;
}

.nav-links a:hover { color: var(--fg); }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px var(--pad) clamp(40px,6vh,72px);
}

/* subtle overlay so text reads on any painting */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12,12,12,.22);
  pointer-events: none;
}

.hero-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(.7rem, 1vw, .85rem);
  color: rgba(240,232,216,.6);
  letter-spacing: .04em;
  max-width: 280px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(240,232,216,.18);
  padding: 10px 16px;
  backdrop-filter: blur(8px);
  background: rgba(12,12,12,.3);
}

.badge-mark {
  width: 34px; height: 34px;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

.badge-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(60%) sepia(60%) saturate(600%) hue-rotate(5deg);
}

.badge-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-info span:first-child {
  font-family: var(--serif);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg);
}

.badge-info span:last-child {
  font-size: .6rem;
  letter-spacing: .06em;
  color: var(--dim);
}

.hero-bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(72px, 14vw, 200px);
  line-height: .88;
  letter-spacing: -.02em;
  color: var(--fg);
  text-transform: uppercase;
  overflow: hidden;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line:nth-child(2) {
  color: var(--gold);
  font-size: .65em;
  line-height: 1;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  max-width: 320px;
  flex-shrink: 0;
}

.hero-desc {
  font-size: clamp(.65rem, 1vw, .78rem);
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 2;
  text-transform: uppercase;
  color: rgba(240,232,216,.7);
  text-align: right;
}

.btn-pill {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(240,232,216,.6);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  transition: color .25s;
}

.btn-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fg);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.76,0,.24,1);
}

.btn-pill:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-pill:hover { color: #0c0c0c; }
.btn-pill span { position: relative; z-index: 1; }

/* ── SECTION SHARED ── */
.section-label {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

/* ── ABOUT ── */
#about {
  background: rgba(240,232,216,.92);
  color: #0c0c0c;
  padding: clamp(80px,12vw,160px) var(--pad);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(40px,8vw,120px);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.about-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem,5.5vw,6rem);
  line-height: 1.05;
  color: #0c0c0c;
  margin-bottom: 24px;
}

.about-title em {
  font-style: italic;
  color: var(--terra);
}

.about-body {
  font-size: clamp(.9rem,1.2vw,1.05rem);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(12,12,12,.7);
  max-width: 520px;
  margin-bottom: 48px;
}

.about-stats {
  display: flex;
  gap: 40px;
}

.stat { display: flex; flex-direction: column; }

.stat-n {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem,4vw,3.5rem);
  line-height: 1;
  color: var(--terra);
}

.stat-l {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(12,12,12,.45);
  margin-top: 6px;
}

.photo-box {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(160deg,#1a0800,#0c0c0c);
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%) contrast(1.05);
  transition: transform .6s cubic-bezier(.76,0,.24,1);
}

.photo-box:hover img {
  transform: scale(1.04);
}

.photo-tag {
  margin-top: 12px;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .1em;
  color: rgba(12,12,12,.45);
  text-transform: uppercase;
}

/* skills */
.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.about-skills span {
  font-family: monospace;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(12,12,12,.55);
  border: 1px solid rgba(12,12,12,.2);
  padding: 6px 14px;
  transition: border-color .2s, color .2s;
}

.about-skills span:hover {
  border-color: var(--terra);
  color: var(--terra);
}

/* timeline horizontal */
.about-timeline-wrap {
  border-top: 1px solid rgba(12,12,12,.1);
  margin-top: 60px;
  padding-top: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.about-timeline-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(40px,6vw,80px);
  align-items: center;
}

.about-tl-title {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.6rem,3vw,2.8rem);
  color: #0c0c0c;
  line-height: 1.1;
}

.about-tl-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* linha conectora */
.about-tl-items::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0; right: 0;
  height: 1px;
  background: rgba(12,12,12,.15);
}

.about-tl-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 0;
}

.about-tl-year {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.1rem,2vw,1.6rem);
  color: var(--terra);
  line-height: 1;
  position: relative;
}

/* ponto no topo */
.about-tl-year::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terra);
  border: 2px solid rgba(240,232,216,.92);
  outline: 1px solid var(--terra);
}

.about-tl-line { display: none; }

.about-tl-desc {
  font-size: clamp(.78rem,1.1vw,.9rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(12,12,12,.55);
  max-width: 200px;
}

/* ── WORKS ── */
#works {
  background: rgba(12,12,12,.86);
  padding: clamp(80px,10vw,140px) var(--pad);
  position: relative;
}

.works-inner { max-width: 1400px; margin: 0 auto; }

.works-header { margin-bottom: 60px; }

.works-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem,5.5vw,6rem);
  line-height: 1.05;
  color: var(--fg);
}

.works-title em { font-style: italic; color: var(--gold); }

.works-list {
  list-style: none;
  border-top: 1px solid rgba(240,232,216,.1);
}

.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid rgba(240,232,216,.1);
  transition: padding-left .3s cubic-bezier(.76,0,.24,1);
  position: relative;
  overflow: hidden;
}

.work-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(196,146,42,.05);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.76,0,.24,1);
}

.work-item:hover { padding-left: 20px; }
.work-item:hover::before { transform: scaleX(1); }

.work-left {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.work-num {
  font-size: .65rem;
  font-weight: 300;
  letter-spacing: .1em;
  color: rgba(240,232,216,.25);
  width: 24px;
  flex-shrink: 0;
}

.work-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.4rem,3.2vw,3rem);
  line-height: 1;
  color: var(--fg);
  transition: color .2s;
}

.work-item:hover .work-name { color: var(--gold); }

.work-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.work-type {
  font-size: .68rem;
  font-weight: 300;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(240,232,216,.4);
}

.work-year {
  font-size: .65rem;
  font-weight: 300;
  color: rgba(240,232,216,.22);
  letter-spacing: .06em;
}

.work-arrow {
  font-size: 1.1rem;
  color: rgba(240,232,216,.2);
  transition: color .2s, transform .2s;
}

.work-item:hover .work-arrow {
  color: var(--gold);
  transform: translate(3px,-3px);
}


/* ── NUMBERS ── */
#numbers {
  background: rgba(240,232,216,.92);
  color: #0c0c0c;
  padding: clamp(80px,10vw,140px) var(--pad);
}

.numbers-inner { max-width: 1400px; margin: 0 auto; }

.numbers-header { margin-bottom: 60px; }

.numbers-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem,5.5vw,6rem);
  line-height: 1.05;
  color: #0c0c0c;
}

.numbers-title em { font-style: italic; color: var(--terra); }

.numbers-table {
  border-top: 1px solid rgba(12,12,12,.12);
  margin-bottom: 80px;
}

.nt-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 18px 0;
  border-bottom: 1px solid rgba(12,12,12,.1);
  font-size: clamp(.85rem,1.2vw,1rem);
  font-weight: 300;
  color: rgba(12,12,12,.65);
  gap: 20px;
}

.nt-head {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(12,12,12,.3);
}

.nt-row b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.4rem,2.5vw,2.4rem);
  color: var(--terra);
  line-height: 1;
}

.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(12,12,12,.1);
  border-bottom: 1px solid rgba(12,12,12,.1);
  padding: 18px 0;
}

.marquee-track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(.9rem,1.4vw,1.1rem);
  letter-spacing: .06em;
  color: rgba(12,12,12,.4);
}

.marquee-track span { padding: 0 8px; }
.marquee-track i { color: var(--terra); font-style: normal; }

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

/* ── SERVICES ── */
#contact {
  background: rgba(12,12,12,.86);
  padding: clamp(80px,10vw,140px) var(--pad);
}

.services-inner { max-width: 1400px; margin: 0 auto; }

.services-header { margin-bottom: 60px; }

.services-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem,5.5vw,6rem);
  line-height: 1.05;
  color: var(--fg);
}

.services-title em { font-style: italic; color: var(--gold); }

.services-list {
  list-style: none;
  border-top: 1px solid rgba(240,232,216,.1);
  overflow: hidden;
}

.svc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid rgba(240,232,216,.1);
  overflow: visible;
  position: relative;
}

.svc-text {
  position: relative;
  flex: 1;
  overflow: hidden;
  /* altura exata da linha do texto */
  height: clamp(1.68rem, 3.84vw, 3.84rem);
}

.svc-static,
.svc-loop {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.4rem,3vw,3.2rem);
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .45s cubic-bezier(.76,0,.24,1);
  will-change: transform;
}

.svc-static { color: var(--fg); }

.svc-loop {
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--gold);
}

.svc:hover .svc-static { transform: translateY(-110%); }
.svc:hover .svc-loop {
  transform: translateY(-100%);
  animation: marquee 7s linear infinite;
}

.svc-arrow {
  font-size: 1.2rem;
  color: rgba(240,232,216,.2);
  margin-left: 20px;
  flex-shrink: 0;
  transition: color .2s, transform .2s;
}

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

.svc-easter .svc-static { font-size: clamp(1rem,1.8vw,1.8rem); color: rgba(240,232,216,.35); }
.svc-easter .svc-loop   { font-size: clamp(1rem,1.8vw,1.8rem); }

/* ── FOOTER ── */
#footer {
  background: rgba(12,12,12,.92);
  border-top: 1px solid rgba(240,232,216,.07);
  padding: clamp(80px,10vw,140px) var(--pad) 48px;
}

.footer-question {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem,5vw,5.5rem);
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 32px;
}

.footer-marquee-link {
  display: block;
  overflow: hidden;
  border-top: 1px solid rgba(240,232,216,.08);
  border-bottom: 1px solid rgba(240,232,216,.08);
  margin-bottom: 80px;
}

.footer-marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 10s linear infinite;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem,7vw,9rem);
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -.02em;
  padding: 12px 0;
  transition: color .2s;
}

.footer-marquee-link:hover .footer-marquee { color: var(--gold); }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social a {
  font-size: .72rem;
  font-weight: 300;
  letter-spacing: .08em;
  color: rgba(240,232,216,.35);
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: color .2s, border-color .2s;
}

.footer-social a:hover {
  color: var(--fg);
  border-color: rgba(240,232,216,.2);
}

.footer-projects {
  display: flex;
  gap: 32px;
}

.fp-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fp-year {
  font-size: .6rem !important;
  font-weight: 500 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin-bottom: 4px;
}

.fp-group span {
  font-size: .72rem;
  font-weight: 300;
  color: rgba(240,232,216,.3);
  letter-spacing: .06em;
}

.footer-copy {
  font-size: .62rem;
  font-weight: 300;
  letter-spacing: .08em;
  color: rgba(240,232,216,.2);
  text-align: right;
  align-self: end;
}

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--fg);
  color: #0c0c0c;
  padding: 12px 24px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: transform .4s cubic-bezier(.76,0,.24,1), opacity .4s;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── GLITCH ── */
@keyframes glitch {
  0%,100% { transform: none; clip-path: none; }
  15%  { transform: translate(-2px,0); clip-path: polygon(0 20%,100% 20%,100% 45%,0 45%); }
  30%  { transform: translate(2px,0);  clip-path: polygon(0 55%,100% 55%,100% 75%,0 75%); }
  45%  { transform: none; clip-path: none; }
}

.nav-brand.glitch { animation: glitch .3s steps(1) forwards; }

/* ── SCROLL PROGRESS ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 9999;
  transition: width .1s linear;
  box-shadow: 0 0 6px var(--gold);
}

/* ── HERO OVERLAY aumentado ── */
#hero::before { background: rgba(12,12,12,.35); }

/* ── HERO TITLE ── */
.hero-title {
  font-size: clamp(52px, 9vw, 140px);
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.hero-title .line { white-space: nowrap; }


/* ── HERO LIVE COUNT ── */
.hero-live-count {
  font-family: monospace;
  font-size: clamp(.62rem,.9vw,.75rem);
  color: var(--gold);
  letter-spacing: .1em;
  border: 1px solid rgba(196,146,42,.3);
  padding: 6px 12px;
  display: inline-block;
  margin-bottom: 8px;
}

#live-count {
  display: inline-block;
  transition: transform .25s cubic-bezier(.76,0,.24,1), opacity .25s;
}

#live-count.flip { transform: translateY(-100%); opacity: 0; }

/* ── SECTION DIVIDER ── */
.section-divider {
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(.76,0,.24,1);
  opacity: .4;
}

.section-divider.visible { transform: scaleX(1); }


/* ── WHATSAPP ── */
#whatsapp-btn {
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--gold);
  color: #0c0c0c;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  z-index: 500;
  animation: waPulse 2.5s ease-out infinite;
  transition: transform .2s, background .2s;
}

#whatsapp-btn:hover {
  transform: scale(1.06);
  background: #d4a030;
}

@keyframes waPulse {
  0%,100% { box-shadow: 0 0 0 0   rgba(196,146,42,.4); }
  50%      { box-shadow: 0 0 0 12px rgba(196,146,42,0); }
}

/* ── WORKS MELHORIAS ── */

/* header com contador */
.works-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}

.works-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 8px;
}

.wc-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 7rem);
  line-height: 1;
  color: rgba(240,232,216,.15);
}

.wc-label {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240,232,216,.25);
}

/* número gigante no fundo */
.work-item { position: relative; overflow: hidden; }

.work-item::after {
  content: attr(data-project);
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(80px, 15vw, 180px);
  color: rgba(240,232,216,.04);
  line-height: 1;
  pointer-events: none;
  transition: color .4s ease, transform .4s ease;
  z-index: 0;
}

.work-item:hover::after {
  color: rgba(196,146,42,.12);
  transform: translateY(-50%) scale(1.05);
}

/* nome + descrição oculta */
.work-name-wrap {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* altura = font-size do .work-name × line-height */
  height: clamp(1.54rem, 3.52vw, 3.3rem);
}

.work-name {
  display: block;
  transition: transform .4s cubic-bezier(.76,0,.24,1);
}

.work-item:hover .work-name { transform: translateY(-100%); }

.work-desc {
  position: absolute;
  bottom: -100%;
  left: 0;
  font-size: clamp(.62rem, 1vw, .78rem);
  font-weight: 300;
  letter-spacing: .08em;
  color: var(--gold);
  transition: bottom .4s cubic-bezier(.76,0,.24,1);
  white-space: nowrap;
  line-height: 1.1;
}

.work-item:hover .work-desc { bottom: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { display: none; }
  .about-timeline-inner { grid-template-columns: 1fr; }
  .about-tl-items { grid-template-columns: 1fr; gap: 32px; }
  .about-tl-items::before { display: none; }
  .about-tl-year::before { top: 50%; transform: translateY(-50%); left: -20px; }
  .hfc-2, .hfc-3 { display: none; }
  .footer-bottom { grid-template-columns: 1fr 1fr; }
  .footer-copy { text-align: left; }
}

@media (max-width: 600px) {
  .nav-label { display: none; }
  .nav-links { gap: 20px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-right { align-items: flex-start; max-width: 100%; }
  .hero-desc { text-align: left; }
  .work-type, .work-year { display: none; }
  .nt-row { grid-template-columns: 1fr 1fr; }
  .nt-row span:nth-child(2) { display: none; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-projects { flex-direction: column; gap: 16px; }
}
