/* Resonance People website, in the brand system. One stylesheet for every page.
   Paper is the ground. Charcoal appears on the home hero and contact, on each service page's case study, and on an
   article's closing call to action.
   Red is a signal: the mark, the one main button, and the small square beside whatever is being pointed at.
   Values mirror system/tokens.css. Corners are always square. */

/* Typefaces are held in assets/fonts, so the site loads nothing from outside. All three are under the SIL Open Font Licence. */
@font-face{ font-family:"Geist"; font-style:normal; font-weight:100 900; font-display:swap; src:url("assets/fonts/geist-100-900-latin-ext.woff2") format("woff2"); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face{ font-family:"Geist"; font-style:normal; font-weight:100 900; font-display:swap; src:url("assets/fonts/geist-100-900-latin.woff2") format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face{ font-family:"Hanken Grotesk"; font-style:normal; font-weight:400 600; font-display:swap; src:url("assets/fonts/hanken-grotesk-400-600-latin-ext.woff2") format("woff2"); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face{ font-family:"Hanken Grotesk"; font-style:normal; font-weight:400 600; font-display:swap; src:url("assets/fonts/hanken-grotesk-400-600-latin.woff2") format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face{ font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap; src:url("assets/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2"); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face{ font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap; src:url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face{ font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap; src:url("assets/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2"); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face{ font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap; src:url("assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }

:root{
  color-scheme:light;
  --rp-paper:#FAF9F7; --rp-paper-2:#F0EAE3; --rp-ink:#1C1814; --rp-charcoal:#33302B;
  --rp-red:#B83A2E; --rp-red-on-dark:#C9432A; --rp-grey:#6B655E; --rp-grey-on-dark:#B9B2A9;
  --rp-hairline:#DAD6D0; --rp-hairline-on-dark:#4D4943; --rp-square-on-dark:#5A554E;
  --ground:var(--rp-paper); --text:var(--rp-ink); --text-2:var(--rp-grey); --rule:var(--rp-hairline); --signal:var(--rp-red); --on-signal:var(--rp-paper);
  --font-sans:"Hanken Grotesk","Helvetica Neue",Arial,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --font-name:"Geist","Hanken Grotesk","Helvetica Neue",Arial,sans-serif;
}
.rp-impact{ --ground:var(--rp-charcoal); --text:var(--rp-paper); --text-2:var(--rp-grey-on-dark); --rule:var(--rp-hairline-on-dark); --signal:var(--rp-red-on-dark); background:var(--ground); color:var(--text) }

*,*::before,*::after{ box-sizing:border-box }
html{ scroll-behavior:smooth }
html,body{ margin:0 }
[hidden]{ display:none !important }
body{ background:var(--rp-paper); color:var(--rp-ink); font:400 17px/1.55 var(--font-sans); -webkit-font-smoothing:antialiased }
:where(h1,h2,h3,p,ul,ol,figure,blockquote){ margin:0; padding:0 }
:where(img){ display:block; max-width:100%; height:auto }
a{ color:inherit }
.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)) }
section > .wrap{ padding-block:clamp(56px,8vw,104px) }
.label{ font:500 11px/1.3 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--text-2) }
h1{ font:600 clamp(40px,6.2vw,76px)/1.02 var(--font-sans); letter-spacing:-.024em; text-wrap:balance; max-width:11.5em }
h2{ font:600 clamp(30px,4vw,46px)/1.06 var(--font-sans); letter-spacing:-.018em; text-wrap:balance }
h3{ font:600 21px/1.25 var(--font-sans) }
.lede{ font-size:clamp(18px,1.6vw,20px); line-height:1.45; max-width:34em }
.muted{ color:var(--text-2) }
.btn{ display:inline-block; font:500 16px/1 var(--font-sans); padding:15px 20px; border:1px solid transparent; border-radius:0; text-decoration:none; cursor:pointer }
.btn.solid{ background:var(--signal); color:var(--on-signal) }
.btn.ghost{ border-color:var(--text); color:var(--text); background:transparent; padding:11px 15px; font-size:15px }
:focus-visible{ outline:2px solid var(--text); outline-offset:3px }
/* the small square that sits beside a label. It is grey at rest and red on the thing being pointed at. */
.sq{ display:inline-block; width:8px; height:8px; flex:none; background:var(--rule) }
.sq.on{ background:var(--signal) }

/* ---------- the mark and the name: Geist Bold, sized and spaced by the golden ratio ---------- */
.mk{ display:block; height:1em; width:.75em; flex:none; fill:var(--signal) }
.lock{ display:flex; align-items:flex-end; align-items:last baseline; gap:.191em; font-size:40px; white-space:nowrap; text-decoration:none; color:var(--text) }
.lock .nm{ font:700 .433em/1 var(--font-name) }

/* ---------- preview bar: says this is a preview, and leads back to the brand system index ---------- */
.preview-bar{ background:var(--rp-ink); color:var(--rp-grey-on-dark); font:500 11px/1.3 var(--font-mono); letter-spacing:.1em; text-transform:uppercase }
.preview-bar .wrap{ display:flex; justify-content:space-between; align-items:center; gap:8px 24px; flex-wrap:wrap; padding-block:9px }
.preview-bar a{ display:inline-flex; align-items:center; gap:9px; color:var(--rp-paper); text-decoration:none }
.preview-bar .sq{ background:var(--rp-square-on-dark) }
.preview-bar a:hover .sq{ background:var(--rp-red-on-dark) }

/* ---------- navigation: the same bar on every page. On the home page it sits inside the hero. ---------- */
.nav{ display:flex; align-items:center; gap:28px; padding-block:24px }
.nav .links{ margin-left:auto; display:flex; gap:28px; font-size:16px }
.nav .links a{ text-decoration:none; color:var(--text-2) }
.nav .links a:hover, .nav .links a[aria-current="page"]{ color:var(--text) }
.top{ border-bottom:1px solid var(--rule); position:relative; z-index:5 }
/* the Services menu: all services, then each one */
.drop{ position:relative }
.drop-btn{ display:inline-flex; align-items:center; gap:6px; padding:0; border:0; background:none; font:inherit; color:var(--text-2); cursor:pointer }
.drop-btn:hover, .drop-btn[aria-expanded="true"], .drop-btn[data-current]{ color:var(--text) }
.chev{ width:10px; height:6px; transition:transform .15s }
.drop-btn[aria-expanded="true"] .chev{ transform:rotate(180deg) }
.menu{ position:absolute; left:-18px; top:calc(100% + 14px); z-index:10; min-width:220px; display:grid; padding:8px 0; background:var(--rp-ink); border:1px solid var(--rp-hairline-on-dark) }
.nav .links .menu a{ display:block; padding:9px 18px; font-size:15px; color:var(--rp-grey-on-dark) }
.nav .links .menu a:first-child{ color:var(--rp-paper); font-weight:500 }
.nav .links .menu a:hover, .nav .links .menu a:focus-visible, .nav .links .menu a[aria-current="page"]{ color:var(--rp-paper); background:rgb(250 249 247 / .06); outline-offset:-2px }

/* ---------- home: hero ---------- */
.hero{ position:relative; overflow:hidden }
#field{ position:absolute; inset:0; width:100%; height:100%; display:block }
.hero .wrap{ position:relative; padding-block:0 }
.pitch{ display:grid; gap:26px; justify-items:start; padding-block:clamp(64px,11vw,150px) clamp(72px,11vw,150px); width:fit-content; max-width:100% }

/* ---------- home: services and what makes defence different ---------- */
.intro{ display:grid; gap:16px; margin-bottom:clamp(36px,5vw,60px) }
.list{ list-style:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(235px,1fr)); gap:36px 32px }
.list li{ border-top:1px solid var(--text); padding-top:16px; display:grid; gap:10px; align-content:start }
.list .n{ display:flex; align-items:center; gap:9px; font:500 12px/1 var(--font-mono); color:var(--text-2) }
.list li:hover .sq, .list li.in-focus .sq{ background:var(--signal) }
.list .sq{ transition:background-color .25s }
.list p{ font-size:16px; color:var(--text-2) }
.list .more{ justify-self:start; margin-top:4px; font-size:15px; font-weight:500; text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--signal); text-decoration-thickness:2px }
.list .more:hover{ text-decoration-color:var(--text) }
.plate{ width:100%; aspect-ratio:21/9; object-fit:cover; object-position:50% 38% }
.split{ display:grid; grid-template-columns:minmax(0,4fr) minmax(0,7fr); gap:clamp(28px,5vw,72px); align-items:start }
.split .list{ grid-template-columns:repeat(auto-fit,minmax(250px,1fr)) }
.split .intro{ margin-bottom:0 }

/* ---------- home: the two sections after the hero share one head (the point on the left, the lede beside it)
   and then show their content in the form it has: four services as rows that each open a page, and the four
   conditions of defence hiring as tiles on a warm band ---------- */
.sec-head{ display:grid; gap:18px; margin-bottom:clamp(36px,5vw,56px) }
.sec-head h2{ max-width:13em }
.sec-head .lede{ color:var(--text-2); max-width:36em }
#different{ background:var(--rp-paper-2) }
.tiles{ list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--text); border-left:1px solid var(--rule) }
.tiles li{ display:grid; gap:14px; align-content:start; padding:clamp(24px,3vw,40px); border-right:1px solid var(--rule); border-bottom:1px solid var(--rule); background:var(--rp-paper) }
.tiles h3{ display:flex; align-items:center; gap:12px; font-size:clamp(20px,1.8vw,23px) }
.tiles p{ font-size:16px; line-height:1.65; color:var(--text-2); max-width:34em }

/* ---------- home: contact ---------- */
.contact{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:clamp(28px,6vw,88px); align-items:start }
.contact .intro{ margin-bottom:0 }
.formbox{ display:grid; gap:22px }
form{ display:grid; gap:18px }
form .two{ display:grid; grid-template-columns:1fr 1fr; gap:18px }
label{ display:grid; gap:8px; font:500 11px/1.3 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--text-2) }
/* A field is a line. In focus, a quiet grid of the brand's squares spreads from the point that was tapped and fades
   with distance (site.js draws it, the same field the buttons show under the pointer), and the line settles one pixel
   thicker and at full strength, growing outward from that same point. --fx is where the tap landed, set by site.js;
   without it the line grows from the left. The thick line is the label's, as a field cannot carry one of its own. */
label{ position:relative; isolation:isolate }
input, textarea{ width:100%; font:400 17px/1.4 var(--font-sans); color:var(--text); background:transparent; border:0; border-bottom:1px solid var(--text-2); border-radius:0; padding:8px 0 12px; transition:border-color .2s }
input:hover, textarea:hover{ border-bottom-color:var(--text) }
input:focus, textarea:focus{ outline:0 }
label::after{ content:""; position:absolute; left:0; right:0; bottom:0; border-top:2px solid var(--text); pointer-events:none;
  clip-path:inset(0 calc(100% - var(--fx, 0px)) 0 var(--fx, 0px)); transition:clip-path .25s cubic-bezier(.4,0,.6,1) }
label:focus-within::after{ clip-path:inset(0); transition:clip-path .6s cubic-bezier(.2,.7,.2,1) }
label:focus-within{ color:var(--text) }
.field-grid{ position:absolute; left:0; top:0; width:100%; height:100%; z-index:-1; pointer-events:none }
input::placeholder, textarea::placeholder{ color:var(--text-2); opacity:.85 }
textarea{ min-height:112px; resize:none; field-sizing:content }
@supports not (field-sizing:content){ textarea{ resize:vertical } }
/* a field the browser filled in keeps the page's colours instead of the browser's own */
input:autofill, textarea:autofill{ box-shadow:0 0 0 100px var(--ground) inset; -webkit-text-fill-color:var(--text); caret-color:var(--text) }
input:-webkit-autofill, textarea:-webkit-autofill{ box-shadow:0 0 0 100px var(--ground) inset; -webkit-text-fill-color:var(--text); caret-color:var(--text) }
@media (prefers-reduced-motion: reduce){ input, textarea, label::after, label:focus-within::after{ transition:none } }
/* a field only scripts fill in (launch.py adds it): off the page, and out of the tab order */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden }
button:disabled{ opacity:.6; cursor:default }
.note{ font-size:14px; color:var(--text-2); min-height:1.4em }
.thanks{ display:grid; gap:14px; justify-items:start }
.thanks:focus{ outline:0 }   /* focus is moved here so the message is read out; it is not a control */
.direct{ display:flex; flex-wrap:wrap; gap:8px 24px; font-size:15px; color:var(--text-2); margin-top:8px }
.direct a{ color:var(--text) }

/* ---------- the close: the charcoal call to action that ends the inner pages ---------- */
.close .wrap{ display:grid; gap:20px; justify-items:start }
.close h2{ max-width:16em }

/* ---------- page heads on paper ---------- */
.head .wrap{ display:grid; gap:18px; padding-block:clamp(48px,7vw,88px) clamp(28px,4vw,44px) }
.head h1{ font-size:clamp(40px,5.6vw,68px) }

/* ---------- about ---------- */
/* the opening: the pitch on the left, Michelle's photograph running off the right edge of the page */
.about-hero{ display:grid; grid-template-columns:minmax(20px,1fr) minmax(0,700px) minmax(0,460px) minmax(0,1fr) }
.about-pitch{ grid-column:2; display:grid; gap:22px; align-content:center; justify-items:start; padding-block:clamp(48px,7vw,96px); padding-right:clamp(24px,5vw,72px) }
.about-pitch .label{ display:flex; align-items:center; gap:9px }
.about-pitch h1{ font-size:clamp(32px,3.6vw,48px); max-width:none }
.hero-photo{ grid-column:3 / 5; position:relative; margin:0; min-height:100% }
.hero-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:42% 22% }
.hero-photo figcaption{ position:absolute; left:16px; bottom:14px; background:var(--rp-paper); color:var(--rp-charcoal); padding:6px 9px }
/* what we do, where we come from, who leads it: three columns under a dark rule */
.about-points{ border-top:1px solid var(--rule) }
.about-points ol{ list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(24px,4vw,56px); padding-block:clamp(40px,6vw,72px) }
.about-points li{ display:grid; gap:14px; align-content:start; border-top:1px solid var(--text); padding-top:16px; font-size:16px; line-height:1.65; color:var(--text-2) }
.about-points .n{ display:flex; align-items:center; gap:9px; font:500 12px var(--font-mono); letter-spacing:.1em; color:var(--text) }
/* Michelle's story, with her name and contact held beside it as you read */
.founder{ background:var(--rp-paper-2) }
.founder .wrap{ display:grid; grid-template-columns:minmax(0,4fr) minmax(0,8fr); gap:clamp(28px,6vw,88px); align-items:start; padding-block:clamp(56px,8vw,104px) }
.byline{ position:sticky; top:32px; display:grid; gap:10px }
.byline .label{ display:flex; align-items:center; gap:9px; margin-bottom:8px }
.byline h2{ font-size:clamp(30px,3.4vw,42px) }
.byline .role{ font-size:16px; color:var(--text-2) }
.byline .reach{ display:grid; gap:8px; border-top:1px solid var(--rule); padding-top:16px; margin-top:12px; font-size:15px }
.story{ display:grid; gap:1.15em; font-size:18px; line-height:1.7; max-width:38em }
.story .first{ font-size:clamp(24px,2.6vw,32px); line-height:1.28; font-weight:500; letter-spacing:-.01em; text-wrap:balance }
.pull{ border-left:3px solid var(--signal); padding:4px 0 4px clamp(18px,2.5vw,28px); margin-block:.8em }
.pull p{ font:600 clamp(22px,2.4vw,30px)/1.22 var(--font-sans); letter-spacing:-.012em; text-wrap:balance }

/* ---------- service pages ---------- */
.svc-head{ background:var(--rp-paper-2) }
.svc-head .wrap{ display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:clamp(28px,5vw,64px); align-items:end; padding-block:clamp(40px,6vw,72px) clamp(56px,8vw,96px) }
.svc-pitch{ display:grid; gap:22px; justify-items:start }
.crumbs ol{ list-style:none; display:flex; gap:8px; font-size:14px; color:var(--text-2); margin-bottom:clamp(12px,2vw,24px) }
.crumbs a{ text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--signal); text-decoration-thickness:2px }
.crumbs [aria-current]{ color:var(--text) }
.eyebrow{ display:flex; align-items:center; gap:9px }
.eyebrow .num{ color:var(--signal) }
.svc-pitch h1{ font-size:clamp(38px,5.2vw,64px) }
.intro-text{ font-size:17px; line-height:1.7; max-width:38em }
.svc-figure{ min-width:0 }
.schematic{ display:block; width:100%; height:auto; max-height:520px }
.schematic .sl{ font:500 11px var(--font-mono); letter-spacing:.14em; fill:var(--rp-grey) }
/* the diagram building itself: held back from the first paint when it will play (.motion, set in the page head), then run on .play */
.motion .schematic [class*="a-"]{ transform-box:fill-box; transform-origin:center }
.motion .schematic .a-grow-y{ transform-origin:50% 0 }
.motion .schematic .a-grow-x{ transform-origin:0 50% }
.motion .schematic .a-draw{ stroke-dasharray:1; stroke-dashoffset:0 }
.motion .schematic:not(.play) [class*="a-"]{ opacity:0 }
.schematic.play [class*="a-"]{ animation:rp-fade var(--t,320ms) ease-out var(--d,0ms) both }
.schematic.play .a-rise{ animation-name:rp-rise; animation-timing-function:cubic-bezier(.2,.7,.2,1) }
.schematic.play .a-pop{ animation-name:rp-pop; animation-duration:var(--t,380ms); animation-timing-function:cubic-bezier(.3,1.5,.5,1) }
.schematic.play .a-draw{ animation-name:rp-draw; animation-timing-function:cubic-bezier(.4,0,.2,1) }
.schematic.play .a-grow-y{ animation-name:rp-grow-y; animation-timing-function:cubic-bezier(.4,0,.2,1) }
.schematic.play .a-grow-x{ animation-name:rp-grow-x; animation-timing-function:cubic-bezier(.4,0,.2,1) }
.schematic.play .a-rise.a-red{ animation:rp-rise var(--t) cubic-bezier(.2,.7,.2,1) var(--d) both, rp-red-from-grey 420ms ease calc(var(--d) + var(--t) + 380ms) both }
.schematic.play .a-pop.a-red-dark{ animation:rp-pop var(--t) cubic-bezier(.3,1.5,.5,1) var(--d) both, rp-red-from-dark 420ms ease calc(var(--d) + var(--t) + 120ms) both }
.schematic.play .a-pop.a-beat{ animation:rp-pop var(--t,380ms) cubic-bezier(.3,1.5,.5,1) var(--d) both, rp-beat 620ms ease-in-out calc(var(--d) + var(--t,380ms)) both }
@keyframes rp-fade{ from{ opacity:0 } }
@keyframes rp-rise{ from{ opacity:0; transform:translateY(14px) } }
@keyframes rp-pop{ from{ opacity:0; transform:scale(.15) } }
@keyframes rp-draw{ from{ stroke-dashoffset:1 } }
@keyframes rp-grow-y{ from{ transform:scaleY(0) } }
@keyframes rp-grow-x{ from{ transform:scaleX(0) } }
@keyframes rp-red-from-grey{ from{ fill:#6B655E } }
@keyframes rp-red-from-dark{ from{ fill:#1C1814 } }
@keyframes rp-beat{ 0%,100%{ transform:scale(1) } 45%{ transform:scale(1.4) } }
.svc-offer h2, .svc-case h2, .svc-close h2{ display:grid; gap:24px; justify-items:start; max-width:17em }
.svc-offer h2{ font-size:clamp(28px,3.4vw,40px) }
.offer-text{ font-size:18px; line-height:1.7; max-width:38em; margin-block:24px clamp(32px,4vw,44px) }
.offers{ list-style:none; max-width:1000px; border-bottom:1px solid var(--rule) }
.offers li{ display:grid; grid-template-columns:5rem minmax(0,1fr); gap:16px; border-top:1px solid var(--rule); padding-block:22px }
.offers .n{ font:500 13px/1.6 var(--font-mono); color:var(--signal) }
.offers p{ font-size:17px; line-height:1.6; max-width:38em }
.svc-case h2{ font-size:clamp(28px,3.4vw,40px); max-width:20em }
.svc-case .muted{ font-weight:600 }
.context{ font-size:18px; line-height:1.7; max-width:38em; color:var(--text-2); margin-block:24px clamp(40px,5vw,56px) }
.case-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px clamp(32px,5vw,64px); align-items:start }
.steps{ display:grid; gap:36px }
.step{ border-top:1px solid var(--rule); padding-top:18px; display:grid; gap:10px }
.step p{ font-size:16px; line-height:1.7; color:var(--text-2) }
.result{ border-top:3px solid var(--signal); padding-top:18px; display:grid; gap:14px }
.result p{ font:600 clamp(20px,2vw,24px)/1.4 var(--font-sans); letter-spacing:-.008em }
.svc-close .wrap{ display:grid; gap:24px; justify-items:start }
.svc-close h2{ max-width:16em }

/* the other three services, as cards at the foot of each service page */
.svc-more{ background:var(--rp-paper-2) }
.svc-more .wrap{ display:grid; gap:24px; padding-block:clamp(48px,6vw,72px) }
.svc-cards{ list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px }
.svc-card{ height:100%; display:grid; grid-template-rows:auto auto 1fr auto; gap:12px; padding:clamp(22px,2.4vw,30px); background:var(--rp-paper); border:1px solid var(--rule); text-decoration:none; color:var(--text); transition:border-color .15s }
.svc-card .n{ display:flex; align-items:center; gap:9px }
.svc-card .num{ color:var(--signal) }
.svc-card h3{ font:600 clamp(20px,1.8vw,24px)/1.2 var(--font-sans); letter-spacing:-.01em }
.svc-card p{ font-size:15px; line-height:1.55; color:var(--text-2) }
.svc-card .go{ justify-self:start; margin-top:8px; font-size:15px; font-weight:500; text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--signal); text-decoration-thickness:2px; transition:transform .15s }
.svc-card:hover, .svc-card:focus-visible{ border-color:var(--text) }
.svc-card:hover .sq, .svc-card:focus-visible .sq{ background:var(--signal) }
.svc-card:hover .go, .svc-card:focus-visible .go{ transform:translateX(4px); text-decoration-color:var(--text) }

/* ---------- blog index ---------- */
.filters{ display:flex; flex-wrap:wrap; gap:8px }
.filters button{ font:500 14px/1 var(--font-sans); padding:10px 13px; background:transparent; color:var(--text); border:1px solid var(--rule); border-radius:0; cursor:pointer }
.filters button:hover{ border-color:var(--text) }
.filters button[aria-pressed="true"]{ background:var(--text); color:var(--ground); border-color:var(--text) }
.posts .wrap{ padding-top:0; display:grid; gap:28px }
.cards{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px }
.card{ display:grid; grid-template-rows:auto 1fr; border:1px solid var(--rule); text-decoration:none; color:var(--text); min-width:0 }
.card:hover, .card:focus-visible{ border-color:var(--text) }
.card figure{ aspect-ratio:3/2; overflow:hidden; border-bottom:1px solid var(--rule); background:var(--rp-paper-2) }
.card img{ width:100%; height:100%; object-fit:cover }
.card .body{ display:grid; gap:10px; align-content:start; padding:20px 22px 22px }
.card .kind{ display:flex; align-items:center; gap:9px }
.card:hover .sq, .card:focus-visible .sq{ background:var(--signal) }
.card h2{ font:600 23px/1.18 var(--font-sans); letter-spacing:-.01em }
.card .sub{ font-size:16px; line-height:1.4 }
.card p.ex{ font-size:15px; line-height:1.5; color:var(--text-2) }
.card .meta{ margin-top:6px }
.card.wide{ grid-column:1 / -1; grid-template-rows:none; grid-template-columns:minmax(0,7fr) minmax(0,5fr) }
.card.wide figure{ aspect-ratio:auto; min-height:340px; border-bottom:0; border-right:1px solid var(--rule) }
.card.wide .body{ align-content:center; padding:clamp(24px,3.4vw,48px) }
.card.wide h2{ font-size:clamp(28px,3vw,40px); line-height:1.08; letter-spacing:-.018em }
.card.wide p.ex{ font-size:17px }

/* ---------- article ---------- */
.article-head .wrap{ max-width:720px; display:grid; gap:18px; padding-block:clamp(36px,5vw,64px) 0 }
.back{ justify-self:start; font-size:15px; color:var(--text-2); text-decoration:none }
.back:hover{ color:var(--text) }
.kicker{ display:flex; align-items:center; gap:9px; text-decoration:none; justify-self:start; margin-top:10px }
.article-head h1{ font-size:clamp(34px,5vw,60px); max-width:none }
.article-head .sub{ font-size:clamp(20px,2.2vw,26px); line-height:1.3; color:var(--text-2); text-wrap:balance }
.cover{ max-width:1000px; margin:clamp(28px,4vw,48px) auto 0; padding-inline:20px }
.cover img{ width:100%; aspect-ratio:16/9; object-fit:cover }
.prose{ max-width:720px; margin:0 auto; padding:clamp(36px,5vw,64px) 20px clamp(56px,8vw,96px); font-size:18px; line-height:1.65 }
.prose > * + *{ margin-top:1.1em }
.prose h2{ font:600 clamp(24px,2.6vw,30px)/1.15 var(--font-sans); letter-spacing:-.012em; margin-top:1.9em }
.prose h3{ font:600 20px/1.3 var(--font-sans); margin-top:1.7em }
.prose a{ text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--rp-grey) }
.prose a:hover{ text-decoration-color:var(--text) }
.prose ul{ list-style:none; display:grid; gap:.55em }
.prose ul li{ position:relative; padding-left:22px }
.prose ul li::before{ content:""; position:absolute; left:0; top:.62em; width:8px; height:8px; background:var(--rule) }
.prose ol{ padding-left:1.3em; display:grid; gap:.55em }
.prose blockquote{ border-top:1px solid var(--text); padding-top:18px; margin-block:1.8em; font:600 clamp(21px,2.3vw,26px)/1.26 var(--font-sans); letter-spacing:-.01em; text-wrap:balance }
.prose blockquote + blockquote{ border-top:0; padding-top:0; margin-top:-1em }

/* ---------- footer ---------- */
footer{ border-top:1px solid var(--rule) }
footer .wrap{ padding-block:44px 28px; display:grid; grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr)) minmax(max-content,1fr); gap:32px; font-size:15px }
footer ul{ list-style:none; display:grid; gap:8px; margin-top:12px }
footer a{ text-decoration:none }
footer a:hover{ text-decoration:underline }
footer .legal{ grid-column:1 / -1; display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 28px; border-top:1px solid var(--rule); padding-top:18px; margin-top:12px }

@media (max-width: 860px){
  .nav{ flex-wrap:wrap; gap:14px 12px }
  .nav .btn{ margin-left:auto; white-space:nowrap; font-size:14px; padding:10px 12px }
  .nav .btn .rp-icon-slot{ display:none }
  .nav .links{ order:3; width:100%; margin-left:0; gap:22px; padding-top:14px; border-top:1px solid var(--rule) }
  .lock{ font-size:34px }
  .split, .contact, .founder .wrap, .svc-head .wrap, .case-grid{ grid-template-columns:1fr }
  .tiles{ grid-template-columns:1fr }
  .svc-cards{ grid-template-columns:1fr }
  .offers li{ grid-template-columns:3rem minmax(0,1fr) }
  .schematic .sl{ font-size:16px }
  .menu{ left:0 }
  .about-hero{ grid-template-columns:20px minmax(0,1fr) 20px }
  .about-pitch{ grid-column:2; padding-right:0; padding-bottom:36px }
  .hero-photo{ grid-column:1 / -1; grid-row:2; aspect-ratio:4/3 }
  .about-points ol{ grid-template-columns:1fr }
  .byline{ position:static }
  .plate{ aspect-ratio:4/3 }
  form .two{ grid-template-columns:1fr }
  .cards{ grid-template-columns:1fr }
  .card.wide{ grid-template-columns:1fr }
  .card.wide figure{ aspect-ratio:3/2; min-height:0; border-right:0; border-bottom:1px solid var(--rule) }
  footer .wrap{ grid-template-columns:minmax(0,1fr) minmax(0,1fr) }
  footer .wrap > :first-child{ grid-column:1 / -1 }
}
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto } }

/* ---------- content rising into view as it is scrolled to (site.js sets .reveal on the page when it will play) ---------- */
.reveal [data-reveal]{ opacity:0; transform:translateY(18px); transition:opacity .6s ease-out, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay:calc(var(--i, 0) * 90ms) }
.reveal [data-reveal].seen{ opacity:1; transform:none }
