/* About page — page-specific styles (shared design system lives in /styles.css) */
/* ---- Inner-page section scaffolding (Squarespace 7.1 section heights) ---- */
.sh-small  { --min-h: 33vh;  --cw-pad: 3.3vmax; }
.sh-medium { --min-h: 66vh;  --cw-pad: 6.6vmax; }
.sh-large  { --min-h: 100vh; --cw-pad: 10vmax; }
.sh-custom { --min-h: 0px;   --cw-pad: 0px; }
.first-section { padding-top: var(--header-height); }

/* paragraph-3 ("small") text */
p.small { font-size: calc(-0.12vmax + 1rem); }
.c-accent { color: var(--accent); }
.txt a [class^="c-"] { text-decoration: inherit; }

/* text block with a navy background card */
.txt-card { background: var(--black); border-radius: 20px; }
.txt-card > .txt { padding: 8%; }

/* content-fit images: position inside the block per breakpoint */
main .img-block.fit img { object-position: var(--fpm, 50% 50%); }
@media (min-width: 768px) { main .img-block.fit img { object-position: var(--fpd, 50% 50%); } }

/* current page in the desktop nav: 1px underline */
.header-nav-item--active a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 1px 1px;
  background-position: 0 calc(100% - .1em);
  background-repeat: repeat-x;
}

/* live text blocks: headings keep a 2rem bottom margin before following copy */
.txt :is(h1, h2, h3, h4) { margin-bottom: 2rem; }

/* live body copy is set in "Montserrat" alone, so glyphs it lacks (→) fall
   back to the browser default face, not Helvetica */
main p { font-family: "Montserrat"; }
/* empty rich-text paragraphs keep one line (Squarespace preserves them) */
main p:empty::before { content: "\200b"; }

/* ---- List sections (Squarespace user-items-list, "simple" layout, 4 columns) ---- */
.ilist { padding: var(--pt) 0 var(--pb); }
.ilist-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: var(--sqs-site-max-width);
  margin: 0 auto;
  padding: 0 var(--sqs-site-gutter);
  align-items: stretch;
}
.ilist-item {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: 15px;
  color: var(--black);
}
.ilist-media-inner img { display: block; width: 100%; height: auto; }
.ilist-title {
  margin: 0;
  font-size: calc((var(--tv) - 1) * 1.2vmax + 1rem);
  line-height: 1.1136em;
  letter-spacing: -.02em;
  font-weight: 600;
  color: var(--black);
  text-align: left;
  text-wrap: wrap;
}
.ilist-desc { font-size: calc(0.12vmax + 1rem); line-height: 24px; text-align: left; }
.ilist-desc p { font-size: inherit; line-height: 1.5em; margin: 1rem 0; }
.ilist-desc p:first-child { margin-top: 0; }
.ilist-desc p:last-child { margin-bottom: 0; }

/* icon cards */
.icons .ilist-item { padding: 10%; }
.icons .ilist-media { width: 15%; margin-bottom: 6%; }
.icons .ilist-desc { margin-top: 3%; }

/* people cards: square photo on top */
.people .ilist-item { padding: 0 0 10%; }
.people .ilist-media { width: 100%; margin-bottom: 10%; }
.people .ilist-media-inner { position: relative; padding-bottom: 100%; overflow: hidden; border-radius: 15px 15px 0 0; height: 1px; box-sizing: content-box; }
.people .ilist-media-inner img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 50%; }
.people .ilist-title, .people .ilist-desc { margin-left: 10%; margin-right: 10%; }
.people .ilist-desc { margin-top: 6%; }

@media (max-width: 767px) {
  .ilist-items { grid-template-columns: minmax(0, 1fr); }
}

.proof { background: rgba(255, 221, 0, .45); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.dark .proof { background: rgba(255, 221, 0, .35); }

/* Our values (27 Oct 2026): icon columns like the other redesigned pages; the stock photo is gone */
.about-values .content-wrapper { padding: 7vmax 0; }
.values-wrap { width: calc(100% - var(--sqs-site-gutter) * 2); margin: 0 auto; }
.values-wrap h2 { margin: 0 0 3vmax; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 4vw; margin: 0; padding: 0; list-style: none; }
.values-grid li { padding-top: 2rem; border-top: 1px solid rgba(38, 59, 80, .15); }
.value-icon { display: block; width: 64px; height: 64px; margin-bottom: 1.25rem; }
.value-icon img { display: block; width: 100%; height: 100%; }
.values-grid h3 { margin: 0 0 .6rem; font-size: calc(.48vmax + 1rem); line-height: 1.3; color: var(--black); }
.values-grid p { margin: 0; font-size: calc(.24vmax + 1rem); line-height: 1.5; color: #686868; }
@media (max-width: 767px) {
  .values-wrap { width: calc(100% - var(--sqs-mobile-site-gutter, 6vw) * 2); }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid li { padding: 1.5rem 0 1.75rem; }
}

/* Team bios (27 Oct 2026): clamped to four lines with a Read more toggle (about.js) */
.bio-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.bio-clamp > p { margin: 0 0 1rem; }
.bio-clamp > p:last-child { margin-bottom: 0; }
.bio-toggle { display: inline-flex; align-items: center; gap: .4em; margin: .75rem 0 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--black); cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.bio-toggle::after { content: ''; width: .45em; height: .45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.15em) rotate(45deg); transition: transform .25s ease; }
.bio-open .bio-toggle::after { transform: translateY(.1em) rotate(-135deg); }
.bio-open .bio-clamp { display: block; -webkit-line-clamp: unset; }
.bio-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.about-values .txt h2 { margin: 0 0 3vmax; }

/* 27 Oct 2026: cards and values align with the section headings at every width (same container as the fe grid) */
.ilist-items { width: min(var(--sqs-site-max-width), calc(100% - var(--sqs-site-gutter) * 2)); max-width: none; padding: 0; }
.values-wrap { width: min(var(--sqs-site-max-width), calc(100% - var(--sqs-site-gutter) * 2)); }
@media (max-width: 767px) {
  .ilist-items, .values-wrap { width: calc(100% - var(--sqs-mobile-site-gutter) * 2); }
}
