/* Tokens — same values as the site's root block */
:root {
  --deep: #060a14;
  --dark: #0b1120;
  --mid: #111b30;
  --cyan: #4fc3f7;
  --accent: #2d7dd2;
  --text: rgba(255, 255, 255, .75);
  --text-dim: rgba(255, 255, 255, .62);
  --border-light: rgba(255, 255, 255, .06);
  --lt-bg: #f7f9fc;
  --lt-bg-alt: #eef2f8;
  --lt-ink: #0f1e37;
  --lt-body: rgba(15, 30, 55, .74);
  --lt-muted: rgba(20, 30, 55, .55);
  --lt-border: rgba(15, 30, 55, .1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --side-pad: clamp(20px, 6vw, 86px);
  --max-w: 1180px;
}

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



body {
  font-family: var(--sans);
  background: var(--lt-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* Shared section frames */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-dark {
  background: var(--deep);
  padding: clamp(96px, 12vw, 150px) var(--side-pad) clamp(72px, 9vw, 110px);
}

.section-light {
  background: var(--lt-bg);
  padding: clamp(72px, 9vw, 120px) var(--side-pad);
}

.section-light-alt {
  background: var(--lt-bg-alt);
  padding: clamp(72px, 9vw, 120px) var(--side-pad);
}
*/

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.eyebrow-dark { color: var(--accent); }

/* Hero */
.team-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.team-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(1100px 520px at 72% 18%, rgba(45, 125, 210, .22), transparent 62%);
}

.team-hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 500;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 26px;
}

.team-hero-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62;
  color: var(--text-dim);
  max-width: 62ch;
}

/* Founder */
.team-founder {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}

.team-portrait {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 22px 60px -18px rgba(15, 30, 55, .32), 0 2px 8px rgba(15, 30, 55, .08);
}

.team-caption {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lt-muted);
}

.team-founder-name {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--lt-ink);
  margin-bottom: 6px;
}

.team-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.team-bio {
  font-size: 16px;
  line-height: 1.72;
  color: var(--lt-body);
}

.team-bio + .team-bio { margin-top: 18px; }

/* Roster */
.team-heading {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--lt-ink);
  margin-bottom: 48px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--lt-border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -16px rgba(15, 30, 55, .28);
}

.team-card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }

.team-card-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--lt-ink);
  padding: 12px 12px 14px;
}

/* Closing bands */
.team-cta {
  display: block;
  text-align: center;
  text-decoration: none;
}

.team-cta-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--lt-ink);
  margin-bottom: 24px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  text-decoration: none;
}

.link-arrow svg { width: 15px; height: 15px; transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(4px); }

.team-origin {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 32px;
  background: #fff;
  border: 1px solid var(--lt-border);
  border-radius: 6px;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s;
}

.team-origin:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -16px rgba(15, 30, 55, .28);
}

.team-origin .eyebrow { margin: 0; }

.team-origin .link-arrow { margin-left: auto; }

.team-origin-title {
  flex: 1 1 320px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  color: var(--lt-ink);
}

/* Mobile */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .team-founder { grid-template-columns: 1fr; }
  .team-portrait { max-width: 280px; }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .team-card, .link-arrow svg { transition: none; }
}



/* Append to the end of /css/az_team.css.
   Same selectors as the existing rules, later in the file, so these win. */

/* Founder portrait takes a wider column: 315px → 400px */
.team-founder {
  grid-template-columns: minmax(320px, 1.25fr) 2fr;
}

/* Roster: four across, so each headshot grows 128px → 265px
   and the eight people fill two even rows */
.team-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 32px clamp(28px, 3vw, 44px);
}

/* Circular headshots. The card frame goes; the portrait is the object. */
.team-card {
  background: none;
  border: 0;
  border-radius: 0;
  text-align: center;
  transition: transform .3s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.team-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 10px 28px -10px rgba(15, 30, 55, .3);
  transition: box-shadow .3s;
}

.team-card:hover img {
  box-shadow: 0 16px 38px -10px rgba(15, 30, 55, .4);
}

.team-card-name {
  font-size: 21px;
  padding: 18px 4px 0;
}

/* Mobile */
@media (max-width: 820px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .div_mobile_full{width:98%;}
  .div_mobile_center{text-align:center;}
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card img { transition: none; }
}

/* Founder portrait: circular, matching the roster */
.team-portrait {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 14px 36px -12px rgba(15, 30, 55, .32);
}
