/* iShare® project page: Holland Bloorview Level 1 (working prototype).
   Tokens match the 3D app (src/ui/styles.css) and the iShare® healthcare
   project pages: white cards, Poppins titles, ink #0E141B, amber prototype pill. */

@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Variable'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); }

:root {
  --ink: #0e141b;
  --ink-2: #44515c;
  --ink-3: #6b7781;
  --paper: #ffffff;
  --canvas: #f6f4ef;
  --line: rgba(14, 20, 27, 0.1);
  --accent: #1f6f78;
  --accent-soft: rgba(31, 111, 120, 0.1);
  --amber: #ecad2c;
  --amber-soft: #fbeedd;
  --amber-ink: #7a3d07;
  --draft: #8a5a0c;
  --draft-bg: rgba(236, 173, 44, 0.14);
  --shadow: 0 10px 30px rgba(14, 34, 42, 0.1), 0 2px 6px rgba(14, 34, 42, 0.05);
  --radius: 14px;
  --font: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: Poppins, 'Inter Variable', system-ui, sans-serif;
  --wrap: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Element rules are scoped to .hb, the wrapper around this page's own content, with :where() so they keep
   element-level weight. On iShare.ca the shared site header and footer sit outside .hb and stay untouched. */
body { margin: 0; background: var(--paper); }
.hb { font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 16.5px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
:where(.hb) img, :where(.hb) video { display: block; max-width: 100%; }
:where(.hb) a { color: inherit; }
:where(.hb) :is(h1, h2, h3) { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; margin: 0; }
:where(.hb) h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; margin-bottom: 18px; }
:where(.hb) h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
:where(.hb) p { margin: 0 0 14px; }
:where(.hb) code { font-size: 0.92em; background: rgba(255, 255, 255, 0.12); padding: 1px 5px; border-radius: 4px; }
:where(.hb) :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
:where(.hb) svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.small { font-size: 13.5px; line-height: 1.55; }
.muted { color: var(--ink-3); }
.mono { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0; }

.eyebrow { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.eyebrow.light { color: rgba(255, 255, 255, 0.82); margin: 0; }
.pill { display: inline-block; font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--amber-soft); color: var(--amber-ink); padding: 3px 9px; border-radius: 6px; line-height: 1.5; white-space: nowrap; }

/* ------------------------------------------------------------------ draft bar and header */
.draftbar { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 16px; background: var(--amber-soft); color: var(--amber-ink); font-size: 13px; font-weight: 500; text-align: center; line-height: 1.45; }
.draftbar .pill { background: var(--amber); color: var(--ink); }

.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 22px; text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; gap: 2px; letter-spacing: -0.02em; }
.wordmark sup { font-size: 0.55em; font-weight: 600; position: relative; top: -0.05em; margin-left: 1px; }
.wm-sub { font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--ink-3); margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); letter-spacing: 0; }
.head-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
.head-nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.head-nav a:hover { color: var(--ink); border-bottom-color: var(--amber); }

.hb-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; white-space: nowrap; }
.hb-btn:hover { transform: translateY(-1px); }
.hb-btn-sm { padding: 9px 16px; font-size: 13.5px; }
.hb-btn-ink { background: var(--ink); color: #fff; }
.hb-btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 6px 18px rgba(236, 173, 44, 0.3); }
.hb-btn-amber:hover { background: #f2bb47; }
.hb-btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: rgba(14, 20, 27, 0.2); }
.hb-btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.text-link { color: var(--accent); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.text-link::after { content: ' \2192'; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(14, 20, 27, 0.82) 0%, rgba(14, 20, 27, 0.55) 38%, rgba(14, 20, 27, 0.08) 70%),
  linear-gradient(0deg, rgba(14, 20, 27, 0.75) 0%, rgba(14, 20, 27, 0) 45%); }
.hero-copy { position: relative; padding: 96px 0 64px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.86); text-decoration: none; margin-bottom: 28px; }
.back:hover { color: #fff; }
.eyebrow-row { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.hero h1 { max-width: 980px; }
.h1-main { display: block; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -0.03em; max-width: 12.5em; }
.h1-sub { display: block; font-size: clamp(17px, 1.9vw, 24px); line-height: 1.3; font-weight: 600; margin-top: 14px; color: rgba(255, 255, 255, 0.9); max-width: 46ch; letter-spacing: -0.01em; }
.lead { font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.6; max-width: 56ch; margin: 22px 0 30px; color: rgba(255, 255, 255, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tools { position: absolute; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 12px; z-index: 2; }
.media-note { font-size: 12px; color: rgba(255, 255, 255, 0.78); background: rgba(14, 20, 27, 0.45); padding: 4px 10px; border-radius: 999px; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(14, 20, 27, 0.45); color: #fff; display: grid; place-items: center; cursor: pointer; }
.round-btn .i-play, .paused .round-btn .i-pause { display: none; }
.paused .round-btn .i-play { display: block; }
.round-btn svg path[d^='M8 5l'] { fill: currentColor; }

/* ------------------------------------------------------------------ facts */
.facts { background: var(--ink); color: #fff; padding: 26px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.facts-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 2px solid rgba(236, 173, 44, 0.7); }
.fact-num { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; }
.fact-label { font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.74); }

/* ------------------------------------------------------------------ sections */
.section { padding: 96px 0; }
.section.alt { background: var(--canvas); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-lead { font-size: 18px; color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.split > div > p { color: var(--ink-2); }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.status-card { padding: 28px; }
.status-card h3 { margin-bottom: 14px; }
.ticks, .plain { margin: 0 0 14px; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-2); font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent); }
.plain li { position: relative; padding-left: 18px; margin-bottom: 8px; color: var(--ink-2); font-size: 15px; }
.plain li::before { content: ''; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); }
.note { font-size: 14px; color: var(--ink-3); margin-top: 22px; max-width: 900px; }
.note strong { color: var(--ink-2); }

/* ------------------------------------------------------------------ media */
.media { position: relative; aspect-ratio: 16 / 9; background: #1b2229; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.media video { width: 100%; height: 100%; object-fit: cover; }
.media.wide { border-radius: var(--radius) var(--radius) 0 0; }
.media.tall.card { border-radius: var(--radius); }
.media-toggle { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(14, 20, 27, 0.62); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background 0.15s; }
.media-toggle:hover { background: rgba(14, 20, 27, 0.85); }
.media-toggle::before { content: ''; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.media.playing .media-toggle::before { width: 10px; height: 13px; border: 0; border-left: 3px solid #fff; border-right: 3px solid #fff; margin-left: 0; }
.caption { font-size: 14px; color: var(--ink-3); padding: 14px 20px 16px; margin: 0; }

.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.way { overflow: hidden; display: flex; flex-direction: column; }
.way-body { padding: 22px 24px 24px; }
.way-body p { color: var(--ink-2); font-size: 15.5px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

.feature-video { overflow: hidden; margin-bottom: 28px; }
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.room { overflow: hidden; }
.room img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.room-body { padding: 22px 24px 24px; }
.room-body p:not(.eyebrow) { color: var(--ink-2); font-size: 15.5px; }

/* ------------------------------------------------------------------ stories */
.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.story { overflow: hidden; display: flex; flex-direction: column; }
.player { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 120% at 20% 10%, #24323d 0%, #0e141b 70%); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-btn { position: absolute; inset: 0; width: 100%; border: 0; background: none; color: #fff; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 24px; text-align: left; font: inherit; }
.player-btn .play { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.15s; }
.player-btn:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.player-btn .play::before { content: ''; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink); margin-left: 5px; }
.player-title { font-family: var(--display); font-weight: 700; font-size: 20px; }
.player-meta { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.story-body { padding: 18px 24px 22px; }
.story-body p { color: var(--ink-2); font-size: 15px; }
.story-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.story-links a { color: var(--accent); font-weight: 600; }
.attrib { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }

/* ------------------------------------------------------------------ giving */
.giving-intro { margin-bottom: 44px; align-items: center; }
.draft-callout { display: flex; gap: 12px; align-items: flex-start; background: var(--draft-bg); color: var(--draft); padding: 14px 16px; border-radius: 12px; margin-top: 18px; }
.draft-callout p { margin: 0; font-size: 14.5px; color: var(--draft); }
.draft-callout svg { margin-top: 2px; }
.opp-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.filter[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.opp-count { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.opps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.opp { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.opp[hidden] { display: none; }
.opp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.opp-cat { font-size: 12px; font-weight: 600; color: var(--accent); }
.badge-draft { font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--amber-soft); color: var(--amber-ink); padding: 2px 7px; border-radius: 5px; }
.opp h3 { font-size: 17.5px; margin: 0; }
.opp-num { color: var(--ink-3); font-weight: 600; margin-right: 2px; }
.opp-sum { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.opp-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-3); }
.ev { display: inline-flex; align-items: center; gap: 6px; }
.ev-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.ev-plan { background: var(--accent); }
.ev-video { background: var(--amber); }
.ev-proposed { background: #fff; border: 1.5px solid #c08a2e; }
.ev-illustrative { background: #fff; border: 1.5px solid #8c969d; }
.ev-placeholder { background: #c9cdd0; }
.opp-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.amount { display: flex; flex-direction: column; }
.amount-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.amount-value { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.opp-foot a { font-size: 13px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.evidence-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------------------------ built */
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 24px 22px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.confirm h3 { font-size: 18px; margin-bottom: 12px; }

/* ------------------------------------------------------------------ approvals */
.approvals { margin: 0; padding: 0; list-style: none; counter-reset: a; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.approvals li { counter-increment: a; position: relative; padding: 18px 18px 18px 56px; border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; color: var(--ink-2); background: #fff; }
.approvals li::before { content: counter(a); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-ink); font-family: var(--display); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.approvals strong { color: var(--ink); }

/* ------------------------------------------------------------------ CTA and footer */
.cta { padding: 0 0 96px; }
.cta-card { position: relative; border-radius: 20px; overflow: hidden; background: var(--ink); color: #fff; min-height: 420px; display: flex; align-items: flex-end; }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.cta-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 20, 27, 0.92) 0%, rgba(14, 20, 27, 0.6) 50%, rgba(14, 20, 27, 0.15) 100%); z-index: 1; }
.cta-copy { position: relative; z-index: 2; padding: 56px; max-width: 640px; }
.cta-copy h2 { font-size: clamp(32px, 4vw, 50px); margin: 10px 0 14px; }
.cta-copy > p { color: rgba(255, 255, 255, 0.86); }
.cta-note { color: rgba(255, 255, 255, 0.66) !important; margin-top: 18px; }

.site-foot { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding: 44px 0 52px; font-size: 13.5px; }
.foot-row { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.small-wm { color: #fff; font-size: 20px; margin: 0 0 4px; }
.site-foot .mono { color: rgba(255, 255, 255, 0.55); }
.foot-text p { margin-bottom: 10px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .head-nav { display: none; }
  .head-row .hb-btn { margin-left: auto; }
  .facts-row { grid-template-columns: repeat(3, 1fr); }
  .opps { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .approvals { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .ways, .rooms, .stories { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hb { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .draftbar { font-size: 12.5px; padding: 8px 14px; gap: 8px; }
  .head-row { height: 58px; }
  .wm-sub { display: none; }
  /* hero: copy first on ink, then the video as a 16:9 frame */
  .hero { display: flex; flex-direction: column-reverse; min-height: 0; align-items: stretch; }
  .hero-media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .hero-shade { background: linear-gradient(0deg, rgba(14, 20, 27, 0.35) 0%, rgba(14, 20, 27, 0) 40%); }
  .hero-copy { padding: 26px 0 30px; }
  .back { margin-bottom: 22px; }
  .h1-main { font-size: 38px; }
  .lead { margin: 16px 0 22px; }
  .hero-actions .hb-btn { flex: 1 1 auto; justify-content: center; }
  .hero-tools { right: 12px; bottom: 12px; }
  .media-note { font-size: 11px; }
  .facts-row { grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
  .fact-num { font-size: 26px; }
  .section { padding: 64px 0; }
  .section-lead { font-size: 16.5px; }
  .opps, .steps, .approvals { grid-template-columns: 1fr; }
  .cta { padding-bottom: 56px; }
  .cta-card { min-height: 0; border-radius: 16px; }
  .cta-copy { padding: 32px 24px; }
  .foot-row { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 420px) {
  .head-row .hb-btn { padding: 8px 12px; font-size: 12.5px; }
  .fact:last-child { grid-column: 1 / -1; }
}
