/* Alpha UMI — site styles. No framework; mobile-first.
   Follows the Alpha UMI Brand Guidelines (2024): palette Blue #183976, Gray #E4E0E0,
   Black #060A14, White; 1.25 (major third) type scale; star pattern; official logo files.
   Fonts: brand fonts are Product Sans + Avenir. Neither is licensed for web embedding, so:
   - display: Poppins (OFL), geometric match for the Product Sans wordmark
   - text: Avenir Next / Avenir where installed (Apple devices), else Nunito Sans (OFL). */

@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-var.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Brand palette */
  --brand: #183976;           /* Blue */
  --brand-gray: #e4e0e0;      /* Gray */
  --brand-black: #060a14;     /* Black */
  --white: #ffffff;
  /* Tints of brand colours (guide: "solid colors and tints") */
  --brand-75: #526194;
  --brand-50: #8b9cbb;
  --brand-25: #c5cddd;
  --brand-10: #e8ebf1;
  --gray-50: #f2f0f0;

  /* Roles */
  --ink: var(--brand);        /* dark surfaces: hero, CTA band, footer */
  --ink-2: #132e60;
  --ink-3: #24488f;           /* hover on brand */
  --paper: var(--white);
  --paper-2: var(--gray-50);
  --line: var(--brand-gray);
  --line-dark: rgba(255,255,255,.2);
  --text: var(--brand-black);
  --muted: #4a4f5c;
  --muted-dark: var(--brand-25);
  --accent: var(--white);     /* emphasis on dark surfaces */
  --accent-ink: var(--brand); /* emphasis on light surfaces */
  --focus: #2f6fed;

  --font-sans: "Avenir Next", "Avenir", "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", var(--font-sans);
  --font-mono: var(--font-sans); /* labels use the text face, uppercase + tracked */

  /* 1.25 major-third scale (brand guide), fluid between mobile and desktop */
  --step--1: 0.8rem;
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.3rem + 0.5vw, 1.563rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.441rem);
  --step-4: clamp(2.25rem, 1.6rem + 3vw, 3.815rem);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-sans); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand-50); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.15; letter-spacing: -0.015em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: var(--step-4); letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; padding: .35rem 0; }
.brand img { height: 48px; width: auto; }
.site-footer .brand img { height: 44px; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .75rem; font: inherit; font-size: var(--step--1); color: var(--text); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -5px; } .nav-toggle .bars::after { position: absolute; top: 5px; }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-open .site-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; }
.nav-open .site-nav li a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.nav-open .site-nav .btn { margin-top: 1rem; display: inline-flex; border-bottom: 0; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; align-items: center; gap: 2rem; }
  .site-nav a { font-size: .95rem; font-weight: 500; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.25rem; border-radius: var(--radius); font-weight: 600; font-size: .97rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-3); }
.btn-accent { background: var(--white); color: var(--brand); }
.btn-accent:hover { background: var(--brand-gray); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.btn .arrow { transition: transform .15s; } .btn:hover .arrow { transform: translateX(3px); }
.site-nav .btn { padding: .55rem 1rem; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* ---------- Generic sections ---------- */
.section { padding: var(--section) 0; }
.section + .section.tight-top { padding-top: 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .lede, .section-dark p.muted { color: var(--muted-dark); }
.section-alt { background: var(--paper-2); }
.eyebrow { font-family: var(--font-mono); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 1.1rem; display: flex; align-items: center; gap: .6rem; }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--accent); }
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 46rem; line-height: 1.55; }
.muted { color: var(--muted); }
.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: var(--muted-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem); isolation: isolate; }
.hero::before, .page-hero::before, .cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/pattern.svg") 0 0 / 96px 96px repeat;
  mask-image: linear-gradient(100deg, transparent 25%, #000 85%); -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 85%); }
.hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--brand-25); }
.hero .lede { color: var(--brand-10); max-width: 40rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.hero-ctas .btn-ghost { color: var(--white); }
.proof-strip { margin-top: clamp(3rem, 7vw, 5rem); padding-top: 1.75rem; border-top: 1px solid var(--line-dark); display: grid; gap: 1.25rem; }
.proof-strip div { font-size: .95rem; color: var(--brand-10); }
.proof-strip strong { display: block; font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
@media (min-width: 760px) { .proof-strip { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Page hero (interior pages) */
.page-hero { background: var(--ink); color: var(--white); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: var(--step-4); max-width: 20ch; }
.page-hero .lede { color: var(--brand-10); }
.page-hero.compact { padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-hero.compact + .section { padding-top: clamp(2rem, 4vw, 3rem); }
.breadcrumb { font-family: var(--font-mono); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 1.5rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--brand-50); }
.breadcrumb a { text-decoration: none; } .breadcrumb a:hover { color: var(--white); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 959px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card .text-link { margin-top: auto; }
.card-link { position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--brand); box-shadow: 0 12px 30px -18px rgba(24,57,118,.5); transform: translateY(-2px); }
.card-link h3 a { text-decoration: none; }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; }
.card .num { font-family: var(--font-mono); font-weight: 700; font-size: .78rem; color: var(--accent-ink); margin-bottom: 1.4rem; letter-spacing: .06em; }
.card ul.ticks { margin: 0 0 1.25rem; }

ul.ticks { list-style: none; padding: 0; }
ul.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 2px; background: var(--brand); }

/* Problem → service list */
.triggers { border-top: 1px solid var(--line); }
.trigger { display: grid; gap: .5rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.trigger h3 { font-size: 1.15rem; margin: 0; }
.trigger p { margin: 0; color: var(--muted); }
.trigger a { font-family: var(--font-mono); font-weight: 700; font-size: .85rem; letter-spacing: .02em; text-decoration: none; color: var(--accent-ink); white-space: nowrap; }
.trigger a:hover { text-decoration: underline; }
@media (min-width: 860px) { .trigger { grid-template-columns: 1fr 1.3fr 11.5rem; align-items: baseline; } .trigger a { justify-self: end; } }

/* Differentiators on dark */
.pillars { display: grid; gap: 2.25rem; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.pillar { border-top: 1px solid var(--line-dark); padding-top: 1.5rem; }
.pillar .num { font-family: var(--font-mono); font-weight: 700; font-size: .78rem; color: var(--brand-25); letter-spacing: .06em; margin-bottom: 1rem; }
.pillar h3 { font-size: 1.3rem; }
.pillar p { color: var(--muted-dark); margin: 0; }

/* Engagement cards (anonymized) */
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.case .tag { display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); margin: 0 .4rem .6rem 0; }
.case h3 { margin-top: .75rem; }
.case dl { margin: 1.25rem 0 0; display: grid; gap: .9rem; }
.case dt { font-family: var(--font-mono); font-weight: 700; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }
.case dd { margin: .2rem 0 0; color: var(--muted); }

/* Process steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 1.5rem 0 1.5rem 3.75rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1.55rem; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--accent-ink); }
.steps h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }
.steps .meta { font-family: var(--font-mono); font-weight: 600; font-size: .78rem; color: var(--muted); letter-spacing: .03em; margin-top: .5rem; display: block; }
@media (min-width: 960px) {
  .steps.horizontal { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps.horizontal li { padding: 3rem 0 0; }
  .steps.horizontal li::before { top: 1.2rem; }
}

/* Split layout */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 7fr; gap: 5rem; } .split.even { grid-template-columns: 1fr 1fr; } .split .sticky { position: sticky; top: 6.5rem; align-self: start; } }

/* Deliverables list */
.deliverables { display: grid; gap: 0; border-top: 1px solid var(--line); }
.deliverable { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.deliverable h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.deliverable p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0; position: relative; font-weight: 600; font-size: 1.07rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1.05rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.4rem; color: var(--muted); max-width: 48rem; }
.faq .answer p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; overflow: hidden; isolation: isolate; }
.cta-band .inner { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .cta-band .inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { max-width: 20ch; margin-bottom: .75rem; }
.cta-band p { color: var(--brand-10); margin: 0; max-width: 36rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (min-width: 900px) { .cta-band .actions { justify-content: flex-end; } }
.cta-band .btn-ghost { color: var(--white); }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.scheduler { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-height: 720px; display: flex; flex-direction: column; }
.scheduler-placeholder { margin: auto; text-align: center; padding: 3rem 1.5rem; max-width: 26rem; }
.scheduler-placeholder p { color: var(--muted); }
.scheduler iframe { flex: 1; width: 100%; min-height: 720px; border: 0; border-radius: var(--radius); }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: var(--white); margin-bottom: 1.25rem; }
.aside-box h2 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 650; letter-spacing: 0; }
.aside-box ol, .aside-box ul { margin: 0 0 .5rem; color: var(--muted); }
.aside-box li { margin-bottom: .35rem; }

/* Prose */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose p, .prose li { color: #2a3142; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-black); color: #b9bfcc; padding: 4rem 0 2.5rem; font-size: .93rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer h2 { font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }

/* 404 */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.actions-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.not-found .eyebrow, .not-found .actions-row { justify-content: center; }
.not-found .lede { margin: 0 auto 2rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .cta-band { display: none; } body { background: #fff; } .hero, .page-hero { background: #fff; color: #000; } }
.after-steps { margin-top: 2rem; }
.nav-open .site-nav li a.btn { display: inline-flex; padding: .8rem 1.25rem; }

/* Founder */
.founder { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.founder h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); margin-bottom: .2rem; }
.founder-role { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 1.25rem; }
.founder p:not(.founder-role) { color: #2a3142; }

/* CTA card in service grids */
.card-cta { background: var(--brand); color: var(--white); border-color: var(--brand); }
.card-cta .num { color: var(--brand-25); }
.card-cta p { color: var(--brand-10); }
.card-cta .text-link { color: var(--white); }
