/* ============================================================================
   PC Pandit — base, layout, components
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

/* Theme changes swap dozens of tokens at once; without this every element
   with a colour transition smears through an intermediate palette. */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after {
  transition: none !important;
}

::selection {
  background: color-mix(in srgb, var(--accent-fill) 26%, transparent);
  color: var(--text);
}

/* Scrollbars, themed from the palette rather than left to the browser. */
* { scrollbar-color: var(--border-strong) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-full);
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }

body {
  margin: 0;
  caret-color: var(--accent);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); letter-spacing: -0.04em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.035em; }
h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0; text-wrap: pretty; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

/* ---------- Focus: always visible, never removed ------------------------ */

:focus-visible {
  outline: 3px solid var(--accent-fill);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -100%;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--accent-fill);
  border-radius: var(--r);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-2); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--sunken { background: var(--surface-sunken); }

.section-head {
  max-width: 46rem;
  margin-bottom: var(--s-5);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* .eyebrow removed — the craft floor bans kickers above headings outright.
   The class is kept as a no-op so any stray markup cannot reintroduce it. */
.eyebrow { display: none !important; }

.lede {
  font-size: var(--t-body-lg);
  color: var(--text-muted);
  margin-top: var(--s-2);
  max-width: 68ch;
  line-height: 1.55;
}
.section-head--center .lede { margin-inline: auto; }

.grid { display: grid; gap: var(--s-3); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;              /* >= 44px touch target */
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent-fill);
  color: var(--text-on-accent-fill);
  box-shadow: var(--shadow-1);
}
.btn--primary:hover {
  background: var(--accent-fill-hover);
  box-shadow: var(--shadow-2);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--text);
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

.btn--on-dark {
  background: transparent;
  color: var(--text-on-inverse);
  border-color: var(--border-inverse);
}
.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: var(--t-body); }
.btn--block { width: 100%; }

/* Text link with trailing arrow (base system "tertiary" button) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  min-height: 44px;
}
.link-arrow svg { transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header / navigation ----------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand__mark { flex: none; width: 44px; height: 44px; }
/* Two inks of the logo mark: navy on light grounds, light ink on dark ones. */
.brand__mark--light { display: none; }
:root[data-theme="dark"] .brand__mark--ink { display: none; }
:root[data-theme="dark"] .brand__mark--light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__mark--ink { display: none; }
  :root:not([data-theme="light"]) .brand__mark--light { display: block; }
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}

.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent-fill);
}

.header__actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }

.header__cta { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr min(22rem, 86vw);
}
.drawer[hidden] { display: none; }
.drawer__scrim {
  background: rgba(7, 23, 48, 0.5);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.drawer__panel {
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: var(--s-2) var(--s-3) var(--s-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.drawer__top { display: flex; justify-content: flex-end; }
.drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.drawer__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: var(--t-body-lg);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.drawer__list a[aria-current="page"] { color: var(--accent); }

@media (min-width: 62rem) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero -------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero__grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
  padding-block: clamp(3rem, 1.5rem + 7vw, 6rem);
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: 1.12fr 0.88fr; gap: var(--s-6); }
}

.hero__title {
  font-size: var(--t-display);
  margin-bottom: var(--s-3);
  max-width: 18ch;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__lede {
  font-size: var(--t-body-lg);
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: var(--s-4);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }


/* ---------- Stat bar ---------------------------------------------------- */

/* ---------- Cards ------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card__body { color: var(--text-muted); font-size: var(--t-small); flex: 1; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent-fill) 22%, transparent);
}
/* Feature list inside cards */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.ticks li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.625rem;
  font-size: var(--t-small);
  align-items: start;
}
.ticks svg { color: var(--accent); margin-top: 0.25rem; }
.ticks b { font-weight: 600; display: block; }
.ticks span { color: var(--text-muted); font-size: var(--t-label); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--surface-sunken);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--t-label);
  font-weight: 600;
}
.chip svg { color: var(--support); }

/* ---------- Process steps ----------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  counter-reset: step;
}
.step { position: relative; padding-top: var(--s-3); }
.step::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: var(--border);
}
.step--done::before { background: var(--accent-fill); }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: var(--r-full);
  background: var(--surface-inverse);
  color: var(--text-on-inverse);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-small);
  margin-bottom: 0.75rem;
}
.step p { color: var(--text-muted); font-size: var(--t-small); margin-top: 0.25rem; }

/* ---------- Testimonials ------------------------------------------------ */

.quotes { position: relative; }
.quotes__viewport { overflow: hidden; }
.quotes__track {
  display: flex;
  transition: transform var(--dur-slow) var(--ease);
}
.quote {
  flex: 0 0 100%;
  padding-inline: 2px;
}
@media (min-width: 48rem) { .quote { flex-basis: 50%; } }

.quote__card {
  height: 100%;
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.quote__stars { display: flex; gap: 2px; color: var(--highlight); }
.quote__text {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.quote__who { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.quote__avatar {
  width: 44px; height: 44px;
  flex: none;
  border-radius: var(--r-full);
  background: var(--support-soft);
  color: var(--teal-800);        /* 8.0:1 on --support-soft; --support was 3.81:1 */
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
}
:root[data-theme="dark"] .quote__avatar { color: var(--teal-100); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .quote__avatar { color: var(--teal-100); }
}
.quote__name { font-weight: 700; font-size: var(--t-small); }
.quote__role { font-size: var(--t-label); color: var(--text-muted); }

.quotes__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--s-3);
  justify-content: center;
}
.quotes__dots { display: flex; gap: 0.375rem; margin-inline: 0.5rem; }
.quotes__dot {
  width: 40px; height: 4px;
  padding: 0;
  border: 0;
  border-radius: var(--r-full);
  background: var(--border-strong);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.quotes__dot[aria-selected="true"] { background: var(--accent-fill); }

/* ---------- Dark CTA band ----------------------------------------------- */

.band {
  position: relative;
  background: var(--surface-inverse);
  color: var(--text-on-inverse);
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(23, 131, 127, 0.28), transparent 60%),
    radial-gradient(40rem 24rem at 10% 100%, rgba(94, 166, 53, 0.22), transparent 60%);
  pointer-events: none;
}
.band > * { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band p { color: rgba(232, 238, 246, 0.78); }

/* ---------- Split feature ----------------------------------------------- */

.split {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
/* When one column is much taller, centring strands the short one in dead space. */
.split--top { align-items: start; }
@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
.panel {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-inverse);
  box-shadow: var(--shadow-2);
  aspect-ratio: 5 / 4;
}
figure.panel { margin: 0; }
.panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Catalog ----------------------------------------------------- */

.catalog { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 62rem) {
  .catalog { grid-template-columns: 16rem 1fr; gap: var(--s-5); }
}
.catalog__nav {
  position: sticky;
  top: 6rem;
  padding: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}
.catalog__nav ol { list-style: none; margin: 0; padding: 0; counter-reset: cat; }
.catalog__nav a {
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
  padding: 0.5rem 0.625rem;
  min-height: 44px;
  border-radius: var(--r);
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.catalog__nav a:hover { background: var(--surface-sunken); color: var(--text); }
.catalog__nav a.is-active { background: var(--accent-soft); color: var(--accent); }
.catalog__nav a::before {
  counter-increment: cat;
  content: counter(cat);
  font-variant-numeric: tabular-nums;
  color: var(--text-subtle);
  flex: none;
  min-width: 1.25rem;
}

/* ---------- Team -------------------------------------------------------- */

.person__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--r-lg);
  background: var(--surface-sunken);
  margin-bottom: var(--s-2);
  display: block;
}

/* ---------- Timeline ---------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.timeline li {
  position: relative;
  padding-left: var(--s-4);
  border-left: 2px solid var(--border);
  padding-bottom: var(--s-2);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: var(--r-full);
  background: var(--accent-fill);
  border: 3px solid var(--bg);
}
.timeline h3 { margin-bottom: 0.25rem; }
.timeline p { color: var(--text-muted); font-size: var(--t-small); }

/* ---------- Forms ------------------------------------------------------- */

.form { display: grid; gap: var(--s-2); }
.field { display: grid; gap: 0.375rem; }
.field__row { display: grid; gap: var(--s-2); }
@media (min-width: 40rem) { .field__row { grid-template-columns: 1fr 1fr; } }

.label {
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.label .req { color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  font-family: inherit;
  font-size: var(--t-body);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 8rem; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236D6D6D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.75rem;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent-fill);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.hint { font-size: var(--t-label); color: var(--text-muted); }
.error {
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--danger);
  display: flex;
  gap: 0.375rem;
  align-items: center;
}
.error[hidden] { display: none; }

.form-status {
  padding: var(--s-2);
  border-radius: var(--r);
  font-size: var(--t-small);
  font-weight: 600;
  border: 1px solid transparent;
}
.form-status[hidden] { display: none; }
.form-status--ok {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent-fill) 34%, transparent);
}
.form-status--err {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 34%, transparent);
}

/* ---------- Contact info ------------------------------------------------ */

.info { display: grid; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.info li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.875rem; align-items: start; }
.info__label {
  display: block;
  margin-bottom: 0.125rem;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.info a { font-weight: 600; }

/* ---------- Footer ------------------------------------------------------ */

.site-footer {
  background: var(--surface-inverse);
  color: var(--text-on-inverse);
  padding-block: var(--s-6) var(--s-3);
}
.site-footer h2, .site-footer h3 { color: #fff; }
.footer__grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.footer__brand { grid-column: 1 / -1; max-width: 22rem; }
@media (min-width: 62rem) { .footer__brand { grid-column: auto; } }
.footer__brand p {
  color: rgba(232, 238, 246, 0.7);
  font-size: var(--t-small);
  margin-top: var(--s-2);
}
.footer__title {
  font-family: var(--font-body);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.55);
  margin-bottom: 0.75rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(232, 238, 246, 0.82);
  text-decoration: none;
  font-size: var(--t-small);
}
.footer__list a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-inverse);
  font-size: var(--t-label);
  color: rgba(232, 238, 246, 0.6);
}
.site-footer .brand { color: #fff; }
.site-footer .brand__sub { color: rgba(232, 238, 246, 0.6); }

/* ---------- Page header (inner pages) ----------------------------------- */

.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 var(--s-2);
  padding: 0;
  font-size: var(--t-label);
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--text-subtle); }

/* ---------- Motion ------------------------------------------------------ */

/* One authored moment: the hero states its case on arrival. Everything below
   the fold is already visible — no repeated per-section entrance. */
.js .hero__stage > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise var(--dur-slow) var(--ease) forwards;
}
.js .hero__stage > *:nth-child(1) { animation-delay: 60ms; }
.js .hero__stage > *:nth-child(2) { animation-delay: 140ms; }
.js .hero__stage > *:nth-child(3) { animation-delay: 220ms; }
.js .hero__stage > *:nth-child(4) { animation-delay: 300ms; }
.js .hero--media .media-bg img,
.js .page-head--media .media-bg img { animation: settle 1800ms var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes settle {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: none; }
}

/* Cards lift on approach from a visible resting state — never a fade-in. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .hero__stage > *, .js .media-bg img { animation: none; opacity: 1; transform: none; }
}

/* ---------- Print ------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .drawer, .quotes__controls, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================================
   Craft-floor layout primitives
   The uniform "icon + heading + text" card grid is the lazy page scaffold.
   These replace it with weighted, editorial structures.
   ========================================================================== */

/* ---------- Weighted bento: cards earn different sizes ------------------ */

.bento { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 62rem) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: var(--s-3); }
  .bento > .b-7 { grid-column: span 7; }
  .bento > .b-5 { grid-column: span 5; }
  .bento > .b-4 { grid-column: span 4; }
  .bento > .b-12 { grid-column: span 12; }
}
@media (max-width: 61.999rem) {
  .bento > * { grid-column: span 2; }
}

/* The lead tile carries more weight: larger type, an inverted ground. */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
a.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--accent-fill) 45%, var(--border));
}
.tile h3 { font-size: var(--t-h3); }
.tile p { color: var(--text-muted); font-size: var(--t-small); }

.tile--lead {
  background: var(--surface-inverse);
  border-color: transparent;
  color: var(--text-on-inverse);
  padding: var(--s-4);
  overflow: hidden;
}
.tile--lead h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); color: #fff; }
.tile--lead p { color: rgba(232, 238, 246, 0.74); font-size: var(--t-body); max-width: 42ch; }
.tile--lead .card-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--green-300);
  border-color: rgba(255, 255, 255, 0.16);
}
.tile--lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(34rem 20rem at 92% 8%, rgba(23, 131, 127, 0.34), transparent 62%);
  pointer-events: none;
}
.tile--lead > * { position: relative; z-index: 1; }
.tile__spacer { flex: 1; min-height: var(--s-4); }
.tile__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: var(--s-2);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--green-300);
}
a.tile--lead:hover .tile__cue svg { transform: translateX(4px); }
.tile__cue svg { transition: transform var(--dur) var(--ease); }

/* A wide tile lays its content along the horizontal axis instead. */
.tile--wide { flex-direction: row; align-items: center; gap: var(--s-3);
  flex-wrap: wrap; padding-block: var(--s-4); }
.tile--wide .tile__text { flex: 1 1 22rem; }
.tile--wide h3 { margin-bottom: 0.25rem; }

/* ---------- Rules: divider-led lists, no card chrome -------------------- */

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3) var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.rules > li { padding-top: var(--s-2); border-top: 2px solid var(--text); }
.rules h3 { font-size: var(--t-title); margin-block: 0 0.5rem; }
.rules p { color: var(--text-muted); font-size: var(--t-small); max-width: 34ch; }

/* ---------- Ledger: full-width editorial rows --------------------------- */

.ledger { display: grid; gap: 0; }
.ledger__row {
  display: grid;
  gap: var(--s-2) var(--s-5);
  padding-block: var(--s-4);
  border-top: 1px solid var(--border-strong);
  align-items: start;
}
.ledger__row:last-child { border-bottom: 1px solid var(--border-strong); }
@media (min-width: 62rem) {
  .ledger__row { grid-template-columns: 22rem 1fr; }
}
.ledger__head { display: flex; gap: 0.875rem; align-items: flex-start; }
.ledger__head h3 { font-size: var(--t-h3); margin-bottom: 0.375rem; }
.ledger__head p { color: var(--text-muted); font-size: var(--t-small); max-width: 34ch; }
.ledger .ticks { gap: 0.875rem; }
@media (min-width: 48rem) {
  .ledger .ticks { grid-template-columns: repeat(2, 1fr); gap: 1rem var(--s-3); }
}

/* ---------- Credential line: replaces the hero-metric template ---------- */

.credline {
  border-block: 1px solid var(--border);
  background: var(--surface);
}
.credline__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem var(--s-3);
  padding-block: var(--s-2);
  font-size: var(--t-small);
  color: var(--text-muted);
}
.credline__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.credline__item + .credline__item::before {
  content: "";
  align-self: center;
  width: 3px; height: 3px;
  margin-right: var(--s-2);
  border-radius: var(--r-full);
  background: var(--border-strong);
}
.credline b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-body-lg);
  color: var(--text);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Catalog blocks: hairline-led, not boxed --------------------- */

.cat-block {
  scroll-margin-top: 6rem;
  padding-top: var(--s-3);
  border-top: 2px solid var(--text);
}
.cat-block + .cat-block { margin-top: var(--s-5); }
.cat-block__head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: var(--s-3);
}
.cat-block__head h2 { font-size: var(--t-h3); }
.cat-block .ticks { gap: 1rem var(--s-3); }
@media (min-width: 48rem) { .cat-block .ticks { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Heading rhythm: more space above than below ----------------- */

.section-head { margin-bottom: var(--s-4); }
.section-head h2 + .lede { margin-top: var(--s-2); }

/* ---------- Press physics ----------------------------------------------- */

.btn:active { transform: scale(0.985); }
.btn--primary:hover { transform: translateY(-1px); }

/* ============================================================================
   Photographic grounds
   The Stitch treatment: a full-bleed photograph that dissolves into the page
   colour toward the left, so copy sits on a calm ground and the image carries
   the right-hand side. The fade is built from the theme's own --bg token.
   ========================================================================== */

.media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  --fade: var(--bg);
}
.media-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--fade) 0%,
    color-mix(in srgb, var(--fade) 94%, transparent) 34%,
    color-mix(in srgb, var(--fade) 66%, transparent) 56%,
    color-mix(in srgb, var(--fade) 18%, transparent) 82%,
    transparent 100%);
}
/* Dark theme: the photographs are shot bright; bring them down to the ground. */
:root[data-theme="dark"] .media-bg img { filter: brightness(0.58) saturate(0.85); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .media-bg img { filter: brightness(0.58) saturate(0.85); }
}

.hero--media,
.page-head--media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero--media .hero__grid,
.page-head--media .page-head__inner { position: relative; z-index: 1; }

.hero--media { display: flex; align-items: center; min-height: clamp(36rem, 82vh, 52rem); }
.hero--media > .container { width: 100%; }
.hero--media .hero__grid { grid-template-columns: minmax(0, 40rem); }
.hero--media .hero__lede { color: var(--text); opacity: 0.8; }

.page-head--media {
  display: flex;
  align-items: center;
  min-height: clamp(26rem, 58vh, 36rem);
}
.page-head--media > .container { width: 100%; }
.page-head__inner { display: grid; gap: var(--s-4); align-items: end; }
.page-head__copy { max-width: 42rem; }
.page-head--media h1 { font-size: clamp(2.375rem, 1.6rem + 3.2vw, 3.75rem); }
.page-head--media .lede { color: var(--text); opacity: 0.8; }
@media (min-width: 62rem) {
  .page-head__inner { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 62rem) {
  .media-bg--offset { left: 30%; }
}

/* Small screens: the photograph becomes a top band that dissolves downward,
   so text never sits on busy image detail. */
@media (max-width: 61.999rem) {
  .media-bg { bottom: auto; height: 24rem; }
  .media-bg::after {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--fade) 10%, transparent) 0%,
      color-mix(in srgb, var(--fade) 45%, transparent) 40%,
      color-mix(in srgb, var(--fade) 88%, transparent) 72%,
      var(--fade) 100%);
  }
  .hero--media, .page-head--media { align-items: flex-end; min-height: 0; }
  .hero--media .hero__grid { padding-top: 15rem; }
  .page-head--media .page-head__inner { padding-top: 12rem; }
}

/* Floating credential card on an inner-page hero (from the Stitch services screen). */
.stat-card {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  justify-self: start;
  padding: 1rem 1.375rem 1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
}
.stat-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-card b + span { font-size: var(--t-label); color: var(--text-muted); font-weight: 600; }

/* CTA band: the aisle photograph under a navy scrim. */
.band > .media-bg { position: absolute; z-index: 0; }
.band .media-bg img { filter: saturate(0.7); }
.band .media-bg::after {
  background: linear-gradient(180deg, rgba(12, 36, 72, 0.86) 0%, rgba(7, 23, 48, 0.94) 100%);
}
:root[data-theme="dark"] .band .media-bg img { filter: saturate(0.7) brightness(0.8); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band .media-bg img { filter: saturate(0.7) brightness(0.8); }
}
@media (max-width: 61.999rem) { .band .media-bg { height: auto; bottom: 0; } }

/* Framed photographs in split layouts. */
.panel--photo {
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
}
.panel--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, transparent 55%, rgba(7, 23, 48, 0.16));
  pointer-events: none;
}

/* Leadership portraits: monochrome at rest, colour on approach (Stitch). */
@media (hover: hover) {
  .person__photo { filter: grayscale(1); transition: filter var(--dur-slow) var(--ease); }
  .person:hover .person__photo,
  .person:focus-within .person__photo { filter: none; }
}
