/*
Theme Name: Labinhood
Theme URI: https://labinhood.com
Author: Labinhood
Description: The labinhood.com block theme. Tokens live in theme.json (Appearance → Editor → Styles); this file holds the element rules and the few reusable classes. No builder, no framework.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.3.23
License: GNU General Public License v2 or later
Text Domain: labinhood
*/

/* ============================================================================
   HOW THIS STYLESHEET IS ORGANISED (read this first)

   0. Tokens come from theme.json: colours (--wp--preset--color--ink/accent/sand…), the type scale
      (--wp--preset--font-size--…), the spacing scale (--wp--preset--spacing--20…80). Nothing in this file
      names a colour or a pixel size that theme.json could hold.
   1. Elements — h1…h4, p, a, buttons, lists, quotes, code, images, tables. An editor who writes an H2 gets the site's H2.
   2. Layout classes — .band (the coloured full-width sections and their wave edges), .section (the vertical rhythm
      inside a band), .measure (a comfortable reading width).
   3. Components — .hero, .icon-row, .figure, .post-card, .site-header, .site-footer, .pull-line. Each is one class on
      one block ("Additional CSS class(es)" in the editor) and its inner elements; no per-page copies.
   4. Breakpoints — three, content-driven: up to 767px (phone), 768–980px (tablet), 981px and up (desktop). They are
      the same three as the old site so the band edges and the text columns land where they used to.
   Units: rem for type and spacing (the scale), em for a gap that follows its own text (icon-to-title, button
   padding), % / fr / clamp() for layout, px only for 1–3px borders and shadows.
   ========================================================================== */

/* ---- 1. Elements ---------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }               /* the hero penguins overhang the right edge on desktop by design */
h2, h3, h4 { text-wrap: balance; }       /* h1 wraps as typed: the hero's line breaks are part of the design */
h1, h2 { text-transform: uppercase; }       /* the site's voice: page and section titles in caps (h3/h4 stay as typed; add .caps when wanted) */
h1 { color: var(--wp--preset--color--accent); }   /* a page title is orange (About, What We Build, The Founder, Blog home); the hero's H1 is the one exception, below */
.hero h1 { color: rgb(51, 51, 51); }   /* the old hero's #333 for «innovation grounded in» (measured 2026-11-30); the ink token stays for every other heading. The fluid page-title size: 34px on a phone, 60px on a desktop */
.hero h1 mark, .section > h2 mark { font-weight: 700; }   /* the orange line of a title is bold on the 600 heading («AI-driven», «humanity», «to building collective intelligence»), as the old site (measured 2026-11-30) */
p { margin-block: 0 0.9em; }
p:last-child { margin-block-end: 0; }
a { text-underline-offset: 0.15em; }
.entry-content p a:hover, .entry-content li a:hover, .post-body a:hover, .site-footer a:hover, .entry-content p a:focus-visible, .post-body a:focus-visible { text-decoration: underline; }   /* a link in copy shows itself by more than colour */
a:not(.wp-block-button__link):hover, a:not(.wp-block-button__link):focus-visible { color: var(--wp--preset--color--ink); }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
strong { font-weight: 700; }
.caps { text-transform: uppercase; }
img { height: auto; max-width: 100%; }
figure { margin: 0; }
hr, .wp-block-separator { border: 0; border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 15%, transparent); margin-block: var(--wp--preset--spacing--40); }
blockquote { border-inline-start: 3px solid var(--wp--preset--color--accent); padding-inline-start: 1em; margin-inline: 0; font-style: italic; }
pre, code { font-family: var(--wp--preset--font-family--mono); font-size: 0.9em; }
pre { background: color-mix(in srgb, var(--wp--preset--color--ink) 6%, transparent); padding: 1em 1.25em; border-radius: 4px; overflow-x: auto; }
p > code, li > code { background: color-mix(in srgb, var(--wp--preset--color--ink) 8%, transparent); padding: 0.1em 0.35em; border-radius: 3px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; padding: 0.5em 0.75em; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 15%, transparent); }
ul, ol { padding-inline-start: 1.25em; }
li { margin-block-end: 0.25em; }

/* Buttons: one look everywhere (block buttons, the comment form, search). Hover inverts to ink — the old "Read more" rule,
   now the site's. The gap below a button follows its own size (em). */
.wp-block-button__link, .wp-element-button, .post-card .wp-block-read-more, button, input[type="submit"] {
  display: inline-block; background: var(--wp--preset--color--sand); color: var(--wp--preset--color--ink);
  font-family: inherit; font-weight: 600; font-size: var(--wp--preset--font-size--large); text-transform: uppercase; letter-spacing: 0.025em;
  padding: 0.45em 1.6em 0.35em; border: 0; border-radius: 3px; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.wp-block-button__link:hover, .wp-element-button:hover, .post-card .wp-block-read-more:hover, button:hover, input[type="submit"]:hover,
.wp-block-button__link:focus-visible, .wp-element-button:focus-visible { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); text-decoration: none; }   /* a link styled as a button only changes colours: no underline from the running-text link rule (2 Dec) */
.wp-block-button__link:active, .wp-element-button:active, .post-card .wp-block-read-more:active, .post-card .wp-block-read-more:focus-visible { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .wp-block-button__link, .wp-element-button, .post-card .wp-block-read-more, button { transition: none; } }

/* ---- 2. Layout ------------------------------------------------------------ */
/* A band is a full-width section with a background. The wave edges are in the images themselves (the brand's wave
   artwork), so a band is exactly as tall as its content plus its padding — the edges land where the content ends. */
/* The wave artwork is drawn edge to edge (1920 wide): it is stretched to the band's box so BOTH edges always show, whatever
   the band's height — the waves are soft enough that the stretch is invisible. */
.band { background-repeat: no-repeat; background-size: 100% 100%; background-position: center; padding-block: var(--wp--preset--spacing--70); }
/* Bands touch: the editor's block gap (24px) never opens a white strip between two bands or above the first one. */
.entry-content > .band, .wp-block-post-content > .band, main > .band, .entry-content > .band:first-child { margin-block: 0; }
main.wp-block-group { margin-block: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }   /* header · main · footer touch too */
.band--top    { background-image: url(assets/img/band-top.png);    padding-block: var(--header-clearance) var(--wp--preset--spacing--70); } /* the wave that opens every page; the header sits inside its top */
.band--peach  { background-image: url(assets/img/band-peach.png); }
.band--soft   { background-image: url(assets/img/band-soft.png); }
.band--lines  { background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.7) 98%), url(assets/img/band-lines.jpg); background-size: cover, cover; }   /* a texture, not an edge: cover — under the old site's white veil (0.8 → 0.7, measured 2026-11-30), so the lines stay a hint */
.band--footer { background-image: url(assets/img/band-footer.png); padding-block: var(--wp--preset--spacing--80) var(--wp--preset--spacing--30); }
.band--flat   { background: var(--wp--preset--color--base); }
/* Inner pages open with the wave only (no text in it): a shorter band whose bottom edge sits ~150px under the header. */
.band--top.band--empty { padding-block: 0; min-height: clamp(11rem, 17vw, 14rem); }
.band--empty + .band { padding-block-start: var(--wp--preset--spacing--40); }   /* the title sits close under the opening wave */
@media (min-width: 981px) { .hero + .band { padding-block-start: calc(var(--wp--preset--spacing--70) - 1.25rem); } }
/* The shift section's rhythm on desktop, as the old site (measured 2 Dec 2026 at 1280 and 1920, identical): the drawing
   to the two text columns 48px (was the block gap's 24), the columns to the icon row 56px (was 24), and the END: the old
   section kept 145px under the icon row while the NEXT (peach) section rode 140px UP over it — the wave image's top is
   transparent down to its crest, so the lines pattern runs under the wave instead of a white strip (the page's white
   showed through the transparent top when the bands merely touched). The peach section's title lands ~150px under the
   last icon text, as the old. Desktop only; tablet and phone keep the block gap. */
@media (min-width: 981px) {
  .section > .figure + .columns--text { margin-block-start: 3rem; }
  .section > .columns--text + .icon-row { margin-block-start: 3.5rem; }
  .band--lines.section { padding-block-end: 10.5rem; }   /* 168px under the icon row: the wave crest lands ~52–117px under the last icon text, the old 59–119 */
  .entry-content > .band--lines + .band--peach, .wp-block-post-content > .band--lines + .band--peach, main > .band--lines + .band--peach { margin-block-start: -8.75rem; padding-block-start: 6.25rem; }   /* the old peach section opened with a fixed 100px at every width (its title ~150px under the last icon text) */
  .entry-content > .band--peach + .band--flat, .wp-block-post-content > .band--peach + .band--flat, main > .band--peach + .band--flat { padding-block: 4rem 6rem; }
  .section > .lead + .post-cards { margin-block-start: 3rem; }
  .section > * + .figure--tight { margin-block-start: -1.25rem; }   /* a drawing whose top rows are its own air (the engine scene: 55 empty rows, ≈37px rendered) sits closer to the line before it: the ink lands ~17px under the text (2 Dec, Jorge: «less in the centre») */
  .section > .figure--tight + * { margin-block-start: 2.5rem; }   /* and the line after it opens at 40px to the box (the old 52 to a box with less bottom air) */   /* the blog row's subtitle → the cards: 48px, between the old 63 and the block gap's 24 (2 Dec) */   /* the blog row on Home (2 Dec): above the title 64px — between the old 36 and the band token's 102; below the cards 96px — between the old 44 and 147 */
  /* The About page's desktop round (2 Dec; Jorge from two side-by-side screenshots) — every rule is a theme rule, the
     page has no CSS of its own. (1) A page that opens with the empty wave band (About, What we build, Founder): its first
     section gets 8px more air under the wave («5–10px, not more») and 24px less under its last line («reduce the white a
     little and move it to the top»: old 34 · new 106 → 82). (2) The last flat section before the footer (About's «Our
     identity») ends 24px tighter (96 → 72), after the `.band--peach + .band--flat` rule above so it wins at equal weight.
     (3) The item titles of a left-aligned icon row («Integrity · Empowerment · Purpose»): the old's 26px near-black;
     ours were the 22.9px ink — Jorge read them as «grey, not bold». The coloured Identity titles keep their colour
     (their colour class carries a higher weight than this rule). (4) The two punchlines under the Identity row span the
     three columns at the standfirst's size, as the old (23px across 1024px; ours were 20px in a 46rem measure). */
  .band--empty + .band.section { padding-block-start: calc(var(--wp--preset--spacing--40) + 0.5rem); padding-block-end: 4.5rem; }
  .entry-content > .band--flat.section:last-child, .wp-block-post-content > .band--flat.section:last-child, main > .band--flat.section:last-child { padding-block-end: 4.5rem; }
  .icon-row--left h3 { font-size: 1.625rem; color: #333; }
  .punchline { font-size: var(--wp--preset--font-size--large); line-height: 1.33; max-width: none; margin-inline: auto; }
}   /* desktop: the section after the hero opens 20px tighter — the penguins no longer overhang its edge (30 Nov) */

/* The vertical rhythm inside a band: children are spaced by the block gap (theme.json), a section title gets a little
   more air below it, and a section's last child never adds a margin the band's padding already provides. */
.section > * + * { margin-block-start: var(--wp--style--block-gap); }
.section > h2 + * { margin-block-start: var(--wp--preset--spacing--30); }
.section > h1 + .wp-block-columns, .section > h1 + .post-cards, .section > h1 + .blog-toolbar { margin-block-start: 3.75rem; }   /* 60px under a page title before the content (blog home) */
.section > .wp-block-buttons, .section > .wp-block-button { margin-block-start: var(--wp--preset--spacing--50); }
.measure { max-width: 60ch; margin-inline: auto; }      /* body copy that should not run wider than the eye follows */
.measure--wide { max-width: 46rem; margin-inline: auto; }   /* ~70 characters at the standfirst's size: the eye's comfort, not the old 900px */
.measure--xwide { max-width: 50rem; margin-inline: auto; }
.columns--text { max-width: 62.5rem; margin-inline: auto; }   /* a two-column text row narrower than the band (1000px), as the shift block had */
.lead { font-size: var(--wp--preset--font-size--large); line-height: 1.3; }  /* a standfirst under a title */

/* ---- 3. Components -------------------------------------------------------- */
/* 3a. The header floats over the page's top band (as the old site's did). Every template's first block is a band, so
   the clearance variable keeps the band's content below the logo. */
:root { --header-clearance: clamp(9rem, 15vw, 12.5rem); }   /* the logo's height plus the air the old hero had under it */
.site-header { position: absolute; inset-inline: 0; top: 0; z-index: 10; padding-block: var(--wp--preset--spacing--20); transition: background-color 300ms ease, padding 300ms ease, box-shadow 300ms ease; }   /* the old bar eased background and padding over 0.3s */
/* Scrolled (desktop, as the old site: `sticky on|desktop`): the header becomes a fixed white bar, the logo shrinks to 150px, the
   menu stays. assets/js/site.js sets `is-scrolled` on <body> past 60px. */
@media (min-width: 981px) {
  body.is-scrolled .site-header { position: fixed; background: var(--wp--preset--color--base); padding-block: 0.25rem; box-shadow: 0 1px 0 color-mix(in srgb, var(--wp--preset--color--ink) 8%, transparent); }
  body.is-scrolled .site-header .wp-block-site-logo img, body.is-scrolled .site-header .site-logo img { width: 9.375rem; }
}
.site-header .wp-block-site-logo img, .site-header .site-logo img { transition: width 300ms ease; }
@media (prefers-reduced-motion: reduce) { .site-header, .site-header img { transition: none; } }

/* The back-to-top button: bottom-right, a translucent dark square with a white chevron, visible after 800px of scroll. */
.to-top { position: fixed; right: 0; bottom: 7.8rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: rgba(0, 0, 0, 0.4); color: #fff; border-radius: 5px 0 0 5px; z-index: 50; opacity: 0; visibility: hidden; transform: translateX(0.5rem); transition: opacity 300ms ease-out, transform 300ms ease-out, visibility 0s 300ms; text-decoration: none; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 300ms ease-out, transform 300ms ease-out; }
.to-top:hover, .to-top:focus-visible { background: var(--wp--preset--color--ink); color: #fff; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; transform: none; } }
.site-header > .wp-block-group { max-width: none; }   /* the header spans the page: logo at the left gutter, menu at the right one */
/* The logo and the menu have two sizes, as before: 165px / 16px up to 1370px wide, 250px / 22px above (a step, not a slope —
   the old site's rule, kept so laptops and big screens both look as Jorge approved them). */
.site-header .wp-block-site-logo img, .site-header .site-logo img { width: 10.3125rem; height: auto; display: block; }
@media (min-width: 1371px) { .site-header .wp-block-site-logo img, .site-header .site-logo img { width: 15.625rem; } :root { --header-clearance: 13.5rem; } }
.site-header .wp-block-navigation { font-weight: 600; text-transform: uppercase; font-size: 1.1875rem; letter-spacing: 0.02em; }
@media (min-width: 1371px) { .site-header .wp-block-navigation { font-size: 1.375rem; } }
.site-header .wp-block-navigation .wp-block-navigation-item__content { color: var(--wp--preset--color--ink); text-decoration: none; }   /* the block's own `color: inherit` rule would hand the menu the body grey */
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover, .site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--accent); }
.site-header .wp-block-navigation button, .site-header .wp-block-navigation button:hover { background: transparent; color: var(--wp--preset--color--ink); padding: 0; border-radius: 0; }   /* the menu's icons, not the site's button */
/* The menu opener: three bars (the old site's), 44px tap target, in the ink; the block's own two-bar icon is hidden.
   PHONE ONLY (max 599px, the block's own overlay breakpoint): the block hides the opener from 600px up, and a display
   rule without this media query had brought it back on tablets and desktops (seen 2026-11-30, left of HOME). */
.site-header .wp-block-navigation__responsive-container-open { display: none; }
@media (max-width: 599px) {
  .site-header .wp-block-navigation__responsive-container-open { position: relative; width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; }
  .site-header .wp-block-navigation__responsive-container-open svg { display: none; }
  .site-header .wp-block-navigation__responsive-container-open::before { content: ""; width: 1.625rem; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor; transition: box-shadow 150ms ease; }
  .site-header .wp-block-navigation__responsive-container-open:hover::before { box-shadow: 0 -9px 0 currentColor, 0 9px 0 currentColor; }
}
.site-header .wp-block-navigation__responsive-container-close { width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; }
.site-header .wp-block-navigation__responsive-container-close svg { width: 1.5rem; height: 1.5rem; }
.site-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base); }
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: var(--wp--preset--spacing--30); font-size: var(--wp--preset--font-size--large); }
/* The phone menu is the old drop-down panel: a white card under the header with an orange top rule, the items stacked
   with hairline separators, the current one orange; it drops in over 300ms; the page stays visible behind it and the
   hamburger's place shows the close cross. */
@media (max-width: 599px) {
  .site-header .wp-block-navigation__responsive-container.is-menu-open { position: absolute; inset: 100% 1rem auto 1rem; height: auto; min-height: 0; padding: 0.25rem 1rem 0.5rem; background: var(--wp--preset--color--base); border-top: 3px solid var(--wp--preset--color--accent); border-radius: 0 0 6px 6px; box-shadow: 0 2px 20px color-mix(in srgb, var(--wp--preset--color--ink) 16%, transparent); overflow: visible; animation: menu-drop 300ms ease-out; transform-origin: top center; }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; justify-content: flex-start; padding: 0; }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; font-size: 1.0625rem; }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { --navigation-layout-justification-alignment: flex-start; }   /* the block's own right-justification variable, overridden in the panel */
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { justify-content: flex-start; align-items: flex-start; text-align: start; align-self: stretch; }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { width: 100%; }   /* the whole row is the tap target */
  .site-header .wp-block-navigation:has(.is-menu-open) .wp-block-navigation__responsive-container-open { visibility: hidden; }   /* the cross takes the hamburger's place */
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 10%, transparent); }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child { border-bottom: 0; }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; padding: 0.95rem 0.5rem; letter-spacing: 0.08em; }
  .site-header .wp-block-navigation__responsive-container-close { position: absolute; top: -5.25rem; right: -0.625rem; }
  .site-header .wp-block-navigation__responsive-container-open, .site-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--ink); }
}
@keyframes menu-drop { from { opacity: 0; transform: translateY(-0.5rem) scaleY(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header .wp-block-navigation__responsive-container.is-menu-open { animation: none; } }

/* 3b. The hero: text on the left, the penguin group on the right on desktop, below the button on phone and tablet.
   Desktop (2026-11-30, Jorge: «use that real estate»): the group is CENTRED on the text block — the hero's content box
   is the columns' height, so its middle = 50% of the band + (top clearance − bottom padding) / 2 — and never rises above
   the headline (the max). Width = the old site's 48vw, capped at the image's 750px; the right edge overhangs the content
   by ~104px as before. The old «feet on the wave's white» rule is relaxed. */
.hero { position: relative; --hero-pad-end: clamp(6rem, 8vw, 9.5rem); --penguins-w: min(46.875rem, 48vw); }
.hero__penguins { margin-block: var(--wp--preset--spacing--30) 0; }
.hero__penguins img { display: block; width: 100%; height: auto; }
@media (min-width: 981px) {
  .hero { padding-block-end: var(--hero-pad-end); }   /* the old hero's 150px under the button */
  .hero__penguins { position: absolute; right: max(1.25rem, calc(50% - 47rem)); width: var(--penguins-w); margin: 0; z-index: 2;
    top: calc(max(var(--header-clearance), calc(50% + (var(--header-clearance) - var(--hero-pad-end)) / 2 - var(--penguins-w) * 0.2667)) + 1.25rem); }   /* 0.2667 = half the image's 400/750 ratio; + 1.25rem: the group grabs a bit of the button (Jorge, 30 Nov) */
}

/* 3c. An icon row: three (or more) items, each an icon, a title and a line of text, centred. The icon sits tight to its
   title (em: the gap follows the title's size). */
.icon-row { text-align: center; }
.icon-row .wp-block-column > * + * { margin-block-start: 0.35em; }
.icon-row .wp-block-image img { width: clamp(4.5rem, 8vw, 6rem); height: auto; margin-inline: auto; }
.icon-row h3, .icon-row h4 { margin-block-end: 0.3em; line-height: 1.4; }
.icon-row p { max-width: 20rem; margin-inline: auto; }
/* …and its left-aligned sibling (the "what we believe" and "our identity" items). */
.icon-row--left { text-align: start; }
.icon-row--left .wp-block-image img, .icon-row--left p { margin-inline: 0; max-width: none; }
.icon-row--left .wp-block-image img { width: clamp(5rem, 9vw, 6.875rem); }

/* 3d. A figure: a scene drawing, centred, capped at 920px (the old site's cap: wider reads as a banner, not a drawing);
   full-bleed with a 16px gutter on phone so the scene can be read. */
.figure { margin-inline: auto; max-width: 57.5rem; }
.figure img { display: block; margin-inline: auto; width: 100%; height: auto; }
@media (max-width: 767px) {
  /* Centred by MARGINS, not by a transform (2 Dec 2026): the scroll-reveal ends on `transform: none`, which cancelled
     the old `left: 50%; translateX(-50%)` and left the drawing half a screen to the right (and the page scrolling
     sideways). !important because the block layout's own rule sets the side margins to `auto !important`. */
  .section > .figure, .figure { width: calc(100vw - 2rem); max-width: none; margin-inline: calc(50% - 50vw + 1rem) !important; }
}

/* 3d-bis. A side figure: a small drawing beside a column of text (the Founder page's four scenes). The columns block
   carries the proportions (2/3 + 1/3); this class keeps the drawing modest and vertically centred to the text. */
.figure--side img { width: min(100%, 18rem); margin-inline: auto; }
@media (max-width: 781px) { .figure--side { order: -1; } .figure--side img { width: min(60%, 14rem); } }   /* on phone the drawing goes above its text */
.portrait img { border-radius: 4px; width: min(100%, 22rem); margin-inline: auto; display: block; }

/* 3e. The pull-line: one sentence set large, centred, in the ink — the closing thought of a section. */
.pull-line { font-size: 1.625rem; font-weight: 600; line-height: 1.35; color: var(--wp--preset--color--ink); text-align: center; max-width: 47.5rem; margin-inline: auto; }   /* 26px, centred in a 760px measure, as the Founder's closing line was (2 Dec 2026: it had been left-aligned at full width) */
@media (min-width: 981px) {
  /* The pull-line's air on desktop (2 Dec 2026): 72 above AND 72 below, so the line sits centred between the columns
     above it and the next title. The old site had 48 above / 72 below, and the block gap gave 47 — Jorge: «too close to
     the image and the text above» (a gap under a figure reads tighter than the same gap under text). The 72 above is
     measured from the text; the columns block itself ends 23 under its last line, the side figure being taller. */
  .section > * + .pull-line { margin-block-start: var(--wp--preset--spacing--50); }
  .section > .pull-line + * { margin-block-start: 4.5rem; }
}

/* 3f. The post card (blog list, the "latest from our blog" row), as before: 20px inside, 10px corners, a soft shadow, the
   hero image full-bleed at the top in its own proportions (rounded with the card), then title / byline / category /
   excerpt / "Read more". Cards stand at their own height, top-aligned — the row does not stretch them. */
.post-cards .wp-block-post-template { align-items: start; gap: clamp(1.5rem, 3vw, 2.5rem); }
.post-card { background: var(--wp--preset--color--base); border-top: 3px solid var(--wp--preset--color--accent); border-radius: 10px; box-shadow: 0 2px 20px color-mix(in srgb, var(--wp--preset--color--ink) 14%, transparent); overflow: hidden; font-size: var(--wp--preset--font-size--small); transition: transform 150ms ease, box-shadow 150ms ease; }
.post-card:hover, .post-card:focus-within { transform: translateY(-2px); box-shadow: 0 6px 24px color-mix(in srgb, var(--wp--preset--color--ink) 20%, transparent); }
@media (prefers-reduced-motion: reduce) { .post-card { transition: none; } .post-card:hover { transform: none; } }
.post-card .wp-block-post-featured-image { margin: 0; }
.post-card .wp-block-post-featured-image a { display: block; }   /* no inline-box air under the image */
.post-card .wp-block-post-featured-image img { width: 100%; height: auto; display: block; }   /* the orange rule moved from the image to the CARD's top (2 Dec): a card without an image has it too; the radius clips it the same */
.post-card > * + * { margin-block-start: 0; }   /* the card is a flow group: the block gap (24px) used to open under the image */
.post-card .wp-block-post-featured-image + .post-card__body { padding-block-start: 1.375rem; }   /* image → the eyebrow: 22px, half the 44 of before (2 Dec) */
.post-card__body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.post-card__body > *, .post-card__body p { margin: 0; }
.post-card .wp-block-post-terms { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }   /* the eyebrow */
.post-card .wp-block-post-terms a { color: var(--wp--preset--color--accent); text-decoration: none; }
.post-card .wp-block-post-title { font-size: var(--wp--preset--font-size--large); font-weight: 600; line-height: 1.15; text-transform: none; margin: 0; }
.post-card .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--accent); }
.post-card .byline { color: var(--wp--preset--color--ink); font-size: 1.125rem; font-weight: 600; }   /* the old byline: the excerpt's size, semibold, ink (2 Dec) */
.post-card .byline a { color: var(--wp--preset--color--accent); text-decoration: none; }
.post-card .byline a:hover { color: var(--wp--preset--color--ink); }
.post-card .wp-block-post-excerpt__excerpt { margin-block: 0; font-size: 1.125rem; }
.post-card .wp-block-read-more { align-self: flex-start; margin-block-start: 0.5rem; font-size: 1.125rem; padding: 0.45em 1.1em 0.35em; }   /* the house button at the card's size — the old card's «Read More» was a button (2 Dec) */

/* 3f-bis. The blog toolbar (replaces the sidebar): the categories as chips on the left, the search on the right, one row. */
.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-block: 0 var(--wp--preset--spacing--40); }
.blog-toolbar .wp-block-categories { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.blog-toolbar .wp-block-categories li { margin: 0; }
.blog-toolbar .wp-block-categories a { display: inline-block; padding: 0.3em 0.9em; border: 2px solid var(--wp--preset--color--ink); border-radius: 999px; color: var(--wp--preset--color--ink); font-weight: 600; font-size: 1rem; text-decoration: none; transition: background-color 150ms ease, color 150ms ease; }
.blog-toolbar .wp-block-categories a:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); }
.blog-toolbar .wp-block-categories .current-cat a { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); }   /* the active chip (All, or the category shown) is the accent fill; a click on it returns to All (functions.php) */
.blog-toolbar .wp-block-search { flex: 0 1 18rem; margin: 0; }
.blog-toolbar .wp-block-search__inside-wrapper { border: 2px solid var(--wp--preset--color--ink); border-radius: 0; padding: 0; background: var(--wp--preset--color--base); transition: background-color 150ms ease; }
.blog-toolbar .wp-block-search__inside-wrapper:focus-within { background: color-mix(in srgb, var(--wp--preset--color--accent) 10%, var(--wp--preset--color--base)); }
.blog-toolbar .wp-block-search__input { border: 0; background: transparent; height: 2.5625rem; padding: 0.625rem; font-family: inherit; font-size: 1rem; color: var(--wp--preset--color--ink); }
.blog-toolbar .wp-block-search__input:focus { outline: none; }
.blog-toolbar .wp-block-search__button { background: transparent; color: var(--wp--preset--color--accent); padding: 0 0.6em; margin: 0; border: 0; }
.blog-toolbar .wp-block-search__button svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.blog-toolbar .wp-block-search__button:hover { background: transparent; color: var(--wp--preset--color--ink); }

/* 3g. The single post: title, byline, categories, the hero image, the content at a reading measure. Inside an article the
   headings are ARTICLE headings — sentence case, a step smaller than the site's section titles — so a post written by hand
   with H2s and H3s reads like every other post. */
.post-header .wp-block-post-terms { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.post-header .wp-block-post-title { text-transform: none; color: var(--wp--preset--color--ink); font-size: var(--wp--preset--font-size--x-large); line-height: 1.1; }
.post-header .wp-block-post-featured-image img { border-radius: 10px; }
.post-header .byline { color: var(--wp--preset--color--text); }
.post-header .byline a { color: inherit; }
.post-header .byline a, .post-header .wp-block-post-terms a { color: var(--wp--preset--color--accent); text-decoration: none; }
.post-body > * + * { margin-block-start: 1em; }
.post-body > * { max-width: 44rem; margin-inline: auto; }   /* ~70 characters at 20px: the reading measure */
.post-body > figure, .post-body > pre, .post-body > .wp-block-table, .post-body > .wp-block-embed, .post-body > .alignwide { max-width: 100%; }   /* pictures, code and tables may use the full column */
.post-body h2, .post-body h3, .post-body h4 { margin-block-start: 1.5em; text-transform: none; }
.post-body h1 { font-size: var(--wp--preset--font-size--x-large); text-transform: none; }   /* an H1 typed in a post is not a second page title */
.post-body h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem); }
.post-body h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.post-body h4 { font-size: var(--wp--preset--font-size--large); }
.post-body img { border-radius: 4px; }
.post-body figure { margin-block: 1.5em; }
.post-body figcaption { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink); text-align: center; margin-block-start: 0.5em; }
.post-body .dek { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--ink); }

/* 3h. The footer: four columns on desktop, two on tablet, one on phone; links in the ink; the copyright line last. */
.site-footer { color: var(--wp--preset--color--ink); font-size: 1rem; }
.site-footer a { color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 500; }   /* footer links are plain text, not the bold orange of a link in copy */
.site-footer li a { font-size: 1.0625rem; }
.site-footer a:hover { color: var(--wp--preset--color--accent); }
.site-footer h4 { text-transform: uppercase; font-size: 1.75rem; margin-block-end: 0.5em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-block-end: 0.35em; }
.site-footer .footer__logo img { width: min(70%, 11.875rem); height: auto; }
.site-footer .footer__motto { font-style: italic; }
.site-footer .footer__signature { text-align: end; padding-inline-end: 1.5em; }
.site-footer .footer__copyright { text-align: center; padding-block-start: var(--wp--preset--spacing--50); }

/* ---- 4. Breakpoints ------------------------------------------------------- */
/* Columns: the core block already stacks under 782px. Between 768 and 980 the two- and three-column text rows keep their
   columns (as before) but with the smaller gap from theme.json; the only extra rule is the footer's 4→2 step. */
@media (min-width: 782px) and (max-width: 980px) {
  .site-footer .wp-block-columns { flex-wrap: wrap; }
  .site-footer .wp-block-column { flex-basis: calc(50% - var(--wp--style--block-gap)) !important; }
}
@media (max-width: 767px) {
  /* A page title with no standfirst under it (Founder, the blog views): 60 → 32px on the phone, so the title does not
     float away from its content (2 Dec 2026, Jorge). Pages with a standfirst keep their 24. Desktop/tablet keep 60. */
  .section > h1 + .wp-block-columns, .section > h1 + .post-cards, .section > h1 + .blog-toolbar { margin-block-start: 2rem; }
  .band--top { padding-block-start: 11rem; }   /* the old phone hero: ~70px of air between the logo and the title */
  .band--top.band--empty { min-height: 10rem; }
  .site-header { padding-block: 0.5rem; }
  .site-header.has-global-padding { padding-inline: 0.75rem 1.25rem; }   /* the logo hugs the edge, as before */
  .site-header .wp-block-navigation { position: static; }   /* so the drop-down panel is placed against the header, not the menu icon */
  .site-header .wp-block-site-logo img, .site-header .site-logo img { width: 10rem; }
  .section > h2 + * { margin-block-start: var(--wp--preset--spacing--20); }
  .icon-row .wp-block-column + .wp-block-column { margin-block-start: var(--wp--preset--spacing--30); }
  /* HOME on the phone (2 Dec 2026, Jorge's first phone pass; nothing here reaches 768px and up). Content must end
     ABOVE a wave edge (the edges' heights on the phone: see THE WAVES below).
     (1) The penguins: wider than the text column (the screen less 12px each side) and wrapped by the peach — the hero
     ends 5rem under them, so the wave's white starts under their feet; the next band then opens with 2rem (the wave
     already is the white above its title).
     (2) «What we believe»: the title opens 5rem under the band's start (clear of the top wave) and the button ends
     5.5rem above its end (clear of the bottom wave); the blog band opens with 2rem for the same reason as (1).
     (3) The blog band ends with 3.5rem: the footer's own wave supplies the rest. */
  .hero { padding-block-end: 5rem; }   /* 0.3.21: the wave is 3.75rem now (was ~20% of the hero): the feet stand 20px above it */
  .hero > .hero__penguins { width: calc(100vw - 1.5rem); max-width: none; margin-inline: calc(50% - 50vw + 0.75rem) !important; }
  .home .hero + .band { padding-block: 2rem 5.5rem; }   /* ends 2.5rem under the last icon text + the 3rem the peach wave rides up (below) */
  .home .band--peach.section { padding-block: 5rem 5.5rem; }   /* 0.3.21: the button ends 2.5rem above the 3rem bottom wave (was 7.5rem against a ~100px wave) */
  .home .band--peach + .band--flat { padding-block: 2rem 3.5rem; }

  /* THE WAVES ON THE PHONE (0.3.21, 2 Dec 2026 — Jorge: «too curvy on mobile… because we squeeze the backgrounds»). On
     desktop a band's artwork is stretched to its box: at 1280 the edge's height is ~4–5% of the width (the hero's 11%).
     A phone band is three times narrower and often taller, so the same stretch made edges of 21–47% of the width.
     Here the edges are SLICES of the same artwork at a FIXED height, and the middle is the artwork's own flat fill:
       · peach — top and bottom slices (the middle half of the 1920px drawing, so a wave is also twice as long) at 3rem,
         over the drawing's own left→right gradient: an edge ~28px high, 7% of a 390px screen;
       · the footer — its top slice at 3.5rem over its flat fill: ~25px, 6%;
       · the page top — the hero keeps its whole drawing (flattened on white, nothing lies under it) above a 3.75rem
         wave slice (~57px, 15%; desktop 11%); the inner pages' empty opening band, 1.5rem.
     Layers overlap by 1px (opaque on opaque) so no hairline opens at a fractional height. A peach band rides 3rem up
     over a lines band before it, so the lines run under the wave instead of a white strip (the desktop does the same).
     Rule for content: keep it out of the first and last 3rem of a peach band (3.75rem at the hero's end). */
  .band--top { --wave-h: 3.75rem; background-image: url(assets/img/band-top-wave.png), url(assets/img/band-top-upper.png); background-size: 100% var(--wave-h), 100% calc(100% - var(--wave-h) + 1px); background-position: bottom, top; }
  .band--top.band--empty { --wave-h: 1.5rem; }
  .band--peach { background-image: url(assets/img/band-peach-wave-top.png), url(assets/img/band-peach-wave-bottom.png), linear-gradient(90deg, rgb(254, 242, 227), rgb(254, 239, 225)); background-size: 100% 3rem, 100% 3rem, 100% calc(100% - 6rem + 2px); background-position: top, bottom, center; }
  .band--footer { background-image: url(assets/img/band-footer-wave.png), linear-gradient(rgb(254, 233, 212), rgb(254, 233, 212)); background-size: 100% 3.5rem, 100% calc(100% - 3.5rem + 1px); background-position: top, bottom; }
  .entry-content > .band--lines + .band--peach, .wp-block-post-content > .band--lines + .band--peach, main > .band--lines + .band--peach { margin-block-start: -3rem; }

  /* THE BALANCE RULE ON THE PHONE (0.3.22, 2 Dec 2026 — Jorge on About: «a bit less white, a bit more coloured, so the
     separation sits in the middle»): a wave sits MIDWAY between the last element of one section and the first of the
     next, ~60px each side (the Home's approved transitions are 64/56). Measured to the wave slice's centre line: a peach
     edge is 3rem high (centre at 1.5rem), the footer's 3.5rem (centre at 1.75rem). Before: 88 white / 40 colour above
     «Our values», the mirror below it, 92/52 above the footer. General at the band level, so every inner page inherits
     it; the Home keeps its own rules above (higher specificity, and its last band is excluded here). */
  .band--peach.section { padding-block: 5.25rem; }                                   /* 60 from each wave centre to the content */
  .band--flat:has(+ .band--peach) { padding-block-end: 2.25rem; }                    /* 60 above the peach's top wave centre */
  .band--peach + .band--flat { padding-block-start: 2.25rem; }                       /* 60 under its bottom wave centre */
  body:not(.home) .entry-content > .band--flat.section:last-child, body:not(.home) .wp-block-post-content > .band--flat.section:last-child, body:not(.home) main > .band--flat.section:last-child { padding-block-end: 2rem; }   /* 60 above the footer wave's centre (52 under it to the footer's first line) */
  body:not(.home) main > .band--flat.section:last-child { padding-block-end: 2rem !important; }   /* the blog templates (home/archive/search/index.html) set this padding INLINE for desktop: only !important reaches it here */
  main > .section.post-back { padding-block-end: 2rem !important; }   /* a post: «Back to the blog» → 60 → the footer wave's centre (was 76); inline in single.html, as above */
}

/* 3i. The pull quote: a line above and below, the big quotation marks in the accent — the About page's "we were the gap
   in the market" (two fixed-width SVG rules on the old site; now one element that fits any column). */
.pull-quote { position: relative; border-block: 2px solid var(--wp--preset--color--ink); padding: 1.25em 1em 1.25em 1.25em; margin-block: 1.5em; margin-inline: 0; font-style: normal; border-inline-start: 0; }
.pull-quote p { color: var(--wp--preset--color--accent); font-size: var(--wp--preset--font-size--large); line-height: 1.3; margin: 0; }
.pull-quote::before, .pull-quote::after { font-family: Georgia, "Times New Roman", serif; font-size: 4em; line-height: 0.6; color: var(--wp--preset--color--accent); position: absolute; background: var(--wp--preset--color--base); padding-inline: 0.08em; }
.pull-quote::before { content: "\201C"; top: -0.22em; left: 0; }
.pull-quote::after  { content: "\201D"; bottom: -0.38em; right: 0; }
.band--peach .pull-quote::before, .band--peach .pull-quote::after { background: transparent; }
.arrow-link::before { content: "\2192\00a0"; }   /* → before a link ("Read the full founder story") */

/* 3j. A dialogue inside a post (the "Jorge / AI Partner" exchanges), the old site's testimonial cards rebuilt (measured on
   old.labinhood.com, 2 Dec 2026, at 1280): each turn a mist-grey card, square corners, 30px inside; a 90px round avatar on
   the left (inset 3px shadow ring), 30px to the text; a 32px round quote badge centred on the card's top edge; 17px
   between turns. The text keeps the post's own size (Jorge: bigger reads better). Under 600px the avatar sits above the text.
   HOW TO WRITE ONE (block editor: a Group with these classes; in a bridge markdown post: this raw HTML, no blank lines inside):
     <div class="dialogue">
     <div class="dialogue__turn dialogue__turn--jorge"><p class="dialogue__speaker"><strong>Jorge:</strong></p><p>…</p></div>
     <div class="dialogue__turn dialogue__turn--ai"><p class="dialogue__speaker"><strong>AI Partner:</strong></p><p>…</p><p>…</p></div>
     </div>
   --jorge = the penguin, --ai = the robot (assets/img/avatar-*.{png,svg}); another speaker = a new modifier with its image. */
.dialogue { display: flow-root; }
.dialogue__turn { position: relative; background: var(--wp--preset--color--mist); padding: 1.875rem 1.875rem 1.875rem 9.375rem; min-height: calc(5.625rem + 3.75rem); box-sizing: border-box; }
.dialogue__turn + .dialogue__turn { margin-block-start: 1.0625rem; }
.dialogue > .dialogue__turn:first-child { margin-block-start: 1.5rem; }   /* room for the first badge */
.dialogue__turn > * { margin-block: 0; }
.dialogue__turn > * + * { margin-block-start: 1em; }
.dialogue__turn > .dialogue__speaker + * { margin-block-start: 0.5em; }
.dialogue__speaker strong { color: var(--wp--preset--color--ink); }
.dialogue__turn::before { content: ""; position: absolute; top: 1.875rem; left: 1.875rem; width: 5.625rem; height: 5.625rem; border-radius: 50%; background: var(--wp--preset--color--base) center / cover no-repeat; box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3); }
.dialogue__turn--jorge::before { background-image: url("assets/img/avatar-jorge.png"); }
.dialogue__turn--ai::before { background-image: url("assets/img/avatar-ai.svg"); }
.dialogue__turn::after { content: "\201D"; position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); width: 2rem; height: 2rem; box-sizing: border-box; border: 2px solid var(--wp--preset--color--text); border-radius: 50%; background: var(--wp--preset--color--mist); color: var(--wp--preset--color--text); font: 700 2.5rem/2.75rem Georgia, "Times New Roman", serif; text-align: center; }
@media (max-width: 599px) {
  .dialogue__turn { padding: 1.75rem 1.25rem 1.25rem; min-height: 0; }
  .dialogue__turn::before { position: static; display: block; width: 4rem; height: 4rem; margin-block-end: 0.75rem; }
}

/* 3k. A post note: the closing "This post references…" / sources / credits paragraph, set off from the article (measured
   on old.labinhood.com, 2 Dec 2026, at 1280, the March post: a Divi divider, 1px solid ink across the text column, 25px
   below the last paragraph; the note 16px on a 30.6px line in the text grey, its link orange at the normal weight, ~11px
   under the rule). Same here: 1rem (16px, above the ~15px floor, so the old size is kept) on a 1.9 line.
   HOW TO WRITE ONE (block editor: a Paragraph, or a Group for several paragraphs, with the class `post-note`; in a bridge
   markdown post: this raw HTML):
     <p class="post-note">This post references research published in …: <a href="…">"Title"</a> by … (date).</p> */
.post-body > .post-note { margin-block-start: 1.5625rem; padding-block-start: 0.6875rem; border-block-start: 1px solid var(--wp--preset--color--ink); font-size: 1rem; line-height: 1.9; color: var(--wp--preset--color--text); }
.post-note > * { margin-block: 0; }
.post-note > * + * { margin-block-start: 0.5em; }
.post-note a { font-weight: inherit; }

/* 3l. Comments (wpDiscuz, change 0013, 2 Dec 2026): the old site's block (Article Rating, Subscribe, the rich editor,
   name · email · website, reCAPTCHA, the floating bubble) under the post, in the text's reading measure. Its colours are
   set in wpDiscuz's own settings (accent, the sand button, the orange bubble: ops/change-0013-comments.sh); here only
   what those cannot reach: the site's font in the fields and buttons, the site's button shape, the comment text one step
   under the article. wpDiscuz's rules are id-scoped (#wpdcom), so these are too (they outrank the site's global `button` rule,
   which is why the editor's toolbar keeps wpDiscuz's look). */
.post-comments #wpdcom { max-width: 44rem; margin-inline: auto; }
.post-comments #wpdcom input, .post-comments #wpdcom textarea, .post-comments #wpdcom select, .post-comments #wpdcom .ql-editor { font-family: inherit; font-size: 1rem; }
.post-comments #wpdcom .wc_comm_submit, .post-comments #wpdcom input[type="submit"] { font-family: inherit; font-weight: 600; font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.025em; border-radius: 3px; padding: 0.45em 1.6em 0.35em; transition: background-color 150ms ease-out, color 150ms ease-out; }
.post-comments #wpdcom .wc_comm_submit:hover, .post-comments #wpdcom input[type="submit"]:hover, .post-comments #wpdcom .wc_comm_submit:focus-visible { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); }
.post-comments #wpdcom .wpd-comment-text, .post-comments #wpdcom .wpd-comment-text p { font-size: 1.125rem; line-height: 1.6; color: var(--wp--preset--color--text); }   /* 18px: a comment reads one step under the article (20px), above wpDiscuz's 14px */
@media (prefers-reduced-motion: reduce) { .post-comments #wpdcom .wc_comm_submit { transition: none; } }
/* The comments block's END → «Back to the blog»: one step (the band token, 4–7rem), the same with 0 or N comments (2 Dec, Jorge: ~220px
   of white under the «0 Comments» tab, measured at 1280: the empty thread list's 35+35px padding, #wpdcom's 5px padding +
   15px margin, the comments area's 50px margin, the button section's 48px padding + the buttons' 48px margin). wpDiscuz's
   trailing room is zeroed — the empty list's padding, the list's bottom padding, the last comment's (and its last reply's)
   bottom margins — and the gap is set once, on the button (.post-back in templates/single.html). */
.post-comments #comments { margin-block-end: 0; }
.post-comments #wpdcom { margin-block-end: 0; padding-block-end: 0; }
.post-comments #wpdcom .wpd-thread-wrapper > .wpd-thread-list { padding-block-end: 0; }   /* one class more than wpDiscuz's `#wpdcom.wpd-layout-3 .wpd-thread-list` (35px), which loads after us */
.post-comments #wpdcom .wpd-thread-list:not(:has(.comment)) { padding-block: 0; }
.post-comments #wpdcom .wpd-thread-list > .comment:nth-last-child(1 of .comment),
.post-comments #wpdcom .wpd-thread-list > .comment:nth-last-child(1 of .comment) > :is(.wpd-comment-wrap, .comment):nth-last-child(1 of .wpd-comment-wrap, .comment),
.post-comments #wpdcom .wpd-thread-list > .comment:nth-last-child(1 of .comment) > :is(.wpd-comment-wrap, .comment):nth-last-child(1 of .wpd-comment-wrap, .comment) > :is(.wpd-comment-wrap, .comment):nth-last-child(1 of .wpd-comment-wrap, .comment),
.post-comments #wpdcom .wpd-thread-list > .comment:nth-last-child(1 of .comment) > :is(.wpd-comment-wrap, .comment):nth-last-child(1 of .wpd-comment-wrap, .comment) > :is(.wpd-comment-wrap, .comment):nth-last-child(1 of .wpd-comment-wrap, .comment) > :is(.wpd-comment-wrap, .comment):nth-last-child(1 of .wpd-comment-wrap, .comment) { margin-block-end: 0; }
.post-comments + .post-back { margin-block-start: 0; padding-block-start: 0; }
.post-back > .wp-block-buttons { margin-block-start: var(--wp--preset--spacing--70); }   /* the band step, clamp(4rem, 8vw, 7rem): ~102px at 1280, 64px at 400 — half the old 221 (0.3.19; 0.3.18's 56px read «too close») */

/* ---- 5. Motion (functional, brief, off under reduced motion) ------------------------------------------------
   One rule each: the reveal on scroll (site.js marks the blocks), the home page's landing sequence, the cross-fade
   between pages, the reading line on a post, press feedback. Nothing loops; nothing moves while you read. */
/* 5a. Reveal on scroll: 16px up and in over 400ms, siblings 80ms apart; without the script nothing is ever hidden. */
.js [data-reveal] { opacity: 0; transform: translateY(1rem); transition: opacity 400ms ease-out, transform 400ms ease-out; transition-delay: calc(var(--reveal-i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* 5b. The landing: the title's lines, the paragraph, the button and the penguins arrive in sequence, under a second, once. */
.hero h1, .hero p, .hero .wp-block-buttons { animation: rise 500ms ease-out both; }
.hero p { animation-delay: 150ms; }
.hero .wp-block-buttons { animation-delay: 280ms; }
.hero__penguins { animation: arrive 600ms cubic-bezier(0.2, 0.7, 0.2, 1) 300ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateX(2rem); } to { opacity: 1; transform: none; } }
/* 5c. Pages cross-fade into each other where the browser supports it (Chrome, Edge, Safari); the header stays put. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }
/* 5d. The reading line on a post. */
.reading-line { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--wp--preset--color--accent); transform-origin: left; transform: scaleX(0); z-index: 60; pointer-events: none; }
/* 5e. Press feedback and the menu's sliding underline. */
.wp-block-button__link:active, .wp-element-button:active, .post-card .wp-block-read-more:active, .blog-toolbar .wp-block-categories a:active { transform: translateY(1px); }
.site-header .wp-block-navigation-item__content { position: relative; }
.site-header .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.2em; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 200ms ease-out; }
.site-header .wp-block-navigation-item__content:hover::after, .site-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
@media (max-width: 599px) { .site-header .wp-block-navigation-item__content::after { display: none; } }   /* the panel has its own separators */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero h1, .hero p, .hero .wp-block-buttons, .hero__penguins { animation: none; }
  @view-transition { navigation: none; }
  .site-header .wp-block-navigation-item__content::after { transition: none; }
}
