/* The portfolio home's own rules in the site (4 November 2026). Hand-written; the embed build never touches it.
   The page is the Nolan Barret template's code (Work Home/src/framer), rendered under #main between the Turbo Labs
   nav and footer; rules about the page's own layout live in its components, and these cover how it sits in the
   site: the reset Framer assumes, the two colours the template is built on, and the sticky title lines under the
   nav. work-home-brand.css loads after this and puts the Turbo brand on it. */

/* Framer's page reset, which its published pages carry in the head and its components assume: border-box sizing,
   no default margins on text, the form controls' base font. Scoped to #main so the nav and footer keep their own. */
#main { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:where(#main) * { box-sizing: border-box; -webkit-font-smoothing: inherit; }
:where(#main) :is(h1, h2, h3, h4, h5, h6, p, figure) { margin: 0; }
:where(#main) :is(input, textarea, select, button) { font-family: sans-serif; font-size: 12px; }

/* The template draws everything in two colours, an ink (#000) and a paper (#fff), and a few alpha steps of the ink
   written as literals. Both tokens follow the site's theme, so the page turns with the nav. */
body.work-home #main {
  --token-17ee1a2a-9134-45a3-a181-c959a2b2e2db: var(--ink);
  --token-92cd4611-0dcf-4144-8309-fc016f633972: var(--ground);
}
body.work-home { background: var(--ground); }
/* The title line's sector and years, and the comma after the name, are the ink at 40%, as the template sets them
   (rgba(0, 0, 0, .4)); the name is the ink. */
body.work-home #main .framer-rckMa :is(.framer-1ttwuwp, .framer-d57c31) { --extracted-r6o4lv: color-mix(in srgb, var(--ink) 40%, transparent) !important; }
body.work-home #main .framer-rckMa .framer-9w4bnk { --extracted-r6o4lv: var(--ink) !important; }
/* The density toggle's icons are black drawings set as background images, so on the dark ground they invert. */
:root[data-theme="dark"] body.work-home #main .framer-150rm [data-framer-component-type="SVG"] { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) body.work-home #main .framer-150rm [data-framer-component-type="SVG"] { filter: invert(1); } }

/* The title lines stick under the Turbo Labs nav (46px, 42px up to 900px wide) where the template's stuck under its
   own (42px, 58px on phones). The page head clears the nav as the service pages do. */
body.work-home #main .framer-ySrmd .framer-5q2de2-container { top: 46px !important; }
@media (max-width: 900px) { body.work-home #main .framer-ySrmd .framer-5q2de2-container { top: 42px !important; } }

/* A tile is a link to its case; its caption is not underlined. */
body.work-home #main a.turbo-tile { display: block; width: 100%; color: inherit; text-decoration: none; }

/* The template's motion leaves every tile and its container on its own compositor layer (will-change: transform),
   some 130 on this page, and with that many a browser can paint a tile late or not at all while scrolling. The
   tiles keep their entrance without the hint. */
body.work-home #main :is(.framer-vOTDM, .framer-jq13nt-container) { will-change: auto !important; }

/* A row far off the screen (data-far, set by the page's watcher: Blog/src/ds/foundations/view.ts) is neither laid out
   nor painted, its contents held at the height they were measured at; data-measure is that measuring, for an instant.
   Near the screen a row is drawn as it always was. Without the script nothing here applies. */
body.work-home #main [data-turbo-case][data-far] { content-visibility: auto; contain-intrinsic-size: none var(--far-h, 600px); }
body.work-home #main [data-turbo-case][data-measure] { contain: layout paint style; }
