/*
 * The Werks' faces, served from this pack at /_pack/thewerks/fonts/ to this tenant's host only (custom mode D12/D13).
 * Here, never in the shared CSS bundle: check:css-scope refuses @font-face there (brain W554). The family names carry
 * the pack's prefix, so no other tenant's text can pick them up even if this file were served elsewhere.
 *
 * Only the weights the launch pages use load: Metropolis 400 / 500 / 600 / 700 (the canvas's 300 is declared there
 * but used by no board), Dazzle Unicase Heavy for the headings (declared at 700, as the canvas's `.d`).
 */
@font-face {
  font-family: "twk-metropolis";
  src: url(/_pack/thewerks/fonts/metropolis-400.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "twk-metropolis";
  src: url(/_pack/thewerks/fonts/metropolis-500.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "twk-metropolis";
  src: url(/_pack/thewerks/fonts/metropolis-600.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "twk-metropolis";
  src: url(/_pack/thewerks/fonts/metropolis-700.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "twk-dazzle";
  src: url(/_pack/thewerks/fonts/dazzle-unicase-heavy.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/*
 * The page's own defaults, as the canvas draws them (tw.css `.pg`): Metropolis at 20 px / 1.45 in black on cream, the
 * text antialiased; the body a column whose <main> grows, so a short page keeps the footer at the bottom. The phone
 * scale (the boards' `@container page (max-width: 760px)`, here the viewport) redefines the size tokens. Every rule
 * sits under [data-template='thewerks'], although only this tenant's host is ever sent this file (/_pack/, custom mode
 * D12): a rule that reached another page would still match nothing there.
 */
[data-template='thewerks'] body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: var(--twk-cream);
  color: var(--twk-ink);
  font-family: var(--twk-font);
  font-size: var(--twk-text);
  font-weight: 400;
  line-height: var(--twk-lh);
  -webkit-font-smoothing: antialiased;
}
/* a photo bleeding to the edge never scrolls the page sideways; `clip` makes no scroll container, so sticky works */
[data-template='thewerks'] .twk-main {
  position: relative;
  flex: 1 0 auto;
  overflow-x: clip;
}
[data-template='thewerks'] .twk-main :where(img) {
  max-width: 100%;
}

/* the focus ring: 2 px, offset 3 px, in the ink on light grounds and the cream on the dark ones (the footer, the menu,
   the phone bar). No board draws focus; this is ours (WCAG 2.4.7). */
[data-template='thewerks'] :focus-visible {
  outline: 2px solid var(--twk-ink);
  outline-offset: 3px;
}
[data-template='thewerks'] :is(.twk-ftr, .twk-menu, .twk-tabbar, .twk-pill) :focus-visible {
  outline-color: var(--twk-cream);
}

[data-template='thewerks'] .twk-skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 5px;
  background: var(--twk-ink);
  color: var(--twk-cream);
  font-weight: 600;
  text-decoration: none;
}
[data-template='thewerks'] .twk-skip:focus {
  top: 12px;
}

/* the content column (`.wrap`) */
[data-template='thewerks'] .twk-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--twk-wrap);
  margin-inline: auto;
  padding-inline: var(--twk-gut);
}

/* the buttons (`.btn`, `.btn-ink`, `.btn-ghost`). Hover and focus are ours (no board draws them): the pink button goes
   ink, the ink one pink, the ghost one fills. */
[data-template='thewerks'] .twk-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid var(--twk-pink);
  border-radius: 5px;
  background: var(--twk-pink);
  color: var(--twk-cream);
  font: 600 20px/1.1 var(--twk-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
[data-template='thewerks'] .twk-btn:hover {
  border-color: var(--twk-ink);
  background: var(--twk-ink);
}
[data-template='thewerks'] .twk-btn--ink {
  border-color: var(--twk-ink);
  background: var(--twk-ink);
  color: var(--twk-cream);
}
[data-template='thewerks'] .twk-btn--ink:hover {
  border-color: var(--twk-cream);
  background: var(--twk-cream);
  color: var(--twk-ink);
}
[data-template='thewerks'] .twk-btn--ghost {
  border-color: var(--twk-ink);
  background: transparent;
  color: var(--twk-ink);
}
[data-template='thewerks'] .twk-btn--ghost:hover {
  background: var(--twk-ink);
  color: var(--twk-cream);
}

[data-template='thewerks'] .twk-ico {
  flex: none;
  width: 22px;
  height: 22px;
}
[data-template='thewerks'] .twk-sq {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
}
[data-template='thewerks'] .twk-sq--teal {
  background: var(--twk-teal);
}
[data-template='thewerks'] .twk-sq--pink {
  background: var(--twk-pink);
}
[data-template='thewerks'] .twk-sq--amber {
  background: var(--twk-amber);
}

@media (prefers-reduced-motion: reduce) {
  [data-template='thewerks'] *,
  [data-template='thewerks'] *::before,
  [data-template='thewerks'] *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* the phone scale (the boards' 760 px break) */
@media (max-width: 760px) {
  [data-template='thewerks'] {
    --twk-gut: 20px;
    --twk-text: 17px;
    --twk-d-mega: 56px;
    --twk-d-xxl: 46px;
    --twk-d-xl: 40px;
    --twk-d-l: 34px;
    --twk-d-m: 30px;
    --twk-d-s: 24px;
    --twk-d-xs: 20px;
    --twk-lead: 21px;
    --twk-body-l: 18px;
    --twk-small: 15px;
    --twk-eyebrow: 16px;
    /* --twk-sec stays 112px: the board's later `.sec { padding-block: 112px }` overrides its own phone rule, and the
       phone boards are drawn that way (measured, ctx-273) */
  }
  [data-template='thewerks'] .twk-btn {
    min-height: 52px;
    padding: 12px 22px;
    font-size: 19px;
    white-space: normal;
    text-align: center;
  }
}

/*
 * The chrome (src/chrome/*.astro), from the canvas's boards and tw.css (read 2026-11-23):
 *   bar      `TwHeaderLaunch` / `.hdr`, `.hdr-in`, `.hdr-logo`, `.hdr-nav`, `.hdr-cta`
 *   pill     `Pick-scrolled` / `MenuPillCream`, `.menupill`
 *   menu     `Pick-open` / `MenuOverlay`, `.overlay`, `.overlay-list`
 *   phone    `Pick-phone-first` (menu A) / `.hdr-bn`, `.tabbar`, `.popup`, `.dim`; 760 px and below
 *   footer   `TwFooterLaunch` / `.f2-cta`, `.f2-mail`, `.ftr`, `.f2-main`, `.ftr-h`, `.ftr-list`, `.ftr-legal`
 *
 * Deliberate differences from the boards (each the owner's to overrule):
 *   - the menu has no photo on its left: a chrome holds two logos and no other image (a chrome field for it would be a
 *     new field, brain W664); the list takes the full width, up to 960 px;
 *   - the phone bar dims with the page while the Services pop-up is open (the browser's top layer; the board keeps
 *     the bar bright);
 *   - 761 to 1100 px (no board): the bar shows the logo, Contact and a "Menu" button, as the full nav does not fit;
 *     the footer's three link columns sit under the logo (four columns do not fit the email); on the phone
 *     "Say hello" takes the full width for the same reason;
 *   - hover and focus states are ours (the boards draw none): links underline in pink, buttons swap ground.
 * Motion: transitions only (no @keyframes, W554), none under prefers-reduced-motion (10-base.css).
 */

/* ---- the bar ---- */
[data-template='thewerks'] .twk-hdr {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--twk-line-hdr);
  background: var(--twk-cream-2);
}
[data-template='thewerks'] .twk-hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 104px;
}
[data-template='thewerks'] .twk-hdr__home {
  display: block;
  flex: none;
  color: var(--twk-ink);
  text-decoration: none;
}
[data-template='thewerks'] .twk-hdr__logo {
  display: block;
  width: 236px;
  height: auto;
}
[data-template='thewerks'] .twk-hdr__wordmark,
[data-template='thewerks'] .twk-menu__wordmark,
[data-template='thewerks'] .twk-ftr__wordmark {
  margin: 0;
  font-family: var(--twk-font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
[data-template='thewerks'] .twk-hdr__nav {
  display: flex;
  gap: 34px;
  font-size: 19px;
  font-weight: 500;
}
[data-template='thewerks'] .twk-hdr__nav a {
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  color: var(--twk-ink);
  text-decoration: none;
  transition: border-color 0.2s;
}
[data-template='thewerks'] .twk-hdr__nav a:hover,
[data-template='thewerks'] .twk-hdr__nav a.is-current {
  border-bottom-color: var(--twk-pink);
}
[data-template='thewerks'] .twk-hdr__end {
  display: flex;
  align-items: center;
  gap: 16px;
}
[data-template='thewerks'] .twk-hdr__cta {
  min-height: 46px;
  padding: 10px 24px;
  font-size: 19px;
}
[data-template='thewerks'] .twk-hdr__menu {
  display: none;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--twk-ink);
  border-radius: 5px;
  background: transparent;
  color: var(--twk-ink);
  font: 600 17px var(--twk-font);
  cursor: pointer;
}
[data-template='thewerks'] .twk-hdr__menu:hover {
  background: var(--twk-ink);
  color: var(--twk-cream);
}

/* ---- the scrolled pill (Pick-scrolled: centred, 20 px from the top) ---- */
[data-template='thewerks'] .twk-pill {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--twk-ink);
  box-shadow: var(--twk-shadow-bar);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
[data-template='thewerks'] .twk-hdr[data-scrolled] .twk-pill {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
[data-template='thewerks'] .twk-pill__menu,
[data-template='thewerks'] .twk-pill__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: 600 17px var(--twk-font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
[data-template='thewerks'] .twk-pill__menu {
  background: transparent;
  color: var(--twk-cream);
}
[data-template='thewerks'] .twk-pill__menu:hover {
  background: var(--twk-ink-2);
}
[data-template='thewerks'] .twk-pill__cta {
  background: var(--twk-cream);
  color: var(--twk-ink);
}
[data-template='thewerks'] .twk-pill__cta:hover {
  background: var(--twk-pink);
  color: var(--twk-ink);
}

/* ---- the menu (Pick-open: full screen, black) ---- */
[data-template='thewerks'] .twk-menu {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--twk-ink);
  color: var(--twk-cream);
  overflow-y: auto;
}
[data-template='thewerks'] .twk-menu::backdrop {
  background: var(--twk-ink);
}
[data-template='thewerks'] .twk-menu__in {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100%;
  max-width: 1088px;
  margin-inline: auto;
  padding: 40px 64px 48px;
}
[data-template='thewerks'] .twk-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
[data-template='thewerks'] .twk-menu__logo {
  display: block;
  width: 200px;
  height: auto;
}
[data-template='thewerks'] .twk-menu__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px;
  border: 1.5px solid var(--twk-cream);
  border-radius: 999px;
  background: var(--twk-ink);
  color: var(--twk-cream);
  font: 600 17px var(--twk-font);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
[data-template='thewerks'] .twk-menu__close:hover {
  background: var(--twk-cream);
  color: var(--twk-ink);
}
[data-template='thewerks'] .twk-menu__list a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--twk-line-menu);
  color: var(--twk-cream);
  text-decoration: none;
}
[data-template='thewerks'] .twk-menu__list a:last-child {
  border-bottom: 1px solid var(--twk-line-menu);
}
[data-template='thewerks'] .twk-menu__n {
  color: var(--twk-muted-dark);
  font-size: 16px;
}
[data-template='thewerks'] .twk-menu__label {
  display: inline-flex;
  align-items: center;
  font-family: var(--twk-font-display);
  font-size: var(--twk-d-l);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  transition: color 0.2s;
}
[data-template='thewerks'] .twk-menu__label .twk-sq {
  width: 14px;
  height: 14px;
  margin-right: 14px;
}
[data-template='thewerks'] .twk-menu__list a:hover .twk-menu__label {
  color: var(--twk-pink);
}
[data-template='thewerks'] .twk-menu__arrow {
  transition: transform 0.2s;
}
[data-template='thewerks'] .twk-menu__list a:hover .twk-menu__arrow {
  transform: translateX(4px);
}
[data-template='thewerks'] .twk-menu__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: auto;
  font-size: 20px;
}
[data-template='thewerks'] .twk-menu__contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--twk-cream);
  text-decoration: none;
}
[data-template='thewerks'] .twk-menu__contact a:hover {
  text-decoration: underline;
  text-decoration-color: var(--twk-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---- the phone tab bar and its pop-up (hidden above 760 px) ---- */
[data-template='thewerks'] .twk-tabbar {
  display: none;
}
[data-template='thewerks'] .twk-services:popover-open {
  box-sizing: border-box;
  position: fixed;
  inset: auto 0 calc(104px + env(safe-area-inset-bottom, 0px)) 0;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
[data-template='thewerks'] .twk-services::backdrop {
  background: var(--twk-dim);
}
[data-template='thewerks'] .twk-services ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
[data-template='thewerks'] .twk-services a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  box-sizing: border-box;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--twk-cream-2);
  box-shadow: var(--twk-shadow-pill);
  color: var(--twk-ink);
  font: 600 17px var(--twk-font);
  text-decoration: none;
}

/* ---- the footer ---- */
[data-template='thewerks'] .twk-band {
  padding-block: 96px;
  background: var(--twk-pink);
  color: var(--twk-ink);
}
[data-template='thewerks'] .twk-band__in {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
[data-template='thewerks'] .twk-band__h {
  margin: 0;
  font-family: var(--twk-font-display);
  font-size: var(--twk-d-mega);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
[data-template='thewerks'] .twk-band__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
[data-template='thewerks'] .twk-band__mail {
  color: var(--twk-ink);
  font-size: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
[data-template='thewerks'] .twk-band__mail:hover {
  text-decoration-color: var(--twk-cream);
}
[data-template='thewerks'] .twk-ftr {
  background: var(--twk-ink);
  color: var(--twk-cream);
}
[data-template='thewerks'] .twk-ftr a {
  color: var(--twk-cream);
  text-decoration: none;
}
[data-template='thewerks'] .twk-ftr a:hover {
  text-decoration: underline;
  text-decoration-color: var(--twk-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
[data-template='thewerks'] .twk-ftr__main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-block: 72px 48px;
}
[data-template='thewerks'] .twk-ftr__logo {
  display: block;
  width: 220px;
  height: auto;
}
[data-template='thewerks'] .twk-ftr__h {
  margin: 0 0 18px;
  color: var(--twk-pink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[data-template='thewerks'] .twk-ftr__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 19px;
  list-style: none;
}
[data-template='thewerks'] .twk-ftr__ico {
  display: inline-flex;
  /* top: a baseline-aligned inline-flex leaves the strut's descender under it, 5.5 px a row more than the board */
  vertical-align: top;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
[data-template='thewerks'] .twk-ftr__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--twk-line-dark);
  color: var(--twk-muted-dark);
  font-size: 15px;
}
[data-template='thewerks'] .twk-ftr__legal p {
  margin: 0;
}
[data-template='thewerks'] .twk-ftr__legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
[data-template='thewerks'] .twk-ftr__legal a {
  color: var(--twk-muted-dark);
}

/* ---- 761 to 1100 px: the full nav does not fit; a Menu button in its place ---- */
@media (max-width: 1100px) {
  [data-template='thewerks'] .twk-hdr__nav {
    display: none;
  }
  [data-template='thewerks'] .twk-hdr__menu {
    display: inline-flex;
  }
  /* four columns do not fit the email; two, the brand column on its own row (the phone's layout, wider gaps) */
  [data-template='thewerks'] .twk-ftr__main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
  }
  [data-template='thewerks'] .twk-ftr__main > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---- the phone (the boards' 760 px break; Pick-phone-first, menu A) ---- */
@media (max-width: 760px) {
  [data-template='thewerks'] .twk-hdr__in {
    justify-content: center;
    gap: 12px;
    height: 72px;
  }
  [data-template='thewerks'] .twk-hdr__logo {
    width: 150px;
  }
  [data-template='thewerks'] .twk-hdr__end,
  [data-template='thewerks'] .twk-pill {
    display: none;
  }
  [data-template='thewerks'] .twk-tabbar {
    box-sizing: border-box;
    position: fixed;
    right: 12px;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 40;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    align-items: center;
    padding: 8px;
    border-radius: 999px;
    background: var(--twk-ink);
    box-shadow: var(--twk-shadow-bar);
    color: var(--twk-cream);
  }
  [data-template='thewerks'] .twk-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 44px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: 600 11px var(--twk-font);
    text-decoration: none;
    cursor: pointer;
  }
  [data-template='thewerks'] .twk-tab.is-current,
  [data-template='thewerks'] .twk-tab:hover,
  [data-template='thewerks'] body:has(.twk-services:popover-open) .twk-tab[popovertarget] {
    color: var(--twk-pink);
  }
  /* while the pop-up is open, "Home" is not the highlighted item (Pick-phone-first, the third frame) */
  [data-template='thewerks'] body:has(.twk-services:popover-open) .twk-tab.is-current:not([popovertarget]) {
    color: var(--twk-cream);
  }
  [data-template='thewerks'] .twk-tab--cta {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    padding: 0;
    border-radius: 50%;
    background: var(--twk-pink);
    color: var(--twk-ink);
  }
  [data-template='thewerks'] .twk-tab--cta:hover,
  [data-template='thewerks'] .twk-tab--cta.is-current {
    color: var(--twk-ink);
  }
  [data-template='thewerks'] .twk-menu__in {
    padding: 24px 20px 32px;
  }
  [data-template='thewerks'] .twk-menu__list a {
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 10px;
    padding-block: 13px;
  }
  [data-template='thewerks'] .twk-band {
    padding-block: 56px;
  }
  [data-template='thewerks'] .twk-band__mail {
    font-size: 24px;
  }
  [data-template='thewerks'] .twk-ftr {
    padding-bottom: var(--twk-tabbar-space);
  }
  [data-template='thewerks'] .twk-ftr__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
    padding-block: 48px 32px;
  }
  /* the brand, and "Say hello" (the email does not fit half a phone), take the full width */
  [data-template='thewerks'] .twk-ftr__main > :first-child,
  [data-template='thewerks'] .twk-ftr__col--hello {
    grid-column: 1 / -1;
  }
  [data-template='thewerks'] .twk-ftr__list {
    font-size: 17px;
  }
  [data-template='thewerks'] .twk-ftr__legal {
    flex-direction: column;
    gap: 12px;
  }
}

/*
 * The canvas's shared section vocabulary (tw.css: `.sec`, `.d`, `.lead`, `.body-l`, `.small`, `.muted`, `.eyebrow`,
 * `.bars`, `.tag`, `.num`, `.ph`, `.lnk`, `.avatar`, `.ha-head`, `.btn-line`, `.svc-chip`), as `twk-` classes the section
 * components carry. Sizes come from the token scale, which 10-base.css redefines for the phone.
 */
[data-template='thewerks'] .twk-main :where(h1, h2, h3, p, figure, blockquote, ul, ol) {
  margin: 0;
}
[data-template='thewerks'] .twk-main :where(ul, ol) {
  padding: 0;
  list-style: none;
}
[data-template='thewerks'] :where(.twk-main a) {
  color: inherit;
}
[data-template='thewerks'] .twk-main img {
  display: block;
  max-width: 100%;
}
[data-template='thewerks'] .twk-sec {
  padding-block: var(--twk-sec);
}
[data-template='thewerks'] .twk-d {
  font-family: var(--twk-font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
[data-template='thewerks'] .twk-lead {
  font-size: var(--twk-lead);
  line-height: 1.35;
}
[data-template='thewerks'] .twk-body-l {
  font-size: var(--twk-body-l);
  line-height: 1.5;
}
[data-template='thewerks'] .twk-small {
  font-size: var(--twk-small);
  line-height: 1.45;
}
[data-template='thewerks'] .twk-muted {
  color: var(--twk-muted);
}
[data-template='thewerks'] .twk-t-pink {
  color: var(--twk-pink);
}
[data-template='thewerks'] .twk-t-teal {
  color: var(--twk-teal-700);
}
[data-template='thewerks'] .twk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--twk-eyebrow);
  font-weight: 500;
  letter-spacing: 0.01em;
}
[data-template='thewerks'] .twk-bars {
  display: inline-flex;
  flex: none;
  flex-direction: column;
  gap: 1px;
}
[data-template='thewerks'] .twk-bars i {
  display: block;
  width: 16px;
  height: 7px;
}
[data-template='thewerks'] .twk-bars i:nth-child(1) {
  background: var(--twk-teal);
}
[data-template='thewerks'] .twk-bars i:nth-child(2) {
  background: var(--twk-pink);
}
[data-template='thewerks'] .twk-bars i:nth-child(3) {
  background: var(--twk-amber);
}
[data-template='thewerks'] .twk-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--twk-ink);
  color: var(--twk-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}
[data-template='thewerks'] .twk-num {
  font-family: var(--twk-font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
}
[data-template='thewerks'] .twk-ph {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}
[data-template='thewerks'] .twk-lnk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--twk-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
[data-template='thewerks'] .twk-lnk:hover {
  text-decoration-color: var(--twk-ink);
}
[data-template='thewerks'] .twk-avatar {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border: 2px solid var(--twk-cream-2);
  border-radius: 50%;
  object-fit: cover;
}
[data-template='thewerks'] .twk-btn--line {
  border-color: var(--twk-ink);
  background: transparent;
  color: var(--twk-ink);
}
[data-template='thewerks'] .twk-btn--line:hover {
  background: var(--twk-ink);
  color: var(--twk-cream);
}
/* a section's head row (`.ha-head`): the eyebrow and heading, with an optional line on the right */
[data-template='thewerks'] .twk-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 64px;
}
[data-template='thewerks'] .twk-head__main,
[data-template='thewerks'] .twk-ways .twk-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
/* the service chips (`.svc-chip`): the service's colour, black text */
[data-template='thewerks'] .twk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--twk-ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.2s;
}
[data-template='thewerks'] .twk-chip:hover {
  box-shadow: inset 0 0 0 2px var(--twk-ink);
}
[data-template='thewerks'] .twk-chip--foundation {
  background: var(--twk-teal);
}
[data-template='thewerks'] .twk-chip--expand {
  background: var(--twk-pink);
}
[data-template='thewerks'] .twk-chip--build {
  background: var(--twk-amber);
}

@media (max-width: 760px) {
  [data-template='thewerks'] .twk-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
  }
}

/* thewerks-hero@v1 — canvas `Hero3` (`.h3`, `.h3-txt`, `.h3-img`, `.proof`; the board's inline styles). */
[data-template='thewerks'] .twk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 760px;
  background: var(--twk-pink);
  color: var(--twk-ink);
}
[data-template='thewerks'] .twk-hero__txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  /* the board's `max(60px, calc((100vw - 1320px) / 2))`: padding % = the cell (half the hero), so ×2 = its width */
  padding: 80px 64px 80px max(var(--twk-gut), calc((100% * 2 - var(--twk-wrap)) / 2));
}
[data-template='thewerks'] .twk-hero__h {
  font-size: var(--twk-d-xxl);
}
[data-template='thewerks'] .twk-hero__intro {
  max-width: 600px;
  font-size: var(--twk-body-l);
  line-height: 1.5;
}
[data-template='thewerks'] .twk-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
[data-template='thewerks'] .twk-hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding-top: 20px;
  border-top: 1.5px solid var(--twk-ink);
  font-size: 17px;
  font-weight: 500;
}
[data-template='thewerks'] .twk-hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
[data-template='thewerks'] .twk-hero__badge {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 2px;
  border-radius: 50%;
  background: var(--twk-ink);
  object-fit: contain;
}
[data-template='thewerks'] .twk-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the board's crop of the crossing photo; a focal point set in the media library comes inline and wins */
  object-position: 22% 50%;
}
@media (max-width: 1100px) {
  [data-template='thewerks'] .twk-hero__txt {
    padding: 64px 40px 64px var(--twk-gut);
  }
}
@media (max-width: 760px) {
  [data-template='thewerks'] .twk-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  [data-template='thewerks'] .twk-hero__txt {
    padding: 40px 20px;
  }
  [data-template='thewerks'] .twk-hero__img {
    height: 360px;
  }
}

/* `headingSize: "medium"` — /about's top (canvas `About30`, tw-about.css `.twa-hero`; docs/planning/
   20261130-thewerks-about.md §6.1): the long first line at 56 px, the line under it as a lead, the photo held to the
   text's height (`height: 0; min-height: 100%`: a tall crop never stretches the row) */
[data-template='thewerks'] .twk-hero[data-headingsize='medium'] .twk-hero__txt {
  gap: 28px;
}
[data-template='thewerks'] .twk-hero[data-headingsize='medium'] .twk-hero__h {
  font-size: 56px;
}
[data-template='thewerks'] .twk-hero[data-headingsize='medium'] .twk-hero__intro {
  max-width: none;
  font-size: var(--twk-lead);
  line-height: 1.35;
}
[data-template='thewerks'] .twk-hero[data-headingsize='medium'] .twk-hero__img {
  height: 0;
  min-height: 100%;
}
@media (max-width: 760px) {
  [data-template='thewerks'] .twk-hero[data-headingsize='medium'] .twk-hero__txt {
    gap: 20px;
  }
  [data-template='thewerks'] .twk-hero[data-headingsize='medium'] .twk-hero__h {
    font-size: 34px;
  }
  [data-template='thewerks'] .twk-hero[data-headingsize='medium'] .twk-hero__img {
    height: 360px;
    min-height: 0;
  }
}

/* thewerks-purpose@v1 — canvas `Purpose2b` (`.bg-navy`, `.hb-intro`, `.p2-state`, `.p2-s1`, `.p2-s2`). */
[data-template='thewerks'] .twk-purpose {
  background: var(--twk-navy);
  color: var(--twk-cream);
}
[data-template='thewerks'] .twk-purpose__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
}
[data-template='thewerks'] .twk-purpose__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
[data-template='thewerks'] .twk-purpose__h {
  color: var(--twk-cream);
  font-size: var(--twk-d-xl);
}
[data-template='thewerks'] .twk-purpose__body {
  color: var(--twk-muted-dark);
}
[data-template='thewerks'] .twk-purpose__img {
  height: 480px;
  object-position: 50% 45%;
}
[data-template='thewerks'] .twk-purpose__state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--twk-line-navy);
}
[data-template='thewerks'] .twk-purpose__s1 {
  color: var(--twk-cream);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}
[data-template='thewerks'] .twk-purpose__s2 {
  color: var(--twk-muted-dark);
  font-size: 24px;
  line-height: 1.45;
}
@media (max-width: 760px) {
  [data-template='thewerks'] .twk-purpose__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  [data-template='thewerks'] .twk-purpose__state {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
  }
  [data-template='thewerks'] .twk-purpose__s1 {
    font-size: 22px;
  }
  [data-template='thewerks'] .twk-purpose__s2 {
    font-size: 18px;
  }
}

/* thewerks-match@v1 — canvas `Match3b` (`.m3`, `.m3-row`, `.m3-check`, `.pay`, `.svc-chip`; the board's inline styles). */
[data-template='thewerks'] .twk-match {
  background: var(--twk-cream);
}
[data-template='thewerks'] .twk-match__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 80px;
}
[data-template='thewerks'] .twk-match__head {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 24px;
}
[data-template='thewerks'] .twk-match__h {
  font-size: var(--twk-d-l);
}
/* `itemsLead` ("Hey, is this you?"): no board draws it; the owner placed it over the situations (2026-11-30, ctx-287) */
[data-template='thewerks'] .twk-match__lead {
  margin: 0 0 20px;
  font-size: var(--twk-body-l);
  font-weight: 700;
  line-height: 1.45;
}
[data-template='thewerks'] .twk-match__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding-block: 32px;
  border-top: 1.5px solid var(--twk-ink);
}
[data-template='thewerks'] .twk-match__row:last-child {
  border-bottom: 1.5px solid var(--twk-ink);
}
[data-template='thewerks'] .twk-match__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--twk-ink);
  color: var(--twk-cream);
}
[data-template='thewerks'] .twk-match__check svg {
  width: 22px;
  height: 22px;
}
[data-template='thewerks'] .twk-match__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
[data-template='thewerks'] .twk-match__pay {
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
}
[data-template='thewerks'] .twk-match__next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
[data-template='thewerks'] .twk-match__next > span {
  font-size: var(--twk-small);
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 760px) {
  [data-template='thewerks'] .twk-match__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  /* the board's inline 44px column holds on the phone too (it outranks the phone rule's 36px) */
  [data-template='thewerks'] .twk-match__row {
    gap: 14px;
  }
  [data-template='thewerks'] .twk-match__check {
    width: 34px;
    height: 34px;
  }
  [data-template='thewerks'] .twk-match__pay {
    font-size: 17px;
  }
}

/* thewerks-ways@v1 — canvas `Ways2b` (`.ha-head`, `.hb-found`, `.ha-sub`, `.hb-pair`, `.hb-card.hb-neutral`, `.num`). */
[data-template='thewerks'] .twk-ways {
  background: var(--twk-cream);
}
[data-template='thewerks'] .twk-ways__h {
  font-size: var(--twk-d-xl);
}
[data-template='thewerks'] .twk-ways__first {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  padding: 48px;
  border: 1.5px solid var(--twk-ink);
  border-radius: 10px;
  background: var(--twk-cream-2);
  scroll-margin-top: 96px;
}
[data-template='thewerks'] .twk-ways__intro,
[data-template='thewerks'] .twk-ways__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
[data-template='thewerks'] .twk-ways__tagrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
[data-template='thewerks'] .twk-ways__sq {
  width: 16px;
  height: 16px;
}
[data-template='thewerks'] .twk-ways__name {
  font-size: var(--twk-d-l);
}
[data-template='thewerks'] .twk-ways__sub {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}
[data-template='thewerks'] .twk-ways__lead {
  margin-top: 8px;
  font-size: 24px;
}
[data-template='thewerks'] .twk-ways__md {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: var(--twk-body-l);
  line-height: 1.5;
}
[data-template='thewerks'] .twk-ways__md--card {
  gap: 20px;
  font-size: 19px;
  line-height: 1.45;
}
[data-template='thewerks'] .twk-ways__md :where(p, ul, ol) {
  margin: 0;
}
[data-template='thewerks'] .twk-ways__bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
[data-template='thewerks'] .twk-ways__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
[data-template='thewerks'] .twk-ways__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 44px;
  border: 1.5px solid var(--twk-ink);
  border-radius: 10px;
  background: var(--twk-cream-2);
  color: var(--twk-ink);
  scroll-margin-top: 96px;
}
[data-template='thewerks'] .twk-ways__cardlead {
  font-size: 19px;
}
[data-template='thewerks'] .twk-ways__btn {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
[data-template='thewerks'] .twk-ways__btn--end {
  margin-top: auto;
}
@media (max-width: 760px) {
  [data-template='thewerks'] .twk-ways__first,
  [data-template='thewerks'] .twk-ways__pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  [data-template='thewerks'] .twk-ways__first,
  [data-template='thewerks'] .twk-ways__card {
    padding: 26px;
  }
  [data-template='thewerks'] .twk-ways__sub {
    font-size: 19px;
  }
  [data-template='thewerks'] .twk-ways__bridge {
    text-align: center;
  }
}

/*
 * thewerks-stories@v1 + the reviews@v1 section placed right after it — canvas `Stories2` (`.ha-head`, `.hb-qgrid`,
 * `.hb-qbig`, `.hb-qsm`, `.q-big`, `.who`, `.stars`). Base draws the reviews (one <figure data-review> each: the
 * quote, then a figcaption with author, role, the stars as text). The board (`Stories2`) drew one large black card with
 * two small ones stacked beside it, for one long quote and two short ones; with the real quotes the owner chose three
 * EQUAL cards side by side (2026-11-30, ctx-287, option A): the first black, the others cream, as tall as the tallest,
 * the name at the bottom; two cards (until the third is approved) take half the row each. The stars move above the
 * quote (the board), by `order`. The section's ground and side padding match
 * the head above it, so the two read as one block. No review JSON-LD (C4; base emits none).
 */
[data-template='thewerks'] .twk-stories {
  padding-block: var(--twk-sec) 64px;
  background: var(--twk-cream-2);
}
/* the head's own margin would collapse through the section's bottom onto the page ground: the padding takes it */
[data-template='thewerks'] .twk-stories .twk-head {
  margin-bottom: 0;
}
[data-template='thewerks'] .twk-stories__h {
  font-size: var(--twk-d-l);
}
[data-template='thewerks'] .twk-stories__intro {
  max-width: 460px;
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin: 0;
  padding: 0 max(var(--twk-gut), calc((100% - var(--twk-wrap)) / 2 + var(--twk-gut))) var(--twk-sec);
  background: var(--twk-cream-2);
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review] {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 40px 36px;
  border: 1px solid var(--twk-line);
  border-radius: 10px;
  background: var(--twk-cream-2);
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review]:first-child {
  border-color: var(--twk-ink);
  background: var(--twk-ink);
  color: var(--twk-cream);
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review-meta] {
  display: contents;
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review-rating] {
  order: -1;
  color: var(--twk-ink);
  font-size: 22px;
  letter-spacing: 4px;
  line-height: 1;
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review]:first-child [data-review-rating] {
  color: var(--twk-pink);
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review-quote] {
  margin: 0;
  font-size: var(--twk-body-l);
  line-height: 1.5;
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review-quote]::before {
  content: "“";
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review-quote]::after {
  content: "”";
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review-author] {
  margin-top: auto;
  font-size: 16px;
  font-weight: 700;
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review-author] + [data-review-role] {
  margin-top: -12px;
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review-role] {
  color: var(--twk-muted);
  font-size: 16px;
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review]:first-child [data-review-role] {
  color: var(--twk-muted-dark);
}
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review-date],
[data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review-avatar] {
  display: none;
}
@media (max-width: 760px) {
  [data-template='thewerks'] .twk-stories {
    padding-bottom: 36px;
  }
  [data-template='thewerks'] .twk-stories + [data-section='reviews'] {
    flex-direction: column;
  }
  [data-template='thewerks'] .twk-stories + [data-section='reviews'] [data-review] {
    padding: 32px;
  }
}

/* thewerks-meet@v1 — canvas `Meet3` (`.t3-photo`, `.t3-grid`, `.lamp-xl`; the board's inline styles). */
[data-template='thewerks'] .twk-meet {
  background: var(--twk-cream-2);
}
[data-template='thewerks'] .twk-meet__h {
  margin-bottom: 40px;
  font-size: var(--twk-d-xl);
}
[data-template='thewerks'] .twk-meet__img {
  height: 600px;
  border-radius: 10px;
  object-position: 50% 40%;
}
[data-template='thewerks'] .twk-meet__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  margin-top: 64px;
}
[data-template='thewerks'] .twk-meet__lamp {
  font-family: var(--twk-font-display);
  font-size: 56px;
  line-height: 1.08;
  text-transform: uppercase;
}
[data-template='thewerks'] .twk-meet__lamp em {
  color: var(--twk-pink);
  font-style: normal;
}
[data-template='thewerks'] .twk-meet__text,
[data-template='thewerks'] .twk-meet__md {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
[data-template='thewerks'] .twk-meet__md {
  font-size: var(--twk-body-l);
  line-height: 1.5;
}
[data-template='thewerks'] .twk-meet__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 760px) {
  [data-template='thewerks'] .twk-meet__img {
    height: 280px;
  }
  [data-template='thewerks'] .twk-meet__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 32px;
  }
  [data-template='thewerks'] .twk-meet__lamp {
    font-size: 30px;
  }
}

/*
 * /contact — canvas `TwContact`, `TwContactForm`, `TwContact-phone` (`.twl-top`, `.twl-grid`, `.twl-intro`,
 * `.twl-steps`, `.twl-direct`, `.twl-form`, `.twl-in`, `.twl-chip`, `.twl-send`, `.twl-privacy`).
 *
 * The page is three sections: thewerks-contact@v1 (the intro column), base form@v1 (the form), and a plain prose@v1 (the
 * privacy line). A main that holds a contact section FIRST becomes a grid: the intro in the 5/12 column, the form card in
 * the 7/12 column beside it, the privacy line under the form; any later section spans the width. On a phone the main is
 * a column and the intro's parts interleave with the form by `order` (the board: head, form, steps, email; no photo).
 *
 * The form is base markup (Form.astro), styled here by its hooks: `data-section='form'`, `data-form-field`,
 * `data-form-group`, `data-form-option`, `data-form-required-mark`, `data-form-footnote`, and P4's error hooks
 * (`data-form-error-summary`, `-error-summary-heading`, `data-form-field-error`, `data-form-invalid`).
 */
[data-template='thewerks'] .twk-main:has(> [data-pack-thewerks-contact]:first-child) {
  --twk-contact-inner: calc(min(100cqi, var(--twk-wrap)) - 2 * var(--twk-gut) - 80px);
  container-type: inline-size;
  display: grid;
  grid-template-columns:
    minmax(var(--twk-gut), 1fr) minmax(0, calc(var(--twk-contact-inner) * 5 / 12 + 80px))
    minmax(0, calc(var(--twk-contact-inner) * 7 / 12)) minmax(var(--twk-gut), 1fr);
  /* the form takes row 1 at its own height; the privacy line row 2, which takes what the intro column needs more */
  grid-template-rows: auto 1fr;
  align-content: start;
  background: var(--twk-cream);
}
[data-template='thewerks'] .twk-main:has(> [data-pack-thewerks-contact]:first-child) > * {
  grid-column: 1 / -1;
}
[data-template='thewerks'] .twk-main > [data-pack-thewerks-contact]:first-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 88px 80px 120px 0;
}
[data-template='thewerks'] .twk-main > [data-pack-thewerks-contact]:first-child + [data-section='form'] {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  margin-top: 88px;
}
[data-template='thewerks'] .twk-main > [data-pack-thewerks-contact]:first-child + [data-section='form'] + [data-pack-thewerks-prose] {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  padding: 0 0 120px;
}
[data-template='thewerks'] .twk-main > [data-pack-thewerks-contact]:first-child + [data-section='form'] + [data-pack-thewerks-prose] .twk-wrap {
  padding: 18px 44px 0;
}
[data-template='thewerks'] .twk-main > [data-pack-thewerks-contact]:first-child + [data-section='form'] + [data-pack-thewerks-prose] .twk-prose__text {
  max-width: 560px;
  color: var(--twk-ink-2);
  font-size: 15px;
  line-height: 1.5;
}

/* the intro column */
[data-template='thewerks'] .twk-contact__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
[data-template='thewerks'] .twk-contact__h {
  font-size: var(--twk-d-xl);
}
[data-template='thewerks'] .twk-contact__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}
[data-template='thewerks'] .twk-contact__next {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
[data-template='thewerks'] .twk-contact__nh {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
[data-template='thewerks'] .twk-contact__steps {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--twk-ink);
}
[data-template='thewerks'] .twk-contact__steps li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--twk-line);
}
[data-template='thewerks'] .twk-contact__steps li > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-template='thewerks'] .twk-contact__n {
  font-size: 28px;
  line-height: 1;
}
[data-template='thewerks'] .twk-contact__st {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
[data-template='thewerks'] .twk-contact__direct {
  display: flex;
  align-items: center;
  gap: 16px;
}
[data-template='thewerks'] .twk-contact__direct > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
[data-template='thewerks'] .twk-contact__avatars {
  display: flex;
}
[data-template='thewerks'] .twk-contact__avatars img + img {
  margin-left: -12px;
}

/* the form card (base form@v1) */
[data-template='thewerks'] [data-section='form'] {
  box-sizing: border-box;
}
[data-template='thewerks'] [data-section='form'] form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
  padding: 44px;
  border: 1px solid var(--twk-line);
  border-radius: 10px;
  background: var(--twk-cream-2);
}
[data-template='thewerks'] [data-section='form'] form > :is(fieldset, h3, button, [data-form-field]:has(textarea, select, input[type='checkbox'])) {
  grid-column: 1 / -1;
}
[data-template='thewerks'] [data-section='form'] [data-form-field] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
[data-template='thewerks'] [data-section='form'] [data-form-field] > span:not([data-form-field-error]),
[data-template='thewerks'] [data-section='form'] [data-form-field] > legend {
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
[data-template='thewerks'] [data-section='form'] [data-form-field] > legend {
  margin-bottom: 12px;
}
[data-template='thewerks'] [data-section='form'] [data-form-required-mark] {
  color: var(--twk-pink-900);
}
[data-template='thewerks'] [data-section='form'] [data-form-field] :where(input:not([type='checkbox'], [type='radio']), textarea, select) {
  box-sizing: border-box;
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--twk-input-line);
  border-radius: 5px;
  background: var(--twk-white);
  color: var(--twk-ink);
  font: 400 18px/1.3 var(--twk-font);
}
[data-template='thewerks'] [data-section='form'] [data-form-field] :is(input, textarea)::placeholder {
  color: var(--twk-placeholder);
}
[data-template='thewerks'] [data-section='form'] [data-form-field] textarea {
  height: 160px;
  padding: 14px 16px;
  line-height: 1.45;
  resize: vertical;
}
[data-template='thewerks'] [data-section='form'] [data-form-field] select {
  padding-right: 44px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--twk-ink) 50%), linear-gradient(135deg, var(--twk-ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 24px, calc(100% - 16px) 24px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}
[data-template='thewerks'] [data-section='form'] [data-form-field] :is(input, textarea, select):focus-visible {
  outline: 3px solid var(--twk-ink);
  outline-offset: 2px;
}
/* a checkbox group as the board's chips (`.twl-chip`): the box hidden, the label the control */
[data-template='thewerks'] [data-section='form'] [data-form-group='checkboxes'] {
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
}
[data-template='thewerks'] [data-section='form'] [data-form-group='checkboxes'] > legend {
  float: left;
  width: 100%;
  margin-bottom: 4px;
}
[data-template='thewerks'] [data-section='form'] [data-form-group='checkboxes'] [data-form-option] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 10px 18px;
  border: 1.5px solid var(--twk-input-line);
  border-radius: 999px;
  background: var(--twk-white);
  color: var(--twk-ink);
  font: 500 17px var(--twk-font);
  cursor: pointer;
}
[data-template='thewerks'] [data-section='form'] [data-form-group='checkboxes'] [data-form-option] input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
[data-template='thewerks'] [data-section='form'] [data-form-group='checkboxes'] [data-form-option]:has(input:checked) {
  border-color: var(--twk-ink);
  background: var(--twk-ink);
  color: var(--twk-cream);
}
[data-template='thewerks'] [data-section='form'] [data-form-group='checkboxes'] [data-form-option]:has(input:focus-visible) {
  outline: 3px solid var(--twk-ink);
  outline-offset: 2px;
}
[data-template='thewerks'] [data-section='form'] [data-form-group='checkboxes'] [data-form-option]:hover {
  border-color: var(--twk-ink);
}
[data-template='thewerks'] [data-section='form'] button[type='submit'] {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 0;
  border-radius: 5px;
  background: var(--twk-pink);
  color: var(--twk-cream);
  font: 600 20px/1.1 var(--twk-font);
  cursor: pointer;
  transition: background-color 0.2s;
}
[data-template='thewerks'] [data-section='form'] button[type='submit']:hover {
  background: var(--twk-ink);
}
[data-template='thewerks'] [data-section='form'] [data-form-footnote] {
  margin: 16px 0 0;
  color: var(--twk-ink-2);
  font-size: 15px;
  line-height: 1.5;
}

/* P4's error states (form-ts.js builds them on a failed check; canvas `TwContactStates`: `.twl-summary`, `.twl-err`,
   `.twl-bad`): the summary on top of the form (full width), a message under each field, the field's border and ground. */
[data-template='thewerks'] [data-section='form'] [data-form-error-summary] {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border: 2px solid var(--twk-error);
  border-radius: 6px;
  background: var(--twk-error-bg);
}
[data-template='thewerks'] [data-section='form'] [data-form-error-summary]:focus-visible {
  outline: 3px solid var(--twk-ink);
  outline-offset: 2px;
}
[data-template='thewerks'] [data-section='form'] [data-form-error-summary-heading] {
  margin: 0;
  color: var(--twk-error-ink);
  font: 700 18px/1.3 var(--twk-font);
}
[data-template='thewerks'] [data-section='form'] [data-form-error-summary] ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
[data-template='thewerks'] [data-section='form'] [data-form-error-summary] a {
  color: var(--twk-error-ink);
  font-size: 16px;
  font-weight: 600;
}
[data-template='thewerks'] [data-section='form'] [data-form-field-error] {
  /* the form script shows a message with an inline `display: block`, so the icon is placed, not laid out by flex */
  position: relative;
  display: block;
  padding-left: 26px;
  color: var(--twk-error-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
/* the board's icon (`.twl-err svg`: a ring with a "!", 18 px): drawn in CSS, its "!" hidden from screen readers (the
   alt text after the slash is empty); the owner's choice, 2026-11-30 (ctx-287) */
[data-template='thewerks'] [data-section='form'] [data-form-field-error]::before {
  content: "!" / "";
  position: absolute;
  top: 2px;
  left: 1px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
[data-template='thewerks'] [data-section='form'] [data-form-invalid] :where(input:not([type='checkbox'], [type='radio']), textarea, select) {
  border-width: 2px;
  border-color: var(--twk-error);
  background-color: var(--twk-error-bg);
}
[data-template='thewerks'] [data-section='form'] [data-form-invalid][data-form-group] [data-form-option] {
  border-color: var(--twk-error);
}

@media (max-width: 760px) {
  [data-template='thewerks'] .twk-main:has(> [data-pack-thewerks-contact]:first-child) {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 36px var(--twk-gut) 64px;
  }
  [data-template='thewerks'] .twk-main > [data-pack-thewerks-contact]:first-child {
    display: contents;
  }
  [data-template='thewerks'] .twk-main:has(> [data-pack-thewerks-contact]:first-child) > * {
    order: 5;
  }
  [data-template='thewerks'] .twk-contact__head {
    order: 1;
  }
  [data-template='thewerks'] .twk-main > [data-pack-thewerks-contact]:first-child + [data-section='form'] {
    order: 2;
    margin-top: 0;
  }
  [data-template='thewerks'] .twk-main > [data-pack-thewerks-contact]:first-child + [data-section='form'] + [data-pack-thewerks-prose] {
    order: 3;
    padding: 0;
  }
  [data-template='thewerks'] .twk-main > [data-pack-thewerks-contact]:first-child + [data-section='form'] + [data-pack-thewerks-prose] .twk-wrap {
    padding: 0;
  }
  [data-template='thewerks'] .twk-contact__next {
    order: 4;
  }
  [data-template='thewerks'] .twk-contact__direct {
    order: 4;
  }
  /* `.twk-contact` before it: `.twk-main img { display: block }` would outrank the bare class */
  [data-template='thewerks'] .twk-contact .twk-contact__photo {
    display: none;
  }
  [data-template='thewerks'] [data-section='form'] button[type='submit'] {
    padding: 12px 22px;
    font-size: 19px;
    white-space: normal;
    text-align: center;
  }
  [data-template='thewerks'] [data-section='form'] form {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    padding: 24px 20px;
  }
  [data-template='thewerks'] [data-section='form'] form > [data-form-error-summary] {
    margin-bottom: 6px;
  }
  /* the board's phone: the two pairs (name + pronouns, email + website) stay 20 px apart, every other group 26 px */
  [data-template='thewerks'] [data-section='form'] form > :is(fieldset, button, [data-form-field]:has(textarea, select, input[type='email'])) {
    margin-top: 6px;
  }
}

/*
 * prose@v1 — the document look (/privacy, /terms; canvas `TwPrivacy`: `.twl-ptop`, `.twl-meta`, `.twl-short`,
 * `.twl-pbody`, `.twl-toc`, `.twl-prose`, `.twl-table`) and the plain look. The head is the text before its first `##`
 * (ThewerksProse.astro): a paragraph before the h1 = the eyebrow, the paragraph after it = the meta line, a list = the
 * "In short" box (each item's leading **bold** = its label).
 */
/* the root (both looks): the page's one ground (prose@v1 declares no tone: pack-tone-gate) */
[data-template='thewerks'] [data-pack-thewerks-prose] {
  background: var(--twk-cream);
  color: var(--twk-ink);
}
[data-template='thewerks'] .twk-doc__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 88px 56px;
  border-bottom: 1.5px solid var(--twk-ink);
}
[data-template='thewerks'] .twk-doc__head > p:has(+ h1) {
  font-size: var(--twk-eyebrow);
  font-weight: 500;
  letter-spacing: 0.01em;
}
[data-template='thewerks'] .twk-doc__head > p:has(+ h1)::before {
  display: inline-block;
  width: 16px;
  height: 23px;
  margin-right: 12px;
  background: linear-gradient(var(--twk-teal) 0 7px, transparent 7px 8px, var(--twk-pink) 8px 15px, transparent 15px 16px, var(--twk-amber) 16px 23px);
  vertical-align: middle;
  content: "";
}
[data-template='thewerks'] .twk-doc__head h1 {
  font-family: var(--twk-font-display);
  font-size: var(--twk-d-l);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
[data-template='thewerks'] .twk-doc__head h1 + p {
  color: var(--twk-muted);
  font-size: 16px;
}
[data-template='thewerks'] .twk-doc__head a,
[data-template='thewerks'] .twk-doc__text a,
[data-template='thewerks'] .twk-prose__text a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--twk-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
[data-template='thewerks'] .twk-doc__head ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
  padding: 28px 32px;
  border: 1px solid var(--twk-line);
  border-radius: 6px;
  background: var(--twk-cream-2);
  list-style: none;
}
[data-template='thewerks'] .twk-doc__head li {
  font-size: 17px;
  line-height: 1.5;
}
[data-template='thewerks'] .twk-doc__head li > strong:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--twk-pink-900);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[data-template='thewerks'] .twk-doc__grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 80px;
  padding-block: 64px 120px;
}
[data-template='thewerks'] .twk-doc__toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
[data-template='thewerks'] .twk-doc__toc > p {
  margin-bottom: 10px;
  color: var(--twk-pink-900);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[data-template='thewerks'] .twk-doc__toc ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
[data-template='thewerks'] .twk-doc__toc a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--twk-line);
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.2s;
}
[data-template='thewerks'] .twk-doc__toc a:hover {
  border-left-color: var(--twk-pink);
}
[data-template='thewerks'] .twk-doc__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  font-size: 19px;
  line-height: 1.6;
}
[data-template='thewerks'] .twk-doc__text h2 {
  margin-top: 36px;
  font-family: var(--twk-font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  scroll-margin-top: 96px;
}
[data-template='thewerks'] .twk-doc__text h2:first-child {
  margin-top: 0;
}
[data-template='thewerks'] .twk-doc__text h3 {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
[data-template='thewerks'] .twk-doc__text :is(ul, ol) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
}
[data-template='thewerks'] .twk-doc__text ul {
  list-style: disc;
}
[data-template='thewerks'] .twk-doc__text ol {
  list-style: decimal;
}
[data-template='thewerks'] .twk-doc__text table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}
[data-template='thewerks'] .twk-doc__text :is(th, td) {
  padding: 12px 14px;
  border-bottom: 1px solid var(--twk-line);
  text-align: left;
  vertical-align: top;
}
[data-template='thewerks'] .twk-doc__text th {
  border-bottom: 1.5px solid var(--twk-ink);
  background: var(--twk-cream-2);
  font-weight: 600;
}
/* the plain look */
[data-template='thewerks'] .twk-prose__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  font-size: var(--twk-body-l);
  line-height: 1.5;
}
[data-template='thewerks'] .twk-prose__text h1 {
  font-family: var(--twk-font-display);
  font-size: var(--twk-d-l);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
}
[data-template='thewerks'] .twk-prose__text h2 {
  font-family: var(--twk-font-display);
  font-size: var(--twk-d-s);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  [data-template='thewerks'] .twk-doc__head {
    padding-block: 36px 32px;
  }
  [data-template='thewerks'] .twk-doc__head ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 22px 20px;
  }
  [data-template='thewerks'] .twk-doc__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 32px 96px;
  }
  [data-template='thewerks'] .twk-doc__toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--twk-line);
    border-radius: 6px;
    background: var(--twk-cream-2);
  }
  [data-template='thewerks'] .twk-doc__text {
    font-size: 17px;
  }
  /* a wide table scrolls inside the column, not the page */
  [data-template='thewerks'] .twk-doc__text table {
    display: block;
    overflow-x: auto;
  }
  [data-template='thewerks'] .twk-doc__text h2 {
    margin-top: 20px;
    font-size: 24px;
  }
}

/* The 404 (base NotFoundDocument inside the chrome): the board's type, the home link as a pink button. No board draws it. */
[data-template='thewerks'] .twk-main .wk-404 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: var(--twk-wrap);
  margin: 0 auto;
  padding: var(--twk-sec) var(--twk-gut);
  box-sizing: border-box;
}
[data-template='thewerks'] .wk-404__code {
  font-family: var(--twk-font-display);
  font-size: var(--twk-d-s);
  color: var(--twk-pink);
}
[data-template='thewerks'] .twk-main .wk-404 h1 {
  margin: 0;
  font-family: var(--twk-font-display);
  font-size: var(--twk-d-xl);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
}
[data-template='thewerks'] .wk-404__body {
  max-width: 640px;
  margin: 0;
  font-size: var(--twk-body-l);
  line-height: 1.5;
}
[data-template='thewerks'] .wk-404__home {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  box-sizing: border-box;
  padding: 12px 28px;
  border: 2px solid var(--twk-pink);
  border-radius: 5px;
  background: var(--twk-pink);
  color: var(--twk-cream);
  font: 600 20px/1.1 var(--twk-font);
  text-decoration: none;
}
[data-template='thewerks'] .wk-404__home:hover {
  border-color: var(--twk-ink);
  background: var(--twk-ink);
}

/* thewerks-people@v1 — canvas `About30`, "Meet team The Werks" (tw-about.css `.twa-meet-head`, `.twa-people`,
   `.twa-person`, `.twa-person-txt`, `.twa-bio`; docs/planning/20261130-thewerks-about.md §6.3). */
[data-template='thewerks'] .twk-people {
  background: var(--twk-cream-2);
}
[data-template='thewerks'] .twk-people__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 64px;
}
[data-template='thewerks'] .twk-people__h {
  margin: 0;
  font-size: var(--twk-d-xl);
}
[data-template='thewerks'] .twk-people__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
[data-template='thewerks'] .twk-people__intro p {
  margin: 0;
}
[data-template='thewerks'] .twk-people__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
[data-template='thewerks'] .twk-person {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid var(--twk-ink);
  border-radius: 10px;
  background: var(--twk-cream);
  /* a card is the target of /team/<name> (#gideon, #dominique): its top clears the floating menu button */
  scroll-margin-top: 24px;
}
[data-template='thewerks'] .twk-person__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
[data-template='thewerks'] .twk-person__txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 36px 40px 40px;
}
[data-template='thewerks'] .twk-person__txt .twk-eyebrow {
  margin: 0;
}
[data-template='thewerks'] .twk-person__name {
  margin: 0;
  font-size: 32px;
}
[data-template='thewerks'] .twk-person__md {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 19px;
  line-height: 1.55;
}
[data-template='thewerks'] .twk-person__md p {
  margin: 0;
}
/* pinned to the card's bottom, so the two links line up when the texts differ in length */
[data-template='thewerks'] .twk-person__lnk {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
  font-size: 18px;
}
@media (max-width: 760px) {
  [data-template='thewerks'] .twk-people__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 36px;
  }
  [data-template='thewerks'] .twk-people__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  [data-template='thewerks'] .twk-person__txt {
    gap: 12px;
    padding: 24px 20px 28px;
  }
  [data-template='thewerks'] .twk-person__name {
    font-size: 24px;
  }
  [data-template='thewerks'] .twk-person__md {
    font-size: 17px;
  }
}

/* thewerks-values@v1 — canvas `About30`, "How we do things", values option G (tw-about.css `.twa-values`, `.twa-value`,
   `.twa-tile`, `.twa-quote`; tw.css `.ha-head`, `.hb-qbig`, `.quote-t`, `.q-big`, `.who`, `.stars`; docs/planning/
   20261130-thewerks-about.md §6.4). The head reuses the home's `.twk-head`. */
[data-template='thewerks'] .twk-values {
  background: var(--twk-cream);
}
[data-template='thewerks'] .twk-values__h {
  margin: 0;
  font-size: var(--twk-d-xl);
}
[data-template='thewerks'] .twk-values__intro {
  max-width: 440px;
  margin: 0;
}
[data-template='thewerks'] .twk-values__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
[data-template='thewerks'] .twk-value {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1.5px solid var(--twk-ink);
}
[data-template='thewerks'] .twk-value p {
  margin: 0;
}
[data-template='thewerks'] .twk-value__name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 32px;
}
/* the mark: a black icon on a rounded square in a logo colour, tilted "like a sticker"; by the value's place */
[data-template='thewerks'] .twk-value__mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 8px;
  color: var(--twk-ink);
}
[data-template='thewerks'] .twk-value__mark svg {
  width: 0.9em;
  height: 0.9em;
}
[data-template='thewerks'] .twk-value__mark--1 {
  background: var(--twk-teal);
  transform: rotate(-6deg);
}
[data-template='thewerks'] .twk-value__mark--2 {
  background: var(--twk-amber);
  transform: rotate(4deg);
}
[data-template='thewerks'] .twk-value__mark--3 {
  background: var(--twk-pink);
  transform: rotate(-3deg);
}
/* the quote card (`.hb-qbig`): black, the stars in pink */
[data-template='thewerks'] .twk-values__quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  margin: 72px 0 0;
  padding: 56px;
  border-radius: 10px;
  background: var(--twk-ink);
  color: var(--twk-cream);
}
[data-template='thewerks'] .twk-values__stars {
  display: flex;
  gap: 4px;
  margin: 0;
}
[data-template='thewerks'] .twk-values__stars svg {
  width: 22px;
  height: 22px;
  fill: var(--twk-pink);
}
[data-template='thewerks'] .twk-values__qtitle {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
[data-template='thewerks'] .twk-values__q {
  max-width: 1040px;
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
}
[data-template='thewerks'] .twk-values__q::before {
  content: "“";
}
[data-template='thewerks'] .twk-values__q::after {
  content: "”";
}
[data-template='thewerks'] .twk-values__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 17px;
}
[data-template='thewerks'] .twk-values__who b {
  font-weight: 700;
}
[data-template='thewerks'] .twk-values__who span {
  color: var(--twk-muted-dark);
}
@media (max-width: 760px) {
  [data-template='thewerks'] .twk-values__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  [data-template='thewerks'] .twk-value__name {
    font-size: 26px;
  }
  [data-template='thewerks'] .twk-values__quote {
    margin-top: 44px;
    padding: 32px;
  }
  [data-template='thewerks'] .twk-values__q {
    font-size: 21px;
  }
}
