/* file: wp-content/themes/YOUR_THEME/assets/css/style-about.css */
/* -------------------------------------------------------------------------- */
/* About: Mission & Ethos pills (About-only)                                  */
/* -------------------------------------------------------------------------- */
.nf-pill-list {
  display: flex;
  flex-direction: column; /* mobile: stack */
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}
.nf-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--pill-border, currentColor);
  background: var(--pill-bg, transparent);
  color: var(--pill-text, currentColor);
  border-radius: 0.5rem;
  padding: 2.25rem 1.5rem;
  gap: 0.5rem;
  width: 100%;
  max-width: 15.625rem;
}
.nf-pill__label {
  color: var(--pill-text, currentColor);
  text-align: center;
  /* Mobile/P1 Large */
  font: var(--Mobile-P1-Large);
}
/* Desktop: wrap like a pill cloud */
@media (min-width: 768px) {
  .nf-pill-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
  	margin-bottom: 6rem;
  }
  .nf-pill {
    width: auto;
    padding: 3rem 1.5rem;
  }
  .nf-pill__label {
    width: auto;
    font: var(--Desktop-P1-Large);
  }
}
/* -------------------------------------------------------------------------- */
/* Our Story (About)                                                          */
/* -------------------------------------------------------------------------- */ :root {
  --nf-story-spine: rgba(0, 0, 0, .12);
  --nf-story-accent: var(--Tertiary-Hot-Set, #FF8F77);
  --nf-story-accent-bg: var(--Tertiary-Hot-Set-BG, #FDF3F0);
  --nf-story-accent-dark: var(--Tertiary-Hot-Set-Dark, #A84834);
}
.nf-story {
  padding: 3rem 1.5rem 0;
}
@media (min-width: 768px) {
  .nf-story {
    padding: 6rem 1.5rem;
  }
}
.nf-story__header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.nf-story__topline {
  margin-bottom: 1.5rem;
}
/* Base list */
.nf-story__tiles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
/* Marker pieces */
.nf-story__marker {
  display: flex;
  flex-direction: column;
}
.nf-story__dot {
  width: 2.4375rem;
  height: 2.4375rem;
  border-radius: 999px;
  background: var(--nf-story-accent-bg);
  border: 4px solid var(--nf-story-accent);
  display: block;
  flex: 0 0 auto;
}
.nf-story__stem {
  display: block;
  height: .25rem;
  width: 1.25rem;
  background: var(--nf-story-accent);
}
/* Card */
.nf-story__card {
  width: 100%;
  background: var(--Primary-Open-Frame, #FFF);
  padding: 1.5rem;
  border-radius: .5rem;
  border: 4px solid var(--nf-story-accent);
}
.nf-story__card-title {
  color: var(--nf-story-accent-dark);
  font-feature-settings: "liga"off;
  font: var(--Mobile-Topline);
  letter-spacing: .05625rem;
  text-transform: uppercase;
  margin: 0 0 .5rem;
}
.nf-story__card-text {
  color: var(--Primary-Director-Black, #252525);
  font-feature-settings: "liga"off;
  font: var(--Mobile-P1);
  margin: 0;
}
/* -------------------------------------------------------------------------- */
/* MOBILE (<=767): left markers + vertical gray spine                          */
/* -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .nf-story__tiles {
    position: relative;
    --nf-story-marker-col: 3.25rem;
    --nf-story-spine-x: 3rem; /* center of dot visually */
  }
  .nf-story__tiles::before {
    content: "";
    position: absolute;
    top: 3.25rem;
    bottom: 3.5rem;
    left: 1.85rem;
    width: .25rem;
    background: var(--nf-story-spine);
    pointer-events: none;
    z-index: 0;
  }
  .nf-story__tile {
    display: grid;
    grid-template-columns: var(--nf-story-marker-col) 1fr;
    column-gap: 1rem;
    align-items: start;
  }
  .nf-story__marker {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    align-items: flex-start;
  }
  /* Center dot over the spine */
  .nf-story__dot {
    margin-left: .75rem;
  }
  /* Stem connects dot -> card */
  .nf-story__stem {
    margin-top: calc((2.4375rem / 2) * -1); /* pull up to align mid-dot */
    margin-left: var(--nf-story-spine-x);
  }
  .nf-story__tile:last-child .nf-story__stem {
    display: none;
  }
  .nf-story__tile:last-child .nf-story__card {
    border: 0;
  }
}
/* -------------------------------------------------------------------------- */
/* DESKTOP (>=768): centered vertical spine; alternate left/right cards         */
/* last tile centered, no border/background                                    */
/* -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .nf-story__topline {
    margin-bottom: 4rem;
  }
  .nf-story__tiles {
    position: relative;
    gap: 3rem;
    /* the list is still 1 col; each tile becomes 3-col */
    grid-template-columns: 1fr;
  }
  /* Center vertical gray spine */
  .nf-story__tiles::before {
    content: "";
    position: absolute;
    top: 6rem;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    width: .25rem;
    background: var(--nf-story-spine);
    pointer-events: none;
    z-index: 0;
  }
  .nf-story__tile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6rem minmax(0, 1fr);
    align-items: center;
    position: relative;
    z-index: 1;
  }
  /* Marker sits in the center column, with horizontal stems */
  .nf-story__marker {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  /* Default: stem will be positioned per side using order */
  .nf-story__stem {
    margin: 0;
    width: 2.375rem;
  }
  /* Odd tiles: card on RIGHT, stem points RIGHT */
  .nf-story__tile:nth-child(even) .nf-story__card {
    grid-column: 1;
    justify-self: end;
    text-align: left;
    order: 1;
  }
  .nf-story__tile:nth-child(even) .nf-story__stem {
    order: -1; /* stem before dot */
  }
  /* Even tiles: card on LEFT, stem points LEFT */
  .nf-story__tile:nth-child(odd) .nf-story__card {
    grid-column: 3;
    justify-self: start;
    text-align: left;
  }
  .nf-story__tile:nth-child(odd) .nf-story__stem {
    order: 2; /* stem after dot */
  }
  /* ODD tiles: marker nudges right (margin-left) */
  .nf-story__tile:nth-child(odd) .nf-story__marker {
    margin-left: 1.75rem;
    margin-right: 0;
  }
  /* EVEN tiles: marker nudges left (margin-right) */
  .nf-story__tile:nth-child(even) .nf-story__marker {
    margin-right: 1.75rem;
    margin-left: 0;
    order: 2;
  }
  /* Typography bump */
  .nf-story__card-text {
    font: var(--Desktop-P1);
  }
  /* LAST TILE: centered, no border/background; marker below text on spine */
  .nf-story__tile:last-child {
    grid-template-columns: 1fr 6rem 1fr;
    grid-template-rows: auto auto;
    align-items: start;
  }
  .nf-story__tile:last-child .nf-story__card {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    text-align: center;
    border: 0;
    background: transparent;
    padding: 0;
    /* max-width: 30rem; */
    /* order: 2; */
  }
  .nf-story__tile:last-child .nf-story__marker {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0 auto 1rem;
    gap: 0;
  }
  .nf-story__tile:last-child .nf-story__stem {
    display: none;
  }
}
@media (max-width: 767px) {
  .nf-section .nf-story__tile .nf-flourish--a {
    display: none;
  }
  .nf-section .nf-story__tile .nf-flourish--b {
    display: none;
  }
  .nf-section .nf-story__tile .nf-flourish--c {
    display: none;
  }
}
/* Flourishes */
@media (min-width: 768px) {
  .nf-section .nf-story__tile .nf-flourish--a {
    left: 50%;
    transform: translateX(-50%);
    margin-left: -5rem;
    margin-top: -9rem;
  }
  .nf-section .nf-story__tile .nf-flourish--b {
    right: 50%;
    transform: translateX(-50%);
    margin-right: -46rem;
    margin-top: -15rem;
  }
  .nf-section .nf-story__tile .nf-flourish--c {
    left: 50%;
    transform: translateX(-50%);
    margin-left: -35.5rem;
    margin-top: 14.5rem;
  }
	.nf-header .nf-story__topline {
		margin-bottom: 2.5rem;
	}
}
.nf-story--inner .nf-story__tiles .nf-story__tile:first-child {}
/* -------------------------------------------------------------------------- */
/* Our Team (About)                                                          */
/* -------------------------------------------------------------------------- */
.nf-team__header .topline {
	max-width: 34.5rem;
}
.nf-team__header .top__heading h2 {
	margin-bottom: 0;
}
.nf-team__header .top__excerpt {
	max-width: 41.875rem;
}
.nf-team__header .top__excerpt p {
	text-align: center;
	font: var(--Mobile-P1);
	margin: 0;
}
.team-intro h2 {
  text-align: center;
  color: var(--Primary-Director-Black, #252525);
  text-align: center;
  /* Mobile/H2 */
  font: var(--Mobile-H2);
  letter-spacing: 0.0275rem;
  margin-bottom: 1.5rem;
}
.team-intro p {
  color: var(--Primary-Director-Black, #252525);
  text-align: center;
  /* Mobile/P1 */
  font: var(--Mobile-P1);
}
.team-gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  /* 3-col container width math (same pattern as videos) */
  max-width: calc((342px * 3) + (1.5rem * 2));
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  justify-items: center;
}
.team-gallery-tile {
  width: 100%;
  max-width: 342px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.10);
}
.team-gallery-img {
  display: block;
  width: 100%;
  aspect-ratio: 342 / 440;
  height: auto;
  object-fit: cover;
}
.team-gallery-meta {
  background: #fff;
  padding: 1rem 1.5rem;
}
.team-gallery-title {
  color: var(--Primary-Director-Black, #252525);
  /* Mobile/Topline */
  font: var(--Mobile-Topline);
  letter-spacing: 0.05625rem;
  text-transform: uppercase;
}
.team-gallery-caption p {
  color: var(--Primary-Director-Black, #252525);
  /* Mobile/P1 */
  font: var(--Mobile-P1);
}
.team-gallery-caption > *:first-child {
  margin-top: 0;
}
.team-gallery-caption > *:last-child {
  margin-bottom: 0;
}
/* 2 columns */
@media (min-width: 568px) {
  .team-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 342px));
    max-width: calc((342px * 2) + (1.5rem * 1));
    justify-content: center;
  }
}
@media (min-width: 768px) {
	.top__excerpt p {
		font: var(--Desktop-P1);
	}
  .team-gallery-caption p {
    font-size: 1.125rem;
    line-height: 1.575rem;
  }
  .team-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 342px));
    max-width: calc((342px * 3) + (1.5rem * 2));
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .nf-section .about-header .nf-flourish--a {
    display: none;
  }
  .nf-section .about-header .nf-flourish--b {
    display: none;
  }
}
/* Flourishes */
@media (min-width: 768px) {
  .nf-section .about-header .nf-flourish--a {
    top: -4rem;
    left: 12rem;
  }
  .nf-section .about-header .nf-flourish--b {
    bottom: -4rem;
    left: 14rem;
  }
}