/* Fonts from the live site: Circular for text, Supra for the name logo. */
@font-face {
  font-family: "Circular Std";
  src: url("assets/fonts/circular-std-book.woff2") format("woff2");
  font-weight: 400 450;
  font-display: swap;
}
@font-face {
  font-family: "Circular Std";
  src: url("assets/fonts/circular-std-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Supra";
  src: url("assets/fonts/supra-demibold-extended.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  /* Colour tokens copied from the Framer site (audroue.com), light values here and dark values in the
     prefers-color-scheme block below. Framer's token ids are noted so they can be traced back. */
  --bg: #fff;            /* token-9f13b674: page background */
  --tint: #f7f9fa;       /* token-39f67d79: tinted sections (outside of work, leadership, about, contact) */
  --ink: #000;           /* token-f9339503: text */
  --muted: #878787;      /* token-c6253b52: secondary text */
  --soft: #878787;
  --rule: #e8e8e8;       /* token-997ffcd0: dividers */
  --inverse: #fff;       /* token-ca678299: text on an --ink fill */
  --glass: rgba(255, 255, 255, .3); /* the header's frosting (Framer's token-a8738d99 is #fff6 / #0006) */
  --line: #cfcfcf;       /* token-39992556: input and pill outlines */
  --surface: #fff;       /* cards and the contact form */
  --surface-line: #e8e9eb;
  --quote: #e9eef3;
  --quote-line: transparent;
  --card-ink: #0b0f14;
  --quote-ink: #5f6b76;
  --qmark: #c9d3db;
  --canvas: 1372px;
  --x0: max(0px, calc(50% - var(--canvas) / 2));
  --sans: "Circular Std", "Helvetica Neue", Arial, sans-serif;
  /* One screen tall: the hero (reel, gradient, headline) always fills exactly this. The script
     replaces it with a pixel value on the zoomed wide canvas, where vh units would be scaled. */
  --screen: 100vh;
}
@supports (height: 100dvh) { :root { --screen: 100dvh; } }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --tint: #0c0f12;
    --ink: #fff;
    --muted: #7d7d7d;
    --soft: #7d7d7d;
    --rule: rgba(255, 255, 255, .18);
    --inverse: #000;
    --glass: rgba(11, 11, 11, .5); /* the page colour, so the bar never reads darker than what is behind it */
    --line: rgba(77, 77, 77, .6);
    /* Framer's dark Leadership cards and contact chips */
    --surface: #14181c;
    --surface-line: rgba(161, 161, 161, .1);
    --quote: #0c1114;
    --quote-line: rgba(90, 110, 126, .28);
    --card-ink: #fff;
    --quote-ink: #9aa5ae;
    --qmark: #3a4651;
    }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* Nav links glide to their section instead of jumping, stopping clear of the sticky header. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.jump { scroll-behavior: auto; } /* set while landing on a #section from another page */
#projects, #leadership, #about, #side-projects, #contact { scroll-margin-top: 72px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { display: block; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; }
b, strong { font-weight: 500; color: var(--ink); }

.hero {
  position: relative;
  background: var(--bg) url("assets/hero.jpg") center top no-repeat;
  /* Cover one screen (not the whole hero box, which can run taller) without stretching the still. */
  background-size: max(100%, var(--screen) * 1.745) var(--screen);
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  /* --nav-p runs 0 to 1 over the last stretch of the hero as you scroll (set by the script): the text
     goes from white to black and the frosting builds up together, and both reverse scrolling back up. */
  --ink-mix: calc(255 * (1 - var(--nav-p, 0)));
  color: rgb(var(--ink-mix) var(--ink-mix) var(--ink-mix));
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  opacity: var(--nav-p, 0);
}
.hero-end { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
/* Hero reel: plays under the red gradient, as on the live site. It fades in over the still once it
   is actually playing, and stays hidden for visitors who ask for reduced motion. */
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.hero-media.playing { opacity: 1; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(red 0%, rgba(54, 54, 54, 0) 100%);
}
.hero h1, .projects-head { z-index: 1; }
.brand {
  font-family: "Supra", var(--sans);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav ul { list-style: none; }
/* Résumé arrow: the same Lucide arrow-up-right as the side project links. On hover it hops up and to the
   right with a little spring, and eases back on leave. */
.nav .ext svg {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -.17em;
  margin-left: -.1em;
  transition: translate .45s cubic-bezier(.34, 2, .5, 1);
}
.nav .ext:hover svg { translate: 3px -3px; }
.nav ul a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.menu-btn { display: none; }
.hero h1 { color: #fff; font-weight: 400; text-align: center; }

.section-head { text-align: center; }
.section-head h2 { font-weight: 400; }
.section-head p { color: var(--muted); }

.meta .logo { width: calc(var(--lw) * 1px * var(--ls, .72)); height: auto; }
.meta .sub { font-weight: 500; }
.meta h3 { font-weight: 500; }
.meta .sub { color: var(--muted); }
.meta hr { border: 0; border-top: 1px solid var(--rule); }
.meta ul { list-style: none; color: var(--soft); }
.meta li { position: relative; }
.meta li::before { content: "•"; position: absolute; color: #9a9a9a; }
.meta .more { display: inline-block; }
/* Lucide arrow-right (ISC, v1.54.0, licence in assets/lucide); slides right on hover. */
.meta .more svg { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-left: -.05em; transition: translate .35s cubic-bezier(.25,.8,.3,1); }
.meta .more:hover svg { translate: 3px 0; }
@media (prefers-reduced-motion: reduce) { .meta .more svg { transition: none; } .meta .more:hover svg { translate: none; } }

.tint { background: var(--tint); overflow-x: clip; }
/* White 8px rules running edge to edge between the sections of the tinted area. */
.tint-rule { display: block; width: 100%; height: 8px; margin: 0; border: 0; background: var(--bg); }

/* A project shown as a video: the clip plays inside the composite's main frame (its --v* box), under a
   cut-out copy of the composite so overlays (wishPanda's dashboard, Capital One's iPad) stay on top. */
div.media { position: relative; width: calc(var(--cw) * 1px); }
.media-over { position: relative; width: 100%; height: auto; }
.media-clip { position: absolute; left: var(--vl); top: var(--vt); width: var(--vw); height: var(--vh); object-fit: cover; background: #222; }
/* Layered project visuals, rebuilt the way the Framer homepage composes them: a stage the size of the main
   frame (688 units wide, as measured on audroue.com) with each layer (screenshot, clip, device, dashboard)
   placed in those units, with its own radius and shadow, free to run past the frame. --l/--t/--w/--h are
   the desktop placement; --ml/--mt/--mw/--mh, where given, are the phone/tablet placement. */
div.media.stage { aspect-ratio: 688 / 386; container-type: inline-size; }
.stage .ly { --u: calc(100cqw / 688); position: absolute; display: block; max-width: none;
  left: calc(var(--l) * var(--u)); top: calc(var(--t) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); }
/* One shared shadow for every card frame: Framer's card shadow on audroue.com (0 31 60 -20, black at 60%). */
.stage .pcard { border-radius: calc(24 * var(--u)); overflow: hidden; object-fit: cover; }
/* Shadows copied from audroue.com's computed styles (Framer, 1440px wide, where 1px = 1 stage unit). Framer
   gives each card its own; the NEO, LeafyGreen docs and Feature Walls cards have none there. */
.stage .shadow-a { box-shadow: 0 calc(31 * var(--u)) calc(60 * var(--u)) calc(-20 * var(--u)) rgba(0, 0, 0, .6); }  /* Capital One, wishPanda; also NEO, Feature Walls, Atlas */
.stage .shadow-b { box-shadow: 0 calc(40 * var(--u)) calc(60 * var(--u)) calc(-30 * var(--u)) rgba(0, 0, 0, .5); }  /* glucose monitor */
.stage .pcard > img:not(.ly), .stage .pcard > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage .float { object-fit: contain; z-index: 1; }
.stage .float.clip12 { border-radius: calc(12 * var(--u)); overflow: hidden; }
.stage .float.clip12 img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* LeafyGreen: the docs screenshot fades out downward, and the Atlas clip sits on top in a rounded tile. */
.stage .lg-docs { object-fit: cover; border-radius: calc(10 * var(--u)) calc(10 * var(--u)) 0 0;
  /* the docs screenshot dissolves into the page on an eased curve, so there's no visible point where it turns solid */
  -webkit-mask-image: linear-gradient(#000 12%, rgba(0, 0, 0, .96) 24%, rgba(0, 0, 0, .86) 36%, rgba(0, 0, 0, .7) 48%, rgba(0, 0, 0, .5) 60%, rgba(0, 0, 0, .31) 71%, rgba(0, 0, 0, .16) 81%, rgba(0, 0, 0, .06) 90%, transparent 98%);
  mask-image: linear-gradient(#000 12%, rgba(0, 0, 0, .96) 24%, rgba(0, 0, 0, .86) 36%, rgba(0, 0, 0, .7) 48%, rgba(0, 0, 0, .5) 60%, rgba(0, 0, 0, .31) 71%, rgba(0, 0, 0, .16) 81%, rgba(0, 0, 0, .06) 90%, transparent 98%); }
.stage .lg-fade { display: none; } /* replaced by the mask above */
.stage .tile { z-index: 1; overflow: hidden; isolation: isolate; border-radius: calc(24 * var(--u)); box-shadow: 0 calc(21 * var(--u)) calc(42 * var(--u)) calc(-20 * var(--u)) rgba(0, 0, 0, .4);
  background: #0c2e3b; /* the video's own navy, so no light seam shows where the rounded clip meets the video */ }
.stage .tile > video { display: block; width: 100%; height: 100%; object-fit: cover; scale: 1.02; }
/* WBD: the NEO card is drawn rather than a picture, so it stays sharp at any size. */
/* NEO: Framer's card (688 x 386, #5128f2, 24px corners, no shadow) with Robert's exported logo SVG on it. */
.stage .neo { background: rgb(81, 40, 242); }
/* Feature Walls: the clip's light background gets a hairline so the card edge reads on the white page. */
.stage .framed { outline: 1px solid var(--rule); outline-offset: -1px; }
/* Atlas: a light card with the Clusters screen (with a hairline edge) set into it, fading out towards the right. */
.stage .atlas { background: #f8f9fb; }
.stage .atlas.shadow-a { box-shadow: 0 calc(31 * var(--u)) calc(60 * var(--u)) calc(-20 * var(--u)) rgba(0, 0, 0, .6), inset 0 0 0 1px #ececee; }
.stage .atlas-shot { object-fit: cover; border-radius: calc(13 * var(--u)); outline: 1px solid #e2e4e8; outline-offset: -1px; box-shadow: 0 calc(61 * var(--u)) calc(132 * var(--u)) calc(-40 * var(--u)) rgba(0, 0, 0, .25);
  -webkit-mask-image: linear-gradient(-90deg, transparent 39%, #000 100%); mask-image: linear-gradient(-90deg, transparent 39%, #000 100%); }
@media (max-width: 1295.98px) {
  .stage .ly[style*="--ml"] { left: calc(var(--ml) * var(--u)); top: calc(var(--mt) * var(--u)); width: calc(var(--mw) * var(--u)); height: calc(var(--mh) * var(--u)); }
}
/* A clip that plays on top of part of a project's still (LeafyGreen's mint card, the Feature Walls
   frame), placed by its --v* box and fading in once it is playing. */
.media-card {
  position: absolute;
  left: var(--vl);
  top: var(--vt);
  width: var(--vw);
  height: var(--vh);
  object-fit: cover;
  border-radius: var(--vr);
  opacity: 0;
  transition: opacity .6s ease;
}
.media-card.playing { opacity: 1; }
/* Feature Walls: the still's own frame edge sits about a pixel outside the clip's box, so it showed as a
   faint second edge around the rounded video. Grow the clip and its hairline slightly to cover it, leaving
   one clean edge. */
.media-card:has(+ .media-frame), .media-card + .media-frame {
  left: calc(var(--vl) - 1.5px);
  top: calc(var(--vt) - 1px);
  width: calc(var(--vw) + 3px);
  height: calc(var(--vh) + 2px);
}
/* A hairline around a light frame (Feature Walls), drawn above the still and the clip alike. */
.media-frame {
  position: absolute;
  left: var(--vl);
  top: var(--vt);
  width: var(--vw);
  height: var(--vh);
  border: .5px solid var(--rule);
  border-radius: var(--vr);
  pointer-events: none;
}

/* Leadership card stack */
/* Leadership: the four cards lie across the section like cards tossed on a table, each with its own tilt
   and nudge, spaced so none covers another. Hovering a card lifts it and brings it to the front, keeping its
   tilt. Each layout sets the card width (--cw) and the gap between cards (--gx). */
.stack { display: grid; grid-template-columns: repeat(3, calc(var(--cw) + var(--gx))) var(--cw); justify-content: center; }
.stack .card { width: var(--cw); }
.card {
  /* Each card hugs its own content instead of stretching to its row's height. */
  align-self: start;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--stack-shadow, 0 18px 40px rgba(20, 30, 50, .10), 0 1px 3px rgba(20, 30, 50, .06));
  --dx: 0px; --dy: 0px; /* where a visitor has dragged it (set by the script) */
  translate: calc(var(--tx) * var(--k, 1) + var(--dx)) calc(var(--ty) * var(--k, 1) + var(--dy));
  rotate: var(--rot);
  transition: translate .5s cubic-bezier(.2, .8, .2, 1), rotate .5s cubic-bezier(.2, .8, .2, 1), scale .3s ease, box-shadow .5s;
}
.card:nth-child(1) { --rot: -3deg; --tx: 0px; --ty: 10px; z-index: 4; }
.card:nth-child(2) { --rot: 2.4deg; --tx: 0px; --ty: 52px; z-index: 3; }
.card:nth-child(3) { --rot: -1.6deg; --tx: 0px; --ty: 0px; z-index: 2; }
.card:nth-child(4) { --rot: 2.8deg; --tx: 0px; --ty: 40px; z-index: 1; }
.card:hover { z-index: 5; translate: calc(var(--tx) * var(--k, 1) + var(--dx)) calc((var(--ty) - 8px) * var(--k, 1) + var(--dy)); }
/* Wide layouts (1600px and up, where four fit side by side at a readable size): visitors can pick a card up
   and drop it anywhere in the section. The one being dragged comes to the front, lifts with a deeper shadow
   and keeps its tilt. */
@media (min-width: 1600px) {
  .card { cursor: grab; touch-action: none; }
  .card.dragging { cursor: grabbing; scale: 1.03; rotate: var(--rot); transition: scale .3s ease, box-shadow .3s ease;
    box-shadow: 0 40px 80px -10px rgba(5, 12, 22, .45), 0 8px 20px rgba(5, 12, 22, .15); }
  .card.dragging:hover { translate: calc(var(--tx) * var(--k, 1) + var(--dx)) calc(var(--ty) * var(--k, 1) + var(--dy)); }
  html.card-drag, html.card-drag * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
.card-top { background: var(--surface); }
.card-top h3 { font-weight: 400; }
.card-top h3, .card-top p { color: var(--card-ink); }
blockquote { position: relative; flex: 1; display: flex; flex-direction: column; background: var(--quote); box-shadow: inset 0 1px 0 var(--quote-line); }
blockquote footer { margin-top: auto; padding-top: 13px; }
.qmark { position: absolute; font: 600 46px/1 Georgia, serif; color: var(--qmark); }
blockquote p { position: relative; font-style: italic; color: var(--quote-ink); }
blockquote footer { display: flex; align-items: center; gap: 8px; color: var(--quote-ink); }
blockquote footer strong { font-weight: 400; color: var(--card-ink); }
blockquote footer span { min-width: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
blockquote picture { display: contents; }
blockquote .co { flex: none; margin-left: auto; margin-right: -6px; width: 75px; height: auto; }

/* About: a full-width photo of Rob presenting, with the text over a dark fade on the left (the photo's
   subject is on the right). */
.about { position: relative; display: flex; flex-direction: column; justify-content: center; color: #fff; text-align: left;
  background: #1d2126 url("assets/about-presentation.webp") 72% 30% / cover no-repeat; }
.about::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0d0e10 0%, #0d0e10 30%, rgba(13, 14, 16, .96) 42%, rgba(13, 14, 16, .82) 53%, rgba(13, 14, 16, .45) 64%, rgba(13, 14, 16, .12) 74%, rgba(13, 14, 16, 0) 80%);
  /* blur the photo behind the text too, fading out before the subject on the right */
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 78%); mask-image: linear-gradient(90deg, #000 30%, transparent 78%); }
.about > * { position: relative; }
.about h2 { text-align: left; font-weight: 400; color: #fff; }
.about p { color: rgba(255, 255, 255, .58); } /* dimmer than the white links so they stand out */
.about b { font-weight: 400; }
.credits b { font-weight: 500; } /* the credit's links read as links */
.about b { color: #fff; font-weight: 500; } /* links read as links: white and medium weight */
.about a:hover, .credits a:hover { text-decoration: underline; }
/* External-link arrow after each link in the About text, kept on the same line as the word before it. */
.about .nw, .credits .nw { white-space: nowrap; }
.about .ext, .credits .ext { display: inline-block; width: .85em; height: .85em; margin-left: .08em; vertical-align: -.06em; opacity: .85; transition: translate .45s cubic-bezier(.34, 2, .5, 1); }
.about a:hover .ext, .credits a:hover .ext { translate: 2px -2px; }
@media (prefers-reduced-motion: reduce) { .about .ext { transition: none; } .about a:hover .ext { translate: none; } }


.credits { text-align: center; color: var(--muted); }
/* Footer: a full-width hairline, then the name, the links stacked, and the credit, side by side. */
.cz .credits { position: relative; display: grid; grid-template-columns: auto auto 1fr; column-gap: 5.5em; align-items: start; text-align: left; }
.cz .credits::before { content: ""; position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; height: 1px; background: rgba(255, 255, 255, .55); }
.foot-brand { font-family: "Supra", "Circular Std", sans-serif; font-weight: 600; font-size: 1em; line-height: 1.3; letter-spacing: .01em; color: var(--ink); }
.cz .credits p { margin: 0; text-wrap: pretty; } /* no lone word on the last line */
.credits a.foot-brand, .credits a.foot-brand:hover { text-decoration: none; }
/* Footer links (Email, LinkedIn, Instagram, Résumé) and the credit: small, left-aligned with the contact
   form's left edge, the links one per line. Each layout sets the box to match the form's (.cf). */
.foot-links { display: flex; flex-direction: column; align-items: flex-start; gap: .35em; margin-bottom: 0; font-size: 1em; color: var(--ink); }
.foot-links a { display: inline-flex; align-items: center; gap: .15em; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: .2em; }
.foot-links svg { width: 1em; height: 1em; transition: translate .45s cubic-bezier(.34, 2, .5, 1); }
.foot-links a:hover svg { translate: 2px -2px; }
@media (prefers-reduced-motion: reduce) { .foot-links svg { transition: none; } .foot-links a:hover svg { translate: none; } }

/* Contact and the credits sit on an orange band, in both light and dark mode, with white text. The form
   sits straight on the orange (no card); the footer links are white too. */
.cz { display: flow-root; background: #ff4116; --ink: #fff; --muted: rgba(255, 255, 255, .78); --line: rgba(255, 255, 255, .5); --pill-ink: #fff;
  color: var(--ink); }
.cz .section-head { text-align: left; } /* left-aligned with the form, and larger (sizes per layout below) */
.cz .section-head p { color: rgba(255, 255, 255, .5); }
.cz .cf-form { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.cz .cf-pills { font-size: .78em; } /* the "What do you need?" pills sit a step smaller than the fields */
.cz .cf-pills span { border-color: rgba(255, 255, 255, .32); }
.cz .cf-pills label:hover span { border-color: rgba(255, 255, 255, .65); }
/* selected: a solid white outline (no fill); the others sit back with a faint one */
.cz .cf-pills input:checked + span { background: none; border-color: #fff; color: #fff; box-shadow: inset 0 0 0 .5px #fff; }
.cz .cf-pills input:focus-visible + span, .cz .cf-send button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cz .cf-send { flex-direction: column; align-items: flex-start; gap: .9em; } /* the privacy note sits under Send, small */
.cz .cf-privacy { font-size: var(--credit-size, .66em); } /* matches the footer credit line (sizes per layout) */
.cz .cf-send button { background: #fff; color: #000;
  /* same size as the "What do you need?" pills: their text is .78 x .875 of the form's size, with the same padding and 1px edge */
  font-size: calc(.78em * .875); padding: .55em 1em; border: 1px solid #fff; line-height: normal; }
.cz .cf-form.sent .cf-status, .cz .cf-form.failed .cf-status { color: #fff; }
.cz .cf ::selection { background: rgba(255, 255, 255, .35); color: #fff; }
.cz .cf input, .cz .cf textarea { caret-color: #fff; }
.cz .cf-field input, .cz .cf-field textarea { border-bottom-width: 2px; }

/* Contact block: the form in a white card, centred under the section heading, with the LinkedIn link
   under Send. Sizes are in em so each layout only sets the block's font-size. */
.cf { text-align: left; }
.cf-link { align-self: flex-start; font-size: .875em; color: var(--ink); }
.cf-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.cf-link svg { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-left: -.1em; transition: translate .45s cubic-bezier(.34, 2, .5, 1); }
.cf-link:hover svg { translate: 2px -2px; }
.cf-form { display: flex; flex-direction: column; gap: 1.2em; padding: 2.5em; border: 1px solid var(--surface-line); border-radius: 1.5em; background: var(--surface);
  box-shadow: 0 2px 8px rgba(20, 30, 50, .03); }
.cf-pills { border: 0; display: flex; flex-wrap: wrap; gap: .5em; }
.cf-pills legend { margin-bottom: .7em; font-size: .875em; color: var(--muted); }
.cf-pills label { position: relative; cursor: pointer; }
.cf-pills input { position: absolute; opacity: 0; pointer-events: none; }
.cf-pills span { display: inline-block; padding: .55em 1em; border: 1px solid var(--line); border-radius: 99px; font-size: .875em; color: var(--pill-ink, #3a3a3a);
  transition: background .2s ease, color .2s ease, border-color .2s ease; }
.cf-pills label:hover span { border-color: var(--muted); }
.cf-pills input:checked + span { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.cf-pills input:focus-visible + span { outline: 2px solid #8c8c8c; outline-offset: 2px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6em; }
/* Fields: just the label on a single underline. On focus, or once filled, the label shrinks and moves up
   to the top left, and the line darkens. */
.cf-field { position: relative; display: block; padding-top: 1.1em; }
.cf-field input, .cf-field textarea { display: block; width: 100%; padding: .45em 0 .5em; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; font: inherit; color: var(--ink); resize: none; transition: border-color .25s ease; }
.cf-field input, .cf-field textarea { line-height: 1.25; }
.cf-field textarea { overflow-y: auto; max-height: 12em; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.cf-field > span { position: absolute; left: 0; right: 0; top: 1.55em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); pointer-events: none; transform-origin: left top;
  transition: translate .25s cubic-bezier(.3, .7, .3, 1), scale .25s cubic-bezier(.3, .7, .3, 1), color .25s ease; }
.cf-field :focus + span, .cf-field :not(:placeholder-shown) + span { translate: 0 -1.55em; scale: .75; }
.cf-field :focus + span { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .cf-field > span, .cf-field input, .cf-field textarea { transition: none; } }
.cf-send { display: flex; align-items: center; gap: 1.2em; flex-wrap: wrap; margin-top: .2em; }
.cf-send button { display: inline-flex; align-items: center; gap: .4em; padding: .8em 1.4em; border: 0; border-radius: 99px; background: var(--ink); color: var(--inverse);
  font: inherit; cursor: pointer; transition: scale .4s cubic-bezier(.34, 1.8, .5, 1); }
.cf-send button svg { width: 1.05em; height: 1.05em; transition: translate .35s cubic-bezier(.25, .8, .3, 1); }
.cf-send button:hover { scale: 1.04; }
.cf-send button:hover svg { translate: 3px 0; }
.cf-privacy { font-size: .8em; color: var(--muted); }
.cf-priv { display: inline; }
.cf-priv summary { display: inline; cursor: pointer; color: var(--ink); list-style: none; white-space: nowrap; }
/* "Privacy" follows the site's link pattern: medium weight, no underline, the small arrow that hops on hover. */
.cf-priv summary b { font-weight: 500; color: inherit; }
.cf-priv summary .ext { display: inline-block; width: .85em; height: .85em; margin-left: .08em; vertical-align: -.06em; transition: translate .45s cubic-bezier(.34, 2, .5, 1); }
.cf-priv summary:hover .ext { translate: 2px -2px; }
.cf-priv[open] summary .ext { rotate: 90deg; }
@media (prefers-reduced-motion: reduce) { .cf-priv summary .ext { transition: none; } .cf-priv summary:hover .ext { translate: none; } }
.cf-priv summary::-webkit-details-marker { display: none; }
.cf-priv span { display: block; margin-top: .4em; }
.cf-status { font-size: .875em; color: var(--muted); }
.cf-status:empty { display: none; }
.cf-form.sent .cf-status { color: #1a7f4b; }
.cf-form.failed .cf-status { color: #b3261e; }
.cf-status a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.cf-send button:disabled { opacity: .5; cursor: default; scale: 1; }
@media (prefers-reduced-motion: reduce) { .cf-send button, .cf-send button svg, .cf-link svg { transition: none; } }

/* Outside of work: equal cards, five to a row, art on top and text below. Sizes inside are in em, so each layout below only sets the grid's
   font-size. A plain .side-card is a simple white card; the three named ones are styled after each app. */
.side-grid { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-flow: dense; gap: 1.6em; }
.side-card {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 29em; overflow: hidden;
  border: 1px solid var(--surface-line); border-radius: 1em; background: var(--surface);
  box-shadow: 0 2px 8px rgba(20, 30, 50, .03);
  transition: translate .45s cubic-bezier(.34, 1.8, .5, 1), box-shadow .45s ease;
}
/* Hover: every card lifts and casts a large, dark shadow pulled in by a negative spread so it pools under it. */
.side-card:hover { translate: 0 -10px; box-shadow: 0 38px 64px -18px rgba(5, 12, 22, .38), 0 6px 14px rgba(5, 12, 22, .1); }
.sc-text { display: flex; flex-direction: column; padding: 1.4em 1.6em 1.5em; }
.side-card h3 { font-size: 1.125em; line-height: 1.4; letter-spacing: -.03em; font-weight: 500; }
.side-card p { margin-top: .4em; font-size: .875em; line-height: 1.5; color: var(--muted); }
/* Each card's description sits outside it, just below, and fades in while the card is hovered (it overlays
   the space under the row, so nothing shifts). Touch screens without hover show it all the time. */
.side-grid > li { position: relative; }
.side-grid > li.clone { display: none; } /* the carousel's second copy; only shown while it rotates */
.sc-desc { position: absolute; left: calc(1.6em / .875); right: calc(1.6em / .875); top: 100%; margin-top: .45em; /* inset like the card's 1.6em text padding */ font-size: .875em; line-height: 1.5; color: var(--ink);
  opacity: 0; translate: 0 -6px; transition: opacity .3s ease, translate .45s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.side-grid > li:hover .sc-desc { opacity: 1; translate: 0 0; }
@media (hover: none) { .sc-desc { position: static; opacity: 1; translate: none; margin-top: .7em; } }
@media (prefers-reduced-motion: reduce) { .sc-desc { transition: opacity .2s ease; translate: none; } }
.side-link { margin-top: .55em; font-size: .875em; line-height: 1.2; color: var(--ink); }
/* Lucide arrow-up-right (ISC); hops up and to the right on hover, like the Résumé link. */
.side-link svg { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-left: -.1em; transition: translate .45s cubic-bezier(.34, 2, .5, 1); }
.side-card:hover .side-link svg { translate: 2px -2px; }
.sc-art { position: relative; flex: 1; min-width: 0; }

/* Ad Nemora: a close crop of one of the watercolors fills the card, zoomed in so the brushstrokes carry it,
   with the text (styled like the other cards) on a soft paper-white fade rising from the bottom. */
.sc-nemora { justify-content: flex-end; min-height: 24em; background: #f4f1ea; border-color: #e4e0d7; }
.sc-nemora .sc-art { position: absolute; inset: 0; overflow: hidden; }
.sc-nemora .nm-paint { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* On hover the watercolor paints itself back in, in about 1.5s: the finished painting fades back to paper
   while soft brush strokes sweep in the blue sky washes, then (overlapping) the warm washes and green, then
   the full painting with its linework. At rest it is finished. */
.nm-paint .stroke { stroke-dasharray: 1; stroke-dashoffset: 0; }
.sc-nemora:hover .nm-paint .nm-paper { animation: nm-paper .3s ease-out both; }
.sc-nemora:hover .nm-paint .stroke { animation: nm-brush var(--d) cubic-bezier(.3, .6, .3, 1) both; }
.sc-nemora:hover .nm-paint .s1 { --d: .5s; animation-delay: calc(.05s + var(--i) * .08s); }
.sc-nemora:hover .nm-paint .s2 { --d: .5s; animation-delay: calc(.35s + var(--i) * .07s); }
.sc-nemora:hover .nm-paint .s3 { --d: .45s; animation-delay: calc(.75s + var(--i) * .06s); }
@keyframes nm-paper { from { opacity: 0; } }
@keyframes nm-brush { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sc-nemora:hover .nm-paint .stroke, .sc-nemora:hover .nm-paint .nm-paper { animation: none; } }
.sc-nemora .sc-text { position: relative; padding-top: 6em;
  background: linear-gradient(0deg, #f4f1ea 0%, #f4f1ea 30%, rgba(244, 241, 234, .9) 50%, rgba(244, 241, 234, .5) 72%, rgba(244, 241, 234, 0) 100%); }
.sc-nemora p { color: #6f6a64; }

/* Sightspan: a dark life timeline with month columns, coloured spans and a red "today" line. */
.sc-sightspan, .sc-workout { border-color: #1e1f22; color: #fff; }
.sc-sightspan { background: #0c0c0d; }
.sc-sightspan h3, .sc-workout h3, .sc-sightspan .side-link, .sc-workout .side-link { color: #fff; }
.sc-sightspan p, .sc-workout p { color: #9a9ca3; }
.sc-sightspan .sc-art { display: flex; flex-direction: column; order: -1; padding: 1.8em 0 0; font-size: .62em; color: #8b8d93; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
/* The timeline runs wider than the card and fades out at the right edge, like a scrolled view. */
.ss-months, .ss-track { width: 140%; }
.ss-months { display: grid; grid-template-columns: repeat(10, 1fr); margin-top: 1.6em; border-bottom: 1px solid #222428; }
.ss-months span { padding: 0 0 .7em .7em; border-left: 1px solid #1d1f22; }
.ss-track {
  position: relative; flex: 1; min-height: 16em;
  transition: translate .8s cubic-bezier(.25, .8, .3, 1);
}
/* Month gridlines, fading out toward the bottom like the Today line. */
.ss-track::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, #26282c 0 1px, transparent 1px 10%);
  -webkit-mask-image: linear-gradient(#000 10%, transparent); mask-image: linear-gradient(#000 10%, transparent);
}
.sc-sightspan:hover .ss-track { translate: -3% 0; }
.ss-ev {
  position: absolute; left: var(--l); width: var(--w); top: calc(1em + var(--row) * 3em);
  padding: .55em .8em; border-radius: .55em; white-space: nowrap; overflow: hidden;
  color: #f1ede6; font-size: 1.05em;
}
.ss-ev.g { background: #34452f; }
.ss-ev.b { background: #4d3a2a; }
.ss-ev.r { background: #5c2324; }
.ss-ev em { margin-left: .5em; padding: .1em .5em; border-radius: 99px; background: #1f6b3b; color: #b9f5c8; font-style: normal; font-size: .85em; }
.ss-today { position: absolute; left: var(--l); top: -2.6em; bottom: 0; width: 2px; background: linear-gradient(#e5484d 15%, rgba(229, 72, 77, 0)); }
.ss-today em { position: absolute; top: 0; left: 50%; translate: -50% 0; padding: .2em .6em; border-radius: 99px; background: #e5484d; color: #fff; font-style: normal; white-space: nowrap; }

/* Genealogy Services: the framed tree print fills the whole card, brightened, with the text on a soft
   gray fade rising from the bottom. */
.sc-genealogy { justify-content: flex-end; min-height: 24em; background: #eceae6; border: 0; }
.sc-genealogy .sc-art { position: absolute; inset: 0; overflow: hidden; }
.sc-genealogy img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; filter: brightness(1.16) contrast(.96); }
.sc-genealogy .sc-text { position: relative; padding-top: 6em;
  background: linear-gradient(0deg, #dcdcd9 0%, #dcdcd9 30%, rgba(220, 220, 217, .9) 50%, rgba(220, 220, 217, .5) 72%, rgba(220, 220, 217, 0) 100%); }
.sc-genealogy h3 { color: #111; }
.sc-genealogy p { color: #4a4844; }
.side-link.soon { color: #5d5a55; }

/* Factor Investing: an interest rather than a build, so the composition flips: a big two-weight title
   leads at the top and the five factors sit on a circle below. Vivid emerald, cream type. */
.sc-factor { justify-content: space-between; background: radial-gradient(120% 90% at 20% 0%, #13895b 0%, #0b6343 55%, #08503a 100%); border: 0; color: #f3efe4; }
.sc-factor .sc-text { padding: 1.8em 1.6em 0; }
.sc-factor h3 { font-size: 2.35em; line-height: 1.02; letter-spacing: -.04em; font-weight: 400; color: #fffaf0; }
.sc-factor h3 span { display: block; font-weight: 400; color: #8fc4a6; }
.sc-factor p { margin-top: .9em; color: #bfdccb; }
/* Factor list: the factors as plain rows along the bottom of the card, split by hairlines. */
.sc-factor .sc-text { position: relative; z-index: 1; }
.fx-list { list-style: none; padding: 0 calc(1.6em / .78) calc(1.3em / .78); font-size: .78em; color: #eaf5ee; } /* padding matches the title's 1.6em at the card's size */
.fx-list li { padding: .38em 0; border-top: 1px solid rgba(255, 255, 255, .18); }

/* Workout App: dark dashboard, pastel progress lines, lime level meters. */
.sc-workout { background: radial-gradient(circle, rgba(255, 255, 255, .11) 1px, transparent 1.6px) 7px 7px / 14px 14px, #161719; } /* faint dot grid */
.sc-workout .sc-art { display: flex; flex-direction: column; padding: 2.2em 0 0; font-size: .62em; color: #c7c9cf; }
.wo-chart { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.wo-chart path, .wo-chart polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.wo-chart polyline { stroke-width: 1.6; }
/* Each line glows faintly in its own colour. */
.wo-chart .l1 { stroke: #9fd4ff; stroke-width: 2.6; filter: drop-shadow(0 0 5px rgba(159, 212, 255, .75)); }
.wo-chart .l2 { stroke: #a8a35c; filter: drop-shadow(0 0 4px rgba(168, 163, 92, .72)); }
.wo-chart .l3 { stroke: #5fb3a8; filter: drop-shadow(0 0 4px rgba(95, 179, 168, .72)); }
.wo-chart .l4 { stroke: #b48aa8; filter: drop-shadow(0 0 4px rgba(180, 138, 168, .72)); }
.wo-chart .l5 { stroke: #8b7bd8; filter: drop-shadow(0 0 4px rgba(139, 123, 216, .72)); }
/* The highlighted line stops short of the edge and ends in an outlined dot (placed in % of the chart). */
.wo-plot { position: relative; flex: 1; min-height: 10em; margin-top: .6em; }
.wo-plot .wo-chart { margin-top: 0; }
.wo-dot { position: absolute; width: 1.15em; height: 1.15em; translate: -50% -50%; border: 2px solid #9fd4ff; border-radius: 50%; background: #161719; }
.sc-workout:hover .wo-dot { animation: wo-dot .45s cubic-bezier(.34, 1.8, .5, 1) .42s backwards; }
@keyframes wo-dot { from { scale: 0; } }
/* On hover every line redraws from the left, one after another. */
.wo-chart polyline { stroke-dasharray: 700; stroke-dashoffset: 0; }
.sc-workout:hover .wo-chart polyline { animation: wo-draw 1.3s cubic-bezier(.3, .7, .25, 1) backwards; }
.sc-workout:hover .wo-chart .l2 { animation-delay: .05s; }
.sc-workout:hover .wo-chart .l3 { animation-delay: .1s; }
.sc-workout:hover .wo-chart .l4 { animation-delay: .15s; }
.sc-workout:hover .wo-chart .l5 { animation-delay: .2s; }
.sc-workout:hover .wo-chart .l1 { animation-delay: .25s; }
@keyframes wo-draw { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
/* The chart runs edge to edge; the lift rows line up with the title and text below (1.6em of the card's size). */
.wo-row { padding: 0 calc(1.6em / .62); display: grid; grid-template-columns: 7.5em 1fr 6.5em; align-items: center; gap: 1em; margin-top: 1.8em; }
.wo-row + .wo-row { margin-top: .7em; }
.wo-row em { font-style: normal; color: #c6f36b; text-align: right; }
.wo-lvl { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3em; }
.wo-lvl i { height: .55em; border-radius: 99px; background: #2a2c30; }
.wo-lvl i.on { background: #c6f36b; }

@media (prefers-reduced-motion: reduce) {
  .side-card, .side-link svg, .ss-track { transition: none; }
  .side-card:hover, .side-card:hover .side-link svg, .sc-sightspan:hover .ss-track { translate: none; rotate: -1.2deg; }
  .side-card:hover, .side-card:hover .side-link svg, .sc-sightspan:hover .ss-track { rotate: none; }
  .sc-workout:hover .wo-chart polyline { animation: none; }
  .sc-workout:hover .wo-dot { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .nav .ext:hover svg { translate: none; }
}

/* Scroll reveal: the script tags blocks below the hero with data-reveal (only when motion is welcome),
   and they rise and fade in as they enter the screen, in a light stagger set by --rd. */
[data-reveal] {
  opacity: 0;
  translate: 0 36px;
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--rd, 0s), translate 1.1s cubic-bezier(.16, 1, .3, 1) var(--rd, 0s);
}
[data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- Wide desktop, 1904px and up: the 1372px canvas measured from Robert's
   screenshot (the live 1904px layout at 72%), scaled back up by the script ---------- */
@media (min-width: 1904px) {
  body { min-width: var(--canvas); }

  .hero { height: calc(var(--screen) + 174px); }
  .nav { height: calc(40px * var(--nav-k, 1)); }
  .brand { position: absolute; left: calc(50% - var(--canvas) / 2 + 108px); top: calc(11px * var(--nav-k, 1)); font-size: calc(11.3px * var(--nav-k, 1)); }
  .nav ul { position: absolute; right: calc(50% - var(--canvas) / 2 + 109px); top: calc(12px * var(--nav-k, 1)); display: flex; gap: calc(43px * var(--nav-k, 1)); font-size: calc(11.5px * var(--nav-k, 1)); }
  .hero-end { top: var(--screen); }
  .hero-media { bottom: auto; height: var(--screen); }
  .hero-media::after { background: linear-gradient(red 0%, rgba(255, 0, 0, 0) 100%); }
  /* Grows gently with the window (about 73px on a 1920px screen, capped near 89px on very large ones), and
     keeps the same side margins as the nav. */
  .hero h1 { position: absolute; left: calc(50% - var(--canvas) / 2 + 108px); right: calc(50% - var(--canvas) / 2 + 108px); top: calc(var(--screen) / 2); transform: translateY(-50%); font-size: clamp(50.4px, 2.75vw, 64px); line-height: 1.18; text-wrap: balance; }

  .section-head h2, .section-head p { font-size: 20.5px; line-height: 26px; }
  .projects-head { position: absolute; left: 0; right: 0; top: calc(var(--screen) + 86px); }

  .projects { position: relative; height: 5147px; width: var(--canvas); margin: 0 auto; }
  .project { position: absolute; left: 0; top: var(--top); width: 100%; height: var(--h); }
  .project .media { position: absolute; left: var(--x); top: var(--y); max-width: none; }
  .meta { position: absolute; left: 192px; top: 0; width: 224px; z-index: 1; }
  .wide .meta { left: 181px; }
  .meta .logo { margin-left: -1.5px; }
  .meta h3 { margin-top: 13px; font-size: 12.9px; line-height: 18px; letter-spacing: -0.01em; }
  .meta .sub { font-size: 12.9px; line-height: 18px; letter-spacing: -0.01em; }
  .meta hr { margin: 13px 0 14px; }
  .meta .note, .meta .more { font-size: 10.1px; line-height: 15px; }
  .meta ul { font-size: 10.1px; line-height: 15.5px; }
  .meta li { margin-bottom: 3.5px; }
  .meta li::before { left: -12px; font-size: 8px; line-height: 15.5px; }
  .meta .more { margin-top: 9px; }

  /* Outside of work grows with wider windows (the rest of the canvas stays at its 1904px size): --side-f is
     the cards' font size, 10px at 1904px and in step with the window beyond, and --side-x is the extra
     height that adds (the row is 29em tall), which pushes everything below it down. */
  .tint { --side-f: min(22px, max(10px, calc(100vw / 190.4))); --side-x: calc(29 * (var(--side-f) - 10px) + 140px); /* + 40px more room above Outside of work, + 100px below */
    position: relative; padding-top: calc(1843px + var(--side-x)); overflow: visible; } /* everything above the orange band is placed absolutely; the band itself flows */
  .tint > section, .tint > footer { position: absolute; left: var(--x0); width: var(--canvas); }
  .cz { position: relative; padding-top: 75px; }
  .tint-rule { position: absolute; left: 0; }
  .r1 { top: calc(513px + var(--side-x)); } .r2 { top: calc(1161px + var(--side-x)); } .r3 { top: calc(1835px + var(--side-x)); }

  .leadership { top: calc(1226px + var(--side-x)); }
  /* Four across with a little air between them (no overlap); scaled to 88% so the row fits the canvas. */
  .stack { --cw: 344px; --gx: 24px; grid-template-rows: 404px; margin: 52px auto 0; zoom: .88; }
  .card-top { padding: 32px 26px 22px 27px; }
  .card-top h3 { font-size: 22.5px; line-height: 27px; width: 230px; }
  .card-top p { margin-top: 7px; font-size: 12px; line-height: 16.3px; }
  blockquote { padding: 19px 26px 20px 27px; }
  .qmark { left: 25px; top: 2px; }
  blockquote p { font-size: 10.6px; line-height: 14.5px; }
  blockquote footer { font-size: 9.3px; line-height: 13px; }
  blockquote footer strong { font-size: 10.2px; }

  .tint > .about { left: 0; width: 100%; top: calc(521px + var(--side-x)); height: 640px; padding: 0 0 0 calc(var(--x0) + 108px); }
  .about h2 { font-size: 31px; line-height: 36px; letter-spacing: -.01em; }
  .about p { width: 440px; margin: 18px 0 0; font-size: 15.5px; line-height: 22.5px; }
  .about p + p { margin-top: 20px; }

  /* The tinted area runs Outside of work, About, Leadership, Contact; a new row of cards needs its height
     added to the rules, .about, .leadership, .contact, .credits and the .tint height. */
  .side { top: 103px; }
  .side .section-head h2 { font-size: 21px; line-height: 26px; }
  .side-grid { width: 125em; margin: 52px 0 0 calc(50% - 62.5em); font-size: var(--side-f); }

  .contact { width: var(--canvas); margin: 0 auto; }

  .cf { width: 980px; margin: 56px auto 0; font-size: 20.5px; }
  .cz .section-head { width: 980px; margin: 0 auto; }
  .cz .section-head h2, .cz .section-head p { font-size: 34px; line-height: 40px; letter-spacing: -.01em; }
  .cz { --credit-size: 10.6px; }
  .credits { width: 980px; margin: 100px auto 0; padding: 22px 0 120px; font-size: 10.6px; line-height: 14px; }
}

/* ---------- Desktop, 1296px to 1903px: the live site's layout in real pixels ---------- */
@media (min-width: 1296px) and (max-width: 1903.98px) {
  .hero { height: var(--screen); }
  .nav { display: flex; justify-content: space-between; align-items: center; padding: calc(20px * var(--nav-k, 1)) 60px; }
  .hero-end { top: 100%; }
  .brand { font-size: calc(16px * var(--nav-k, 1)); line-height: 1; }
  .nav ul { display: flex; gap: calc(59px * var(--nav-k, 1)); font-size: calc(16px * var(--nav-k, 1)); line-height: 1; }
  .hero h1 {
    position: absolute;
    top: calc(var(--screen) / 2);
    left: 20%;
    transform: translateY(-50%);
    right: 20%;
    font-size: clamp(60px, 4.1vw, 76px); /* 60px up to ~1460, 76px by 1850 */
    line-height: 1.2;
    text-wrap: balance;
  }
  .projects-head { position: absolute; left: 0; right: 0; top: calc(var(--screen) + 120px); }
  .section-head h2, .section-head p { font-size: 30px; line-height: 36px; }

  main { padding: 380px 0 580px; }
  .projects { display: flex; flex-direction: column; max-width: 1600px; margin: 0 auto; }
  .project {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 90px;
    height: 400px;
    padding: 0 32px;
  }
  .project + .project { margin-top: 350px; }
  .project:nth-child(4), .project:nth-child(5), .project:nth-child(6) { margin-top: 400px; }
  .project:nth-child(7) { margin-top: 460px; }
  .meta { flex: none; width: 340px; padding: 60px 0 0 29px; --ls: 1; }
  .meta .logo { margin: 0 0 16px -2px; }
  .meta h3, .meta .sub { font-size: 18px; line-height: 25.2px; letter-spacing: -0.54px; }
  .meta hr { margin: 20px 0 21px; }
  .meta .note, .meta .more { font-size: 14px; line-height: 16.8px; }
  .meta ul { font-size: 14px; line-height: 21px; }
  .meta li { margin-bottom: 6px; }
  .meta li::before { left: -14px; font-size: 10px; line-height: 21px; }
  .meta .more { margin-top: 18px; }
  /* The image's main frame takes half the row; overlays and shadows hang past it. */
  .project .media {
    flex: none;
    width: calc(50% * var(--cw) / var(--bw));
    max-width: none;
    height: auto;
    margin-left: calc(-50% * var(--bx) / var(--bw));
    margin-right: calc(-50% * (var(--cw) - var(--bx) - var(--bw)) / var(--bw));
    margin-top: calc(-50% * var(--by) / var(--bw));
  }

  .tint { padding: 130px 0 0; }
  .leadership { --k: 1.4; }
  .section-head p { letter-spacing: -0.6px; }
  .leadership .section-head h2 { font-size: 34px; line-height: 40.8px; }
  /* The four cards always sit side by side in one row. Each is as wide as fits (330-440px, type scaling
     with it, --cu = 1/480); when four don't fit, they overlap, each card lying over the next one's edge. */
  .stack { --cw: min(440px, max(330px, calc((100vw - 140px - 3 * 24px) / 4)));
    --gx: min(24px, calc((100vw - 140px - 4 * var(--cw)) / 3));
    --cu: calc(var(--cw) / 480); grid-template-columns: repeat(3, calc(var(--cw) + var(--gx))) var(--cw);
    margin: 70px auto 0; padding-bottom: calc(60 * var(--cu)); }
  .card-top { padding: calc(46 * var(--cu)) calc(39 * var(--cu)) calc(30 * var(--cu)); }
  .card-top h3 { font-size: calc(35.2 * var(--cu)); line-height: calc(38 * var(--cu)); }
  .card-top p { margin-top: calc(14 * var(--cu)); font-size: calc(16 * var(--cu)); line-height: calc(22.4 * var(--cu)); }
  blockquote { padding: calc(30 * var(--cu)) calc(39 * var(--cu)) calc(28 * var(--cu)); }
  .qmark { left: calc(36 * var(--cu)); top: calc(6 * var(--cu)); font-size: calc(60 * var(--cu)); }
  blockquote p { font-size: calc(14.4 * var(--cu)); line-height: calc(20.2 * var(--cu)); }
  blockquote footer { padding-top: calc(18 * var(--cu)); font-size: calc(12 * var(--cu)); line-height: calc(16 * var(--cu)); gap: calc(11 * var(--cu)); }
  blockquote footer strong { font-size: calc(14.4 * var(--cu)); line-height: calc(18 * var(--cu)); }
  .avatar { width: calc(41 * var(--cu)); height: calc(41 * var(--cu)); }
  blockquote .co { width: calc(96 * var(--cu)); }

  .about { margin-top: 0; min-height: max(620px, calc(100vw * 722 / 1536)); padding: 80px 0 80px max(60px, calc(50% - 620px)); }
  .about h2 { font-size: 48px; line-height: 56px; letter-spacing: -0.02em; }
  .about p { width: 560px; margin: 20px 0 0; font-size: 22px; line-height: 31px; letter-spacing: -0.4px; }
  .about p + p { margin-top: 26px; }

  .side { margin-top: 0; padding: 0 12px; }
  .leadership { margin-top: 81px; }
  .r1 { margin-top: 190px; } .r2 { margin-top: 0; } .r3 { margin-top: 100px; }
  .side .section-head h2 { font-size: 34px; line-height: 40.8px; }
  .side-grid { max-width: 1640px; margin: 59px auto 0; font-size: clamp(12.5px, 1vw, 15px); }
  /* Below 1700px the five cards get cramped, so the row becomes a slowly rotating carousel (the script adds a
     second, hidden-from-assistive-tech copy of the cards so it loops seamlessly). Hovering pauses it. */
  @media (max-width: 1699.98px) {
    .side { overflow-x: clip; padding: 0; }
    .side .section-head { padding: 0 12px; }
    .side-grid { display: flex; width: max-content; max-width: none; margin: 59px 0 0; padding-left: 12px;
      animation: side-marquee 55s linear infinite; }
    .side-grid > li { flex: none; width: 20em; }
    .side-grid > li.clone { display: list-item; }
    .side-grid:hover { animation-play-state: paused; }
    @keyframes side-marquee { to { translate: calc(-1 * var(--set, 108em)) 0; } } /* --set: one set of cards, measured by the script */
  }
  @media (max-width: 1699.98px) and (prefers-reduced-motion: reduce) {
    .side { overflow-x: auto; } .side-grid { animation: none; padding-right: 12px; }
  }

  .contact { margin-top: 71px; }
  .contact .section-head h2, .contact .section-head p { letter-spacing: -.01em; }
  .cz .section-head { max-width: 1240px; margin: 0 auto; padding: 0 60px; }
  .cz .section-head h2, .cz .section-head p { font-size: clamp(40px, 3.1vw, 58px); line-height: 1.15; }

  .cf { max-width: 1240px; margin: 70px auto 0; padding: 0 60px; font-size: clamp(17px, 1.36vw, 27px); }
  .cz { --credit-size: 16px; }
  .credits { max-width: 1240px; margin: 130px auto 0; padding: 30px 60px 160px; font-size: 16px; line-height: 24px; }
}

/* ---------- Tablet and phone, below 1296px: one column, as on the live site ---------- */
@media (max-width: 1295.98px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: var(--screen);
    background: url("assets/hero.jpg") center / cover no-repeat;
  }
  .hero { padding-top: var(--screen); }
  .nav { text-align: center; padding: calc(18px * var(--nav-k, 1)) 0 calc(14px * var(--nav-k, 1)); }
  .brand { display: inline-block; font-size: calc(13px * var(--nav-k, 1)); }
  .hero-end { top: var(--screen); }
  .hero-media { bottom: auto; height: var(--screen); }
  .nav ul { display: none; }

  /* Hamburger menu: the icon follows the header's white/black switch; open, the header turns into a white panel. */
  .menu-btn {
    display: block;
    position: absolute;
    /* Shrinks with the header (--nav-k), pinned by its top-right corner and kept centred on the bar. */
    top: calc(6px + 10px * (1 - var(--nav-k, 1)));
    right: 12px;
    width: 40px;
    height: 40px;
    scale: var(--nav-k, 1);
    transform-origin: right top;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .menu-btn span {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    transition: transform .25s ease, top .25s ease;
  }
  .menu-btn span:first-child { top: 16px; }
  .menu-btn span:last-child { top: 23px; }
  .nav.menu-open .menu-btn span:first-child { top: 19.5px; transform: rotate(45deg); }
  .nav.menu-open .menu-btn span:last-child { top: 19.5px; transform: rotate(-45deg); }
  .nav.menu-open { height: 100vh; height: 100dvh; color: var(--ink); }
  .nav.menu-open::before { opacity: 1; background: var(--bg); }
  .nav.menu-open ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 72px 28px 28px;
    text-align: left;
    font-size: 34px;
    line-height: 40px;
  }
  .hero h1 {
    position: absolute;
    top: calc(var(--screen) / 2);
    left: 24px;
    right: 24px;
    transform: translateY(-50%);
    font-size: clamp(23px, 6.2vw, 40px);
    line-height: 1.45;
    text-wrap: balance;
  }
  .projects-head {
    position: relative;
    width: 100%;
    margin-top: -80px;
    padding: 190px 24px 120px;
    background: linear-gradient(180deg, transparent 0%, var(--bg) 60%);
  }
  .section-head h2, .section-head p { font-size: clamp(21px, 5.6vw, 28px); line-height: 1.3; }
  .cz .section-head h2, .cz .section-head p { font-size: clamp(28px, 7.6vw, 38px); line-height: 1.15; }

  .projects {
    display: flex;
    flex-direction: column;
    gap: 180px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 160px;
  }
  .project { display: flex; flex-direction: column; gap: 32px; }
  /* Keep the text above the image composites, whose padded tops are pulled up under it. */
  .meta { padding: 0 32px; position: relative; z-index: 1; }
  .meta { --ls: .94; }
  .meta h3 { margin-top: 22px; font-size: 16px; line-height: 1.45; letter-spacing: -0.01em; }
  .meta .sub { font-size: 16px; line-height: 1.45; letter-spacing: -0.01em; }
  .meta hr { margin: 18px 0 20px; }
  .meta .note, .meta .more { font-size: 12.5px; line-height: 1.5; }
  .meta ul { font-size: 12.5px; line-height: 1.55; }
  .meta li { margin-bottom: 5px; }
  .meta li::before { left: -12px; font-size: 9px; }
  .meta .more { margin-top: 16px; }
  /* Each image is a composite whose main frame is --bw of its --cw pixels;
     size it so that frame fills 91% of the column and let overlays hang past it. */
  .project .media {
    width: calc(91% * var(--cw) / var(--bw));
    max-width: none;
    height: auto;
    margin-left: calc(4.5% - 91% * var(--bx) / var(--bw));
    margin-top: calc(-91% * var(--by) / var(--bw));
    margin-bottom: calc(-91% * var(--by) / var(--bw));
  }

  .tint { padding: 0; }
  .cz { padding-bottom: 70px; }
  .leadership { padding: 45px 32px 40px; }
  .r1 { margin-top: 120px; } .r2 { margin-bottom: 0; } .r3 { margin-top: 0; }
  .stack { --cw: min(calc(100vw - 64px), 380px); grid-template-columns: var(--cw); row-gap: 36px; margin: 48px auto 50px; }
  /* One column: smaller tilts and nudges, no drop between columns. */
  .card:nth-child(n) { --ty: 0px; --tx: calc(var(--rot) * 3px / 1deg); rotate: calc(var(--rot) * .6); }
  .card-top { padding: 34px 30px 26px; }
  .card-top h3 { font-size: clamp(26px, 7vw, 32px); line-height: 1.15; }
  .card-top p { margin-top: 12px; font-size: clamp(14px, 3.8vw, 16px); line-height: 1.5; }
  blockquote { padding: 24px 30px 24px; }
  .qmark { left: 28px; top: 4px; }
  blockquote p { font-size: clamp(13px, 3.5vw, 14.5px); line-height: 1.45; }
  blockquote footer { padding-top: 18px; font-size: 11.5px; line-height: 1.4; }
  blockquote footer strong { font-size: 12.5px; }

  .about { padding: 72px 30px 80px; background-position: 70% 0; }
  .about::before { background: linear-gradient(180deg, rgba(12, 14, 18, .65) 0%, rgba(12, 14, 18, .88) 45%, rgba(12, 14, 18, .94) 100%);
    -webkit-mask-image: none; mask-image: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .about h2 { font-size: clamp(27px, 7.4vw, 36px); line-height: 1.2; }
  .about p { max-width: 560px; margin-top: 24px; font-size: clamp(16px, 4.4vw, 19px); line-height: 1.5; }
  .about p + p { margin-top: 20px; }

  .side { padding: 120px 24px 0; max-width: 560px; margin: 0 auto; }
  .side-grid { margin-top: 40px; font-size: clamp(14px, 3.9vw, 16px); grid-template-columns: 1fr; }

  .contact { padding: 60px 24px 0; max-width: 720px; margin: 0 auto; }
  .wide-only { display: none; }

  .cf { margin-top: 44px; font-size: clamp(15px, 4.1vw, 17.5px); }
  .cf-form { padding: 1.8em 1.5em; }
  .cf-row { grid-template-columns: 1fr; }
  .cz { --credit-size: 12.5px; }
  .credits { max-width: 720px; margin: 70px auto 0; padding: 26px 24px 0; font-size: 12.5px; line-height: 1.6; }
  .cz .credits { grid-template-columns: auto 1fr; row-gap: 1.6em; column-gap: 3em; }
  .cz .credits p { grid-column: 1 / -1; }
}

/* Dark mode, after Framer's dark theme: the header text stays white as it frosts over, the company logos
   and contact-chip logos turn white, and the cards, chips and form take Framer's dark surfaces. */
@media (prefers-color-scheme: dark) {
  /* The logos are transparent PNGs: invert them so the black type turns white (hue-rotate keeps MongoDB's
     leaf green and Capital One's swoosh red). */
  .logo { filter: invert(1) hue-rotate(180deg); }
  /* Ad Nemora and Genealogy stay light (watercolor paper, photo), so their text stays dark. */
  .sc-nemora, .sc-genealogy { --ink: #000; --muted: #6f6a64; }
  .sc-nemora h3, .sc-genealogy h3 { color: #111; }
  .nav { --ink-mix: 255; }
  .nav.menu-open { color: #fff; }
  :root {
    --stack-shadow: 0 18px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(161, 161, 161, .1);
    --pill-ink: #c9c9c9;
  }
  .cf-form { box-shadow: 0 2px 4px rgba(28, 46, 84, .1); }
  /* Atlas: Framer's dark frame (#0c0f12) around the Clusters screen. */
  .stage .atlas { background: var(--tint); }
  .stage .atlas.shadow-a { box-shadow: 0 calc(31 * var(--u)) calc(60 * var(--u)) calc(-20 * var(--u)) rgba(0, 0, 0, .6), inset 0 0 0 1px var(--surface-line); }
  .stage .atlas-shot { outline-color: rgba(255, 255, 255, .08); }
  .side-card:hover { box-shadow: 0 38px 64px -18px rgba(0, 0, 0, .6), 0 6px 14px rgba(0, 0, 0, .25); }
}

/* Narrower screens: the cards would get too small side by side, so they sit in a fanned deck instead.
   Select (or drag and let go of) the top card to send it to the back and bring up the next one. */
.stack.deck { grid-template-columns: var(--cw) !important; column-gap: 0; row-gap: 0; padding-bottom: calc(85px * var(--k, 1)); cursor: pointer; outline: none; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.stack.deck:focus-visible { outline: 2px solid #8c8c8c; outline-offset: 12px; border-radius: 12px; }
.stack.deck .card { grid-area: 1 / 1; translate: none; rotate: none; cursor: inherit; touch-action: pan-y; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.stack.deck .card:hover { translate: none; }
.stack.deck .card[data-pos="0"] { z-index: 4; cursor: grab; }
.stack.deck .card[data-pos="1"] { z-index: 3; transform: translate(calc(10px * var(--k, 1)), calc(24px * var(--k, 1))) rotate(3deg); }
.stack.deck .card[data-pos="2"] { z-index: 2; transform: translate(calc(-16px * var(--k, 1)), calc(50px * var(--k, 1))) rotate(-4deg); }
.stack.deck .card[data-pos="3"] { z-index: 1; transform: translate(calc(26px * var(--k, 1)), calc(79px * var(--k, 1))) rotate(6deg); }
.stack.deck .card.flipping { z-index: 5; cursor: grabbing; transition: none; }
@media (min-width: 1296px) and (max-width: 1599.98px) { .stack.deck { --cw: 440px; } }
@media (max-width: 1295.98px) { .stack.deck { row-gap: 0; } .stack.deck .card:nth-child(n) { rotate: none; } }
@media (prefers-reduced-motion: reduce) { .stack.deck .card { transition: none; } }
