/* ================================================================
   ADHEMAR CABRAL — CREATIVE DIRECTION PROPOSAL
   A digital concept book. Vanilla CSS, no framework.
   ================================================================ */

:root {
  --black: #0B0B0C;
  --white: #F4F2EE;
  --gray-mid: #9A9A9A;
  --gray-light: #D7D7D7;
  --gold: #B08D57;
  --text-paragraph: #C0BEBA;
  --text-max-width: 700px;

  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --edge: clamp(1.5rem, 6vw, 6rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.gold {
  color: var(--gold) !important;
}

strong.gold {
  font-weight: 600;
  color: var(--gold);
}

/* ---------------------------------------------------------------
   Scrollbar
   --------------------------------------------------------------- */

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

html {
  scrollbar-color: var(--gold) var(--black);
  scrollbar-width: thin;
}

/* ---------------------------------------------------------------
   Reset
   --------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
}

ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  max-width: var(--text-max-width);
  letter-spacing: 0.02em;
  color: var(--text-paragraph);
}

*:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.text--offset-right {
  margin-left: auto;
  margin-right: 0;
}

.text--offset-left {
  margin-right: auto;
  margin-left: 0;
}

/* ---------------------------------------------------------------
   Preloader — the book's cover closing before it opens
   --------------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.1s var(--ease), visibility 1.1s var(--ease);
}

.preloader__mark {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--gray-mid);
  opacity: 0;
  animation: mark-in 1.2s var(--ease) forwards;
  animation-delay: 0.2s;
}

@keyframes mark-in {
  to {
    opacity: 1;
  }
}

.preloader__bar {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preloader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  animation: bar-fill 4.4s var(--ease) forwards;
  animation-delay: 0.6s;
}

@keyframes bar-fill {
  to {
    width: 100%;
  }
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------------------------------------------------------------
   Chapter rail — the spine of the book / the gallery directory
   --------------------------------------------------------------- */

.rail {
  position: fixed;
  right: var(--edge);
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

.rail__track {
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gray-light);
  opacity: 0.15;
}

.rail__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.rail__list a {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 0.15rem 0.3rem;
}

.rail__num {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--gray-mid);
  opacity: 0.45;
  transition: opacity 0.5s var(--ease), color 0.5s var(--ease);
}

.rail__list a:hover .rail__num,
.rail__list a:focus-visible .rail__num {
  opacity: 1;
  color: var(--gold);
}

.rail__list a.is-active .rail__num {
  opacity: 1;
  color: var(--gold);
}

/* ---------------------------------------------------------------
   Top progress line — mobile substitute for the rail
   --------------------------------------------------------------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(215, 215, 215, 0.12);
  z-index: 30;
}

.progress__fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.1s linear;
}

/* ---------------------------------------------------------------
   Chapter — shared frame
   --------------------------------------------------------------- */

.chapter {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 12vh var(--edge);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
}

.heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--white);
  margin: 0;
}

.section-head {
  max-width: 900px;
  margin-bottom: clamp(3rem, 8vh, 6rem);
}

.section-sub {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--gray-mid);
}

/* ---------------------------------------------------------------
   Scroll-triggered reveal (IntersectionObserver adds .is-visible)
   --------------------------------------------------------------- */

.reveal-io {
  opacity: 0;
  transform: translateY(20px);
}

/* ---------------------------------------------------------------
   Load-time reveal (used only on the opening cover)
   --------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-in 1.2s var(--ease) forwards;
  animation-delay: calc(var(--d) * 0.3s + 0.4s);
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
   I — COVER
   ================================================================ */

.chapter--cover {
  align-items: center;
  text-align: center;
}

.light-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.cover-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6vh;
  position: relative;
  z-index: 2;
}

.cover {
  position: static;
}

.cover__eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gray-mid);
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 1.75rem;
  opacity: 1;
  transform: none;
}

.cover__credit {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.4rem, 0.7vw, 0.55rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin: 0 auto 0.75rem;
  max-width: none;
  text-align: center;
}

.cover__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  animation: none;
  opacity: 1;
  transform: none;
}

.cover__line {
  margin-top: 2rem;
  margin-inline: auto;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gray-light);
  max-width: 30ch;
  animation: none;
  opacity: 1;
  transform: none;
}

.cover__words {
  height: 1.4em;
  position: relative;
  margin-top: 1.5rem;
}

.cover__word {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gray-mid);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.cover__word.is-active {
  opacity: 1;
}

.cover-marquee {
  margin-top: calc(2rem + 30px);
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.cover-marquee__track {
  display: flex;
  gap: 4.5rem;
  white-space: nowrap;
  animation: marquee-scroll 45s linear infinite;
}

.cover-marquee__track span {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gray-mid);
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  cursor: pointer;
}

.scroll-cue span {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.scroll-cue__line {
  width: 1px;
  height: 30px;
  background: var(--gray-light);
  opacity: 0.4;
  animation: breathe 3.6s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes breathe {

  0%,
  100% {
    opacity: 0.15;
    height: 22px;
  }

  50% {
    opacity: 0.55;
    height: 34px;
  }
}

/* ================================================================
   II — MANIFESTO
   ================================================================ */

.chapter--manifesto {
  align-items: center;
  text-align: center;
  padding-top: 15vh;
  justify-content: flex-start;
  overflow: hidden;
}

.gradual-blur {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 5;
  isolation: isolate;
}

.gradual-blur__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.manifesto {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  line-height: 1.4;
  color: var(--white);
  max-width: var(--text-max-width);
}

.word-carousel {
  position: relative;
  height: 1.6em;
  margin-top: calc(4vh + 150px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.word-carousel span {
  position: absolute;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.word-carousel span:nth-child(1) {
  animation: word-fade 20s infinite;
}

.word-carousel span:nth-child(2) {
  animation: word-fade 20s infinite;
  animation-delay: 2s;
}

.word-carousel span:nth-child(3) {
  animation: word-fade 20s infinite;
  animation-delay: 4s;
}

.word-carousel span:nth-child(4) {
  animation: word-fade 20s infinite;
  animation-delay: 6s;
}

.word-carousel span:nth-child(5) {
  animation: word-fade 20s infinite;
  animation-delay: 8s;
}

.word-carousel span:nth-child(6) {
  animation: word-fade 20s infinite;
  animation-delay: 10s;
}

.word-carousel span:nth-child(7) {
  animation: word-fade 20s infinite;
  animation-delay: 12s;
}

.word-carousel span:nth-child(8) {
  animation: word-fade 20s infinite;
  animation-delay: 14s;
}

.word-carousel span:nth-child(9) {
  animation: word-fade 20s infinite;
  animation-delay: 16s;
}

.word-carousel span:nth-child(10) {
  animation: word-fade 20s infinite;
  animation-delay: 18s;
}

@keyframes word-fade {

  0%,
  6% {
    opacity: 0;
    transform: translateY(8px);
  }

  10%,
  16% {
    opacity: 1;
    transform: translateY(0);
  }

  20%,
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ================================================================
   GLOBAL PRESENCE — Editorial Introduction
   ================================================================ */

.global-presence {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 14vh var(--edge) 12vh;
  text-align: center;
  overflow: hidden;
}

.global-presence__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.global-presence__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  line-height: 1.08;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: -0.5rem 0 0;
}

.global-presence__text {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.8;
  color: var(--white);
  max-width: var(--text-max-width);
  margin: 0;
  font-style: italic;
  opacity: 0.85;
}

.global-presence__subtext {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  line-height: 1.6;
  color: var(--gold);
  max-width: var(--text-max-width);
  margin: -1rem 0 0;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.global-presence__dash {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  line-height: 1.7;
  color: var(--gray-mid);
  max-width: var(--text-max-width);
  margin: -2rem 0 0;
}

@media (max-width: 767px) {
  .global-presence {
    min-height: auto;
    padding: 8vh var(--edge) 6vh;
  }

  .global-presence__inner {
    gap: 1.2rem;
  }

  .global-presence__title {
    letter-spacing: 0.14em;
  }

  .global-presence__subtext {
    margin-top: 0;
  }

  .global-presence__dash {
    margin-top: 0;
  }
}

/* ================================================================
   III — THE VISION
   ================================================================ */

.chapter--vision {
  align-items: flex-start;
}

.vision {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.vision__body {
  max-width: var(--text-max-width);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: clamp(3rem, 8vh, 5rem);
}

.vision__body p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.7;
  color: var(--gray-light);
  max-width: var(--text-max-width);
}

.vision__words-wrap {
  overflow: hidden;
  width: 100%;
  margin: 5rem 0;
  mask-image: linear-gradient(to right, transparent 2%, black 12%, black 88%, transparent 98%);
  -webkit-mask-image: linear-gradient(to right, transparent 2%, black 12%, black 88%, transparent 98%);
}

.vision__words {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  column-gap: 4.5rem;
  animation: vision-marquee 25s linear infinite;
}

@keyframes vision-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.vision__words li {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B08D57;
  white-space: nowrap;
  flex-shrink: 0;
}

.vision__words li::after {
  content: '';
  position: absolute;
  right: -2.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 10px;
  background: var(--gray-light);
  opacity: 0.35;
}

/* ================================================================
   IV — MOODBOARD
   ================================================================ */

.moodboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

.moodboard__divider {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: 160px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--gray-light);
  opacity: 0.06;
  padding: 0.5rem 0;
  text-align: left;
  pointer-events: none;
  position: relative;
  z-index: 0;
  margin-top: -13rem;
  margin-bottom: -13rem;
}

.plate {
  margin: 0;
  border: 1px solid rgba(215, 215, 215, 0.18);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 10px;
}

.plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.8s var(--ease);
}

.plate:hover::after {
  opacity: 0;
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plate figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  background: rgba(11, 11, 12, 0.6);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
}

.plate--a {
  grid-column: 1 / 8;
  aspect-ratio: 16 / 10;
  background: linear-gradient(155deg, #17171a, #0B0B0C 60%);
}

.plate--b {
  grid-column: 8 / 13;
  aspect-ratio: 3 / 4;
  background: linear-gradient(200deg, #131315, #0B0B0C 65%);
}

.plate--c {
  grid-column: 1 / 5;
  aspect-ratio: 3 / 4;
  background: linear-gradient(120deg, #141416, #0B0B0C 60%);
}

.plate--d {
  grid-column: 5 / 13;
  aspect-ratio: 21 / 9;
  background: linear-gradient(165deg, #19191c, #0B0B0C 55%);
}

.plate--e {
  grid-column: 1 / 6;
  aspect-ratio: 4 / 3;
  background: linear-gradient(210deg, #121214, #0B0B0C 60%);
}

.plate--f {
  grid-column: 6 / 13;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, #161618, #0B0B0C 60%);
}

/* ================================================================
   V — VISUAL LANGUAGE
   ================================================================ */

.language-block {
  max-width: 900px;
  padding: clamp(2rem, 5vh, 3rem) 0;
  border-top: 1px solid rgba(215, 215, 215, 0.15);
}

.language-block:first-of-type {
  border-top: none;
}

.language-block__label {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.swatch {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.swatch__chip {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
}

.swatch__hex {
  font-size: 0.8rem;
  color: var(--gray-light);
  font-family: var(--sans);
}

.swatch__name {
  font-size: 0.72rem;
  color: var(--gray-mid);
}

.specimen {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  margin: 0.5rem 0 0.75rem;
  color: var(--white);
}

.specimen--sans {
  font-family: var(--sans);
}

.specimen-caption {
  font-size: 0.85rem;
  color: var(--gray-mid);
  max-width: var(--text-max-width);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.specimen-caption:last-child {
  margin-bottom: 0;
}

.spacing-scale {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 8px;
  margin: 1rem 0 1.5rem;
}

.spacing-bar {
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

/* ================================================================
   VI — USER JOURNEY
   ================================================================ */

.journey {
  max-width: 760px;
  position: relative;
  padding-left: 2rem;
}

.journey::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0.4em;
  bottom: 0.4em;
  width: 1px;
  background: rgba(215, 215, 215, 0.18);
}

.journey__step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 1.5rem;
  padding-bottom: clamp(2rem, 4vh, 2.75rem);
  position: relative;
}

.journey__step:last-child {
  padding-bottom: 0;
}

.journey__mark {
  position: absolute;
  left: -2rem;
  font-size: 0.7rem;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
}

.journey__title {
  grid-column: 2;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--white);
  margin-bottom: 0.4rem;
}

.journey__desc {
  grid-column: 2;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--gray-mid);
  max-width: var(--text-max-width);
}

/* ================================================================
   VII — WIREFRAME CONCEPTS
   ================================================================ */

.wireframes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1200px;
}

.wireframe {
  margin: 0;
}

.wireframe__svg {
  width: 100%;
  height: auto;
  display: block;
}

.wireframe figcaption {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--gray-mid);
  letter-spacing: 0.02em;
}

/* ================================================================
   VIII — CREATIVE PRINCIPLES
   ================================================================ */

.chapter--principles {
  align-items: center;
  text-align: center;
  gap: clamp(2.5rem, 6vh, 4rem);
}

.principle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--white);
}

/* ================================================================
   IX — NEXT STEPS
   ================================================================ */

.timeline {
  display: flex;
  flex-direction: column;
  max-width: 760px;
}

.timeline__step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: baseline;
  gap: 0 1.5rem;
  padding: clamp(1.25rem, 3vh, 1.75rem) 0;
  border-top: 1px solid rgba(215, 215, 215, 0.15);
}

.timeline__step:last-child {
  border-bottom: 1px solid rgba(215, 215, 215, 0.15);
}

.timeline__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
}

.timeline__title {
  grid-column: 2;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--white);
}

.timeline__desc {
  grid-column: 2;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--gray-mid);
  max-width: var(--text-max-width);
}

/* ================================================================
   X — CLOSING
   ================================================================ */

.chapter--closing {
  align-items: center;
  text-align: center;
  padding-bottom: 2vh;
}

.closing__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 230px));
  font-family: var(--serif);
  font-size: 350px;
  font-weight: 300;
  color: #1a3a5c;
  opacity: 0.07;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  line-height: 1;
}

.chapter--closing .closing,
.chapter--closing .closing__sign {
  position: relative;
  z-index: 1;
}

.closing {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  color: var(--white);
  white-space: nowrap;
}

.closing__sign {
  margin-top: 1.5rem;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.closing__name {
  color: var(--gold);
}

/* ---------------------------------------------------------------
   Horizontal Loop — Atlas de Referências
   --------------------------------------------------------------- */

.keywords-loop {
  width: 100%;
  overflow: hidden;
  padding: 8vh 0;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.keywords-loop__track {
  display: flex;
  gap: 6rem;
  white-space: nowrap;
  animation: keywords-scroll 60s linear infinite;
  width: fit-content;
}

.keywords-loop__track span {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  opacity: 0.35;
  flex-shrink: 0;
  transition: opacity 0.8s var(--ease);
}

.keywords-loop:hover .keywords-loop__track {
  animation-play-state: paused;
}

.keywords-loop:hover .keywords-loop__track span {
  opacity: 0.6;
}

@keyframes keywords-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------------------------
   Contact — O Ápice
   --------------------------------------------------------------- */

.chapter--contact {
  align-items: center;
  text-align: center;
  min-height: 60vh;
}

.contact-apex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-apex__invite {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  color: var(--gray-light);
  max-width: var(--text-max-width);
  font-style: italic;
}

.contact-apex__link {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.06em;
  color: var(--gray-light);
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  transition: color 0.6s var(--ease);
}

.contact-apex__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.6s var(--ease);
}

.contact-apex__link:hover {
  color: var(--gold);
}

.contact-apex__link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ---------------------------------------------------------------
   Full-width footer image
   --------------------------------------------------------------- */

.footer-full {
  width: 100%;
  line-height: 0;
  position: relative;
  margin-top: -30vh;
  z-index: 1;
}

.footer-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 12, 0) 20%, rgba(11, 11, 12, 1) 80%);
  z-index: 2;
  pointer-events: none;
}

.footer-full img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------- */

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

  .reveal,
  .reveal-io {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .keywords-loop__track {
    animation: none;
  }

  .keywords-loop__track span {
    opacity: 0.4;
  }

  .cover-marquee__track {
    animation: none;
  }

  .cover-marquee__track span {
    opacity: 1;
  }

  .scroll-cue__line {
    animation: none;
    opacity: 0.4;
  }

  .preloader {
    display: none;
  }
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 900px) {
  .rail {
    display: none;
  }

  .progress {
    display: block;
  }

  .vision__body {
    max-width: 100%;
  }

  .moodboard {
    grid-template-columns: 1fr;
  }

  .plate--a,
  .plate--b,
  .plate--c,
  .plate--d,
  .plate--e,
  .plate--f {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .moodboard__divider {
    display: none;
  }

  .journey {
    padding-left: 2rem;
  }

  .journey__step {
    grid-template-columns: 2rem 1fr;
  }

  .journey__mark {
    left: -2rem;
  }
}

@media (min-width: 901px) {
  .progress {
    display: none;
  }
}

@media (max-width: 480px) {
  .reveal,
  .reveal-io {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .chapter {
    padding: 4vh var(--edge);
  }

  .chapter--cover {
    padding: 3vh var(--edge);
  }

  .cover__name {
    letter-spacing: 0;
  }

  .swatches {
    gap: 1rem;
  }

  .closing {
    white-space: nowrap;
    font-size: clamp(1rem, 3.5vw, 1.6rem);
  }

  .keywords-loop {
    padding-top: 4vh;
    padding-bottom: 4vh;
    padding-left: var(--edge);
    padding-right: var(--edge);
    margin: 2rem 0;
  }

  .footer-full {
    margin-top: 0;
  }

  .cover__credit {
    font-size: clamp(0.3rem, 0.55vw, 0.45rem);
  }

  .vision__body {
    gap: 0.25rem;
    margin-bottom: 0.6rem;
  }

  .vision__words {
    column-gap: 0.3rem;
    row-gap: 0.15rem;
  }

  .global-presence__inner {
    gap: 1.5rem;
  }

  .global-presence__title {
    margin-top: 0;
  }

  .global-presence__subtext {
    margin-top: 0;
  }

  .global-presence__dash {
    margin-top: 0;
  }

  .journey {
    padding-left: 6px;
    margin-top: 30px;
  }

  .journey::before {
    left: 0;
  }

  .journey__step {
    grid-template-columns: auto 1fr;
    gap: 0.2rem 0.6rem;
    padding-bottom: 2.5rem;
    align-items: baseline;
  }

  .journey__mark {
    position: static;
    grid-column: 1;
    grid-row: 1;
    font-size: 0.75rem;
    line-height: 1;
  }

  .journey__title {
    grid-column: 2;
    grid-row: 1;
  }

  .journey__desc {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.6rem;
    font-size: 0.88rem;
  }

  .timeline__step {
    padding: 1.2rem 0;
  }

  .timeline__desc {
    margin-top: 0.7rem;
  }

  .section-head {
    margin-bottom: 0.8rem;
  }

  .manifesto {
    margin-bottom: 0.5rem;
  }

  .eyebrow {
    margin-bottom: 0.6rem;
  }
}

@media (pointer: coarse) {
  #fluid-cursor-canvas {
    display: none !important;
  }

  html {
    cursor: auto !important;
  }
}

/* ---------------------------------------------------------------
   Globe Folio — 3D Portfolio Sphere
   --------------------------------------------------------------- */

#globefolio-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: #0B0B0C;
}

#globeCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

#globeCanvas:active {
  cursor: grabbing;
}

#globeHint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  mix-blend-mode: difference;
  transition: opacity 160ms ease;
  white-space: nowrap;
}

#globeReset {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
  opacity: 0;
  pointer-events: none;
}

#globeReset:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 767px) {
  #globefolio-wrap {
    height: 72vh;
    min-height: 420px;
  }
}

/* ---------------------------------------------------------------
   MOBILE — 480px
   --------------------------------------------------------------- */
@media (max-width: 480px) {
  .chapter--cover {
    min-height: auto;
    padding-top: calc(6vh + 70px);
    justify-content: flex-start;
  }

  .cover__name {
    font-size: clamp(3.2rem, 11vw, 4.5rem);
    margin-top: 5px;
  }

  .cover__surname {
    letter-spacing: 0.12em;
  }

  .cover {
    margin-bottom: 0;
  }

  .scroll-cue {
    position: static;
    transform: none;
    margin-top: 70px;
  }

  .global-presence {
    padding: 4vh var(--edge) 3vh;
    margin-top: -50px;
  }

  .vision__body {
    gap: 2.6rem;
  }

  #globefolio-wrap {
    margin: 3vh 0;
  }

  .vision__words {
    column-gap: 5rem;
  }

  .vision__words li::after {
    right: -2.5rem;
  }

  .chapter {
    padding-top: calc(6vh + 50px);
  }

  .chapter--vision {
    padding-top: 50px;
  }
}