:root {
  --bg: #0a0a0b;
  --panel: #111113;
  --ivory: #f3f0ea;
  --soft: #b9b5ad;
  --muted: #7d7a74;
  --rule: #26262a;
  --gold: #c9ab6e;
  --land: #1e1e21;
  --display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--ivory); color: var(--bg); }

.wrap { width: min(1240px, 100% - 3.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ivory); color: var(--bg); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.eyebrow b { display: block; margin-bottom: 1rem; font: italic 400 1.5rem/1 var(--display); letter-spacing: 0; color: var(--muted); }

h2 {
  font: 400 clamp(2rem, 4.2vw, 3.5rem)/1.05 var(--display);
  letter-spacing: -.015em;
  text-wrap: balance;
}
h3 { font: 400 clamp(1.35rem, 1.9vw, 1.6rem)/1.15 var(--display); }

.btn {
  display: inline-block; padding: 1.05rem 2rem;
  background: var(--ivory); color: var(--bg); border: 1px solid var(--ivory);
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--ivory); }
.btn--line { background: transparent; color: var(--ivory); border-color: var(--muted); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }

/* Links ainda não preenchidos em js/main.js */
.is-pending { opacity: .4; cursor: default; pointer-events: none; }

/* Navegação */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.is-scrolled { background: var(--bg); border-color: var(--rule); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 72px; }
.nav__mark { font: 500 1.35rem var(--display); letter-spacing: .14em; }
.nav__links { display: flex; gap: 2.5rem; }
.nav__links a, .nav__toggle { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); transition: color .2s; }
.nav__links a:hover { color: var(--ivory); }
.nav__toggle { display: none; }

/* Abertura */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: 72px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 50% 42%, rgba(201, 171, 110, .13), transparent 70%); }
.hero > * { position: relative; }
.hero__center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 3rem; }
.hero__center .eyebrow { animation: fade 1s .3s both; }
.hero__name {
  font: 500 clamp(2.6rem, min(8.5vw, 13svh), 7rem)/.92 var(--display);
  letter-spacing: -.02em; text-transform: uppercase;
  margin-top: 1.75rem;
}
.hero__name span { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__name i { display: block; font-style: normal; animation: rise 1s cubic-bezier(.2, .7, .1, 1) both; }
.hero__name span:nth-child(2) i { animation-delay: .1s; }
.hero__name span:nth-child(3) i { animation-delay: .2s; color: transparent; -webkit-text-stroke: 1px var(--ivory); }
.hero__lead { max-width: 26em; margin-top: 2rem; font: 400 clamp(1.1rem, 1.7vw, 1.35rem)/1.4 var(--display); color: var(--soft); text-wrap: balance; animation: fade 1s .5s both; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.5rem; animation: fade 1s .6s both; }
.hero__pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); animation: fade 1s .7s both; }
.hero__pillars li { padding: 1.5rem 1.25rem 1.9rem; font-size: .95rem; color: var(--soft); }
.hero__pillars li + li { border-left: 1px solid var(--rule); }
.hero__pillars span { display: block; margin-bottom: .45rem; font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* Retrato */
.portrait { padding-block: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--rule); text-align: center; }
.portrait .photo { width: min(340px, 100%); margin-inline: auto; text-align: left; }
/* Foto principal: bordas suaves que se dissolvem no fundo, dentro de uma moldura fina */
.portrait .photo.has-img { width: min(360px, calc(100% - 2.5rem)); overflow: visible; background: none; }
.portrait .photo.has-img::before {
  content: ""; position: absolute; inset: -16px; pointer-events: none;
  border: 1px solid rgba(201, 171, 110, .4);
}
.portrait .photo.has-img img {
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  -webkit-mask-image: radial-gradient(130% 110% at 50% 38%, #000 55%, transparent 100%);
  mask-image: radial-gradient(130% 110% at 50% 38%, #000 55%, transparent 100%);
}
.portrait__line { margin-top: 2.25rem; font: italic 400 clamp(1.15rem, 2vw, 1.5rem)/1.3 var(--display); color: var(--soft); }

/* Faixa em movimento */
.ticker { overflow: hidden; border-block: 1px solid var(--rule); padding-block: 1.4rem; }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { display: flex; align-items: center; font: italic 400 clamp(1.4rem, 2.6vw, 2.1rem)/1 var(--display); color: var(--muted); white-space: nowrap; }
.ticker span::after { content: ""; width: 5px; height: 5px; margin-inline: 2.25rem; background: var(--gold); transform: rotate(45deg); }

/* Seções */
.section { padding-block: clamp(5rem, 11vw, 9.5rem); border-top: 1px solid var(--rule); }
.ticker + .section { border-top: 0; }
.head { text-align: center; }
.head::before { content: ""; display: block; width: 1px; height: 56px; margin: 0 auto 2rem; background: var(--gold); }
.head h2 { margin: 1.5rem auto 0; max-width: 14em; }
.body { max-width: 1040px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.lead { max-width: 36em; margin-inline: auto; text-align: center; font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.65; color: var(--soft); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 4rem; }
.trio article { padding-top: 1.5rem; border-top: 1px solid var(--ivory); text-align: center; }
.trio__k { font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.trio h3 { margin-top: .9rem; }
.trio p { margin-top: .9rem; font-size: .95rem; color: var(--soft); }

.linkrows { max-width: 760px; margin: 4rem auto 0; border-top: 1px solid var(--rule); }
.linkrows a { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); transition: padding .25s, color .25s; }
.linkrows span { font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.15 var(--display); }
.linkrows em { font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.linkrows a:hover { padding-left: .75rem; color: var(--gold); }

/* Fotos: sem imagem, mostram a orientação de como a foto deve ser */
.photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px dashed #3a3a40; background: var(--panel); }
.photo--wide { aspect-ratio: 3 / 2; max-width: 860px; margin: 3.5rem auto 0; }
.photo--center { width: min(420px, 100%); margin: 3.5rem auto 0; }
.photo figcaption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem; font-size: .82rem; line-height: 1.5; color: var(--soft); }
.photo figcaption b { margin-bottom: .5rem; font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo[data-foto="corrida"] img, .photo[data-foto="ciclismo"] img { filter: grayscale(1) contrast(1.08); }
.photo.has-img { border: 0; }
.photo.has-img figcaption { display: none; }
.photo--soon figcaption { justify-content: center; align-items: center; text-align: center; padding: 1.75rem; }
.photo__soon { display: block; margin-bottom: .75rem; font: italic 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--display); color: var(--ivory); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }

/* Frase */
.quote { padding-block: clamp(5rem, 12vw, 10rem); border-top: 1px solid var(--rule); background: var(--ivory); color: var(--bg); text-align: center; }
.quote p { font: italic 400 clamp(1.8rem, 4.4vw, 3.75rem)/1.08 var(--display); letter-spacing: -.02em; }

/* Performance */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4rem; border-block: 1px solid var(--rule); }
.tri li { padding: 2rem 1.5rem 2.25rem; text-align: center; }
.tri li + li { border-left: 1px solid var(--rule); }
.tri span { font: 400 1rem var(--display); color: var(--gold); }
.tri h3 { margin-top: 1.25rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.tri p { margin-top: .5rem; font-size: .95rem; color: var(--soft); }

.strava { margin-top: 3.5rem; padding: clamp(1.75rem, 4vw, 3rem); background: var(--panel); border: 1px solid var(--rule); display: grid; gap: 2.5rem; text-align: center; }
.strava__title { margin: 1rem auto 2rem; max-width: 16em; font: 400 clamp(1.35rem, 2.2vw, 1.8rem)/1.18 var(--display); }
.strava__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.strava__stats dd, .figures dd { font: 400 clamp(2.2rem, 4vw, 3.25rem)/1 var(--display); }
.strava__stats dt, .figures dt { margin-top: .6rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.strava__stats div, .figures div { display: flex; flex-direction: column; }
.strava__widgets { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.strava__widgets iframe { border: 0; background: #fff; max-width: 100%; }
.strava [hidden] { display: none; }

/* Tecnologia */
.figures { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 5rem; margin-top: 3.5rem; text-align: center; }

.map { margin-top: 4rem; }
.map__stage { position: relative; }
#world { display: block; width: 100%; height: auto; touch-action: pan-y; }
#world.is-globe { cursor: grab; touch-action: none; }
#world.is-globe:active { cursor: grabbing; }
.map__status { position: absolute; inset: 0; display: grid; place-items: center; font-size: .875rem; color: var(--muted); text-align: center; }
.map__status[hidden] { display: none; }
.map__tip { position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); padding: .35rem .7rem; background: var(--ivory); color: var(--bg); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.sphere { fill: none; stroke: var(--rule); }
.graticule { fill: none; stroke: #17171a; stroke-width: .6; }
.country { fill: var(--land); stroke: var(--bg); stroke-width: .6; }
.country.is-client { fill: var(--ivory); cursor: pointer; transition: fill .2s; }
.country.is-client.is-active { fill: var(--gold); }
.arc { fill: none; stroke: var(--gold); stroke-width: .8; opacity: .5; }
.arc.is-active { opacity: 1; stroke-width: 1.5; }
.marker { pointer-events: none; }
.marker circle { fill: var(--bg); stroke: var(--gold); stroke-width: 1.5; }
.marker text { font: 500 12.5px var(--sans); fill: var(--ivory); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }

.map figcaption { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.map__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; }
.map__list button, .map__modes button { font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); padding-bottom: 3px; border-bottom: 1px solid transparent; transition: color .2s; }
.map__list button:hover, .map__list button.is-active { color: var(--gold); border-color: var(--gold); }
.map__modes { display: flex; gap: 1.25rem; }
.map__modes button { color: var(--muted); }
.map__modes button.is-active { color: var(--ivory); border-color: var(--ivory); }

/* Instagram */
.insta { text-align: center; }
.insta__handle { display: inline-block; margin: 2.75rem 0 2.25rem; font: italic 400 clamp(2rem, 5vw, 3.5rem)/1.1 var(--display); color: var(--gold); border-bottom: 1px solid transparent; transition: border-color .25s; }
.insta__handle:hover { border-color: var(--gold); }

/* Siga no Instagram (fim da página) */
.follow { padding-block: clamp(5rem, 11vw, 8.5rem); border-top: 1px solid var(--rule); text-align: center; background: radial-gradient(60% 80% at 50% 100%, rgba(201, 171, 110, .10), transparent 70%); }
.follow__title { max-width: 18em; margin: 1.5rem auto 0; font: 400 clamp(1.6rem, 3.6vw, 2.75rem)/1.15 var(--display); text-wrap: balance; }
.follow__handle { display: inline-block; margin: 2rem 0 2.25rem; font: italic 400 clamp(1.5rem, 3vw, 2.25rem)/1.1 var(--display); color: var(--gold); border-bottom: 1px solid transparent; transition: border-color .25s; }
.follow__handle:hover { border-color: var(--gold); }

/* Credenciais */
.creds { max-width: 820px; }
.creds li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.creds li:first-child { border-top: 1px solid var(--rule); }
.creds span { font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.15 var(--display); }
.creds em { font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Contato */
.contact { padding-block: clamp(6rem, 13vw, 11rem) clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--rule); text-align: center; }
.contact h2 { margin-top: 1.75rem; font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: .96; letter-spacing: -.025em; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.75rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--rule); }
.contact__links a { font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; transition: color .2s; }
.contact__links a:hover { color: var(--gold); }

.footer { border-top: 1px solid var(--rule); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.75rem; }

/* Movimento */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .1, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 1000px) {
  .hero__pillars { grid-template-columns: repeat(2, 1fr); }
  .hero__pillars li:nth-child(3) { border-left: 0; }
  .hero__pillars li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--rule); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  .trio { grid-template-columns: 1fr; gap: 2.25rem; }
  .tri { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .photo:not(.has-img) { aspect-ratio: 3 / 2; }
  .tri li { padding: 1.75rem 0; }
  .tri li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .tri h3 { margin-top: .75rem; }
  .creds li { flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .figures { gap: 2rem 3rem; }
  .marker text { display: none; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
