:root {
  --ink: #182b3a;
  --muted: #66737b;
  --line: #d7d9d5;
  --paper: #f6f5f0;
  --white: #ffffff;
  --accent: #d8ad4c;
  --accent-deep: #b5832b;
  --shadow: 0 22px 60px rgba(24, 43, 58, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

.team-section {
  min-height: 100vh;
  padding: clamp(72px, 9vw, 144px) 24px clamp(68px, 8vw, 120px);
  overflow: hidden;
}

.section-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: -80px;
  left: 24px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  text-decoration: none;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(48px, 6vw, 78px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.site-header__brand {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-deep);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: clamp(42px, 6vw, 76px);
}

.heading-copy {
  max-width: 730px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

h1,
h2,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 span {
  display: block;
  color: var(--accent-deep);
  font-size: 0.64em;
  font-weight: 400;
  line-height: 1.45;
}

.heading-intro {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

.link-mark {
  color: var(--accent-deep);
  font-size: 20px;
  line-height: 0.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(280px, 0.77fr);
  gap: 20px;
}

.feature-side {
  display: grid;
  grid-template-rows: minmax(250px, 0.95fr) minmax(180px, 0.65fr);
  gap: 20px;
}

.story-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #dfe3e0;
}

.story-card--feature {
  min-height: 650px;
}

.story-card--portrait {
  min-height: 300px;
}

.story-card--wide {
  min-height: 250px;
}

.story-card__button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: transparent;
  text-align: left;
}

.story-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.story-card--feature img {
  object-position: center 57%;
}

.story-card--portrait img {
  object-position: center 54%;
}

.story-card--wide img {
  object-position: center center;
}

.story-card--fireworks img {
  object-position: center center;
}

.story-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 43, 58, 0) 40%,
    rgba(24, 43, 58, 0.76) 100%
  );
  pointer-events: none;
}

.story-card__caption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  color: var(--white);
  pointer-events: none;
}

.story-card__caption strong,
.story-card__caption small {
  display: block;
}

.story-card__caption strong {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
}

.story-card__caption small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.6;
}

.story-card__index {
  padding-right: 1px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
}

.story-card__expand {
  position: absolute;
  top: 21px;
  right: 22px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--white);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  pointer-events: none;
}

.story-card__button:hover img,
.story-card__button:focus-visible img {
  transform: scale(1.045);
}

.story-card__button:hover .story-card__expand,
.story-card__button:focus-visible .story-card__expand {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.story-card__button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.section-footer {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(300px, 0.9fr);
  align-items: end;
  gap: 26px;
  padding-top: 24px;
}

.footer-statement {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 14px;
}

.footer-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--accent-deep);
}

.footer-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-bottom: 2px;
  color: #8a928f;
  font-size: 10px;
  letter-spacing: 0.13em;
  line-height: 1.5;
}

.footer-links {
  align-content: center;
  padding-bottom: 2px;
}

.footer-links a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}

.story-card--fireworks {
  min-height: 230px;
}

.story-card--fireworks .story-card__caption {
  bottom: 20px;
}

.lightbox {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  opacity: 0;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 25, 34, 0.9);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 88px minmax(0, 780px) 88px;
  align-items: center;
  gap: 20px;
  width: min(100% - 40px, 1040px);
  max-height: calc(100vh - 56px);
}

.lightbox__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100vh - 56px);
  margin: 0;
}

.lightbox__figure img {
  display: block;
  width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
  background: #0b161e;
}

.lightbox__figure figcaption {
  padding: 22px 2px 0;
  color: var(--white);
}

.lightbox__figure .eyebrow {
  margin-bottom: 7px;
  color: var(--accent);
}

.lightbox__figure h2 {
  margin-bottom: 6px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.3;
}

.lightbox__figure figcaption p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.7;
}

.lightbox__close {
  position: absolute;
  top: -8px;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  color: var(--white);
  cursor: pointer;
  background: transparent;
  font-size: 12px;
}

.lightbox__close strong {
  font-size: 28px;
  font-weight: 300;
  line-height: 0.8;
}

.lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 4px;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
  transition: color 180ms ease;
}

.lightbox__nav span:first-child {
  font-size: 20px;
  line-height: 0.8;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible,
.lightbox__close:hover,
.lightbox__close:focus-visible {
  color: var(--accent);
}

.lightbox__nav:focus-visible,
.lightbox__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .team-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-heading {
    display: block;
  }

  .site-header {
    align-items: flex-start;
    margin-bottom: 42px;
  }

  .text-link {
    margin-top: 26px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .story-card--feature {
    min-height: min(74vw, 620px);
  }

  .feature-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(260px, 1fr);
  }

  .story-card--wide {
    min-height: 260px;
  }

  .section-footer {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 20px;
  }

  .footer-notes {
    order: 3;
  }

  .footer-links {
    order: 2;
  }

  .story-card--fireworks {
    min-height: min(48vw, 350px);
  }

  .lightbox__dialog {
    grid-template-columns: 1fr;
    gap: 14px;
    width: min(100% - 32px, 680px);
  }

  .lightbox__figure {
    max-height: calc(100vh - 142px);
  }

  .lightbox__figure img {
    max-height: 61vh;
  }

  .lightbox__nav {
    position: absolute;
    top: 43%;
    z-index: 2;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(13, 25, 34, 0.55);
    font-size: 0;
  }

  .lightbox__nav span:first-child {
    font-size: 24px;
  }

  .lightbox__nav--prev {
    left: 0;
  }

  .lightbox__nav--next {
    right: 0;
  }

  .lightbox__close {
    top: -45px;
    right: 0;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(38px, 12vw, 60px);
  }

  .site-header {
    display: block;
  }

  .site-nav {
    margin-top: 16px;
    gap: 10px 18px;
  }

  .heading-intro {
    font-size: 14px;
  }

  .feature-side {
    display: block;
  }

  .story-card--portrait,
  .story-card--wide {
    min-height: min(74vw, 440px);
  }

  .story-card--wide {
    margin-top: 16px;
  }

  .story-card__caption {
    right: 18px;
    bottom: 17px;
    left: 18px;
    gap: 12px;
  }

  .story-card__caption strong {
    font-size: 17px;
  }

  .story-card__expand {
    top: 16px;
    right: 16px;
  }

  .story-card--fireworks {
    min-height: min(65vw, 310px);
  }

  .lightbox__figure img {
    max-height: 56vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
