/* Longalba Consulting website. One stylesheet for all pages.
   Colours: gold marks investors, blue marks companies and institutions. */

:root {
  --navy: #0a0d16;
  --ink: #1b2432;
  --body: #49556a;
  --muted: #6b7588;
  --line: #e3e6eb;
  --line-soft: #e8ebef;
  --rail: #c9cfd8;
  --gold: #d9a441;
  --gold-dk: #8f6512;
  --gold-tint: #fbf8f2;
  --blue: #5b87bd;
  --blue-dk: #2f5b8f;
  --blue-tint: #f4f7fb;
  --hero-text: #edf1f7;
  --hero-sub: #c3cede;
  --wrap: 1120px;
  --gut: clamp(20px, 4vw, 40px);
}

@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("fonts/fragment-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 380;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 20; background: #fff; color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 10px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mono { font-family: "Fragment Mono", ui-monospace, monospace; }

/* ---------- arrows and links ---------- */
.arr { display: inline-block; width: 16px; height: 10px; margin-left: 6px; vertical-align: 1px; }
.more { display: inline-flex; align-items: center; font-weight: 450; font-size: 15.5px; color: var(--ink); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.gold .arr, .arr-gold { color: var(--gold); }
.blue .arr, .arr-blue { color: var(--blue); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero-in { position: relative; z-index: 1; padding-top: 26px; padding-bottom: clamp(170px, 17vw, 250px); }
.nav { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 28px; }
.brand { text-decoration: none; white-space: nowrap; font-size: 15px; }
.brand-a { font-weight: 500; letter-spacing: 0.22em; color: var(--hero-text); }
.brand-b { font-weight: 300; color: var(--hero-sub); margin-left: 4px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; font-weight: 350; }
.nav-links a { color: var(--hero-sub); text-decoration: none; }
.nav-links a:hover { color: #fff; }
.hero h1 {
  font-weight: 300;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--hero-text);
  margin-top: clamp(56px, 9vw, 120px);
}
.hero-sub { font-weight: 300; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--hero-sub); margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; }
.btn { display: inline-block; font-size: 15.5px; font-weight: 400; padding: 11px 22px; border-radius: 2px; text-decoration: none; }
.btn-gold { border: 1px solid var(--gold); color: var(--hero-text); }
.btn-gold:hover { background: rgba(217, 164, 65, 0.14); }
.link-blue { color: var(--hero-sub); font-size: 15.5px; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; }
.link-blue:hover { color: #fff; }
.sky { position: absolute; left: 0; bottom: 0; z-index: 0; width: 100%; height: clamp(190px, 21vw, 400px); }

/* ---------- entry panels ---------- */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 10px; padding-bottom: clamp(40px, 5vw, 64px); }
.door { padding: 26px 26px 28px; border-top: 3px solid; }
.door.gold { background: var(--gold-tint); border-color: var(--gold); }
.door.blue { background: var(--blue-tint); border-color: var(--blue); }
.door h3 { font-weight: 420; font-size: 25px; line-height: 1.25; color: var(--ink); margin-top: 16px; }
.aud { font-weight: 450; font-size: 18px; line-height: 1.35; }
.gold .aud { color: var(--gold-dk); }
.blue .aud { color: var(--blue-dk); }
.who { font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.door .line { margin-top: 12px; }
.door .more { margin-top: 18px; }

/* ---------- sections ---------- */
.band { padding: clamp(52px, 6.5vw, 88px) 0; border-top: 1px solid var(--line-soft); }
.band.gold { background: var(--gold-tint); border-top: 2px solid var(--gold); }
.band.blue { background: var(--blue-tint); border-top: 2px solid var(--blue); }
.band h2 { font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.005em; color: var(--ink); }
.band.gold h2 span { color: var(--gold-dk); }
.band.blue h2 span { color: var(--blue-dk); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--body); margin-top: 12px; max-width: 660px; }
.band h3.sub { font-weight: 450; font-size: 19px; color: var(--ink); margin: clamp(48px, 5.5vw, 64px) 0 22px; }

.ico { width: 40px; height: 40px; }
.it { font-weight: 450; font-size: 17.5px; line-height: 1.3; color: var(--ink); margin-top: 14px; }
.ds { font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.for { font-size: 15px; line-height: 1.45; margin-top: 4px; }
.blue .for { color: var(--blue-dk); }

.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.g6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.dims { margin-top: 48px; }
.formats { margin-top: 44px; padding-top: 30px; border-top: 1px solid #ece6da; }
.row-ico { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.row-ico .it { margin-top: 2px; }
.pdf { margin-top: 30px; }


.programs { margin-top: 44px; }
.teacher { margin-top: 34px; max-width: 680px; font-size: 15.5px; color: var(--muted); }
.blue .more.program { margin-top: 16px; }
.advisory { margin-top: 40px; padding-top: 30px; border-top: 1px solid #dfe6ef; max-width: 760px; }

/* ---------- readiness gap infographic ---------- */
.trl { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: 5px; margin-top: 44px; max-width: 920px; }
.trl-ev, .trl-bp { grid-row: 1; font-weight: 450; font-size: 16.5px; color: var(--ink); text-align: right; padding: 0 12px 12px 0; }
.trl-ev { grid-column: 1 / 6; }
.trl-bp { grid-column: 6 / 10; }
.trl-seg {
  grid-row: 2; position: relative; height: 36px; border-radius: 2px; background: #e4e8ee;
  display: flex; align-items: center; justify-content: center;
  font-family: "Fragment Mono", ui-monospace, monospace; font-size: 13.5px; color: var(--muted);
}
.trl-seg.done { background: var(--ink); color: #fff; }
.trl .s1 { grid-column: 1; } .trl .s2 { grid-column: 2; } .trl .s3 { grid-column: 3; }
.trl .s4 { grid-column: 4; } .trl .s5 { grid-column: 5; } .trl .s6 { grid-column: 6; }
.trl .s7 { grid-column: 7; } .trl .s8 { grid-column: 8; } .trl .s9 { grid-column: 9; }
.trl-seg.s5::after, .trl-seg.s9::after { content: ""; position: absolute; top: -14px; bottom: -14px; width: 2px; }
.trl-seg.s5::after { right: -3.5px; background: var(--ink); }
.trl-seg.s9::after { right: 0; background: var(--gold); }
.trl-hatch {
  grid-row: 2; grid-column: 6 / 10; z-index: 1; border-radius: 2px; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(217, 164, 65, 0.55) 0 1.6px, transparent 1.6px 7px);
}
.trl-bracket { grid-row: 3; grid-column: 6 / 10; height: 10px; margin-top: 18px; border: 1.5px solid var(--gold); border-top: 0; }
.trl-gap { grid-row: 4; grid-column: 6 / 10; text-align: center; font-weight: 450; font-size: 16.5px; color: var(--ink); margin-top: 10px; }
.trl-axis { grid-row: 4; grid-column: 1 / 6; font-size: 15px; color: var(--muted); margin-top: 10px; }

/* ---------- process lines ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps::before { content: ""; position: absolute; top: 16px; left: 12.5%; right: 12.5%; height: 1px; background: var(--rail); transform-origin: left center; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 10px; }
.steps .n {
  width: 33px; height: 33px; border-radius: 50%; border: 1.4px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fragment Mono", ui-monospace, monospace; font-size: 13px; color: var(--ink);
}
.gold .steps .n { background: var(--gold-tint); }
.blue .steps .n { background: var(--blue-tint); }
.gold .steps li:last-child .n { border-color: var(--gold); }
.blue .steps li:last-child .n { border-color: var(--blue); }
.steps .t { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ---------- training formats ---------- */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rung .bars { height: 64px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--rail); }
.rung .bar { width: 100%; border-radius: 2px 2px 0 0; transform-origin: center bottom; }
.r1 .bar { height: 16px; background: #dde6f1; }
.r2 .bar { height: 32px; background: #b3c7df; }
.r3 .bar { height: 48px; background: #7b9dc6; }
.r4 .bar { height: 64px; background: var(--blue-dk); }
.rung .it { margin-top: 14px; font-size: 16.5px; }
.rung .dur { font-family: "Fragment Mono", ui-monospace, monospace; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- sectors ---------- */
.sector { text-align: center; }
.sector .ico { width: 54px; height: 54px; margin: 0 auto; }
.sector p { font-size: 15px; line-height: 1.4; color: var(--body); margin-top: 10px; }

/* ---------- founder path ---------- */
.path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; }
.path::before { content: ""; position: absolute; top: 6px; left: 12.5%; right: 12.5%; height: 1px; background: var(--rail); }
.path li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
.path .dot { width: 13px; height: 13px; border-radius: 50%; border: 1.4px solid var(--ink); background: #fff; flex: none; }
.path li:last-child .dot { background: var(--gold); border-color: var(--gold); }
.path .org { display: block; font-weight: 450; font-size: 16px; line-height: 1.3; color: var(--ink); margin-top: 14px; }
.path .role { display: block; font-size: 14.5px; line-height: 1.4; color: var(--muted); margin-top: 4px; }

/* ---------- contact and footer ---------- */
.contact-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 40px; margin-top: 18px; }
.mail { font-weight: 300; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; color: var(--ink); text-decoration: none; }
.mail:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 20px; }
.place { font-size: 15px; color: var(--muted); }
.footer { border-top: 1px solid var(--line-soft); padding: 24px 0 34px; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer p { font-family: "Fragment Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--body); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- legal pages and 404 ---------- */
.topbar { background: var(--navy); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.topbar .back { color: var(--hero-sub); font-size: 15px; text-decoration: none; }
.topbar .back:hover { color: #fff; }
.page { max-width: 760px; padding-bottom: 72px; }
.page h1 { font-weight: 350; font-size: clamp(32px, 4vw, 44px); line-height: 1.15; color: var(--ink); margin-top: 52px; }
.page .note { font-size: 15px; color: var(--muted); margin-top: 10px; }
.page h2 { font-weight: 450; font-size: 19px; color: var(--ink); margin-top: 36px; }
.page p { margin-top: 10px; }
.page p + p { margin-top: 12px; }
.todo { background: #fff1c2; color: var(--ink); padding: 0 4px; border-radius: 2px; }
.notfound { min-height: 100vh; display: flex; flex-direction: column; }
.notfound .hero-in { padding-bottom: clamp(190px, 21vw, 300px); }
.notfound .hero { flex: 1; }
.notfound h1 { font-size: clamp(36px, 5vw, 60px); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: 1fr; gap: 26px; }
  .path { grid-template-columns: 1fr; row-gap: 18px; margin-top: 28px; }
  .path::before { display: none; }
  .path li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 15px; bottom: -19px; width: 1px; background: var(--rail); }
  .path li { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; padding: 0; }
  .path .dot { margin-top: 1px; }
  .path .org { margin-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; row-gap: 18px; }
  .steps::before { top: 16px; bottom: 16px; left: 16px; right: auto; width: 1px; height: auto; transform-origin: center top; }
  .steps li { flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 0; }
  .steps .n { flex: none; }
  .steps .t { margin-top: 0; }
  .ladder { gap: 10px; }
  .rung .it { font-size: 14.5px; }
  .rung .dur { font-size: 12px; }
  .trl { column-gap: 3px; }
  .trl-seg { font-size: 12px; height: 32px; }
  .trl-ev, .trl-bp, .trl-gap { font-size: 15px; }
  .trl-axis { font-size: 13.5px; }
}
@media (max-width: 480px) {
  .g4 { gap: 24px 18px; }
  .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- motion: only when the script has confirmed motion is welcome ---------- */
.anim .trl .trl-seg.done { background: #e4e8ee; color: var(--muted); transition: background-color 0.45s ease, color 0.45s ease; }
.anim .trl .s1 { transition-delay: 0.1s; }
.anim .trl .s2 { transition-delay: 0.25s; }
.anim .trl .s3 { transition-delay: 0.4s; }
.anim .trl .s4 { transition-delay: 0.55s; }
.anim .trl .s5 { transition-delay: 0.7s; }
.anim .trl.is-visible .trl-seg.done { background: var(--ink); color: #fff; }
.anim .trl .trl-hatch { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s cubic-bezier(0.45, 0, 0.2, 1) 1.5s; }
.anim .trl.is-visible .trl-hatch { clip-path: inset(0 0 0 0); }
.anim .trl .trl-ev, .anim .trl .s5::after { opacity: 0; transition: opacity 0.5s ease 1.15s; }
.anim .trl .trl-bp, .anim .trl .s9::after, .anim .trl .trl-bracket, .anim .trl .trl-gap { opacity: 0; transition: opacity 0.6s ease 2.7s; }
.anim .trl.is-visible .trl-ev, .anim .trl.is-visible .s5::after,
.anim .trl.is-visible .trl-bp, .anim .trl.is-visible .s9::after,
.anim .trl.is-visible .trl-bracket, .anim .trl.is-visible .trl-gap { opacity: 1; }

.anim .steps::before { transform: scaleX(0); transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s; }
.anim .steps.is-visible::before { transform: none; }
.anim .steps li { opacity: 0; transition: opacity 0.5s ease; }
.anim .steps li:nth-child(1) { transition-delay: 0.2s; }
.anim .steps li:nth-child(2) { transition-delay: 0.65s; }
.anim .steps li:nth-child(3) { transition-delay: 1.1s; }
.anim .steps li:nth-child(4) { transition-delay: 1.55s; }
.anim .steps.is-visible li { opacity: 1; }
@media (max-width: 640px) {
  .anim .steps::before { transform: scaleY(0); }
  .anim .steps.is-visible::before { transform: none; }
}

.anim .ladder .bar { transform: scaleY(0); transition: transform 0.7s cubic-bezier(0.3, 0, 0.2, 1); }
.anim .ladder .r1 .bar { transition-delay: 0.15s; }
.anim .ladder .r2 .bar { transition-delay: 0.4s; }
.anim .ladder .r3 .bar { transition-delay: 0.65s; }
.anim .ladder .r4 .bar { transition-delay: 0.9s; }
.anim .ladder.is-visible .bar { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.sectors-grid { margin-top: 38px; }

/* ---------- utilities ---------- */
.nowrap { white-space: nowrap; }
