/* W1 Dark Cinematic. Clarivus360 round two. Contract: docs/03_design/ART-DIRECTION-v2.md section 6.3 */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../../assets/fonts/Inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../../assets/fonts/Inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../../assets/fonts/Inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("../../assets/fonts/InterTight-500.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("../../assets/fonts/InterTight-600.woff2") format("woff2"); }

:root {
  --bg: #050B1F;
  --surface: #0B183D;
  --text: #FFFFFF;
  --muted: #AAB4C8;
  --teal: #1EA5A6;
  --teal-soft: rgb(30 165 166 / 45%);
  --ink: #0B183D;
  --ink-muted: #4A5670;
  --light-circle: #EEF2F6;

  --font-display: "Inter Tight", "Inter", Arial, sans-serif;
  --font-text: "Inter", Arial, sans-serif;

  --nav-h: 52px;
  --gutter: 90px;
  --pad: 144px;
  --content: 1260px;

  --h-hero: 96px;
  --h-1: 64px;
  --support: 21px;
  --body: 19px;
}
@media (max-width: 1279px) { :root { --gutter: 48px; } }
@media (max-width: 1023px) { :root { --gutter: 32px; --pad: 112px; --h-hero: 72px; --h-1: 52px; } }
@media (max-width: 639px) { :root { --gutter: 20px; --pad: 88px; --h-hero: 48px; --h-1: 40px; --support: 19px; --body: 17px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-text); font-size: var(--body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--teal); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.headline, .hero-title { font-family: var(--font-display); font-weight: 600; line-height: 1.05; text-wrap: balance; }
.headline { font-size: var(--h-1); letter-spacing: -0.01em; max-width: 18ch; }
.hero-title { font-size: var(--h-hero); letter-spacing: -0.015em; line-height: 1.04; }
/* Label: sentence case, 21px, 10px above the headline. Teal text only at 24px+, so labels on dark are muted. */
.label { font-size: 21px; font-weight: 600; line-height: 1.2; color: var(--muted); margin-bottom: 10px; }
.label-ink { color: #117A7B; }
/* Support copy: one block per screen, muted with the key phrase in white. */
.support { font-size: var(--support); font-weight: 600; line-height: 1.38; color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.support em { font-style: normal; color: #FFFFFF; }
.support-ink { color: var(--ink-muted); }
.support-ink em { color: var(--ink); }
.closing { margin-top: 72px; }

/* Buttons and chevron links */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 11px 21px; border-radius: 999px; font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.btn-primary { background: var(--teal); color: var(--bg); }
.btn-primary:hover { background: #FFFFFF; color: var(--bg); box-shadow: 0 0 32px rgb(30 165 166 / 35%); }
.btn-small { height: 32px; padding: 0 16px; font-size: 14px; }
.chev { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 500; color: #FFFFFF; text-decoration: none; }
.chev::after { content: "›"; color: var(--teal); font-size: 24px; line-height: 1; transform: translateY(-1px); transition: transform 200ms ease; }
.chev:hover::after { transform: translate(4px, -1px); }
.chev-ink { color: var(--ink); }
.chev-ink::after { color: #117A7B; }
.actions { display: flex; align-items: center; gap: 32px; margin-top: 40px; }
.note { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); background: rgb(5 11 31 / 72%); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color 200ms ease, background-color 200ms ease; }
.nav.is-scrolled { border-bottom-color: rgb(30 165 166 / 30%); background: rgb(5 11 31 / 78%); }
.nav-inner { height: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); 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; color: #D5DBE6; text-decoration: none; transition: color 160ms ease; }
.nav-links a:hover { color: #FFFFFF; }
.nav-menu { display: none; margin-left: auto; background: none; border: 0; padding: 8px 0; font-size: 15px; font-weight: 500; cursor: pointer; }
.menu { padding: 8px var(--gutter) 28px; background: rgb(5 11 31 / 96%); display: grid; gap: 4px; }
.menu[hidden] { display: none; }
.menu a:not(.btn) { padding: 14px 0; font-size: 20px; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.menu .btn { margin-top: 20px; }

/* Hero. Heights are capped so very tall screenshot windows stay sane. */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 940px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; animation: settle-photo 1.6s ease-out both; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-scrim { position: absolute; inset: auto 0 0; height: 62%; z-index: -1; background: linear-gradient(180deg, rgb(5 11 31 / 0%) 0%, rgb(5 11 31 / 40%) 38%, rgb(5 11 31 / 40%) 90%, var(--bg) 100%); }
.hero-copy { position: relative; width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 72px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-copy .hero-title, .hero-copy .support { text-shadow: 0 2px 24px rgb(5 11 31 / 60%); }
.hero-support { color: #D5DBE6; margin-top: 24px; max-width: 40ch; }
.hero-copy .note { color: #D5DBE6; text-shadow: 0 1px 12px rgb(5 11 31 / 60%); }
.glow { position: absolute; z-index: -1; left: 50%; top: 40%; width: 1100px; height: 560px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgb(30 165 166 / 12%), rgb(30 165 166 / 0%)); pointer-events: none; }

@keyframes settle-photo { from { transform: scale(1.04); } to { transform: none; } }
@keyframes settle-text { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.settle { animation: settle-text 900ms ease-out both; }
.settle-2 { animation-delay: 120ms; }
.settle-3 { animation-delay: 240ms; }

/* Pause button: 36px round, bottom right, shown only while a real clip exists */
.hero-pause { position: absolute; right: var(--gutter); bottom: 32px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: rgb(255 255 255 / 18%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #FFFFFF; cursor: pointer; }
.hero-pause[hidden] { display: none; }
.hero-pause:hover { background: rgb(255 255 255 / 30%); }
.hero-pause svg { width: 14px; height: 14px; fill: currentColor; }
.hero-pause .i-play, .hero-pause.is-paused .i-pause { display: none; }
.hero-pause.is-paused .i-play { display: block; }

/* Full-bleed problem moment */
.bleed { position: relative; height: 88vh; min-height: 600px; max-height: 900px; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.bleed-media { position: absolute; inset: 0; z-index: -2; }
.bleed-media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 50% 25%; will-change: transform; }
.bleed-scrim { position: absolute; inset: auto 0 0; height: 55%; z-index: -1; background: linear-gradient(180deg, rgb(5 11 31 / 0%), rgb(5 11 31 / 55%) 55%, var(--bg)); }
.bleed-copy { padding-bottom: 40px; }
.bleed-copy .headline { max-width: 12ch; text-shadow: 0 2px 24px rgb(5 11 31 / 50%); }
.bleed-after { padding-top: 16px; padding-bottom: var(--pad); }

/* Bands */
.band { padding: var(--pad) 0; min-height: min(80vh, 820px); display: flex; align-items: center; }
.band > .container { width: 100%; }
.band-surface { background: var(--surface); }
.band-white { background: #FFFFFF; color: var(--ink); }

/* Method */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; margin-top: 72px; counter-reset: step; }
.numeral { display: block; font-family: var(--font-display); font-weight: 500; font-size: 168px; line-height: 0.9; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--teal); text-shadow: 0 0 40px rgb(30 165 166 / 25%); }
.step-name { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--teal-soft); font-size: var(--body); font-weight: 600; color: #FFFFFF; }
.step p { margin-top: 8px; color: var(--muted); }

/* What changes */
.changes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 88px; margin-top: 56px; }
.changes li { padding: 36px 0 40px; border-top: 1px solid var(--teal-soft); font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--muted); }
.changes strong { color: #FFFFFF; font-weight: 600; }

/* Who it is for */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.who-photo { aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; background: var(--surface); }
.who-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.who-photo .pos-s3 { object-position: 60% 40%; }
.who-item figcaption { margin-top: 28px; max-width: 46ch; font-size: 21px; font-weight: 600; line-height: 1.38; color: var(--muted); }
.who-item strong { display: block; color: #FFFFFF; font-weight: 600; margin-bottom: 4px; }

/* Andres */
.about { display: grid; grid-template-columns: 460px 1fr; gap: 104px; align-items: center; }
.headshot-circle { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--light-circle); display: grid; place-items: center; }
.headshot-circle img { width: 92.6%; height: 92.6%; border-radius: 50%; object-fit: cover; }
.headshot figcaption { margin-top: 20px; text-align: center; font-size: 15px; color: var(--ink-muted); }
.about .headline { color: var(--ink); }
.about .support { margin-top: 24px; }
.trust span { white-space: nowrap; }
.trust { margin-top: 32px; padding-top: 20px; border-top: 1px solid #DCE3EA; font-size: 15px; letter-spacing: 0.02em; color: var(--ink-muted); }
.about .chev { margin-top: 24px; }

/* People stay in charge */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; margin-top: 56px; }
.split-title { font-size: 21px; font-weight: 600; color: var(--muted); padding-bottom: 16px; }
.split-title-white { color: #FFFFFF; }
.lines li { padding: 16px 0; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 21px; color: #E4E9F1; }
.split-col:first-child .lines li { border-top-color: rgb(30 165 166 / 35%); }

/* Final call */
.final { position: relative; isolation: isolate; overflow: hidden; padding: 180px 0; min-height: min(90vh, 860px); display: flex; align-items: center; text-align: center; }
.final-media { position: absolute; inset: 0; z-index: -2; }
.final-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0.3; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgb(5 11 31 / 0%) 25%, rgb(5 11 31 / 0%) 75%, var(--bg) 100%); }
.final-copy { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-copy .support { margin-top: 24px; }
.final .actions { justify-content: center; }
.demo-note { margin-top: 28px; font-size: 15px; color: var(--muted); padding: 8px 16px; border-radius: 999px; background: rgb(255 255 255 / 6%); }

/* Footer */
.footer { padding: 88px 0 40px; border-top: 1px solid rgb(30 165 166 / 25%); background: var(--bg); font-size: 15px; color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand img { width: 200px; height: auto; }
.footer-brand p { margin-top: 24px; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { font-size: 15px; font-weight: 600; color: #FFFFFF; margin-bottom: 6px; }
.footer-col a, .footer-bottom a { text-decoration: none; color: var(--muted); }
.footer-col a:hover, .footer-bottom a:hover { color: #FFFFFF; }
.footer-bottom { margin-top: 72px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 13px; }

/* Reveal: only hidden when JS is running and motion is allowed */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .numeral { font-size: 128px; }
  .about { grid-template-columns: 320px 1fr; gap: 56px; }
  .changes li { font-size: 28px; }
}

/* Phone */
@media (max-width: 639px) {
  .nav-cta { display: none; }
  .nav-menu { display: block; }

  .hero { display: block; height: auto; min-height: 0; max-height: none; padding-top: var(--nav-h); }
  .hero-media { position: relative; inset: auto; aspect-ratio: 390 / 330; animation: none; }
  .hero-video { display: none; }
  .hero-poster { object-position: 50% 28%; }
  .hero-scrim { inset: auto 0 auto 0; top: calc(var(--nav-h) + 130px); height: 200px; background: linear-gradient(180deg, rgb(5 11 31 / 0%), rgb(5 11 31 / 40%) 50%, var(--bg)); }
  .hero-copy { margin-top: -28px; padding-bottom: 72px; }
  .hero-support { margin-top: 16px; }
  .hero-pause { display: none; }
  .glow { width: 420px; height: 320px; top: 30%; }

  .actions { flex-direction: column; align-items: stretch; gap: 20px; width: 100%; margin-top: 32px; }
  .btn { width: 100%; }
  .actions .chev { justify-content: center; }

  .bleed { height: auto; min-height: 0; max-height: none; aspect-ratio: 1; }
  .bleed-media img { top: 0; height: 100%; object-position: 50% 20%; }
  .bleed-copy { padding-bottom: 20px; }
  .bleed-copy .headline { font-size: var(--h-1); }

  .band { min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }
  .numeral { font-size: 96px; }
  .step-name { margin-top: 16px; }
  .closing { margin-top: 48px; }

  .changes { grid-template-columns: 1fr; margin-top: 40px; }
  .changes li { font-size: 24px; padding: 24px 0 28px; }

  .who { grid-template-columns: 1fr; gap: 48px; margin-top: 40px; }
  .who-item figcaption { font-size: var(--body); margin-top: 20px; }

  .about { grid-template-columns: 1fr; gap: 40px; }
  .headshot { width: 260px; margin: 0 auto; }

  .split { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .lines li { font-size: var(--body); padding: 14px 0; }

  .final { padding: 120px 0; min-height: 0; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
}

/* Reduced motion: final state at once, poster instead of video */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media, .settle { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bleed-media img { transform: none !important; }
  .chev::after, .btn { transition: none; }
}
