/* Clarivus360 round two, W2 Warm. Contract: docs/03_design/ART-DIRECTION-v2.md section 6.4 */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/Newsreader-roman-var.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/Newsreader-italic-var.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../assets/fonts/Inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../../assets/fonts/Inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../assets/fonts/Inter-600.woff2') format('woff2'); }

:root {
  --paper: #F6F1E8;
  --sand: #EFE7DA;          /* a deeper paper tone for one light band */
  --ink: #1B1A17;
  --coral: #E2603F;
  --sage: #8FA58B;
  --muted: #6B665C;
  --on-ink-muted: #B8B0A2;
  --hair: rgba(27, 26, 23, 0.14);
  --hair-ink: rgba(246, 241, 232, 0.16);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-h: 52px;
  --pad: 144px;
  --text-max: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap { max-width: calc(var(--text-max) + 180px); margin: 0 auto; padding: 0 90px; }

/* ---------- Type ---------- */
/* Labels (contract 4b.1): sentence case, 21px, 600, coral, 10px above the headline. Coral passes 3:1 as large bold text. */
.kicker {
  display: block; font: 600 21px/1.3 var(--sans); color: var(--coral);
  margin-bottom: 10px;
}
.kicker.on-ink { color: var(--coral); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px; line-height: 1.05; letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 72;
  max-width: 18ch;
}
.statement {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 88px; line-height: 1.04; letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 72;
  max-width: 12ch;
}
.lede {
  font-size: 21px; font-weight: 600; line-height: 1.38; color: var(--muted);
  max-width: 40ch; margin-top: 24px;
}
.lede strong, .hero-sub strong { color: var(--ink); font-weight: 600; }
.band-ink .lede strong { color: var(--paper); }
.closing {
  font-family: var(--serif); font-style: italic;
  font-size: 30px; line-height: 1.3; margin-top: 56px;
  max-width: 30ch;
}
.fine { font-size: 15px; color: var(--muted); margin-top: 20px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 11px 21px; border-radius: 999px;
  font: 600 17px/1 var(--sans); text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { background: #E8714F; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2E2C27; }
.btn-sm { height: 32px; padding: 0 16px; font-size: 14px; }
.chevron {
  font: 500 17px/1 var(--sans); text-decoration: none; color: var(--ink);
}
.chevron::after { content: " \203A"; color: var(--coral); font-size: 22px; position: relative; top: 1px; }
.chevron:hover { text-decoration: underline; text-underline-offset: 4px; }
.chevron.on-ink { color: var(--paper); }
.chevron.on-coral::after { color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(246, 241, 232, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--hair); }
.nav-inner {
  max-width: 1440px; height: 100%; margin: 0 auto; padding: 0 90px;
  display: flex; align-items: center; gap: 40px;
}
.nav-logo img { width: 120px; height: auto; }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a { font-size: 14px; text-decoration: none; color: var(--ink); opacity: .82; }
.nav-links a:hover { opacity: 1; }
.nav-menu {
  display: none; margin-left: auto; background: none; border: 0; padding: 8px 0;
  font: 500 16px var(--sans); color: var(--ink); cursor: pointer;
}
.menu {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--paper); padding: 16px 24px 32px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 24px 40px rgba(27, 26, 23, 0.08);
}
.menu[hidden] { display: none; }
.menu a:not(.btn) { font: 400 28px/1.6 var(--serif); text-decoration: none; }
.menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(92vh, 960px); min-height: 680px;
  overflow: hidden;
  display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%;
  transform-origin: 70% 40%;
  will-change: transform;
}
/* A soft paper wash over the empty left third only. It never reaches the face. */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(246,241,232,.82) 0%, rgba(246,241,232,.62) 28%, rgba(246,241,232,0) 50%);
}
.hero-copy {
  position: relative; z-index: 1;
  width: 100%; max-width: 1440px; margin: 0 auto; padding: var(--nav-h) 90px 0;
}
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 112px; line-height: 0.98; letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 72;
  max-width: 6ch;
}
.hero-sub { font-size: 21px; font-weight: 600; line-height: 1.38; max-width: 27ch; margin-top: 24px; color: var(--muted); }
.hero .kicker { margin-bottom: 14px; }

/* ---------- Bands ---------- */
.band { padding: var(--pad) 0; min-height: min(80vh, 860px); display: flex; flex-direction: column; justify-content: center; }
.band > .wrap { width: 100%; }
.band-paper { background: var(--paper); }
.band-sand { background: var(--sand); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-coral { background: var(--coral); color: var(--ink); }
.band-ink .lede { color: var(--on-ink-muted); }

/* Problem */
.problem .mark { display: block; width: 56px; height: 4px; background: var(--coral); margin-bottom: 48px; }
.problem { position: relative; overflow: hidden; }
.problem .wrap { position: relative; z-index: 1; }
.problem .wrap > * { max-width: 520px; }
.problem .statement { font-size: 72px; }
.problem .lede { max-width: 32ch; margin-top: 32px; }
/* S5_b fills the right 46 percent of the ink band, edge to edge, no radius. */
.problem-media { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; }
.problem-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Method */
.steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.steps .num {
  display: block; font: 400 128px/0.9 var(--serif); color: var(--coral);
  font-variation-settings: 'opsz' 72; letter-spacing: -0.04em; margin-bottom: 24px;
}
.steps h3 { font: 500 32px/1.15 var(--serif); margin-bottom: 12px; }
.steps p { color: var(--muted); }

/* Full-bleed statement: H2_a. Flat 30 percent ink scrim, plus a deeper wash on the bottom fifth only, below the faces. */
.bleed {
  position: relative; height: min(80vh, 860px); overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.bleed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bleed::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,26,23,.30) 0%, rgba(27,26,23,.30) 62%, rgba(27,26,23,.72) 100%);
}
.bleed-line {
  position: relative; z-index: 1; max-width: 780px; padding: 0 24px 64px; text-align: center;
  font: italic 400 40px/1.25 var(--serif); color: var(--paper);
}

/* Who it is for */
.who .display { max-width: 16ch; }
.method .display { max-width: none; }
.duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  width: 100%; margin: 40px 0 0; padding: 0;
}
.duo figure { margin: 0; }
.duo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.duo figcaption { padding: 28px 90px 0; max-width: calc(44ch + 180px); }
.duo figure:last-child figcaption { padding-left: 32px; }
.duo h3 { font: 500 30px/1.2 var(--serif); margin-bottom: 10px; }
.duo p { color: var(--muted); }

/* Worked example */
.label {
  display: flex; align-items: center; gap: 10px;
  font: 600 21px/1.3 var(--sans); color: var(--muted); margin-bottom: 10px;
}
.label .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
.example .display { max-width: 16ch; }
.timeline { list-style: none; padding: 0; margin: 56px 0 0; }
.timeline li {
  display: grid; grid-template-columns: 56px 1.1fr 1fr 1.25fr; gap: 24px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--hair);
}
.timeline li:last-child { border-bottom: 1px solid var(--hair); }
.t-num { font: 400 30px/1 var(--serif); color: var(--coral); }
.timeline h3 { font: 500 24px/1.25 var(--serif); }
.timeline p { font-size: 16px; line-height: 1.45; }
.timeline p span {
  display: block; font: 600 15px/1.2 var(--sans);
  margin-bottom: 6px;
}
.timeline .today { color: var(--muted); }
.timeline .after span { color: #B8452A; }   /* coral deepened for small text contrast */
.measures { margin-top: 72px; }
.measures h3 { font: 600 21px/1.3 var(--sans); margin-bottom: 8px; }
.measures dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.measures dl > div { display: flex; align-items: flex-end; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.measures dt { font-size: 17px; }
.measures dd { margin: 0 0 0 auto; }
.blank { display: inline-block; width: 88px; height: 1px; background: var(--ink); opacity: .5; transform: translateY(-4px); }
.example .closing { font-size: 26px; margin-top: 56px; }

/* Andrés */
.andres-grid {
  display: grid; grid-template-columns: 460px 1fr; gap: 88px; align-items: center;
}
.portrait {
  width: 460px; height: 460px; border-radius: 50%; background: var(--paper); overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.andres .display { font-size: 64px; max-width: 16ch; }
.quote { margin: 40px 0 0; }
.quote p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 40px; line-height: 1.22; letter-spacing: -0.01em;
}
.quote footer { margin-top: 20px; font: 500 16px/1.4 var(--sans); color: var(--on-ink-muted); }
.quote footer::before { content: ""; display: inline-block; width: 24px; height: 2px; background: var(--coral); margin-right: 12px; vertical-align: middle; }
.trust { margin-top: 40px; font-size: 15px; letter-spacing: .02em; color: var(--on-ink-muted); }
.andres .chevron { display: inline-block; margin-top: 28px; }

/* People stay in charge */
.charge .display { max-width: 20ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 40px; align-items: stretch; }
.charge-photo { margin: 0; }
.charge-photo img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: 38% 30%; border-radius: 28px; }
.lists { display: grid; gap: 40px; align-content: start; }
.split h3 { font: 600 21px/1.3 var(--sans); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.split h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
.split h3.people::before { background: var(--coral); }
.split ul { list-style: none; padding: 0; margin: 0; }
.split li { font: 400 24px/1.3 var(--serif); padding: 12px 0; border-bottom: 1px solid var(--hair); }

/* Answers */
.answers { min-height: 0; }
.answers-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
.answers .display { max-width: 8ch; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font: 400 26px/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 300 30px/1 var(--sans); color: var(--coral); transition: transform .3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 48px 28px 0; color: var(--muted); max-width: 52ch; }

/* Final call */
.final { text-align: left; }
.final .statement { max-width: 11ch; }
.final .lede { color: rgba(27, 26, 23, 0.74); }
.final .lede strong { color: var(--ink); }
.demo-note { margin-top: 28px; font: 600 17px/1.3 var(--sans); }

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: 96px 0 40px; }
.footer .wrap { max-width: 1440px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 24px; }
.footer-brand p { color: var(--on-ink-muted); font-size: 16px; max-width: 32ch; }
.footer h3 { font: 600 17px/1.2 var(--sans); color: var(--on-ink-muted); margin-bottom: 16px; }
.footer nav a, .footer div > a, .footer div > p:not(:first-child) { display: block; font-size: 16px; text-decoration: none; margin-bottom: 10px; }
.footer-grid > div:not(.footer-brand) p { font-size: 16px; margin-bottom: 10px; }
.footer-bottom { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--hair-ink); }
.footer-bottom p { font-size: 14px; color: var(--on-ink-muted); }
.footer-bottom a { text-decoration: none; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-in { opacity: 0; animation: settle .9s ease forwards; animation-delay: var(--d, 0ms); }
.js .hero-media img { animation: zoom 1.6s ease-out both; }
@keyframes settle { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { scale: 1.04; } to { scale: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-in { opacity: 1; transform: none; transition: none; animation: none; }
  .js .hero-media img { animation: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .wrap, .duo, .hero-copy { padding-left: 40px; padding-right: 40px; }
  .nav-links { display: none; }
  .problem .wrap > * { max-width: 50%; }
  .problem .statement { font-size: 64px; }
  .nav .btn-sm { margin-left: auto; }
  .hero-title { font-size: 96px; }
  .statement { font-size: 76px; }
  .display { font-size: 64px; }
  .andres-grid { grid-template-columns: 300px 1fr; gap: 56px; }
  .portrait { width: 300px; height: 300px; }
  .timeline li { grid-template-columns: 44px 1fr 1fr; }
  .timeline li .after { grid-column: 3; }
  .timeline li .today { grid-column: 2; }
  .timeline h3 { grid-column: 2 / 4; }
}

/* ---------- Phone ---------- */
@media (max-width: 680px) {
  :root { --pad: 88px; }
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 0 16px; gap: 16px; }
  .nav .btn-sm { display: none; }
  .nav-menu { display: block; }
  .nav-logo img { width: 112px; }

  .hero { height: auto; min-height: 0; display: block; }
  .hero-media { position: relative; height: 520px; }
  .hero-media img { object-position: 84% 30%; }
  .hero-media::after { display: none; }
  .hero-copy { padding: 40px 16px 72px; }
  .hero-title { font-size: 72px; max-width: none; }
  .hero-sub { font-size: 19px; }
  .hero-title { font-size: 72px; }

  .band { min-height: 0; }
  .problem { padding-top: 0; }
  .problem-media { position: relative; width: 100%; height: 380px; margin-bottom: 64px; }
  .problem .statement { font-size: 48px; }
  .problem .wrap > * { max-width: none; }
  .statement { font-size: 48px; }
  .display { font-size: 40px; }
  .lede { font-size: 19px; margin-top: 20px; }
  .kicker, .label, .measures h3, .split h3 { font-size: 19px; }
  .bleed { height: 560px; }
  .bleed img { object-position: 52% 30%; }
  .bleed-line { font-size: 28px; padding: 0 16px 40px; }
  .closing { font-size: 24px; margin-top: 48px; }

  .actions { flex-direction: column; align-items: stretch; gap: 20px; }
  .actions .btn { width: 100%; }
  .actions .chevron { text-align: center; }

  .steps { grid-template-columns: 1fr; gap: 48px; margin-top: 56px; }
  .steps .num { font-size: 96px; margin-bottom: 12px; }
  .steps h3 { font-size: 28px; }

  .duo { grid-template-columns: 1fr; gap: 40px; padding: 0; margin-top: 32px; }
  .duo figure:last-child figcaption, .duo figcaption { padding: 20px 16px 0; }

  .duo h3 { font-size: 26px; }

  .timeline { margin-top: 48px; }
  .timeline li { grid-template-columns: 36px 1fr; gap: 6px 12px; padding: 22px 0; }
  .timeline h3 { grid-column: 2; font-size: 22px; margin-bottom: 8px; }
  .timeline li .today, .timeline li .after { grid-column: 2; }
  .timeline li .after { margin-top: 8px; }
  .t-num { font-size: 26px; }
  .measures dl { grid-template-columns: 1fr; }
  .measures dt { font-size: 16px; }
  .blank { width: 64px; }
  .example .closing { font-size: 22px; }

  .andres-grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait { width: 300px; height: 300px; margin: 0 auto; }
  .andres .display { font-size: 40px; }
  .hero-copy { padding-left: 16px; padding-right: 16px; }
  .quote p { font-size: 28px; }

  .split { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .charge-photo img { min-height: 0; height: auto; aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .split li { font-size: 22px; }

  .answers-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq summary { font-size: 21px; padding: 22px 40px 22px 0; }

  .footer { padding: 72px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
