/* ==========================================================================
   又悠數位 YoYou Studio — Works archive (works.html) & Single case (work-single.html)
   Shared across works list and work detail page for 0ms browser cache reuse.
   Loaded after studio.css.
   ========================================================================== */
/* 15 Works archive page (works.html) --------------------------------------- */
.page-hero { position: relative; overflow: hidden; background: var(--st-ink); color: var(--st-paper); padding: calc(var(--st-header-h) + clamp(36px, 8vh, 90px)) 0 clamp(28px, 5vw, 64px); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--st-signal);
}
.page-hero__label::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--st-signal);
}
.page-hero__title { font-size: clamp(3.6rem, 18vw, 6.4rem); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; }
.page-hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.page-hero__title .line > span { display: block; }
.page-hero__en { margin-top: 6px; font-size: clamp(.95rem, 2.2vw, 1.15rem); font-weight: 700; color: var(--st-text-mute-light); }
.page-hero__intro { max-width: 28em; margin-top: 24px; color: var(--st-text-mute-light); }
.page-hero__bar { display: flex; flex-direction: column; gap: 18px; margin-top: clamp(36px, 7vw, 72px); padding-top: 22px; border-top: 1px solid var(--st-line-light); }
.works-filter__list { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.works-filter__list a { position: relative; display: inline-block; padding: 8px 0 8px 16px; font-weight: 700; font-size: 1rem; color: var(--st-text-mute-light); transition: color .3s; }
.works-filter__list a::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: var(--st-signal); transform: scale(0); transition: transform .4s var(--st-ease); }
.works-filter__list a:hover { color: var(--st-paper); }
.works-filter__list a.is-active, .works-filter__list .current-cat > a { color: var(--st-paper); }
.works-filter__list a.is-active::before, .works-filter__list .current-cat > a::before { transform: scale(1); }
.works-count { font-size: var(--st-fs-small); font-weight: 600; color: var(--st-text-mute-light); }
.works-count strong { color: var(--st-paper); font-weight: 800; }
.page-hero__word { position: absolute; right: 0; bottom: .02em; z-index: 1; margin: 0; padding: 0 var(--st-gutter) .08em; pointer-events: none; font-size: clamp(5rem, 26vw, 13rem); font-weight: 900; line-height: .95; letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(238, 240, 248, .12); will-change: transform; }

.works-archive { background: var(--st-paper); color: var(--st-ink); padding-block: clamp(64px, 11vw, 130px) var(--st-section); }
.works-archive .work__media { aspect-ratio: 16 / 10; }
.works-archive .work[hidden] { display: none; }
.works-empty { padding: 60px 0; text-align: center; color: var(--st-text-mute-dark); font-weight: 700; }

/* WordPress the_posts_pagination() & JS Pagination — drop-in styling */
.navigation.pagination { margin-top: clamp(56px, 9vw, 100px); }
.navigation.pagination[hidden] { display: none !important; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 46px;
  height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--st-line-dark);
  background: #ffffff;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 800;
  color: var(--st-ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.navigation.pagination a.page-numbers:hover,
.navigation.pagination button.page-numbers:hover:not(:disabled) {
  background: var(--st-signal);
  border-color: var(--st-signal);
  color: var(--st-ink);
  transform: translateY(-2px);
}
.navigation.pagination .page-numbers.current {
  background: var(--st-ink);
  border-color: var(--st-ink);
  color: var(--st-paper);
  cursor: default;
}
.navigation.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  cursor: default;
  min-width: 32px;
  padding: 0 4px;
}
.navigation.pagination .page-numbers.is-disabled,
.navigation.pagination button.page-numbers:disabled {
  opacity: .38;
  pointer-events: none;
  cursor: not-allowed;
}

html.js.is-ready .page-hero__word { animation: st-fade-in 1.4s var(--st-ease) .9s backwards; }
html.js .page-hero__title .line > span { transform: translateY(108%); }
html.js.is-ready .page-hero__title .line > span { transform: none; transition: transform 1.1s var(--st-ease) .2s; }

html.js .works-filter__list li { opacity: 0; transform: translateY(16px); }
html.js.is-ready .works-filter__list li {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .8s var(--st-ease);
  transition-delay: calc(.45s + var(--f-i, 0) * .08s);
}

@media (min-width: 768px) { .page-hero__bar { flex-direction: row; align-items: center; justify-content: space-between; } }
@media (min-width: 1100px) {
  .page-hero { padding-top: calc(var(--st-header-h) + 8vh); }
  .page-hero__title { font-size: clamp(6rem, 11.5vw, 13rem); }
  .page-hero__intro { font-size: 1.08rem; }
  .page-hero__word { padding-bottom: .06em; font-size: clamp(9rem, 17vw, 21rem); -webkit-text-stroke-width: 2px; }
  .page-hero__bar { margin-bottom: clamp(24px, 4vh, 48px); }

  /* latest post is featured full-width; the rest sit in two columns (WP: first post in the loop) */
  .works-archive .is-feature { grid-column: 1 / -1; }
  .works-archive .is-feature .work__link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; align-items: end; }
  .works-archive .is-feature .work__media { grid-column: 1 / span 8; }
  .works-archive .is-feature .work__body { grid-column: 9 / span 4; grid-template-columns: 1fr; margin-top: 0; gap: 10px; align-self: end; }
  .works-archive .is-feature .work__name { font-size: clamp(1.9rem, 2.7vw, 3rem); }
  .works-archive .is-feature .work__go { grid-column: 1; justify-self: start; margin-top: 18px; }
}

/* ==========================================================================
   16 Single Work Case Study Page (work-single.html / single.php)
   ========================================================================== */

/* 16.1 Case Study Hero ----------------------------------------------------- */
.work-hero {
  position: relative;
  overflow: hidden;
  background: var(--st-ink);
  color: var(--st-paper);
  padding: calc(var(--st-header-h) + clamp(32px, 6vh, 72px)) 0 clamp(80px, 12vw, 156px);
}
.work-hero .page-hero__word {
  bottom: .04em;
  right: 0;
  padding: 0 var(--st-gutter);
  line-height: .88;
  font-size: clamp(4.2rem, 17vw, 15.5rem);
}
.work-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.work-hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 240, 248, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 240, 248, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, black 20%, transparent 80%);
}
.work-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .16;
}
.work-hero__glow--a {
  width: 560px;
  height: 560px;
  background: var(--st-blue);
  top: -15%;
  right: -5%;
}
.work-hero__glow--b {
  width: 380px;
  height: 380px;
  background: var(--st-signal);
  bottom: 5%;
  left: -8%;
  opacity: .1;
}
.work-hero__inner {
  position: relative;
  z-index: 2;
}
.work-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: clamp(20px, 3.5vw, 32px);
}
.work-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--st-text-mute-light);
  transition: color .3s, transform .3s var(--st-ease);
}
.work-hero__back svg {
  width: 18px;
  height: 18px;
  transition: transform .35s var(--st-ease);
}
.work-hero__back:hover {
  color: var(--st-paper);
}
.work-hero__back:hover svg {
  transform: translateX(-4px);
}
.work-hero__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(238, 240, 248, .3);
}
.work-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 122, 69, .14);
  border: 1px solid rgba(255, 122, 69, .4);
  color: var(--st-signal);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.work-hero__title {
  font-size: clamp(2.4rem, 9vw, 5.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--st-white);
  max-width: 18em;
}
.work-hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}
.work-hero__title .line > span {
  display: block;
}
html.js .work-hero__title .line > span {
  transform: translateY(108%);
}
html.js.is-ready .work-hero__title .line > span {
  transform: none;
  transition: transform 1.1s var(--st-ease) .2s;
}
.work-hero__summary {
  margin-top: clamp(18px, 3vw, 28px);
  max-width: 40em;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.9;
  color: var(--st-text-mute-light);
}

/* Client Official Live Domain Bar (below summary, auto-hidden when empty) */
.work-hero__live {
  margin-top: clamp(22px, 3.2vw, 32px);
}
.work-hero__live[hidden] {
  display: none !important;
}
.work-hero__live-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(238, 240, 248, .06);
  border: 1px solid rgba(238, 240, 248, .18);
  backdrop-filter: blur(10px);
  color: var(--st-paper);
  font-size: .9rem;
  transition: border-color .3s var(--st-ease), background .3s var(--st-ease), transform .3s var(--st-ease);
}
.work-hero__live-link:hover {
  border-color: var(--st-signal);
  background: rgba(255, 122, 69, .12);
  transform: translateY(-2px);
}
.work-hero__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--st-signal);
}
.work-hero__live-badge svg {
  width: 15px;
  height: 15px;
}
.work-hero__live-url {
  font-weight: 800;
  color: var(--st-white);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .88rem;
  word-break: break-all;
}
.work-hero__live-arrow {
  width: 16px;
  height: 16px;
  color: var(--st-text-mute-light);
  transition: transform .3s var(--st-ease), color .3s;
}
.work-hero__live-link:hover .work-hero__live-arrow {
  color: var(--st-signal);
  transform: translate(3px, -3px);
}

/* Metadata Spec Grid inside Hero (auto-reflows if any field is empty) */
.work-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: clamp(36px, 5.5vw, 60px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--st-line-light);
}
.work-meta[hidden],
.work-meta__item[hidden] {
  display: none !important;
}
.work-meta__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.work-meta__label {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--st-signal);
}
.work-meta__val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--st-paper);
  line-height: 1.5;
}
.work-meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.work-meta__tags li {
  font-size: .8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(238, 240, 248, .08);
  border: 1px solid rgba(238, 240, 248, .14);
  color: var(--st-paper);
}

@media (min-width: 640px) {
  .work-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
  }
}
@media (min-width: 1100px) {
  .work-meta {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
  }
  .work-meta__item {
    padding-right: 16px;
  }
}

/* 16.2 Interactive Website Live Preview Showcase --------------------------- */
.work-mirror-sec {
  position: relative;
  background: var(--st-paper);
  color: var(--st-ink);
  padding-block: clamp(56px, 8vw, 104px) clamp(24px, 4vw, 48px);
}
.work-mirror-sec[hidden] {
  display: none !important;
}
.work-mirror-sec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(22px, 3.2vw, 36px);
  color: var(--st-ink);
}
.work-mirror-sec__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--st-signal);
  margin-bottom: 8px;
}
.work-mirror-sec__title {
  font-size: clamp(1.65rem, 3.8vw, 2.45rem);
  font-weight: 900;
  color: var(--st-ink);
}
.work-mirror-sec__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--st-text-mute-dark);
  background: #ffffff;
  border: 1px solid var(--st-line-dark);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(8, 20, 53, .05);
}
.work-mirror-sec__note i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Browser Window Studio Frame */
.work-mirror {
  position: relative;
  border-radius: 18px;
  background: #0b132b;
  border: 1px solid rgba(238, 240, 248, .18);
  box-shadow: 0 32px 80px -16px rgba(8, 20, 53, .55), 0 0 0 1px rgba(8, 20, 53, .08);
  overflow: hidden;
  transition: border-color .35s var(--st-ease), box-shadow .35s var(--st-ease);
}
.work-mirror.is-interactive {
  border-color: var(--st-signal);
  box-shadow: 0 32px 90px -12px rgba(8, 20, 53, .65), 0 0 0 2px rgba(255, 122, 69, .45);
}
.work-mirror.is-fullscreen {
  position: fixed;
  inset: 12px;
  z-index: 9995;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
}

/* Browser Chrome Toolbar */
.mirror-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 18px;
  background: #060d21;
  border-bottom: 1px solid rgba(238, 240, 248, .12);
  color: var(--st-paper);
}
.mirror-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mirror-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mirror-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.mirror-dots span:nth-child(1) { background: #ff5f56; }
.mirror-dots span:nth-child(2) { background: #ffbd2e; }
.mirror-dots span:nth-child(3) { background: #27c93f; }

.mirror-status {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(16, 185, 129, .14);
  border: 1px solid rgba(16, 185, 129, .35);
  color: #34d399;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
@media (min-width: 640px) {
  .mirror-status { display: inline-flex; }
}

/* URL Bar */
.mirror-url {
  flex: 1 1 240px;
  max-width: 540px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  border-radius: 8px;
  background: rgba(238, 240, 248, .06);
  border: 1px solid rgba(238, 240, 248, .12);
  font-size: .82rem;
  color: rgba(238, 240, 248, .85);
  min-width: 0;
}
.mirror-url__lock {
  width: 14px;
  height: 14px;
  color: #34d399;
  flex-shrink: 0;
}
.mirror-url__text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .8rem;
}
.mirror-url__copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  border: 0;
  background: rgba(238, 240, 248, .1);
  color: var(--st-paper);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .25s, color .25s;
}
.mirror-url__copy:hover {
  background: var(--st-signal);
  color: var(--st-ink);
}

/* Right Controls: Viewport Switcher & Actions */
.mirror-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mirror-devices {
  display: none;
  align-items: center;
  background: rgba(238, 240, 248, .06);
  border: 1px solid rgba(238, 240, 248, .12);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
@media (min-width: 768px) {
  .mirror-devices { display: inline-flex; }
}
.mirror-device-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--st-text-mute-light);
  font-family: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.mirror-device-btn svg {
  width: 14px;
  height: 14px;
}
.mirror-device-btn:hover {
  color: var(--st-paper);
}
.mirror-device-btn.is-active {
  background: var(--st-blue);
  color: var(--st-white);
}

.mirror-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(238, 240, 248, .16);
  background: rgba(238, 240, 248, .05);
  color: var(--st-paper);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s var(--st-ease);
}
.mirror-action-btn svg {
  width: 14px;
  height: 14px;
}
.mirror-action-btn:hover {
  border-color: var(--st-signal);
  color: var(--st-signal);
}
.mirror-action-btn--primary {
  background: var(--st-signal);
  border-color: var(--st-signal);
  color: var(--st-ink);
  font-weight: 800;
}
.mirror-action-btn--primary:hover {
  background: var(--st-paper);
  border-color: var(--st-paper);
  color: var(--st-ink);
}

/* Mirror Stage & Viewport Container */
.mirror-stage {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(58, 82, 255, .18), transparent 70%),
    #0d1736;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  transition: padding .4s var(--st-ease);
}
.work-mirror[data-viewport="tablet"] .mirror-stage,
.work-mirror[data-viewport="mobile"] .mirror-stage {
  padding: clamp(16px, 2.5vw, 32px) 12px;
}
.mirror-viewport {
  position: relative;
  width: 100%;
  height: clamp(460px, 72vh, 780px);
  background: var(--st-ink);
  overflow: hidden;
  transition: width .45s var(--st-ease), height .45s var(--st-ease), border-radius .45s var(--st-ease), box-shadow .45s var(--st-ease);
}
.work-mirror.is-fullscreen .mirror-stage {
  flex: 1;
}
.work-mirror.is-fullscreen .mirror-viewport {
  height: 100%;
}
.work-mirror[data-viewport="tablet"] .mirror-viewport {
  width: 820px;
  max-width: 100%;
  border-radius: 14px;
  border: 4px solid #1e293b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.work-mirror[data-viewport="mobile"] .mirror-viewport {
  width: 390px;
  max-width: 100%;
  border-radius: 28px;
  border: 6px solid #1e293b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}

.mirror-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
  z-index: 2;
  opacity: 0;
  transition: opacity .5s ease;
}
.work-mirror.is-loaded .mirror-iframe {
  opacity: 1;
}

/* Poster / Fallback Snapshot Image inside Viewport */
.mirror-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--st-ink);
}
.mirror-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(.88);
  transition: transform .8s var(--st-ease), filter .5s ease;
}

/* Loading Indicator */
.mirror-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(8, 20, 53, .72);
  backdrop-filter: blur(6px);
  color: var(--st-paper);
  font-size: .88rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.work-mirror.is-loading .mirror-loader {
  opacity: 1;
  visibility: visible;
}
.mirror-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(238, 240, 248, .2);
  border-top-color: var(--st-signal);
  animation: st-spin .8s linear infinite;
}
@keyframes st-spin { to { transform: rotate(360deg); } }

/* Scroll-Guard Overlay (Prevents accidental wheel hijack while scrolling page) */
.mirror-guard {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(20px, 4vw, 36px);
  background: linear-gradient(180deg, rgba(8, 20, 53, .05) 0%, rgba(8, 20, 53, .22) 60%, rgba(8, 20, 53, .82) 100%);
  transition: opacity .35s ease, visibility .35s;
}
.work-mirror.is-interactive .mirror-guard {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mirror-guard__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  max-width: 680px;
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(8, 20, 53, .9);
  border: 1px solid rgba(238, 240, 248, .2);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .45);
  color: var(--st-paper);
}
.mirror-guard__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mirror-guard__title {
  font-size: .96rem;
  font-weight: 800;
  color: var(--st-white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mirror-guard__sub {
  font-size: .82rem;
  color: var(--st-text-mute-light);
}
.mirror-guard__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--st-signal);
  color: var(--st-ink);
  font-family: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s var(--st-ease), background .25s;
}
.mirror-guard__btn:hover {
  background: var(--st-white);
  transform: translateY(-2px);
}
.mirror-guard__btn svg {
  width: 16px;
  height: 16px;
}

/* Floating Exit Interactive Pill */
.mirror-unlock-pill {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 69, .6);
  background: rgba(8, 20, 53, .92);
  backdrop-filter: blur(10px);
  color: var(--st-paper);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--st-ease);
}
.work-mirror.is-interactive .mirror-unlock-pill {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mirror-unlock-pill:hover {
  background: var(--st-signal);
  color: var(--st-ink);
}

/* Mirror Caption Bar below Browser */
.mirror-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 12px 20px;
  background: #08122c;
  border-top: 1px solid rgba(238, 240, 248, .1);
  font-size: .82rem;
  color: var(--st-text-mute-light);
}
.mirror-foot strong {
  color: var(--st-paper);
}
.mirror-foot__tip--desktop {
  display: none;
}
.mirror-foot__tip--mobile {
  display: inline;
}
@media (min-width: 1100px) {
  .mirror-foot__tip--desktop {
    display: inline;
  }
  .mirror-foot__tip--mobile {
    display: none;
  }
}

/* 16.3 Article Content & Snapshots Section (the_content()) ----------------- */
.work-article {
  background: var(--st-paper);
  color: var(--st-ink);
  padding-block: clamp(40px, 7vw, 84px) clamp(72px, 11vw, 136px);
}
.work-article__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: start;
}
@media (min-width: 1100px) {
  .work-article__grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

/* WordPress Editor Free-Form Content Styling (.work-prose)
   Automatically styles standard HTML tags from WP Gutenberg / Classic Editor:
   - H1: Main section headings (with orange left bar)
   - H2: Sub-section headings
   - P: Paragraphs
   - Strong / B: Bold emphasis
   - A: Blue clickable links
   - UL / OL: Bulleted & numbered lists
   - Blockquote: Highlight quote box
   - Figure / Img: Image showcase reading Title + Media Caption */
.work-prose {
  font-size: 1.06rem;
  line-height: 1.95;
  color: #252f50;
}
.work-prose > *:first-child {
  margin-top: 0;
}
.work-prose h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.3rem);
  font-weight: 900;
  line-height: 1.28;
  color: var(--st-ink);
  margin: 2.2em 0 .75em;
  padding-left: 16px;
  border-left: 4px solid var(--st-signal);
}
.work-prose h2 {
  font-size: clamp(1.28rem, 2.5vw, 1.6rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--st-ink);
  margin: 1.8em 0 .6em;
}
.work-prose h3 {
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--st-ink);
  margin: 1.5em 0 .5em;
}
.work-prose h4 {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--st-ink);
  margin: 1.35em 0 .45em;
}
.work-prose h5 {
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--st-blue-deep);
  letter-spacing: .02em;
  margin: 1.2em 0 .4em;
}
.work-prose h6 {
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--st-text-mute-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 1.1em 0 .35em;
}
.work-prose p {
  margin-bottom: 1.45em;
}
.work-prose strong,
.work-prose b {
  color: var(--st-ink);
  font-weight: 800;
}
.work-prose em,
.work-prose i {
  font-style: italic;
  color: #1a2542;
}
.work-prose u {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--st-signal);
  text-decoration-thickness: 2px;
}
.work-prose del,
.work-prose s,
.work-prose strike {
  color: var(--st-text-mute-dark);
  text-decoration: line-through;
  opacity: .75;
}
.work-prose mark {
  background: rgba(255, 122, 69, .18);
  color: var(--st-ink);
  font-weight: 700;
  padding: .08em .38em;
  border-radius: 5px;
}
.work-prose small {
  font-size: .86em;
  color: var(--st-text-mute-dark);
}
.work-prose sub,
.work-prose sup {
  font-size: .75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
.work-prose sup { top: -.5em; }
.work-prose sub { bottom: -.25em; }
.work-prose a {
  color: var(--st-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: color .25s ease;
}
.work-prose a:hover {
  color: var(--st-signal);
}
.work-prose ul,
.work-prose ol {
  margin: 1.2em 0 1.6em;
  padding-left: 0;
  display: grid;
  gap: 10px;
}
.work-prose ul ul,
.work-prose ol ol,
.work-prose ul ol,
.work-prose ol ul {
  margin: .55em 0 .25em;
  padding-left: 18px;
  gap: 7px;
}
.work-prose ul li {
  position: relative;
  padding-left: 22px;
}
.work-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--st-signal);
}
.work-prose ul ul li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--st-blue);
}
.work-prose ol {
  counter-reset: wp-ol;
}
.work-prose ol li {
  counter-increment: wp-ol;
  position: relative;
  padding-left: 34px;
}
.work-prose ol li::before {
  content: counter(wp-ol, decimal-leading-zero) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--st-signal);
}
.work-prose blockquote {
  margin: 2em 0;
  padding: clamp(22px, 3.5vw, 32px);
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--st-line-dark);
  border-left: 4px solid var(--st-blue);
  box-shadow: 0 12px 32px rgba(8, 20, 53, .05);
  font-weight: 700;
  color: var(--st-ink);
}
.work-prose blockquote p:last-child {
  margin-bottom: 0;
}
.work-prose blockquote cite,
.work-prose .wp-block-quote cite {
  display: block;
  margin-top: 10px;
  font-size: .88rem;
  font-style: normal;
  font-weight: 700;
  color: var(--st-text-mute-dark);
}
.work-prose hr,
.work-prose .wp-block-separator {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--st-signal) 0%, var(--st-line-dark) 35%, transparent 100%);
  margin: 2.6em 0;
}
.work-prose code,
.work-prose kbd {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .88em;
  font-weight: 700;
  color: var(--st-blue-deep);
  background: rgba(58, 82, 255, .08);
  border: 1px solid rgba(58, 82, 255, .18);
  padding: .15em .45em;
  border-radius: 6px;
}
.work-prose pre,
.work-prose .wp-block-code {
  margin: 1.8em 0;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--st-ink);
  color: var(--st-paper);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .9rem;
  line-height: 1.7;
  overflow-x: auto;
  border: 1px solid rgba(238, 240, 248, .14);
}
.work-prose pre code,
.work-prose .wp-block-code code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-weight: 500;
}
.work-prose table,
.work-prose .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--st-line-dark);
  box-shadow: 0 10px 28px rgba(8, 20, 53, .04);
  font-size: .95rem;
}
.work-prose th,
.work-prose td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--st-line-dark);
}
.work-prose th {
  background: rgba(8, 20, 53, .04);
  color: var(--st-ink);
  font-weight: 800;
}
.work-prose tr:last-child td {
  border-bottom: 0;
}
.work-prose video,
.work-prose iframe {
  max-width: 100%;
  border-radius: 14px;
}

/* Webpage Snapshots / Images uploaded in WordPress Editor:
   Left badge (.work-fig__title) reads Image Title; Right text (.work-fig__caption) reads Media Caption */
.work-prose figure,
.work-prose .wp-block-image {
  margin: 2.4em 0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--st-line-dark);
  box-shadow: 0 20px 50px -12px rgba(8, 20, 53, .12);
}
.work-prose figure img,
.work-prose > p > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.work-prose figure img {
  border-radius: 0;
}
.work-prose figcaption {
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid var(--st-line-dark);
  font-size: .88rem;
  font-weight: 700;
  color: var(--st-text-mute-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.work-fig__title {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(58, 82, 255, .1);
  color: var(--st-blue-deep);
  flex-shrink: 0;
}
.work-fig__caption {
  color: var(--st-text-mute-dark);
  font-weight: 700;
  line-height: 1.5;
}

/* Snapshot Grid inside Prose (2-col comparison or gallery) */
.work-snapshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 2.4em 0;
}
@media (min-width: 768px) {
  .work-snapshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.work-snapshot-grid figure {
  margin: 0;
}

/* Sticky Sidebar Card in Article */
.work-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1100px) {
  .work-aside {
    position: sticky;
    top: calc(var(--st-header-h) + 28px);
  }
}
.work-aside__card {
  background: #ffffff;
  border: 1px solid var(--st-line-dark);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 16px 40px rgba(8, 20, 53, .05);
}
.work-aside__card--dark {
  background: var(--st-ink);
  color: var(--st-paper);
  border-color: rgba(238, 240, 248, .14);
  box-shadow: 0 20px 48px rgba(8, 20, 53, .22);
}
.work-aside__eyebrow {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--st-signal);
  margin-bottom: 10px;
}
.work-aside__title {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 14px;
}
.work-aside__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  font-size: .92rem;
}
.work-aside__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--st-line-dark);
}
.work-aside__list li[hidden],
.work-aside__btn[hidden] {
  display: none !important;
}
.work-aside__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.work-aside__list span {
  color: var(--st-text-mute-dark);
  font-weight: 600;
}
.work-aside__list strong {
  color: var(--st-ink);
  font-weight: 800;
  text-align: right;
}
.work-aside__desc {
  font-size: .92rem;
  line-height: 1.8;
  color: var(--st-text-mute-light);
  margin-bottom: 20px;
}
.work-aside__btn {
  width: 100%;
  justify-content: center;
}
.work-aside__btn .aigence-btn__text {
  width: 100%;
  justify-content: center;
  padding: 14px 22px;
}

/* 16.4 Prev / Next Work Navigation ----------------------------------------- */
.work-pager {
  background: var(--st-paper);
  color: var(--st-ink);
  padding-bottom: clamp(64px, 10vw, 120px);
}
.work-pager__inner {
  border-top: 1px solid var(--st-line-dark);
  padding-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .work-pager__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
.work-pager__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--st-line-dark);
  transition: transform .4s var(--st-ease), border-color .4s var(--st-ease), box-shadow .4s var(--st-ease);
}
.work-pager__card--next {
  text-align: right;
  align-items: flex-end;
}
.work-pager__card:hover {
  transform: translateY(-4px);
  border-color: var(--st-signal);
  box-shadow: 0 18px 40px rgba(8, 20, 53, .08);
}
.work-pager__dir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--st-signal);
  margin-bottom: 4px;
}
.work-pager__dir svg {
  width: 16px;
  height: 16px;
  transition: transform .35s var(--st-ease);
}
.work-pager__card--prev:hover .work-pager__dir svg {
  transform: translateX(-5px);
}
.work-pager__card--next:hover .work-pager__dir svg {
  transform: translateX(5px);
}
.work-pager__name {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 900;
  color: var(--st-ink);
  line-height: 1.25;
}
.work-pager__cat {
  font-size: .95rem;
  font-weight: 700;
  color: var(--st-blue-deep);
}
.work-pager__tags {
  display: flex;
  flex-wrap: wrap;
  font-size: var(--st-fs-small);
  color: var(--st-text-mute-dark);
  line-height: 1.65;
  margin-top: 2px;
}
.work-pager__card--next .work-pager__tags {
  justify-content: flex-end;
}
.work-pager__tags li:not(:last-child)::after {
  content: "／";
  margin: 0 .5em;
  opacity: .55;
}
