/* ------------------------------------------------------------------ tokens
   Identical to the palette the articles carry, so the site chrome and the
   articles resolve to one design system in all three theme states:
   bare :root (light), system dark, and an explicit data-theme stamp.        */

:root{
  --ground:#F5F6F8; --surface:#FFFFFF; --surface-2:#EAEDF2;
  --ink:#14181D; --ink-2:#4A535F; --ink-3:#606A77;
  --rule:#D8DCE3; --rule-2:#C2C8D1;
  --a:#4568DC; --a-fill:rgba(69,104,220,.12);
  --b:#A0651B; --b-fill:rgba(160,101,27,.14);
  --sec:#874A91; --sec-fill:rgba(135,74,145,.13);
  --warn:#9A3B2E; --warn-fill:rgba(154,59,46,.10);
  --code-bg:#EDF0F4; --code-ink:#1D2530;
  /* The axis triad, red/green/blue for X/Y/Z -- the convention every CAD viewer
     uses, so a reader recognises the frame before reading the label. They are
     palette reds and greens rather than #F00/#0F0/#00F: pure primaries vibrate
     against this ground and go illegible in dark mode.                        */
  --ax-x:#C0392B; --ax-y:#2C7A3F; --ax-z:#2059B0;
  /* The brand palette, as the paint styles of the Avenir Figma file define it.
     These are identity colours, so unlike the tokens above they do not change
     with the theme: a logo on --brand-dark looks the same in light and dark.   */
  --brand-blue:#4568DC; --brand-blue-2:#5F7EE1; --brand-blue-light:#E3E8FA;
  --brand-indigo:#656ACA; --brand-violet:#7368CF; --brand-pink:#AC6CB4;
  --brand-dark:#39405D; --brand-navy:#182244;
  --brand-grey:#EFEFEF; --brand-black:#101010; --brand-white:#FFFFFF;
  --brand-grad:linear-gradient(90deg,#7368CF,#AC6CB4);
  --brand-grad-blue:linear-gradient(90deg,#4967D8,#5E68D4 50%,#656ACA);
  --brand-grad-navy:radial-gradient(ellipse at center,rgba(25,35,69,.88),rgba(24,34,68,.96) 50%,#182244);
  /* the prose column. 68ch is the comfortable default; on a wide screen the same
     type can carry a longer line without the eye losing the return sweep, and the
     figures -- which are drawn to the column -- gain with it. */
  /* the sticky header: 58px bar plus its 1px rule. The article sidebar and every
     anchor target sit below it, so they read this rather than a copy of 59. */
  --top-h:59px;
  --measure:68ch;
  --serif:"IBM Plex Serif",Georgia,"Times New Roman",serif;
  --sans:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,monospace;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ground:#0E1116; --surface:#161A21; --surface-2:#1C212A;
    --ink:#E2E7EE; --ink-2:#9AA5B3; --ink-3:#808A99;
    --rule:#242A34; --rule-2:#333A46;
    --a:#7F9BF0; --a-fill:rgba(127,155,240,.15);
    --b:#D9A055; --b-fill:rgba(217,160,85,.15);
    --sec:#D29FD8; --sec-fill:rgba(210,159,216,.15);
    --warn:#E08172; --warn-fill:rgba(224,129,114,.12);
    --code-bg:#11151B; --code-ink:#CBD4E0;
    --ax-x:#F0887A; --ax-y:#6FCB86; --ax-z:#7CB0F2;
  }
}
:root[data-theme="dark"]{
  --ground:#0E1116; --surface:#161A21; --surface-2:#1C212A;
  --ink:#E2E7EE; --ink-2:#9AA5B3; --ink-3:#808A99;
  --rule:#242A34; --rule-2:#333A46;
  --a:#7F9BF0; --a-fill:rgba(127,155,240,.15);
  --b:#D9A055; --b-fill:rgba(217,160,85,.15);
  --sec:#D29FD8; --sec-fill:rgba(210,159,216,.15);
  --warn:#E08172; --warn-fill:rgba(224,129,114,.12);
  --code-bg:#11151B; --code-ink:#CBD4E0;
  --ax-x:#F0887A; --ax-y:#6FCB86; --ax-z:#7CB0F2;
}

/* -------------------------------------------------------------------- base */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--ground); color:var(--ink);
  font-family:var(--serif); font-size:17px; line-height:1.68;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
  -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%; height:auto}
a{color:var(--a); text-decoration:none; border-bottom:1px solid transparent}
a:hover{border-bottom-color:currentColor}
:focus-visible{outline:2px solid var(--a); outline-offset:3px; border-radius:2px}
code{font-family:var(--mono); font-size:.88em; background:var(--code-bg);
     color:var(--code-ink); padding:.12em .36em; border-radius:2px}

.av-wrap{max-width:1160px; margin:0 auto; padding-left:max(20px,env(safe-area-inset-left,0px)); padding-right:max(20px,env(safe-area-inset-right,0px))}
@media (min-width:1200px){:root{--measure:74ch}
  .av-wrap{max-width:1240px}}
@media (min-width:1460px){:root{--measure:80ch}
  .av-wrap{max-width:1320px}}
.av-skip{position:absolute; left:-9999px; top:0; background:var(--surface);
         color:var(--ink); padding:10px 16px; z-index:10}
.av-skip:focus{left:8px; top:8px}

/* ------------------------------------------------------------------ header */

.av-top{
  background:var(--ground); border-bottom:1px solid var(--rule);
  position:sticky; top:env(safe-area-inset-top,0px); z-index:9;
}
.av-top-in{display:flex; align-items:center; gap:18px; min-height:58px; flex-wrap:wrap}
.av-brand{display:inline-flex; align-items:center; gap:9px; color:var(--ink);
          border-bottom:0; flex:none}
.av-brand:hover{border-bottom:0; color:var(--a)}
.av-logo{display:block; height:30px; width:auto; flex:none}
.av-brand:hover .av-logo{filter:brightness(1.12)}
.av-nav{display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-left:auto;
        font-family:var(--sans); font-size:14px}
/* 12px of padding makes each link a 47px tall target without changing the bar */
.av-nav a{color:var(--ink-2); padding-block:12px; border-bottom:1px solid transparent}
.av-nav a:hover{color:var(--a); border-bottom-color:transparent}
.av-nav a.av-on{color:var(--ink); font-weight:500; border-bottom-color:var(--a)}
/* Contact is where every page is meant to lead, so it is the one item drawn as a
   button. Outlined, not filled: the filled blue belongs to the page's own action. */
.av-nav a.av-nav-cta{color:var(--a); font-weight:500; padding:10px 16px; min-height:44px;
                     display:inline-flex; align-items:center;
                     border:1px solid var(--a); border-radius:3px}
.av-nav a.av-nav-cta:hover{background:var(--a-fill); border-color:var(--a)}
.av-nav a.av-nav-cta.av-on{background:var(--a-fill); border-color:var(--a)}
.av-theme{background:none; border:1px solid var(--rule); border-radius:3px; cursor:pointer;
          color:var(--ink-3); width:44px; height:44px; display:grid; place-items:center;
          flex:none; padding:0}
.av-theme:hover{color:var(--a); border-color:var(--rule-2)}
.av-theme svg{width:16px; height:16px; grid-area:1/1}
/* the icon shows the theme you are in; the label names the one you will get */
.av-theme .av-i-moon{display:none}
:root[data-theme="dark"] .av-theme .av-i-sun{display:none}
:root[data-theme="dark"] .av-theme .av-i-moon{display:block}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .av-theme .av-i-sun{display:none}
  :root:not([data-theme="light"]) .av-theme .av-i-moon{display:block}
}
/* Services opens a list of its pages. Hover opens it for a mouse; the chevron
   button beside the link opens it for touch and keyboard, and names its state. */
.av-nav-drop{position:relative; display:flex; align-items:center; gap:2px}
.av-drop-btn{background:none; border:0; padding:0; cursor:pointer; color:var(--ink-3);
             width:44px; height:44px; display:grid; place-items:center; border-radius:3px;
             position:relative}
/* the chevron is drawn small, but the button itself is a 44px touch */
.av-drop-btn::before{content:""; position:absolute; inset:0}
.av-drop-btn:hover{color:var(--a)}
.av-drop-btn svg{width:10px; height:10px; transition:transform .18s cubic-bezier(.22,1,.36,1)}
.av-drop-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.av-drop{display:none; position:absolute; top:100%; left:-16px; z-index:10; margin:0;
         padding:6px 0; list-style:none; width:max-content; max-width:min(340px,calc(100vw - 32px));
         background:var(--surface); border:1px solid var(--rule); border-radius:3px;
         box-shadow:0 6px 14px -6px rgba(20,24,29,.22)}
.av-drop-btn[aria-expanded="true"] + .av-drop{display:block}
.av-nav-drop:focus-within .av-drop{display:block}
.av-nav .av-drop a{display:block; padding:12px 16px; min-height:44px; color:var(--ink-2); border-bottom:0; line-height:1.4}
.av-nav .av-drop a:hover{color:var(--a); background:var(--a-fill)}
@media (max-width:620px){
  .av-top{position:static}
  .av-top-in{padding-block:8px 4px; gap:6px 10px}
  .av-nav{width:100%; order:3; margin-left:0; gap:4px 16px}
  .av-theme{margin-left:auto}
}
@media (max-width:400px){.av-nav{gap:4px 12px}}

/* anchors land below the sticky bar instead of under it */
:target, [id]{scroll-margin-top:calc(var(--top-h) + 16px)}
@media (max-width:620px){[id]{scroll-margin-top:16px}}

/* -------------------------------------------------------------------- page */

.av-page{padding-block:52px 72px}
.av-page-head{max-width:var(--measure)}
.av-eyebrow{font-family:var(--sans); font-size:11.5px; font-weight:600;
            letter-spacing:.13em; text-transform:uppercase; color:var(--a); margin:0 0 14px}
h1,h2,h3{font-family:var(--serif); text-wrap:balance; color:var(--ink)}
h1{font-size:clamp(32px,5vw,46px); line-height:1.12; letter-spacing:-.018em; margin:0 0 18px}
h2{font-size:26px; line-height:1.24; margin:0 0 12px}
h3{font-size:19px; line-height:1.3; margin:0 0 8px}
p{margin:0 0 16px}
.av-crumb{font-family:var(--sans); font-size:14px; margin:0 0 14px}
.av-crumb a{color:var(--ink-3)}
.av-crumb a::before{content:"\2190\00a0"}
.av-crumb a:hover{color:var(--a)}
.av-lede{font-size:20px; line-height:1.56; color:var(--ink-2); max-width:var(--measure)}
.av-vh{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
       clip:rect(0 0 0 0); white-space:nowrap; border:0}
.av-sub{font-family:var(--sans); font-size:14px; color:var(--ink-3)}

/* -------------------------------------------------------------------- home */

.av-hero{padding-block:76px 56px; border-bottom:1px solid var(--rule)}
.av-hero h1{max-width:19ch}
.av-hero .av-lede{margin-bottom:28px}
.av-hero-offer{font-family:var(--sans); font-size:14.5px; line-height:1.5; color:var(--ink-2);
               max-width:56ch; margin:16px 0 0}
/* text on the left, one of the articles' own figures on the right: the page shows
   the geometry it is about instead of describing it. Stacks below 1020px. */
.av-hero-grid{display:grid; gap:36px 56px; align-items:center}
@media (min-width:1020px){.av-hero-grid{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)}}
.av-hero-fig{margin:0}
.av-hero-plate{border:1px solid var(--rule); border-radius:3px; background:var(--surface);
               padding:18px 16px}
.av-hero-plate svg{display:block; width:100%; height:auto}
.av-hero-plate .sv-m{font-family:var(--mono); font-size:10.5px}
.av-hero-plate .sv-l{font-family:var(--sans); font-size:11px; font-weight:500}
.av-hero-fig figcaption{font-family:var(--sans); font-size:12.5px; line-height:1.5;
                        color:var(--ink-3); margin-top:10px; max-width:60ch}
@media (max-width:1019px){.av-hero-fig{max-width:560px}}
/* the plate shrinks the drawing to about two thirds on a phone; larger labels keep
   them near 10px on screen */
@media (max-width:620px){
  .av-hero-plate{padding:12px 18px}
  .av-hero-plate .sv-m{font-size:12.5px}
  .av-hero-plate .sv-l{font-size:13px}
}
.av-cta{display:flex; gap:12px; flex-wrap:wrap; font-family:var(--sans); font-size:14.5px}
.av-btn{display:inline-flex; align-items:center; min-height:44px; padding:12px 20px; border-radius:3px; font-weight:500;
        border:1px solid var(--a) !important; background:var(--a); color:var(--ground)}
.av-btn:hover{border-bottom-color:var(--a); filter:brightness(1.08)}
.av-btn-2{background:none; color:var(--a)}
.av-btn-2:hover{background:var(--a-fill); border-bottom-color:var(--a)}

.av-band{padding-block:56px; border-bottom:1px solid var(--rule)}
.av-band:last-of-type{border-bottom:0}
.av-band-h{font-family:var(--sans); font-size:11.5px; font-weight:600; letter-spacing:.13em;
           text-transform:uppercase; color:var(--ink-3); margin:0 0 24px}
/* a band's title is the section heading, so it outranks every heading inside it */
.av-band-t{font-size:clamp(24px,3vw,30px); line-height:1.2; letter-spacing:-.014em; margin:0 0 26px;
           max-width:var(--measure)}
.av-band-lede{color:var(--ink-2); max-width:min(var(--measure),64ch); margin:-12px 0 28px}
.av-band-t + .av-band-lede{margin-top:-14px}
.av-band-more{font-family:var(--sans); font-size:14.5px; margin:24px 0 0;
              display:flex; flex-wrap:wrap; gap:6px 28px; color:var(--ink-3)}

.av-cols{display:grid; gap:34px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.av-col h3{margin-bottom:10px}
.av-col p{color:var(--ink-2); font-size:16px; margin:0}
.av-col-n{font-family:var(--mono); font-size:12px; color:var(--a); display:block; margin-bottom:10px}
/* open source on Home: the sheet-metal module told in full, the OCCT fixes in brief */
.av-oss{display:grid; gap:34px 56px}
@media (min-width:900px){.av-oss{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}}
.av-oss p{color:var(--ink-2); font-size:16px; margin:0; max-width:min(var(--measure),64ch)}
.av-oss p + p{margin-top:12px}
.av-oss .av-oss-lead{grid-column:1/-1; padding-bottom:34px; border-bottom:1px solid var(--rule)}
.av-oss .av-oss-install{margin-top:12px; font-family:var(--sans); font-size:14px; color:var(--ink-3)}
.av-oss .av-oss-install code{margin-right:10px}
.av-oss .av-oss-next{margin-top:30px; padding-top:22px; border-top:1px solid var(--rule)}
.av-oss h3{margin-bottom:10px}
.av-oss .av-col-n{font-family:var(--sans); font-size:11.5px; font-weight:600; letter-spacing:.13em;
                  text-transform:uppercase; color:var(--ink-3)}
.av-oss .av-oss-links{display:flex; flex-wrap:wrap; gap:6px 20px; margin-top:14px;
                      font-family:var(--sans); font-size:14.5px}

/* the horizontal rule of small facts under the hero */
.av-facts{display:grid; gap:1px; grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
          background:var(--rule); border:1px solid var(--rule); border-radius:3px;
          overflow:hidden; margin-top:34px}
.av-fact{background:var(--surface); padding:18px 20px}
.av-fact dt{font-family:var(--sans); font-size:11.5px; font-weight:600; letter-spacing:.1em;
            text-transform:uppercase; color:var(--ink-3); margin-bottom:6px}
.av-fact dd{margin:0; font-size:16px; color:var(--ink)}

/* ------------------------------------------------------------ article list */

.av-entries{list-style:none; padding:0; margin:44px 0 0; display:flex;
            flex-direction:column; gap:0}
.av-entry{border-top:1px solid var(--rule); padding-block:28px; max-width:var(--measure)}
.av-entry:last-child{border-bottom:1px solid var(--rule)}
.av-entry h2{font-size:27px; margin:0 0 10px; letter-spacing:-.012em}
.av-entry h2 a{color:var(--ink); border-bottom:1px solid transparent}
.av-entry h2 a:hover{color:var(--a)}
/* on Home the latest articles sit under a section heading, so they are h3s, set at
   card-title size rather than the index's 27px */
.av-entries-latest{margin-top:0}
.av-entries-latest .av-entry{padding-block:18px}
.av-entries-latest .av-entry h3{margin:0}
@media (min-width:900px){
  .av-entries-latest{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 32px}
  .av-entries-latest .av-entry{border-bottom:1px solid var(--rule)}
}
.av-entry h3{font-size:21px; line-height:1.25; margin:0 0 8px; letter-spacing:-.01em}
.av-entry h3 a{color:var(--ink); border-bottom:1px solid transparent}
.av-entry h3 a:hover{color:var(--a)}
.av-entries-all{margin-top:22px}
.av-entry-meta{font-family:var(--sans); font-size:12.5px; color:var(--ink-3); margin:0 0 9px;
               display:flex; gap:7px; flex-wrap:wrap; align-items:baseline}
.av-series{color:var(--a); font-weight:500}
.av-entry-desc{color:var(--ink-2); font-size:16.5px; margin:0 0 14px}
.av-tags{list-style:none; display:flex; flex-wrap:wrap; gap:6px; padding:0; margin:0}
.av-tags li{font-family:var(--sans); font-size:11.5px; color:var(--ink-3);
            border:1px solid var(--rule); border-radius:2px; padding:2px 8px}

/* ------------------------------------------------------------------ prose  */

.av-prose{max-width:var(--measure)}
.av-prose h2{margin-top:44px; padding-top:22px; border-top:1px solid var(--rule)}
.av-prose h3{margin-top:28px}
.av-prose ul{padding-left:20px; margin:0 0 16px}
.av-prose li{margin-bottom:9px}
.av-prose strong{font-weight:600}
.av-note{border-left:2px solid var(--a); background:var(--a-fill); padding:16px 18px;
         border-radius:0 3px 3px 0; margin:24px 0; max-width:var(--measure)}
.av-note p{margin:0; font-size:16px}
.av-note p + p{margin-top:10px}

/* ------------------------------------------------------------------ footer */

.av-foot{border-top:1px solid var(--rule); background:var(--surface-2); margin-top:0}
.av-article .av-foot{margin-top:0}
.av-foot-in{display:grid; gap:30px; grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
            padding-block:40px 30px}
.av-foot-col{display:flex; flex-direction:column; gap:7px;
             font-family:var(--sans); font-size:14px}
.av-foot-col a{color:var(--ink-2); border-bottom:1px solid transparent}
.av-foot-col a:hover{color:var(--a); border-bottom-color:currentColor}
.av-foot-name{font-weight:600; color:var(--ink); margin:0}
.av-foot-note{color:var(--ink-3); margin:0; max-width:34ch}
.av-foot-h{font-family:var(--sans); font-size:11.5px; font-weight:600; letter-spacing:.11em; text-transform:uppercase;
           color:var(--ink-3); margin:0 0 3px}
.av-foot-legal{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
               border-top:1px solid var(--rule); padding-block:16px 22px;
               font-family:var(--sans); font-size:12.5px; color:var(--ink-3)}

/* ----------------------------------------------------------------- article */
/* Each article ships its own complete stylesheet. All this does is keep the
   site chrome from colliding with it and trim the doubled top margin.        */

.av-article .wrap{padding-left:max(20px,env(safe-area-inset-left,0px)); padding-right:max(20px,env(safe-area-inset-right,0px))}
.av-article .mast{padding-block:40px 0}

@media (prefers-reduced-motion:reduce){*{animation:none!important; transition:none!important}}

/* --------------------------------------------------- chrome link overrides
   An article's own stylesheet is inlined after this file, and its bare `a`
   rule has the same specificity as ours. These class-scoped rules win on
   specificity regardless of order, so the header and footer keep their own
   link treatment on article pages.                                          */

.av-top a,
.av-foot a{border-bottom:1px solid transparent}
.av-top a:hover{border-bottom-color:transparent}
.av-nav a.av-on{border-bottom-color:var(--a)}
.av-top .av-nav a.av-nav-cta{border:1px solid var(--a)}
.av-foot a:hover{border-bottom-color:currentColor}
.av-skip{border-bottom:0}

/* ------------------------------------------------------------- series cards
   /articles/ is a choice between two series, so it shows two objects and
   nothing else to read past. Framed card, artwork bled to the top edges, then
   kicker, name, what it covers and what is in it. --k is the series accent,
   set per card so the plate and the kicker agree with the drawing in it.    */

/* Two cards, not a wall. The grid is capped well short of the 1160px wrap so a
   card stays about the width of a column of prose -- a thing you scan in one
   glance -- instead of stretching to half a wide screen.                     */
.av-cards{list-style:none; padding:0; margin:40px 0 0; display:grid; gap:24px;
          max-width:820px; grid-template-columns:repeat(auto-fit,minmax(min(100%,268px),1fr))}
.av-card{
  display:flex; flex-direction:column;
  background:var(--surface); border:1px solid var(--rule-2); border-radius:6px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(20,24,29,.05), 0 8px 20px -12px rgba(20,24,29,.28);
  transition:border-color .14s ease, box-shadow .14s ease;
}
.av-card-1{--k:var(--a); --k-fill:var(--a-fill)}
.av-card-2{--k:var(--b); --k-fill:var(--b-fill)}
.av-card:hover{border-color:var(--a);
               box-shadow:0 1px 2px rgba(20,24,29,.05), 0 12px 26px -12px rgba(20,24,29,.34)}

.av-card-art{
  display:grid; place-items:center; padding:20px 24px;
  background:var(--k-fill); border-bottom:1px solid var(--rule-2); border-radius:0;
}
.av-card-art svg{display:block; width:100%; height:auto}

.av-card-body{display:flex; flex-direction:column; flex:1 1 auto; padding:20px 22px 22px}
/* the count labels the list it counts, so it sits with it rather than above the name */
.av-card-kicker{
  font-family:var(--sans); font-size:11px; font-weight:600; letter-spacing:.13em;
  text-transform:uppercase; color:var(--ink-3);
  margin:18px 0 0; padding-top:14px; border-top:1px solid var(--rule);
}
.av-card-title{font-family:var(--serif); font-size:21px; line-height:1.22;
               letter-spacing:-.012em; margin:0}
.av-card-title a{color:var(--ink); border-bottom:1px solid transparent}
.av-card-title a:hover{color:var(--k); border-bottom-color:transparent}
.av-card-blurb{color:var(--ink-2); font-size:15px; line-height:1.52; margin:9px 0 0}

.av-card-list{
  list-style:none; padding:0; margin:11px 0 0;
  display:flex; flex-direction:column; gap:8px;
  font-family:var(--sans); font-size:14px; line-height:1.4; color:var(--ink-2);
}
.av-card-list b{font-family:var(--mono); font-size:12px; font-weight:400; color:var(--k)}

.av-card-btn{margin:auto 0 0; padding-top:20px}
/* the action stays one colour across both cards -- --k identifies the series,
   it is not a second brand colour to press. */

/* The two cards are one object repeated, so their parts line up rather than
   each drifting with the length of its own blurb. Subgrid hands the card, and
   then its body, the outer grid's rows, which makes every row as tall as the
   taller card needs -- so the rule above "2 ARTICLES" is one line across both.
   Flex above is the fallback; a browser without subgrid just gets the drift.  */
@media (min-width:620px){
@supports (grid-template-rows: subgrid){
  .av-cards{column-gap:24px; row-gap:0;
            grid-template-rows:auto auto auto auto auto auto}
  .av-card{display:grid; grid-row:span 6; grid-template-rows:subgrid}
  .av-card-body{display:grid; grid-row:span 5; grid-template-rows:subgrid}
  .av-card-btn{margin:0; align-self:end}
}
}

/* the ungrouped run, shown only when an article's series is not declared */
.av-series-block{margin-top:52px; max-width:var(--measure)}
.av-series-name{font-family:var(--sans); font-size:12px; font-weight:600; letter-spacing:.13em;
                text-transform:uppercase; color:var(--a); margin:0 0 8px}
.av-series-block .av-entries{margin-top:22px}

/* the same drawing, given room at the head of its own series page */
.av-series-art{
  max-width:var(--measure); margin-top:34px; padding:30px 34px;
  border:1px solid var(--rule); border-radius:4px; background:var(--surface-2);
}
.av-series-art svg{display:block; width:100%; height:auto}

/* -------------------------------------------------------------------- hire
   The way from an article to the service behind it, above the pager. The
   heading is reset here because article.css styles every h2 as a section. */

.av-hire{max-width:var(--measure); margin:44px auto 0; padding:22px 24px;
         background:var(--surface); border:1px solid var(--rule); border-radius:3px}
.av-hire .av-hire-t{margin:0 0 8px; padding:0; border:0; font-family:var(--sans);
                    font-size:19px; font-weight:600; line-height:1.3; color:var(--ink)}
.av-hire p{margin:0; color:var(--ink-2)}
.av-hire .av-hire-links{display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px;
                        margin-top:18px; font-family:var(--sans); font-size:14.5px}

/* ------------------------------------------------------------------- pager
   Previous / next within the series, at the foot of every article.           */

.av-pager{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px;
          max-width:var(--measure); margin:44px auto 0; padding-top:26px;
          border-top:1px solid var(--rule)}
.av-pager a{display:flex; flex-direction:column; gap:5px; padding:15px 18px;
            border:1px solid var(--rule); border-radius:3px; color:var(--ink)}
.av-pager a:hover{border-color:var(--a); border-bottom-color:var(--a)}
.av-pager a:hover .av-pager-t{color:var(--a)}
.av-pager-next{text-align:right; grid-column:2}
.av-pager-k{font-family:var(--sans); font-size:11px; font-weight:600; letter-spacing:.12em;
            text-transform:uppercase; color:var(--ink-3)}
.av-pager-t{font-family:var(--serif); font-size:17.5px; line-height:1.3}
.av-pager-gap{display:none}
@media (max-width:620px){
  .av-pager{grid-template-columns:1fr}
  .av-pager-next{grid-column:1; text-align:left}
}

/* ----------------------------------------------------------------- culture
   The "our culture" slide from the brand file, on the About page. It sits on
   the brand ground in both themes, because the logo gradient is drawn for it. */

.av-culture{background:var(--brand-dark); color:var(--brand-white); border-radius:4px; max-width:var(--measure);
            padding:44px 32px 40px; margin:40px 0 44px}
.av-culture-logo{display:block; max-width:420px; margin:0 auto 40px}
.av-culture-logo svg{display:block; width:100%; height:auto}
.av-culture-cols{display:grid; gap:32px; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
                 margin:0; padding:0; list-style:none; text-align:center}
.av-culture-icon{width:84px; height:84px; margin:0 auto 14px}
.av-culture-icon svg{display:block; width:100%; height:100%}
.av-culture h3{font-family:var(--sans); font-size:22px; font-weight:600; margin:0 0 10px;
               color:var(--brand-white)}
.av-culture p{font-family:var(--sans); font-size:15.5px; line-height:1.55; margin:0 auto;
              max-width:30ch; color:var(--brand-blue-light)}
@media (max-width:620px){.av-culture{padding:32px 20px}}
.av-culture + .av-prose > h2:first-child{margin-top:0; padding-top:0; border-top:0}

/* ------------------------------------------------------------------- proof
   Numbers, results and capabilities on Home, Services and About. Every figure
   is a measured result from past work; the markup keeps the number, the unit
   and what it was measured on in separate elements.                          */

.av-stats{display:grid; gap:1px; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
          background:var(--rule); border:1px solid var(--rule); border-radius:3px;
          overflow:hidden; margin:34px 0 0; padding:0; list-style:none}
.av-stat{background:var(--surface); padding:22px 22px 20px; display:flex;
         flex-direction:column; gap:6px}
.av-stat-n{font-family:var(--sans); font-size:clamp(30px,4vw,38px); font-weight:600;
           line-height:1; letter-spacing:-.02em; color:var(--a);
           font-variant-numeric:tabular-nums}
.av-stat-l{font-family:var(--sans); font-size:14.5px; line-height:1.4; color:var(--ink)}
.av-stat-c{font-family:var(--sans); font-size:12.5px; line-height:1.4; color:var(--ink-3)}
@media (max-width:620px){
  .av-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .av-stat{padding:16px 14px}
  .av-stat-n{font-size:28px}
  .av-stat-l{font-size:13.5px}
}

.av-results{display:grid; gap:18px; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));
            margin:0; padding:0; list-style:none}
.av-result{border:1px solid var(--rule); border-radius:3px; background:var(--surface);
           padding:20px 22px; display:flex; flex-direction:column; gap:10px}
.av-result-k{font-family:var(--sans); font-size:11px; font-weight:600; letter-spacing:.12em;
             text-transform:uppercase; color:var(--sec)}
.av-result h3{font-size:18px; margin:0}
.av-result-ba{display:flex; align-items:baseline; flex-wrap:wrap; gap:8px;
              font-family:var(--sans); font-size:15px; color:var(--ink-2)}
.av-result-ba b{font-family:var(--sans); font-size:22px; font-weight:600; color:var(--a)}
.av-result-ba s{font-family:var(--mono); text-decoration:none; color:var(--ink-3)}
.av-result p{font-size:15px; color:var(--ink-2); margin:0}
.av-results-4{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr))}
.av-results-4 .av-result h3{font-size:19px}
.av-results-4 .av-result-ba{margin-top:auto; padding-top:14px; border-top:1px solid var(--rule)}
.av-result .av-result-c{font-family:var(--sans); font-size:13.5px; line-height:1.45; color:var(--ink-3)}

/* the kernel on Home: one ruled row per capability, the result and what it was
   measured on side by side, like a results table in a lab notebook */
.av-ktable{width:100%; border-collapse:collapse; font-family:var(--sans); font-size:14.5px;
           line-height:1.45; border-top:1px solid var(--rule-2)}
.av-ktable thead th{font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
                    color:var(--ink-3); text-align:left; padding:12px 16px 10px 0; border-bottom:1px solid var(--rule-2)}
.av-ktable tbody tr{border-bottom:1px solid var(--rule)}
.av-ktable tbody th, .av-ktable td{text-align:left; vertical-align:top; padding:16px 20px 16px 0; font-weight:400}
.av-ktable tbody th{width:40%}
.av-ktable tbody th b{display:block; font-family:var(--serif); font-size:18px; font-weight:600;
                      color:var(--ink); line-height:1.3; margin-bottom:4px}
.av-ktable tbody th span{color:var(--ink-2)}
.av-ktable .av-kt-r{width:24%; color:var(--ink-2)}
.av-ktable .av-kt-r b{display:block; font-size:22px; font-weight:600; color:var(--a);
                      line-height:1.15; font-variant-numeric:tabular-nums; overflow-wrap:anywhere}
.av-ktable td:last-child{color:var(--ink-3); padding-right:0}
@media (max-width:760px){
  .av-ktable thead{display:none}
  .av-ktable, .av-ktable tbody, .av-ktable tr, .av-ktable tbody th, .av-ktable td{display:block; width:auto}
  .av-ktable tbody tr{padding:16px 0}
  .av-ktable tbody th, .av-ktable td{padding:0}
  .av-ktable .av-kt-r{margin-top:10px}
  .av-ktable .av-kt-r b{display:inline; margin-right:6px}
  .av-ktable td:last-child{margin-top:2px; font-size:13.5px}
}
.av-hero-oss{font-family:var(--sans); font-size:14.5px; line-height:1.5; color:var(--ink-2);
             margin:16px 0 0; max-width:72ch}
.av-hero-oss a{margin-left:6px}

.av-built{display:grid; gap:22px 26px; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));
          margin:0; padding:0; list-style:none}
.av-built li{border-top:2px solid var(--a); padding:14px 2px 0}
.av-built h3{font-family:var(--sans); font-size:16px; font-weight:600; margin:0 0 6px}
.av-built p{font-size:15px; color:var(--ink-2); margin:0}

.av-stack{display:grid; gap:0; margin:0; border-top:1px solid var(--rule)}
.av-stack > div{display:grid; grid-template-columns:minmax(120px,190px) minmax(0,1fr); gap:16px;
                padding:12px 0; border-bottom:1px solid var(--rule)}
.av-stack dt{font-family:var(--sans); font-size:11.5px; font-weight:600; letter-spacing:.1em;
             text-transform:uppercase; color:var(--ink-3); padding-top:3px}
.av-stack dd{margin:0; font-size:16px; color:var(--ink)}
@media (max-width:620px){.av-stack > div{grid-template-columns:1fr; gap:4px}}

.av-proof{font-family:var(--sans); font-size:14px; color:var(--ink-2);
          border-left:2px solid var(--sec); background:var(--sec-fill);
          padding:10px 14px; border-radius:0 3px 3px 0; margin:0 0 16px}
.av-proof b{color:var(--ink); font-weight:600}

.av-timeline{list-style:none; margin:0 0 16px; padding:0; border-left:1px solid var(--rule-2)}
.av-timeline li{position:relative; padding:0 0 18px 22px; margin:0}
.av-timeline li::before{content:""; position:absolute; left:-5px; top:8px; width:9px;
                        height:9px; border-radius:50%; background:var(--a)}
.av-timeline-y{font-family:var(--mono); font-size:13px; color:var(--a); display:block;
               margin-bottom:2px}

.av-people{display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
           margin:0 0 16px; padding:0; list-style:none}
.av-people li{border:1px solid var(--rule); border-radius:3px; padding:18px 20px;
              background:var(--surface)}
.av-people h3{margin:0 0 4px}
.av-people p{font-size:15px; color:var(--ink-2); margin:0}
.av-people .av-sub{margin:0 0 12px; font-size:14px; color:var(--ink-3)}
.av-person{margin:0}
.av-person > div + div{margin-top:10px}
.av-person dt{font-family:var(--sans); font-size:11px; font-weight:600; letter-spacing:.1em;
              text-transform:uppercase; color:var(--ink-3); margin:0 0 2px}
.av-person dd{margin:0; font-size:15px; line-height:1.55; color:var(--ink-2)}
.av-about .av-prose > p, .av-about .av-timeline{max-width:66ch}
.av-prose .av-people, .av-prose .av-stats{padding-left:0}
.av-prose .av-people li, .av-prose .av-stats li{margin-bottom:0}
.av-prose .av-stats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); margin:0 0 16px}

/* three spotlight areas on Home */
.av-pillars{display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
            margin:0; padding:0; list-style:none}
.av-pillar{border:1px solid var(--rule); border-radius:3px;
           background:var(--surface); padding:22px 24px; display:flex; flex-direction:column}
.av-pillar-n{font-family:var(--mono); font-size:12px; color:var(--a); margin-bottom:8px}
.av-pillar h3{font-size:22px; line-height:1.25; margin:0 0 10px}
.av-pillar > p{font-size:15.5px; color:var(--ink-2); margin:0 0 12px}
.av-pillar ul{margin:0 0 14px; padding-left:18px; font-size:15px; color:var(--ink)}
.av-pillar li{margin-bottom:6px}
.av-pillar .av-pillar-proof{margin:auto 0 0; padding-top:12px; border-top:1px solid var(--rule);
                            font-family:var(--sans); font-size:14.5px; line-height:1.5; color:var(--ink-2)}
.av-pillar .av-pillar-proof b{font-weight:600; color:var(--sec)}

/* ------------------------------------------------------------------- offer
   The end of Home: how an engagement starts, and the one action. Framed like a
   note in the margin, with the three steps numbered because they happen in order. */

.av-offer{border-bottom:0}
.av-offer-in{display:grid; gap:32px 56px; background:var(--surface); border:1px solid var(--rule);
             border-radius:3px; padding:32px 32px 30px}
@media (min-width:900px){.av-offer-in{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}}
.av-offer h2{font-size:clamp(24px,3vw,30px); line-height:1.2; letter-spacing:-.014em; margin:0 0 14px}
.av-offer-text p{color:var(--ink-2); max-width:56ch}
.av-offer-text .av-cta{margin:24px 0 0}
.av-steps{list-style:none; margin:0; padding:0; display:flex; flex-direction:column;
          border-top:1px solid var(--rule); align-self:start}
.av-steps li{display:grid; grid-template-columns:28px 1fr; column-gap:10px; row-gap:3px;
             padding:14px 0; border-bottom:1px solid var(--rule); font-family:var(--sans)}
.av-steps-n{grid-row:span 2; font-family:var(--mono); font-size:13px; color:var(--a); padding-top:1px}
.av-steps b{font-size:15px; font-weight:600; color:var(--ink)}
.av-steps span:last-child{font-size:14px; line-height:1.45; color:var(--ink-2)}
@media (max-width:620px){.av-offer-in{padding:24px 20px}}
/* one column: the button stays with the text, above the steps, so the ask is not
   pushed below the fold */
@media (max-width:899px){
  .av-offer-in{gap:0}
  .av-offer-text{display:contents}
  .av-offer-text .av-cta{margin:4px 0 24px}
}

/* the steps of a service page, in the prose column rather than the offer panel */
.av-prose .av-steps-wide{margin:4px 0 16px}
.av-prose .av-steps-wide li{margin:0}
.av-steps-wide b{font-size:16px}
.av-steps-wide span:last-child{font-size:15px}
.av-prose ul b{font-weight:600}

/* ----------------------------------------------------------------- services
   One page, six services. Each section reads description, capabilities, then
   the measured results as a ledger, so the numbers are the strongest thing in
   it. An index of the six sits under the lede on a phone and in the right-hand
   rail from 1020px, where it stays in view with the one action under it.     */

.av-svc-grid{margin-top:34px}
.av-svc-index{max-width:var(--measure); font-family:var(--sans)}
.av-svc-index-t{font-family:var(--sans); font-size:11.5px; font-weight:600; letter-spacing:.13em;
                text-transform:uppercase; color:var(--ink-3); margin:0 0 10px}
.av-svc-index ol{list-style:none; margin:0; padding:0; border-top:1px solid var(--rule)}
.av-svc-index li{border-bottom:1px solid var(--rule)}
.av-svc-index li a{display:flex; align-items:center; min-height:44px; padding-block:8px;
                   font-size:14.5px; line-height:1.35; color:var(--ink-2); border-bottom:0}
.av-svc-index li a:hover{color:var(--a)}
.av-svc-index-cta{margin:18px 0 0; font-size:14.5px}
.av-svc-index-cta .av-btn{justify-content:center}
@media (max-width:1019px){
  .av-svc-index-cta{display:none}
  .av-svc .av-prose > h2:first-child{margin-top:44px}
}
@media (min-width:1020px){
  .av-svc-grid{display:grid; gap:0 64px; grid-template-columns:minmax(0,var(--measure)) minmax(200px,240px)}
  .av-svc-grid > .av-prose{grid-column:1; grid-row:1}
  .av-svc-index{grid-column:2; grid-row:1; align-self:start; position:sticky;
                top:calc(var(--top-h) + 24px)}
  .av-svc .av-prose > h2:first-child{margin-top:0}
}

.av-svc .av-prose .av-stats{margin:22px 0 16px}
.av-svc .av-stat-c{text-wrap:pretty}
/* an odd last cell spans the row on a phone instead of leaving a grey hole */
@media (max-width:620px){.av-svc .av-stat:last-child:nth-child(odd){grid-column:1/-1}}
.av-svc .av-prose .av-cta{margin:0 0 16px}
.av-svc-more{font-family:var(--sans); font-size:14.5px; margin:0 0 16px}

/* Stack is reference, not a seventh service: a label, not a section title */
.av-svc .av-prose h2.av-svc-label{font-family:var(--sans); font-size:11.5px; font-weight:600;
  letter-spacing:.13em; text-transform:uppercase; color:var(--ink-3); line-height:1.4;
  margin:56px 0 10px; padding-top:0; border-top:0}

.av-svc-offer{margin-top:56px}

/* before/after figure: one render read from the CAD file, the same render with its
   recognised features coloured. Renders are drawn on white, so the plate stays white
   in both themes, like a drawing sheet. --cut is how much of the coloured one shows. */
.av-reveal-fig{margin:22px 0 22px}
.av-reveal{position:relative; background:#fff; border:1px solid var(--rule); border-radius:3px;
           overflow:hidden; --cut:50%}
.av-reveal img{display:block; width:100%; height:auto}
.av-reveal-after{position:absolute; inset:0; clip-path:inset(0 calc(100% - var(--cut)) 0 0)}
.av-reveal-after img{height:100%}
.av-reveal-seam{position:absolute; top:0; bottom:0; left:var(--cut); width:2px; margin-left:-1px;
                background:var(--brand-blue); pointer-events:none}
.av-reveal-seam::after{content:""; position:absolute; top:50%; left:50%; width:30px; height:30px;
                       margin:-15px 0 0 -15px; border-radius:50%; background:#fff;
                       border:2px solid var(--brand-blue); box-shadow:0 1px 4px rgba(20,24,29,.25)}
.av-reveal-tag{position:absolute; top:10px; font-family:var(--sans); font-size:11.5px; font-weight:600;
               letter-spacing:.1em; text-transform:uppercase; padding:3px 8px; border-radius:2px;
               background:rgba(255,255,255,.92); border:1px solid #D8DCE3; color:#4A535F; pointer-events:none}
.av-reveal-tag-l{left:10px; color:var(--brand-blue)}
.av-reveal-tag-r{right:10px}
/* the input covers the whole plate: it is the drag surface and the keyboard control */
.av-reveal input{position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0;
                 cursor:ew-resize; touch-action:pan-y}
.av-reveal:has(input:focus-visible){outline:2px solid var(--a); outline-offset:3px}
@media (prefers-reduced-motion:no-preference){
  .av-reveal-after{transition:clip-path 60ms linear}
  .av-reveal-seam{transition:left 60ms linear}
}
.av-legend{list-style:none; margin:12px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px 16px;
           font-family:var(--sans); font-size:13px; color:var(--ink-2)}
.av-prose .av-legend{padding-left:0}
.av-prose .av-legend li{margin:0; display:inline-flex; align-items:center; gap:6px}
.av-legend i{width:11px; height:11px; border-radius:2px; border:1px solid rgba(0,0,0,.15)}
.av-reveal-fig figcaption{font-family:var(--sans); font-size:13.5px; line-height:1.5; color:var(--ink-3);
                          margin-top:10px}
