/* ==========================================================================
   Edwina Nolan portfolio, shared styles
   One rhythm for every page: label / heading / body / 16:10 image plate
   ========================================================================== */

:root{
  --ink:#16161A;
  --muted:#55555F;
  --blue:#1F33D6;
  --blue-soft:#E3E6FC;
  --pink:#F8C0D8;
  --orange:#FF5500;
  --plate:#EEEEF1;
  --rule:#DEDDD6;
  --paper:#fff;
  --gutter:clamp(1.25rem,3vw,2.5rem);
  --gap-chapter:clamp(5rem,10vw,8.5rem);
  --gap-block:clamp(2.5rem,5vw,4rem);
  --font:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--font);font-size:1.125rem;line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img,video,svg{display:block;max-width:100%}
a{color:var(--blue)}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
p{margin:0 0 1.15rem}
strong,b{font-weight:600}
.wrap{max-width:78rem;margin:0 auto;padding:0 var(--gutter)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:.5rem 1rem;z-index:10}
.skip:focus{left:1rem}

/* ---------- site bar ---------- */
.sitebar .wrap{display:flex;justify-content:space-between;align-items:flex-start;padding-top:1.25rem;padding-bottom:1.25rem}
.logo{display:inline-flex;flex-direction:column;gap:.5rem;text-decoration:none;color:var(--ink);margin:0}
.logomark{height:1.75rem;width:auto}
.logotype{font-weight:600;font-size:1.5rem;line-height:1;letter-spacing:-.025em}
.sitebar nav{display:flex;gap:1.5rem}
.sitebar nav a{font-weight:500;font-size:1.0625rem;color:var(--muted);text-decoration:none;padding-bottom:.3rem;border-bottom:2px solid transparent}
.sitebar nav a[aria-current="page"]{color:var(--ink);font-weight:700;border-bottom-color:var(--blue)}
.sitebar nav a:hover{color:var(--ink);border-bottom-color:var(--rule)}

/* ---------- 12-column rhythm ---------- */
.cols{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:2rem}
.cols>*{grid-column:1/-1}
@media (min-width:62rem){
  .span-label{grid-column:1/4}
  .span-head{grid-column:4/13}
  .span-text{grid-column:4/11}
}

/* ---------- type scale ---------- */
h1{
  font-weight:700;font-size:clamp(2.6rem,6.4vw,5.25rem);line-height:1.02;
  letter-spacing:-.04em;margin:0;max-width:15ch;
}
h2{
  font-weight:700;font-size:clamp(2rem,3.9vw,3.25rem);line-height:1.06;
  letter-spacing:-.032em;margin:0 0 1.75rem;max-width:20ch;
}
h3{font-weight:700;font-size:clamp(1.35rem,1.9vw,1.6rem);line-height:1.2;letter-spacing:-.02em;margin:0 0 .85rem}
h4{font-weight:600;font-size:1.0625rem;line-height:1.35;margin:0 0 .4rem}
.span-text h3{margin-top:0}
.span-text>h3:not(:first-child){margin-top:2.5rem}
.lede{font-size:clamp(1.25rem,1.9vw,1.5rem);line-height:1.45;letter-spacing:-.01em}
.statement{font-size:clamp(1.25rem,1.9vw,1.5rem);line-height:1.4;letter-spacing:-.015em;font-weight:600}
.label{font-weight:600;font-size:1rem;color:var(--blue);margin:0;padding-top:.6rem}
.note{font-size:.875rem;line-height:1.55;color:var(--muted)}

/* ---------- image plates: every figure shares one frame ---------- */
figure{margin:0}
.plate{
  aspect-ratio:16/10;background:var(--plate);overflow:hidden;
  padding:clamp(1rem,5%,3.5rem);
  display:flex;align-items:center;justify-content:center;gap:4%;
}
.plate>img,.plate>video{width:100%;height:100%;object-fit:contain}
.plate>svg{width:100%;height:auto;max-height:100%}
.plate.fill{padding:0}
.plate.fill>img,.plate.fill>video{object-fit:cover}
.plate.pair>img,.plate.pair>video{width:auto;height:100%;max-width:46%;object-fit:contain}
.plate.trio>img{width:auto;height:100%;max-width:30%;object-fit:contain}
/* phone beside detail crops */
.plate.duo{gap:6%}
.plate.duo>img{width:auto;height:100%;max-width:40%;object-fit:contain}
.plate.duo .crops{display:flex;flex-direction:column;justify-content:center;gap:1rem;width:44%;max-height:100%}
.plate.duo .crops img{width:100%;height:auto;min-height:0;object-fit:contain;box-shadow:0 1px 0 rgba(22,22,26,.08)}
.plate.duo .crops img.tall{max-height:70%;width:auto;align-self:center}
figcaption{font-size:.875rem;line-height:1.5;color:var(--muted);margin-top:.85rem;max-width:44rem}

.plate-row{display:grid;gap:clamp(1rem,2.5vw,2rem)}
@media (min-width:48rem){.plate-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
.plate-row.four{grid-template-columns:repeat(2,minmax(0,1fr))}
.plate-row+figcaption{margin-top:.85rem}

/* spacing between blocks inside a chapter */
.chapter>*+*{margin-top:var(--gap-block)}
.chapter>figure+figure,.chapter>figure+.plate-group,.chapter>.plate-group+figure{margin-top:clamp(1.5rem,3vw,2.5rem)}

/* ---------- case study hero ---------- */
.back{display:inline-block;font-size:.9375rem;font-weight:500;color:var(--muted);text-decoration:none;margin:2.5rem 0 3rem}
.back:hover{color:var(--blue)}
.hero-copy{display:grid;gap:1.75rem;align-items:end;margin-bottom:var(--gap-block)}
@media (min-width:62rem){.hero-copy{grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:3rem}}
.hero-copy .lede{margin:0;max-width:30rem}

/* ---------- project facts ---------- */
.facts{padding:var(--gap-block) 0 0}
.facts dl{margin:0;display:grid;gap:1.75rem 2rem;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:62rem){.facts dl{grid-template-columns:repeat(4,minmax(0,1fr))}}
.facts dt{font-weight:600;font-size:.9375rem;color:var(--blue);margin:0 0 .35rem}
.facts dd{margin:0;font-size:1rem;line-height:1.5}
.objective{margin-top:clamp(2.5rem,5vw,3.5rem);padding-top:2rem;border-top:1px solid var(--rule)}
.objective p.lede{margin:0}

/* ---------- impact numbers ---------- */
.impact{margin:clamp(3rem,6vw,4.5rem) 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:2px solid var(--ink)}
@media (min-width:62rem){.impact{grid-template-columns:repeat(4,minmax(0,1fr))}}
.impact div{padding:1.5rem 1.5rem 1.75rem 0}
.impact .n{display:block;font-weight:700;font-size:clamp(2.5rem,4.6vw,3.75rem);line-height:1;letter-spacing:-.04em;margin-bottom:.75rem}
.impact div:first-child .n{color:var(--blue)}
.impact p{margin:0;font-size:.9375rem;line-height:1.5;max-width:15rem}
.impact+.note{margin:0;max-width:44rem}

/* ---------- chapters ---------- */
.chapter{padding-top:var(--gap-chapter)}
.chapter h2{margin-bottom:1.75rem}

.notes{display:grid;gap:1.75rem 2rem;margin:1.75rem 0 1.5rem}
@media (min-width:40rem){.notes{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:40rem){.notes.two{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:40rem){.notes.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
.notes p{margin:0;font-size:1rem;line-height:1.55;color:var(--muted)}
.notes .t{display:block;font-weight:700;font-size:.875rem;color:var(--muted);margin-bottom:.5rem}
.notes>div{border-top:1px solid var(--rule);padding-top:1rem}

.quote{margin:0}
.quote blockquote{
  margin:0;font-weight:600;font-size:clamp(1.6rem,3.2vw,2.5rem);line-height:1.2;
  letter-spacing:-.025em;max-width:28ch;text-indent:-.4em;
}
.quote blockquote+blockquote{margin-top:1.25rem}
.quote figcaption{margin-top:1rem}

.diagram{margin:2rem 0 0;padding:1.5rem 0 0;border-top:1px solid var(--rule)}
.diagram+figcaption{margin-top:.85rem}
.d-box{fill:#fff;stroke:#B6BFCB;stroke-width:1}
.d-box-key{fill:var(--blue-soft);stroke:var(--blue);stroke-width:1.2}
.d-box-off{fill:#F4F4F6;stroke:#C8C8D0;stroke-width:1;stroke-dasharray:3 3}
.d-t{font-family:var(--font);font-size:12.5px;fill:var(--ink);font-weight:600}
.d-s{font-family:var(--font);font-size:11px;fill:var(--muted)}
.d-a{stroke:#98A2AF;stroke-width:1.2;fill:none}
.d-lab{font-family:var(--font);font-size:12px;font-weight:600;fill:var(--blue)}
.plate .d-box{fill:#fff}

/* results list */
.figures{margin:1.5rem 0 1.5rem;border-top:2px solid var(--ink)}
.figures>div{display:grid;grid-template-columns:minmax(5.5rem,8rem) 1fr;gap:1.5rem;align-items:baseline;padding:1rem 0;border-bottom:1px solid var(--rule)}
.figures .n{font-weight:700;font-size:clamp(1.6rem,2.8vw,2.1rem);line-height:1;letter-spacing:-.03em;color:var(--blue)}
.figures .l{font-size:1.0625rem;line-height:1.45}
.figures .l span{display:block;font-size:.9375rem;color:var(--muted);margin-top:.3rem}

/* ---------- sticky feature viewer ---------- */
.stage{display:none}
.step{padding:0 0 3.5rem}
.step .plate{margin-top:1.5rem}
.step p{margin:0 0 .9rem}
.step p:last-child{margin-bottom:0}
.step ul{margin:0 0 .9rem;padding-left:1.1rem;font-size:1rem}
.step li{margin-bottom:.35rem}
.step .count{display:block;font-weight:600;font-size:.9375rem;color:var(--blue);margin-bottom:.6rem}

@media (min-width:62rem){
  .features.is-live{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4fr);column-gap:4rem;align-items:start}
  .features.is-live .stage{display:block;position:sticky;top:max(2rem,calc(50vh - 17rem))}
  .features.is-live .step{min-height:78vh;display:flex;flex-direction:column;justify-content:center;padding:0;opacity:.35;transition:opacity .3s}
  .features.is-live .step.is-active{opacity:1}
  .features.is-live .step:first-child{min-height:60vh;justify-content:flex-start;padding-top:1rem}
  .features.is-live .step:last-child{min-height:56vh;justify-content:flex-start;padding-top:1rem}
  .features.is-live .step-media{display:none}
}
.stage-frame{position:relative;aspect-ratio:16/10;background:var(--plate)}
.stage-frame .plate{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s linear .45s}
.stage-frame .plate.is-active{opacity:1;visibility:visible;transition:opacity .45s ease}
.stage-meta{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;margin-top:.85rem}
.stage-meta figcaption{margin:0;min-height:2.7em}
.progress{display:flex;gap:.35rem;list-style:none;margin:.45rem 0 0;padding:0;flex:none}
.progress li{width:1.5rem;height:3px;background:var(--rule);transition:background .3s}
.progress li.is-done{background:var(--ink)}
.progress li.is-active{background:var(--orange)}

/* ---------- reflection ---------- */
.learned{display:grid;gap:2.5rem;margin-top:.5rem}
@media (min-width:48rem){.learned{grid-template-columns:repeat(2,minmax(0,1fr));gap:3rem}}
.learned.one{grid-template-columns:1fr;max-width:42rem}
.learned p{margin:0}
.learned .lede{margin:0}

/* ---------- project cards (work page and "More work") ---------- */
.cards{list-style:none;margin:0;padding:0;display:grid;gap:3.5rem 2.5rem}
@media (min-width:48rem){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cards a{text-decoration:none;color:var(--ink);display:block}
.cards .client{display:block;font-weight:600;font-size:.9375rem;color:var(--blue);margin:1.25rem 0 .4rem}
.cards .title{display:block;font-weight:700;font-size:1.375rem;line-height:1.25;letter-spacing:-.015em;max-width:26ch}
.cards .tags{display:block;font-size:.9375rem;color:var(--muted);margin-top:.5rem}
.cards a:hover .title,.cards a:focus-visible .title{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.2em}
.cards .plate img{transition:transform .5s ease}
@media (prefers-reduced-motion:no-preference){.cards a:hover .plate img{transform:scale(1.02)}}

.more{padding-top:var(--gap-chapter);margin-top:var(--gap-chapter);border-top:2px solid var(--ink)}
.more h2{margin-bottom:2.5rem}

/* work page */
.intro{padding:clamp(3rem,7vw,5.5rem) 0 var(--gap-block)}
.intro h1{max-width:17ch}
.intro .lede{max-width:36rem;margin:1.75rem 0 0}
@media (min-width:62rem){.intro .cols .lede{margin-top:0}}
.cards.work .featured{grid-column:1/-1}
.cards.work .featured .title{font-size:clamp(1.6rem,2.8vw,2.25rem);max-width:24ch}

/* about page */
.skills{list-style:none;margin:2rem 0 0;padding:0;display:grid;gap:0 2rem;border-top:1px solid var(--rule)}
@media (min-width:40rem){.skills{grid-template-columns:repeat(2,minmax(0,1fr))}}
.skills li{padding:.7rem 0;border-bottom:1px solid var(--rule);font-size:1rem}
.jobs{width:100%;border-collapse:collapse;border-top:2px solid var(--ink)}
.jobs th,.jobs td{text-align:left;padding:1rem 1rem 1rem 0;border-bottom:1px solid var(--rule);font-size:1rem;vertical-align:baseline}
.jobs th{font-weight:700}
.jobs td:last-child{text-align:right;padding-right:0;color:var(--muted);white-space:nowrap}
.email{font-weight:700;font-size:clamp(1.75rem,4vw,3rem);letter-spacing:-.03em;line-height:1.1;margin:.5rem 0 0}
.email a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--blue);text-decoration-thickness:3px;text-underline-offset:.15em}
.email a:hover{color:var(--blue)}

/* ---------- footer ---------- */
.site-foot{margin-top:var(--gap-chapter);border-top:1px solid var(--rule)}
.foot{display:grid;gap:2rem;padding-top:2.5rem;padding-bottom:3.5rem}
@media (min-width:48rem){.foot{grid-template-columns:2fr 1fr 1fr}.foot>div:last-child{grid-column:3}}
.foot h2{font-size:.9375rem;font-weight:600;letter-spacing:0;color:var(--blue);margin:0 0 .6rem}
.foot ul{list-style:none;margin:0;padding:0;font-size:1rem;line-height:1.8}
.foot a{color:var(--ink);text-decoration:none}
.foot a:hover{color:var(--blue);text-decoration:underline}

@media (max-width:40rem){
  .impact div{padding-right:1rem}
  .plate.pair,.plate.trio{gap:3%}
  .figures>div{grid-template-columns:5.5rem 1fr;gap:1rem}
  .jobs td:nth-child(2){display:none}
}

@media (prefers-reduced-motion:reduce){
  .stage-frame .plate,.stage-frame .plate.is-active,.features.is-live .step,.progress li,.cards .plate img{transition:none}
}

/* ---------- print ---------- */
@page{size:A4;margin:14mm 16mm}
@media print{
  body{font-size:9.6pt;line-height:1.5}
  .wrap{max-width:none;padding:0}
  .sitebar nav,.back,.stage,.more,video,.plate:has(video){display:none!important}
  .step-media{display:block!important}
  .step{min-height:0!important;opacity:1!important;padding:0 0 5mm!important}
  .chapter{padding-top:8mm}
  .chapter>*+*{margin-top:5mm}
  h1{font-size:26pt}
  h2{font-size:16pt;break-after:avoid}
  h3{font-size:11pt;break-after:avoid}
  .lede,.statement{font-size:11pt}
  .plate{max-height:95mm;margin-left:auto;margin-right:auto}
  figure,.plate,.figures>div,.notes>div,.impact div{break-inside:avoid}
  .impact .n{font-size:20pt}
  a{color:var(--ink);text-decoration:none}
  .site-foot{margin-top:8mm}
}

/* ==========================================================================
   Preview: right-hand "On this page" navigation and a smaller type scale.
   Applies only to pages with <body class="has-rail">.
   ========================================================================== */
.has-rail h1{font-size:clamp(2.25rem,4vw,3.5rem);line-height:1.05;letter-spacing:-.035em;max-width:18ch}
.has-rail .article h2,.has-rail .more h2{font-size:clamp(1.75rem,2.6vw,2.25rem);line-height:1.12;letter-spacing:-.025em;max-width:24ch}
.has-rail h3{font-size:clamp(1.2rem,1.5vw,1.35rem)}
.has-rail .impact .n{font-size:clamp(2rem,3.4vw,2.75rem)}
.has-rail .quote blockquote{font-size:clamp(1.4rem,2.4vw,1.9rem)}
.has-rail .lede{font-size:clamp(1.125rem,1.5vw,1.3rem)}
.has-rail .statement{font-size:clamp(1.125rem,1.5vw,1.3rem)}
.has-rail .hero-copy{align-items:start}
.has-rail .hero-copy .lede{padding-top:.5rem}
.has-rail .hero-copy .lede{max-width:28rem}

.rail{display:none}
.article-body{min-width:0}
.article-body .label{padding-top:0;margin-bottom:.75rem}
@media (min-width:62rem){
  .article{display:grid;grid-template-columns:minmax(0,1fr) 12.5rem;column-gap:4.5rem;align-items:start}
  .article-body{grid-column:1;grid-row:1}
  .article-body .span-label,
  .article-body .span-head{grid-column:1/-1}
  .article-body .span-text{grid-column:1/11}
  .article-body .features.is-live{grid-template-columns:minmax(0,3fr) minmax(0,2fr);column-gap:3rem}

  .rail{
    display:block;grid-column:2;grid-row:1;
    position:sticky;top:2rem;margin-top:var(--gap-chapter);
    padding-left:1.25rem;border-left:1px solid var(--rule);
    font-size:.9375rem;line-height:1.4;
  }
  .rail-title{font-weight:600;color:var(--muted);margin:0 0 .9rem;font-size:.875rem}
  .rail ol{list-style:none;margin:0 0 2rem;padding:0}
  .rail li+li{margin-top:.15rem}
  .rail ol a{
    display:block;position:relative;padding:.35rem 0;
    color:var(--muted);text-decoration:none;font-weight:500;
  }
  .rail ol a::before{
    content:"";position:absolute;left:calc(-1.25rem - 1px);top:.3rem;bottom:.3rem;
    width:2px;background:transparent;transition:background .2s;
  }
  .rail ol a:hover{color:var(--ink)}
  .rail ol a[aria-current="true"]{color:var(--ink);font-weight:700}
  .rail ol a[aria-current="true"]::before{background:var(--blue)}
  .rail dl{margin:0 0 2rem;padding-top:1.25rem;border-top:1px solid var(--rule)}
  .rail dt{font-weight:600;color:var(--blue);font-size:.875rem;margin:0 0 .2rem}
  .rail dd{margin:0 0 1rem;font-size:.875rem;line-height:1.45}
  .rail-top{font-size:.875rem;font-weight:500;color:var(--muted);text-decoration:none}
  .rail-top:hover{color:var(--blue)}
}
@media (prefers-reduced-motion:reduce){.rail ol a::before{transition:none}}
@media print{.rail{display:none!important}}

/* ==========================================================================
   Preview v3: full-width large header, summary block, Context / Approach /
   Results band and carousels. Applies to <body class="has-rail v3">.
   ========================================================================== */

/* header: back link, split editorial heading */
.v3 .back{display:inline-flex;align-items:center;gap:.4rem;margin:3.5rem 0 2.5rem}
.v3 .back svg{width:.5rem;height:.8rem}
.v3 .page-head{
  display:grid;gap:clamp(1.5rem,3vw,2.5rem);
  padding:clamp(2rem,5vw,4rem) 0 clamp(1.25rem,3vw,2rem);
  margin-bottom:clamp(1.25rem,3vw,2rem);
  border-top:1px solid var(--ink);
}
@media (min-width:62rem){
  .v3 .page-head{grid-template-columns:minmax(0,8fr) minmax(18rem,4fr);align-items:end}
  .v3 .page-head>div{grid-column:1/-1}
}
.v3 .page-kicker{
  display:block;margin:0 0 1.1rem;
  font-size:.8125rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--blue);
}
.v3 .page-head h1{
  font-size:clamp(2.4rem,4.35vw,4.35rem);font-weight:600;line-height:1.03;
  letter-spacing:-.04em;max-width:none;
}
.v3 .page-head h1 span{display:block}
@media (min-width:62rem){.v3 .page-head h1 span{white-space:nowrap}}
/* summary: statement + button on the left, project facts on the right */
.summary{display:grid;gap:3rem;padding:clamp(3.5rem,7vw,6rem) 0 clamp(3rem,6vw,5rem)}
@media (min-width:62rem){.summary{grid-template-columns:minmax(0,1fr) 16rem;column-gap:4.5rem}}
.summary-statement{
  font-size:clamp(1.55rem,2.25vw,2.05rem);font-weight:400;line-height:1.45;
  letter-spacing:-.012em;margin:0;max-width:34rem;color:var(--muted);
}
.pill{
  display:inline-flex;align-items:center;gap:.6rem;margin-top:2.25rem;
  padding:.85rem 1.5rem;border:1px solid var(--rule);border-radius:999px;
  color:var(--ink);text-decoration:none;font-weight:500;font-size:1rem;
  transition:border-color .2s,background .2s;
}
.pill:hover{border-color:var(--ink)}
.pill svg{width:.7rem;height:.7rem}
.summary-meta{margin:0;display:grid;gap:1.75rem;align-content:start}
@media (min-width:40rem) and (max-width:61.99rem){.summary-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
.summary-meta dt{
  font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);margin:0 0 .45rem;
}
.summary-meta dd{margin:0;font-size:1.0625rem;line-height:1.5}

/* Context / Approach / Results band */
.car{display:grid;margin-bottom:clamp(1.25rem,3vw,2.25rem)}
@media (min-width:48rem){.car{grid-template-columns:repeat(3,minmax(0,1fr))}}
.car>div{padding:1.35rem 2rem 1.55rem 0;border-bottom:1px solid var(--rule)}
@media (min-width:48rem){
  .car>div{border-bottom:0}
  .car>div+div{padding-left:2rem;border-left:1px solid var(--rule)}
}
.car h2{
  display:flex;align-items:center;gap:.6rem;margin:0 0 .6rem;
  font-size:1.25rem;letter-spacing:-.01em;line-height:1.2;max-width:none;
}
.car p{margin:0;font-size:1.0625rem;line-height:1.55}
.car-a{border-top:1px solid var(--ink);border-bottom:1px solid var(--rule)}
.car-short{border-top:1px solid var(--ink);border-bottom:1px solid var(--rule)}
@media (min-width:48rem){
  .car-short>div+div{position:relative;border-left:0}
  .car-short>div+div::before{
    content:"";position:absolute;left:0;top:1.65rem;bottom:1.65rem;
    width:1px;background:var(--rule);
  }
}
.shape{flex:none;display:inline-block;width:1rem;height:1rem}

/* carousel */
.carousel{position:relative}
.carousel-viewport{
  display:flex;overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;overscroll-behavior-x:contain;
}
.carousel-viewport::-webkit-scrollbar{display:none}
.carousel-viewport:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.carousel-viewport>.plate{flex:0 0 100%;scroll-snap-align:start}
@media (prefers-reduced-motion:no-preference){.carousel-viewport{scroll-behavior:smooth}}
.carousel-bar{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;margin-top:.85rem}
.carousel-bar figcaption{margin:0}
.carousel-controls{display:none;align-items:center;gap:.75rem;flex:none}
.carousel.is-ready .carousel-controls{display:flex}
.carousel-controls button{
  width:2.5rem;height:2.5rem;border-radius:50%;border:1px solid var(--rule);
  background:var(--paper);color:var(--ink);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;padding:0;
  transition:border-color .2s;
}
.carousel-controls button:hover:not(:disabled){border-color:var(--ink)}
.carousel-controls button:disabled{opacity:.35;cursor:default}
.carousel-controls svg{width:.9rem;height:.9rem}
.carousel-count{font-size:.875rem;font-variant-numeric:tabular-nums;color:var(--muted);min-width:2.75rem;text-align:center}
.carousel-hint{display:none}
.carousel.is-ready .carousel-hint{display:block}
@media (max-width:40rem){.carousel-bar{flex-direction:column-reverse;gap:.75rem}}
@media print{
  .carousel-viewport{display:block;overflow:visible}
  .carousel-viewport>.plate+.plate{margin-top:4mm}
  .carousel-controls{display:none!important}
}

/* Work and About pages: intro under the page head */
.v3 .page-intro{margin:0 0 clamp(3rem,6vw,4.5rem)}
.v3:not(.has-rail) .page-head{margin-top:clamp(1.5rem,3vw,2.5rem)}

/* ---------- availability badge ---------- */
.sitebar .availability{
  margin:0;font-size:.875rem;line-height:1.4;color:var(--muted);
  display:flex;align-items:center;gap:.5rem;white-space:nowrap;
}
.avail-dot{
  width:.5rem;height:.5rem;border-radius:50%;background:#1F9D55;flex:none;
  box-shadow:0 0 0 3px rgba(31,157,85,.18);
}
@media (max-width:52rem){
  .sitebar .wrap{flex-wrap:wrap;row-gap:.75rem}
  .sitebar .availability{width:100%;order:3}
}
@media print{.sitebar .availability{display:none}}

/* ---------- services ---------- */
.services{margin-top:var(--gap-chapter)}
.services .offer{display:grid;gap:var(--gap-block);margin-top:var(--gap-block)}
@media (min-width:48rem){.services .offer{grid-template-columns:repeat(3,minmax(0,1fr))}}
.services .offer h3{font-size:1.125rem;margin:0 0 .5rem}
.services .offer ul{margin:0;padding-left:1.1rem;color:var(--muted)}
.services .offer li{margin-bottom:.35rem}

/* ---------- homepage headline, larger ---------- */
.v3 .lead-head h1{
  font-size:clamp(2.6rem,6.4vw,5.25rem);
  font-weight:700;
  line-height:1.12;letter-spacing:-.04em;
}
@media (min-width:62rem){
  .v3 .lead-head h1 span{white-space:normal}
}

/* ---------- lead pages (home, about): no rule, tighter gap, larger headline ---------- */
.v3 .lead-head{
  border-top:0;
  padding:clamp(2.5rem,5vw,4rem) 0 clamp(.5rem,1.1vw,.8rem);
  margin-bottom:clamp(.5rem,1.1vw,.8rem);
}
.v3 section>h2.page-kicker{margin:0 0 1.1rem}

/* ---------- availability pill, inline with the first headline line ---------- */
.v3 .lead-head h1 .pill-status{
  display:inline-flex;align-items:center;gap:.6rem;
  margin:0 0 .35em .55rem;padding:.7rem 1.35rem;
  border:1px solid var(--blue);border-radius:999px;
  font-size:1.0625rem;font-weight:500;line-height:1;letter-spacing:0;
  color:var(--ink);white-space:nowrap;vertical-align:middle;cursor:default;
}
@media (max-width:52rem){
  .v3 .lead-head h1 .pill-status{
    display:flex;width:fit-content;margin:1.1rem 0 .25rem;font-size:1rem;
  }
}
.avail-mark{width:1.26rem;height:1.26rem;flex:none;overflow:visible;
  animation:availPulse 3.4s ease-in-out infinite;transform-origin:50% 50%}
.avail-mark .am-circle{animation:availCircle 3.4s ease-in-out infinite}
.avail-mark .am-diamond{animation:availDiamond 3.4s ease-in-out infinite}
@keyframes availCircle{0%,35%{opacity:0}50%,85%{opacity:1}100%{opacity:0}}
@keyframes availDiamond{0%,35%{opacity:1}50%,85%{opacity:0}100%{opacity:1}}
@keyframes availPulse{
  0%,22%{transform:scale(1)}
  42%{transform:scale(1.18)}
  55%,72%{transform:scale(1)}
  92%{transform:scale(1.18)}
  100%{transform:scale(1)}
}
@media (prefers-reduced-motion:reduce){
  .avail-mark{animation:none;transform:none}
  .avail-mark .am-circle{opacity:0;animation:none}
  .avail-mark .am-diamond{opacity:1;animation:none}
}

/* lead pages with no intro paragraph need the space back before the first section */
.v3 .lead-head + section{margin-top:clamp(2.25rem,4.5vw,3.5rem)}

/* ==========================================================================
   Diagrams
   A diagram sits inside .span-text (7 of 12 columns) but is drawn to be read
   at the full heading width, so let it break out on wide screens. A plate
   holding a diagram sizes to the drawing rather than the 16:10 photo ratio.
   ========================================================================== */
@media (min-width:62rem){
  .span-text .diagram{width:128%;max-width:none}
  .span-text .diagram+figcaption{max-width:44rem}
}
.plate.diagram-plate{aspect-ratio:auto;padding:clamp(1.5rem,4.5%,3.25rem)}
.plate.diagram-plate>svg{max-height:none}

/* 8 Oct: phones, no column gaps in the 12-column grid. Every child spans the full width here, and eleven 2rem gaps forced a 352px minimum, so narrow phones scrolled sideways. */
@media (max-width:47.99rem){.cols{column-gap:0}}

