:root {
  --ink: #43356e;
  --ink-deep: #28256d;     /* 內文、選單、下拉選單：藍紫色（2026-10-01 Teresa 指定，原 #221b43 太接近黑色） */
  --muted: #6b6290;        /* 輔助小字：淺紫，取代原本偏灰的顏色 */
  --paper: #f9f0ea;
  --paper-glow: #fffaf0;
  --lavender: #a6abd4;
  --gold: #b78a3d;
  --gold-light: #e7c879;
  --nav-blue: #8da3c7;
  --header-height: 76px;
  --hand: "LXGW WenKai TC";
  --serif: var(--hand), "Noto Serif TC", "Source Han Serif TC", "Songti TC", PMingLiU, serif;
  --sans: var(--hand), "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink-deep);
  background:
    radial-gradient(circle at 12% 36%, rgba(153, 163, 211, .11), transparent 25%),
    radial-gradient(circle at 88% 72%, rgba(190, 149, 78, .08), transparent 24%),
    var(--paper);
  font-family: var(--sans);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink-deep);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: center;
  justify-content: center;
  padding: 10px clamp(22px, 4vw, 72px);
  color: var(--ink-deep);
  background: transparent;
}

.home-page .site-header {
  justify-content: flex-start;
  color: #f7e5bd;
  text-shadow: 0 2px 14px rgba(12, 12, 39, .8), 0 0 10px rgba(12, 12, 39, .55);
}

.home-page .site-navigation [aria-current="page"] {
  color: #c9b3f2;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: clamp(15px, 1.7vw, 28px);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.site-navigation > a,
.course-menu > summary {
  position: relative;
  padding: 11px 0;
  cursor: pointer;
  list-style: none;
}

.course-menu > summary::-webkit-details-marker {
  display: none;
}

.site-navigation > a::after,
.course-menu > summary::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.site-navigation [aria-current="page"] {
  color: #4a3768;
}

.site-navigation [aria-current="page"]::after {
  transform: scaleX(1);
}

.site-navigation > a:hover::after,
.site-navigation > a:focus-visible::after,
.course-menu > summary:hover::after,
.course-menu > summary:focus-visible::after {
  transform: scaleX(1);
}

.course-menu {
  position: relative;
}

.course-menu[open]::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -60px;
  left: -60px;
  height: 14px;
}

.course-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  display: grid;
  min-width: 150px;
  padding: 9px;
  color: var(--ink-deep);
  border: 1px solid rgba(183, 138, 61, .38);
  background: rgba(250, 247, 240, .52);
  box-shadow: 0 10px 28px rgba(39, 28, 74, .08);
  text-shadow: none;
  backdrop-filter: blur(18px) saturate(1.15);
  transform: translateX(-50%);
}

.course-menu__list a {
  padding: 10px 13px;
  white-space: nowrap;
}

.course-menu__list a:hover,
.course-menu__list a:focus-visible {
  color: #6c4c93;
  background: rgba(183, 138, 61, .09);
}

.site-brand {
  position: relative;
  display: none;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

main {
  position: relative;
}

.scene {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.scene:not(:first-child) {
  margin-top: -2vw;
}

.scene--hero {
  width: 100%;
  max-width: none;
}

.scene--hero .scene__surface {
  aspect-ratio: 2559 / 1440;
  max-height: 100vh;
  max-height: 100svh;
}

.scene--hero .scene__picture {
  position: absolute;
  inset: 0;
}

.scene--hero .scene__picture img {
  object-position: 50% 45%;
}

.scene__surface {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
}

.scene__picture,
.scene__picture img {
  width: 100%;
  height: 100%;
}

.scene__picture {
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.scene__picture img {
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1), filter .7s ease;
}

.scene--hero .scene__picture {
  -webkit-mask-image: none;
  mask-image: none;
}

.scene--hero .scene__surface::after {
  display: none;
}






.scene__surface--linked:hover .scene__picture img,
.scene__surface--linked:focus-visible .scene__picture img {
  transform: scale(1.012);
  filter: saturate(1.035) brightness(1.012);
}

.scene-label {
  position: absolute;
  z-index: 4;
  display: grid;
  justify-items: center;
  color: var(--ink);
  text-align: center;
  text-shadow: 0 2px 16px rgba(255, 252, 245, .98), 0 0 6px rgba(255, 252, 245, .88);
  transition: transform .35s ease, color .35s ease;
}

.scene-label__eyebrow {
  margin-bottom: 9px;
  color: var(--gold);
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 700;
  letter-spacing: .16em;
}

.scene-label strong {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 56px);
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: 0;
}

.scene-label__arrow {
  display: block;
  width: clamp(52px, 4.4vw, 76px);
  aspect-ratio: 338 / 222;
  margin-top: 18px;
  background: url("../images/web/aiartkids-arrow.webp") center / contain no-repeat;
  transform: rotate(-24deg);
  transition: transform .35s ease, filter .35s ease;
}

.scene__surface--linked:hover .scene-label,
.scene__surface--linked:focus-visible .scene-label {
  color: #5d438a;
  transform: translateY(-6px);
}

.scene__surface--linked:hover .scene-label__arrow,
.scene__surface--linked:focus-visible .scene-label__arrow {
  transform: rotate(-14deg) scale(1.08);
  filter: drop-shadow(0 1px 2px rgba(150, 112, 52, .3));
}

.scene-label--ccg {
  top: 6%;
  left: 47%;
  width: 50%;
  transform: translateX(-50%);
}

.scene__surface--linked:hover .scene-label--ccg,
.scene__surface--linked:focus-visible .scene-label--ccg {
  transform: translate(-50%, -6px);
}



.scene-label--gallery {
  top: 33%;
  left: 44%;
  width: 32%;
  transform: translateX(-50%);
}

.scene__surface--linked:hover .scene-label--gallery,
.scene__surface--linked:focus-visible .scene-label--gallery {
  transform: translate(-50%, -6px);
}

.scene--pathways .scene__surface {
  aspect-ratio: 4 / 3;
}

.image-hotspot {
  position: absolute;
  z-index: 5;
  display: block;
  outline: none;
}

.image-hotspot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(74, 61, 108, .2));
  transition: filter .4s ease;
}

.image-hotspot::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 203, 113, .48), rgba(216, 200, 240, .22) 38%, transparent 69%);
  opacity: 0;
  transform: scale(.84);
  transition: opacity .4s ease, transform .55s ease;
}



.image-hotspot:hover::before,
.image-hotspot:focus-visible::before {
  opacity: 1;
  transform: scale(1.06);
}

.image-hotspot:hover img,
.image-hotspot:focus-visible img {
  filter: drop-shadow(0 12px 30px rgba(193, 154, 63, .46)) brightness(1.04);
}








@keyframes pathway-object-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.6deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(.8deg); }
}

[data-reveal] {
  opacity: .4;
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
}

.floating-depth {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
}

.floating-depth span {
  position: absolute;
  color: rgba(186, 139, 55, .62);
  text-shadow: 0 0 18px rgba(234, 199, 108, .72);
  animation: drift 7s ease-in-out infinite;
}

.floating-depth span:nth-child(1) {
  top: 24%;
  left: 4%;
  font-size: 18px;
}

.floating-depth span:nth-child(2) {
  top: 57%;
  right: 5%;
  font-size: 14px;
  animation-delay: -2.5s;
}

.floating-depth span:nth-child(3) {
  top: 78%;
  left: 72%;
  font-size: 10px;
  animation-delay: -4.6s;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(14px, -17px, 0) rotate(3deg); }
}

.site-footer {
  position: relative;
  min-height: clamp(520px, 64vw, 860px);
  margin-top: -6vw;
  overflow: hidden;
  background: var(--paper);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 100%);
}

.site-footer__art {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
}

.site-footer__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.site-footer__content {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(720px, 86%);
  margin-inline: auto;
  padding-top: clamp(100px, 10vw, 150px);
  justify-items: center;
  color: var(--ink);
  text-align: center;
  text-shadow: 0 1px 10px rgba(250, 247, 240, .96), 0 0 4px rgba(250, 247, 240, .92);
}

.site-footer__logo {
  width: clamp(180px, 16vw, 240px);
  height: auto;
  margin-top: clamp(-50px, -3vw, -24px);
  /* 四欄連結維持在換大 Logo 之前的位置：舊 logo02（1467x1024，高寬比 .698）在舊寬度的高度，減掉新 logo02（1467x748，高寬比 .5099）在新寬度的高度，再補回往上移的距離 */
  margin-bottom: calc(22px + clamp(150px, 13vw, 190px) * .698 - clamp(180px, 16vw, 240px) * .5099 - clamp(-50px, -3vw, -24px));
}

.footer-navigation,
.footer-course-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 25px;
}

.footer-navigation a,
.footer-course-links a {
  padding-block: 5px;
  border-bottom: 1px solid transparent;
}

.footer-navigation a:hover,
.footer-navigation a:focus-visible,
.footer-course-links a:hover,
.footer-course-links a:focus-visible {
  color: #6c4c93;
  border-color: var(--gold);
}

.footer-course-links {
  margin-top: 15px;
  color: #765f8f;
  font-size: 14px;
}

.site-footer__content p {
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
}

/* Shared inner-page shell */
.webinar-page main {
  padding-top: var(--header-height);
}

.inner-hero {
  position: relative;
  min-height: min(76vh, 780px);
  overflow: hidden;
  background: transparent;
}

.inner-hero__picture,
.inner-hero__picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.inner-hero__picture img {
  object-fit: cover;
  opacity: .78;
}

.inner-hero__picture {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 96%);
}

.inner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(247, 242, 233, .06), rgba(247, 242, 233, .3) 55%, transparent 96%);
}

.inner-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: min(76vh, 780px);
  padding: 12vh 7vw 18vh;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.inner-hero__content p:not(.hero-brief) {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
}

.inner-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.content-band {
  position: relative;
  z-index: 2;
  width: min(920px, 86%);
  margin: -7vh auto 12vh;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 2;
}

.content-band p {
  margin: 0 0 1.4em;
}

.ccg-steps,
.course-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: rgba(93, 76, 130, .15);
}

.ccg-step,
.course-item {
  padding: 34px 28px;
  background: rgba(250, 247, 240, .96);
}

.ccg-step span {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.ccg-step h2,
.course-item h2 {
  margin: 9px 0 14px;
  color: var(--ink);
  font-size: 29px;
  font-weight: 600;
}

.ccg-step p,
.course-item p {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
}

.course-item a {
  display: inline-block;
  margin-top: 19px;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: 14px;
  transition: color .25s ease, border-color .25s ease;
}

/* Founder page */
.founder {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(85, 66, 121, .16);
}

.founder__head {
  display: flex;
  align-items: center;
  gap: 24px;
}

.founder__avatar {
  width: 116px;
  height: 116px;
  border: 1px solid rgba(183, 138, 61, .5);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.founder__id h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  line-height: 1.25;
}

.founder__role {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

.founder__link {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 3px;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: 14px;
}

.founder__link:hover,
.founder__link:focus-visible {
  color: #6c4c93;
}

.founder__credentials {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px 40px;
  align-items: start;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(85, 66, 121, .12);
}

.founder__stat {
  margin: 0;
  display: grid;
  gap: 6px;
}

.founder__stat strong {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 600;
  line-height: 1;
}

.founder__stat span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

.founder__tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.founder__tags li {
  padding: 13px 16px;
  color: var(--ink-deep);
  border: 1px solid rgba(183, 138, 61, .32);
  background: rgba(250, 247, 240, .52);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  backdrop-filter: blur(12px) saturate(1.1);
}

.founder__quote {
  margin: 34px 0 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--gold);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 2;
}

.founder__quote::before { content: "\300c"; }
.founder__quote::after { content: "\300d"; }

.founder__bio {
  margin: 30px 0 0;
  color: var(--ink-deep);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 2;
}

.founder__note {
  margin-top: 30px;
  padding: 24px 28px;
  border: 1px solid rgba(183, 138, 61, .32);
  background: rgba(250, 247, 240, .52);
  backdrop-filter: blur(12px) saturate(1.1);
}

.founder__note h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
}

.founder__note p {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
}

.founder__note ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.founder__note li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--ink-deep);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

.founder__note li span {
  flex-shrink: 0;
  min-width: 56px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.founder__strip {
  margin-top: -42px;
  padding: 76px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.founder__strip-track {
  display: flex;
  width: max-content;
  animation: founder-strip 34s linear infinite;
}

.founder__strip:hover .founder__strip-track,
.founder__strip:focus-within .founder__strip-track {
  animation-play-state: paused;
}

.founder__strip figure {
  position: relative;
  height: 320px;
  margin: 0 16px 0 0;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(85, 66, 121, .14);
  background: rgba(250, 247, 240, .5);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}

.founder__strip figure:hover {
  z-index: 2;
  border-color: rgba(183, 138, 61, .55);
  box-shadow: 0 8px 24px rgba(39, 28, 74, .18);
  transform: scale(1.45);
}

.founder__strip figure a {
  display: block;
  height: 100%;
  cursor: zoom-in;
}

.founder__strip img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

@keyframes founder-strip {
  to { transform: translateX(-50%); }
}

.draft-message {
  position: relative;
  z-index: 2;
  width: min(720px, 86%);
  margin: -5vh auto 18vh;
  padding: 26px 0;
  color: var(--muted);
  border-top: 1px solid rgba(85, 66, 121, .18);
  border-bottom: 1px solid rgba(85, 66, 121, .18);
  text-align: center;
}

@media (max-width: 1050px) {
  .site-header {
    min-height: 68px;
    justify-content: space-between;
  }

  .site-brand {
    display: block;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-navigation {
    position: absolute;
    top: 100%;
    right: 18px;
    display: none;
    width: min(330px, calc(100vw - 36px));
    padding: 16px 22px 20px;
    color: var(--ink-deep);
    border: 1px solid rgba(183, 138, 61, .28);
    background: rgba(250, 247, 240, .98);
    box-shadow: 0 22px 60px rgba(33, 24, 64, .16);
    text-shadow: none;
  }

  .site-navigation.is-open {
    display: grid;
    gap: 2px;
  }

  .site-navigation > a,
  .course-menu > summary {
    padding: 12px 2px;
  }

  .course-menu__list {
    position: static;
    padding: 2px 0 7px 17px;
    background: transparent;
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    min-height: var(--header-height);
    justify-content: space-between;
    padding: 8px 15px 8px 17px;
  }

  .site-brand {
    font-size: 16px;
  }

  .scene {
    width: 100%;
    transform: none !important;
  }

  .scene:not(:first-child) {
    margin-top: -6vw;
  }

  .scene--hero .scene__surface {
    aspect-ratio: 1170 / 1404;
    margin-top: 0;
  }

  .scene--hero .scene__picture img {
    object-position: 50% 50%;
  }




  .scene:not(.scene--hero) .scene__surface {
    aspect-ratio: 3 / 4;
  }

  .scene--gallery .scene__surface {
    aspect-ratio: 1086 / 1448;
  }

  .scene__picture {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%);
  }

  .scene--hero .scene__picture {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .scene-label strong {
    font-size: clamp(27px, 8.5vw, 42px);
  }

  .scene-label__eyebrow {
    font-size: 11px;
  }

  .scene-label__arrow {
    width: 46px;
  }

  .scene-label--ccg {
    top: 7%;
    left: 50%;
    width: 86%;
  }

  .scene-label--gallery {
    top: 31%;
    left: 56%;
    width: 72%;
    transform: translateX(-50%);
  }

  .scene__surface--linked:hover .scene-label--gallery,
  .scene__surface--linked:focus-visible .scene-label--gallery {
    transform: translate(-50%, -6px);
  }







  .site-footer {
    min-height: calc(100vw * 4 / 3);
    margin-top: -6vw;
  }

  .site-footer__art img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .site-footer__content {
    width: 84%;
    padding-top: 62px;
  }

  .site-footer__content::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 40px -12% -24px;
    background: radial-gradient(ellipse at center, rgba(235, 223, 207, .95) 0%, rgba(235, 223, 207, .9) 52%, rgba(235, 223, 207, 0) 80%);
  }

  .site-footer__logo {
    width: 170px;
    margin-top: -22px;
    margin-bottom: 47px;
  }

  .footer-navigation {
    gap: 10px 19px;
    font-size: 14px;
  }

  .ccg-steps,
  .course-list {
    grid-template-columns: 1fr;
  }

  .inner-hero,
  .inner-hero__content {
    min-height: 68vh;
  }

  .inner-hero__content {
    padding-inline: 8vw;
  }

  .inner-hero h1 {
    font-size: clamp(39px, 12vw, 59px);
  }

  .content-band {
    margin-top: -3vh;
    font-size: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 767px) {
  .founder {
    margin-top: 44px;
    padding-top: 36px;
  }

  .founder__head {
    align-items: flex-start;
    gap: 18px;
  }

  .founder__avatar {
    width: 88px;
    height: 88px;
  }

  .founder__id h2 {
    font-size: 25px;
  }

  .founder__role {
    font-size: 14px;
  }

  .founder__credentials {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .founder__stat strong {
    font-size: 42px;
  }

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

  .founder__tags li {
    padding: 12px 14px;
    text-align: left;
  }

  .founder__quote {
    padding-left: 18px;
    font-size: 18px;
    line-height: 1.95;
  }

  .founder__bio {
    font-size: 15px;
  }

  .founder__note {
    padding: 20px 18px;
  }

  .founder__note li {
    flex-direction: column;
    gap: 2px;
  }

  .founder__strip {
    margin-top: 4px;
    padding: 14px 0;
  }

  .founder__strip figure {
    height: 210px;
    margin-right: 12px;
  }

  .founder__strip-track {
    animation-duration: 26s;
  }
}

/* ── Text-only navigation, brief hero, back-to-top ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.inner-hero--brief,
.inner-hero--brief .inner-hero__content {
  min-height: min(64vh, 660px);
}

.inner-hero--brief .inner-hero__content {
  gap: clamp(20px, 3vh, 34px);
  padding: 6vh 6vw 9vh;
  align-content: start;
}

.inner-hero--brief .site-header {
  position: static;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  gap: 14px;
}

.home-page .site-brand {
  display: block;
  flex: none;
  margin-right: clamp(22px, 2.6vw, 44px);
}

.site-brand--mark img {
  display: block;
  width: auto;
  height: clamp(54px, 4.4vw, 68px);
  filter: drop-shadow(0 2px 8px rgba(12, 12, 39, .55));
}

@media (max-width: 1050px) {
  .home-page .site-header {
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .site-brand--mark img {
    height: 44px;
  }
}

.inner-hero--brief .site-brand {
  display: block;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .24em;
}

.inner-hero--brief .menu-toggle {
  display: none;
}

.inner-hero--brief .site-navigation {
  position: static;
  display: flex;
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(16px, 2vw, 30px);
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.inner-hero--brief .hero-brief {
  max-width: 32em;
  margin: 0 auto;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 2.4;
  letter-spacing: .05em;
  text-align: center;
}

.inner-hero--brief .site-navigation {
  font-size: 16px;
  font-weight: 500;
}

.to-top {
  position: fixed;
  z-index: 200;
  right: clamp(18px, 2.6vw, 38px);
  bottom: clamp(30px, 4.4vw, 62px);
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(183, 138, 61, .45);
  border-radius: 50%;
  background: rgba(250, 247, 240, .97);
  box-shadow: 0 1px 3px rgba(150, 112, 52, .16);
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease, background-color .25s ease, border-color .25s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top__icon {
  display: block;
  width: 30px;
  aspect-ratio: 338 / 222;
  background: url("../images/web/aiartkids-arrow.webp") center / contain no-repeat;
  transform: rotate(-90deg);
}

.to-top:hover,
.to-top:focus-visible {
  border-color: rgba(183, 138, 61, .85);
  background: rgba(255, 252, 245, .98);
}

@media (max-width: 767px) {
  .inner-hero--brief .inner-hero__content {
    padding: 5vh 5vw 8vh;
  }

  .inner-hero--brief .site-brand {
    font-weight: 500;
  }

  .inner-hero--brief .site-navigation {
    max-width: 15.5em;
    margin-inline: auto;
    gap: 2px 18px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .03em;
  }

  .inner-hero--brief .site-navigation > a,
  .inner-hero--brief .course-menu > summary {
    padding: 7px 0;
  }

  .inner-hero--brief .hero-brief {
    max-width: none;
    font-size: 15px;
    font-weight: 400;
    line-height: 2.3;
    letter-spacing: .03em;
  }

  .to-top {
    width: 50px;
    height: 50px;
  }

  .to-top__icon {
    width: 26px;
  }
}

.ccg-flow-line {
  margin: 40px 0 0;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
}

.ccg-flow-line + .ccg-steps {
  margin-top: 20px;
}

.footer-contact,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  color: #765f8f;
  font-size: 14px;
}

.footer-contact {
  margin-top: 18px;
}

.footer-social {
  margin-top: 8px;
}

.footer-contact a,
.footer-social a {
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}

.footer-contact a:hover,
.footer-contact a:focus-visible,
.footer-social a:hover,
.footer-social a:focus-visible {
  color: #6c4c93;
  border-color: var(--gold);
}

@media (max-width: 767px) {
  .footer-contact,
  .footer-social {
    gap: 6px 16px;
    font-size: 13px;
  }
}

.inner-page .site-footer {
  margin-top: 0;
}

.inner-page .content-band,
.inner-page .draft-message {
  margin-top: clamp(24px, 4vh, 60px);
  margin-bottom: clamp(90px, 16vh, 190px);
}

/* ── Hover affordance ── */
.site-navigation > a,
.course-menu > summary,
.site-brand,
.footer-navigation a,
.footer-contact a,
.footer-social a,
.founder__link {
  transition: color .25s ease, border-color .25s ease;
}

.site-navigation > a:hover,
.course-menu > summary:hover {
  color: #6c4c93;
}

.home-page .site-navigation > a:hover,
.home-page .course-menu > summary:hover {
  color: #fff3cf;
}

.site-brand::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: .6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.site-brand:hover::after,
.site-brand:focus-visible::after {
  transform: scaleX(1);
}

.link-arrow {
  display: inline-block;
  transition: transform .25s ease;
}

a:hover .link-arrow,
a:focus-visible .link-arrow {
  transform: translate(3px, -3px);
}

.course-item a:hover,
.course-item a:focus-visible,
.founder__link:hover,
.founder__link:focus-visible {
  color: #6c4c93;
  border-color: #6c4c93;
}

.founder__avatar {
  transition: filter .3s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (hover: none) {
  .link-arrow,
  .site-brand::after {
    transition: none;
  }
}



/* 首頁 CCG 章節：主標、副標、行動呼籲與牛皮紙標示 */
.scene-label--ccg strong {
  display: block;
  font-family: var(--hand);
  font-size: clamp(28px, 2.8vw, 50px);
  font-weight: 700;
  line-height: 1.42;
}

.scene-label__sub {
  margin-top: 16px;
  color: #5a4a80;
  font-family: var(--hand);
  font-size: clamp(16px, 1.45vw, 24px);
  font-weight: 700;
  line-height: 1.8;
}

.scene-label__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: #9a6f2c;
  font-family: var(--hand);
  font-size: clamp(16px, 1.3vw, 21px);
  font-weight: 700;
  letter-spacing: .06em;
}

.scene-label__cta .scene-label__arrow {
  margin-top: 0;
}

.ccg-tag {
  position: absolute;
  z-index: 5;
  display: flex;
  width: clamp(128px, 11.5vw, 206px);
  padding: 0 6%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: center / 100% 100% no-repeat;
  color: var(--ink);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  filter: drop-shadow(0 3px 5px rgba(48, 36, 88, .22));
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg));
  transition: transform .35s ease;
}

.ccg-tag small {
  color: #9a6f2c;
  font-family: var(--hand);
  font-size: clamp(13px, 1.12vw, 19px);
  font-weight: 700;
  letter-spacing: .06em;
}

.ccg-tag b {
  font-family: var(--hand);
  font-size: clamp(17px, 1.5vw, 26px);
  font-weight: 700;
  letter-spacing: .06em;
}

.ccg-tag--clarify {
  top: 36%;
  left: 15%;
  aspect-ratio: 1712 / 836;
  background-image: url("../images/web/aiartkids-paperframe01.webp");
  --tilt: -4deg;
}

.ccg-tag--create {
  top: 51.5%;
  left: 52%;
  aspect-ratio: 1768 / 1032;
  background-image: url("../images/web/aiartkids-paperframe02.webp");
  --tilt: 2.5deg;
}

.ccg-tag--generate {
  top: 42%;
  left: 82%;
  aspect-ratio: 1712 / 836;
  background-image: url("../images/web/aiartkids-paperframe01.webp");
  --tilt: -2deg;
}

.scene__surface--linked:hover .ccg-tag,
.scene__surface--linked:focus-visible .ccg-tag {
  transform: translate(-50%, calc(-50% - 4px)) rotate(var(--tilt, 0deg));
}

@media (max-width: 767px) {
  .scene-label--ccg strong {
    font-size: clamp(22px, 6.4vw, 28px);
  }

  .scene-label__sub {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
  }

  .scene-label__cta {
    margin-top: 10px;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
  }

  .scene-label__cta .scene-label__arrow {
    width: 34px;
  }

  .ccg-tag {
    width: 98px;
  }

  .ccg-tag small {
    font-size: 11.5px;
    letter-spacing: .04em;
  }

  .ccg-tag b {
    font-size: 15px;
  }

  .ccg-tag--clarify {
    top: 49%;
    left: 20%;
  }

  .ccg-tag--create {
    top: 61%;
    left: 46%;
  }

  .ccg-tag--generate {
    top: 53%;
    left: 69%;
  }
}

/* 下拉選單箭頭：讓手機使用者看得出哪些選項可以展開 */
.site-navigation .course-menu > summary {
  padding-right: 16px;
}

.course-menu > summary::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: .8;
  transform: translateY(-75%) rotate(45deg);
  transition: transform .25s ease;
}

.course-menu[open] > summary::before {
  transform: translateY(-25%) rotate(225deg);
}

/* 首頁手機選單面板是米白底，文字不能沿用 Hero 上的淺金色 */
@media (max-width: 1050px) {
  .home-page .site-navigation {
    background: #faf7f0;
  }

  .home-page .site-navigation [aria-current="page"],
  .home-page .site-navigation > a:hover,
  .home-page .course-menu > summary:hover {
    color: #6c4c93;
  }
}

/* 首頁品牌世界：浮島（喵精靈冒險團）在左、熱氣球（童心創界盃）在右 */
.pathways-heading {
  position: absolute;
  z-index: 4;
  top: 35%;
  left: 54%;
  display: grid;
  width: 42%;
  justify-items: center;
  color: var(--ink);
  text-align: center;
  text-shadow: 0 2px 16px rgba(255, 252, 245, .98), 0 0 6px rgba(255, 252, 245, .88);
  transform: translateX(-50%);
}

.pathways-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 54px);
  font-weight: 600;
  line-height: 1.45;
}

.image-hotspot--meow {
  top: 41%;
  left: 14%;
  width: 21%;
}

.image-hotspot--meow img {
  animation: pathway-object-float 7.2s ease-in-out -2.8s infinite reverse;
}

.image-hotspot--cup {
  top: 20%;
  right: 8%;
  width: 19%;
}

.image-hotspot--cup img {
  animation: pathway-object-float 6.4s ease-in-out infinite;
}

.hotspot-caption {
  position: absolute;
  top: 100%;
  left: 50%;
  display: grid;
  width: max-content;
  margin-top: 6px;
  justify-items: center;
  gap: 4px;
  color: var(--ink);
  text-align: center;
  text-shadow: 0 2px 12px var(--paper-glow), 0 0 4px var(--paper-glow);
  transform: translateX(-50%);
}

.hotspot-caption strong {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 32px);
  font-weight: 700;
  letter-spacing: .04em;
}

.hotspot-caption__line {
  font-size: clamp(14px, 1.15vw, 19px);
  line-height: 1.6;
}

.hotspot-caption__line > span {
  display: inline-block;
  white-space: nowrap;
}

.hotspot-caption__cta {
  margin-top: 4px;
  color: #9a6f2c;
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .3s ease, color .3s ease;
}

.image-hotspot:hover .hotspot-caption__cta,
.image-hotspot:focus-visible .hotspot-caption__cta {
  color: #6c4c93;
  transform: translateX(5px);
}

@media (max-width: 767px) {
  .scene.scene--pathways .scene__surface {
    aspect-ratio: 390 / 660;
  }

  .pathways-heading {
    top: 5%;
    left: 50%;
    width: 88%;
  }

  .pathways-heading h2 {
    font-size: clamp(23px, 6.6vw, 30px);
  }

  .image-hotspot--cup {
    top: 21%;
    right: 9%;
    width: 30%;
  }

  .image-hotspot--meow {
    top: 37%;
    left: 8%;
    width: 36%;
  }

  .hotspot-caption {
    margin-top: 2px;
    gap: 2px;
  }

  .hotspot-caption strong {
    font-size: 18px;
  }

  .hotspot-caption__line {
    max-width: 13.5em;
    font-size: 13px;
    line-height: 1.5;
  }

  .hotspot-caption__cta {
    font-size: 13px;
  }
}

/* 首頁品牌世界與 Footer 之間：拉長淡出範圍，讓兩張圖交疊過渡 */
.scene--pathways .scene__picture {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 86%, transparent 100%);
}

.home-page .site-footer {
  margin-top: -10vw;
}

@media (min-width: 768px) {
  .home-page .site-footer__content {
    padding-top: clamp(150px, 14vw, 210px);
  }
}

@media (max-width: 767px) {
  .scene--pathways .scene__picture {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 80%, transparent 100%);
  }

  .home-page .site-footer {
    margin-top: -24vw;
  }
}

/* Footer 四欄分類 */
.site-footer__content {
  width: min(900px, 90%);
  padding-bottom: 48px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 24px clamp(36px, 5vw, 76px);
  text-align: left;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 2px;
  color: var(--muted);
  font-size: 14px;
}

.footer-col__title {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
}

.footer-col a,
.footer-legal a {
  justify-self: start;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #6c4c93;
  border-color: var(--gold);
}

.site-footer__content .footer-legal {
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
}

.footer-legal__sep {
  margin-inline: 8px;
  color: rgba(131, 119, 151, .6);
}

@media (max-width: 767px) {
  .site-footer__content {
    width: 88%;
    padding-bottom: 36px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
    width: 100%;
  }

  .footer-col {
    font-size: 13px;
  }

  .footer-col__title {
    margin-bottom: 4px;
    font-size: 14px;
  }

  .site-footer__content .footer-legal {
    margin-top: 26px;
  }
}

/* 聯絡頁與政策頁 */
.contact-band,
.policy {
  position: relative;
  z-index: 2;
  width: min(720px, 88%);
  margin: clamp(24px, 4vh, 60px) auto clamp(90px, 16vh, 190px);
  color: var(--ink-deep);
}

.contact-band__title,
.policy__title {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 700;
  text-align: center;
}

.contact-band__intro {
  margin: 0 auto 36px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.9;
  text-align: center;
}

.contact-band a,
.policy a {
  color: #6c4c93;
  border-bottom: 1px solid rgba(183, 138, 61, .5);
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(183, 138, 61, .38);
  background: rgba(250, 247, 240, .6);
  backdrop-filter: blur(12px) saturate(1.1);
}

.contact-field {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink-deep);
  font: inherit;
  font-weight: 400;
  border: 1px solid rgba(85, 66, 121, .25);
  border-radius: 0;
  background: rgba(255, 255, 255, .75);
}

.contact-field textarea {
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(183, 138, 61, .25);
}

.contact-form__note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-form__submit {
  justify-self: center;
  min-width: 180px;
  padding: 13px 34px;
  color: #fffaf0;
  font: inherit;
  font-weight: 700;
  letter-spacing: .1em;
  border: 0;
  background: linear-gradient(135deg, #b78a3d, #9a6f2c);
  cursor: pointer;
  transition: filter .25s ease, transform .25s ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.contact-form__submit:disabled {
  cursor: default;
  opacity: .6;
  transform: none;
}

.contact-form__status {
  margin: 0;
  min-height: 1.6em;
  color: #6c4c93;
  text-align: center;
}

.contact-form.is-sent .contact-field,
.contact-form.is-sent .contact-form__note,
.contact-form.is-sent .contact-form__submit {
  display: none;
}

.policy {
  font-size: 16px;
  line-height: 1.95;
}

.policy h3 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.policy p {
  margin: 0 0 12px;
}

.policy ul {
  margin: 0 0 12px;
  padding-left: 1.3em;
}

.policy li + li {
  margin-top: 6px;
}

.policy__table {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
}

.policy__table th,
.policy__table td {
  padding: 10px 14px;
  border: 1px solid rgba(183, 138, 61, .38);
  text-align: left;
}

.policy__table th {
  color: var(--ink);
  background: rgba(231, 200, 121, .18);
}

.policy__contact {
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(250, 247, 240, .7);
}

/* 聯絡頁 Hero：讓左下角寫信的喵精靈完整露出 */
.contact-page .inner-hero--brief,
.contact-page .inner-hero--brief .inner-hero__content {
  min-height: min(78vh, 780px);
}

.contact-page .inner-hero__picture img {
  object-position: 50% 80%;
  opacity: .95;
}

.contact-page .inner-hero__picture {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
}

@media (max-width: 767px) {
  .contact-page .inner-hero--brief,
  .contact-page .inner-hero--brief .inner-hero__content {
    min-height: 0;
    aspect-ratio: 1440 / 1920;
  }

  .contact-page .inner-hero__picture img {
    object-position: 50% 100%;
  }
}

/* 聯絡頁 Hero 中央：標題、說明與聯絡方式 */
.contact-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 640px;
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(250, 247, 240, .95), 0 0 4px rgba(250, 247, 240, .9);
}

.contact-hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 700;
}

.inner-hero__content p.contact-hero__intro {
  margin: 0;
  color: var(--ink-deep);
  font-weight: 400;
  letter-spacing: .04em;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.9;
}

.contact-hero__channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.contact-channel {
  display: grid;
  justify-items: center;
  min-width: 190px;
  padding: 10px 22px;
  color: var(--ink-deep);
  font-size: 15px;
  border: 1px solid rgba(183, 138, 61, .45);
  background: rgba(250, 247, 240, .72);
  backdrop-filter: blur(10px) saturate(1.1);
  text-shadow: none;
  transition: border-color .25s ease, transform .25s ease, color .25s ease;
}

.contact-channel__label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.contact-channel:hover,
.contact-channel:focus-visible {
  color: #6c4c93;
  border-color: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .contact-page .inner-hero--brief,
  .contact-page .inner-hero--brief .inner-hero__content {
    aspect-ratio: auto;
    min-height: calc(100vw * 4 / 3);
  }

  .contact-page .inner-hero--brief .inner-hero__content {
    padding-bottom: 60vw;
  }

  .contact-hero {
    gap: 10px;
  }

  .inner-hero__content p.contact-hero__intro {
    max-width: 19em;
    font-size: 14px;
    line-height: 1.8;
  }

  .contact-hero__intro br {
    display: none;
  }

  .contact-hero__channels {
    gap: 8px;
  }

  .contact-channel {
    min-width: 0;
    padding: 7px 14px;
    font-size: 13px;
  }

  .contact-channel__label {
    font-size: 11px;
  }
}

/* 聯絡頁間距：Hero 文字往下放進留白中央，表單與 Footer 靠近一些 */
.contact-hero {
  margin-top: clamp(24px, 7vh, 72px);
}

.contact-page .contact-band {
  margin-top: clamp(60px, 14vh, 130px);
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .contact-hero {
    margin-top: 0;
  }

}

/* 手機 Footer 圖片上緣淡出，避免圖片頂端出現橫線；聯絡頁表單往上靠 */
@media (max-width: 767px) {
  .site-footer__art img {
    top: auto;
    bottom: 0;
    height: auto;
    aspect-ratio: 3 / 4;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
  }

  .contact-page .contact-band {
    margin-top: 12px;
  }
}

/* 手機 Footer 淡出只套在背景和圖片，Logo 與文字不被遮住 */
@media (max-width: 767px) {
  .site-footer {
    background: linear-gradient(to bottom, rgba(249, 240, 234, 0) 0%, var(--paper) 28%);
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* 手機 Footer：文字放在手機圖上方的留白，下方留給門、樹和水面的圖案 */
@media (max-width: 767px) {
  .site-footer__content {
    padding-bottom: 72vw;
  }

  .site-footer__content::before {
    content: none;
  }
}

/* 手機 CCG：只留大標，拿掉副標，大標往下放進空白區 */
@media (max-width: 767px) {
  .scene-label--ccg {
    top: 13%;
  }

  .scene-label--ccg .scene-label__sub {
    display: none;
  }
}

/* 政策頁 Hero：縮矮，讓內文緊接在總結字下方 */
.policy-page .inner-hero--brief,
.policy-page .inner-hero--brief .inner-hero__content {
  min-height: 0;
}

.policy-page .inner-hero--brief .inner-hero__content {
  padding-bottom: 40px;
}

.policy-page .policy {
  margin-top: 8px;
}

/* 政策頁窄版 Hero 圖：依圖片比例完整顯示，選單和總結字放在中間留白 */
.policy-page .inner-hero--brief {
  aspect-ratio: 1672 / 533;
}

.policy-page .inner-hero--brief .inner-hero__content {
  height: 100%;
  padding-top: 8vh;
  padding-bottom: 24px;
}

.policy-page .policy {
  position: relative;
  margin-top: -80px;
}

.policy-page .inner-hero__picture img {
  opacity: 1;
  object-position: center top;
}

.policy-page .inner-hero__picture {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
}

@media (max-width: 767px) {
  .policy-page .inner-hero--brief {
    aspect-ratio: auto;
  }

  .policy-page .inner-hero__picture img {
    inset: 0 0 auto;
    height: auto;
    object-fit: contain;
    object-position: 50% 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  }

  .policy-page .policy {
    margin-top: 8px;
  }
}

/* 政策頁底色：跟窄版 Hero 圖的米白一致 */
body.policy-page {
  --paper: #fbf8f2;
  background: var(--paper);
}

/* 桌機 CCG 新底圖（2560×2049）：上方留白放文字，紙條對齊三隻喵精靈 */
@media (min-width: 768px) {
  .scene--ccg .scene__surface {
    aspect-ratio: 2560 / 2049;
  }

  .scene-label--ccg {
    top: 13%;
    left: 48%;
  }

  .ccg-tag--clarify {
    top: 50%;
    left: 27%;
  }

  .ccg-tag--create {
    top: 56%;
    left: 57%;
  }

  .ccg-tag--generate {
    top: 49%;
    left: 80%;
  }
}

/* 桌機 CCG：往上疊到 Hero 底部，讓淡出的部分蓋在 Hero 上，文字移到空白中央 */
@media (min-width: 768px) {
  .scene.scene--ccg {
    margin-top: -3.4vw;
  }

  .scene--ccg .scene-label--ccg {
    top: 19%;
  }
}

/* 首頁章節交疊只淡出上緣，淡出範圍等於交疊的高度，下面的圖直接蓋在上一張圖上，不透出底色 */
.scene:not(.scene--hero):not(.scene--pathways) .scene__picture {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2vw, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 2vw, #000 100%);
}

.scene--pathways .scene__picture {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2vw, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 2vw, #000 86%, transparent 100%);
}

@media (max-width: 767px) {
  .scene:not(.scene--hero):not(.scene--pathways) .scene__picture {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6vw, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 6vw, #000 100%);
  }

  .scene--pathways .scene__picture {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6vw, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 6vw, #000 80%, transparent 100%);
  }
}

/* 首頁桌機選單：跟內頁一樣用一般粗細 */
@media (min-width: 1051px) {
  .home-page .site-navigation {
    font-size: 16px;
    font-weight: 400;
  }
}

/* 2026-10-02 桌機 Footer 淡出只套在背景圖，Logo 往上移之後不會被遮淡（手機原本就是這樣） */
@media (min-width: 768px) {
  .site-footer {
    background: linear-gradient(to bottom, rgba(249, 240, 234, 0) 0%, var(--paper) 28%);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .site-footer__art {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 100%);
  }
}
