@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --white: #fff;
  --canvas: #f7f7f7;
  --line: #e9e9e9;
  --graphite: #171717;
  --black: #0a0a0a;
  --muted: #5c5c5c;
  --muted-dark: #a3a3a3;
  --action: #d9360b;
  --action-hover: #bf2f09;

  --font: "Hanken Grotesk", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5rem, 11vw, 9rem);
  --bar: 3.75rem;

  /* fluid type */
  --t-display: clamp(2.3rem, min(0.9rem + 3.9vw, 10.5vh), 4.75rem);
  --t-title: clamp(1.875rem, 1.05rem + 3vw, 3.25rem);
  --t-statement: clamp(1.25rem, 1rem + 1.1vw, 1.875rem);
  --t-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-small: 0.9375rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--graphite);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--graphite); color: var(--white); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--graphite); color: var(--white); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { top: 0.75rem; }
.wrap { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ── top bar ───────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 50; height: var(--bar);
  display: flex; align-items: center; gap: 1rem; padding-inline: var(--gutter);
  background: var(--white); border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar-logo img { height: 1.25rem; width: auto; }
.bar-now { margin-left: auto; font-size: var(--t-small); color: var(--muted); display: none; }
.menu { margin-left: auto; position: relative; }
@media (min-width: 900px) { .bar-now { display: block; } .bar-now + .menu { margin-left: 0; } }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding-inline: 0.25rem; font-size: var(--t-small); font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu-icon { width: 1.1rem; height: 0.55rem; border-block: 1.5px solid currentColor; }
.menu nav { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 17rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem; }
.menu nav a { display: flex; gap: 1rem; padding: 0.7rem 0.75rem; text-decoration: none; border-radius: 6px; font-size: var(--t-small); }
.menu nav a:hover, .menu nav a[aria-current="true"] { background: var(--canvas); }

/* ── buttons: the only place the action colour lives ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.75rem; background: var(--action); color: var(--white);
  font: 600 1rem/1 var(--font); text-decoration: none; border-radius: 6px; border: 0;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--action-hover); }
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 2.5rem; padding: 0 1.1rem; font-size: var(--t-small); }

/* ── type ──────────────────────────────────────── */
.title { font-size: var(--t-title); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; max-width: 18em; }
.statement { font-size: var(--t-statement); line-height: 1.4; letter-spacing: -0.015em; text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); text-wrap: balance; }
.prose-p { color: var(--muted); text-wrap: pretty; }
.pull { font-size: var(--t-statement); line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; max-width: 24em; text-wrap: balance; }
.pull-2 span { display: block; }
.pull-2 span + span { color: var(--muted); }
.marker { font-size: var(--t-small); color: var(--muted); font-weight: 500; }
.marker span { color: var(--graphite); font-variant-numeric: tabular-nums; margin-right: 0.5rem; }

/* ── hero ──────────────────────────────────────── */
.hero { padding-top: clamp(2rem, 7vh, 5rem); text-align: center; display: flex; flex-direction: column; height: calc(100vh - var(--bar)); height: calc(100svh - var(--bar)); overflow: hidden; }
@media (max-height: 520px) { .hero { height: auto; overflow: visible; } }
.masthead { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: var(--t-small); color: var(--muted); padding-bottom: clamp(1.5rem, 5vh, 4.5rem); }
.masthead strong { color: var(--graphite); font-weight: 600; letter-spacing: 0.04em; flex-basis: 100%; }
@media (min-width: 900px) { .masthead { justify-content: space-between; text-align: left; } .masthead strong { flex-basis: auto; margin-right: auto; } }
.display { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; margin-inline: auto; }
.br-d { display: none; }
.hero .lead { max-width: 32em; margin: clamp(1.25rem, 3vw, 2rem) auto 0; font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3rem); color: #555; }
.hero-line { font-size: var(--t-small); letter-spacing: 0; margin-top: 0.9rem; padding-bottom: clamp(1.5rem, 4.5vh, 4rem); font-weight: 600; letter-spacing: -0.01em; }
.hero-photo, .band { position: relative; overflow: hidden; background: var(--graphite); }
.hero-photo { flex: 1 1 0; min-height: 8rem; }
.hero-photo img, .band img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.hero-photo img { object-position: 72% 50%; }
@media (min-width: 900px) {
  .display { max-width: none; }
  .br-d { display: inline; }
  .hero .lead { max-width: 40em; }
}

/* ── sections ──────────────────────────────────── */
.sec { padding-block: var(--section); }
.sec-soft { background: var(--canvas); }
.split { display: grid; gap: 1.5rem; }
.split-body { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-content: start; min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(10rem, 1fr) 3fr; gap: 3rem; }
  .split > .marker { position: sticky; top: calc(var(--bar) + 2rem); align-self: start; }
}

/* ── editorial sections (full-width compositions) ── */
.display-2 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; margin-top: clamp(1.25rem, 3vw, 2rem); }
#oportunidade .marker, #proximos-passos .marker { position: static; }

/* opportunity: centred head, left text + photo */
#oportunidade .marker, #oportunidade .display-2 { text-align: center; margin-inline: auto; }
#oportunidade .display-2 { max-width: 16em; }
.opp { display: grid; gap: 2rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); text-align: left; }
.opp-text { display: grid; gap: 1.25rem; align-content: start; }
.opp .statement { max-width: 22em; font-size: var(--t-lead); line-height: 1.45; letter-spacing: -0.01em; }
.opp .prose-p { max-width: 28em; color: #4a4a4a; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.65; }
.opp-photo { overflow: hidden; background: var(--graphite); aspect-ratio: 735 / 412; }
.opp-photo img { width: 100%; height: 100%; object-fit: cover; }
.big-pull { margin-top: clamp(2.5rem, 6vw, 5rem); padding-top: clamp(1.75rem, 4vw, 3rem); border-top: 1px solid #d6d6d6; font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem); line-height: 1.22; letter-spacing: -0.03em; font-weight: 600; color: #767676; max-width: 26em; margin-inline: auto; text-align: center; }
.big-pull strong { color: var(--graphite); font-weight: 600; }
@media (min-width: 900px) { .opp { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }

/* deliverables */
.list { display: grid; margin-top: clamp(0.5rem, 2vw, 1.5rem); }
.row { display: grid; gap: 0.5rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; display: flex; gap: 1rem; text-wrap: balance; }
.row h3 span { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; min-width: 1.75rem; }
.row p { color: var(--muted); max-width: 36em; padding-left: 2.75rem; }
@media (min-width: 900px) { .row { grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: baseline; } .row p { padding-left: 0; } }

/* flow: four distinct steps */
.flow { display: grid; gap: 0; counter-reset: s; margin-top: clamp(0.5rem, 2vw, 1.5rem); }
.flow li { counter-increment: s; display: grid; gap: 0.35rem; align-content: start; padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--graphite); }
.flow li::before { content: "0" counter(s); font-size: var(--t-title); line-height: 1; letter-spacing: -0.04em; font-weight: 600; color: #7a7a7a; font-variant-numeric: tabular-nums; margin-bottom: 1rem; }
.flow strong { font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.02em; }
.flow span { color: #4a4a4a; max-width: 24em; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

.band { height: clamp(18rem, 50vw, 32rem); }
.band img { object-position: 100% 45%; transform: scale(1.7); transform-origin: 92% 40%; }

/* ── investment (graphite) ─────────────────────── */
.sec-dark { background: var(--graphite); color: var(--white); }
.sec-dark .marker, .sec-dark .price-label, .sec-dark .price-note, .sec-dark .term span { color: var(--muted-dark); }
.sec-dark .marker span { color: var(--white); }
.price-block { display: grid; gap: 0.25rem; margin-top: clamp(0.5rem, 2vw, 1.5rem); }
.price-label { font-size: var(--t-small); }
.price { font-size: clamp(3rem, 1.2rem + 9vw, 8rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-note { max-width: 30em; margin-top: 0.5rem; }
.terms { display: grid; gap: 2.5rem; margin-top: clamp(1rem, 4vw, 3rem); }
.term { display: grid; gap: 1.25rem; align-content: start; }
.term h3 { font-size: var(--t-small); font-weight: 500; color: var(--muted-dark); }
.term p { display: grid; gap: 0.2rem; max-width: 24em; }
.term strong { font-size: var(--t-statement); font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
@media (min-width: 900px) { .terms { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ── infrastructure: bento ─────────────────────── */
.bento { display: grid; gap: 0.75rem; margin-top: clamp(0.5rem, 2vw, 1.5rem); }
.tile { background: var(--canvas); border-radius: 12px; padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1rem; align-content: start; }
.tile-sub { color: var(--muted); }
.tile-a { align-content: space-between; gap: 1.5rem; }
.tile-a .statement { font-size: var(--t-lead); max-width: none; }
.tile-ref { background: var(--graphite); color: var(--white); gap: 1.25rem; }
.tile-ref h3 { font-size: var(--t-small); font-weight: 500; color: var(--muted-dark); }
.ref-price { display: grid; gap: 0.1rem; }
.ref-price span { color: var(--muted-dark); font-size: var(--t-small); }
.ref-price strong { white-space: nowrap; font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums; }
.ref-note { font-size: var(--t-small); color: var(--muted-dark); }
.tile-out { font-size: var(--t-body); line-height: 1.5; font-weight: 500; }
.tile-later { color: var(--muted); }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: 1rem; }
  .tile { padding-block: 1.5rem; }
  .tile-a { grid-column: 1 / 8; padding-block: 1.75rem; }
  .tile-ref { grid-column: 8 / 13; grid-row: 1 / 3; align-content: start; gap: 1.75rem; }
  .ref-note { margin-top: auto; }
  .tile-out { grid-column: 1 / 8; }
  .tile-later { grid-column: 1 / 13; }
}

/* ── next steps ────────────────────────────────── */
.next-top { display: grid; gap: 1.75rem; margin-top: 0; }
.next-top .statement { max-width: 24em; }
.steps { display: grid; counter-reset: p; margin-top: clamp(2.5rem, 6vw, 5rem); }
.steps li { counter-increment: p; display: grid; align-content: start; gap: 0.5rem; padding-block: 1.5rem; border-top: 1px solid #d6d6d6; }
.steps li::before { content: "0" counter(p); font-size: var(--t-title); line-height: 1; letter-spacing: -0.04em; font-weight: 600; color: #7a7a7a; font-variant-numeric: tabular-nums; }
.steps li span { font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.02em; max-width: 12em; text-wrap: balance; }
.next-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; margin-top: clamp(2rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--graphite); }
.next-foot .prose-p { max-width: 26em; }
@media (min-width: 900px) {
  .next-top { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: end; }
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 2rem; }
  .steps li { padding-block: 1.75rem 0.5rem; gap: 2.5rem; }
}

/* ── contact: compact institutional signature ──── */
.contact { background: var(--black); color: var(--white); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.contact-grid { display: grid; gap: 2.25rem; }
.contact-main { display: grid; gap: 1.5rem; align-content: start; }
.contact .marker { color: var(--muted-dark); }
.contact .marker span { color: var(--white); }
.contact-title { font-size: var(--t-title); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; }
.person { display: flex; align-items: center; gap: 1.1rem; margin-top: 0.5rem; }
.person img { width: clamp(4.5rem, 3rem + 5vw, 6.5rem); aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 22%; flex: none; }
.who { display: grid; font-size: var(--t-lead); line-height: 1.35; }
.who strong { font-weight: 600; letter-spacing: -0.02em; }
.who span { color: var(--muted-dark); font-size: var(--t-small); }
.links { display: grid; gap: 1.25rem; align-content: end; }
.links li { display: grid; gap: 0.1rem; }
.links span { font-size: var(--t-small); color: var(--muted-dark); }
.links a { font-size: var(--t-lead); font-weight: 500; letter-spacing: -0.015em; text-decoration: none; width: fit-content; padding-block: 0.2rem; overflow-wrap: anywhere; }
.links a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.sign { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; color: var(--muted-dark); font-size: var(--t-small); padding-top: 1.5rem; border-top: 1px solid #262626; }
.sign img { height: 1.1rem; width: auto; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 3rem 4rem; align-items: end; }
  .sign { grid-column: 1 / -1; margin-top: 1rem; }
}

/* ── motion: discreet, gated ───────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-photo img { transform: scale(1.06); transition: transform 1.6s var(--ease); }
  .js .hero-photo.in img { transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* balanced line breaks everywhere: no orphans or cut-off last lines */
p, li, dd, h1, h2, h3, .statement, .prose-p, .tile p, .lead, .flow span, .steps li span, .term p, .row p, .pull, .big-pull, .next-foot p, .sign span { text-wrap: balance; }

/* ── mobile: centred headings and closing blocks ── */
@media (max-width: 899px) {
  .marker, .title, .display-2, .contact-title { text-align: center; margin-inline: auto; }
  .opp-text, .opp .statement, .opp .prose-p { text-align: center; margin-inline: auto; }
  .price-block { text-align: center; justify-items: center; }
  .next-top, .next-top .statement { text-align: center; margin-inline: auto; }
  .steps li { text-align: center; justify-items: center; }
  .steps li span { max-width: none; }
  .next-foot { justify-content: center; text-align: center; flex-direction: column; }
  .next-foot .prose-p { margin-inline: auto; }
  .contact-main { justify-items: center; text-align: center; }
  .person { flex-direction: column; text-align: center; }
  .links { justify-items: center; text-align: center; }
  .sign { flex-direction: column; justify-content: center; text-align: center; }
}

@media (max-width: 899px) { .contact-title { display: none; } }
