/* 15 How We Work outline. Clarivus360 round four.
   Contract: docs/03_design/ART-DIRECTION-v4.md section 8.2 (trim pass). Look from 12b Cinematic Lean: same tokens, nav, footer, type scale. */

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

:root {
  --night: #050B1F;
  --navy: #0B183D;
  --slate: #12385C;
  --steel: #7C97B2;
  --teal: #1EA5A6;
  --teal-ink: #117A7B;
  --white: #FFFFFF;
  --paper: #F5F7FA;
  --ink: #0B1220;
  --muted: #5B6577;
  --line: #DDE3EA;
  --on-dark: #C9D3E1;
  --on-dark-muted: #93A3BA;
  --hair-dark: rgb(255 255 255 / 12%);

  --font-display: "Inter Tight", "Inter", Arial, sans-serif;
  --font-text: "Inter", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --nav-h: 84px;
  --content: 1260px;
  --gutter: 90px;
  --pad: 184px;
  --h-2: 72px;
  --h-2-xl: 96px;
  --support: 24px;
  --body: 19px;
  --radius: 28px;
}
@media (max-width: 1279px) { :root { --gutter: 56px; --h-2-xl: 84px; } }
@media (max-width: 1023px) { :root { --gutter: 32px; --pad: 128px; --h-2: 56px; --h-2-xl: 68px; } }
@media (max-width: 639px) { :root { --nav-h: 64px; --gutter: 20px; --pad: 96px; --h-2: 40px; --h-2-xl: 46px; --support: 20px; --body: 17px; --radius: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-text); font-size: var(--body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, 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(--night); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: var(--pad) 0; }
.band-white { background: var(--white); }
.band-paper { background: var(--paper); }
.band-navy { background: var(--navy); color: var(--white); }

/* ---------- Type ---------- */
.h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--h-2); line-height: 1.03; letter-spacing: -0.02em; color: var(--navy); text-wrap: balance; max-width: 16ch; }

.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 600; line-height: 1.2; color: var(--muted); margin-bottom: 28px; }
.eyebrow .rule { flex: none; width: 40px; height: 2px; background: var(--teal); border-radius: 2px; }
.eyebrow-dark { color: var(--on-dark-muted); }

/* ---------- Buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 999px; background: var(--teal); color: var(--night); font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.pill:hover { background: var(--white); color: var(--navy); }
.pill-small { height: 36px; padding: 0 18px; font-size: 15px; }
.chev { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 500; color: var(--navy); text-decoration: none; }
.chev::after { content: "›"; font-size: 23px; line-height: 1; color: var(--teal-ink); transform: translateY(-1px); }
.chev-light { color: var(--white); }
.chev-light::after { color: var(--teal); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); background: transparent; border-bottom: 1px solid transparent; transition: background-color 300ms var(--ease), border-color 300ms var(--ease), height 300ms var(--ease); }
.nav.is-scrolled { height: 68px; background: rgb(5 11 31 / 90%); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--hair-dark); }
.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 { flex: none; display: block; }
.nav-logo img { width: 200px; height: auto; transition: width 300ms var(--ease); }
.nav.is-scrolled .nav-logo img { width: 190px; }
.nav-links { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.nav-links a:not(.pill) { font-size: 15px; font-weight: 500; color: #DCE3EE; text-decoration: none; transition: color 160ms ease; }
.nav-links a:not(.pill):hover { color: var(--white); }
/* Current page: a teal underline on desktop, teal text in the phone menu */
.nav-links a[aria-current="page"] { position: relative; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--teal); }
.nav-cta { margin-left: 4px; }
/* Solid nav: this page opens on paper */
.nav.is-solid { background: var(--night); border-bottom: 1px solid rgb(255 255 255 / 8%); }
.nav-menu { display: none; margin-left: auto; background: none; border: 0; padding: 8px 0; font-size: 16px; font-weight: 500; color: var(--white); cursor: pointer; }

/* ---------- 1 Opening: paper, typographic, as on About ---------- */
.opening { padding: calc(var(--nav-h) + 176px) 0 176px; }
.opening-title { font-family: var(--font-display); font-weight: 600; font-size: var(--h-2-xl); line-height: 1.0; letter-spacing: -0.03em; color: var(--navy); max-width: 15ch; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.opening-line { font-size: 28px; line-height: 1.4; color: var(--muted); margin-top: 40px; max-width: 30ch; text-wrap: balance; }

.settle { animation: settle-in 1s var(--ease) both; }
.settle-1 { animation-delay: 120ms; }
.settle-2 { animation-delay: 260ms; }
@keyframes settle-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 2 Method: phase word left, numbered steps right ---------- */
.phases { margin-top: 16px; }
.phase { display: grid; grid-template-columns: 6fr 6fr; gap: 24px 72px; padding: 56px 0 60px; border-top: 1px solid var(--hair-dark); align-items: start; }
.phase:last-child { border-bottom: 1px solid var(--hair-dark); }
.phase-word { font-family: var(--font-display); font-weight: 600; font-size: 120px; line-height: .95; letter-spacing: -0.038em; color: rgb(124 151 178 / 38%); transition: color 1100ms var(--ease); }
.phase.is-lit .phase-word { color: var(--white); }
.step-list { display: grid; gap: 28px; padding-top: 22px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; }
.step-num { grid-row: 1 / span 2; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--teal); padding-top: 3px; }
.step h4 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: -0.012em; color: var(--white); }
.step p { font-size: 19px; line-height: 1.5; color: var(--on-dark); max-width: 40ch; }

/* ---------- 3 Example: six stages, After line only ---------- */
.flag { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--teal-ink); margin-bottom: 24px; }
.flag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.stages { margin-top: 72px; border-top: 1px solid #CDD6E0; }
.stage { display: grid; grid-template-columns: 5fr 7fr; gap: 8px 48px; padding: 26px 0; border-bottom: 1px solid #CDD6E0; align-items: baseline; }
.stage h3 { display: flex; gap: 16px; align-items: baseline; font-family: var(--font-display); font-weight: 600; font-size: var(--support); line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); }
.stage-num { flex: none; font-size: 15px; font-weight: 600; color: var(--teal-ink); min-width: 14px; }
.stage p { font-size: var(--support); line-height: 1.42; color: var(--ink); text-wrap: pretty; }

/* The Today lines: the 14b details component, closed by default */
.steps { margin-top: 72px; border-top: 1px solid #CDD6E0; border-bottom: 1px solid #CDD6E0; }
.steps summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0; font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.25; letter-spacing: -0.008em; color: var(--navy); border-radius: 6px; }
.steps summary::-webkit-details-marker { display: none; }
.steps summary:hover span:first-child { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.steps-icon { flex: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--teal); transition: background-color 200ms var(--ease); }
.steps-icon::before, .steps-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--teal-ink); border-radius: 2px; transition: transform 240ms var(--ease); }
.steps-icon::after { transform: rotate(90deg); }
.steps[open] .steps-icon { background: var(--navy); border-color: var(--navy); }
.steps[open] .steps-icon::before, .steps[open] .steps-icon::after { background: var(--white); }
.steps[open] .steps-icon::after { transform: rotate(0deg); }
.steps-body { padding: 8px 0 48px; }
.steps-list li { display: grid; grid-template-columns: 5fr 7fr; gap: 12px 48px; padding: 26px 0; border-top: 1px solid #CDD6E0; align-items: start; }
.steps-list li:first-child { border-top: 0; }
.steps-title strong { display: flex; gap: 16px; align-items: baseline; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); }
.ta { font-size: 19px; line-height: 1.45; }
.ta-tag { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.today { color: var(--muted); }
.today .ta-tag { color: var(--steel); }

/* ---------- 4 Measures: four lines, large, between hairlines ---------- */
.measure .h2 { max-width: 14ch; }
.measures { margin-top: 56px; border-top: 1px solid var(--line); }
.measures li { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.2; letter-spacing: -0.015em; color: var(--navy); padding: 26px 0; border-bottom: 1px solid var(--line); text-wrap: balance; }

/* ---------- 5 People decide: two equal open lists under a navy rule ---------- */
.design-title { max-width: 20ch; }
.design-title span { color: var(--teal-ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 72px; margin-top: 72px; }
.panel { background: none; border: 0; border-top: 2px solid var(--navy); border-radius: 0; padding: 32px 0 0; color: var(--navy); }
.panel h3 { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -0.012em; margin-bottom: 16px; }
.panel li { font-size: 24px; line-height: 1.4; color: var(--ink); padding: 16px 0; }
.panel li + li { border-top: 1px solid #CDD6E0; }

/* ---------- Final call ---------- */
.final { position: relative; height: clamp(620px, 78vh, 820px); display: flex; align-items: center; overflow: hidden; isolation: isolate; color: var(--white); background: var(--night); }
.final-media { position: absolute; inset: 0; z-index: -2; }
.final-media img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.final-scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgb(5 11 31 / 90%) 0%, rgb(5 11 31 / 76%) 36%, rgb(5 11 31 / 34%) 66%, rgb(5 11 31 / 42%) 100%),
  linear-gradient(0deg, rgb(5 11 31 / 70%) 0%, rgb(5 11 31 / 0%) 30%); }
.final-title { font-family: var(--font-display); font-weight: 600; font-size: 84px; line-height: 1.0; letter-spacing: -0.026em; max-width: 13ch; text-wrap: balance; }
.final .actions { margin-top: 44px; }
.final-note { font-size: 14px; color: var(--on-dark-muted); margin-top: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-dark); padding: 112px 0 48px; }
.footer-top { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; padding-bottom: 72px; border-bottom: 1px solid var(--hair-dark); }
.footer-brand img { width: 260px; height: auto; }
.footer-brand p { font-size: 16px; line-height: 1.55; color: var(--on-dark-muted); margin-top: 28px; max-width: 36ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-h { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.footer-cols li { font-size: 15px; line-height: 1.5; color: var(--on-dark-muted); padding: 5px 0; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--white); }
.chev-small { font-size: 15px; color: var(--on-dark-muted); }
.chev-small::after { font-size: 19px; }
.footer-bottom { font-size: 14px; color: var(--on-dark-muted); padding-top: 28px; }
.footer-bottom a { text-decoration: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .nav-links a:not(.pill) { display: none; }
  .phase { grid-template-columns: 1fr; gap: 8px; }
  .phase-word { font-size: 96px; }
  .step-list { padding-top: 24px; }
  .opening { padding: calc(var(--nav-h) + 112px) 0 128px; }
  .stage, .steps-list li { grid-template-columns: 1fr; }
  .measures li { font-size: 34px; }
  .split, .footer-top { grid-template-columns: 1fr; }
  .final-title { font-size: 68px; }
}

/* ---------- Phone ---------- */
@media (max-width: 639px) {
  .nav-logo img, .nav.is-scrolled .nav-logo img { width: 160px; }
  .nav.is-scrolled { height: 64px; }
  .nav-menu { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; background: rgb(5 11 31 / 96%); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--hair-dark); }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.pill) { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--hair-dark); }
  .nav-links.is-open a[aria-current="page"] { color: var(--teal); }
  .nav-links.is-open a[aria-current="page"]::after { content: none; }
  .nav-cta { margin: 20px 0 0; height: 48px; font-size: 17px; }
  .nav.menu-open { background: rgb(5 11 31 / 96%); }

  .opening { padding: calc(var(--nav-h) + 72px) 0 96px; }
  .eyebrow .rule { width: 24px; }
  .opening-line { font-size: 21px; margin-top: 24px; }
  .final .actions { flex-direction: column; align-items: stretch; margin-top: 32px; }
  .pill { width: 100%; }

  .eyebrow { font-size: 16px; gap: 10px; margin-bottom: 20px; }

  .phase { padding: 44px 0 48px; }
  .phase-word { font-size: 58px; letter-spacing: -0.03em; }
  .step-list { gap: 28px; padding-top: 18px; }
  .step { grid-template-columns: 32px 1fr; gap: 4px 10px; }
  .step-num { font-size: 20px; padding-top: 1px; }
  .step h4 { font-size: 24px; }
  .step p { font-size: 17px; }

  .stages { margin-top: 44px; }
  .stage { padding: 22px 0; }
  .stage p { padding-left: 30px; }
  .steps { margin-top: 48px; }
  .steps summary { font-size: 21px; padding: 22px 0; }
  .steps-icon { width: 40px; height: 40px; }
  .steps-list li { gap: 10px; padding: 22px 0; }
  .steps-title strong { font-size: 20px; }
  .steps-list .ta { padding-left: 30px; font-size: 17px; }

  .measures { margin-top: 36px; }
  .measures li { font-size: 24px; padding: 20px 0; }

  .split { margin-top: 44px; gap: 56px; }
  .panel { padding-top: 24px; }
  .panel h3 { font-size: 24px; margin-bottom: 8px; }
  .panel li { font-size: 20px; padding: 14px 0; }

  .final { display: block; height: auto; }
  .final-media { position: relative; height: 300px; }
  .final-media img { object-position: 50% 55%; }
  .final-scrim { inset: 0 0 auto 0; height: 300px; background: linear-gradient(180deg, rgb(5 11 31 / 30%) 0%, rgb(5 11 31 / 10%) 50%, rgb(5 11 31 / 100%) 100%); }
  .final-copy { padding-top: 8px; padding-bottom: 96px; }
  .final-title { font-size: 44px; }
  .final-note { text-align: center; }

  .footer { padding-top: 80px; }
  .footer-brand img { width: 240px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Reduced motion: end states at once ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .settle { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .phase-word { color: var(--white); transition: none; }
  .steps-icon, .steps-icon::before, .steps-icon::after { transition: none; }
}

/* ---------- Round five (Andrés 11/16) ---------- */
.method-sub { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.3; letter-spacing: -0.01em; color: var(--teal); margin-bottom: 32px; }
.phase-word { font-size: 80px; }
.phase-line { font-size: 20px; line-height: 1.45; color: var(--on-dark); max-width: 30ch; margin-top: 18px; }
.build-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; margin-top: 56px; }
.build-item { padding: 28px 0 30px; border-top: 1px solid var(--line); }
.build-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.012em; color: var(--navy); }
.build-item p { font-size: 19px; line-height: 1.5; color: var(--muted); margin-top: 8px; max-width: 40ch; }
.feature { margin-top: 64px; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 48px 56px 52px; }
.flag-dark { color: var(--teal); }
.feature-title { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; }
.feature-line { font-size: 22px; line-height: 1.5; color: var(--on-dark); margin-top: 16px; max-width: 46ch; }
.example-note { font-size: 20px; line-height: 1.5; color: var(--muted); margin-top: 40px; max-width: 46ch; }
@media (max-width: 1023px) { .phase-word { font-size: 64px; } .build-list { gap: 0 40px; } }
@media (max-width: 767px) { .build-list { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
  .method-sub { font-size: 20px; margin-bottom: 20px; }
  .phase-word { font-size: 40px; }
  .phase-line { font-size: 17px; margin-top: 10px; }
  .build-item h3 { font-size: 21px; }
  .build-item p { font-size: 17px; }
  .feature { padding: 32px 24px 36px; margin-top: 44px; }
  .feature-title { font-size: 30px; }
  .feature-line { font-size: 18px; }
  .example-note { font-size: 17px; }
}

/* ---------- Opening with a photo on the right (round five) ---------- */
.opening-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.opening-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: #E6EBF1; }
.opening-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opening { padding-top: calc(var(--nav-h) + 96px); padding-bottom: 112px; }
@media (max-width: 1023px) { .opening-grid { gap: 40px; } }
@media (max-width: 767px) {
  .opening-grid { grid-template-columns: 1fr; gap: 36px; }
  .opening-photo { aspect-ratio: 3 / 2; }
  .opening { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 72px; }
}
/* "The system does the busywork." on line one, the teal half on line two */
.design-title { max-width: none; }
.design-title span { display: block; }
.opening-photo { aspect-ratio: 1 / 1; }
.opening-photo img[src*="S3_b"] { object-position: 62% center; }
@media (max-width: 767px) { .opening-photo { aspect-ratio: 3 / 2; } }
