@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/outfit.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Petrona';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/petrona-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Philosopher';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/philosopher-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Philosopher';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/philosopher-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* matthewc.ca — rebuilt from the Framer site (2026-10-19). Breakpoint: 810px (Framer's phone/tablet). */
:root {
  --ink: #111;
  --body: #333;
  --grey: #888;
  --box: #111;   /* solid: the caption labels match the dark sections exactly over any photo */
  --sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Philosopher', Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }
:focus-visible { outline: 2px solid #0099ff; outline-offset: 3px; }

/* ── Nav: over the hero; hides once the page scrolls down, returns on the way up ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: 32.4% 27.5% 1fr auto; align-items: start;
  padding: 22px 40px 0; height: 76px; font: 500 18px/1.2 var(--sans); color: #fff; transition: transform .45s var(--ease); }
.nav.away { transform: translateY(-150px); }
/* Away from the top, the nav returns on a filled banner, so it reads over any project. */
.nav.solid { background: #060606; }   /* the moon torch scene's own black at its top edge (3–10 across it) */
.nav small { display: block; font-size: inherit; color: var(--grey); }
/* LinkedIn, X, Instagram and Resume sit on the first line, level with "Work" and "Founder" (Matt, 2026-10-19). */
.nav .social { display: flex; gap: 14px; }
.nav .menu-btn, .nav .sheet { display: none; }
@media (hover: hover) { .nav a:hover { opacity: .7; } }

/* ── Hero: the Spline moon torch, the name and the roles ── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: #000; overflow: hidden; color: #fff; }   /* the scene's bottom edge (0–2), seen below the lifted canvas */
/* The scene is scenery: the page scrolls over it and it takes no pointer, as on the Framer site. */
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* Spline draws its first frames at its own default size before it fits the frame (a huge moon for a
   moment on reload): the scene stays hidden until it has loaded and settled, then fades in. */
.js .hero canvas { opacity: 0; transition: opacity .8s ease; }
.js .hero canvas.ready { opacity: 1; }
.hero .title { position: absolute; left: 0; right: 0; top: 70%;   /* below the centred torch (its tip reaches ~68% on short laptop windows) */ text-align: center; pointer-events: none; }
.hero h1 { margin: 0; font: 400 min(8.08vw, 13svh)/1 var(--serif);   /* capped by height so wide, short windows still fit */
   letter-spacing: -.04em; white-space: nowrap; }
.hero .roles { margin-top: 4.4vh; font: 700 min(3.38vw, 5.4svh)/1 var(--serif); letter-spacing: -.04em; white-space: nowrap; }
.hero .roles i { font: 400 1em/1 'Petrona', serif; font-style: normal; color: rgba(255, 255, 255, .4); margin: 0 .3em; }

/* ── "Hey, I'm Matt" ── */
.blurb { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 33px 40px; min-height: 396px; background: #000; }   /* pure black: the hero's bottom edge (0–2) and ReBlink below */
.blurb img { width: 330px; height: 330px; border-radius: 50%; object-fit: cover; flex: none; }
.blurb .words { width: 500px; color: #fff; }
.blurb .hey { font: 400 43px/1.2 var(--serif); letter-spacing: -.02em; }
.blurb .line { font: 400 39px/1.2 var(--serif); letter-spacing: -.02em; max-width: 440px; }

/* ── Projects ── */
.project { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--ink); color: #fff; }
.project > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap { position: absolute; top: var(--top); display: flex; flex-direction: column; gap: 20px; }
.cap.right { right: 0; align-items: flex-end; }
.cap.left { left: 0; align-items: flex-start; }
.cap .head { position: relative; background: var(--box); padding: 15px 60px 22px 27px; display: flex; flex-direction: column; gap: 14px;   /* hugs its lines: no gap under a one-line headline */
  border-top: 4px solid var(--accent); font: 400 30px/1.15 var(--serif); letter-spacing: -.02em; }
.cap .head img { width: 24px; height: auto; }
/* The project's year beside the helix mark, smaller (Matt, 2026-10-19). */
.cap .head .mark { display: flex; align-items: center; gap: 12px; }
.cap .head .mark small { font: 400 20px/1 var(--serif); letter-spacing: 0; color: rgba(255, 255, 255, .7); }
.cap .detail { background: var(--box); min-height: 88px; padding: 0 40px 0 27px; display: flex; align-items: center; font: 400 22px/1.2 var(--serif); letter-spacing: -.02em; }
.cap.right .head, .cap.right .detail { padding-right: 40px; }
/* The captions slide in from their side as the project comes into view. */
.cap > * { transition: transform .9s var(--ease), opacity .9s var(--ease); }
.cap > :nth-child(2) { transition-delay: .08s; } .cap > :nth-child(3) { transition-delay: .16s; }
.js .project:not(.seen) .cap.right > * { transform: translateX(105%); opacity: 0; }
.js .project:not(.seen) .cap.left > * { transform: translateX(-105%); opacity: 0; }

/* Details: a Basenotes Mainframe panel (Matt, 2026-10-19): cut corners edged in the project's accent,
   monospace capitals, corner brackets; + turns to × when open. */
.toggle { position: absolute; bottom: 30px; z-index: 3; background: none; border: 0; padding: 0; cursor: pointer;
  --cut: 10px; transition: filter .25s var(--ease); }
.toggle.left { left: 30px; }
.toggle.right { right: 30px; }
.toggle .hud { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px 0 17px;
  background: var(--accent); color: var(--accent); font: 600 12px/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .2em; text-transform: uppercase;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.toggle .hud::before { content: ""; position: absolute; inset: 1px; background: rgba(8, 8, 8, .9);
  clip-path: polygon(calc(var(--cut) - .4px) 0, 100% 0, 100% calc(100% - var(--cut) + .4px), calc(100% - var(--cut) + .4px) 100%, 0 100%, 0 calc(var(--cut) - .4px)); }
.toggle .hud > * { position: relative; }
.toggle .label { color: #fff; }
.toggle .plus { width: 12px; height: 12px; transition: transform .35s var(--ease); }
.toggle .plus::before, .toggle .plus::after { content: ""; position: absolute; left: 0; top: 5.25px; width: 12px; height: 1.5px; background: var(--accent); }
.toggle .plus::after { transform: rotate(90deg); }
.toggle::before, .toggle::after { content: ""; position: absolute; width: 8px; height: 8px; border: 0 solid var(--accent); pointer-events: none; }
.toggle::before { top: -4px; right: -4px; border-width: 1.5px 1.5px 0 0; }
.toggle::after { bottom: -4px; left: -4px; border-width: 0 0 1.5px 1.5px; }
@media (hover: hover) { .toggle:hover { filter: drop-shadow(0 0 7px var(--accent)); } }
.project.open .toggle .plus { transform: rotate(45deg); }

.details { position: absolute; inset: 0; z-index: 2; background: var(--ink); display: grid; grid-template-columns: 420px 420px; justify-content: center; column-gap: 60px;
  padding: max(60px, 10svh) 40px max(110px, 14svh); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s;
  font: 400 15px/1.35 var(--sans); color: #fff; }
.project.open .details { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.details h3 { margin: 0 0 16px; font: 600 16px/1.2 var(--sans); }
.details p + p { margin-top: 14px; }
.details .shot { margin-top: 18px; width: 420px; max-height: 300px; object-fit: cover; object-position: top; }
.details a { color: #9a19ff; text-decoration: underline; }
.details blockquote { margin: 14px 0 0; font-style: italic; }

/* ── Skills + footer (both pages) ── */
.skills { padding: 50px 50px 30px; background: #000; color: #fff; }
.skills h2, .resume h2 { margin: 0; font: 400 50px/1.2 var(--serif); letter-spacing: -.042em; color: var(--ink); }
.skills h2 { color: #fff; }
.skills .cols { display: grid; grid-template-columns: 440px 1fr; gap: 50px; padding: 18px 30px 0; }
.skills h4 { margin: 0 0 20px; font: 500 23px/1.2 var(--sans); color: var(--grey); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: #fff; color: #000; border-radius: 50px; padding: 0 15px; height: 40px; display: inline-flex; align-items: center; font: 600 18px/1.2 var(--sans); }
.methods { list-style: none; margin: -6px 0 0; padding: 0; font: 500 30px/42px var(--sans); letter-spacing: -.023em; color: #fff; }
.foot { padding: 30px 40px 40px; background: #000; }
.foot .icons { display: flex; gap: 10px; }
.foot .icons img { width: 56px; height: 56px; filter: invert(1); }   /* the icons are black artwork */
@media (hover: hover) { .foot a:hover, .resume a.co:hover { opacity: .7; } }

/* ── Resume ── */
/* The résumé page is dark too (Matt, 2026-10-19): black, as the home page's sections. */
.resume-top { height: 135px; background: #000; }
.resume { padding: 60px 40px 40px; background: #000; color: #fff; }
.resume h2 { color: #fff; }
.jobs { margin: 40px 0 0 230px; max-width: 900px; display: grid; gap: 64px; }
.job .when, .job .role { font: 500 16px/24px 'Inter', var(--sans); letter-spacing: -.044em; color: var(--grey); }
.job .role b { font-weight: 500; color: #fff; }
.job .co { display: inline-block; font: 400 50px/60px var(--serif); letter-spacing: -.042em; color: #fff; }
.job .say { margin-top: 18px; display: grid; gap: 20px; font: 400 18px/1.2 var(--sans); color: rgba(255, 255, 255, .8); }
.pdf { display: flex; justify-content: center; margin: 64px 0 10px; }
.pdf a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 50px; background: #fff; color: #000; font: 600 16px/1 var(--sans); }

/* ── Phones and small tablets ── */
@media (max-width: 809px) {
  .nav { display: flex; justify-content: space-between; padding: 20px 30px 0; height: auto; }
  .nav .founder, .nav .social, .nav .nav-resume { display: none; }
  .nav .sheet { display: flex; }
  .nav .menu-btn { display: block; width: 36px; height: 36px; margin-top: 8px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; z-index: 2; }
  .nav .menu-btn::before, .nav .menu-btn::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
  .nav .menu-btn::before { top: 10px; } .nav .menu-btn::after { top: 22px; }
  .nav.menu-open .menu-btn::before { top: 16px; transform: rotate(45deg); }
  .nav.menu-open .menu-btn::after { top: 16px; transform: rotate(-45deg); }
  .sheet { position: fixed; inset: 0; z-index: 1; background: var(--ink); padding: 118px 50px 40px; display: flex; flex-direction: column; gap: 6px;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
  .nav.menu-open .sheet { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }
  .sheet .big { font: 500 40px/1.1 var(--sans); }
  .sheet .small { font: 500 18px/1.2 var(--sans); margin-top: 8px; }
  .sheet .small:first-of-type { margin-top: 74px; }

  .hero .title { top: 69%; }
  .hero h1 { font-size: 7.9vw; }
  .hero .roles { margin-top: 2.2vh; font-size: 4.8vw; }

  .blurb { flex-direction: column; gap: 26px; padding: 50px 30px 60px; text-align: center; }
  .blurb .words { width: auto; }
  .blurb .line { font-size: 30px; margin: 4px auto 0; max-width: 300px; }

  .cap { top: var(--top-phone, 33.4%); gap: 15px; }
  .cap .head { gap: 10px; padding: 12px 24px 18px 20px; font-size: 22px; border-top-width: 3px; }
  .cap .head img { width: 20px; }
  .cap .head .mark small { font-size: 16px; }
  .cap .detail { min-height: 65px; padding: 0 20px; font-size: 16px; }
  .cap .head { font-size: var(--head-phone, 22px); }
  .toggle .hud { height: 38px; gap: 10px; padding: 0 13px 0 14px; font-size: 11px; }
  .toggle.left { left: 24px; } .toggle.right { right: 24px; }

  .details { display: block; padding: max(40px, 10svh) 24px max(100px, 14svh); }
  .details .col + .col { margin-top: 30px; }
  .details .shot { width: 100%; max-height: none; }

  .skills { padding: 50px 30px 20px; }
  .skills .cols { grid-template-columns: 1fr; gap: 40px; padding: 18px 0 0; }
  .methods { font-size: 20px; line-height: 32px; }
  .foot { padding: 30px 30px 40px; }

  .resume { padding: 50px 24px 30px; }
  .jobs { margin-left: 0; gap: 48px; }
  .job .co { font-size: 38px; line-height: 46px; }
  .job .say { font-size: 16px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  .js .project:not(.seen) .cap > * { transform: none; opacity: 1; }
}
