/* Reference-led cover: editable type and the original crest over a clean image plate. */
.brand-hero.ace-reference-cover {
  display: block;
  min-height: clamp(610px, 56.28vw, 1060px);
  padding: clamp(68px, 6.2vw, 120px) 6.2% clamp(90px, 8vw, 150px);
  color: #122e55;
  background: #edf5fc url('/assets/ace-cover-architecture-20260929.png') center / cover no-repeat;
  isolation: isolate;
}
.ace-reference-cover::before,
.ace-reference-cover::after,
.ace-reference-cover .brand-hero-copy::before,
.ace-reference-cover h1::after { display: none; }
.ace-reference-cover .brand-hero-copy {
  width: 49%;
  max-width: 760px;
  padding: 0;
}
.ace-reference-cover .brand-hero-copy .brand-eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(15px, 1.8vw, 32px);
  margin: 0 0 28px !important;
  color: #57789e;
  font: 600 clamp(10px, 1.15vw, 19px)/1.5 "DM Sans", sans-serif;
  letter-spacing: .27em;
  white-space: nowrap;
}
.ace-reference-cover .brand-eyebrow i {
  flex: 0 0 clamp(24px, 4.4vw, 74px);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #329bdd, #5962c7);
  box-shadow: 0 1px 0 #fff;
}
.ace-reference-cover .brand-hero-copy h1 {
  margin: 0;
  color: #142e53;
  font-family: "Noto Serif TC", "Source Han Serif TC", serif;
  font-weight: 900;
  font-size: clamp(72px, 7.7vw, 146px);
  letter-spacing: -.03em;
  line-height: 1.22;
  white-space: normal;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 1px #7892ac, 0 6px 12px #183b6020;
  filter: none;
}
.ace-reference-cover h1 > span { display: block; white-space: nowrap; }
.ace-reference-cover h1 > span:last-child { font-size: .9em; }
.ace-reference-cover .brand-hero-copy .ace-cover-subtitle {
  width: fit-content;
  max-width: 100%;
  margin: 23px 0 26px;
  padding-top: 14px;
  border-top: 1px solid #9bb7d4;
  color: #36567c;
  font-size: clamp(23px, 2.55vw, 45px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .16em;
  white-space: nowrap;
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 #fff;
}
.ace-reference-cover .brand-hero-copy .brand-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: fit-content;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 12px 17px 12px 21px;
  border: 1px solid #ffffffed;
  border-left: 5px solid #3c7acf;
  border-radius: 0;
  color: #142e53;
  background: #ffffff54;
  box-shadow: inset 0 0 0 1px #e2edfa70;
  font: 800 clamp(23px, 2.7vw, 46px)/1.45 "Noto Serif TC", "Source Han Serif TC", serif;
  letter-spacing: .025em;
  text-shadow: 0 1px 0 #fff;
}
.ace-reference-cover .brand-lead > span { white-space: nowrap; }
.ace-reference-cover .brand-lead em { color: #6755b4; font-style: normal; }
.ace-reference-cover .brand-lead small {
  display: block;
  color: #688bb5;
  font: 500 clamp(8px, .82vw, 13px)/1.65 "DM Sans", sans-serif;
  letter-spacing: .27em;
  white-space: nowrap;
}
.ace-reference-cover .brand-hero-art {
  position: absolute;
  top: 18.5%;
  left: 55.5%;
  width: 31.5%;
  max-width: 610px;
  min-height: 0;
  margin: 0;
  aspect-ratio: 1;
  animation: none;
}
.ace-reference-cover .brand-hero-art::before,
.ace-reference-cover .brand-hero-art::after { display: none; }
.ace-reference-cover .brand-hero-art img {
  position: static;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  transform: none;
  filter: drop-shadow(0 14px 18px #244f7624);
  animation: none;
}
@media (min-width: 1900px) {
  .brand-hero.ace-reference-cover { padding-left: max(6.2%, calc(50% - 820px)); }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .brand-hero.ace-reference-cover { padding-left: 5%; min-height: 610px; }
  .ace-reference-cover .brand-hero-copy h1 { font-size: 7.5vw; }
  .ace-reference-cover .brand-hero-copy .brand-eyebrow { letter-spacing: .19em; }
  .ace-reference-cover .brand-hero-copy .brand-lead { padding-left: 15px; font-size: 2.55vw; }
  .ace-reference-cover .brand-hero-art { top: 24%; }
}
@media (max-width: 760px) {
  .brand-hero.ace-reference-cover {
    min-height: 0;
    padding: 42px 24px 0;
    background: linear-gradient(135deg, #f5f9ff, #eaf3fc);
  }
  .ace-reference-cover .brand-hero-copy {
    width: 100%;
    max-width: 510px;
    margin: 0 auto;
    text-align: center;
  }
  .ace-reference-cover .brand-hero-copy .brand-eyebrow {
    margin-bottom: 19px !important;
    justify-content: center;
    gap: 15px;
    font-size: clamp(9px, 2.5vw, 13px);
    letter-spacing: .2em;
  }
  .ace-reference-cover .brand-eyebrow i { flex-basis: 31px; height: 2px; }
  .ace-reference-cover .brand-hero-copy h1 {
    font-size: clamp(24px, 8.1vw, 49px);
    letter-spacing: -.025em;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 1px #819eb7, 0 4px 8px #244c6b14;
  }
  .ace-reference-cover h1 > span { display: inline; }
  .ace-reference-cover h1 > span:last-child { font-size: 1em; }
  .ace-reference-cover .brand-hero-copy .ace-cover-subtitle {
    margin: 20px auto 19px;
    padding-top: 13px;
    font-size: clamp(19px, 5.25vw, 28px);
    letter-spacing: .115em;
  }
  .ace-reference-cover .brand-hero-copy .brand-lead {
    position: relative;
    padding: 10px 0 15px;
    margin-inline: auto;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(19px, 5.25vw, 27px);
    letter-spacing: .015em;
  }
  .ace-reference-cover .brand-lead > span { display: flex; align-items: center; gap: .4em; }
  .ace-reference-cover .brand-lead em {
    position: relative;
    isolation: isolate;
    display: inline-block;
    padding: .08em .35em .13em;
    color: #fff;
    font-size: 1.08em;
    letter-spacing: .06em;
    text-shadow: 0 1px 2px #31235d40;
  }
  .ace-reference-cover .brand-lead em::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid #9784cf;
    border-radius: 3px;
    background: linear-gradient(125deg, #8064c3, #584290 75%);
    box-shadow: 0 5px 12px #6252a32b, inset 0 1px 0 #ffffff38;
    transform: skewX(-8deg);
    content: "";
  }
  .ace-reference-cover .brand-lead::after {
    position: absolute;
    bottom: 0;
    left: calc(50% - 28px);
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, #7aaede, #8d73c5);
    content: "";
  }
  .ace-reference-cover .brand-lead small {
    font-size: clamp(7px, 1.8vw, 9px);
    letter-spacing: .14em;
  }
  .ace-reference-cover .brand-hero-art {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: calc(100% + 48px);
    max-width: none;
    aspect-ratio: 1.58;
    max-height: 360px;
    margin: 19px -24px 0;
    padding-top: 8px;
    background: url('/assets/ace-cover-architecture-20260929.png') right bottom / auto 145% no-repeat;
    animation: none;
    isolation: isolate;
  }
  .ace-reference-cover .brand-hero-art::before {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    animation: none;
    background: linear-gradient(180deg, #edf5fd 0%, #edf5fd00 30%);
    z-index: -1;
  }
  .ace-reference-cover .brand-hero-art img {
    width: min(48%, 240px);
    height: auto;
    align-self: flex-start;
    margin-inline: auto;
  }
}
@media (max-width: 360px) {
  .brand-hero.ace-reference-cover { padding-inline: 19px; }
  .ace-reference-cover .brand-hero-copy .ace-cover-subtitle { font-size: 18px; letter-spacing: .09em; }
  .ace-reference-cover .brand-hero-copy .brand-lead { font-size: 18px; }
  .ace-reference-cover .brand-hero-art { width: calc(100% + 38px); margin-inline: -19px; }
}
@media (prefers-reduced-motion: reduce) {
  .ace-reference-cover .brand-hero-art { animation: none; }
}

/* Let the architectural image dissolve into the learning introduction. */
.brand-hero.ace-reference-cover::after {
  display: block;
  position: absolute;
  inset: auto 0 0;
  height: clamp(105px, 12vw, 185px);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #f3f6ff00 0%, #f3f6ff38 28%, #f3f6ffbf 72%, #f3f6ff 100%);
  content: "";
}
.ace-section-transition {
  position: relative;
  height: clamp(64px, 6vw, 88px);
  margin-top: -1px;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #f3f6ff, #f6f5fc 48%, #fcfdff);
}
.ace-section-transition svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ace-transition-mark {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid #aaa0cf;
  background: #f9faff;
  transform: translateX(-50%) rotate(45deg);
}
.ace-section-transition + .brand-manifesto.ace-learning-manifesto.ace-learning-with-pyramid {
  padding-top: clamp(20px, 2.4vw, 36px);
  background: linear-gradient(180deg, #fcfdff 0, #fff 200px);
}
@media (max-width: 760px) {
  .brand-hero.ace-reference-cover::after { display: none; }
  .ace-reference-cover .brand-hero-art::after {
    display: block;
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: 88px;
    background: linear-gradient(180deg, #f3f6ff00, #f3f6ffbd 65%, #f3f6ff);
    content: "";
    pointer-events: none;
  }
  .ace-section-transition { height: 57px; }
  .ace-section-transition svg { width: 160%; max-width: none; margin-left: -30%; }
  .ace-section-transition + .brand-manifesto.ace-learning-manifesto.ace-learning-with-pyramid {
    padding-top: 20px;
    background: linear-gradient(180deg, #fcfdff 0, #fff 165px);
  }
}

/* The crest moves independently; the architectural background stays still. */
.ace-reference-cover .ace-logo-motion {
  position: relative;
  z-index: 4;
  width: 100%;
  aspect-ratio: 1;
  --ace-logo-lift: -10px;
}
.ace-reference-cover .ace-logo-motion img {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  height: auto;
  margin: 0;
  transform: none;
}
.ace-logo-orbit {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  max-width: none;
  pointer-events: none;
}
.ace-orbit-track { transform-origin: 300px 300px; }
.ace-motion-ready .ace-logo-motion { animation: ace-crest-float 7s ease-in-out infinite; }
.ace-motion-ready .ace-orbit-track { animation: ace-crest-orbit 22s linear infinite; }
.ace-motion-ready .ace-orbit-track-secondary { animation-duration: 32s; animation-direction: reverse; }
.ace-reference-cover:not(.ace-motion-running) .ace-logo-motion,
.ace-reference-cover:not(.ace-motion-running) .ace-orbit-track { animation-play-state: paused; }
.ace-motion-toggle {
  position: absolute;
  bottom: 18px;
  right: 24px;
  z-index: 5;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid #a7bbd477;
  border-radius: 18px;
  color: #476183;
  background: #f8fbffb8;
  font: 500 12px/1.5 "PingFang TC", "Microsoft JhengHei", sans-serif;
  cursor: pointer;
}
.ace-motion-toggle:hover { border-color: #8c7ac4; color: #615087; background: #fff; }
.ace-motion-toggle:focus-visible { outline: 2px solid #7a67b9; outline-offset: 3px; }
.ace-motion-toggle[hidden] { display: none; }
@keyframes ace-crest-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--ace-logo-lift)); }
}
@keyframes ace-crest-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 760px) {
  .ace-reference-cover .ace-logo-motion {
    flex: 0 0 auto;
    width: min(48%, 240px);
    align-self: flex-start;
    margin-inline: auto;
    --ace-logo-lift: -6px;
  }
  .ace-motion-toggle { right: 16px; bottom: 12px; font-size: 11px; padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ace-motion-ready .ace-logo-motion,
  .ace-motion-ready .ace-orbit-track { animation: none; }
  .ace-motion-toggle { display: none; }
}
