/* Discovery Loop — one stylesheet for every page.
   Order: fonts · tokens · base · layout · header · masthead · sections · team · closing · signup · footer ·
          blog index · article · floating signup · policy · 404 · print.
   Rules of the system:
     · one twelve-column grid; labels sit in the rail (columns 1–3), content in columns 4–12
     · running text never exceeds --measure
     · Jost uppercase labels, Fraunces display, Newsreader reading text; no other role for any of them
     · Fraunces keeps the two cuts the live site uses: headings at weight 400 with automatic optical size,
       light statements at weight 300 on the text cut (optical size 16)
     · colours come from the semantic tokens (--fg, --bg, --rule …) so every component works on paper and on ink */

/* ---------- fonts: one variable file per style, declared once ---------- */
@font-face{font-family:'Jost';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/Jost-400.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/Fraunces-400.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:100 900;font-display:swap;src:url('../fonts/Fraunces-400i.woff2') format('woff2');}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:200 800;font-display:swap;src:url('../fonts/Newsreader-400.woff2') format('woff2');}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/Newsreader-400i.woff2') format('woff2');}
/* System fallbacks resized to the webfonts' measured widths, so the swap does not move the page. */
@font-face{font-family:'Jost Fallback';src:local('Arial');size-adjust:95.75%;ascent-override:111.75%;descent-override:39.16%;line-gap-override:0%;}
@font-face{font-family:'Fraunces Fallback';src:local('Georgia');size-adjust:98.86%;ascent-override:98.93%;descent-override:25.8%;line-gap-override:0%;}
@font-face{font-family:'Fraunces Text Fallback';src:local('Georgia');size-adjust:102.2%;ascent-override:95.7%;descent-override:24.95%;line-gap-override:0%;}
@font-face{font-family:'Newsreader Fallback';src:local('Georgia');size-adjust:91.33%;ascent-override:80.48%;descent-override:29.02%;line-gap-override:0%;}

/* ---------- tokens ---------- */
:root{
  --paper:#F5EFE7;
  --paper-2:#EFE7DA;
  --ink:#1B1A16;
  --ink-soft:#4F4B42;
  --muted:#6B6559;                 /* the grey already used on the 404 page; 5.06:1 on paper */
  --line:rgba(27,26,22,.16);
  --accent:#8E5DB0;                /* display type and fills only (4.23:1 on paper) */
  --accent-ink:#653C8B;            /* the favicon violet; text links (7.15:1 on paper) */
  --accent-on-ink:#B48FD0;         /* text links on ink (6.45:1) */
  --error:#B42318;
  --done:#2F7A4D;

  --sans:'Jost','Jost Fallback','Helvetica Neue',Arial,sans-serif;
  --display:'Fraunces','Fraunces Fallback',Georgia,serif;
  --display-text:'Fraunces','Fraunces Text Fallback',Georgia,serif;   /* the light cut sets wider, so it has its own fallback */
  --serif:'Newsreader','Newsreader Fallback',Georgia,'Times New Roman',serif;

  --pad:clamp(min(1.25rem,5.2vw),5vw,4.5rem);
  --maxw:84rem;
  --gutter:clamp(1rem,2.4vw,2rem);
  --header-h:4rem;
  --measure:34rem;
  --section:clamp(4.5rem,3rem + 6vw,8.5rem);

  /* type scale: where a size has a rem floor it also has a viewport cap, so a reader's larger text setting
     enlarges the reading text fully and the display sizes only as far as the screen allows */
  --t-label:.8125rem;
  --t-small:.9375rem;
  --t-body:clamp(1.0625rem,.93rem + .53vw,1.1875rem);
  --t-lead:clamp(1.25rem,1.02rem + .9vw,1.5625rem);
  --t-statement:clamp(min(1.375rem,6.2vw),1rem + 1.6vw,2.125rem);
  --t-h2:clamp(min(1.625rem,7.4vw),.92rem + 3.14vw,3.75rem);
  --t-h1:clamp(min(2.375rem,10.5vw),1.3rem + 4vw,4.5rem);
  --t-thesis:clamp(min(2.25rem,10vw),1.2rem + 4.4vw,5rem);

  /* semantic colours: paper is the default surface */
  --bg:var(--paper);
  --fg:var(--ink);
  --fg-soft:var(--ink-soft);
  --fg-muted:var(--muted);
  --rule:var(--line);
  --rule-strong:var(--ink);
  --link:var(--accent-ink);
  --field:rgba(27,26,22,.04);
  --status-error:var(--error);

  --arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M0 6h20M15 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  color-scheme:light;
}
.band-2{--bg:var(--paper-2);}
.on-ink{
  --bg:var(--ink);
  --fg:var(--paper);
  --fg-soft:rgba(245,239,231,.8);
  --fg-muted:rgba(245,239,231,.62);
  --rule:rgba(245,239,231,.2);
  --rule-strong:rgba(245,239,231,.62);
  --link:var(--accent-on-ink);
  --field:rgba(245,239,231,.07);
  --status-error:#F0A39A;
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(var(--header-h) + 1.5rem)}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--serif);
  font-size:var(--t-body);
  line-height:1.58;
  font-optical-sizing:auto;
  font-kerning:normal;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-wrap:break-word;
}
h1,h2,h3,p,figure,ul,ol{margin:0}
img{display:block;max-width:100%;height:auto}
[hidden]{display:none!important}
::selection{background:var(--accent-ink);color:var(--paper)}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--link);outline-offset:3px;border-radius:1px}
h1,h2,h3{text-wrap:balance}
p,li{text-wrap:pretty}
b,strong{font-weight:600}

/* Arrows: none of the three typefaces contains an arrow glyph, so the character stays in the markup and a
   drawn arrow of the same stroke weight as Jost is painted over it. */
.arrow{
  display:inline-block;position:relative;width:1.2em;height:.62em;
  overflow:hidden;text-indent:-9em;white-space:nowrap;vertical-align:.02em;
  transition:transform .2s ease;
}
.arrow::before{
  content:"";position:absolute;inset:0;background:currentColor;
  -webkit-mask:var(--arrow) center/100% 100% no-repeat;mask:var(--arrow) center/100% 100% no-repeat;
}
.arrow-left::before{transform:scaleX(-1)}

/* Labels: the only place Jost appears outside the nameplate. */
.label,.index-tag,.loop-eyebrow,.loop-social-label,.post-meta,.byline,.policy-meta,.caption,.scroll-cue,.tagline,.foot-meta,.dir-num,.eyebrow{
  font-family:var(--sans);font-weight:500;font-size:var(--t-label);line-height:1.5;
  letter-spacing:.14em;text-transform:uppercase;color:var(--fg-muted);
  font-variant-numeric:tabular-nums;
}
.index-tag b,.eyebrow b,.byline b{font-weight:500;color:var(--fg)}

/* Buttons: the two real actions on the site and the nav call to action. */
.btn,.mail,.loop-btn,.btn-primary,.btn-secondary,.links a.cta{
  display:inline-flex;align-items:center;justify-content:center;gap:.7rem;
  min-height:3rem;padding:.25rem 1.5rem;border-radius:100px;border:1px solid var(--fg);
  font-family:var(--sans);font-weight:500;font-size:var(--t-label);letter-spacing:.14em;text-transform:uppercase;
  white-space:nowrap;cursor:pointer;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
/* The long calls to action wrap instead of pushing the page sideways when text is enlarged. */
.mail,.btn-primary,.btn-secondary{white-space:normal;text-align:center;max-width:100%;padding-block:.6rem;line-height:1.35}
/* Words that should stay together do, wherever the line has room for them. */
.nb{display:inline-block;max-width:100%}
a.name{white-space:nowrap}       /* a founder's name as a link: an inline-block would drop the underline */
a:hover > .arrow,.post-card:hover .arrow,.dir-item:hover .arrow{transform:translateX(.25em)}
a:hover > .arrow-left{transform:translateX(-.25em)}

/* ---------- layout ---------- */
.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--pad)}
.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter)}
.rail{grid-column:1 / 4}
.body{grid-column:4 / -1;display:grid;grid-template-columns:subgrid;align-content:start}
.body > *{grid-column:1 / -1}
.section{padding-block:var(--section);background:var(--bg);color:var(--fg)}
.section + .section:not(.band-2):not(.on-ink):not(.on-ink + .section):not(.band-2 + .section) > .wrap{position:relative}
.section + .section:not(.band-2):not(.on-ink):not(.on-ink + .section):not(.band-2 + .section) > .wrap::before{
  content:"";position:absolute;top:calc(-1 * var(--section));left:var(--pad);right:var(--pad);height:1px;background:var(--rule);
}
.on-ink + .on-ink{padding-top:0}
/* Hairlines inside the dark field align to the text column, not to the padded wrapper. */
.on-ink + .on-ink > .wrap{background:linear-gradient(var(--rule),var(--rule)) top center/calc(100% - 2 * var(--pad)) 1px no-repeat;padding-top:var(--section)}

@media (min-width:60.0625rem){
  .rail .index-tag,.rail.loop-eyebrow{position:sticky;top:calc(var(--header-h) + 1.75rem);display:block}
  .rail{padding-top:.7rem}
}
@media (max-width:60rem){
  .grid{grid-template-columns:minmax(0,1fr)}
  .rail,.body{grid-column:1}
  .body{display:block}
  .rail{margin-bottom:1.75rem}
}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;background:var(--paper);
  border-bottom:1px solid transparent;transition:border-color .2s ease;
}
.site-header.scrolled,.site-header.simple{border-bottom-color:var(--line)}
.header-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 1.5rem;min-height:var(--header-h)}
.brand{display:inline-flex;align-items:center;gap:.7rem;min-height:2.75rem;margin-right:auto;transition:opacity .2s ease,visibility .2s}
/* On the home page the nameplate is the brand. The header lockup returns once it has scrolled away. */
.js body:has(.nameplate) .site-header:not(.past-plate) .brand{opacity:0;visibility:hidden}
.brand .wm{font-family:var(--sans);font-weight:500;font-size:min(.875rem,4.2vw);letter-spacing:.2em;text-transform:uppercase;line-height:1}
.brand img{height:min(1.625rem,7.5vw);width:auto}
.links{display:flex;flex-wrap:wrap;align-items:center;gap:0 clamp(1.25rem,2.4vw,2.25rem)}
.links a,.home-link{
  font-family:var(--sans);font-weight:400;font-size:min(var(--t-label),4.1vw);letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-soft);display:inline-flex;align-items:center;gap:.6rem;min-height:2.75rem;
  transition:color .2s ease;
}
.links a:not(.cta){background:linear-gradient(var(--accent),var(--accent)) left calc(50% + .95em)/0 1px no-repeat;transition:color .2s ease,background-size .25s ease}
.links a:not(.cta):hover,.links a[aria-current]:not(.cta){color:var(--ink);background-size:100% 1px}
.home-link:hover{color:var(--ink)}
.links a.cta{min-height:2.5rem;padding-inline:1.15rem;color:var(--ink);border-color:var(--ink)}
.links a.cta:hover{background:var(--ink);color:var(--paper)}
.menu-toggle{display:none}

@media (max-width:52rem){
  /* Without scripts the links simply wrap under the brand. With scripts they collapse behind the toggle. */
  .header-inner{flex-wrap:wrap;row-gap:0}
  .js .header-inner{flex-wrap:nowrap;gap:.5rem}
  .brand img{height:min(1.375rem,7.5vw)}
  .links{flex-wrap:wrap;gap:0 1.25rem;padding-bottom:.5rem}
  .js .menu-toggle{
    display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;
    width:min(2.75rem,14vw);height:min(2.75rem,14vw);margin-right:max(-.6rem,-3vw);padding:0;border:0;background:none;color:var(--ink);cursor:pointer;order:2;
  }
  .menu-toggle span{display:block;width:min(1.5rem,8vw);height:1.5px;background:currentColor;transition:transform .2s ease,opacity .2s ease}
  .menu-toggle.open span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
  .menu-toggle.open span:nth-child(2){opacity:0}
  .menu-toggle.open span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}
  /* Closed: only the call to action stays in the bar. Open: every link, full screen. */
  .js .links{order:1;padding:0;gap:0}
  .js .links:not(.open) > a:not(.cta){display:none}
  .js .links:not(.open) > a.cta{min-height:min(2.25rem,12vw);padding-inline:min(.95rem,4.5vw);font-size:min(.75rem,3.8vw);letter-spacing:.12em}
  .js .links.open{
    display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:0;
    position:fixed;inset:var(--menu-top,var(--header-h)) 0 0 0;z-index:49;
    background:var(--paper);overflow-y:auto;overscroll-behavior:contain;
    padding:1rem var(--pad) max(2rem,env(safe-area-inset-bottom));
  }
  .js .links.open a:not(.cta){
    font-family:var(--display);font-weight:350;font-size:2.25rem;letter-spacing:-.015em;text-transform:none;
    color:var(--ink);min-height:0;padding:1.1rem 0;border-bottom:1px solid var(--line);background:none;
  }
  .js .links.open a.cta{margin-top:2rem;min-height:3.25rem;background:var(--ink);color:var(--paper)}
}
@media (max-width:22.4375rem){.js .links:not(.open){display:none}}
/* Where the header would take a large share of a small or heavily enlarged screen, it scrolls with the page. */
@media (max-width:20rem),(max-height:28rem){.site-header{position:static}}

/* ---------- masthead (home, first screen) ---------- */
.masthead{background:var(--paper)}
.masthead > .wrap{
  display:flex;flex-direction:column;
  padding-block:clamp(1.25rem,4.5vw,4.5rem) 0;
}
.nameplate-box{container-type:inline-size}
/* The nameplate is sized from its measured ink in em (Jost 400, tracking .06em) so that the D starts on the
   left edge of the column and the P ends on the right edge: D and L carry .08em of space on their left,
   Y .005em and P .04em on their right. Ink width: one line 8.6189em, DISCOVERY alone 5.6438em.
   One line fills the column from 46rem up; below that it stacks. */
.nameplate{
  font-family:var(--sans);font-weight:400;text-transform:uppercase;letter-spacing:.06em;line-height:.8;
  display:flex;flex-direction:column;align-items:flex-start;row-gap:.16em;
  font-size:calc(100cqi / 5.6438 * var(--plate-fit,.998));margin-left:-.08em;
}
.nameplate .line{display:block;white-space:nowrap;margin-right:-.06em}
.nameplate .inf{display:inline-block;height:.7em;width:auto;margin:0 .03em;vertical-align:baseline}
@container (min-width:46rem){
  .nameplate{flex-direction:row;column-gap:.42em;font-size:calc(100cqi / 8.6189 * var(--plate-fit,.998))}
}
/* The motto sits directly under the name, as in the company's own lockup; the rule closes the masthead. */
.tagline{
  margin-top:clamp(.8rem,1.9vw,1.6rem);padding-bottom:clamp(.85rem,1.7vw,1.35rem);border-bottom:1px solid var(--ink);
  font-size:.875rem;letter-spacing:.42em;color:var(--ink-soft);
}
@media (max-width:24rem){.tagline{letter-spacing:.3em}}
.masthead-foot{
  margin-top:clamp(2.25rem,5.5vw,4.75rem);
  display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;
}
.kicker{
  font-family:var(--display-text);font-weight:300;font-optical-sizing:none;font-variation-settings:'opsz' 16;
  font-size:var(--t-thesis);line-height:1.1;letter-spacing:-.022em;
  max-width:min(26ch,100%);text-wrap:balance;color:var(--ink);
}
.scroll-cue{display:flex;flex-direction:column;align-items:center;gap:.7rem;letter-spacing:.28em;font-size:.75rem;flex:none;padding-bottom:.35rem}
.scroll-cue .bar{display:block;width:1px;height:2.5rem;background:var(--muted)}
@media (max-width:40rem){
  .masthead-foot{flex-direction:column;align-items:flex-start;gap:1.5rem}
  .scroll-cue{flex-direction:row;align-items:center}
  .scroll-cue .bar{width:2.5rem;height:1px}
}

/* ---------- sections (home) ---------- */
h2{
  font-family:var(--display);font-weight:400;font-size:var(--t-h2);line-height:1.1;letter-spacing:-.015em;color:var(--fg);
}
h2 em{font-style:italic;font-weight:400;color:var(--accent)}
.premise h2{grid-column:4 / -1}
@media (max-width:60rem){.premise h2{grid-column:1}}
.prose{margin-top:clamp(1.75rem,3.5vw,3rem)}
.prose p{max-width:var(--measure);color:var(--fg-soft)}
.prose p + p{margin-top:1.25rem}
.prose .lead,.lead{font-size:var(--t-lead);line-height:1.48;color:var(--fg);max-width:40rem}
.prose .lead + p{margin-top:1.6rem}
.prose a[href],.policy a[href],.article-body .body > p a[href]{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
.prose a[href]:hover,.policy a[href]:hover,.article-body .body > p a[href]:hover{text-decoration-thickness:2px}

.steps{
  margin-top:clamp(3rem,6vw,5rem);border-top:1px solid var(--rule);
  display:grid;grid-template-columns:subgrid;
}
.step{
  grid-column:1 / -1;display:grid;grid-template-columns:subgrid;align-items:baseline;
  padding-block:clamp(1.5rem,2.6vw,2.1rem);border-bottom:1px solid var(--rule);
}
.step h3{grid-column:1 / span 3;font-family:var(--sans);font-weight:500;font-size:.9375rem;line-height:1.4;letter-spacing:.1em;text-transform:uppercase;color:var(--fg)}
.step p{grid-column:4 / -1;max-width:var(--measure);color:var(--fg)}

.statement,.pull{
  font-family:var(--display-text);font-weight:300;font-optical-sizing:none;font-variation-settings:'opsz' 16;
  font-size:var(--t-statement);line-height:1.28;letter-spacing:-.01em;
  color:var(--fg);max-width:27em;
}
@media (max-width:40rem){.statement,.pull{line-height:1.32}}
.statement b,.pull b{font-weight:500}

/* ---------- team ---------- */
.team .lead{margin-top:clamp(1.5rem,3vw,2.25rem)}
.photo{margin-top:clamp(2.5rem,5vw,4rem)}
.photo img{width:100%;background:#77797b}
.caption{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem;justify-content:flex-start;padding-top:.85rem;color:var(--ink-soft);letter-spacing:.12em}
.caption .names{color:var(--ink)}
@media (max-width:40rem){
  .photo{margin-inline:calc(-1 * var(--pad))}
  .photo .caption{padding-inline:var(--pad)}
  /* On a phone the label takes its own line and the names follow as one run, in the order of the photograph. */
  .caption{display:block}
  .caption > span:last-child{display:block;margin-top:.1rem}
}
/* The claim, then the record that supports it, on the same text axis as everything else. The violet rule is theirs. */
.pull{margin-top:clamp(3rem,6vw,5rem);border-left:2px solid var(--accent);padding-left:clamp(1rem,2vw,1.5rem)}
.proof{margin-top:clamp(1.75rem,3.5vw,2.75rem)}
.proof p:first-child{font-size:var(--t-lead);line-height:1.48;color:var(--fg);max-width:40rem}
.proof p + p{margin-top:1.6rem;color:var(--fg)}

/* ---------- closing: what's next, careers ---------- */
.next .emph{margin-top:clamp(1.5rem,3vw,2.25rem);font-size:var(--t-lead);line-height:1.42;color:var(--fg-soft);max-width:var(--measure)}
.cta-block{
  margin-top:clamp(2.75rem,5vw,4.25rem);padding-top:clamp(1.75rem,3vw,2.5rem);border-top:1px solid var(--rule);
  display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;flex-wrap:wrap;
}
.ask{font-family:var(--display);font-style:italic;font-weight:300;font-size:var(--t-statement);line-height:1.25;max-width:19ch;text-wrap:balance}
.mail{background:var(--accent);border-color:var(--accent);color:#fff;min-height:3.375rem;padding-inline:1.75rem}
.mail:hover{background:var(--paper);border-color:var(--paper);color:var(--ink)}
@media (max-width:40rem){
  .cta-block{flex-direction:column;align-items:stretch}
  .mail{width:100%}
}
@media (max-width:23rem){.mail{padding-inline:1.1rem;letter-spacing:.09em;gap:.5rem}}
.on-ink :focus-visible{outline-color:var(--paper)}

/* ---------- signup ("Stay in the loop") ---------- */
.loop-band .loop-card{row-gap:0}
.loop-card h2{font-size:var(--t-lead);line-height:1.2;letter-spacing:-.012em}
.loop-sub{margin-top:.6rem;color:var(--fg-soft);max-width:26rem}
.loop-copy{grid-column:4 / span 4}
.loop-action{grid-column:8 / -1}
.loop-form{margin:0}
/* The form is sent by their script. Without scripts it could only post to the page itself, so it is not shown. */
html:not(.js) .loop-form{display:none}
.loop-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
.loop-row{display:flex;gap:.6rem;align-items:stretch}
.loop-input{
  flex:1 1 auto;min-width:0;height:3rem;padding:0 1.15rem;
  background:var(--field);border:1px solid var(--rule-strong);border-radius:100px;
  font-family:var(--serif);font-size:1.0625rem;color:var(--fg);
  transition:border-color .2s ease,background-color .2s ease;
}
.loop-input::placeholder{color:var(--fg-soft);opacity:1}
.loop-input:focus-visible{outline:2px solid var(--link);outline-offset:2px;border-color:var(--fg)}
.loop-input[aria-invalid="true"]{border-color:var(--status-error)}
.loop-input:read-only{opacity:.75;cursor:default}
.loop-btn{flex:none;min-width:8.25rem;background:var(--fg);border-color:var(--fg);color:var(--bg)}
.loop-btn:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.loop-btn:disabled{cursor:default}
.loop-btn.is-done,.loop-btn.is-done:hover{background:var(--done);border-color:var(--done);color:var(--paper);opacity:1}
.loop-check{display:block;width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.loop-check path{stroke-dasharray:22;stroke-dashoffset:22;animation:loop-check-draw .32s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes loop-check-draw{to{stroke-dashoffset:0}}
.loop-status{margin:.7rem 0 0;font-size:1rem;line-height:1.45;color:var(--fg-soft)}
.loop-status:empty{display:none}
.loop-status.is-error{color:var(--status-error)}
.loop-status.is-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.loop-social-row{margin-top:1.5rem;padding-top:.75rem;border-top:1px solid var(--rule);display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.loop-social-icons,.foot-social{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.125rem;margin-right:max(-.8rem,-3.5vw)}
.loop-social-icons a,.foot-social a{display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;color:var(--fg-soft);border-radius:100px;transition:color .2s ease}
.loop-social-icons a:hover,.foot-social a:hover{color:var(--fg)}
.loop-social-icons svg,.foot-social svg{display:block;width:1.0625rem;height:1.0625rem;fill:currentColor;flex:none}
@media (max-width:60rem){
  .loop-copy,.loop-action{grid-column:1}
  .loop-action{margin-top:1.75rem;max-width:32rem}
}
/* On a phone the field and the button each take the full width. */
@media (max-width:30rem){
  .loop-row{flex-direction:column}
  .loop-btn{width:100%;min-width:0}
}

/* ---------- footer ---------- */
.site-footer{background:var(--ink);color:var(--fg-soft)}
.site-footer > .wrap{padding-block:clamp(2.25rem,4vw,3.25rem) clamp(2.5rem,4vw,3.5rem)}
.site-footer.joined > .wrap{background:linear-gradient(var(--rule),var(--rule)) top center/calc(100% - 2 * var(--pad)) 1px no-repeat}
.foot-inner{row-gap:clamp(1.5rem,3vw,2.25rem);align-items:center}
.foot-brand{grid-column:1 / 4;display:inline-flex;align-items:center;gap:.8rem;min-height:2.75rem;justify-self:start}
.foot-brand img{height:min(1.625rem,7.5vw);width:auto}
.foot-brand .wm{font-family:var(--sans);font-weight:500;font-size:min(.875rem,4.2vw);letter-spacing:.2em;text-transform:uppercase;color:var(--paper);line-height:1}
.foot-tagline{grid-column:4 / 8;grid-row:1}
.foot-links{grid-column:4 / 10;grid-row:2;display:flex;flex-wrap:wrap;gap:.25rem 1.75rem;align-items:center}
.foot-links .foot-meta,.foot-end .foot-meta{display:inline-flex;align-items:center;min-height:2.75rem}
.foot-mail{color:var(--fg-soft);transition:color .2s ease;min-width:0;overflow-wrap:anywhere}
.foot-mail[href^="mailto:"]{font-family:var(--serif);font-weight:400;font-size:1.0625rem;letter-spacing:0;text-transform:none}
a.foot-mail:hover{color:var(--paper)}
.foot-end{display:contents}
.foot-end > .foot-meta{grid-column:8 / -1;grid-row:1;justify-self:end}
.foot-social{grid-column:1 / 4;grid-row:2;justify-self:start;margin-right:0;margin-left:max(-.85rem,-3.5vw)}
@media (max-width:60rem){
  .foot-brand,.foot-tagline,.foot-links,.foot-end > .foot-meta,.foot-social{grid-column:1;grid-row:auto;justify-self:start}
  .foot-inner{row-gap:.5rem}
  .foot-links > :first-child{flex-basis:100%}
}

/* ---------- blog index ---------- */
.page-head{padding-block:clamp(2.75rem,6vw,5rem) clamp(1.25rem,2.4vw,2rem)}
.page-head-row{display:flex;align-items:baseline;justify-content:space-between;gap:1.5rem}
.page-head h1,.article-head h1,.policy h1,.err-head h1{
  font-family:var(--display);font-weight:400;font-size:var(--t-h1);line-height:1.05;letter-spacing:-.015em;
}
.page-head h1{font-size:var(--t-h2);line-height:1.1}
.page-head h1 .index-tag{font:inherit;letter-spacing:inherit;text-transform:none;color:inherit}
.rss-link{display:inline-flex;align-items:center;gap:.5rem;min-height:2.75rem;font-family:var(--sans);font-weight:500;font-size:var(--t-label);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);transition:color .2s ease}
.rss-link:hover{color:var(--accent-ink)}
.rss-link svg{display:block;width:.875rem;height:.875rem;fill:currentColor;flex:none}
.post-list{padding-bottom:var(--section)}
.post-card{padding-block:clamp(1.75rem,3.5vw,2.75rem);border-top:1px solid var(--ink);align-items:baseline}
.post-card + .post-card{border-top-color:var(--line)}
.post-card:last-child{border-bottom:1px solid var(--line)}
.post-meta{display:flex;flex-direction:column;gap:.15rem}
.post-meta span:last-child{color:var(--ink)}
.post-card h2{font-size:clamp(1.75rem,1.3rem + 2vw,2.875rem);line-height:1.1;transition:color .2s ease}
.post-card:hover h2{color:var(--accent-ink)}
.post-card p{margin-top:.9rem;max-width:var(--measure);color:var(--ink-soft)}
.more{display:inline-flex;align-items:center;gap:.6rem;margin-top:1.25rem;font-family:var(--sans);font-weight:500;font-size:var(--t-label);letter-spacing:.14em;text-transform:uppercase}
@media (max-width:60rem){.post-meta{flex-direction:row;gap:1.25rem}}

/* ---------- article ---------- */
.article-head{padding-block:clamp(2.5rem,6vw,5rem) clamp(2rem,4vw,3rem)}
.article-head h1{max-width:15em}
.back-link{display:inline-flex;align-items:center;gap:.6rem;min-height:2.75rem;font-family:var(--sans);font-weight:500;font-size:var(--t-label);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);transition:color .2s ease;justify-self:start;align-self:start}
.back-link:hover{color:var(--ink)}
.byline{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem;margin-top:clamp(1.5rem,3vw,2.25rem);padding-top:.95rem;border-top:1px solid var(--ink)}
.article-body{padding-bottom:var(--section)}
.article-body .body > *{grid-column:1 / span 6}
.article-body .body > p{max-width:var(--measure);color:var(--ink)}
.article-body .body > p + p{margin-top:1.4rem}
.article-body .body > .sign{font-family:var(--display);font-style:italic;font-weight:400;font-size:var(--t-lead);margin-top:2.25rem}
.article-body .body > figure{grid-column:1 / -1;margin-block:clamp(2rem,4vw,3rem)}
.article-body .body > figure + figure{margin-top:0}
.article-body .body > figure.figure-card{grid-column:1 / -1;max-width:var(--measure)}
.article-body figure img{width:100%;border:1px solid var(--line);background:var(--paper-2)}
.article-body .loop-card{
  margin-top:clamp(3rem,6vw,4.5rem);padding:min(clamp(1.5rem,3vw,2.25rem),6.5vw);max-width:var(--measure);
  --bg:var(--paper-2);background:var(--paper-2);border-top:1px solid var(--ink);
}
.article-body .loop-card .loop-eyebrow{display:block;margin-bottom:.6rem}
.article-body .loop-card .loop-form{margin-top:1.25rem}
@media (max-width:30rem){
  .article-body .loop-social-row{flex-direction:column;align-items:flex-start;gap:0}
  .article-body .loop-social-icons{margin-right:0;margin-left:max(-.85rem,-3.5vw)}
}
.article-share{margin-top:2.5rem;max-width:var(--measure)}
.article-share h2{font-family:var(--sans);font-weight:500;font-size:var(--t-label);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);line-height:1.5}
.share-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.6rem}
.share-actions a,.share-actions button{
  display:inline-flex;align-items:center;justify-content:center;min-width:2.75rem;height:2.75rem;padding:0 1rem;
  border:1px solid var(--line);border-radius:100px;background:transparent;color:var(--ink);
  font-family:var(--sans);font-weight:500;font-size:var(--t-label);letter-spacing:.14em;text-transform:uppercase;cursor:pointer;
  transition:border-color .2s ease,color .2s ease;
}
.share-actions a{padding:0}
.share-actions a:hover,.share-actions button:hover{border-color:var(--accent-ink);color:var(--accent-ink)}
.share-actions svg{display:block;width:1.0625rem;height:1.0625rem;fill:currentColor;flex:none}
.share-status{margin-top:.75rem;font-size:1rem;color:var(--ink-soft)}
.share-status:empty{display:none}
.share-copy-fallback{width:100%;margin-top:.75rem;padding:.75rem;background:var(--paper);color:var(--ink);border:1px solid var(--line);font:400 1rem var(--serif)}
.article-foot{margin-top:clamp(2.5rem,5vw,3.5rem);padding-top:1rem;border-top:1px solid var(--line);max-width:var(--measure)}
@media (max-width:60rem){
  .article-body .body > *{max-width:var(--measure)}
  .article-body .body > figure:not(.figure-card){max-width:none}
}

/* ---------- floating signup on articles (behaviour comes from social.js) ---------- */
/* Centred by its margins, not by left:50%, so it may use the whole width of a small screen before its label wraps. */
.loop-float{
  position:fixed;left:min(.75rem,3vw);right:min(.75rem,3vw);bottom:max(1rem,env(safe-area-inset-bottom));z-index:45;
  width:fit-content;max-width:calc(100vw - 2 * min(.75rem,3vw));margin-inline:auto;
  transform:translateY(1.5rem);opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .25s ease,transform .25s ease,visibility 0s linear .25s;
}
.loop-float.is-visible{opacity:calc(1 - var(--dock-t,0));visibility:visible;transform:none;pointer-events:auto;transition:opacity .25s ease,transform .25s ease,visibility 0s}
.loop-float.is-visible.is-docking{transition:none}
.loop-float.is-visible.is-expanded{opacity:1}
.loop-pill{display:inline-flex;align-items:center;gap:.25rem;max-width:100%;padding:.3rem .3rem .3rem min(1.1rem,4.4vw);background:var(--ink);color:var(--paper);border-radius:min(100px,8vw);box-shadow:0 6px 24px rgba(27,26,22,.22)}
.loop-pill-trigger{display:inline-flex;align-items:center;gap:min(.8rem,3vw);min-height:min(2.5rem,11vw);min-width:0;padding:0;border:0;background:transparent;color:inherit;font-family:var(--sans);font-weight:500;font-size:min(var(--t-label),3.35vw);line-height:1.25;letter-spacing:.14em;text-transform:uppercase;text-align:left;cursor:pointer}
.loop-pill-cta{display:inline-flex;align-items:center;justify-content:center;flex:none;height:min(2rem,9vw);padding:0 min(.9rem,3.4vw);border-radius:100px;background:var(--paper);color:var(--ink);transition:background-color .2s ease,color .2s ease}
.loop-pill-trigger:hover .loop-pill-cta{background:var(--accent);color:#fff}
.loop-float-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:min(2.5rem,11vw);height:min(2.5rem,11vw);border:0;border-radius:100px;background:transparent;color:inherit;opacity:.7;font-size:min(1.25rem,5.5vw);line-height:1;cursor:pointer;transition:opacity .2s ease}
.loop-float-close:hover{opacity:1}
.loop-float-box{
  --bg:var(--ink);--fg:var(--paper);--fg-soft:rgba(245,239,231,.8);--fg-muted:rgba(245,239,231,.62);
  --rule:rgba(245,239,231,.2);--rule-strong:rgba(245,239,231,.62);--link:var(--accent-on-ink);--field:rgba(245,239,231,.07);--status-error:#F0A39A;
  width:min(27.5rem,calc(100vw - 2 * min(.75rem,3vw)));padding:1.1rem min(1.25rem,5vw) 1rem;background:var(--ink);color:var(--paper);
  border-radius:.75rem;box-shadow:0 10px 36px rgba(27,26,22,.28);
  max-height:calc(100dvh - 2rem);overflow-y:auto;overscroll-behavior:contain;
}
.loop-float-box :focus-visible,.loop-pill :focus-visible{outline-color:var(--paper)}
.loop-float-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.loop-float-copy{margin:.1rem 0 .9rem;color:var(--fg-soft);font-size:1.0625rem}
.loop-float-box .loop-social-row{margin-top:1rem}
.loop-float.is-expanded .loop-pill{display:none}
.loop-float:not(.is-expanded) .loop-float-box{display:none}

/* ---------- policy pages ---------- */
.policy-main{padding-block:clamp(2.5rem,6vw,5rem) var(--section)}
.policy h1{font-size:clamp(min(1.625rem,7.4vw),1.05rem + 1.9vw,2.75rem);line-height:1.1}
.policy-meta{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem;margin-top:clamp(1.5rem,3vw,2.25rem);padding-top:.95rem;border-top:1px solid var(--ink)}
.policy-meta strong{font-weight:500;color:var(--ink)}
.policy-meta em{font-style:normal}
.policy > *{grid-column:1 / span 6;max-width:var(--measure)}
.policy > h1{grid-column:1 / -1;max-width:none}
.policy > .policy-meta{grid-column:1 / -1;max-width:none;margin-bottom:clamp(2rem,4vw,3rem);color:var(--muted)}
.policy h2{font-family:var(--display);font-weight:400;font-size:var(--t-lead);line-height:1.2;letter-spacing:-.012em;margin-top:2.75rem;margin-bottom:.9rem}
.policy p,.policy ul{color:var(--ink)}
.policy p + p,.policy p + ul,.policy ul + p{margin-top:1.1rem}
.policy ul{padding-left:1.25rem}
.policy li + li{margin-top:.5rem}
.policy li::marker{color:var(--muted)}

/* ---------- 404 ---------- */
.err-main{padding-block:clamp(3rem,7vw,6rem) var(--section)}
.err-head h1{margin-top:1.25rem;max-width:12em}
.err-head p{margin-top:1.5rem;font-size:var(--t-lead);line-height:1.42;color:var(--ink-soft);max-width:var(--measure)}
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:2.25rem}
.btn-primary{background:var(--ink);color:var(--paper)}
.btn-primary:hover{background:var(--accent-ink);border-color:var(--accent-ink)}
.btn-secondary{color:var(--ink)}
.btn-secondary:hover{background:var(--ink);color:var(--paper)}
.directory{margin-top:clamp(3rem,6vw,5rem);border-top:1px solid var(--ink);display:grid;grid-template-columns:subgrid}
.dir-item{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;align-items:baseline;padding-block:1.35rem;border-bottom:1px solid var(--line)}
.dir-num{grid-column:1 / span 1}
.dir-title{grid-column:2 / span 3;display:inline-flex;align-items:center;gap:.7rem;font-family:var(--display);font-weight:400;font-size:var(--t-lead);line-height:1.15;transition:color .2s ease}
.dir-item:hover .dir-title{color:var(--accent-ink)}
.dir-desc{grid-column:5 / -1;color:var(--ink-soft)}
@media (max-width:60rem){
  .directory{display:block}
  .dir-item{display:grid;grid-template-columns:2.5rem minmax(0,1fr);column-gap:.5rem}
  .dir-num{grid-column:1}.dir-title{grid-column:2}.dir-desc{grid-column:2;margin-top:.25rem}
  .step{display:block}
  .step p{margin-top:.6rem}
}

/* ---------- page-to-page continuity and motion preferences ---------- */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.16s}
@media (prefers-reduced-motion:no-preference){html.smooth{scroll-behavior:smooth}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .loop-check path{stroke-dashoffset:0}
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}
@media (forced-colors:active){
  .arrow::before{background:CanvasText}
  .menu-toggle span,.scroll-cue .bar{background:CanvasText}
}

/* ---------- print: the page is set like a paper, so it prints like one ---------- */
@media print{
  :root{--pad:0}
  body{background:#fff;color:#000;font-size:11pt}
  .site-header{position:static;border:0}
  .links,.menu-toggle,.home-link,.scroll-cue,.loop-band,.loop-card,.loop-float,.article-share,.article-foot,.foot-social,.mail .arrow{display:none!important}
  .masthead > .wrap{min-height:0}
  .nameplate{--plate-fit:.95;margin-left:0}
  .masthead-foot{padding-top:2rem}
  .section,.site-footer{background:#fff!important;color:#000!important;padding-block:1.5rem;
    --fg:#000;--fg-soft:#222;--fg-muted:#444;--rule:#bbb;--rule-strong:#000;--link:#000}
  .site-footer > .wrap{border-top:1px solid #000}
  .foot-brand .wm{color:#000}
  .mail{background:none;color:#000;border-color:#000}
  h2,h3,.statement,.pull{break-after:avoid}
  figure,.step,.post-card{break-inside:avoid}
  .prose a[href^="http"]::after,.article-body p a[href^="http"]::after{content:" (" attr(href) ")";font-size:.85em;word-break:break-all}
}

/* concept preview only */
.concept-note,.concept-foot{background:var(--ink);color:rgba(245,239,231,.9);font-family:var(--serif);font-size:clamp(.9375rem,.85rem + .3vw,1rem);line-height:1.4;text-align:center;padding:.5rem var(--pad)}
/* The paper-coloured edge keeps the notice apart from the page's own dark sections when they pass under it. */
.concept-note{position:sticky;top:0;z-index:60;border-bottom:2px solid var(--paper)}
.concept-note strong{font-weight:600;color:var(--paper)}
.concept-note p,.concept-foot p{max-width:none;margin:0;text-wrap:balance}
.concept-foot{border-top:1px solid rgba(245,239,231,.2);padding-block:1rem 1.25rem;color:rgba(245,239,231,.8)}
.concept-foot p{max-width:52rem;margin-inline:auto}
.concept-note a,.concept-foot a{color:var(--paper);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
.concept-note :focus-visible,.concept-foot :focus-visible{outline-color:var(--paper)}
/* The page's own sticky pieces sit below the pinned notice; its height comes from the script. Without scripts
   the header simply scrolls with the page. */
.js .site-header{top:var(--note-h,0px)}
html:not(.js) .site-header{position:static}
html{scroll-padding-top:calc(var(--header-h) + var(--note-h,0px) + 1.5rem)}
@media (min-width:60.0625rem){.rail .index-tag,.rail.loop-eyebrow{top:calc(var(--header-h) + var(--note-h,0px) + 1.75rem)}}
.concept-form-note{margin:.6rem 0 0;font-size:1rem;line-height:1.45;color:var(--fg-soft)}
.concept-policy{margin-bottom:clamp(2rem,4vw,3rem);padding:1rem 1.25rem;border:1px solid var(--ink);color:var(--ink)}
.policy > .policy-meta:has(+ .concept-policy){margin-bottom:1.5rem}
.concept-policy a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
@media print{.concept-note,.concept-foot{position:static;background:none;color:#000;border-color:#000}.concept-note a,.concept-foot a{color:#000}}
