/* Bread: visual round. noHack's airy look in Bread green.
   One shared sheet for all eight pages. Type in rem, queries in rem.
   Every value here is traced to a noHack measurement in ../visual_spec.md. */

/* ---------- Fonts (local only) ---------- */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-latin-opsz-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-wght-normal.woff2) format("woff2-variations");
}

/* ---------- Tokens ---------- */
:root {
  --deep: #173c33;   /* text on white, the deep band, button fill, footer */
  --field: #275a4b;  /* secondary text, hover fill */
  --mid: #3a7262;    /* inner-page titles (5.6:1 on white), field borders, bullets */
  --line: #c3d9cf;   /* rules, circle edges, the mark. Never text. */
  --wash: #e3eee9;   /* the palest band. Never text. */
  --mist: #f3f8f5;   /* circle grounds, hover grounds. Never text. */
  --paper: #ffffff;
  --alert: #9b2c1f;  /* errors only */

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --display: clamp(2.125rem, 1.6rem + 1.6vw, 2.875rem);  /* Home headline: 46px at most, as noHack's 44.8px */
  --title: clamp(2.5rem, 1.6rem + 2.9vw, 3.75rem);       /* inner-page titles */
  --h2: clamp(1.875rem, 1.45rem + 1.3vw, 2.5rem);
  --h3: clamp(1.375rem, 1.25rem + 0.4vw, 1.5rem);
  --lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --body: 1rem;
  --small: 0.875rem;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);   /* moving on screen (animate skill) */
  --flow: pour;          /* chosen: the bean's dots drop, then spread into the band (site.js reads this) */
  --svc-follow: on;      /* chosen: service-circle dots swell toward the pointer (site.js reads this) */
  --radius: 0.625rem;                            /* noHack buttons: 10px */
  --pad: 1.25rem;
  --sec: clamp(4.5rem, 9vw, 8.5rem);             /* noHack: 95px at 1440 around sparser sections; ours carry more words, so 72px to 136px */
  --curve: clamp(2.5rem, 7.9vw, 7.25rem);        /* noHack: 114px at 1440 */
  --bar: 4rem;                                   /* header height */
  --focus: var(--deep);

  /* Side gutters: the page padding, the safe area, or what centers a 77rem column (noHack: 1231px). */
  --gl: max(var(--pad), env(safe-area-inset-left, 0px), calc((100% - 77rem) / 2));
  --gr: max(var(--pad), env(safe-area-inset-right, 0px), calc((100% - 77rem) / 2));
}
@media (min-width: 30rem) { :root { --pad: 2rem; } }
@media (min-width: 60rem) { :root { --pad: 3rem; --bar: 5.5rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 1rem); /* anchors land clear of the sticky header */
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--deep);
  font-family: var(--sans);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 32;
  text-wrap: balance;
}
h1 strong, h2 strong { font-weight: 700; }
p { text-wrap: pretty; }
h1 { font-size: var(--title); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--h2); line-height: 1.14; letter-spacing: -0.02em; }
h3 { font-size: var(--h3); line-height: 1.2; letter-spacing: -0.015em; }
a { color: inherit; touch-action: manipulation; }
button { font: inherit; color: inherit; touch-action: manipulation; }
img, svg { display: block; }
svg { flex-shrink: 0; }
main:focus { outline: none; }
strong { font-weight: 700; }

/* One focus style for the whole site. It never animates. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { padding-left: var(--gl); padding-right: var(--gr); }
.lead { font-size: var(--lead); line-height: 1.55; }
.nb { white-space: nowrap; }
.on-deep { background-color: var(--deep); color: var(--paper); --focus: var(--paper); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--paper);
  font-weight: 600;
  transform: translateY(-250%);
}
.skip:focus { transform: none; outline: 2px solid var(--paper); outline-offset: -4px; box-shadow: 0 0 0 2px var(--deep); }

/* ---------- Buttons: one shape, one label, one destination ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;                    /* noHack: 50px */
  padding: 0.75rem 1.375rem;               /* noHack: 16px 20.8px */
  border: 0;
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
button.button { -webkit-user-select: none; user-select: none; } /* links stay selectable */
.button:active { transform: scale(0.97); background: var(--field); }
.button-compact { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.875rem; }
.button-invert { background: var(--paper); color: var(--deep); }
.button-invert:active { background: var(--wash); }
.button:focus-visible { border-radius: var(--radius); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--field); }
  .button-invert:hover { background: var(--wash); }
}

/* ---------- Header: a slim sticky bar (noHack's is 295px; this is 64 to 88px) ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--paper);
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 1px 0 rgba(23, 60, 51, 0.09);   /* a hairline, no soft shadow */
}
@media (min-height: 40rem) { .site-header { position: sticky; top: 0; } }
.bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.625rem;
  min-height: var(--bar);
  padding-left: var(--gl);
  padding-right: var(--gr);
}

/* The logo lockup, as the logo is drawn: Fadzo's bean first, then "Bread" in Instrument Sans.
   The bean is 1.25 times the cap height (0.72em) and sits 0.25em from the word. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 420;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--deep);
}
.lockup-mark { display: inline-flex; align-items: center; height: 0.92em; }
.lockup-mark svg, .lockup-mark img { height: 100%; width: auto; }
.logo { display: inline-flex; align-items: center; min-height: 2.75rem; margin-right: auto; text-decoration: none; border-radius: 4px; }
.logo:active { opacity: 0.8; }

.bar > .button { flex: 1 1 6.5rem; min-width: min-content; max-width: max-content; margin: 0.5rem 0; line-height: 1.15; box-shadow: none; }
.nav { display: none; }
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: inherit;
  border-radius: 50%;
  transition: background-color 160ms ease;
}
.icon-link:active { opacity: 0.7; }
.bar > .icon-link { display: none; }

.menu-control {
  flex: none;
  min-width: 3.75rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.menu-control:active { transform: scale(0.97); }
.menu-control[aria-expanded="true"] { background: var(--deep); border-color: var(--deep); color: var(--paper); }
html:not(.js) .menu-control { display: none; }
@media (max-width: 24.5rem) {
  .bar { column-gap: 0.5rem; }
  .bar > .button { padding-left: 0.625rem; padding-right: 0.625rem; }
  .lockup { font-size: 1.5rem; }
  .menu-control { min-width: 3.5rem; padding: 0 0.5rem; }
}

/* While the phone menu is open the page beneath is veiled. */
.menu-open .site-header::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(255, 255, 255, 0.84); }
.menu-open .bar { position: relative; background: var(--paper); }

/* Phone menu: a white sheet that opens from the Menu control, top right. */
.menu-panel {
  position: absolute;
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  top: calc(100% + 0.5rem);
  max-height: calc(100svh - var(--bar) - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--line);
  border-radius: 1.125rem;
  background: var(--paper);
  box-shadow: 0 24px 60px -24px rgba(23, 60, 51, 0.45);
  transform-origin: top right;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.menu-panel.is-closing { transition-duration: 140ms; }
.menu-panel.is-from, .menu-panel.is-closing { opacity: 0; transform: translateY(-6px) scale(0.97); }
.menu-panel.is-instant { transition: none; }
.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.375rem 0;
  line-height: 1.3;
  text-decoration: none;
}
.menu-panel a:active { opacity: 0.7; }
.menu-top > li > a:not(.icon-link) { font-family: var(--serif); font-variation-settings: "opsz" 32; font-size: 1.375rem; letter-spacing: -0.015em; }
.menu-panel a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
.menu-top > li + li { border-top: 1px solid var(--line); }
.menu-label { padding: 0.75rem 0 0.125rem; font-family: var(--serif); font-variation-settings: "opsz" 32; font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.3; }
.menu-sub { padding: 0 0 0.5rem 1rem; }
.menu-sub a { min-height: 2.75rem; color: var(--field); }
.menu-panel .icon-link { display: inline-flex; margin-left: -0.75rem; }
html:not(.js) .menu-panel[hidden] { display: block !important; position: static; max-height: none; border: 0; border-radius: 0; box-shadow: none; }

@media (min-width: 60rem) {
  .bar { gap: 0; }
  .lockup { font-size: 2rem; }
  .site-footer .lockup { font-size: 1.75rem; }
  .logo { margin-right: 2rem; }
  .menu-control, .menu-panel, html:not(.js) .menu-panel[hidden] { display: none !important; }
  .menu-open .site-header::before { content: none; }
  .nav { display: flex; margin-left: auto; }
  .nav-list { display: flex; align-items: center; gap: 0.75rem; }
  .nav-list > li { position: relative; display: flex; }
  .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    padding: 0 0.625rem;
    border: 0;
    background: none;
    font-size: 0.9375rem;                 /* noHack: 16px; a touch finer here */
    font-weight: 400;
    line-height: 1.2;
    color: var(--deep);
    text-decoration: none;
    cursor: pointer;
  }
  button.nav-link { -webkit-user-select: none; user-select: none; }
  /* The current-page underline, as noHack marks it. On hover the line draws in from the left. */
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0.625rem;
    right: 0.625rem;
    bottom: 0.5rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms var(--ease-out);
  }
  button.nav-link::after { right: 1.75rem; }
  .nav-link[aria-current="page"]::after,
  .nav-link.is-current::after { transform: none; }
  .nav-link[aria-expanded="true"]::after { transform: scaleX(0); }
  .nav-link:active { color: var(--field); }
  .caret { transition: transform 180ms var(--ease-out); }
  .nav-link[aria-expanded="false"] .caret { transition-duration: 120ms; }
  .nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
  .is-instant-caret .caret { transition: none; }
  .bar > .icon-link { display: inline-flex; margin: 0 1.25rem 0 0.75rem; }

  /* Services list: a white panel with a visible edge, opening from its trigger. */
  .services-list {
    position: absolute;
    left: -0.5rem;
    top: calc(100% + 0.25rem);
    width: max-content;
    max-width: calc(100vw - 4rem);
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 0.875rem;
    background: var(--paper);
    box-shadow: 0 22px 48px -22px rgba(23, 60, 51, 0.42);
    transform-origin: 2rem top;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  }
  .services-list.is-closing { transition-duration: 120ms; }
  .services-list.is-from, .services-list.is-closing { opacity: 0; transform: translateY(-4px) scale(0.97); }
  .services-list.is-instant { transition: none; }
  .services-list a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 120ms ease;
  }
  .services-list a:focus-visible { outline-offset: -2px; border-radius: 0.5rem; }
  .services-list a:active { background: var(--wash); }
  .services-list a[aria-current="page"] { font-weight: 600; background: var(--mist); }
  html:not(.js) .has-list:focus-within .services-list[hidden] { display: block !important; }
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after { transform: none; }
  .nav-link[aria-expanded="true"]:hover::after { transform: scaleX(0); }
  .services-list a:hover { background: var(--mist); }
  .menu-panel a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
  .menu-control:hover { background: var(--mist); }
  .menu-control[aria-expanded="true"]:hover { background: var(--field); }
  .icon-link:hover { background: var(--mist); }
  .on-deep .icon-link:hover { background: rgba(255, 255, 255, 0.12); }
  .logo:hover { opacity: 0.85; }
}

/* ---------- Sections ---------- */
/* The top of every page: plain white, with room under the header. No gradients anywhere. */
.top {
  background: var(--paper);
  padding-top: clamp(3.5rem, 7.5vw, 7rem);
  padding-bottom: var(--sec);
}
.section { padding-top: var(--sec); padding-bottom: var(--sec); }

/* The deep green band carries the dot texture: a 10px dot grid anchored to its top right.
   On the home page the script hands this grid to the dot flow (see .dot-flow below). */
.band {
  position: relative;
  background: url(mark/texture.svg) right top / 10px 10px repeat, var(--deep);
  color: var(--paper);
  --focus: var(--paper);
  padding-top: var(--sec);
  padding-bottom: var(--sec);
}
/* Dot flow, home page only: the hero bean's dots travel down into the band and become its grid.
   The canvas sits above the page backgrounds and below the words. */
.dot-flow .band.flow { background: var(--deep); }
.dot-flow-canvas { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.dot-flow .hero .hero-grid, .dot-flow .band.flow > .wrap { position: relative; z-index: 2; }
@media print { .dot-flow-canvas { display: none; } .dot-flow .band.flow { background: var(--deep); } }
/* A curved top edge, as noHack's service pages curve into the navy band: level at the left, rising to the right.
   The band slides up under the section above and a mask cuts the curve, so the texture runs to the edge. */
.curve {
  margin-top: calc(-1 * var(--curve));
  padding-top: calc(var(--curve) + var(--sec) * 0.75);
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100C25 100 50 100 100 0V100Z'/%3E%3C/svg%3E") top left / 100% var(--curve) no-repeat,
    linear-gradient(#000 0 0) bottom left / 100% calc(100% - var(--curve) + 1px) no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100C25 100 50 100 100 0V100Z'/%3E%3C/svg%3E") top left / 100% var(--curve) no-repeat,
    linear-gradient(#000 0 0) bottom left / 100% calc(100% - var(--curve) + 1px) no-repeat;
}
.top:has(+ .curve) { padding-bottom: calc(var(--sec) + var(--curve)); }

/* A restrained, one-time reveal on a few key blocks. The script arms it only after the first scroll,
   and only for blocks still below the screen, so nothing is ever hidden on load. */
.is-pre { opacity: 0; transform: translateY(0.75rem); }
.is-pre.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- Home: hero ---------- */
.hero-grid { display: grid; gap: 2rem; align-items: start; }
.hero h1 { font-size: var(--display); line-height: 1.1; }
.hero .lead { margin-top: clamp(1.5rem, 3.4vw, 3rem); max-width: 34rem; }
.promise { font-weight: 700; }
/* The founder-history line holds still: one sentence, one weight, the label fused to the names. */
.proof {
  margin-top: clamp(2.5rem, 4.5vw, 4rem);
  padding-top: 1.125rem;
  max-width: 34rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-variation-settings: "opsz" 20;
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
/* The pale bean beside the headline. Its entrance lives in mark/motion.css. */
.bm-hero { width: 8.25rem; order: -1; }
.bm-hero svg, .bm-hero img { display: block; width: 100%; height: auto; }
@media (min-width: 30rem) { .hero h1 .line { white-space: nowrap; } }
@media (min-width: 48rem) {
  .hero-grid { grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); gap: 2.5rem; }
  .bm-hero { order: 0; justify-self: center; align-self: center; width: clamp(12rem, 21vw, 19rem); }
}
@media (min-width: 60rem) { .hero.top { padding-bottom: calc(var(--sec) + 0.5rem); } }

/* ---------- Home: the deep band ---------- */
.band-title { max-width: 22em; }
.band-cols { display: grid; gap: 3rem; margin-top: clamp(3rem, 6vw, 5.5rem); }
.method > span { display: block; }
.method .m-label { font-size: var(--body); line-height: 1.6; }
/* Where noHack sets three large numbers, Bread sets the three things it does: a step below the band title,
   so each one holds a single line and the three read as one group. */
.method .m {
  padding: 0.375rem 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 32;
  font-size: clamp(1.25rem, 0.95rem + 0.95vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.method .m-label + .m { margin-top: 1rem; }
.method .m + .m-label { margin-top: 1.25rem; }
.stage p { max-width: 24rem; }               /* noHack's band text column is 351px */
.stage .button { margin-top: 2.5rem; width: 100%; }
@media (min-width: 48rem) {
  .band-cols { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(4rem, 8vw, 8rem); align-items: center; }
  .stage { justify-self: end; }
  .stage .button { width: auto; }
}

/* ---------- Home: industries ---------- */
.industries-grid { display: grid; gap: 2rem; }
.caption { margin-top: 1.25rem; max-width: 26rem; font-size: var(--lead); line-height: 1.5; color: var(--field); }
.industries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
.industries li {
  padding: 1.375rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-variation-settings: "opsz" 32;
  font-size: var(--h3);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.industries li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) {
  .industries-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(4rem, 8vw, 8rem); align-items: start; }
  .industries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .industries li:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
}

/* ---------- Home: services, a circle for each ---------- */
.services { background: var(--paper); }
.services > .wrap > h2 { text-align: center; }
.service-grid {
  display: grid;
  gap: 2.25rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.service-card { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1.25rem; align-items: center; }
.circle {
  grid-row: 1 / span 2;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line);
}
.circle img, .circle svg { display: block; width: 100%; height: 100%; }
.service-card h3 { align-self: end; }
.service-card h3 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--mid);
  transition: text-decoration-color 160ms ease;
}
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 1rem; } /* the whole card is the link */
.service-card h3 a:focus-visible { outline: none; }
.service-card:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 1rem; }
.service-card h3 a:active { color: var(--field); }
.inline-list { align-self: start; margin-top: 0.375rem; color: var(--field); line-height: 1.5; }
@media (min-width: 40rem) {
  /* noHack: three, then two, centered. Circles 289px, 114px apart. */
  .service-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 5rem clamp(2.5rem, 6vw, 6.5rem); }
  .service-card { display: block; flex: 0 1 18.75rem; text-align: center; }
  .circle { width: min(100%, 15rem); margin: 0 auto 2rem; }
  .inline-list { margin-top: 0.5rem; }
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover h3 a { text-decoration-color: currentColor; }
}

/* ---------- Service circles: a pattern for each service ----------
   Each circle plays its own pattern once when it comes on screen and again when pointed at; on a
   service page the top circle plays once when it first shows. The script adds .is-playing.
   Every dot ends exactly where the still image has it, so nothing loops and nothing is held back.
   Transform and opacity only, on the skills' curves. The values each dot needs ride on it as
   custom properties (written by marks/_level_src/gen.py):
   --u, --v position; --dn distance from the notch; --dc from the bean's centre; --rx, --ry jitter. */
.svc circle { transform-box: fill-box; transform-origin: 50% 50%; }
/* Learning Design: scattered dots gather into the bean, centre first, like a course built from pieces. */
.svc-gather.is-playing circle { animation: svc-gather 900ms var(--ease-out) backwards; animation-delay: calc(var(--dc) * 520ms); }
@keyframes svc-gather { from { opacity: 0; transform: translate(calc(var(--rx) * 30px), calc(var(--ry) * 30px)) scale(0.9); } }
/* AI Literacy: a ripple starts at the notch and spreads through the dots. */
.svc-ripple.is-playing circle { animation: svc-ripple 640ms var(--ease-in-out) backwards; animation-delay: calc(var(--dn) * 1000ms); }
@keyframes svc-ripple { 0%, 100% { transform: none; } 42% { transform: scale(1.7); } }
/* AI Product Design: a wave crosses left to right, the way a cursor moves across a screen. */
.svc-wave.is-playing circle { animation: svc-wave 620ms var(--ease-in-out) backwards; animation-delay: calc(var(--u) * 900ms); }
@keyframes svc-wave { 0%, 100% { transform: none; } 40% { transform: translate(5px, -4px) scale(1.25); } }
/* Learning Research: the dots light up row by row from the top, like a scan. */
.svc-scan.is-playing circle { animation: svc-scan 460ms var(--ease-in-out) backwards; animation-delay: calc(var(--v) * 1000ms); }
@keyframes svc-scan { 0%, 100% { transform: none; opacity: 1; } 35% { transform: scale(1.6); opacity: 1; } 60% { opacity: 0.55; } }
/* Fractional CLO: loose dots fall into step, row by row, like a team getting aligned. */
.svc-align.is-playing circle { animation: svc-align 760ms var(--ease-out) backwards; animation-delay: calc(var(--v) * 640ms); }
@keyframes svc-align { from { opacity: 0.35; transform: translate(calc(var(--rx) * 8px), calc(var(--ry) * 8px)); } }
@media (prefers-reduced-motion: reduce) { .svc circle { animation: none !important; } }

/* ---------- Inner pages: title beside a visual ---------- */
.title-grid { display: grid; gap: 2rem; align-items: center; }
.top h1 { color: var(--mid); }
.hero.top h1 { color: var(--deep); }
.title-text .lead { margin-top: 1.5rem; max-width: 35rem; }
/* The service's own variation of the mark, large, where noHack sets its illustration. */
.figure {
  width: min(62%, 15rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line);
}
.figure img, .figure svg { display: block; width: 100%; height: 100%; }
@media (min-width: 48rem) {
  .title-grid { grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); gap: clamp(3rem, 8vw, 8rem); }
  .figure { justify-self: center; width: clamp(13rem, 21vw, 19rem); }
}

/* ---------- Service pages: three offerings on the deep band ---------- */
.offerings { display: grid; gap: 3rem; }
.offering { padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.offering h2 { font-size: var(--h3); line-height: 1.2; letter-spacing: -0.015em; }
.offering p { margin-top: 1rem; max-width: 36rem; }
.source { font-size: var(--small); line-height: 1.5; }
.offering .source { margin-top: 1rem; }
.source a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (min-width: 60rem) {
  .offerings { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
}
.source a { display: inline-block; padding: 0.1875rem 0; }  /* a 24px target at every width */

/* ---------- Service pages: How Bread helps ---------- */
.helps { text-align: center; }
.helps-in { max-width: 50rem; margin: 0 auto; }
.bullets { margin-top: clamp(2.25rem, 4vw, 3.5rem); text-align: left; }
.bullets li {
  position: relative;
  padding: 1.375rem 0 1.375rem 2rem;
  border-top: 1px solid var(--line);
  font-size: var(--lead);           /* the takeaway is the largest body text on the page, as on noHack */
  line-height: 1.45;
}
.bullets li:last-child { border-bottom: 1px solid var(--line); }
.bullets li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.375rem;
  margin-top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--mid);
}
.helps .button { margin-top: clamp(2.5rem, 4.5vw, 4rem); min-width: min(100%, 18.75rem); }  /* noHack: 300px wide */

/* ---------- About ---------- */
.about-grid { display: grid; gap: 3rem; }
.jump { margin-top: 1.25rem; }
.jump ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.jump a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.about h2 { font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2.125rem); color: var(--mid); }
.mission { margin-top: clamp(2.25rem, 4.5vw, 4rem); }
.mission .lead { margin-top: 1rem; max-width: 38rem; font-size: 1.125rem; line-height: 1.6; }
#advantages { margin-top: clamp(3rem, 6vw, 5rem); }
.adv { margin-top: 2.25rem; max-width: 38rem; }
.adv h3 { font-family: var(--sans); font-variation-settings: normal; font-size: 1.125rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.adv p { margin-top: 0.5rem; }
.founder h2 { margin-bottom: 1.5rem; }
.portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 25.25rem;            /* noHack: 403px square */
  aspect-ratio: 1;
  height: auto;
  border-radius: 1.25rem;
  object-fit: cover;
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--field);
  font-size: var(--small);
}
.founder-name { margin-top: 1.5rem; font-family: var(--serif); font-variation-settings: "opsz" 32; font-size: var(--h3); line-height: 1.25; letter-spacing: -0.015em; max-width: 25.25rem; }
.founder-cred { margin-top: 0.75rem; max-width: 25.25rem; }
.founder .button { margin-top: 1.75rem; }
.founder[data-photo="none"] .portrait { display: none; }
@media (min-width: 60rem) {
  .jump { display: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr) 25.25rem; gap: clamp(3rem, 8vw, 7.5rem); align-items: start; }
  .founder { padding-top: calc(var(--title) * 1.08 + clamp(1.75rem, 3.4vw, 3rem)); }   /* "Our CEO" sits level with "Our mission" */
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
.contact-text .lead { margin-top: 1.5rem; max-width: 34rem; font-size: 1.125rem; line-height: 1.6; }
.contact-text .lead + .lead { margin-top: 1rem; }
.contact-text h2 {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  max-width: 22rem;               /* noHack: a 351px rule above "Our headquarters" */
  border-top: 1px solid var(--line);
  font-size: var(--h3);
  color: var(--mid);
}
.hq { margin-top: 0.875rem; }
.hq li { padding: 0.125rem 0; }
.jump-gov { margin-top: 1.25rem; }
.jump-gov a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.panel h2 { font-size: var(--h3); }
.field { margin-top: 1.125rem; }
.panel h2 + form .field:first-child { margin-top: 1.5rem; }
.field label { display: block; margin-bottom: 0.375rem; padding-left: 0.25rem; font-size: 0.9375rem; font-weight: 500; line-height: 1.3; }
.field label .mark-req { font-weight: 400; color: var(--field); }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 3rem;                /* noHack: 46px pills */
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--mid);
  border-radius: 1.5rem;
  background: var(--paper);
  color: var(--deep);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 8rem; max-height: 30rem; field-sizing: content; border-radius: 1.25rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; border-radius: 1.5rem; }
.field [aria-invalid="true"] { border: 2px solid var(--alert); padding: calc(0.625rem - 1px) calc(1.125rem - 1px); }
.error {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-left: 0.25rem;
  color: var(--alert);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  transition: opacity 200ms var(--ease-out);
}
.error svg { margin-top: 0.15em; }
@starting-style { .error { opacity: 0; } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.75rem; }
.form-foot .button { min-width: 7.5rem; }
.reply { color: var(--field); font-size: 0.9375rem; }
.status h2 { transition: opacity 200ms var(--ease-out); }
.status h2:focus { outline: none; }
.status p { margin-top: 0.75rem; transition: opacity 200ms var(--ease-out); }
@starting-style { .status h2, .status p { opacity: 0; } }
@media (min-width: 60rem) {
  /* noHack: details and form side by side, each 507px. */
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 31.75rem); gap: clamp(3rem, 8vw, 7rem); align-items: start; }
  .panel { padding-top: 0.75rem; }
}
@media (hover: hover) and (pointer: fine) {
  .field input:hover, .field textarea:hover { border-color: var(--deep); box-shadow: 0 0 0 3px var(--mist); }
  .field [aria-invalid="true"]:hover { border-color: var(--alert); }
}

/* Public sector buyers: the palest band, with the same curved edge. */
.gov {
  background: var(--wash);
  --gov-top: calc(var(--curve) + var(--sec) * 0.75);
  padding-top: var(--gov-top);
  padding-bottom: var(--sec);
  scroll-margin-top: calc(-1 * var(--gov-top));   /* #government lands with its heading 1rem under the header */
}
.gov-grid { display: grid; gap: 2.5rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.gov-text p { max-width: 36rem; }
.gov-text p + p { margin-top: 1rem; }
.gov-text .source { margin-top: 0.5rem; color: var(--field); }
.facts > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.gov .facts > div, .gov .facts > div:last-child { border-color: #b2cdc1; }
.facts dt { font-weight: 600; }
.facts dd { margin-top: 0.25rem; }
@media (min-width: 60rem) {
  .gov-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 7rem); }
  .facts > div:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- Footer: links, the lockup and the firm's details on every page ---------- */
.site-footer { padding-top: clamp(3rem, 5vw, 4.5rem); padding-bottom: calc(clamp(3rem, 5vw, 4.5rem) + env(safe-area-inset-bottom, 0px)); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.site-footer .lockup { color: var(--paper); }
/* The small mark is brand green; on the deep footer it is shown in white. */
.site-footer .lockup-mark svg, .site-footer .lockup-mark img { filter: brightness(0) invert(1); opacity: 0.9; }
.firm p:last-child { margin-top: 1.25rem; }
.firm p:last-child > span { display: block; }
.foot-nav { display: grid; gap: 1.5rem 3.5rem; align-items: start; }
.foot-nav a:not(.icon-link) {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 160ms ease;
}
.foot-nav a[aria-current="page"] { text-decoration-color: currentColor; }
.foot-nav .icon-link { margin: -0.375rem 0 0 -0.75rem; }
@media (min-width: 40rem) {
  .foot-nav { grid-template-columns: auto auto auto; justify-content: start; }
}
@media (min-width: 60rem) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; }
}
@media (hover: hover) and (pointer: fine) {
  .foot-nav a:not(.icon-link):hover, .source a:hover { text-decoration-color: currentColor; }
  .jump a:hover, .jump-gov a:hover { text-decoration-thickness: 2px; }
}

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .menu-panel, .services-list { transition: opacity 120ms ease; }
  .menu-panel.is-from, .menu-panel.is-closing, .services-list.is-from, .services-list.is-closing { transform: none; }
  .button, .menu-control, .circle img, .nav-link::after, .caret, .error, .status h2, .status p { transition: none; }
  .button:active, .menu-control:active { transform: none; }
  .is-pre { opacity: 1; transform: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #3a7262; --mid: #275a4b; }
  .offering { border-top-color: #ffffff; }
}
@media print {
  .site-header { position: static; box-shadow: none; }
  .nav, .menu-control, .menu-panel, .bar > .button, .bar > .icon-link, .site-footer, .bm-hero { display: none !important; }
  .top, .services, .gov { background: #fff !important; }
  .band { background: #fff !important; color: #000 !important; -webkit-mask: none; mask: none; margin-top: 0; }
  .offering { border-top-color: #000; }
  .is-pre { opacity: 1 !important; transform: none !important; }
}
