/* Corridor Risk & Engagement · www.corridorrisk.ca
   Layout: deep-purple bands bracket off-white reading sections; the logo's lime corridor line is the one bold move.
   Single, brand-fixed theme (the brand is purple on paper in every context). */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --ink: #2B1645;        /* deep purple: header, hero, contact, headings */
  --ink-2: #3A2359;      /* raised surfaces on ink */
  --plum: #5B2D8E;       /* links, buttons on paper, labels */
  --lav: #B89AE0;        /* hexagon, labels on ink */
  --lav-soft: #D9CCEE;   /* soft text on ink */
  --lime: #B4D335;       /* the corridor line; accents on ink only */
  --green: #76A012;      /* rules on paper */
  --paper: #FBFAFD;      /* reading background */
  --tint: #F3EFF8;       /* alternate sections */
  --text: #241B31;
  --muted: #5B5068;
  --line: #DED6EA;
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wide: 118%;          /* heading width, echoing the extended wordmark */
  --measure: 66ch;
  --r: 6px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--plum); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; z-index: 20; font-weight: 700; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

.wrap {
  max-width: 1160px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-tint { background: var(--tint); }
.band-ink { background: var(--ink); color: var(--lav-soft); }

/* ---------- type ---------- */
.h1, .h2, .h3, .h4 { color: var(--ink); font-stretch: var(--wide); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.06; font-weight: 800; color: #fff; }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); line-height: 1.12; font-weight: 780; }
.h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 750; }
.h4 { font-size: 1.06rem; line-height: 1.3; font-weight: 720; }
.on-ink { color: #fff; }
.on-ink-soft { color: var(--lav-soft); }
.eyebrow {
  margin: 0 0 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--plum); font-stretch: 112%;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--green); flex: none; }
.eyebrow-lav { color: var(--lav); }
.eyebrow-lime { color: var(--lime); }
.eyebrow-lav::before, .eyebrow-lime::before { background: var(--lime); }
.lede { font-size: 1.15rem; max-width: var(--measure); margin: 18px 0 0; color: var(--muted); }
.band-ink .lede { color: var(--lav-soft); }
.note { font-size: 0.92rem; color: var(--muted); max-width: var(--measure); margin: 28px 0 0; }
.strong-note { color: var(--ink); font-weight: 600; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- header ---------- */
.site-head { background: var(--ink); border-bottom: 1px solid var(--ink-2); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.brand { display: block; line-height: 0; }
.logo { width: 196px; height: auto; display: block; }
.nav-list { display: flex; gap: 28px; }
.nav a { color: var(--lav-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: #fff; }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; color: #fff; font-weight: 700; padding: 8px 14px;
  border: 1px solid var(--lav); border-radius: var(--r); font-size: 0.95rem;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--ink-2); border-radius: var(--r);
  padding: 10px; min-width: 200px; display: grid; gap: 2px; z-index: 5; box-shadow: 0 12px 30px rgba(20, 8, 36, 0.35);
}
.nav-menu ul a { display: block; padding: 10px 12px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-copy { min-width: 0; }
.hero .lede { font-size: 1.2rem; }
.hero-visual { min-width: 0; }
.hero-art { width: 100%; height: auto; display: block; }
.route { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .route { animation: draw 1.6s cubic-bezier(.6, .05, .3, 1) both 0.2s; }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: var(--r);
  font-weight: 700; text-decoration: none; font-stretch: 108%; font-size: 1rem; border: 2px solid transparent;
}
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #C6E152; }
.btn-ghost { color: #fff; border-color: var(--lav); }
.btn-ghost:hover { background: var(--ink-2); }
.btn-ink { background: var(--ink); color: #fff; }

/* ---------- grids ---------- */
.grid-4, .grid-3 { display: grid; gap: 28px 32px; margin-top: 40px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 > li, .grid-3 > li { min-width: 0; border-top: 2px solid var(--ink); padding-top: 16px; }
.grid-4 p, .grid-3 p { margin-top: 8px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.two-col > * { min-width: 0; }

/* ---------- figures ---------- */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.figs li { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.fig { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--ink); font-stretch: 125%; line-height: 1; font-variant-numeric: tabular-nums; }
.fig-cap { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }

/* ---------- route map ---------- */
.route-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; position: relative; }
.route-map::before {
  content: ""; position: absolute; left: 9px; right: 9px; top: 9px; height: 5px; border-radius: 3px;
  background: var(--green);
}
.stop { position: relative; padding-top: 40px; min-width: 0; }
.stop-dot { position: absolute; top: 0; left: 0; width: 23px; height: 23px; border-radius: 50%; background: var(--paper); border: 5px solid var(--green); }
.stop:first-child .stop-dot, .stop:last-child .stop-dot { background: var(--green); }
.stop-when { margin: 0 0 6px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--plum); }
.stop p:last-child { color: var(--muted); margin-top: 8px; }

/* ---------- services ---------- */
.svcs { margin-top: 40px; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.svc { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 20px 48px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.svc-head { min-width: 0; }
.svc-num { margin: 0 0 6px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--plum); }
.svc-when { margin-top: 12px; color: var(--muted); font-size: 0.97rem; }
.svc-when span { font-weight: 700; color: var(--ink); }
.ticks { display: grid; gap: 9px; min-width: 0; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 14px; height: 3px; background: var(--green); }

/* ---------- lists ---------- */
.clients, .standards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.clients li, .standards li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.clients strong { color: var(--ink); display: block; font-stretch: 108%; }
.standards li { color: var(--text); padding-left: 26px; position: relative; }
.standards li::before { content: ""; position: absolute; left: 0; top: 1.28em; width: 12px; height: 12px; border: 3px solid var(--plum); transform: rotate(45deg) scale(0.8); }
.exp .ex-where { margin: 0 0 6px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--plum); }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.founder-copy { min-width: 0; max-width: 70ch; }
.portrait { width: 100%; height: auto; border-radius: var(--r); display: block; max-width: 100%; }
.portrait-empty {
  background: var(--ink); color: var(--lav); display: grid; place-content: center; text-align: center; gap: 6px;
}
.portrait-empty span { font-size: 4rem; font-weight: 800; font-stretch: 125%; color: #fff; line-height: 1; }
.portrait-empty small { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.role { color: var(--plum); font-weight: 700; margin: 8px 0 18px; letter-spacing: 0.02em; }
.creds { margin-top: 20px; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.creds li { padding-left: 26px; position: relative; color: var(--muted); }
.creds li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 14px; height: 3px; background: var(--green); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink-2); }
.contact-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ink-2); }
.contact-list dt { color: var(--lav); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding-top: 3px; }
.contact-list dd { margin: 0; color: #fff; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list a { color: #fff; }

/* ---------- footer ---------- */
.site-foot { background: #1F0F33; color: var(--lav-soft); padding-block: 32px; font-size: 0.92rem; }
.foot-row { display: grid; gap: 6px; }
.foot-line { margin: 0; }
.site-foot strong { color: #fff; }
.site-foot a { color: var(--lav-soft); }
.small { font-size: 0.85rem; opacity: 0.9; }

/* ---------- privacy and 404 ---------- */
.prose { max-width: 760px; }
.prose .h4 { margin-top: 28px; margin-bottom: 8px; }
.nf { min-height: 50vh; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-list { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 760px) {
  .hero-grid, .two-col, .founder, .contact-grid, .svc { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 300px; order: -1; }
  .route-map { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-left: 40px; }
  .route-map::before { left: 9px; right: auto; top: 9px; bottom: 9px; width: 5px; height: auto; }
  .stop { padding-top: 0; }
  .stop-dot { left: -40px; }
  .founder .portrait { max-width: 320px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .figs { grid-template-columns: minmax(0, 1fr); }
  .logo { width: 160px; }
  .contact-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- insights ---------- */
.empty-note { margin-top: 36px; border-top: 2px solid var(--ink); padding-top: 18px; max-width: var(--measure); }
.empty-note p { color: var(--muted); }
.empty-note .h4 { color: var(--ink); margin-bottom: 6px; }
.art-link { color: var(--ink); text-decoration: none; }
.art-link:hover { text-decoration: underline; }
.art-body { margin-top: 24px; font-size: 1.08rem; }
.art-body .h3 { margin: 28px 0 10px; }
.art-body .ticks { margin: 0 0 14px; }
.btn-outline { color: var(--ink); border-color: var(--ink); }
