@font-face { font-family: Montserrat; font-weight: 300; font-display: swap; src: url(/fonts/montserrat-light.woff) format("woff"); }
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(/fonts/montserrat-regular.woff) format("woff"); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(/fonts/montserrat-semibold.woff) format("woff"); }

:root {
  --header-background: #202020;
  --stage: #161616;
  --paper: #faf9f5;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --bar-height: 44px;
  --column: min(988px, calc(100vw - 48px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-height); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 Montserrat, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* Barra, com a geometria e a letra da barra do One Detail (Montserrat 12 px). */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 10; height: var(--bar-height);
  display: flex; align-items: center; gap: 48px; padding-inline: 20px;
  background: var(--header-background); color: #fff; font-size: 12px; line-height: 1;
}
.bar a { text-decoration: none; }
.bar a:is(:hover, :focus-visible) { color: #a6a6a6; }
.wordmark { font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.bar nav { display: flex; gap: 22px; }
.bar .lang { margin-inline-start: auto; display: flex; gap: 10px; font-weight: 600; letter-spacing: .06em; }
.bar .lang [aria-current] { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) { .bar { gap: 20px; padding-inline: 14px; } .bar nav { gap: 14px; } }

/* Carrossel: pista com scroll-snap, por isso desliza com setas, teclado, toque e trackpad. */
.carousel { position: relative; }
.track {
  display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; justify-items: center; align-content: center; }
.arrow {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; padding: 0;
  border: 1px solid rgb(255 255 255 / .22); border-radius: 50%;
  background: rgb(32 32 32 / .72); color: #fff; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s;
}
.arrow:is(:hover, :focus-visible) { background: #fff; color: #161616; border-color: #fff; }
.arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.arrow svg { width: 16px; height: 16px; }
.arrow.prev { left: 20px; }
.arrow.next { right: 20px; }

/* Janela de macOS em modo escuro. */
.window {
  width: var(--window-width); margin: 0; overflow: hidden;
  border-radius: 11px; background: #2a2a2a;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .11), 0 30px 70px rgb(0 0 0 / .6);
}
.window-bar {
  position: relative; height: 34px; display: flex; align-items: center; padding-inline: 13px;
  background: linear-gradient(#3a3a3a, #2c2c2c); border-bottom: 1px solid #111;
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.address {
  position: absolute; left: 50%; transform: translateX(-50%);
  max-width: 60%; padding: 4px 16px; border-radius: 6px; background: #1c1c1c; color: #b4b4b4;
  font-size: 11px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.window img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #111; }

/* Hero */
.hero {
  background: radial-gradient(120% 90% at 50% 0%, #2b2b2b 0%, var(--stage) 62%);
  color: #fff; padding-top: var(--bar-height);
}
.hero .slide {
  min-height: calc(100svh - var(--bar-height)); padding: 28px 84px 64px; gap: 22px;
  --window-width: min(1120px, 100%, calc((100svh - var(--bar-height) - 230px) * 1.6));
}
.hero .window { min-width: min(100%, 300px); }
.caption { text-align: center; max-width: 46rem; }
.caption h2 { margin: 0; font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; line-height: 1.2; }
.caption p { margin: 6px 0 0; color: #b9b9b9; font-size: 14px; line-height: 1.5; }
.meter {
  position: absolute; inset: auto 0 22px; display: flex; justify-content: center; align-items: center; gap: 14px;
  font-size: 11px; color: #9a9a9a; font-variant-numeric: tabular-nums; pointer-events: none;
}
.dots { display: flex; gap: 7px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .28); transition: background .2s; }
.dots i.on { background: #fff; }
@media (max-width: 700px) {
  .hero .slide { padding: 20px 14px 96px; --window-width: 100%; }
  .hero .arrow { top: auto; bottom: 14px; margin: 0; }
  .hero .arrow.prev { left: 14px; }
  .hero .arrow.next { right: 14px; }
  .window-bar { height: 26px; }
  .lights i { width: 8px; height: 8px; }
  .address { font-size: 9px; padding: 3px 10px; }
}

/* Texto */
.intro, .work, .about { width: var(--column); margin-inline: auto; }
.intro { padding-block: 84px 20px; }
h1 { margin: 0 0 28px; max-width: 20ch; font-size: clamp(30px, 4.4vw, 52px); font-weight: 300; line-height: 1.12; letter-spacing: -.015em; }
.intro p, .about p { max-width: 62ch; margin: 0 0 1.1em; }
.section-title { margin: 72px 0 34px; font-size: clamp(24px, 3vw, 34px); font-weight: 300; line-height: 1.2; }

.project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; padding-block: 34px; border-top: 1px solid #e3e0d8; }
.project h3 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.2; }
.project .kind { margin: 6px 0 16px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.project p { margin: 0 0 1em; font-size: 16px; }
.project .partner { font-size: 14px; color: var(--muted); }
.visit { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 600; text-underline-offset: 5px; }
.project .carousel { border-radius: 12px; overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, #2b2b2b, var(--stage) 70%); }
.project .slide { padding: 34px 58px; --window-width: 100%; }
.project .arrow { width: 36px; height: 36px; margin-top: -18px; }
.project .arrow.prev { left: 11px; }
.project .arrow.next { right: 11px; }
.project .window { border-radius: 8px; }
.project .window-bar { height: 24px; padding-inline: 9px; }
.project .lights { gap: 5px; }
.project .lights i { width: 8px; height: 8px; }
.project .address { font-size: 9px; padding: 3px 10px; }
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; gap: 22px; }
  .project .carousel { order: -1; }
  .project .slide { padding: 22px 48px; }
}

.about { padding-block: 10px 96px; }

footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding: 26px 56px;
  background: var(--header-background); color: #fff; border-top-right-radius: 28px; font-size: 13px;
}
footer a { text-decoration: none; }
footer a:is(:hover, :focus-visible) { color: #a6a6a6; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-inline: auto; }
footer small { color: #9a9a9a; font-size: 12px; }
@media (max-width: 700px) { footer { padding: 24px; } footer nav { margin-inline: 0; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
