html {
  scroll-padding-top: 4rem;
}

:root {
  --ink: #182f35;
  --muted: #526467;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --line: #eadfd5;
  --teal: #1f7a78;
  --coral: #d95f43;
  --berry: #8a4f7d;
  --sage: #6f8d5f;
  --ochre: #c88b25;
  --blue: #3b6f9e;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--teal);
}

a:hover {
  color: #155756;
}

.navbar-dark.bg-dark {
  background: #212529 !important;
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
}

.navbar-nav {
  margin-left: auto;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding-right: 0.72rem;
  padding-left: 0.72rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff;
  background: transparent;
}

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4.75rem 0 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.25rem;
  align-items: center;
  min-height: auto;
  padding: 1.55rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}

.hero h1,
.page-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.16rem;
}

.lead-stack {
  display: grid;
  gap: 0.45rem;
}

.lead-stack p {
  margin: 0;
}

.eyebrow,
.pub-type {
  margin-bottom: 0.7rem;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--coral);
  border-radius: 4px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
}

.button-link:hover {
  color: #fff;
  text-decoration: none;
  background: #b94d36;
}

.button-link.secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.button-link.secondary:hover {
  color: #155756;
  background: #e4f0ee;
}

.hero-image-wrap {
  justify-self: end;
  width: min(320px, 100%);
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.quick-info,
.link-grid,
.download-grid,
.two-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.quick-info {
  max-width: 520px;
  margin: 1.2rem auto 0;
  grid-template-columns: 1fr;
  padding: 0;
  text-align: center;
}

.quick-info h2,
.content-section h2,
.publication h2 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.quick-info p,
.publication p,
.timeline p,
.clean-list li {
  color: var(--muted);
}

.video-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.video-copy h2 {
  margin-bottom: 0.8rem;
  font-size: 1.7rem;
  font-weight: 700;
}

.video-copy p {
  color: #394649;
}

.video-frame {
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 18px 38px rgba(24, 47, 53, 0.15);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.65rem;
  min-height: 10.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.feature-card:hover {
  color: var(--ink);
  text-decoration: none;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(24, 47, 53, 0.11);
  transform: translateY(-2px);
}

.feature-card::before {
  content: "";
  width: 100%;
  height: 0.32rem;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--teal);
}

.feature-card .fa {
  color: var(--teal);
  font-size: 1.3rem;
}

.feature-card span:last-child {
  color: var(--muted);
}

.feature-card:nth-child(2)::before {
  background: var(--blue);
}

.feature-card:nth-child(2) .fa {
  color: var(--blue);
}

.feature-card:nth-child(3)::before {
  background: var(--berry);
}

.feature-card:nth-child(3) .fa {
  color: var(--berry);
}

.feature-card:nth-child(4)::before {
  background: var(--sage);
}

.feature-card:nth-child(4) .fa {
  color: var(--sage);
}

.feature-card:nth-child(5)::before {
  background: var(--coral);
}

.feature-card:nth-child(5) .fa {
  color: var(--coral);
}

.feature-card:nth-child(6)::before {
  background: var(--ochre);
}

.feature-card:nth-child(6) .fa {
  color: var(--ochre);
}

.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.download-card:hover {
  color: var(--ink);
  text-decoration: none;
  border-color: #e5b9aa;
  box-shadow: 0 10px 24px rgba(24, 47, 53, 0.08);
}

.download-card .fa {
  color: var(--coral);
  font-size: 1.4rem;
}

.content-page {
  max-width: 960px;
}

.page-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.content-section {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 1.15rem;
}

.timeline article {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1.25rem;
}

.timeline time {
  color: var(--coral);
  font-weight: 700;
}

.timeline strong,
.publication h2 {
  color: var(--ink);
}

.clean-list {
  padding-left: 1.1rem;
}

.clean-list li + li {
  margin-top: 0.75rem;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.publication {
  padding-bottom: 1.7rem;
}

.publication + .publication {
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}

.explainer-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}

.article-list {
  display: grid;
  gap: 1rem;
}

.article-list article {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.article-list h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.creative-tabs {
  border-bottom-color: var(--line);
}

.creative-tabs .nav-link {
  color: var(--muted);
  border-radius: 999px;
  margin-right: 0.35rem;
}

.creative-tabs .nav-link.active {
  background: #fff0e8;
  color: var(--ink);
  border-color: #f2c7b8;
  font-weight: 700;
}

.creative-tab-content {
  padding-top: 1.5rem;
}

.creative-carousel,
.gallery-empty {
  min-height: 26rem;
}

.creative-carousel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(24, 47, 53, 0.1);
}

.gallery-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
}

.gallery-empty .fa {
  color: var(--coral);
  font-size: 2rem;
}

.gallery-empty h2 {
  margin-bottom: 0;
}

.gallery-empty p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-image {
  width: 100%;
  height: min(72vh, 620px);
  object-fit: contain;
  border-radius: 10px;
  background: var(--surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.gallery-grid a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 160ms ease;
}

.gallery-grid a:hover img {
  transform: scale(1.03);
}

.carousel-caption {
  right: 1rem;
  bottom: 1rem;
  left: auto;
  max-width: min(70%, 520px);
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  background: rgba(24, 47, 53, 0.62);
  color: #fff;
  font-size: 0.92rem;
  text-align: right;
}

.creative-carousel .carousel-control-prev,
.creative-carousel .carousel-control-next {
  top: 50%;
  bottom: auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(217, 95, 67, 0.76);
  opacity: 1;
  transform: translateY(-50%);
}

.creative-carousel .carousel-control-prev {
  left: 0.75rem;
}

.creative-carousel .carousel-control-next {
  right: 0.75rem;
}

.creative-carousel .carousel-control-prev:hover,
.creative-carousel .carousel-control-next:hover {
  background: rgba(184, 77, 54, 0.9);
}

.creative-carousel .carousel-control-prev-icon,
.creative-carousel .carousel-control-next-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.site-footer {
  padding: 1rem 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

@media (max-width: 900px) {
  .hero,
  .quick-info,
  .link-grid,
  .download-grid,
  .video-section,
  .explainer-feature,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image-wrap {
    justify-self: start;
    max-width: 260px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 5rem;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
