/* =========================================================================
   Team page, in the editorial system shared with careers, the blog and the
   security services page: alternating bands, large light-weight display
   type, thin rules, outlined rectangular buttons, photography.

   Loaded after styles.css. Nothing shared is restyled.
   ========================================================================= */

:root {
  --c-light:      #F4F5F2;
  --c-light-2:    #EAECE7;
  --c-ink:        #0C1E1B;
  --c-ink-soft:   #3E4A46;
  --c-ink-dim:    #7A847F;
  --c-rule-light: rgba(12, 30, 27, 0.16);
  --c-rule-soft:  rgba(12, 30, 27, 0.09);
  --c-rule-dark:  rgba(240, 240, 240, 0.14);
}

.team-page { overflow-x: hidden; }

.cw { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.band { padding: 120px 0; }
.band--dark  { background: var(--bg-dark);   color: var(--text-white); }
.band--light { background: var(--c-light);   color: var(--c-ink); }
.band--grey  { background: var(--c-light-2); color: var(--c-ink); }

/* ---------------------------------------------------------------- type */

.display {
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}
.display--xl { font-size: clamp(3rem, 7.5vw, 6rem); line-height: 0.98; }
.display--l  { font-size: clamp(2.5rem, 5vw, 4.25rem); }

.lede { font-size: 1.0625rem; line-height: 1.7; margin: 0; }
.band--dark .lede { color: var(--text-muted); }
.band--light .lede, .band--grey .lede { color: var(--c-ink-soft); }

.head-split { display: grid; gap: 20px; align-items: end; margin-bottom: 64px; }
@media (min-width: 900px) { .head-split { grid-template-columns: 1fr 1fr; gap: 60px; } }
.head-split .lede { font-size: 1.375rem; font-weight: 300; line-height: 1.45; max-width: 26ch; }

/* An event's date, set the way the reference numbers its values. */
.when {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-dim);
  margin-bottom: 18px;
}
.band--dark .when { color: var(--text-dim); }

/* -------------------------------------------------------------- button */

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 26px;
  border: 1px solid currentColor;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-outline svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s ease; }
.btn-outline:hover svg { transform: translateX(4px); }
.btn-outline:focus-visible { outline: 2px solid var(--green-accent); outline-offset: 3px; }
.band--dark .btn-outline:hover { background: var(--text-white); color: var(--c-ink); }
.band--light .btn-outline:hover, .band--grey .btn-outline:hover { background: var(--c-ink); color: var(--c-light); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px 32px 100px;
  color: var(--text-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/static/images/team/team-ride.jpg") center 40% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 23, 20, 0.55), rgba(9, 23, 20, 0.45) 55%, var(--bg-dark));
}

.hero-inner { max-width: 900px; }
.hero .display { margin-bottom: 30px; }
.hero .lede { max-width: 46ch; margin: 0 auto; color: var(--text-muted); }

/* ------------------------------------------------------------- who we are */

.who { display: grid; gap: 48px; }
@media (min-width: 900px) { .who { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }

.who .display { max-width: 12ch; }
.who-text { font-size: 1.0625rem; line-height: 1.75; color: var(--c-ink-soft); }
.who-text p { margin: 0 0 20px; }
.who-text p:last-child { margin-bottom: 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--c-rule-light);
  margin-top: 72px;
}
@media (min-width: 800px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.fact { padding: 32px 24px 36px 0; border-right: 1px solid var(--c-rule-soft); }
.fact:last-child { border-right: 0; }
@media (max-width: 799px) { .fact:nth-child(2n) { border-right: 0; } }

.fact b {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.fact span { display: block; font-size: 0.875rem; color: var(--c-ink-soft); line-height: 1.45; }

/* --------------------------------------------------------------- photos */

/* The February wall: the reference grid, four columns, one tall tile in
   column two spanning two rows, one wide tile spanning two columns. */
.wall {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
}
@media (min-width: 900px) {
  .wall { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; }
  .wall .tile:nth-child(2) { grid-row: span 2; }
  .wall .tile:nth-child(3) { grid-column: span 2; }
  .wall .tile:nth-child(6) { grid-column: span 2; }
}

.tile { position: relative; overflow: hidden; background: var(--c-light-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.tile:hover img { transform: scale(1.03); }

.wall-caption {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--c-ink-dim);
}

/* The June photograph, on its own, full width, with the caption beside it. */
.feature { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .feature { grid-template-columns: 2fr 1fr; gap: 60px; } }
.feature-pair { display: grid; gap: 16px; }
.feature-pair img, .feature img { width: 100%; height: auto; display: block; }
.feature-text .display { margin-bottom: 18px; }
.feature-text p { font-size: 1rem; line-height: 1.7; color: var(--c-ink-soft); margin: 0; }

/* ------------------------------------------------------------ the work */

.work { display: grid; gap: 0 48px; }
@media (min-width: 760px) { .work { grid-template-columns: repeat(2, 1fr); } }

.work-item { padding: 32px 0; border-top: 1px solid var(--c-rule-dark); }
.work-item h3 { font-size: 1.375rem; font-weight: 300; letter-spacing: -0.02em; margin: 0 0 12px; }
.work-item p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; margin: 0; max-width: 44ch; }

/* ------------------------------------------------------------- closing */

.closing { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .closing { grid-template-columns: 1fr auto; gap: 60px; } }
.closing .sub { margin-top: 14px; font-size: 1.25rem; font-weight: 300; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  .tile img, .btn-outline, .btn-outline svg { transition: none; }
}
