/* Tempo CFO - site rebuild 2026-09 (brand palette: indigo structure, blue accent, slate neutrals; Archivo throughout) */

/* Archivo, self-hosted (latin, variable weight). Preloaded in each page head; font-display optional so the hero never reflows when it loads. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --indigo: #031549;
  --indigo-700: #0A2472;
  --indigo-500: #1E3A8C;
  --teal: #0B6FDB;
  --teal-800: #0056BB;
  --teal-tint: #D6E8FC;
  --ink: #0F172A;
  --slate: #64748B;
  --border: #E2E8F0;
  --surface: #F8FAFC;
  --white: #FFFFFF;
  --cta: #0B6FDB;
  --cta-hover: #0056BB;
  --on-dark: rgba(255, 255, 255, 0.8);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --header-h: 88px;
  --serif: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  padding-top: var(--header-h);
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 1rem; color: var(--indigo); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1rem; }
a { color: var(--teal); }
a:hover { color: var(--teal-800); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(4rem, 9vw, 6.5rem); scroll-margin-top: 92px; }
.section-surface { background: var(--surface); }
.section-dark { background: var(--indigo); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-title { position: relative; text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); padding: clamp(1.25rem, 3vw, 1.9rem) clamp(1.5rem, 6vw, 4rem); border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(115deg, #E6EDFA 0%, var(--surface) 50%, var(--white) 100%); overflow: hidden; }
.section-title::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; transform: translateX(-50%); background: var(--teal); border-radius: 4px 4px 0 0; }
.section-title::after { content: ''; position: absolute; right: 1.25rem; bottom: -4px; width: 132px; height: 62px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 70'%3E%3Crect x='0' y='46' width='22' height='24' rx='5' fill='%2396C8FD'/%3E%3Crect x='32' y='36' width='22' height='34' rx='5' fill='%2360ADFD'/%3E%3Crect x='64' y='24' width='22' height='46' rx='5' fill='%23107FF3'/%3E%3Crect x='96' y='12' width='22' height='58' rx='5' fill='%230056BB'/%3E%3Crect x='128' y='0' width='22' height='70' rx='5' fill='%23012E67'/%3E%3C/svg%3E") no-repeat right bottom / contain; opacity: 0.85; pointer-events: none; }
.section-dark .section-title { border-color: rgba(255, 255, 255, 0.14); background: linear-gradient(115deg, var(--indigo-500) 0%, var(--indigo-700) 45%, var(--indigo) 100%); }
.section-dark .section-title::before { background: var(--teal-tint); }

/* Buttons */
.btn { display: inline-block; background: var(--cta); color: var(--white); font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1; padding: 0.95rem 1.6rem; border-radius: 999px; text-decoration: none; letter-spacing: 0.01em; transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.btn:hover { background: var(--cta-hover); color: var(--white); transform: translateY(-1px); }
.btn-light { background: var(--white); color: var(--indigo); }
.btn-light:hover { background: var(--teal-tint); color: var(--indigo); }
.section-cta { text-align: center; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(1, 7, 30, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-header .nav-links a { color: rgba(255, 255, 255, 0.85); }
.site-header .nav-links a:hover { color: var(--white); }
.site-header .menu-toggle { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.site-header .logo-dark { display: none; }
.site-header .logo-light { display: block; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; position: relative; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--indigo); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark span { color: var(--teal); }
.wordmark:hover { color: var(--indigo); }
.wordmark img { height: 64px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate); text-decoration: none; font-weight: 500; font-size: 0.975rem; }
.nav-links a:hover { color: var(--indigo); }
.site-header .nav-links a.nav-cta { display: inline-block; background: var(--cta); color: var(--white); font-weight: 600; padding: 0.6rem 1.15rem; border-radius: 999px; }
.site-header .nav-links a.nav-cta:hover { background: var(--cta-hover); color: var(--white); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 0.4rem 0.8rem; font: 500 0.95rem var(--sans); color: var(--indigo); cursor: pointer; }

/* Hero */
.hero { background: var(--indigo); color: var(--white); position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding-top: calc(clamp(5rem, 13vw, 9.5rem) + var(--header-h)); padding-bottom: clamp(5rem, 13vw, 9.5rem); }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 600; max-width: 22ch; margin: 0; position: relative; z-index: 1; }
.hero .hl { color: #60ADFD; }
.hero-cta { position: relative; z-index: 1; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.hero-bars { position: absolute; right: clamp(-40px, 2vw, 60px); bottom: -8px; width: min(38vw, 440px); pointer-events: none; }

/* Why Tempo exists */
.why p a { color: #107FF3; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.why p a:hover { color: #0056BB; }
.why p { text-wrap: pretty; font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; color: var(--indigo); max-width: 1040px; margin: 0 auto; text-align: center; }
.why strong { font-weight: 700; }

/* Tempo run */
.tempo-run { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.tempo-run-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.tempo-run-img { width: calc(100% + clamp(0px, 4vw, 64px)); margin-left: calc(-1 * clamp(0px, 4vw, 64px)); height: min(60vh, 540px); object-fit: cover; object-position: 50% 45%; display: block; border-radius: var(--radius); }
.tempo-run-copy { display: flex; align-items: center; padding-left: clamp(0.5rem, 4vw, 3.5rem); }
/* Scroll reveal: elements start lower and transparent, then ease up into place once (QuantFi-style fade-up) */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
.tempo-run-statement { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.15; color: var(--indigo); margin: 0; }

/* Testimonials: static cards, excerpt shown, full quote on click */
.quote-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.quote-card { flex: 0 1 calc((100% - 3rem) / 3); min-width: 280px; margin: 0; background: var(--white); border: 2px solid var(--indigo-500); border-top: 5px solid var(--indigo); border-radius: var(--radius); padding: 2rem 1.75rem; display: flex; flex-direction: column; }
.quote-role { font-weight: 600; font-size: 1.15rem; color: var(--indigo); margin: 0; line-height: 1.35; white-space: nowrap; }
.quote-company { color: var(--indigo-500); font-size: 0.95rem; white-space: nowrap; margin: 0.2rem 0 1.1rem; }
.quote-text { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--ink); }
.quote-text strong { font-weight: 700; color: #107FF3; }
.quote-text[hidden] { display: none; }
.quote-toggle { margin-top: auto; padding: 1rem 0 0; background: none; border: 0; font: 600 0.95rem var(--sans); color: var(--cta); cursor: pointer; text-align: left; }
.quote-toggle:hover { color: var(--cta-hover); text-decoration: underline; }

/* Services accordion */
.services-list { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--border); }
.svc-row { border-bottom: 1px solid var(--border); }
.svc-head { width: 100%; display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem 0.25rem; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.svc-icon { flex: none; width: 52px; height: 52px; border-radius: var(--radius-sm); background: #E1EEFF; color: #107FF3; display: grid; place-items: center; }
.svc-text { flex: 1; min-width: 0; }
.svc-name { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.45rem); color: var(--indigo); line-height: 1.25; }
.svc-line { display: block; color: var(--slate); font-size: 0.99rem; margin-top: 0.25rem; }
.svc-chevron { flex: none; color: var(--indigo-500); transition: transform 0.3s ease; }
.svc-row.is-open .svc-chevron { transform: rotate(180deg); }
.svc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.svc-row.is-open .svc-panel { grid-template-rows: 1fr; }
.svc-panel-inner { overflow: hidden; }
.svc-body { padding: 0 0.25rem 1.75rem calc(52px + 1.5rem); }
.check-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.55rem; }
.check-list li { position: relative; padding-left: 1.6rem; }
.check-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.check-list strong { color: var(--indigo); }
.lever-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 1.25rem; }
.lever-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin: 0 0 0.6rem; }
.lever-note { font-size: 0.925rem; color: var(--slate); margin: 0 0 0.6rem; }
.svc-link { font-weight: 600; text-decoration: none; }
.svc-link:hover { text-decoration: underline; }

/* Who we help */
.who { background: var(--white); }
.who-intro { text-align: center; max-width: none; white-space: nowrap; margin: -1.5rem auto clamp(2.5rem, 5vw, 3.5rem); font-size: 1.15rem; color: var(--slate); }
.who h3 { margin-bottom: 1.5rem; color: var(--indigo); }
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.moment { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.moment .num { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: #107FF3; margin-bottom: 0.5rem; }
.moment h4 { color: var(--indigo); font-size: 1.3rem; margin-bottom: 0.6rem; }
.moment p { margin: 0; color: var(--ink); }
.serve-lead { margin-bottom: 1.5rem; color: var(--slate); }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.segment { border-top: 3px solid #60ADFD; padding-top: 1.1rem; }
.segment h4 { color: var(--indigo); font-size: 1.2rem; margin-bottom: 0.5rem; }
.segment p { margin: 0; color: var(--slate); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.headshot { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.about-name { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 0.35rem; }
.about-bio { color: var(--slate); font-size: 1.1rem; margin-bottom: 2rem; }
.about-copy p { margin-bottom: 1.25rem; }

/* Contact */
.contact { background: var(--indigo); text-align: center; padding-block: clamp(4rem, 8vw, 5.5rem); scroll-margin-top: 92px; }
.contact-line { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.5rem); color: var(--white); margin: 0; line-height: 1.3; }
.contact-line a { color: var(--white); text-decoration: underline; text-decoration-color: var(--teal-tint); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.contact-line a:hover { color: var(--teal-tint); }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding-block: 2rem; font-size: 0.95rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-contact { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-linkedin { display: inline-flex; align-items: center; gap: 0.45rem; }
.footer-location { color: var(--slate); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-row a { color: var(--slate); text-decoration: none; }
.footer-row a:hover { color: var(--indigo); text-decoration: underline; }
.copyright { color: var(--slate); font-size: 0.85rem; margin: 1rem 0 0; }

/* Service pages */
.page-hero { background: var(--indigo); color: var(--white); margin-top: calc(-1 * var(--header-h)); padding-top: calc(clamp(3.5rem, 9vw, 6rem) + var(--header-h)); padding-bottom: clamp(3.5rem, 9vw, 6rem); }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.page-hero-line { color: var(--on-dark); font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 60ch; margin: 0; }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-tint); margin: 0 0 0.75rem; }
.sub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sub-card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--teal); border-radius: var(--radius); padding: 1.75rem; }
.sub-card p { margin: 0 0 1rem; }
.sub-card p:last-child { margin-bottom: 0; }
.sub-card-title { font-size: 1.35rem; margin-bottom: 0.75rem; }
.sub-card .check-list { margin-bottom: 0; }
.sub-card-list { max-width: 720px; margin: 0 auto; }
.check-list-large { gap: 0.9rem; font-size: 1.15rem; }
.check-list-large li { padding-left: 2rem; }
.other-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.other-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: inherit; transition: border-color 0.2s ease, transform 0.2s ease; }
.other-card:hover { border-color: var(--teal); transform: translateY(-2px); color: inherit; }
.contact-page { padding-block: clamp(6rem, 16vw, 11rem); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding-block: clamp(3rem, 7vw, 5rem); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.legal .updated { color: var(--slate); margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 900px) {
  .lever-groups { grid-template-columns: 1fr 1fr; }
  .segments { grid-template-columns: 1fr; }
  .sub-cards, .other-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; top: 100%; left: calc(-1 * clamp(16px, 4vw, 32px)); right: calc(-1 * clamp(16px, 4vw, 32px)); flex-direction: column; align-items: stretch; gap: 0; background: rgba(1, 7, 30, 0.97); border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 0.5rem 0; }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 0.8rem clamp(16px, 4vw, 32px); }
  .site-header .nav-links a.nav-cta { display: inline-block; margin: 0.5rem clamp(16px, 4vw, 32px) 0.75rem; }
  .hero-bars { display: none; }
  .section-title::after { display: none; }
  .tempo-run-grid, .about-grid, .moments { grid-template-columns: 1fr; }
  .tempo-run-img { height: min(55vh, 460px); width: 100%; margin-left: 0; }
  .quote-card { flex-basis: 100%; min-width: 0; }
  .tempo-run-copy { padding-left: 0; }
  .lever-groups { grid-template-columns: 1fr; }
  .svc-body { padding-left: 0.25rem; }
  .svc-icon { width: 44px; height: 44px; }
  .headshot { max-width: 360px; }
}
.nowrap { white-space: nowrap; }
@media (max-width: 600px) { .hero .nowrap { white-space: normal; } }
@media (max-width: 760px) { .who-intro { white-space: normal; } }
@media (max-width: 1100px) { .br-wide { display: none; } }
@media (min-width: 761px) and (max-width: 1100px) { .quote-role, .quote-company { white-space: normal; } .quote-role { min-height: 2.7em; } .quote-company { min-height: 3em; line-height: 1.5; } }
@media (max-width: 760px) { .quote-role, .quote-company { white-space: normal; } }
