:root {
  --forest: #355f4a;
  --forest-dark: #254837;
  --orange: #d87958;
  --peach: #f5dfd3;
  --cloud: #f8f7f3;
  --ink: #242724;
  --line: #ded8ce;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--cloud);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

a {
  color: inherit;
}

.media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 48px;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.brand-mark img {
  width: 174px;
  height: auto;
  margin: -13px 0 -15px;
  mix-blend-mode: multiply;
}

.brand-mark span {
  margin-left: 65px;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.return-button,
.jump-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(53, 95, 74, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.return-button {
  min-height: 38px;
  padding: 0 16px;
}

.return-button:hover,
.return-button:focus-visible,
.jump-nav a:hover,
.jump-nav a:focus-visible {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 116px 48px 112px;
  background:
    radial-gradient(circle at 17% 5%, rgba(245, 223, 211, 0.95), transparent 35%),
    radial-gradient(circle at 87% 80%, rgba(211, 232, 145, 0.24), transparent 31%),
    var(--cloud);
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 54px;
  left: -34px;
  width: 98px;
  height: 98px;
  border: 17px solid rgba(216, 121, 88, 0.15);
}

.hero::after {
  right: 9%;
  bottom: -104px;
  width: 230px;
  height: 230px;
  border: 34px solid rgba(53, 95, 74, 0.09);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.media-card__type {
  margin: 0;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.hero h1 {
  max-width: 780px;
  margin: 18px auto 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.16;
}

.hero h1 span {
  color: var(--forest);
}

.hero-copy {
  max-width: 560px;
  margin: 28px auto 0;
  color: rgba(36, 39, 36, 0.68);
  font-size: 1rem;
  line-height: 1.9;
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.jump-nav a {
  min-height: 42px;
  padding: 0 19px;
}

.media-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 112px 48px;
}

.media-section--video {
  max-width: none;
  padding-right: max(48px, calc((100vw - 1180px) / 2));
  padding-left: max(48px, calc((100vw - 1180px) / 2));
  background: #eaf0e9;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 13px 0 0;
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.section-summary {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 410px;
}

.section-summary > p {
  margin: 0;
  color: rgba(36, 39, 36, 0.64);
  font-size: 0.95rem;
  line-height: 1.8;
}

.portfolio-jump {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(53, 95, 74, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.portfolio-jump:hover,
.portfolio-jump:focus-visible {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
  transform: translateY(-2px);
}

.audio-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.media-card {
  scroll-margin-top: 24px;
}

.media-card--audio {
  position: relative;
  overflow: hidden;
  min-height: 292px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 16px 40px rgba(36, 39, 36, 0.055);
}

.media-card--audio::after {
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 156px;
  height: 156px;
  border: 20px solid rgba(216, 121, 88, 0.11);
  border-radius: 999px;
  content: "";
}

.media-card__number {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(53, 95, 74, 0.22);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 1;
}

.media-card h3 {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--forest);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  letter-spacing: -0.045em;
}

.media-card__description {
  position: relative;
  z-index: 1;
  margin: 11px 0 22px;
  color: rgba(36, 39, 36, 0.64);
  font-size: 0.92rem;
}

audio {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  accent-color: var(--forest);
}

.fallback-link {
  position: relative;
  z-index: 1;
  margin: 13px 0 0;
  color: rgba(36, 39, 36, 0.55);
  font-size: 0.78rem;
}

.fallback-link a {
  margin: 0 0.26em;
  color: var(--forest);
  font-weight: 700;
  text-underline-offset: 3px;
}

.video-grid {
  gap: 32px;
}

.media-card--video {
  overflow: hidden;
  border: 1px solid rgba(53, 95, 74, 0.16);
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 16px 40px rgba(36, 39, 36, 0.05);
}

.video-frame {
  display: grid;
  min-height: 310px;
  place-items: center;
  background: #1d3128;
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: min(67vw, 580px);
  background: #1d3128;
  object-fit: contain;
}

.video-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 28px 5px;
}

.video-caption h3 {
  margin-top: 9px;
}

.video-caption > p {
  margin: 0 0 2px;
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
}

.media-card--video .fallback-link {
  padding: 0 28px 25px;
}

.media-footer {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 60px 24px;
  background: var(--forest-dark);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.media-footer img {
  width: 168px;
  height: auto;
  border-radius: 8px;
  filter: none;
}

.media-footer p {
  margin: 6px 0 10px;
  font-size: 0.88rem;
}

.media-footer a {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

@media (max-width: 767px) {
  .media-header {
    padding: 21px 22px;
  }

  .brand-mark img {
    width: 145px;
  }

  .brand-mark span {
    margin-left: 54px;
    font-size: 0.59rem;
  }

  .return-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .hero {
    padding: 82px 24px 76px;
    text-align: left;
  }

  .hero h1 {
    margin-left: 0;
    font-size: clamp(2.25rem, 11vw, 3.35rem);
  }

  .hero-copy {
    margin-left: 0;
  }

  .jump-nav {
    justify-content: flex-start;
  }

  .media-section,
  .media-section--video {
    padding: 74px 24px;
  }

  .section-heading,
  .video-caption {
    display: block;
  }

  .section-summary {
    margin-top: 18px;
  }

  .audio-grid,
  .video-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
  }

  .media-card--audio {
    min-height: 267px;
    padding: 30px 24px;
  }

  .video-frame {
    min-height: 240px;
  }

  .video-frame video {
    max-height: 128vw;
  }

  .video-caption {
    padding: 22px 24px 2px;
  }

  .video-caption > p {
    margin-top: 12px;
    font-size: 0.82rem;
    text-align: left;
  }

  .media-card--video .fallback-link {
    padding: 0 24px 22px;
  }
}

@media (max-width: 359px) {
  .media-header {
    align-items: flex-start;
  }

  .return-button {
    max-width: 118px;
    min-height: 42px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
