/* Tracium website: what the pages around the landing page share with it.
   Drawn at 1440, where one design px is --u; the page scales down to 1200, below that it takes one column at 1:1.
   The order matters: resets and type first, then the parts, the page-level spacing last, so it always wins. */
@property --tq-1a5982 { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --tq-cc91b5 { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --u { syntax: '<length>'; inherits: true; initial-value: 1px; }
@property --s { syntax: '<number>'; inherits: true; initial-value: 1; }
body { margin: 0; background: #ffffff; }
a { color: inherit; }

.pg { container-type: inline-size; overflow-x: clip; }
.pg-in { --u: min(1px, 100cqw / 1440); --s: min(1, tan(var(--tq-1a5982))); --tq-1a5982: atan2(100cqw, 1440px); font-family: var(--font-sans); color: var(--tr-color-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ------------------------------------------------------------ type: the landing page's web scale */
.t-dsp, .t-h1, .t-h2, .t-h3, .t-h4, .t-lead, .t-ttl, .t-sm { margin: 0; font-weight: 400; }
.t-dsp { font-size: calc(160 * var(--u)); line-height: 0.925; letter-spacing: -0.05em; white-space: nowrap; }
.t-h1 { font-size: calc(72 * var(--u)); line-height: 1; letter-spacing: -0.035em; }
.t-h2 { font-size: calc(64 * var(--u)); line-height: 1.0625; letter-spacing: -0.035em; }
.t-h3 { font-size: calc(40 * var(--u)); line-height: 1.1; letter-spacing: -0.03em; }
.t-h4 { font-size: calc(28 * var(--u)); line-height: calc(34 * var(--u)); letter-spacing: -0.02em; }
.t-lead { font-size: calc(20 * var(--u)); line-height: 1.4; color: var(--tr-color-text-2); }
.t-ttl { font-size: calc(20 * var(--u)); line-height: 1.4; color: var(--tr-color-text); }
.t-sm { font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); color: var(--tr-color-meta); }
[data-theme="indigo"] .t-lead { color: var(--tr-color-text); }

/* ------------------------------------------------------------ layout */
.wrap { position: relative; box-sizing: border-box; max-width: 1440px; margin: 0 auto; padding: 0 calc(72 * var(--u)); }
.sec { position: relative; overflow: clip; background: var(--tr-color-ground); color: var(--tr-color-text); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: calc(24 * var(--u)); align-items: start; }
.c-1-8 { grid-column: 1 / span 8; }
.c-9-12 { grid-column: 9 / span 4; }
.c-1-6 { grid-column: 1 / span 6; }
.c-7-12 { grid-column: 7 / span 6; }
/* A lead beside a headline starts on the headline's cap height. */
.cap-h1 { padding-top: calc(3.5 * var(--u)); }
.cap-h2 { padding-top: calc(4.3 * var(--u)); }
/* Large type starts on the column line, not on its first letter's side bearing: stems (B, F, H, L, N) 0.078 em,
   rounds (W, O) 0.047 em, diagonals (S, T, A) 0.031 em. Only the first line moves. */
.ol { text-indent: -0.078em; }
.ol-r { text-indent: -0.047em; }
.ol-d { text-indent: -0.031em; }

/* ------------------------------------------------------------ parts */
/* Kicker: the tick from a page's status line, then the name of the part. */
.kick { display: flex; align-items: center; margin: 0; font-weight: 400; }
.kick .tr-tick { margin-right: calc(14 * var(--u)); }
.kick-l { font-size: calc(20 * var(--u)); line-height: calc(28 * var(--u)); color: var(--tr-color-text); text-decoration: none; }
[data-theme="indigo"] .kick .tr-tick { background: var(--tr-color-text) !important; }
/* Its meta: a date, a count, a number, in the meta colour beside the name. */
.kick-n { margin-left: calc(20 * var(--u)); font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); color: var(--tr-color-meta); }

/* Top bar on the 40 line. The menu replaces the nav at every width. */
.top { padding-top: calc(40 * var(--u)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: calc(32 * var(--u)); height: calc(20 * var(--u)); }
.home { display: block; }
.logo { display: block; height: calc(20 * var(--u)); width: auto; }
.pg .nav { font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); gap: calc(32 * var(--u)); }

/* Buttons and links at the web scale. A button and a link side by side sit on one baseline. */
.pg .btn { height: calc(48 * var(--u)); padding: 0 calc(26 * var(--u)); font-size: calc(16 * var(--u)); line-height: calc(20 * var(--u)); }
.pg .lnk { font-size: calc(16 * var(--u)); line-height: calc(20 * var(--u)); }
.pg .btn-2 { background: var(--tr-color-ground); color: var(--tr-color-text); box-shadow: inset 0 0 0 var(--tr-stroke-hairline) var(--tr-color-mark-quiet); }
.acts { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(16 * var(--u)) calc(32 * var(--u)); }
/* On indigo the white button carries charcoal, not indigo: 18.6:1 instead of 5.8:1. */
.pg [data-theme="indigo"] .tr-button:not(.btn-2) { color: var(--tr-neutral-900); }
.ph { display: block; flex: none; object-fit: cover; border-radius: var(--tr-radius-md); background: var(--tr-color-fill); }

/* Details in hairline columns: a label, then the value. */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(24 * var(--u)); margin: 0; }
.facts > div { border-top: var(--tr-stroke-hairline) solid var(--tr-color-hairline); padding-top: calc(24 * var(--u)); }
.facts dt, .facts dd { margin: 0; }
.facts dd { margin-top: calc(8 * var(--u)); }

/* The folder tile: an image or a scene inside the folder's outline, the glass front with its tab on the left third.
   Drawn at 960 x 720 with the folder's own proportions (k 3.81: tab 57, corners 61) and scaled to the tile. */
.fold { position: relative; aspect-ratio: 4 / 3; container-type: inline-size; }
.fold-in { position: absolute; left: 0; top: 0; width: 960px; height: 720px; overflow: hidden; transform-origin: 0 0; scale: tan(var(--tq-cc91b5)); --tq-cc91b5: atan2(100cqw, 960px);
  clip-path: path("M0 61 A61 61 0 0 1 61 0 L283.5 0 C326.4 0 317.8 57.1 377.8 57.1 L899 57.1 A61 61 0 0 1 960 118.1 L960 659 A61 61 0 0 1 899 720 L61 720 A61 61 0 0 1 0 659 Z"); }
.fold-sc { position: absolute; inset: 0; transition: transform 0.9s var(--en, ease); }
.fold-sc > img { display: block; width: 100%; height: 100%; object-fit: cover; }
a:hover .fold-sc { transform: scale(1.035); }
.scene { position: relative; width: 960px; height: 720px; }
.sc-fill { background: var(--tr-color-fill); }

/* Posts: the folder tile, the date, the title, the lead. The whole card is the link. */
.posts { margin: 0; padding: 0; list-style: none; row-gap: calc(96 * var(--u)); }
.post { display: block; color: inherit; text-decoration: none; }
.post-m { margin-top: calc(32 * var(--u)); }
.post .t-h4 { margin-top: calc(8 * var(--u)); }
.post .t-lead { margin-top: calc(16 * var(--u)); }
.post:focus-visible { outline: 2px solid var(--tr-color-accent); outline-offset: 8px; border-radius: 2px; }
/* The newest post, in the direction of the article head: the text over the first six columns, the tile over the
   last six, both from the kicker's line. The title one step under the page's headline. */
.feat { color: inherit; text-decoration: none; }
.feat-t { display: flex; flex-direction: column; align-items: flex-start; }
.feat-t .t-h2 { margin-top: calc(24 * var(--u)); }
.feat-t .t-lead { margin-top: calc(32 * var(--u)); }
.feat-go { margin-top: calc(48 * var(--u)); padding-bottom: 2px; border-bottom: var(--tr-stroke-hairline) solid var(--tr-color-text); font-size: calc(16 * var(--u)); line-height: calc(20 * var(--u)); }
.feat:focus-visible { outline: 2px solid var(--tr-color-accent); outline-offset: 8px; border-radius: 2px; }

/* Split head: the text in the first six columns, the tile in the last six, both from the kicker's line. */
.split-t .t-h1 { margin-top: calc(24 * var(--u)); }
.split-t .t-lead { margin-top: calc(32 * var(--u)); }
.split-t .acts, .split-t .facts { margin-top: calc(48 * var(--u)); }

/* The close: the offer once more, then the way in. */
.close-in { padding-top: calc(160 * var(--u)); padding-bottom: calc(160 * var(--u)); }
.close-in .t-dsp { margin-top: calc(40 * var(--u)); }
.close-in .t-lead { margin-top: calc(40 * var(--u)); }
.close-in .acts { margin-top: calc(48 * var(--u)); }

/* Footer */
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: calc(32 * var(--u)); border-top: var(--tr-stroke-hairline) solid var(--tr-color-hairline); padding: calc(56 * var(--u)) 0 calc(72 * var(--u)); }
.foot-l { width: calc(636 * var(--u)); }
.foot-r { display: flex; align-items: center; gap: calc(32 * var(--u)); }

/* Article: a reading column of about 70 characters, the sections listed beside it. */
.prose { max-width: calc(680 * var(--u)); }
.prose h2 { margin: calc(64 * var(--u)) 0 0; font-size: calc(28 * var(--u)); line-height: calc(34 * var(--u)); font-weight: 400; letter-spacing: -0.02em; scroll-margin-top: calc(40 * var(--u)); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: calc(24 * var(--u)) 0 0; font-size: calc(20 * var(--u)); line-height: calc(32 * var(--u)); }
.prose h2 + p { margin-top: calc(16 * var(--u)); }
.prose .dmc { display: block; margin: calc(32 * var(--u)) 0 0; padding: calc(20 * var(--u)) calc(24 * var(--u)); border-radius: var(--tr-radius-md); background: var(--tr-color-fill); font-family: var(--font-mono); font-size: calc(18 * var(--u)); line-height: calc(28 * var(--u)); white-space: nowrap; overflow-x: auto; }
.prose .dmc + p { margin-top: calc(32 * var(--u)); }
/* Code in the text, and a short XML listing on the fill, scrolling sideways rather than wrapping. */
.prose code { font-family: var(--font-mono); font-size: 0.88em; overflow-wrap: anywhere; }
.prose pre { margin: calc(32 * var(--u)) 0 0; padding: calc(20 * var(--u)) calc(24 * var(--u)); border-radius: var(--tr-radius-md); background: var(--tr-color-fill); font-family: var(--font-mono); font-size: calc(13.5 * var(--u)); line-height: calc(22 * var(--u)); white-space: pre; overflow-x: auto; tab-size: 2; }
.prose pre code { font-size: inherit; overflow-wrap: normal; }
.prose pre + p { margin-top: calc(32 * var(--u)); }
.src { margin: calc(64 * var(--u)) 0 0; padding: calc(24 * var(--u)) 0 0; border-top: var(--tr-stroke-hairline) solid var(--tr-color-hairline); list-style: none; }
.src li + li { margin-top: calc(8 * var(--u)); }
.src a { text-decoration: none; border-bottom: var(--tr-stroke-hairline) solid var(--tr-color-hairline); }
.toc-c { align-self: stretch; }
.toc { position: sticky; top: calc(96 * var(--u)); padding-top: calc(2.6 * var(--u)); }
.toc ol { margin: calc(16 * var(--u)) 0 0; padding: 0; list-style: none; }
.toc li { border-top: var(--tr-stroke-hairline) solid var(--tr-color-hairline); }
.toc li:last-child { border-bottom: var(--tr-stroke-hairline) solid var(--tr-color-hairline); }
.toc ol a { display: block; padding: calc(12 * var(--u)) 0; font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); color: var(--tr-color-text); text-decoration: none; }
.toc .btn { margin-top: calc(32 * var(--u)); }
/* In the article: links underlined with a hairline, lists and tables on the reading column's scale. */
.prose a { text-decoration: none; border-bottom: var(--tr-stroke-hairline) solid currentColor; }
.prose h3 { margin: calc(40 * var(--u)) 0 0; font-size: calc(20 * var(--u)); line-height: calc(28 * var(--u)); font-weight: 500; letter-spacing: -0.01em; }
.prose h3 + p { margin-top: calc(8 * var(--u)); }
.prose ul, .prose ol { margin: calc(24 * var(--u)) 0 0; padding: 0 0 0 1.2em; }
.prose li { font-size: calc(20 * var(--u)); line-height: calc(32 * var(--u)); padding-left: 0.2em; }
.prose li + li { margin-top: calc(8 * var(--u)); }
.prose li::marker { color: var(--tr-color-meta); }
.prose .tbl { margin: calc(32 * var(--u)) 0 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: calc(16 * var(--u)); line-height: calc(24 * var(--u)); }
.prose th, .prose td { padding: calc(12 * var(--u)) calc(16 * var(--u)) calc(12 * var(--u)) 0; border-top: var(--tr-stroke-hairline) solid var(--tr-color-hairline); text-align: left; vertical-align: top; }
.prose th { font-weight: 400; font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); color: var(--tr-color-meta); }
.prose tr:last-child td { border-bottom: var(--tr-stroke-hairline) solid var(--tr-color-hairline); }
.prose td:first-child { color: var(--tr-color-text); }
.prose td.code { font-family: var(--font-mono); font-size: 0.94em; white-space: nowrap; }
/* The answer first: what the article says in a few lines, on the fill, before the first section. */
.sum { margin: 0 0 calc(64 * var(--u)); padding: calc(28 * var(--u)) calc(32 * var(--u)) calc(32 * var(--u)); border-radius: var(--tr-radius-md); background: var(--tr-color-fill); }
.sum .t-sm, .prose .sum p.t-sm { margin: 0; color: var(--tr-color-text); }
.prose .sum ul { margin-top: calc(12 * var(--u)); }
.prose .sum li { font-size: calc(18 * var(--u)); line-height: calc(28 * var(--u)); }
/* Questions and answers: each question on a hairline. */
.faq .qa { margin-top: calc(24 * var(--u)); padding-top: calc(24 * var(--u)); border-top: var(--tr-stroke-hairline) solid var(--tr-color-hairline); }
.prose .faq > h2:first-child { margin-top: calc(64 * var(--u)); }
.faq h2 + .qa { margin-top: calc(32 * var(--u)); }
.prose .qa h3 { margin: 0; }
.prose .src .t-sm { margin: 0; }
.src ol { margin: calc(12 * var(--u)) 0 0; padding: 0 0 0 1.4em; }
.src ol li { font-size: calc(15 * var(--u)); line-height: calc(22 * var(--u)); padding: 0; }
.src ol li + li { margin-top: calc(6 * var(--u)); }
/* The author: who wrote it and why it is theirs to write. */
.by { display: flex; gap: calc(24 * var(--u)); align-items: flex-start; margin-top: calc(64 * var(--u)); padding-top: calc(32 * var(--u)); border-top: var(--tr-stroke-hairline) solid var(--tr-color-hairline); }
.by-ph { width: calc(72 * var(--u)); height: calc(72 * var(--u)); }
.by .t-sm { margin: 0; }
.prose .by-n { margin: calc(4 * var(--u)) 0 0; font-size: calc(20 * var(--u)); line-height: 1.4; }
/* Small labels inside the article keep the small size: the reading column's paragraph size must not reach them. */
.prose p.t-sm { font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); color: var(--tr-color-meta); }
.prose p.by-bio { margin: calc(8 * var(--u)) 0 0; font-size: calc(15 * var(--u)); line-height: calc(22 * var(--u)); }
.by-in { margin-left: 0.4em; color: var(--tr-color-text); }
/* Sharing: a quiet row of links, in the sidebar and after the author. */
.share { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(8 * var(--u)) calc(20 * var(--u)); margin-top: calc(32 * var(--u)); }
.prose .share { margin-top: calc(40 * var(--u)); }
.share .t-sm, .prose .share .t-sm { margin: 0; }
.share-a { padding: 0 0 2px; border: 0; border-bottom: var(--tr-stroke-hairline) solid var(--tr-color-hairline); border-radius: 0; background: none; font: inherit; font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); color: var(--tr-color-text); text-decoration: none; cursor: pointer; transition: color var(--hv, 0.35s), border-color var(--hv, 0.35s); }
.prose a.share-a { border-bottom-color: var(--tr-color-hairline); }
.share-a:hover, .prose a.share-a:hover { color: var(--tr-color-accent); border-color: currentColor; }
.share-a:focus-visible { outline: 2px solid var(--tr-color-accent); outline-offset: 2px; }
/* A figure worth quoting: the number large, what it means and where it comes from small. */
.stat { margin: calc(40 * var(--u)) 0 0; padding: calc(28 * var(--u)) 0 calc(24 * var(--u)); border-top: var(--tr-stroke-hairline) solid var(--tr-color-hairline); border-bottom: var(--tr-stroke-hairline) solid var(--tr-color-hairline); }
.prose .stat-n { margin: 0; font-size: calc(64 * var(--u)); line-height: 1; letter-spacing: -0.035em; }
.prose .stat-t { margin: calc(16 * var(--u)) 0 0; font-size: calc(18 * var(--u)); line-height: calc(26 * var(--u)); }
.prose .stat .t-sm { margin: calc(8 * var(--u)) 0 0; }
.stat + p { margin-top: calc(32 * var(--u)); }
.c-1-4 { grid-column: 1 / span 4; }
.c-5-8 { grid-column: 5 / span 4; }

/* ------------------------------------------------------------ page-level spacing: last, and one class stronger than any part, so nothing can undo it */
.pg-in .pt { padding-top: calc(160 * var(--u)); }
.pg-in .pb { padding-bottom: calc(160 * var(--u)); }
.pg-in .phd { margin-top: calc(128 * var(--u)); }      /* the page head: its kicker 128 under the top bar */
.pg-in .gap-xl { margin-top: calc(160 * var(--u)); }   /* between sections on one ground */
.pg-in .gap-l { margin-top: calc(128 * var(--u)); }    /* between the parts of a page */
.pg-in .gap-m { margin-top: calc(96 * var(--u)); }     /* between a section's head and its content */
.pg-in .gap-s { margin-top: calc(48 * var(--u)); }
.pg-in .mt-24 { margin-top: calc(24 * var(--u)); }

/* Motion: the page arrives with the folder transition (transition.css), so its head stands still; the parts
   below rise as they come into view. */
@keyframes s-rise { from { opacity: 0; translate: 0 32px; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .feat, .posts > li, .roles > li, .crew > li, .perks > div { animation: s-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .fold-sc { transition: none; }
  a:hover .fold-sc { transform: none; }
}

/* ------------------------------------------------------------ below 1200: one column at 1:1 */
@container (max-width: 1199px) {
  .pg-in { --u: 1px; --s: 1; }
  .wrap { padding-left: clamp(20px, 5cqw, 56px); padding-right: clamp(20px, 5cqw, 56px); }
  .t-dsp { font-size: clamp(72px, 15cqw, 160px); }
  .t-h1 { font-size: clamp(40px, 7.4cqw, 64px); text-wrap: balance; }
  .t-h2 { font-size: clamp(32px, 6.2cqw, 56px); text-wrap: balance; }
  .t-h3 { font-size: clamp(28px, 4.4cqw, 40px); text-wrap: balance; }
  .t-lead, .t-ttl { font-size: 18px; }
  .t-h1 br, .t-h2 br, .t-h3 br, .t-lead br { display: none; }
  .g12 { display: flex; flex-direction: column; align-items: stretch; row-gap: 32px; }
  .cap-h1, .cap-h2 { padding-top: 0; }
  .topbar { height: auto; }
  .pg-in .pt { padding-top: 96px; }
  .pg-in .pb { padding-bottom: 96px; }
  .pg-in .phd { margin-top: clamp(56px, 9cqw, 96px); }
  .pg-in .gap-xl { margin-top: 96px; }
  .pg-in .gap-l { margin-top: clamp(64px, 10cqw, 96px); }
  .pg-in .gap-m { margin-top: clamp(48px, 7cqw, 72px); }
  .pg-in .gap-s { margin-top: 40px; }
  .split { row-gap: 48px; }
  .split-v { max-width: 640px; }
  .feat { row-gap: 32px; }
  .feat-v { order: -1; }
  .feat-t { max-width: 640px; }
  .posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); column-gap: 24px; row-gap: 64px; }
  .posts > li { grid-column: auto !important; }
  .close-in { padding-top: 96px; padding-bottom: 96px; }
  .close-in .t-dsp { margin-top: 32px; }
  .close-in .t-lead { margin-top: 32px; }
  .close-in .acts { margin-top: 40px; }
  .foot { flex-direction: column; }
  .foot-l { width: auto; }
  .foot .t-sm br { display: none; }
  .foot-r { flex-wrap: wrap; }
  .toc-c { display: none; }
  .prose p, .prose li { font-size: 18px; line-height: 30px; }
  .prose p.t-sm { font-size: 15px; line-height: 20px; }
  .prose p.by-bio { font-size: 15px; line-height: 22px; }
  .prose .dmc { font-size: 15px; }
  .prose pre { padding: 16px 18px; font-size: 13px; line-height: 21px; }
  .prose .sum li { font-size: 17px; line-height: 26px; }
  .prose h3 { font-size: 19px; line-height: 26px; }
  .prose table { font-size: 15px; line-height: 22px; }
  .sum { padding: 24px; }
  .by-ph { width: 64px; height: 64px; }
  .prose .stat-n { font-size: clamp(44px, 9cqw, 64px); }
  .prose .stat-t { font-size: 17px; line-height: 25px; }
  .share-a { font-size: 15px; line-height: 20px; }
}
/* Phones: a short title keeps its sense break. */
@container (max-width: 640px) {
  .t-h1.brk br { display: inline; }
}
