/* The introduction deck: the same page a prospect reads on the site and the PDF we send by email.
   On screen it is a run of ruled sections; in print each section is one landscape slide. Everything
   else comes from site.css and the Atlas layer, so the deck cannot drift away from the site's look. */

/* The slide number sits opposite the section tag, so a reader always knows how far in they are. */
.slide-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-4);margin-bottom:var(--space-5)}
.slide-head .tag{margin-bottom:0}
.slide-n{font:400 .75rem var(--mono);letter-spacing:.22em;color:var(--ink-muted);flex:none}
.slide h2{max-width:26ch}
.slide .lead{max-width:64ch}

/* The second action beside the cover's single filled button: the PDF, for the person who wants it
   in their inbox rather than a browser tab. */
.cta-line .deck-download{display:inline-flex;align-items:center;gap:var(--space-2);min-height:44px;padding:10px 18px;border:1px solid var(--ink);color:var(--ink);font:400 .78rem var(--mono);letter-spacing:.08em;text-transform:uppercase;text-decoration:none}
.cta-line .deck-download:hover{background:var(--color-accent-soft)}
.deck-download .ext{border:1px solid currentColor;padding:0 4px;font-size:.9em;letter-spacing:.04em}

/* The founders slide carries no portraits: the sentence is the introduction, and a placeholder
   frame would look like a missing image in a document sent to a stranger. */
.slide .people{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:var(--space-6)}
.slide .person{grid-template-columns:minmax(0,1fr)}

/* A cover-only masthead and contact line that exist for the printed page. The site header already
   carries the wordmark, so showing it twice on screen would be noise. */
.print-only{display:none}

/* The deck on screen: one slide at a time, the way a talk runs. Without the script, or while a
   review tour is open, every slide stays on the page and the deck reads as a long document. */
.deck.live [data-slide]{display:none}
.deck.live [data-slide][data-active]{display:flex;flex-direction:column;justify-content:flex-start;min-height:calc(100svh - 8rem);padding-block:4rem 6.5rem;animation:deck-in .3s ease-out both}
.deck.live [data-slide][data-active]>*{flex:none}
/* Four short blocks fit one row at desktop width, so a four-item slide does not leave a hole. */
.slide .values{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
@keyframes deck-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.deck.live [data-slide][data-active]{animation:none}}
/* A deck is the screen, not a document: the site footer would sit under the last slide and scroll
   into view behind the controls, so it steps out while the deck runs. */
body.deck-running .foot{display:none}
body.deck-running .sheet{padding-bottom:0}
/* On a phone a slide can run past the viewport; it grows rather than clipping. */
.deck.live [data-slide][data-active]{min-height:calc(100svh - 8rem)}

.deck-bar{position:fixed;left:50%;bottom:max(var(--space-5),env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:none;align-items:center;gap:0;padding:0;background:var(--panel);border:1px solid var(--ink);z-index:60}
.deck.live~.deck-bar:not([hidden]){display:flex}
.deck-step{font:400 .7rem var(--mono);letter-spacing:.1em;text-transform:uppercase;background:none;border:0;color:var(--ink);padding:12px 16px;cursor:pointer;min-height:44px}
.deck-step:hover:not(:disabled){background:var(--color-accent-soft)}
.deck-step:disabled{opacity:.35;cursor:default}
.deck-count{font:400 .72rem var(--mono);letter-spacing:.08em;color:var(--ink-muted);margin:0;padding:0 var(--space-3);white-space:nowrap;border-inline:1px solid var(--line-soft);min-height:44px;display:flex;align-items:center}
.deck-count b{color:var(--ink);font-weight:500;margin-right:.35em}
.deck-track{display:none;position:fixed;left:0;right:0;bottom:0;height:3px;background:var(--line-soft);z-index:59}
.deck.live~.deck-track{display:block}
.deck-track span{display:block;height:100%;background:var(--sand-text);transform:scaleX(.08);transform-origin:0 50%;transition:transform .3s ease-out}
@media (prefers-reduced-motion:reduce){.deck-track span{transition:none}}
@media (max-width:560px){.deck-bar{left:var(--space-3);right:var(--space-3);transform:none;justify-content:space-between}}
.deck-mast{align-items:flex-end}
.deck-mast .mark{width:.62em;height:.7em;margin-right:.04em;font-size:1.5rem}
.deck-mast span{font:600 1.5rem/1 var(--head);letter-spacing:-.02em}
.deck-cover .note{max-width:70ch}
.deck-contact{font:400 .8rem var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-muted)}
.page-head .deck-contact{border-left:0;padding-left:0}
.deck-foot{font:400 .8rem var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-muted)}
.deck-cta{font:400 .8rem var(--mono);letter-spacing:.1em;text-transform:uppercase;border-top:1px solid var(--line-soft);padding-top:3mm;margin-top:7mm}

@media print{
  /* A4 landscape, one slide per page. The margin is zero and the sheet carries the inset, so the
     paper colour reaches the edge of the page instead of sitting in a white frame. */
  @page{size:A4 landscape;margin:0}
  /* A dark browser must not print a dark deck: the paper, ink and accent are re-declared for the
     page itself. The two selectors cover a scheme set by the system and one set by the switch. */
  :root[data-theme="avero"],:root[data-theme="avero"][data-color-scheme="dark"]{
    --paper:#EFE8DF;--paper-2:#E6DDCF;--panel:#F6F1EA;
    --ink:#1A1A1A;--ink-muted:#5C574F;--ink-faint:#B9B09D;
    --hairline:#1A1A1A;--line-soft:#D4CDBB;
    --color-accent:#6B5A3C;--color-accent-hover:#54462E;
    --color-accent-contrast:#EFE8DF;--color-accent-soft:#E3D8C4;
    --sand:#988667;--sand-text:#857352;color-scheme:light;
  }
  html,body{background:#EFE8DF;margin:0}
  body{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  /* The site's chrome belongs to the website, not to the document in the reader's hand. */
  .top,.foot,.skip,.deck-download,.go,.deck-cover .note{display:none!important}
  .sheet{max-width:none;margin:0;padding:13mm 15mm 26mm}
  main{padding:0}
  .page-head{padding:0;margin:0}
  /* Each slide is one page tall. The copy starts at the same height on every page, so the running
     head does not jump as the reader moves through; 182mm clears the 184mm content box. */
  .part,.slide{border:0;padding:0;margin:0;break-after:page;page-break-after:always;break-inside:avoid}
  /* Every slide prints, whatever the screen happens to be showing. */
  .deck.live [data-slide]{display:block!important;min-height:0!important;animation:none!important}
  .deck-bar,.deck-track{display:none!important}
  .slide{padding:10mm 0 6mm}
  .slide:last-child{break-after:auto;page-break-after:auto}
  .print-only{display:block}
  .deck-mast{display:flex}
  /* One running foot for every page, fixed so it lands at the bottom of the paper whatever a slide's
     own height is. It carries the contact, so the cover does not need a second one. */
  .deck-foot{position:fixed;left:15mm;right:15mm;bottom:10mm;display:flex;justify-content:space-between;gap:var(--space-4);border-top:1px solid var(--line-soft);padding-top:2.5mm;font:400 .58rem var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--ink-muted)}
  /* The printed cover: the wordmark at the top, the headline centred in the page below it. */
  .deck-cover{min-height:178mm;display:flex;flex-direction:column;justify-content:flex-start;break-after:page;page-break-after:always}
  .deck-cover-mid{margin-block:auto}
  .deck-cover .deck-mast{margin-bottom:0}
  .deck-cover .deck-contact{margin-top:0}
  .deck-cover h1{font-size:40pt;line-height:1.04;max-width:20ch}
  .deck-cover p{font-size:14pt;max-width:44ch}
  .slide-head{margin-bottom:6mm;border-bottom:1px solid var(--line-soft);padding-bottom:3mm}
  .slide h2{font-size:25pt;line-height:1.1;max-width:26ch;margin-bottom:5mm}
  .slide .lead{font-size:12.5pt;line-height:1.5;max-width:66ch;margin-bottom:7mm}
  .slide .note{font-size:9.5pt;margin-top:6mm;max-width:80ch}
  .values{gap:5mm 7mm;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr))}
  .values b{font-size:12.5pt}
  .values p{font-size:10.5pt;line-height:1.45}
  .needs li{padding:3mm 0}
  .needs b{font-size:12pt}
  .needs p{font-size:10.5pt}
  .svc{gap:3mm 8mm}
  .service h3{font-size:12pt}
  .service p{font-size:9.5pt;line-height:1.4}
  .start-cards{gap:5mm}
  .start-cards li{padding:5mm;border:1px solid var(--line-soft)}
  .start-price{font-size:18pt}
  .start-cards p{font-size:9pt;line-height:1.4}
  .slide .people b,.slide .person h3{font-size:12pt}
  .slide .person p{font-size:9.5pt;line-height:1.45}
  .slide .person small{font-size:8.5pt}
  a{color:var(--ink);text-decoration:none}
}
