#topo,
#sobre,
#projetos,
#contato {
  scroll-margin-top: 32px;
}

main {
  margin-left: 220px;
}

.nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: 220px;
  padding: 32px 28px;
  background: var(--paper);
  color: var(--ink);
}

.nav a {
  font-size: 15px;
  text-decoration: none;
}

.nav nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav nav a {
  color: #8a8a8a;
}

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

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--script);
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
}

.nav .mark {
  flex: 0 0 auto;
  font-size: 34px;
  white-space: nowrap;
}

.mark img {
  display: block;
  width: auto;
  height: 0.95em;
}

.nav .mark {
  color: inherit;
}

.nav .mark img {
  filter: none;
}

.lockup {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink);
  pointer-events: none;
}

.lockup img {
  width: auto;
  height: min(120px, 22vh);
}

.lockup p {
  font-family: var(--script);
  font-size: clamp(64px, 9vw, 118px);
  line-height: 0.8;
}

.field {
  position: relative;
  min-height: 100vh;
  background: var(--paper);
  overflow: visible;
}

.hero,
.crowd,
.lane,
.atlas,
.works,
.reach,
.foot {
  width: min(640px, calc(100% - 72px));
  margin-right: auto;
  margin-left: auto;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 4vh 2vw 36px;
  overflow: visible;
}

.hero__mark {
  position: relative;
  margin: 0;
  color: #2f4bff;
  font-family: var(--script);
  font-weight: 400;
  line-height: 0.8;
}

.hero__lockup {
  position: relative;
  display: block;
  font-size: 16vw;
}

.hero__word,
.hero__labs {
  display: block;
  white-space: nowrap;
}

.hero__word {
  position: relative;
  z-index: 1;
  font-size: 1em;
}

.hero__logo {
  position: absolute;
  z-index: 0;
  top: 58%;
  left: 50%;
  width: 2.4em;
  height: auto;
  max-width: none;
  opacity: 0.28;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__labs {
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero__copy {
  position: relative;
  max-width: 36ch;
  margin-top: 18px;
}

.hero__title {
  max-width: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

.hero__note {
  max-width: 38ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.dock {
  display: flex;
  width: max-content;
  gap: 8px;
  margin-top: 32px;
  padding: 8px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.07);
}

.dock a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: var(--ink);
  transition: transform 0.35s ease;
}

.dock a:first-child {
  background: var(--sky);
}

.dock a:nth-child(2) {
  background: var(--green);
}

.dock a:nth-child(3) {
  background: var(--ink);
  color: #fff;
}

.dock a:hover,
.dock a:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.dock svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.dock a:first-child svg,
.dock a:nth-child(2) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock a:first-child svg circle:last-child {
  fill: currentColor;
  stroke: none;
}

.rise {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rise.is-in {
  opacity: 1;
  transform: none;
}

.crowd {
  padding: 8px 0;
  background: var(--paper);
}

.sobre {
  margin: 0 0 18px;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.lane {
  display: block;
  min-height: 0;
  padding: 28px 0;
}

.lane p {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.brand {
  color: var(--ink);
  font-family: var(--script);
  font-size: 1.45em;
  line-height: 1;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  background: var(--ink);
  vertical-align: -0.08em;
  animation: caret-blink 1s steps(1) infinite;
}

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

.jump {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--sky), var(--sky));
  background-position: 0 92%;
  background-repeat: no-repeat;
  background-size: 100% 0.32em;
  transition: background-size 0.45s ease, background-image 0.45s ease, transform 0.45s ease;
}

.jump:hover {
  background-image: linear-gradient(var(--green), var(--green));
  background-size: 100% 100%;
  transform: translateY(-1px);
}

.atlas {
  padding: 18px 0 8px;
}

.atlas h3 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.atlas__board {
  position: relative;
  display: grid;
  justify-items: center;
}

.atlas__hint {
  margin: -10px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.atlas__board canvas {
  display: block;
  width: min(100%, 520px);
  height: auto;
  max-width: none;
  cursor: grab;
  touch-action: none;
}

.atlas__board canvas.is-drag {
  cursor: grabbing;
}

.atlas__pin {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.12);
  cursor: pointer;
}

.atlas__pin.is-on {
  transform: scale(1.25);
}

.atlas__card {
  position: absolute;
  z-index: 3;
  width: min(240px, 70%);
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 20, 20, 0.14);
}

.atlas__card[hidden] {
  display: none;
}

@media (max-width: 800px) {
  .atlas__card {
    position: static;
    width: min(100%, 420px);
    margin-top: 8px;
  }
}

.atlas__city {
  color: var(--muted);
  font-size: 12px;
}

.atlas__name {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
}

.atlas__open {
  display: inline-block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.atlas__live {
  position: relative;
  overflow: hidden;
  height: 132px;
  margin-top: 10px;
  border-radius: 10px;
  background: #f4f4f4;
}

.atlas__live iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
}

.works {
  padding: 36px 0 48px;
}

.works h2 {
  margin-bottom: 28px;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 36px 28px;
}

.folder {
  display: grid;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.folder__pile {
  position: relative;
  padding-top: 32px;
}

.folder__sheet {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 22px;
  border-radius: 12px 12px 4px 4px;
  background: var(--sheet);
}

.folder__sheet:nth-child(1) {
  top: 0;
  left: 22px;
  right: 22px;
}

.folder__sheet:nth-child(2) {
  top: 8px;
}

.folder__sheet:nth-child(3) {
  top: 20px;
}

.folder__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background: #eee;
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.08);
  transition: transform 0.8s ease;
}

.folder:hover .folder__cover {
  transform: translateY(-8px);
}

.folder__art,
.folder__live {
  position: absolute;
  inset: 0;
}

.folder__art {
  transition: opacity 0.9s ease;
}

.folder__live {
  opacity: 0;
  transition: opacity 0.9s ease;
}

@media (hover: hover) and (pointer: fine) {
  .folder:hover .folder__art {
    opacity: 0;
  }

  .folder:hover .folder__live {
    opacity: 1;
  }
}

.folder__art--bru {
  background: #e31c23;
}

.bru__cat {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  height: auto;
  transform: translate(-50%, -50%);
}

.folder__art--borgy {
  background: linear-gradient(118deg, #ff0fc9 0 46%, #3afa3a 54% 100%);
}

.folder__art--int {
  background: #1e4a46;
}

.folder__art--int img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.borgy__print {
  position: absolute;
  left: -18%;
  bottom: -8%;
  width: 140%;
  height: 58%;
  object-fit: cover;
  opacity: 0.9;
}

.borgy__print--b {
  top: -12%;
  bottom: auto;
  left: -8%;
  height: 50%;
  transform: rotate(8deg);
  opacity: 0.75;
}

.borgy__face {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 78%;
  height: auto;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

.folder iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .caret {
    animation: none;
  }
}

.folder__name {
  font-size: 15px;
  font-weight: 500;
}

.reach {
  padding: 48px 0 56px;
}

.reach h2 {
  margin: 0;
  font-size: clamp(44px, 5.6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.reach__line {
  display: inline-block;
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
}

.reach__label {
  margin: 48px 0 16px;
  font-size: 15px;
  font-weight: 600;
}

.reach__social {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 18px 36px;
}

.reach__social a {
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.reach__social a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0 32px;
  border-top: 1px solid #ececec;
  font-size: 14px;
}

.foot .mark {
  font-size: 28px;
}

@media (max-width: 800px) {
  #topo,
  #sobre,
  #projetos,
  #contato {
    scroll-margin-top: 84px;
  }

  main {
    margin-left: 0;
  }

  .hero,
  .crowd,
  .lane,
  .atlas,
  .works,
  .reach,
  .foot {
    width: auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 96px 16px 28px;
  }

  .hero__mark {
    inset: auto;
  }

  .hero__lockup {
    font-size: 17vw;
  }

  .hero__title {
    max-width: none;
  }

  .lane {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .nav {
    inset: 0 0 auto 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: auto;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #ececec;
  }

  .nav nav {
    flex-direction: row;
    gap: 10px;
  }

  .nav nav a {
    font-size: 13px;
  }

  .nav .mark,
  .mark {
    font-size: 26px;
  }

  .foot .mark {
    font-size: 22px;
  }

  .folders {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .lockup p {
    font-size: clamp(52px, 14vw, 84px);
  }
}
