/* Signal: the shared structure of the three mocks. Colors, type and corner radii come from the theme file each page
   loads after this one (a.css Ember, b.css Deep Sea, c.css Studio); this file only reads those variables. */
body{background:var(--bg);color:var(--ink);font:16px/1.6 var(--sans);-webkit-font-smoothing:antialiased}

/* Two planes: the sidebar sits on its own surface beside the page ground. */
.site-head{position:fixed;top:0;left:0;bottom:0;width:var(--side);padding:40px 22px 28px;display:flex;flex-direction:column;gap:6px;background:var(--side-bg);border-right:1px solid var(--line)}
.site-id{display:flex;flex-direction:column;gap:6px}
.site-menu{display:contents}
.menu-toggle,.bar-call{display:none}
.site-id{--brand:27px}
.brand{font:700 var(--brand)/1.05 var(--display);letter-spacing:-.02em;text-decoration:none}
/* Sized so the title runs exactly as wide as the name above it. */
.role-title{color:var(--hl);font:500 calc(var(--brand)*.68)/1.2 var(--display);white-space:nowrap}
/* The sidebar holds the calls to action instead of a navigation menu: the call first and brightest, then the message, then the CV as a plain link. */
.side-cta{margin-top:40px;display:flex;flex-direction:column;align-items:stretch;gap:12px}
.side-cta .btn{display:flex;justify-content:center;align-items:center;text-align:center;text-wrap:balance;font-size:14.5px;line-height:1.25;padding:12px 16px}
.cv-link{align-self:center;margin-top:4px;font:500 14.5px/1.2 var(--display);color:var(--muted);text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--line2)}
.cv-link:hover{color:var(--ink);text-decoration-color:var(--hl)}
/* "See my work" (2026-10-22), above "View CV" and like it, brings the projects into view. */
.work-link{align-self:center;margin-top:4px;font:500 14.5px/1.2 var(--display);color:var(--muted);text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--line2)}
.work-link:hover{color:var(--ink);text-decoration-color:var(--hl)}
/* The sidebar's foot (wide screens): links by icon, and the local time, which mock.js keeps current. */
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:14px}
.side-links{display:flex;gap:8px}
.side-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:var(--r-ctl);background:var(--btn-bg,transparent);box-shadow:inset 0 0 0 1px var(--line2);color:var(--ink)}
.side-icon:hover{box-shadow:inset 0 0 0 1px var(--hl);color:var(--hl)}
.side-icon svg{width:18px;height:18px}
.side-icon .i-in{fill:currentColor}
.i-line{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.side-time{display:flex;align-items:center;gap:10px;font:400 13.5px/1.4 var(--sans);color:var(--muted)}
.side-time svg{width:16px;height:16px;flex:none;color:var(--hl)}
main,.site-foot{margin-left:var(--side);padding:0 24px;max-width:1560px}
/* The headline glow reaches past the content edges; clip it sideways so it never widens the page. */
main{overflow-x:clip}

.hero{position:relative;isolation:isolate;padding:40px 0 28px}
/* A soft accent glow and a faint texture, fading out, give the first screen depth. The texture is the theme's. */
.hero::before{content:"";position:absolute;z-index:-1;left:-240px;top:-220px;width:880px;height:640px;background:radial-gradient(closest-side,var(--glow),transparent 72%);pointer-events:none}
.hero::after{content:"";position:absolute;z-index:-2;inset:-40px -24px 0 -24px;background-image:var(--hero-texture);background-size:var(--hero-size);
  -webkit-mask-image:var(--hero-mask);mask-image:var(--hero-mask);pointer-events:none}
.hero h1{font:600 clamp(36px,5.2vw,68px)/1.02 var(--display);letter-spacing:-.03em;max-width:17ch;text-wrap:balance}
.lede{margin-top:24px;font-size:19px;line-height:1.5;color:var(--muted);max-width:44ch}
.lede b{font-weight:500;color:var(--ink)}
.ph{color:var(--hl)}
/* The opening (chosen 2026-10-22 after a design review; see plan.md) fills the screen below the top bar at every size,
   with the projects' lead, also their heading, centered at its foot. Its block (headline, lede, the call and a way to
   the projects, and "About me" with a photo beside the paragraph) is centered between the top and that lead, with
   equal space fixed above and below; where the opening is taller than the screen, the lead follows the text. */
.hero{display:flex;flex-direction:column;min-height:calc(100svh - var(--bar,0px))}
.hero h1{margin-top:auto}
.hero .work-head{height:auto;margin-top:40px;padding:0}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.about{margin:48px 0 auto}
.about h2{margin-bottom:16px}
.about-body{display:flex;align-items:flex-start;gap:28px}
.about-pic{flex:none;width:144px;height:144px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 3px var(--panel),0 0 0 4px var(--line2)}
.about-body p{padding-top:6px;font-size:16.5px;line-height:1.6;color:var(--muted);max-width:52ch}
.about-cv{color:var(--hl);font-weight:500;text-decoration:underline;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,var(--hl) 35%,transparent)}
.about-cv:hover{text-decoration-color:var(--hl)}
/* The buttons that lead on to the next section ("How I work", "Selected projects") pulse softly, at Julian's request: a
   glow swells and fades behind each as its arrow dips. Only one is on screen at a time. */
.next{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:8px}
.next::before{content:"";position:absolute;z-index:-1;inset:0;border-radius:inherit;pointer-events:none;opacity:0;
  box-shadow:0 0 0 5px color-mix(in srgb,var(--hl) 12%,transparent),0 6px 26px 2px color-mix(in srgb,var(--hl) 34%,transparent);animation:breathe 2.8s ease-in-out infinite}
.next .i-chev{animation:nudge 2.8s ease-in-out infinite}
@keyframes breathe{50%{opacity:1}}
@keyframes nudge{50%{translate:0 4px}}
.how{scroll-margin-top:32px}
.next.rest::before,.next.rest .i-chev{animation:none}
@media (prefers-reduced-motion:reduce){.next::before,.next .i-chev{animation:none}}

/* The CV page (a local trial since 2026-10-21): the CV in the site's design, with a clear way back home above and below.
   Its markup comes from CV/julian-feder-cv.html (mock.js); its .contact is the CV's contact line, not the contact section. */
.cv-page{padding-top:calc(43.3px - 10px);padding-bottom:24px}
.cv-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.cv-bar .btn{display:inline-flex;align-items:center;gap:8px}
.cv-bar .cv-home{font-size:17px;padding:17px 28px 17px 24px}
.cv-home .i-chev{width:18px;height:18px}
.cv-end{margin-top:32px}
.cv{max-width:900px;margin-top:28px;padding:44px 48px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-panel);box-shadow:var(--shadow)}
.cv a{text-decoration:none}
.cv a:hover{color:var(--hl)}
.cv-note{color:var(--muted)}
.cv-note a{color:var(--hl);text-decoration:underline}
.cv .identity{padding-bottom:24px;border-bottom:1px solid var(--line)}
.cv h1{font:600 clamp(32px,4vw,44px)/1.05 var(--display);letter-spacing:-.035em}
.cv .headline{margin-top:6px;font:500 18px/1.3 var(--sans);color:var(--hl)}
.cv .contact{display:flex;flex-wrap:wrap;gap:4px 18px;margin:14px 0 0;padding:0;border:0;font-size:14.5px;color:var(--muted)}
.cv section{margin-top:36px}
.cv h2{margin-bottom:16px}
.cv .skill-row{display:grid;grid-template-columns:150px 1fr;gap:16px;margin-top:10px;font-size:15px;line-height:1.55}
.cv .skill-row dt{font:600 15px/1.55 var(--display)}
.cv .skill-row dd{margin:0;color:var(--muted)}
.cv .entry + .entry{margin-top:20px}
.cv .entry-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 16px}
.cv h3{font:600 17px/1.35 var(--display);letter-spacing:-.015em}
.cv h3 .employer{font-weight:500;color:var(--muted)}
.cv .date{font:500 12.5px/1.4 var(--mono);color:var(--faint);white-space:nowrap}
.cv .entry p{margin-top:6px;font-size:15px;line-height:1.6;color:var(--muted)}
.cv .entry .contractors{font-size:13.5px;color:var(--faint)}
.cv .portfolio{color:var(--hl);white-space:nowrap}
.cv .education-item{margin-top:8px;font-size:15px}
.cv .education-item span{color:var(--muted)}
.cv .education-item span::before{content:" · "}
.cv .languages{margin-top:18px;font-size:15px;color:var(--muted)}
.cv .languages strong{font-weight:600;color:var(--ink)}

/* Sections stand clearly apart (2026-10-21): the space between them is several times the space inside them. */
.how{container-type:inline-size}
/* Sized from the section width so the three phrases fill the line, edge to edge, with equal gaps. */
.creed{font:500 3cqw/1.3 var(--display);letter-spacing:-.015em;color:var(--muted);text-align:center}
.creed-ifs{display:flex;justify-content:space-between;white-space:nowrap;margin:28px 0 44px}
.creed-end{margin-top:64px;font:600 4.2cqw/1.1 var(--display);letter-spacing:-.02em;color:var(--ink)}
.creed-end em{font-style:normal;color:var(--hl)}
.steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:28px 0 0;padding:0;list-style:none}
.step{position:relative;padding:32px 18px 0 0}
/* The rail: one line through all six steps, a filled node with a soft ring at each, fading out after the last. */
.step::before{content:"";position:absolute;top:6px;left:0;right:0;height:1px;background:var(--line2)}
.grp:last-of-type .step:last-child::before{background:linear-gradient(to right,var(--line2) 40%,transparent)}
/* Wide screens: the two step groups dissolve into the one six-column rail. */
.grp,.grp-in{display:contents}
.grp-in{margin:0;padding:0;list-style:none}
.phase{display:none}
.step::after{content:"";position:absolute;top:0;left:0;width:13px;height:13px;border-radius:var(--r-node);background:var(--hl);box-shadow:0 0 0 5px var(--accent-soft)}
.step-n{display:block;font:500 12px/1 var(--mono);letter-spacing:.1em;color:var(--faint)}
.step h3{margin-top:10px;font:600 19px/1.2 var(--display);letter-spacing:-.01em}
.step p{margin-top:8px;font-size:13.5px;line-height:1.5;color:var(--muted)}

/* Section eyebrows: small mono labels with a short accent rule. */
h2{font:500 12px/1.4 var(--mono);text-transform:uppercase;letter-spacing:.16em;color:var(--muted);margin-bottom:20px}
h2::before{content:"";display:inline-block;width:18px;height:1px;background:var(--hl);vertical-align:middle;margin-right:10px}

/* Panels share one surface treatment: a hairline and the theme's shadow. */
.case,.rec,.contact-aside{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-panel);box-shadow:var(--shadow)}

/* Selected projects: a carousel showing one case at a time. */
/* The section leads (at Julian's request, 2026-10-21 and 22): "Selected projects", "What they say about me" and "Get in
   touch" are buttons that bring their section into view (mock.js); the first two are also their sections' headings.
   Each sits in a 90px band. On desktop each section's content fills the screen between two bands, centered, so after a
   lead its own band heads the screen and the next lead sits at the foot. The projects' lead stands at the opening's foot
   (above), and since 2026-10-22 "How I work", after the projects, has a lead of its own like the sections below. */
.lead{display:flex;justify-content:center;align-items:flex-end;height:90px;padding-bottom:28px;scroll-margin-top:24px}
.lead h2{margin:0;font:inherit;letter-spacing:normal;text-transform:none;color:var(--ink)}
.lead h2::before{content:none}
@media (min-width:961px){
  .carousel,.how-body,.rec-car{display:flex;flex-direction:column;justify-content:center;min-height:calc(100svh - 180px);padding-block:24px}
}
/* The arrows and count sit in the top right corner of each case, above the walkthrough poster. */
.case-nav{grid-area:nav;justify-self:end;display:flex;align-items:center;gap:8px}
.case-nav button,.rec-prev,.rec-next{display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:var(--r-ctl);background:var(--btn-bg,transparent);box-shadow:inset 0 0 0 1px var(--line2);color:var(--ink)}
.case-nav button:hover,.rec-prev:hover,.rec-next:hover{box-shadow:inset 0 0 0 1px var(--hl);color:var(--hl)}
.i-chev{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.car-count{min-width:5.5ch;white-space:nowrap;text-align:center;font:500 13px/1 var(--mono);letter-spacing:.08em;color:var(--muted);font-variant-numeric:tabular-nums}
/* Only the case on show is in the flow; the others sit on top of it, hidden, and slide across when they change places. */
.car-view{position:relative;overflow:hidden;touch-action:pan-y}
.cases{position:relative}
.cases .case{position:absolute;top:0;left:0;width:100%;margin:0;visibility:hidden;transition:transform .5s cubic-bezier(.3,.7,.2,1),visibility 0s .5s}
.cases .case.on{position:relative;visibility:visible;transform:none;transition:transform .5s cubic-bezier(.3,.7,.2,1)}
.car-dots{display:flex;justify-content:center;gap:6px;margin-top:18px}
.car-dots button{width:26px;height:26px;padding:0;border:0;background:none;display:grid;place-items:center}
.car-dots button::before{content:"";width:8px;height:8px;border-radius:var(--r-node);background:var(--dim);transition:background .2s,width .2s}
.car-dots button[aria-current="true"]::before{width:22px;border-radius:4px;background:var(--hl)}
.car-dots button:hover::before{background:var(--muted)}
.car-dots button[aria-current="true"]:hover::before{background:var(--hl)}

.case{position:relative;padding:36px;margin-bottom:20px}
.case.open{border-color:var(--line2)}
/* An open case drops its summary and poster: the sections below say the same thing in full, and the video plays there. */
.case.open .case-sum,.case.open .case-poster{display:none}
/* Collapsed: the copy on the left, the walkthrough poster on the right under the arrows. */
.case-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,400px);grid-template-areas:"main nav" "main poster" "roi poster" "toggle poster";gap:18px 44px;align-items:start}
.case.open .case-head{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main nav" "roi roi" "toggle toggle"}
.case-main{grid-area:main;min-width:0}
.case h3{font:600 clamp(26px,3.2vw,40px)/1.08 var(--display);letter-spacing:-.025em;max-width:20ch;text-wrap:balance}
.case-sum{margin-top:14px;color:var(--muted);max-width:62ch;font-size:16.5px}
/* The ROI is a tinted chip. */
.case-roi{grid-area:roi;justify-self:start;display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:8px 14px;border-radius:12px;background:var(--accent-soft)}
.roi-label{font:500 11.5px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.roi-num,.roi-unit{font:600 16px/1.3 var(--display);color:var(--hl);white-space:nowrap}
.roi-pct{font:500 16px/1.3 var(--display);color:var(--ink);white-space:nowrap}
.case-toggle{grid-area:toggle;justify-self:start;display:inline-flex;gap:12px;align-items:center;background:var(--accent);color:var(--on-accent);border:0;border-radius:var(--r-btn);padding:12px 22px;font:600 15px/1 var(--display);box-shadow:var(--btn-glow)}
.case-toggle:hover{filter:brightness(1.06)}
.case-toggle[aria-expanded="true"]{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--hl);filter:none}
.case-toggle[aria-expanded="true"] .t-icon{color:var(--hl)}
.case-poster{grid-area:poster;position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:1px solid var(--line2);border-radius:var(--r-poster);overflow:hidden;background:#000;box-shadow:var(--poster-shadow);cursor:pointer}
.case-poster img{width:100%;height:100%;object-fit:cover;opacity:.92;transition:transform .4s,opacity .3s}
.case-poster:hover img{transform:scale(1.03);opacity:1}
.case-poster .play{position:absolute;inset:0;margin:auto;width:64px;height:64px;border-radius:50%;background:var(--play-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:grid;place-items:center;color:#fff}
.case-poster .play svg{width:24px;height:24px;fill:currentColor;margin-left:3px}
.case-poster .chip{position:absolute;left:12px;bottom:12px;padding:5px 10px;border-radius:8px;background:rgba(0,0,0,.6);color:#fff;font:500 11.5px/1.2 var(--mono);letter-spacing:.06em}
.case-foot{margin-top:44px;padding-top:28px;border-top:1px solid var(--line)}
.case-close{display:inline-flex;gap:12px;align-items:center;background:transparent;color:var(--ink);border:0;border-radius:var(--r-btn);padding:12px 22px;box-shadow:inset 0 0 0 1px var(--hl);font:600 15px/1 var(--display)}
.case-close span{color:var(--hl);transition:transform .2s}
.case-close:hover span{transform:translateY(-3px)}

.case-body{margin-top:32px;padding-top:8px;border-top:1px solid var(--line)}
.blk{margin-top:40px}
h4{font:500 12px/1.4 var(--mono);text-transform:uppercase;letter-spacing:.16em;color:var(--hl);margin-bottom:14px}
.before>p,.solution>p{font-size:17.5px;line-height:1.55;max-width:60ch}
/* The pain points are tiles. */
.facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:20px;font-size:12px;line-height:1.4;color:var(--muted)}
.facts li{padding:14px 14px 12px;border-radius:14px;background:var(--raised);border:1px solid var(--line)}
.facts b{display:block;margin-bottom:6px;font:600 22px/1.1 var(--display);letter-spacing:-.02em;color:var(--ink)}
/* Before and The Solution on the left, the walkthrough at top right. */
.top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px 44px;align-items:start}
/* Its own class: "lead" is the section leads' (above), whose band would squeeze these into a row. */
.case-text .solution{margin-top:40px}
/* The three roles are cards beside the flowchart; the offset lines the first one up with the chart's top. */
.roles{display:grid;grid-template-columns:1fr;gap:14px;max-width:52ch}
.parts{padding-top:38px}
.role{padding:18px 20px;border-radius:16px;background:var(--raised);border:1px solid var(--line);border-left:3px solid var(--rc);font-size:14.5px;line-height:1.55;color:var(--muted)}
.role h5{font:600 15px/1.3 var(--display);color:var(--ink);margin-bottom:6px}
.role h5::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:9px;background:var(--rc)}
.r-ai{--rc:var(--c-ai)}.r-rules{--rc:var(--c-rules)}.r-hitl{--rc:var(--c-hitl)}

.duo{display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);gap:28px 64px;align-items:start}
.flowchart{display:block;width:100%;max-width:400px;height:auto}
.flowchart text{font:500 12px var(--sans);fill:var(--ink);text-anchor:middle}
.flowchart .fc-m{fill:var(--muted)}
.flowchart .fc-lbl{font-size:10.5px;font-style:italic;font-weight:400;fill:var(--muted)}
.flowchart .fc-s{text-anchor:start}
.fc-n{stroke-width:1.2}
.fc-ai{stroke:var(--c-ai);fill:color-mix(in srgb,var(--c-ai) 13%,var(--panel))}
.fc-rules{stroke:var(--c-rules);fill:color-mix(in srgb,var(--c-rules) 13%,var(--panel))}
.fc-hitl{stroke:var(--c-hitl);fill:color-mix(in srgb,var(--c-hitl) 13%,var(--panel))}
.fc-term{fill:var(--panel);stroke:var(--dim);stroke-width:1.2}
.fc-dec{fill:var(--panel);stroke:var(--muted);stroke-width:1.2}
.fc-l{fill:none;stroke:var(--dim);stroke-width:1.2}
.fc-d{stroke-dasharray:4 3}
.fc-head{fill:var(--dim)}
.fc-legend{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:14px;font-size:12px;color:var(--muted)}
.fc-legend li::before{content:"";display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:7px;border:1.2px solid}
.fc-legend .k-ai::before{border-color:var(--c-ai);background:color-mix(in srgb,var(--c-ai) 13%,var(--panel))}
.fc-legend .k-rules::before{border-color:var(--c-rules);background:color-mix(in srgb,var(--c-rules) 13%,var(--panel))}
.fc-legend .k-hitl::before{border-color:var(--c-hitl);background:color-mix(in srgb,var(--c-hitl) 13%,var(--panel))}
figcaption{margin-top:16px;font:500 14px/1.4 var(--display);color:var(--muted)}
.video-frame{border-radius:var(--r-poster);border:1px solid var(--line2);box-shadow:var(--poster-shadow);--p-accent:var(--hl)}
.video-hold{aspect-ratio:16/9;border-radius:var(--r-poster);background:#000 center/cover no-repeat;opacity:.45}
.video-frame .p-close{display:none}
/* While it plays, the video covers the window; the page underneath keeps its layout. */
.video-frame.over{position:fixed;inset:0;z-index:200;aspect-ratio:auto;border-radius:0;border:0;box-shadow:none;background:rgba(6,7,8,.94)}
.video-frame.over video{object-fit:contain}
.video-frame.over .p-close{display:grid;position:absolute;top:16px;right:16px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.14);z-index:2}
.video-frame.over .p-close:hover{background:rgba(255,255,255,.26)}
.video-frame.over .p-close svg{width:22px;height:22px}
.video-frame.over .p-bar{padding:40px 24px 18px}
html.video-open{overflow:hidden}
/* Captions: kept on the picture, and lifted above the control bar while it shows (see mock.js). */
.p-cap{position:absolute;left:0;right:0;bottom:var(--cap-low,6%);margin:0 auto;max-width:var(--cap-w,88%);text-align:center;pointer-events:none;
  font:500 var(--cap-size,15px)/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#fff;transition:bottom .25s}
.p-cap span{padding:.12em .45em;background:rgba(0,0,0,.72);border-radius:4px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.active:not(.playing.idle) .p-cap,.active:has(:focus-visible) .p-cap{bottom:max(var(--cap-low,6%),var(--cap-bar,56px))}
.cc-off .p-cap{display:none}
.btn{font:600 15px/1 var(--display);padding:13px 20px;border-radius:var(--r-btn);background:var(--btn-bg,transparent);box-shadow:inset 0 0 0 1px var(--line2);text-decoration:none}
.btn:hover{box-shadow:inset 0 0 0 1px var(--hl);color:var(--hl)}
.btn.primary{background:var(--accent);color:var(--on-accent);box-shadow:var(--btn-glow)}
.btn.primary:hover{color:var(--on-accent);filter:brightness(1.06)}
.footnote{margin-top:36px;font-size:13px;color:var(--muted);max-width:80ch}

/* Under the cards: the dots, with an arrow either side. */
.rec-foot{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:16px}
/* A self-rotating carousel (mock.js): a track of cards sliding left one card at a time, --per of them on show. The
   track is one flex row, so every card takes the height of the longest and nothing below moves as they change. */
.rec-car{--per:3;--gap:14px}
.rec-view{overflow:hidden;overflow-x:clip;overflow-y:visible} /* clips the waiting cards at the sides only, so the shadows below still show */
.rec-track{display:flex;gap:var(--gap);transition:transform .6s cubic-bezier(.4,0,.2,1)}
.rec-track.snap{transition:none}
.rec{flex:0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));min-width:0;padding:28px 28px 24px;display:flex;flex-direction:column;gap:18px}
.rec .q{width:24px;height:19px;fill:var(--hl);flex:none}
.rec blockquote{flex:1}
.rec blockquote p{font:500 16px/1.55 var(--display);text-wrap:pretty}
.rec figcaption{margin:0;display:flex;align-items:center;gap:12px}
.rec-pic{flex:none;width:44px;height:44px;border-radius:50%;object-fit:cover;border:1px solid var(--line2);background:var(--raised);display:grid;place-items:center;font:600 14px/1 var(--display);color:var(--muted)}
.rec-who{display:flex;flex-direction:column;gap:3px;min-width:0}
.rec-name{display:inline-flex;align-items:center;gap:7px;align-self:flex-start;font:600 14.5px/1.25 var(--display);color:var(--ink);text-decoration:none}
.rec-name .i-in{width:14px;height:14px;fill:var(--muted);flex:none}
.rec-name:hover,.rec-name:hover .i-in{color:var(--hl);fill:var(--hl)}
.rec-role{font:400 12.5px/1.35 var(--sans);color:var(--faint)}
/* One dot per recommendation; the leading card's dot fills over the time until the next step. */
.rec-dots{display:flex;justify-content:center;gap:2px}
.rec-dots button{width:26px;height:26px;padding:0;border:0;background:none;display:grid;place-items:center}
.rec-dots button[aria-current="true"]{width:44px}
.rec-dots i{position:relative;display:block;width:8px;height:8px;border-radius:var(--r-node);background:var(--dim);overflow:hidden;transition:width .3s}
.rec-dots button:hover i{background:var(--muted)}
.rec-dots button[aria-current="true"] i{width:36px;border-radius:4px;background:var(--line2)}
.rec-dots button[aria-current="true"] i::after{content:"";position:absolute;inset:0;background:var(--hl);transform-origin:left;animation:rec-fill var(--dur,12s) linear forwards}
.rec-car.paused .rec-dots i::after{animation-play-state:paused}
@keyframes rec-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes fan{from{translate:0 var(--shift)}to{translate:none}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes tuck{to{scale:.95}}
@keyframes veil{to{opacity:.45}}
@media (max-width:1199px){.rec-car{--per:2}}
@media (max-width:699px){.rec-car{--per:1}}
@media (prefers-reduced-motion:reduce){
  .rec-track{transition:none}
  .rec-dots button[aria-current="true"] i::after{animation:none}
}

/* Contact: headline and form on the left, the call option on the right. */
/* The "Get in touch" lead above it parts it from the recommendations. */
.contact{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr);gap:40px 64px;align-items:start;padding:24px 0 32px}
.contact h2{font:600 clamp(32px,4.6vw,56px)/1.04 var(--display);letter-spacing:-.03em;text-transform:none;color:var(--ink);max-width:14ch;margin:0;text-wrap:balance}
.contact h2::before{content:none}
.contact-form{margin-top:32px;max-width:560px}
.contact-form label{display:block;margin-bottom:8px;font:500 11.5px/1.4 var(--mono);text-transform:uppercase;letter-spacing:.14em;color:var(--muted)}
.contact-form input,.contact-form textarea{display:block;width:100%;margin-bottom:20px;padding:13px 16px;border-radius:var(--r-field);border:1px solid var(--line2);background:var(--panel);color:var(--ink);font:400 15px/1.5 var(--sans);box-shadow:var(--field-shadow)}
.contact-form textarea{resize:vertical;min-height:130px}
.contact-form ::placeholder{color:var(--faint)}
.contact-form input:focus-visible,.contact-form textarea:focus-visible{outline:2px solid var(--hl);outline-offset:2px}
.contact-actions{margin-top:8px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.contact-actions .btn{border:0;margin:0}
.form-note{font-size:12.5px;color:var(--muted)}
/* A field for bots only: kept off screen, out of the tab order and hidden from screen readers. */
.contact-form .trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.contact-actions .btn:disabled{opacity:.6;cursor:progress}
.contact-aside{padding:30px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-top:8px}
.contact-aside h3{font:600 22px/1.2 var(--display);letter-spacing:-.02em}
.contact-aside p{color:var(--muted);font-size:15px}
/* The footer sits apart from the form: space, then a hairline as wide as the content. */
.site-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:48px;padding-top:24px;padding-bottom:40px;background:linear-gradient(var(--line),var(--line)) 24px 0/calc(100% - 48px) 1px no-repeat;font:500 12.5px/1.4 var(--mono);color:var(--faint);letter-spacing:.04em}

@media (max-width:960px){
  /* The top bar stays at the top of the screen while the page scrolls. */
  html{scroll-padding-top:var(--bar,0px)}
  .site-head{position:sticky;top:0;z-index:100;background:var(--side-bg);width:auto;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 8px;padding:18px 20px;border-right:0;border-bottom:1px solid var(--line)}
  .site-id{gap:3px}
  .site-id{--brand:24px}
  .side-foot{display:none}
  .menu-toggle{display:grid;place-items:center;width:44px;height:44px;margin-right:-8px;padding:0;border:0;background:none;color:var(--ink)}
  .menu-toggle span,.menu-toggle span::before,.menu-toggle span::after{display:block;width:22px;height:2px;border-radius:1px;background:currentColor;transition:transform .2s,background .2s}
  .menu-toggle span{position:relative}
  .menu-toggle span::before,.menu-toggle span::after{content:"";position:absolute;left:0}
  .menu-toggle span::before{top:-7px}
  .menu-toggle span::after{top:7px}
  .menu-toggle[aria-expanded="true"] span{background:transparent}
  .menu-toggle[aria-expanded="true"] span::before{transform:translateY(7px) rotate(45deg)}
  .menu-toggle[aria-expanded="true"] span::after{transform:translateY(-7px) rotate(-45deg)}
  .site-menu{display:none;width:100%;padding:18px 0 6px}
  .menu-open .site-menu{display:block}
  .side-cta{margin:0}
  /* Phones: the call sits in the top bar itself; the menu keeps the message and the CV. */
  .bar-call{display:block;margin-left:auto;font-size:13.5px;padding:10px 15px;white-space:nowrap}
  .side-cta .btn.primary{display:none}
  main,.site-foot{margin-left:0;padding:0 20px}
  .hero::after{inset:-20px -20px 0 -20px}
  /* Phones: the spacing, the photo and the About text scale with the small viewport (the screen with the browser's
     bars showing), from their full size on a 390×844 screen down to a tight fit on 390×664, so the whole block, CV link
     included, is on the first screen with the lead below it. Where even that does not fit, the opening runs taller.
     The top bar carries the call, so the opening offers only the way to the projects. */
  .hero{padding:clamp(16px,8.9svh - 43px,32px) 0 clamp(16px,4.4svh - 13px,24px)}
  .hero .work-head{margin-top:clamp(16px,8.9svh - 43px,32px)}
  .hero .lede{margin-top:clamp(16px,4.4svh - 13px,24px)}
  .hero-cta{margin-top:clamp(20px,2.2svh + 5.4px,24px)}
  .hero-call{display:none}
  .about{margin:clamp(24px,4.4svh - 5px,32px) 0 auto}
  .about h2{margin-bottom:10px}
  .about-body{gap:16px}
  .about-pic{width:clamp(80px,25svh - 78px,112px);height:clamp(80px,25svh - 78px,112px)}
  .about-body p{padding-top:0;font-size:clamp(15px,.55svh + 11.4px,16px);line-height:1.55}
  .work-link{margin-top:0}
  /* The CV page: "Back home" runs the full width, and the CV's skills and entries stack. */
  .cv-page{padding-top:24px}
  .cv-bar .cv-home{flex:1 1 100%;justify-content:center}
  .cv{margin-top:20px;padding:28px 20px}
  .cv .skill-row{grid-template-columns:1fr;gap:2px;margin-top:14px}
  .site-foot{background-position:20px 0;background-size:calc(100% - 40px) 1px}
  .case{padding:24px 20px}
  /* Narrow screens: the arrows take their own row above the headline, and the poster sits under the summary. */
  .case-head{grid-template-columns:1fr;grid-template-areas:"nav" "main" "poster" "roi" "toggle";gap:16px}
  .case.open .case-head{grid-template-columns:1fr;grid-template-areas:"nav" "main" "roi" "toggle"}
  .case-nav{gap:4px;margin:-6px -6px -4px 0}
  .case-nav button{width:40px;height:40px}
  .case h3{max-width:22ch}
  /* An opened case glides its title up to here: a little below the top bar (mock.js). */
  .case h3{scroll-margin-top:16px}
  .roles,.duo,.top,.contact{grid-template-columns:1fr}
  .rec{padding:26px 22px 22px}
  .rec blockquote p{font-size:17px}
  .contact{gap:28px;padding-top:0}
  .parts{padding-top:0}
  /* Phones: each lead stands between its sections, 48px below the one before and 32px above its own. */
  .how{padding-bottom:0;scroll-margin-top:16px}
  .lead{height:auto;padding:48px 0 32px}
  /* Narrow screens: each phase is a card holding its header and steps. The cards stack under the top bar as the
     reader scrolls, each a header's height below the one before; mock.js sets their places and the covered cards' tuck. */
  .steps{display:block;margin-top:8px}
  .creed-ifs{display:none}
  .grp{display:block;margin-top:14px;padding:0 20px 4px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-panel);
    box-shadow:0 -10px 28px -18px rgba(20,24,40,.22),var(--shadow);transform-origin:50% 0}
  /* A column of flex items, so the cards' margins add up instead of collapsing (mock.js relies on it). */
  .stack{display:flex;flex-direction:column}
  .stack .grp{position:sticky;top:calc(var(--bar,0px) + 12px)}
  /* A covered card dims under a veil of the page's color. */
  .stack .grp::after{content:"";position:absolute;inset:-1px;border-radius:inherit;background:var(--bg);opacity:var(--tuck,0);pointer-events:none}
  /* Where the browser can, it fans the deck out and tucks the covered cards itself, from the scroll positions in
     --from and --to and in --tuck-from and --tuck-to (mock.js), easing the fanning in and out. Only movement, size and
     opacity change, which the browser can keep in step with the scrolling. */
  @supports (animation-timeline:scroll()){
    .stack .grp,.stack .grp::after,.fold .grp-in{animation-fill-mode:both;animation-timeline:scroll(root);animation-duration:auto}
    .fold .grp{animation-name:fan;animation-timing-function:cubic-bezier(.33,0,.67,1);animation-range:var(--from) var(--to)}
    .fold .grp-in{animation-name:fade-in;animation-timing-function:cubic-bezier(.33,0,.67,1);animation-range:var(--from) var(--to)}
    .stack .grp:not(:last-child){animation-name:tuck;animation-timing-function:linear;animation-range:var(--tuck-from) var(--tuck-to)}
    .fold .grp:not(:last-child){animation-name:fan,tuck;animation-timing-function:cubic-bezier(.33,0,.67,1),linear;
      animation-range:var(--from) var(--to),var(--tuck-from) var(--tuck-to);animation-timeline:scroll(root),scroll(root)}
    .stack .grp:not(:last-child)::after{animation-name:veil;animation-timing-function:linear;animation-range:var(--tuck-from) var(--tuck-to)}
  }
  .stack.measuring .grp,.stack.measuring .grp::after,.stack.measuring .grp-in{animation:none}
  .phase{display:block;padding:16px 0;font:600 26px/1.15 var(--display);letter-spacing:-.02em;color:var(--ink)}
  .grp-in{display:block;min-height:0}
  .creed-end{margin-top:24px;padding-top:28px;font-size:30px}
  .step{padding:0 0 22px 30px}
  .step:first-child{margin-top:6px}
  .step:last-child{padding-bottom:26px}
  .step::before{top:0;bottom:0;left:6px;right:auto;width:1px;height:auto}
  .grp:last-of-type .step:last-child::before,.step:last-child::before{background:linear-gradient(to bottom,var(--line2) 40%,transparent)}
  .step-n{padding-top:0}
  .roles{gap:12px}
  .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (prefers-reduced-motion:reduce){.cases .case,.case-poster img{transition:none}.stack .grp,.stack .grp::after{animation:none}}
