/* ---- Tokens ---- */
:root {
  --bg: #F7F7F5;
  --surface: #ECECE8;
  --ink: #141414;
  --muted: #6B6B67;
  --line: #DCDCD8;
  --accent: #3B4F3F;

  --font-display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-body: 'Bodoni Moda', Georgia, 'Times New Roman', serif;

  --gutter: 1.5rem;
  --max: 1200px;
}

@media (min-width: 768px) {
  :root { --gutter: 3rem; }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Grain (fixed, never on a scrolling container) ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---- Scroll reveal (used beyond the hero's single on-load moment) ---- */
.reveal-onscroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal-onscroll.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-onscroll { opacity: 1; transform: none; transition: none; }
}

/* ---- Ticker bar ---- */
.ticker-bar {
  background: var(--accent);
  color: var(--bg);
  padding: 0.65rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
}
.ticker-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg);
  flex-shrink: 0;
  animation: ticker-pulse 1.8s ease-in-out infinite;
}
@keyframes ticker-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-bar__dot { animation: none; }
}
.ticker-bar__text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Topbar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(247 247 245 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
  text-decoration: none;
}
.logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
}
.wordmark--small .logo-mark { width: 1.7rem; height: 1.7rem; }
.wordmark__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark__sub {
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.wordmark--small .wordmark__name { font-size: 1.1rem; }
.wordmark--small .wordmark__sub { font-size: 0.6rem; }
.nav-link {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- Hero (full-bleed, cinematic) ---- */
.hero {
  position: relative;
  min-height: calc(100dvh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--bg);
  text-align: center;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__media img {
      animation: hero-parallax linear;
      animation-timeline: scroll(root);
      animation-range: 0 80vh;
    }
  }
}
@keyframes hero-parallax {
  from { transform: scale(1.08) translateY(0%); }
  to { transform: scale(1.08) translateY(6%); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(20 20 20 / 0.55) 0%, rgb(20 20 20 / 0.35) 40%, rgb(20 20 20 / 0.6) 100%);
}
.hero__feed {
  position: absolute;
  top: 1.5rem;
  left: var(--gutter);
  z-index: 1;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgb(247 247 245 / 0.72);
  font-style: italic;
}
.hero__feed-text {
  display: inline-block;
  transition: opacity 0.4s ease;
}
.hero__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__headline {
  display: block;
  font-size: clamp(2.5rem, 4vw + 1.5rem, 4.75rem);
  line-height: 1.08;
  max-width: 16ch;
}
.hero__sub {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: 1.2rem;
  color: rgb(247 247 245 / 0.85);
  line-height: 1.6;
}
.hero__cta { margin-top: 2.5rem; }

.hero__scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(247 247 245 / 0.7);
  font-style: italic;
}

/* single deliberate on-load moment */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}
@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 24px -14px rgb(30 34 38 / 0.5);
}
.btn--on-accent {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--bg);
}
.btn--on-accent:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---- Sections ---- */
.section { padding: 6rem 0; border-top: 1px solid var(--line); }
.section--tint { background: var(--surface); }
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section__inner--narrow { max-width: 760px; }
.section__title {
  font-size: clamp(1.75rem, 2vw + 1.25rem, 2.5rem);
  line-height: 1.15;
  margin-bottom: 3rem;
}

/* ---- Statement blocks (Para quem é / dark positioning block) ---- */
.section--statement { padding: 5.5rem 0; }
.section--accent {
  background: var(--accent);
  color: var(--bg);
  border-top-color: var(--accent);
}
.section--dark {
  position: relative;
  color: var(--bg);
  border-top-color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/images/skyline-dusk.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05);
}
.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgb(30 34 38 / 0.94) 0%, rgb(30 34 38 / 0.86) 45%, rgb(30 34 38 / 0.7) 100%);
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .section--dark::before { background-attachment: fixed; }
}
.statement__headline {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: clamp(1.875rem, 2.4vw + 1.25rem, 3.25rem);
  line-height: 1.2;
  max-width: 22ch;
  margin: 0;
}
.statement__headline--dark,
.statement__headline--accent { color: var(--bg); }
.statement__sub {
  margin-top: 1.5rem;
  max-width: 48ch;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.6;
}
.statement__sub--dark { color: rgb(242 238 227 / 0.7); }
.statement__sub--accent { color: rgb(242 238 227 / 0.85); }

/* ---- FAQ ---- */
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding-bottom: 1.5rem;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- What we do: divided list ---- */
.list-divided li {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem 3rem;
}
.list-divided li:last-child { border-bottom: 1px solid var(--line); }
.list-divided h3 {
  font-size: 1.375rem;
  font-weight: 600;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.list-divided p {
  color: var(--muted);
  max-width: 46ch;
}
@media (hover: hover) {
  .list-divided li:hover h3 { transform: translateX(0.5rem); }
}

@media (max-width: 767px) {
  .list-divided li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---- How we work: steps ---- */
.steps__item {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.5rem;
  align-items: center;
}
.steps__item:last-child { border-bottom: 1px solid var(--line); }
.steps__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--line);
  transition: color 0.4s ease;
}
.steps__item:hover .steps__num { color: var(--muted); }
.steps__body h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.steps__body p { color: var(--muted); max-width: 52ch; }

@media (max-width: 767px) {
  .steps__item { grid-template-columns: 1fr; gap: 0.5rem; }
  .steps__num { font-size: 2rem; }
}

/* ---- Split media (Como isto funciona) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 0.9fr 1fr;
    gap: 5rem;
  }
  .split--media-right { grid-template-columns: 1fr 0.9fr; }
  .split--media-right .split__media { order: 2; }
}
.split__media {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.split__eyebrow-free h2 { margin-bottom: 1.25rem; }
.split__text p + p { margin-top: 1.1rem; }

/* ---- Story banner (cinematic image + overlaid caption) ---- */
.story-banner {
  position: relative;
  height: 62vh;
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
}
.story-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.story-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(20 20 20 / 0.15) 0%, rgb(20 20 20 / 0.55) 100%);
}
.story-banner__caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 var(--gutter) 3rem;
  text-align: center;
}
.story-banner__caption h2 {
  color: var(--bg);
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 18ch;
}
.story-banner--cta .story-banner__caption {
  flex-direction: column;
  gap: 1.75rem;
}

/* ---- Story lines (poetic repeated-line copy) ---- */
.story-lines { padding: 6rem 0; }
.story-lines__inner { max-width: 640px; }
.story-lines h2 { margin-bottom: 2rem; }
.story-lines p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw + 1rem, 1.65rem);
  line-height: 1.5;
  color: var(--muted);
}
.story-lines p:last-child { color: var(--ink); margin-top: 0.75rem; }

/* ---- Prose ---- */
.prose-mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6rem;
  line-height: 1;
  color: var(--line);
  margin-bottom: -1.75rem;
}
.prose {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 65ch;
}

/* ---- Contact ---- */
.section--contact { background: var(--surface); }
.form { margin-top: 2.5rem; display: grid; gap: 1.25rem; max-width: 480px; }
.form__row { display: grid; gap: 0.4rem; }
.form__row label {
  font-size: 0.9rem;
  font-weight: 500;
}
.form__row input,
.form__row textarea {
  font: inherit;
  font-size: 1.05rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}
.form__row input::placeholder,
.form__row textarea::placeholder { color: var(--muted); }
.form__row input:focus,
.form__row textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
.form button { margin-top: 0.5rem; width: fit-content; }
.form__hp { position: absolute; left: -9999px; }

.contact__direct {
  margin-top: 2.5rem;
  color: var(--muted);
}
.contact__direct a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}
