/* matthills.ca — dark navy, matches the slide deck */
:root {
  --bg: #0c121d;
  --bg-deep: #070b12;
  --surface: #101826;
  --deco: #101826;
  --border: #1e2b3c;
  --border-strong: #2a3d54;
  --heading: #ffffff;
  --ink: #f8fafc;
  --body: #cbd5e1;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --brand: #0f6fbb;
  --brand-hover: #1580d6;
  --amber: #fbbf24;
  --deep-text: #60a5fa;
  --chip-fg: #7dd3fc;
  --chip-bg: rgba(56,189,248,.06);
  --hot-fg: #fbbf24;
  --hot-border: #a16207;
  --hot-bg: rgba(245,158,11,.08);
  --nav-bg: rgba(12,18,29,.85);
  --card-shadow: 0 24px 50px -28px rgba(0,0,0,.9);
  --avatar-glow: rgba(56,189,248,.45);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #fbfcfd;
  --bg-deep: #f2f5f8;
  --surface: #ffffff;
  --deco: #eaf1f8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --heading: #090e17;
  --ink: #090e17;
  --body: #334155;
  --muted: #64748b;
  --accent: #0f6fbb;
  --brand: #0f6fbb;
  --brand-hover: #0a4f87;
  --amber: #d97706;
  --deep-text: #0a4f87;
  --chip-fg: #0a4f87;
  --chip-bg: #eff6fc;
  --hot-fg: #b45309;
  --hot-border: #fbbf24;
  --hot-bg: #fffbeb;
  --nav-bg: rgba(251,252,253,.88);
  --card-shadow: 0 1px 2px rgba(9,14,23,.05), 0 14px 34px -18px rgba(9,14,23,.18);
  --avatar-glow: rgba(15,111,187,.28);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; transition: background .3s, color .3s; background: var(--bg); color: var(--body); font: 400 17px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { color: var(--ink); font-weight: 800; letter-spacing: -.01em; text-decoration: none; font-size: 18px; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -12px rgba(15,111,187,.8); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.nav .btn { padding: 8px 14px; font-size: 14px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; border-left: 6px solid var(--accent); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: var(--deco); z-index: 0; }
.hero::before { width: 620px; height: 620px; right: -180px; top: -300px; }
.hero::after { width: 380px; height: 380px; left: 38%; bottom: -260px; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.avatar { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 8px var(--bg), 0 0 0 13px var(--accent), 0 30px 80px -20px var(--avatar-glow); }
.hero h1 { color: var(--heading); font-size: clamp(44px, 6vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.035em; margin: 0 0 14px; }
.roles { color: var(--accent); font-size: 20px; font-weight: 500; margin: 0 0 18px; }
.roles b { color: var(--border-strong); margin: 0 10px; font-weight: 400; }
.lede { font-size: 19px; color: var(--body); max-width: 620px; margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.chip { font-size: 13px; font-weight: 600; color: var(--chip-fg); padding: 5px 12px; border: 1px solid var(--border-strong); background: var(--chip-bg); border-radius: 5px; }
.chip.hot { color: var(--hot-fg); border-color: var(--hot-border); background: var(--hot-bg); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* stats */
.stats { background: var(--bg-deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .v { color: var(--heading); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* sections */
section.block { padding: 88px 0; }
section.alt { background: var(--bg-deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
h2 { color: var(--heading); font-size: 36px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 14px; }
.section-lede { max-width: 640px; color: var(--muted); margin: 0 0 40px; }

/* focus cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: 8px; padding: 26px 26px 28px; border-top: 4px solid var(--accent); box-shadow: var(--card-shadow); }
.card.amber { border-top-color: var(--amber); } .card.deep { border-top-color: var(--brand); }
.card h3 { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 19px; margin: 0 0 10px; }
.card.amber h3 { color: var(--amber); } .card.deep h3 { color: var(--deep-text); }
.card p { margin: 0; font-size: 15.5px; }

/* career */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 132px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { display: grid; grid-template-columns: 132px 1fr; gap: 0 36px; padding-bottom: 34px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 126px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-deep); box-shadow: 0 0 0 3px var(--border-strong); }
.timeline li:first-child::after { background: var(--amber); box-shadow: 0 0 0 3px var(--amber), 0 0 20px 3px rgba(251,191,36,.35); }
.timeline .when { color: var(--muted); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline h3 { color: var(--heading); font-size: 19px; margin: 0 0 4px; }
.timeline h3 span { color: var(--muted); font-weight: 500; }
.timeline p { margin: 0; max-width: 680px; }
.timeline .path { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* tools */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
.tool { box-shadow: var(--card-shadow); display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px 22px; transition: border-color .15s, transform .15s; }
.tool:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool h3 { color: var(--heading); font-size: 17px; margin: 0 0 4px; display: flex; justify-content: space-between; gap: 12px; }
.tool h3 i { color: var(--accent); font-size: 14px; }
.tool p { color: var(--muted); margin: 0; font-size: 15px; }

/* connect */
.connect { text-align: center; }
.connect h2 { font-size: 40px; }
.connect p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* footer */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; min-height: 64px; padding-top: 14px; padding-bottom: 14px; font-size: 14px; font-weight: 600; }
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .sep { width: 1px; height: 18px; background: var(--border-strong); }
.footer .loc { color: var(--muted); font-weight: 500; margin-left: auto; }

/* simple pages (404 / 500) */
.simple { padding: 120px 0; text-align: center; }
.simple h1 { color: var(--heading); font-size: 44px; letter-spacing: -.02em; margin: 0 0 12px; }

/* responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .avatar { width: 170px; height: 170px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .cards, .tools { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  .timeline::before, .timeline li::after { display: none; }
  .timeline li { grid-template-columns: 1fr; }
  .footer .loc { margin-left: 0; }
}

/* theme toggle */
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border-strong); color: var(--muted); border-radius: 8px; padding: 6px 10px; font: 500 13px/1 Inter, sans-serif; cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }
.theme-toggle .t-label { min-width: 2.6em; text-align: left; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* featured app */
.featured { display: grid; grid-template-columns: 96px 1fr; gap: 28px; background: var(--surface); border-radius: 10px; padding: 30px; border-top: 4px solid var(--amber); box-shadow: var(--card-shadow); margin-bottom: 44px; }
.featured img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 14px 30px -14px rgba(15,111,187,.7); }
.featured h3 { color: var(--heading); font-size: 26px; letter-spacing: -.02em; margin: 0 0 4px; display: flex; align-items: center; gap: 12px; }
.featured .new { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--hot-fg); border: 1px solid var(--hot-border); background: var(--hot-bg); border-radius: 4px; padding: 3px 7px; }
.featured .tagline { color: var(--accent); font-weight: 600; margin: 0 0 10px; }
.featured p { margin: 0 0 16px; max-width: 720px; }
.featured .chips { margin-bottom: 20px; }
.subhead { color: var(--heading); font-size: 18px; margin: 0 0 16px; }
@media (max-width: 600px) { .featured { grid-template-columns: 1fr; padding: 24px; } }

/* long-form pages: site privacy, app privacy/terms */
.legal .wrap, .privacy_text { max-width: 760px; }
.legal h3 { color: var(--heading); font-size: 19px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--body); }
.muted-line { color: var(--muted); font-size: 14px; }
.privacy_text { margin: 0 auto; padding: 72px 28px; color: var(--body); }
.privacy_text h1 { color: var(--heading); font-size: 34px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 12px; }
.privacy_text strong { color: var(--heading); display: inline-block; margin-top: 18px; }
.privacy_text li { margin-bottom: 4px; }
