/* Hero */
.hero {
  padding: 2rem 0 var(--section-pad-y);
}

.hero__wrapper {
  position: relative;
}

.hero__block {
  background: var(--color-bg-dark);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  /* clip only for radius — content must stay inside via padding, not by cropping the photo */
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero__block::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 0;
  width: 120px;
  height: 200px;
  border: 2px solid rgba(168, 181, 160, 0.45);
  border-right: none;
  border-bottom: none;
  transform: skewY(-12deg);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  align-items: end;
}

.hero__text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero__subtitle {
  color: var(--color-white);
  font-size: 1rem;
  line-height: 1.55;
  margin: 1.25rem 0 0;
  max-width: 420px;
}

/*
 * Hero image (hero.png 1276×868) — full width of its block/column.
 * Never crop or stretch the asset.
 */
.hero__image {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  align-self: end;
  justify-self: stretch;
}

.hero__image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1276 / 868;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
}

/* Audience */
.audience__header {
  background: var(--color-bg-teal);
  color: var(--color-white);
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

.audience__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 2.5rem 0;
}

.audience__col {
  padding: 0 0.5rem;
}

.audience__divider {
  display: none;
}

/* Works */
.works {
  padding: var(--section-pad-y) 0;
  overflow: hidden;
}

.works__header {
  text-align: center;
  margin-bottom: 2rem;
}

.works__title {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-accent-sage-l);
  margin: 0 0 0.5rem;
}

.works__gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.works__center {
  order: 3;
  text-align: center;
  padding: 2rem 0;
  position: relative;
}

.works__center::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(340px, 72vw);
  height: min(340px, 72vw);
  background: radial-gradient(
    circle,
    rgba(168, 181, 160, 0.55) 0%,
    rgba(168, 181, 160, 0.28) 35%,
    transparent 72%
  );
  border-radius: 50%;
  animation: glow-pulse 3.2s ease-in-out infinite;
  filter: blur(2px);
}

.works__bigdata {
  position: relative;
  font-family: var(--font-pixel);
  font-size: clamp(1.7rem, 6vw, 3.75rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.35;
  margin: 0;
  text-transform: uppercase;
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.22);
  }
}

.works__card-wrap {
  width: 100%;
  max-width: 360px;
  position: relative;
}

.works__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-bg-card-dark);
}

.works__card img {
  width: 100%;
  display: block;
}

.works__card-wrap .review-pill {
  margin-top: 0.75rem;
}

.works__card--float {
  animation: float 5s ease-in-out infinite;
}

.works__card--float-delay {
  animation-delay: 2.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Stages */
.stages {
  padding: var(--section-pad-y) 0;
}

.stages__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.stages__photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stages__photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.stages__shortcut {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stages__shortcut-title {
  font-weight: 700;
  margin: 0 0 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stages__shortcut ul {
  list-style: none;
}

.stages__shortcut li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stages__shortcut li::before {
  content: "○";
  font-size: 0.6rem;
  color: var(--color-accent-sage);
}

.stages__heading {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-bg-teal);
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

.stages__list {
  list-style: none;
  border-left: 2px solid var(--color-accent-sage);
  padding-left: 1.5rem;
}

.stages__list li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.stages__list--stepper {
  border-left: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stages__list--stepper li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(245, 240, 230, 0.55);
  border: 1px solid rgba(13, 79, 92, 0.08);
  position: relative;
}

.stages__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-bg-teal);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.stages__step-text {
  padding-top: 0.45rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.stages__course-item {
  margin-bottom: 1.5rem;
}

.stages__course-item strong {
  display: block;
  color: var(--color-bg-teal);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.stages__course-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Outcomes */
.outcomes {
  padding: var(--section-pad-y) 0;
  position: relative;
}

.outcomes__header {
  position: relative;
  margin-bottom: 2.5rem;
}

.outcomes__globe {
  position: absolute;
  right: 0;
  top: -20px;
  width: 180px;
  height: 180px;
  opacity: 0.25;
  pointer-events: none;
}

.outcomes__grid-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.outcomes__plus {
  text-align: center;
  font-size: 2rem;
  color: var(--color-cta);
  font-weight: 300;
  margin: 0.5rem 0 1rem;
}

.outcomes__grid-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Program */
.program {
  padding: var(--section-pad-y) 0;
  text-align: center;
}

.program .section-title {
  text-align: center;
}

.program__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  text-align: left;
}

/* Wide card only on tablet+; full width on mobile like the rest */
@media (min-width: 768px) {
  .program__grid--analytics .module-card--wide {
    max-width: 600px;
    margin-inline: auto;
  }
}

/* Instructor */
.instructor {
  padding: var(--section-pad-y) 0;
}

.instructor__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.instructor__left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.instructor__title-block {
  background: var(--color-bg-teal);
  color: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}

.instructor__points {
  background: var(--color-accent-cream);
  padding: 1.5rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  list-style: none;
}

.instructor__points li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding-left: 1.5rem;
  position: relative;
}

.instructor__points li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #d4a853;
  font-size: 0.85rem;
}

.instructor__right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instructor__photo-wrap {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: -40px;
  position: relative;
  z-index: 1;
}

.instructor__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  background: linear-gradient(160deg, #d8d2c8 0%, #b9b2a8 100%);
}

.instructor__info {
  background: var(--color-bg-teal);
  color: var(--color-white);
  padding: 3.5rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  width: 100%;
}

.instructor__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.instructor__role {
  font-size: 0.9rem;
  margin: 0 0 1rem;
  opacity: 0.9;
}

.instructor__bio {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
}

/* FAQ */
.faq {
  padding: var(--section-pad-y) 0;
  background: var(--color-accent-cream);
}

.faq__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-accent-sage-l);
  margin: 0;
  letter-spacing: 0.02em;
}

.faq__subtitle {
  color: var(--color-text-muted);
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

/* Contact */
.contact {
  padding: var(--section-pad-y) 0 0;
}

.contact__title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-accent-sage-l);
  font-weight: 600;
  margin: 0 0 2rem;
}

.contact__card {
  background: var(--color-bg-black);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact__text h3 {
  color: var(--color-white);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.contact__text p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.95rem;
}

/* Tablet */
@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    padding: 2.5rem;
    align-items: center;
    gap: 1.5rem;
  }

  .hero__text {
    padding-bottom: 0;
    padding-right: 0;
  }

  .hero__image {
    width: 100%;
    max-width: 100%;
    align-self: center;
  }

  .hero__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .audience__grid {
    grid-template-columns: 1fr 1px 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem;
    max-width: var(--container-max);
    margin-inline: auto;
  }

  .audience__divider {
    display: block;
    width: 1px;
    background: repeating-linear-gradient(
      to bottom,
      var(--color-accent-sage) 0,
      var(--color-accent-sage) 6px,
      transparent 6px,
      transparent 12px
    );
    opacity: 0.5;
  }

  .works__gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .works__center {
    grid-column: 1 / -1;
    order: 0;
  }

  .stages__row {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .stages__photo {
    height: 360px;
  }

  .outcomes__grid-top {
    grid-template-columns: repeat(3, 1fr);
  }

  .outcomes__grid-bottom {
    grid-template-columns: 1fr 1fr;
    max-width: 80%;
    margin-inline: auto;
  }

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

  .module-card {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .module-card__photo {
    height: 100%;
    min-height: 260px;
  }

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

  .contact__card {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem;
  }

  .site-footer__grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .site-nav {
    justify-content: center;
    gap: 2rem;
  }

  .site-nav__links {
    margin-left: 0;
  }

  .site-nav__links a {
    font-size: 0.875rem;
    padding: 0.55rem 1rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    padding: 3rem;
    min-height: 0;
    align-items: center;
  }

  .hero__image {
    width: 100%;
    max-width: 100%;
  }

  .works__gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 2rem 1.75rem;
    align-items: start;
    max-width: none;
    margin-inline: auto;
    padding-bottom: 1rem;
  }

  .works__center {
    grid-column: 2;
    grid-row: 2;
    order: unset;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 1;
    padding: 1rem 0;
    align-self: center;
    justify-self: center;
  }

  .works__card-wrap {
    position: relative;
    max-width: 100%;
    width: 100%;
  }

  .works__card-wrap--1 {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    max-width: 300px;
  }

  .works__card-wrap--2 {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    max-width: 320px;
  }

  .works__card-wrap--3 {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    max-width: 210px;
    align-self: center;
  }

  .works__card-wrap--4 {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    max-width: 300px;
    align-self: start;
  }

  .works__card-wrap--5 {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
    max-width: 280px;
  }

  .works__card-wrap--6 {
    grid-column: 3;
    grid-row: 3;
    justify-self: start;
    max-width: 280px;
  }

  .works__card-wrap .review-pill {
    position: static;
    margin-top: 0.75rem;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: 2rem;
  }

  .hero__inner {
    padding: 3.25rem 3.5rem;
  }

  .hero__image {
    width: 100%;
    max-width: 100%;
  }

  .works__card-wrap--1,
  .works__card-wrap--2 {
    max-width: 340px;
  }

  .works__card-wrap--3 {
    max-width: 240px;
  }

  .works__card-wrap--4,
  .works__card-wrap--5,
  .works__card-wrap--6 {
    max-width: 320px;
  }
}

/* Wide desktop: fill side space with richer layout */
@media (min-width: 1440px) {
  .container {
    padding-inline: 2.5rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero__block {
    box-shadow: var(--shadow-hover);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
    padding: 3.5rem 4rem;
    min-height: 0;
    align-items: center;
  }

  .hero__image {
    width: 100%;
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 480px;
    font-size: 1.05rem;
  }

  .audience__grid {
    padding: 3.5rem 2rem;
    gap: 3rem;
  }

  .listing-item {
    padding: 1.5rem 1.35rem;
  }

  .program__grid {
    gap: 1.5rem;
  }

  .works__gallery {
    gap: 2.25rem 2.25rem;
  }

  .works__center::before {
    width: 420px;
    height: 420px;
  }

  .works__bigdata {
    font-size: 3.6rem;
  }
}

@media (min-width: 1480px) {
  .container {
    padding-inline: 2.75rem;
  }

  /*
   * Wide layout: cream binary side panels + centered content column.
   * Constrain header/main/footer so side panels stay visible.
   */
  body {
    background-color: #efe8da;
    background-image:
      radial-gradient(ellipse at 12% 20%, rgba(168, 181, 160, 0.28), transparent 42%),
      radial-gradient(ellipse at 88% 75%, rgba(13, 79, 92, 0.12), transparent 40%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='96' viewBox='0 0 64 96'%3E%3Ctext x='4' y='16' font-family='monospace' font-size='11' fill='%230a2f4a' fill-opacity='0.2'%3E01%3C/text%3E%3Ctext x='30' y='40' font-family='monospace' font-size='11' fill='%230d4f5c' fill-opacity='0.16'%3E10%3C/text%3E%3Ctext x='8' y='64' font-family='monospace' font-size='11' fill='%230a2f4a' fill-opacity='0.16'%3E01%3C/text%3E%3Ctext x='34' y='88' font-family='monospace' font-size='11' fill='%230d4f5c' fill-opacity='0.2'%3E11%3C/text%3E%3C/svg%3E");
    background-size: auto, auto, 64px 96px;
  }

  .site-header,
  main,
  .site-footer {
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 28px rgba(10, 47, 74, 0.08);
  }

  main {
    background: var(--color-white);
    box-shadow: 0 0 0 1px rgba(13, 79, 92, 0.06), 0 24px 64px rgba(10, 47, 74, 0.06);
    min-height: 60vh;
  }

  /* Keep dark footer (do not inherit white column bg) */
  .site-footer {
    background: var(--color-bg-black);
    color: rgba(255, 255, 255, 0.75);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 28px rgba(10, 47, 74, 0.12);
  }
}