/* ==========================================================================
   Paramount public site — v2 skin
   Same design language as the company admin and the recruitment board:
   Bricolage Grotesque + IBM Plex Sans, monochrome, soft glow, 22px cards,
   pill buttons. Loaded LAST on every public page, so it replaces the look of
   main.css / paramount-enterprise.css / paramount-monochrome.css without
   touching page markup, scripts or the navigation links.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');


:root {
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --r: 14px; --r-lg: 22px; --r-xl: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1240px;
}
/* Colour tokens (light + dark) now live in /assets/css/pds-theme.css, loaded just before this file. */

/* ---------- base ---------------------------------------------------------- */
html:root body {
  background: radial-gradient(circle at 15% -10%, var(--glow) 0, transparent 34%), var(--surface);
  background-attachment: fixed; color: var(--text-primary);
  font-family: var(--body); font-size: 16px; line-height: 1.6; letter-spacing: 0; cursor: auto;
}
html:root body::before { display: none; }
html:root body a, html:root body button { cursor: pointer; }
html:root body h1, html:root body h2, html:root body h3, html:root body h4 { font-family: var(--display); letter-spacing: -.03em; }
html:root body ::selection { background: var(--text-primary); color: var(--surface); }
html:root body :focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }
html:root body .pds-cursor-dot, html:root body .pds-cursor-ring, html:root body .pds-grain, html:root body .pds-logo-pattern { display: none !important; }
html:root body main { min-width: 0; }

html:root body /* ---------- header + navigation (same links, better build) --------------- */
.pds-header {
  position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 68px; padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top));
  background: var(--header-bg); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent); box-shadow: none;
  transition: box-shadow .25s var(--ease), border-color .25s;
}
html:root body .pds-header.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.08); border-bottom-color: var(--border); }
html:root body .pds-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text-primary); text-decoration: none; }
html:root body .pds-logo-wrap { width: 40px; height: 38px; }
html:root body .pds-logo { width: 40px; height: 38px; }
html:root body .pds-brand-wordmark { font: 700 20px/1 var(--display); letter-spacing: -.045em; text-transform: lowercase; }
html:root body .pds-brand-wordmark span { margin-left: 3px; font-style: normal; font-weight: 500; color: var(--text-tertiary); }
html:root body .pds-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
html:root body .pds-nav-links { display: flex; align-items: center; gap: 2px; }
html:root body .pds-nav a { position: relative; font: 500 14px/1 var(--body); letter-spacing: 0; color: var(--text-secondary); text-decoration: none; }
html:root body .pds-nav-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; transition: background .18s, color .18s; }
html:root body .pds-nav-links a::after { display: none; }
html:root body .pds-nav-links a:hover { color: var(--text-primary); background: var(--surface-alt); }
html:root body .pds-nav-links a.is-active, html:root body .pds-nav-links a[aria-current="page"] { color: var(--text-primary); background: var(--surface-alt); font-weight: 600; box-shadow: inset 0 0 0 1px var(--border); }
html:root body .pds-nav a.pds-nav-cta {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; margin-left: 6px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-text) !important; font: 600 14px/1 var(--body) !important; transition: transform .18s, box-shadow .18s;
}
html:root body .pds-nav a.pds-nav-cta::after { display: none; }
html:root body .pds-nav a.pds-nav-cta:hover { background: var(--btn-bg); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
html:root body .pds-nav-cta span { margin: 0; transition: transform .18s; }
html:root body .pds-nav-cta:hover span { transform: translate(2px, -2px); }
html:root body /* theme toggle: round, html:root body icon-only on desktop, html:root body centred glyph */
.pds-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; min-width: 42px; height: 42px; padding: 0; gap: 0;
  border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--text-primary);
  font: 600 13px/1 var(--body); letter-spacing: 0; transition: border-color .18s, transform .18s;
}
html:root body .pds-theme-toggle:hover { background: var(--panel); color: var(--text-primary); border-color: var(--text-primary); }
html:root body .pds-theme-toggle > span { font-size: 19px; line-height: 1; display: block; }
html:root body .pds-theme-toggle .pds-theme-label { display: none; font-weight: 600; letter-spacing: 0; text-transform: none; }
html:root body .pds-nav-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); }
html:root body .pds-nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--text-primary); }
html:root body .pds-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html:root body .pds-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
html:root body .pds-nav-backdrop { background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

@media (max-width: 860px) {
  html:root body .pds-header { min-height: 64px; padding-inline: 16px; }
  html:root body .pds-nav-toggle { display: inline-flex; position: relative; z-index: 121; }
  html:root body .pds-nav {
    position: fixed; z-index: 120; inset: 0 0 0 auto; width: min(88vw, 380px); max-width: none; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px;
    padding: calc(76px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto;
    background: var(--panel); border-left: 1px solid var(--border); border-radius: var(--r-lg) 0 0 var(--r-lg); box-shadow: -24px 0 60px rgba(0,0,0,.28);
    transform: translate3d(105%, 0, 0); transition: transform .3s var(--ease), visibility 0s linear .3s; visibility: hidden;
  }
  html:root body .pds-nav.is-open { transform: translate3d(0, 0, 0); visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
  html:root body .pds-nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  html:root body .pds-nav-links a { min-height: 52px; padding: 0 16px; font-size: 17px; border-radius: 16px; justify-content: space-between; }
  html:root body .pds-nav-links a::before { content: ""; order: 2; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .4; }
  html:root body .pds-nav a.pds-nav-cta { justify-content: center; margin: 6px 0 0; min-height: 52px; font-size: 16px !important; }
  html:root body /* centred, html:root body enlarged theme control inside the drawer */
  .pds-theme-toggle { align-self: center; width: 100%; max-width: 280px; height: 52px; padding: 0 22px; gap: 10px; }
  html:root body .pds-theme-toggle .pds-theme-label { display: inline; }
  html:root body .pds-theme-toggle > span { font-size: 22px; }
}

html:root body /* ---------- hero ---------------------------------------------------------- */
.pds-hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr); align-items: center; gap: clamp(24px, 5vw, 64px);
  width: min(var(--wrap), calc(100% - 2 * var(--gutter))); max-width: none; min-height: 0; margin: clamp(14px, 2.5vw, 28px) auto 0;
  padding: clamp(40px, 7vw, 96px) clamp(22px, 5vw, 72px); overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-xl); color: var(--text-primary);
  background: radial-gradient(circle at 90% 0%, var(--glow) 0, transparent 40%), var(--panel); box-shadow: var(--shadow);
}
html:root body .pds-hero::before { content: none; display: none; }
html:root body .pds-hero::after { content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; max-width: none; aspect-ratio: 1; inset: auto; border: 0; border-radius: 50%; background: var(--surface-alt); opacity: .7; z-index: -1; pointer-events: none; }
html:root body .pds-hero:not(:has(.pds-hero-media)) { grid-template-columns: minmax(0, 1fr); }
html:root body .pds-hero-content { position: relative; z-index: 1; width: 100%; max-width: 760px; min-width: 0; }
html:root body .eyebrow, html:root body .pds-hero .eyebrow { display: block; margin: 0 0 14px; font: 700 11px/1.3 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-tertiary); }
html:root body .eyebrow::before, html:root body .pds-hero .eyebrow::before { display: none; }
html:root body .pds-hero h1, html:root body .pds-hero:not(:has(.pds-hero-media)) h1 { max-width: 14ch; margin: 0 0 20px; color: var(--text-primary); font: 700 clamp(40px, 7vw, 84px)/1.02 var(--display); letter-spacing: -.055em; }
html:root body .pds-hero p { max-width: 56ch; margin: 0; color: var(--text-secondary); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; }
html:root body .pds-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
html:root body .pds-hero-logo { opacity: .5; }
html:root body .pds-hero-logo::before, html:root body .pds-hero-logo-ring { border-color: var(--border); }
html:root body .pds-hero-logo img { opacity: .5; }
html:root body .pds-logo-field { opacity: .35; }
html:root body .pds-hero-media { position: relative; inset: auto; right: auto; bottom: auto; z-index: 2; width: 100%; min-width: 0; aspect-ratio: 4 / 5; transform: none; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
html:root body .pds-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: none; }
html:root body .pds-hero-media-caption { color: #fff; font: 600 11px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; }

html:root body /* ---------- buttons ------------------------------------------------------- */
.pds-btn, html:root body form button[type="submit"], html:root body .pds-form button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px;
  border: 1px solid var(--btn-bg); border-radius: 999px; background: var(--btn-bg); color: var(--btn-text);
  font: 600 14px/1 var(--body); letter-spacing: 0; text-decoration: none; cursor: pointer; touch-action: manipulation; box-shadow: none;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
html:root body .pds-btn:hover, html:root body form button[type="submit"]:hover, html:root body .pds-form button:hover { background: var(--btn-bg); color: var(--btn-text); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
html:root body .pds-btn-ghost, html:root body .pds-hero .pds-btn-ghost { background: var(--panel); color: var(--text-primary); border-color: var(--border); }
html:root body .pds-btn-ghost:hover { background: var(--panel); color: var(--text-primary); border-color: var(--text-primary); }
html:root body .pds-form button { align-self: flex-start; }
html:root body button:disabled, html:root body .pds-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

html:root body /* ---------- sections ------------------------------------------------------ */
.pds-section { width: min(var(--wrap), 100%); margin-inline: auto; padding: clamp(48px, 7vw, 96px) var(--gutter); border-top: 0; background: none; }
html:root body .pds-section + .pds-section { padding-top: clamp(24px, 4vw, 48px); }
html:root body .pds-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 4vw, 40px); }
html:root body .pds-section h2, html:root body .pds-section-head h2 { margin: 0; font: 700 clamp(30px, 4.6vw, 52px)/1.06 var(--display); letter-spacing: -.045em; }
html:root body .pds-section-head > div { min-width: 0; }
html:root body .pds-intro-copy { max-width: 42ch; margin: 0; color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
html:root body .pds-section-link { color: var(--text-tertiary); font: 600 14px/1 var(--body); text-decoration: none; }
html:root body .pds-section-link:hover { color: var(--text-primary); }
html:root body .pds-editorial-intro { background: none; }
html:root body .pds-editorial-intro .pds-card { min-height: 0; }

html:root body /* ---------- cards + grids ------------------------------------------------- */
.pds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; background: none; border: 0; }
html:root body .pds-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html:root body .pds-card, html:root body .pds-pricing-card, html:root body .pds-api-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: clamp(22px, 2.6vw, 30px);
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--text-primary);
  transform: none; transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
html:root body .pds-card:hover, html:root body .pds-pricing-card:hover { background: var(--panel); transform: translateY(-4px); border-color: var(--text-primary); }
html:root body .pds-card::after, html:root body .pds-pricing-card::after { display: none; }
html:root body .pds-card h3, html:root body .pds-pricing-card h3 { margin: 0; font: 700 clamp(21px, 2vw, 25px)/1.15 var(--display); letter-spacing: -.035em; }
html:root body .pds-card p, html:root body .pds-pricing-card p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
html:root body .pds-card-index { display: inline-flex; align-self: flex-start; margin: 0 0 18px; padding: 4px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-alt); color: var(--text-tertiary); font: 700 11px/1.3 var(--body); letter-spacing: .12em; }
html:root body .pds-card a.pds-card-link, html:root body .pds-card-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin-top: 14px; padding: 0; border: 0; color: var(--text-primary); font: 600 14px/1 var(--body); text-decoration: none; }
html:root body .pds-card a.pds-card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
html:root body .pds-card-kicker { color: var(--text-tertiary); font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
html:root body .pds-card-media { margin: calc(-1 * clamp(22px, 2.6vw, 30px)); margin-bottom: 14px; }
html:root body .pds-card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
html:root body .pds-pricing-card.is-popular { background: var(--panel); border-color: var(--text-primary); box-shadow: 0 0 0 2px var(--text-primary) inset, var(--shadow); }
html:root body .pds-pricing-badge { position: absolute; top: 16px; right: 16px; left: auto; padding: 5px 12px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font: 700 11px/1.2 var(--body); letter-spacing: .1em; }
html:root body .pds-pricing-amount { margin: 12px 0 4px; font: 700 clamp(34px, 4vw, 46px)/1 var(--display); letter-spacing: -.05em; }
html:root body .pds-pricing-amount small { font: 500 14px var(--body); color: var(--text-tertiary); }
html:root body .pds-pricing-features { list-style: none; margin: 18px 0; padding: 0; }
html:root body .pds-pricing-features li { padding: 10px 0; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 14.5px; }
html:root body .pds-pricing-features li:first-child { border-top: 0; }
html:root body .pds-image-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; background: none; border: 0; }
html:root body .pds-image-panel { overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
html:root body .pds-image-panel figcaption { color: #fff; font: 600 12px/1.3 var(--body); letter-spacing: .04em; }
html:root body .pds-project-showcase { display: grid; gap: 20px; }
html:root body .pds-project-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); gap: 0; }
html:root body .pds-project-visual { overflow: hidden; border: 0; border-radius: 0; background: var(--surface-alt); min-height: 260px; }
html:root body .pds-project-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
html:root body .pds-project-visual-label { font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
html:root body .pds-project-copy { padding: clamp(22px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
html:root body .pds-project-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
html:root body .pds-empty, html:root body .pds-error, html:root body .pds-loading, html:root body .pds-db-warning { padding: 22px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--panel); color: var(--text-secondary); font: 400 15px/1.6 var(--body); text-align: center; box-shadow: none; }
html:root body .pds-error { border-style: solid; border-color: var(--bad); color: var(--bad); }

html:root body /* ---------- forms --------------------------------------------------------- */
.pds-form { display: grid; gap: 16px; max-width: 640px; padding: clamp(20px, 3vw, 30px); background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
html:root body .pds-form label { display: grid; gap: 7px; font: 600 14px/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--text-primary); }
html:root body input, html:root body select, html:root body textarea { font-family: var(--body); }
html:root body .pds-form input, html:root body .pds-form select, html:root body .pds-form textarea, html:root body form:not(.pds-inline-form) input, html:root body form:not(.pds-inline-form) textarea, html:root body form:not(.pds-inline-form) select {
  width: 100%; max-width: 100%; min-height: 48px; padding: 11px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-primary);
  font: 400 16px/1.4 var(--body); text-transform: none; transition: border-color .15s, box-shadow .15s;
}
html:root body .pds-form textarea, html:root body form:not(.pds-inline-form) textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
html:root body .pds-form input:focus, html:root body .pds-form select:focus, html:root body .pds-form textarea:focus, html:root body form input:focus, html:root body form textarea:focus, html:root body form select:focus {
  outline: 0; border-color: var(--text-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-primary) 14%, transparent);
}
html:root body .pds-form input[type="checkbox"], html:root body .pds-form input[type="radio"] { width: 20px; min-height: 0; height: 20px; accent-color: var(--text-primary); }
html:root body .pds-form-status { padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); font-size: 14px; }
html:root body .pds-form-status.is-error, html:root body .pds-form-status.error { border-color: var(--bad); color: var(--bad); }
html:root body .pds-form-status.is-ok, html:root body .pds-form-status.ok { border-color: var(--ok); color: var(--ok); }

html:root body /* ---------- law firm: stays light by design, html:root body with the new shapes --------- */
.pds-law-hero { background: #fff; color: #0a0a0a; }
html:root body .pds-law-hero h1, html:root body .pds-law-hero h2, html:root body .pds-law-hero p, html:root body .pds-law-hero .eyebrow { color: #0a0a0a; }
html:root body .pds-law-hero .pds-btn { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
/* Law hero is a white card on a dark page: out-rank the generic hero h1 rule (which has :not(:has(...)) specificity) and drop the dark decorative circle */
html:root body .pds-law-hero:not(:has(.pds-hero-media)) h1,
html:root body .pds-law-hero:not(:has(.pds-hero-media)) p,
html:root body .pds-law-hero:not(:has(.pds-hero-media)) .eyebrow,
html:root[data-theme] body .pds-law-hero h1 { color: #0a0a0a; }
html:root body .pds-law-hero::after { display: none; }

html:root body /* ---------- status / 404 -------------------------------------------------- */
.pds-status-page { min-height: calc(100vh - 80px); padding: clamp(40px, 8vw, 110px) var(--gutter); }
html:root body .pds-status-page::before { inset: 6% 3%; border: 1px solid var(--border); border-radius: var(--r-xl); }
html:root body .pds-status-page::after { font: 700 11px var(--body); letter-spacing: .18em; color: var(--text-tertiary); }
html:root body .pds-status-panel { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--panel); box-shadow: var(--shadow); }
html:root body .pds-status-code { font: 700 12px var(--body); letter-spacing: .16em; color: var(--text-tertiary); }
html:root body .pds-status-actions { display: flex; flex-wrap: wrap; gap: 12px; }

html:root body /* ---------- blog + articles ---------------------------------------------- */
.blog-wrap, html:root body .article-wrap { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--gutter) clamp(56px, 8vw, 100px); }
html:root body .blog-hero h1 { font: 700 clamp(40px, 7vw, 84px)/1.02 var(--display); letter-spacing: -.055em; }
html:root body .blog-hero p { color: var(--text-secondary); }
html:root body .blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
html:root body .blog-card { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--text-primary); text-decoration: none; transition: transform .22s var(--ease), border-color .22s; }
html:root body .blog-card:hover { transform: translateY(-4px); border-color: var(--text-primary); }
html:root body .blog-cover { background: var(--surface-alt); }
html:root body .blog-card-body { padding: 22px; }
html:root body .blog-meta { color: var(--text-tertiary); font: 700 11px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; }
html:root body .blog-card h2 { margin: 10px 0; font: 700 25px/1.12 var(--display); letter-spacing: -.035em; }
html:root body .blog-card p { color: var(--text-secondary); }
html:root body .blog-empty { color: var(--text-tertiary); }
html:root body .article-body { font-size: 18px; line-height: 1.8; }
html:root body .article-body h2, html:root body .article-body h3 { margin: 1.6em 0 .5em; }
html:root body .article-body a { text-underline-offset: 3px; }
html:root body .article-cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
html:root body .article-dek { color: var(--text-secondary); }
html:root body .article-byline, html:root body .article-kicker { color: var(--text-tertiary); font: 700 11px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; }

html:root body /* ---------- footer -------------------------------------------------------- */
.pds-footer { width: 100%; padding: clamp(40px, 6vw, 72px) var(--gutter) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: none; color: var(--text-tertiary); }
html:root body .pds-footer > * { max-width: var(--wrap); margin-inline: auto; }
html:root body .pds-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px 28px; margin-bottom: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
html:root body .pds-footer-grid h4 { margin: 0 0 12px; color: var(--text-primary); font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
html:root body .pds-footer-grid a { display: flex; align-items: center; min-height: 34px; margin: 0; color: var(--text-tertiary); font-size: 15px; text-decoration: none; }
html:root body .pds-footer-grid a:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; }
html:root body .pds-footer-mark { margin-bottom: 8px; color: var(--text-primary); font: 700 22px/1 var(--display); letter-spacing: -.045em; text-transform: lowercase; }
html:root body .pds-footer-mark span { font-style: normal; font-weight: 500; color: var(--text-tertiary); }
html:root body .pds-footer p { max-width: 38ch; color: var(--text-tertiary); font-size: 14.5px; line-height: 1.65; }
html:root body .pds-footer-legal { color: var(--text-tertiary); font: 400 13px/1.5 var(--body); }

html:root body /* ---------- reveal -------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html:root body [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------------------------------------------------- */
@media (max-width: 1023px) {
  .pds-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pds-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .pds-hero { grid-template-columns: 1fr; }
  .pds-hero-media { aspect-ratio: 16 / 10; max-width: 560px; }
  .pds-project-card { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  html:root body .pds-hero { min-height: 0; padding: 40px 22px; border-radius: 22px; }
  html:root body .pds-hero h1, html:root body .pds-hero:not(:has(.pds-hero-media)) h1 { max-width: 100%; font-size: clamp(38px, 11.5vw, 56px); overflow-wrap: anywhere; }
  html:root body .pds-hero-actions { flex-direction: column; align-items: stretch; }
  html:root body .pds-hero-actions .pds-btn, html:root body .pds-btn { width: 100%; }
  html:root body .pds-grid-4, html:root body .pds-image-grid { grid-template-columns: 1fr; }
  html:root body .pds-footer-grid { grid-template-columns: 1fr 1fr; }
  html:root body .pds-footer-grid > div:first-child { grid-column: 1 / -1; }
  html:root body .pds-section-head { display: block; }
  html:root body .pds-intro-copy { margin-top: 14px; }
  html:root body .pds-form { max-width: none; }
  html:root body .pds-status-panel { grid-template-columns: 1fr; border-radius: 22px; }
}
@media (max-width: 420px) {
  html:root body .pds-section { padding-inline: 16px; }
  html:root body .pds-footer { padding-inline: 16px; }
  html:root body .pds-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html:root body *, html:root body *::before, html:root body *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  html:root body [data-reveal] { opacity: 1; transform: none; }
}

/* ===== Mobile navigation fix (v3) =====
   The header used backdrop-filter. A filtered element becomes the containing block for position:fixed
   children, so the slide-out menu (a fixed child of the header) was being sized and clipped to the 64px header
   instead of the screen. On phones the header is now a plain opaque bar and the menu is positioned on the viewport. */
@media (max-width: 860px) {
  html:root body .pds-header,
  html:root body .pds-header.is-scrolled {
    -webkit-backdrop-filter: none; backdrop-filter: none; filter: none; transform: none; will-change: auto; contain: none;
    background: var(--panel);
  }
  html:root body .pds-nav { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  html:root body .pds-nav:not(.is-open) { pointer-events: none; }
  html:root body .pds-nav.is-open { pointer-events: auto; }
  html:root body .pds-nav-toggle { touch-action: manipulation; -webkit-tap-highlight-color: transparent; min-width: 44px; min-height: 44px; }
  html:root body .pds-nav-backdrop { z-index: 119; }
  html:root body.pds-menu-open .pds-header { z-index: 130; }
}

/* ===== Pricing ===== */
.pds-group-head{grid-column:1/-1;margin:30px 0 0;padding-top:18px;border-top:1px solid var(--border);font-size:clamp(1.15rem,2.2vw,1.5rem);letter-spacing:-.01em}
.pds-group-head:first-child{margin-top:0;border-top:0;padding-top:0}
.pds-group-sub{grid-column:1/-1;margin:14px 0 -4px;font-size:1.02rem;font-weight:600}
.pds-group-sub a{color:inherit;text-decoration:none;border-bottom:1px solid var(--border)}
.pds-package{display:flex;flex-direction:column;gap:12px}
.pds-package .pds-card-body{display:flex;flex-direction:column;gap:12px;flex:1}
.pds-package.is-popular{outline:2px solid var(--text-primary);outline-offset:-2px}
.pds-badge-popular{align-self:flex-start;font:700 11px/1 var(--mono, monospace);letter-spacing:.08em;text-transform:uppercase;padding:6px 10px;border-radius:999px;background:var(--text-primary);color:var(--bg, #fff)}
.pds-price{margin:0;font:700 clamp(1.4rem,3vw,1.85rem)/1.1 var(--display, inherit);letter-spacing:-.03em}
.pds-price small{display:block;margin-top:6px;font:500 12px/1.2 var(--body, inherit);letter-spacing:0;opacity:.7}
.pds-feature-list{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:.93rem}
.pds-feature-list li{display:flex;gap:8px;align-items:flex-start}
.pds-feature-list li::before{content:"\2713";font-weight:700;flex:none}
.pds-package .pds-card-link{margin-top:auto}

/* ===== Team page: cards, details popup, search + filter (v20261024-v4) ===== */
.pds-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.pds-ttools{display:grid;gap:14px;margin:0 0 26px}
.pds-ttools[hidden]{display:none}
.pds-tsearch input{width:100%;min-height:48px;padding:12px 16px;font:inherit;font-size:16px;color:var(--text-primary);background:var(--panel);border:1px solid var(--border);border-radius:999px}
.pds-tsearch input:focus-visible{outline:2px solid var(--text-primary);outline-offset:2px}
.pds-tchips{display:flex;flex-wrap:wrap;gap:8px}
.pds-tchip{min-height:40px;padding:8px 16px;font:600 13px/1 var(--body);color:var(--text-primary);background:var(--panel);border:1px solid var(--border);border-radius:999px;cursor:pointer}
.pds-tchip:hover{border-color:var(--text-primary)}
.pds-tchip.is-on{background:var(--text-primary);color:var(--surface);border-color:var(--text-primary)}
.pds-tstatus{margin:0;font-size:13px;color:var(--text-secondary);min-height:1.2em}
[data-endpoint="/api/team"]{display:block;background:none;border:0;gap:0}
.pds-tgroup{margin:0 0 34px}
.pds-tgroup .pds-team-dept{margin:0 0 18px;padding-top:18px;border-top:1px solid var(--border)}
.pds-tgroup:first-child .pds-team-dept{border-top:0;padding-top:0}
.pds-tgrid,.pds-tskel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:20px}
.pds-tcard{display:flex;flex-direction:column;gap:6px;width:100%;padding:0;margin:0;text-align:left;font:inherit;color:var(--text-primary);background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pds-tphoto{position:relative;display:block;width:100%;aspect-ratio:4/5;overflow:hidden;background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--r-lg)}
.pds-tphoto img{display:block;width:100%;height:100%;max-width:none;margin:0;object-fit:cover;transition:transform .35s ease}
.pds-tinitials{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font:700 clamp(2rem,6vw,3.2rem)/1 var(--display);letter-spacing:-.04em;color:var(--text-secondary);background:var(--surface-alt)}
.pds-tname{margin-top:8px;font:700 1.05rem/1.25 var(--display);letter-spacing:-.02em}
.pds-trole{font-size:.9rem;line-height:1.35;color:var(--text-secondary)}
@media (max-width:640px){.pds-tgrid,.pds-tskel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 14px}.pds-tname{font-size:.98rem}.pds-trole{font-size:.85rem}}
.pds-tcard:hover .pds-tphoto{border-color:var(--text-primary)}
.pds-tcard:hover .pds-tphoto img{transform:scale(1.03)}
.pds-tcard:focus-visible{outline:2px solid var(--text-primary);outline-offset:4px;border-radius:var(--r-lg)}
.pds-tskel .pds-tphoto,.pds-tskel .pds-tname,.pds-tskel .pds-trole{background:linear-gradient(90deg,var(--surface-alt) 25%,var(--panel) 50%,var(--surface-alt) 75%);background-size:200% 100%;animation:pdsTshimmer 1.3s linear infinite}
.pds-tskel{cursor:default}
.pds-tskel .pds-tname{height:1.05rem;width:70%;border-radius:6px}
.pds-tskel .pds-trole{height:.9rem;width:45%;border-radius:6px}
@keyframes pdsTshimmer{to{background-position:-200% 0}}
.pds-scroll-lock,.pds-scroll-lock body{overflow:hidden}
.pds-tmodal{position:fixed;inset:0;z-index:300;display:flex;align-items:flex-end;justify-content:center}
.pds-tmodal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6);opacity:0;transition:opacity .22s ease}
.pds-tmodal-panel{position:relative;display:flex;flex-direction:column;width:100%;max-height:92vh;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;color:var(--text-primary);background:var(--panel);border:1px solid var(--border);border-bottom:0;border-radius:var(--r-lg) var(--r-lg) 0 0;box-shadow:0 -20px 60px rgba(0,0,0,.35);transform:translateY(100%);transition:transform .26s cubic-bezier(.2,.8,.2,1);padding-bottom:env(safe-area-inset-bottom,0)}
.pds-tmodal-panel:focus{outline:0}
.pds-tmodal.is-open .pds-tmodal-backdrop{opacity:1}
.pds-tmodal.is-open .pds-tmodal-panel{transform:none}
.pds-tmodal-x{position:absolute;top:10px;right:10px;z-index:2;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:28px;line-height:1;color:var(--text-primary);background:var(--panel);border:1px solid var(--border);border-radius:50%;cursor:pointer}
.pds-tmodal-x:hover{border-color:var(--text-primary)}
.pds-tmodal-x:focus-visible{outline:2px solid var(--text-primary);outline-offset:2px}
.pds-tmodal-photo{flex:none;width:100%;aspect-ratio:4/3;max-height:42vh;overflow:hidden;background:var(--surface-alt)}
.pds-tmodal-photo img{display:block;width:100%;height:100%;max-width:none;margin:0;object-fit:cover;object-position:center 20%}
.pds-tmodal-body{display:grid;gap:6px;padding:20px 22px 26px}
.pds-tmodal-body h2{margin:0;font:700 clamp(1.4rem,5vw,1.9rem)/1.15 var(--display);letter-spacing:-.03em;overflow-wrap:anywhere}
.pds-tmodal-role{margin:0;font-weight:600;color:var(--text-primary)}
.pds-tmodal-dept{margin:0;font-size:.85rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.08em}
.pds-tmodal-bio{margin:12px 0 0;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere;color:var(--text-secondary)}
.pds-tmodal-sub{margin:20px 0 4px;padding-top:16px;border-top:1px solid var(--border);font:700 .8rem/1 var(--body);letter-spacing:.1em;text-transform:uppercase;color:var(--text-secondary)}
.pds-tcontact{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.pds-tcontact li{display:grid;grid-template-columns:84px 1fr;gap:10px;align-items:center;min-height:44px;border-bottom:1px solid var(--border)}
.pds-tcontact li:last-child{border-bottom:0}
.pds-tcontact span{font-size:.85rem;color:var(--text-secondary)}
.pds-tcontact a{color:var(--text-primary);overflow-wrap:anywhere;text-underline-offset:3px}
@media (min-width:721px){
  .pds-tmodal{align-items:center;padding:24px}
  .pds-tmodal-panel{width:min(860px,100%);max-height:86vh;flex-direction:row;border:1px solid var(--border);border-radius:var(--r-xl);transform:translateY(14px) scale(.97);opacity:0;transition:transform .24s cubic-bezier(.2,.8,.2,1),opacity .2s ease;padding-bottom:0;overflow:hidden}
  .pds-tmodal.is-open .pds-tmodal-panel{opacity:1}
  .pds-tmodal-photo{width:42%;max-height:none;aspect-ratio:auto;min-height:420px}
  .pds-tmodal-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:36px 34px 34px;align-content:start}
}
@media (prefers-reduced-motion:reduce){
  .pds-tmodal-backdrop,.pds-tmodal-panel{transition:none}
  .pds-tphoto img{transition:none}
  .pds-tskel .pds-tphoto,.pds-tskel .pds-tname,.pds-tskel .pds-trole{animation:none}
}

/* ===== Single service page: individually bookable people ===== */
.pds-people-head{margin-top:32px!important}
.pds-people-note{margin:6px 0 16px;color:var(--text-secondary)}
.pds-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:20px}
html:root body .pds-person{display:flex;flex-direction:column;padding:0;overflow:hidden}
.pds-person-photo{aspect-ratio:4/5;width:100%;overflow:hidden;background:var(--surface-alt)}
html:root body .pds-api-card .pds-person-photo img,.pds-person-photo img{display:block;width:100%;height:100%;max-width:none;margin:0;object-fit:cover}
.pds-person-initials{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font:700 clamp(2rem,6vw,3rem)/1 var(--display);color:var(--text-secondary)}
.pds-person-body{display:flex;flex-direction:column;gap:8px;flex:1;padding:16px 18px 18px}
.pds-person-body h3{margin:0;font-size:1.1rem}
.pds-person-role{margin:0;font-size:.9rem;color:var(--text-secondary)}
.pds-person-rate{margin:4px 0 8px;font:700 1.25rem/1.1 var(--display);letter-spacing:-.02em}
.pds-person-rate small{display:block;margin-top:4px;font:500 12px/1.2 var(--body);letter-spacing:0;opacity:.7}
.pds-person .pds-btn{margin-top:auto;justify-content:center;text-align:center;min-height:44px}


/* ======================================================================================================
   FLUID TYPE + MOBILE HERO
   Letters scale with the screen: one-column hero from tablet down, headings shrink with the viewport,
   words are never chopped mid-word, the decorative logo/circle stop fighting the text on phones.
   (Selectors carry the same `html:root body` weight as the desktop rules so they reliably win.)
   ====================================================================================================== */
html:root body .pds-hero h1,
html:root body .pds-hero:not(:has(.pds-hero-media)) h1 { font-size: clamp(1.7rem, .9rem + 5.6vw, 5.25rem); overflow-wrap: break-word; word-break: normal; hyphens: manual; }

@media (max-width: 1023px) {
  html:root body .pds-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  html:root body .pds-hero-content { max-width: 100%; }
  html:root body .pds-hero-media { width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 16 / 10; transform: none; }
}

@media (max-width: 767px) {
  html:root body .pds-hero { min-height: 0; padding: 32px 20px 26px; border-radius: 22px; gap: 22px; }
  html:root body .pds-hero h1,
  html:root body .pds-hero:not(:has(.pds-hero-media)) h1 { max-width: 100%; font-size: clamp(1.7rem, 8.2vw, 3.4rem); line-height: 1.08; margin-bottom: 16px; overflow-wrap: break-word; }
  html:root body .pds-hero p { max-width: 100%; font-size: clamp(.95rem, 4vw, 1.1rem); line-height: 1.6; }
  html:root body .eyebrow, html:root body .pds-hero .eyebrow { font-size: clamp(10px, 2.8vw, 11px); letter-spacing: .14em; }
  html:root body .pds-hero-actions { margin-top: 22px; }
  html:root body .pds-hero-media { max-width: 100%; aspect-ratio: 4 / 3; }
  html:root body .pds-hero-logo { opacity: .12; width: 64vw; top: 6%; right: -16%; transform: none; }
  html:root body .pds-hero::after { width: 150px; height: 150px; right: -52px; top: -52px; }
  html:root body .pds-section h2, html:root body .pds-section-head h2 { font-size: clamp(1.5rem, 6.8vw, 2.4rem); line-height: 1.1; }
  html:root body .pds-card h3, html:root body .pds-pricing-card h3 { font-size: clamp(1.05rem, 5vw, 1.3rem); }
  html:root body .pds-btn { font-size: clamp(.9rem, 3.8vw, 1rem); }
}

@media (max-width: 360px) {
  html:root body .pds-hero { padding: 26px 16px 22px; }
  html:root body .pds-hero h1,
  html:root body .pds-hero:not(:has(.pds-hero-media)) h1 { font-size: clamp(1.45rem, 8vw, 1.7rem); }
}

/* Home hero shares its row with the photo, so its heading is capped to keep words whole on desktop. */
@media (min-width: 861px) {
  html:root body[data-page="index"] .pds-hero h1 { font-size: clamp(36px, 5vw, 70px); overflow-wrap: break-word; }
}

/* Checkboxes and radios inside ANY form (pickup, volunteer/recruitment, review): the generic
   "form input" rule above makes every input full width and 48px tall, which blew checkboxes up
   and pushed their labels off screen. Keep them small and let the label text wrap beside them. */
html:root body form:not(.pds-inline-form) input[type="checkbox"],
html:root body form:not(.pds-inline-form) input[type="radio"] {
  width: 20px; height: 20px; min-width: 20px; max-width: 20px; min-height: 0; padding: 0; margin: 2px 0 0;
  flex: none; border-radius: 4px; accent-color: var(--text-primary); cursor: pointer;
}
html:root body form:not(.pds-inline-form) input[type="radio"] { border-radius: 50%; }
html:root body form label:has(> input[type="checkbox"]),
html:root body form label:has(> input[type="radio"]) { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
html:root body form label:has(> input[type="checkbox"]) > span,
html:root body form label:has(> input[type="radio"]) > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
