/* Sentrada · single-page sales site
   Palette
     Charcoal     #1B1B1B
     Lisbon Clay  #C4724E
     Warm Stone   #F2E9E1
*/

:root {
  --charcoal: #1B1B1B;
  --charcoal-soft: #232323;
  --clay: #C4724E;
  --clay-deep: #A55E3D;
  --stone: #F2E9E1;
  --stone-dim: rgba(242, 233, 225, 0.62);
  --stone-faint: rgba(242, 233, 225, 0.14);
  --hairline: rgba(242, 233, 225, 0.10);

  --display: "Fraunces", "Times New Roman", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 56px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--charcoal);
  color: var(--stone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--clay); color: var(--charcoal); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
  /* Soft gradient overlay at the top of the page so the wordmark
     reads cleanly over the hero piece without a heavy bar. */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), padding .25s var(--ease), backdrop-filter .35s var(--ease);
}
.topbar.scrolled {
  background: var(--charcoal);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: var(--hairline);
}
.wordmark img {
  height: 30px;
  width: auto;
  display: block;
  mix-blend-mode: lighten;
}
.topbar-cta {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--clay);
  letter-spacing: 0.01em;
  background: transparent;
  border: 1.5px solid var(--clay);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.topbar-cta:hover {
  background: var(--clay);
  color: var(--charcoal);
  border-color: var(--clay);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  font-feature-settings: "ss01" on, "ss02" on;
}
h1.display {
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.05;
  margin: 0;
  color: var(--stone);
}
.accent { color: var(--clay); }

.kicker {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--clay);
  margin: 0 0 18px 0;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--stone);
  max-width: 56ch;
}

.pronounce {
  font-family: var(--display);
  color: var(--stone-dim);
  font-size: 15px;
  margin-top: 6px;
}
.pronounce .brand-name { color: var(--stone); }
.pronounce .phon { font-style: italic; }

/* ---------- CTA ---------- */
.cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.cta.primary {
  background: transparent;
  color: var(--clay);
  border-color: var(--clay);
}
.cta.primary:hover {
  background: var(--clay);
  color: var(--charcoal);
  border-color: var(--clay);
  transform: translateY(-1px);
}
.cta.large { padding: 18px 34px; font-size: 16px; }

/* Trailing arrow on the in-flow CTAs. Slides on hover. */
.cta::after {
  content: "\2192"; /* → */
  display: inline-block;
  margin-left: 8px;
  transform: translateX(0);
  transition: transform .3s var(--ease);
}
.cta:hover::after { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .cta::after { transition: none; }
  .cta:hover::after { transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 0;
  padding-bottom: clamp(64px, 9vw, 120px);
}
.hero-figure {
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--charcoal);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-figure img {
  width: 100%;
  max-width: 1600px;
  height: auto;
  max-height: 88vh;
  display: block;
  object-fit: contain;
}
.hero-copy {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) var(--gutter) 0;
}
.hero-copy h1 { max-width: 18ch; }
.hero-copy .lede { margin-top: 22px; }

/* ---------- Section base ---------- */
section {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section-intro,
.prose {
  max-width: var(--max);
  margin: 0 auto;
}
.section-intro {
  padding-bottom: clamp(40px, 5vw, 68px);
}

/* Centre the formats-section intro to match the proof/track prose */
.formats .section-intro {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-lede {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  margin: 0;
  max-width: 36ch;
  color: var(--stone);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- Formats / Gallery ---------- */
.formats {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--hairline);
}
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 10vw, 140px);
}
.piece {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  margin: 0;
}
.piece:nth-child(even) { flex-direction: row-reverse; }
.piece-img,
.piece > figcaption {
  flex: 1;
  min-width: 0;
}
.piece-img {
  background: var(--charcoal-soft);
  border: 1px solid var(--hairline);
  padding: clamp(18px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    transform .6s var(--ease),
    border-color .4s var(--ease);
}
.piece-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  transform: scale(1);
  transition: transform 1.4s var(--ease);
}
.piece:hover .piece-img {
  border-color: rgba(242, 233, 225, 0.22);
  transform: translateY(-3px);
}
.piece:hover .piece-img img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) {
  .piece-img,
  .piece-img img {
    transition: none !important;
    transform: none !important;
  }
}
.piece > figcaption { padding: 0 clamp(0px, 1vw, 8px); }
.piece-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.012em;
  margin: 0 0 16px;
  color: var(--stone);
}
.piece-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--stone-dim);
  margin: 0;
  max-width: 42ch;
}
.companion {
  max-width: 80ch;
  margin: clamp(40px, 5vw, 64px) auto 0;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--stone-dim);
  text-align: center;
  letter-spacing: 0.01em;
  border-top: none;
  padding-top: 0;
}
.companion::before {
  content: "+";
  display: inline-block;
  margin-right: 10px;
  color: var(--clay);
  font-family: var(--display);
  font-style: italic;
}

/* ---------- Bridge (between track and offer) ---------- */
.bridge {
  padding: clamp(72px, 10vw, 130px) var(--gutter);
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.bridge-statement {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--stone);
  margin: 0 auto;
  max-width: 36ch;
}
.bridge-pivot { color: var(--clay); }

/* ---------- Hook (the dream-accounts moment) ---------- */
.hook {
  padding: clamp(120px, 18vw, 240px) var(--gutter);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.hook-statement {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(34px, 6.4vw, 92px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--stone);
  margin: 0 auto;
  max-width: 22ch;
}
.hook-line { display: block; }
.hook-line + .hook-line {
  margin-top: 0.32em;
  color: var(--clay);
}

/* ---------- Proof ---------- */
.proof {
  padding-top: clamp(80px, 10vw, 160px);
  padding-bottom: clamp(80px, 10vw, 160px);
}
.prose p {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--stone);
  max-width: 34ch;
  margin: 0 0 28px;
}
.prose p em { font-style: italic; color: var(--clay); font-weight: 400; }
.prose .cta-row { margin-top: 36px; }

/* Centre the prose blocks in proof and track on wide screens
   so the column lives in the middle of the viewport. */
.proof .prose,
.track .prose {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Closing prose in the proof section (after the pull quote): centred
   to rhyme with the pull quote that precedes it. */
.proof .prose-close { text-align: center; }
.proof .prose-close p {
  margin-left: auto;
  margin-right: auto;
  max-width: 38ch;
}
.proof .prose-close .cta-row { justify-content: center; }

/* Drop cap on the proof's lead paragraph */
.proof .prose-lede::first-letter {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-size: 4.6em;
  float: left;
  line-height: 0.82;
  margin: 0.06em 0.14em -0.04em -0.04em;
  color: var(--clay);
}

/* Pull quote */
.pullquote {
  margin: clamp(56px, 8vw, 96px) auto;
  max-width: 960px;
  padding: 0 clamp(8px, 4vw, 64px);
  text-align: center;
  position: relative;
}
.pullquote p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--stone);
  margin: 0 auto;
  max-width: 22ch;
  position: relative;
  z-index: 1;
}
.pullquote cite {
  display: block;
  margin-top: 22px;
  font-family: var(--body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-dim);
}

/* ---------- Track record ---------- */
.track {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--hairline);
}
.track .prose { margin-bottom: clamp(32px, 4vw, 56px); }
.logo-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 3.6vw, 48px) clamp(24px, 3.6vw, 64px);
  background: var(--stone);
  border-radius: 4px;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.50),
    0 6px 18px rgba(0, 0, 0, 0.28);
  position: relative;
}
.logo-grid::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(27, 27, 27, 0.10);
  pointer-events: none;
}
.logo-grid img {
  display: block;
  width: 100%;
  height: auto;
}
.logos-caption {
  max-width: var(--max);
  margin: 24px auto 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-dim);
  text-align: center;
}

/* ---------- Founding pilot offer (printed invitation) ---------- */
.offer {
  padding-top: clamp(96px, 14vw, 200px);
  padding-bottom: clamp(48px, 6vw, 88px);
  /* No top border. The invitation floats on charcoal. */
}
.invitation {
  max-width: 760px;
  margin: 0 auto;
  background: var(--stone);
  color: var(--charcoal);
  padding: clamp(44px, 6vw, 96px) clamp(28px, 5vw, 80px);
  position: relative;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.30);
  text-align: center;
}
/* Inner deckle border, like a printed card */
.invitation::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(27, 27, 27, 0.16);
  pointer-events: none;
}
.invitation-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: rgba(27, 27, 27, 0.65);
  margin-bottom: 4px;
}
.invitation-mark { display: inline-block; flex-shrink: 0; }
.invitation-rule {
  border: 0;
  border-top: 1px solid rgba(27, 27, 27, 0.22);
  width: 56px;
  margin: clamp(20px, 3vw, 32px) auto;
}
.invitation-headline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 auto;
  max-width: 22ch;
  color: var(--charcoal);
}
.invitation-price {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 22px);
  letter-spacing: 0.01em;
  margin: 18px 0 0;
  color: var(--charcoal);
}
.invitation-price-em {
  display: block;
  margin-top: 4px;
  font-style: italic;
  font-weight: 400;
  color: var(--clay-deep);
}
.invitation-body p {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(27, 27, 27, 0.82);
  margin: 0 auto 14px;
  max-width: 52ch;
  text-align: center;
}
.invitation-body p:last-child { margin-bottom: 0; }
.invitation-cta { margin-top: clamp(28px, 4vw, 40px); }
.invitation-cta .cta.inline-cta {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
  padding: 16px 32px;
  font-size: 15px;
}
.invitation-cta .cta.inline-cta:hover {
  background: var(--charcoal);
  color: var(--stone);
  border-color: var(--charcoal);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(36px, 5vw, 56px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-mark img {
  height: 22px;
  width: auto;
  opacity: 0.92;
  mix-blend-mode: lighten;
  display: block;
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--stone-dim);
  font-size: 14px;
}
.footer-meta a { color: var(--stone); text-decoration: none; }
.footer-meta a:hover { color: var(--clay); }
.footer-meta .dot { color: var(--stone-faint); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Parents whose children stagger: parent itself does not animate. */
.piece.reveal,
.hook-statement.reveal,
.pullquote.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Gallery rows: image reveals, caption follows. */
.piece .piece-img,
.piece > figcaption {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .9s var(--ease),
    transform .9s var(--ease);
}
.piece.is-visible .piece-img {
  opacity: 1;
  transform: none;
  transition-delay: 0ms;
}
.piece.is-visible > figcaption {
  opacity: 1;
  transform: none;
  transition-delay: 240ms;
}

/* Hook: two lines reveal in sequence. */
.hook-statement .hook-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}
.hook-statement.is-visible .hook-line:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0ms;
}
.hook-statement.is-visible .hook-line:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 320ms;
}

/* Pull quote: text rises in two beats. */
.pullquote p {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}
.pullquote p + p { margin-top: 0.4em; }
.pullquote-pivot { color: var(--clay); }
.pullquote.is-visible p {
  opacity: 1;
  transform: none;
}
.pullquote.is-visible p:nth-child(2) {
  transition-delay: 280ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .piece .piece-img,
  .piece > figcaption,
  .hook-statement .hook-line,
  .pullquote p {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  display: none;
}
@media (max-width: 880px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 70;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--body);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.01em;
    color: var(--charcoal);
    background: var(--clay);
    border-radius: 999px;
    padding: 16px 22px;
    box-shadow:
      0 14px 28px rgba(0, 0, 0, 0.55),
      0 4px 10px rgba(0, 0, 0, 0.35);
    transition: transform .35s var(--ease), opacity .25s var(--ease);
    will-change: transform;
  }
  .mobile-cta.is-hidden {
    transform: translateY(160%);
    opacity: 0;
    pointer-events: none;
  }
  body { padding-bottom: 88px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
  .gallery { gap: 56px; }
  .piece,
  .piece:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .piece > figcaption { padding: 0; }
  .piece-img img { max-height: 460px; }
  .topbar { padding: 12px var(--gutter); }
  .topbar-cta { display: none; }
  .hero-copy { padding-top: 36px; }
  .hero-copy h1 { font-size: 38px; }
  .cta-row { width: 100%; }
  .cta { width: 100%; padding: 16px 22px; }
  .invitation-cta .cta.inline-cta { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; }

  .pullquote p { font-size: clamp(28px, 7vw, 40px); max-width: 18ch; }
  .proof .prose-lede::first-letter { font-size: 3.6em; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .invitation { padding: 36px 22px; }
  .invitation::before { inset: 10px; }
}
