@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&family=Noto+Serif+TC:wght@600;700&display=swap');

:root {
  --bg: #f5ede3;
  --paper: #fffaf4;
  --paper-deep: #ead8c5;
  --text: #3f291d;
  --muted: #786154;
  --orange: #f39200;
  --orange-dark: #b85b00;
  --brown: #7a4528;
  --brown-dark: #3a2419;
  --line: rgba(93, 57, 37, 0.16);
  --shadow: 0 24px 70px rgba(76, 43, 25, 0.12);
  --shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 2000;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: white;
  background: var(--brown-dark);
}

.skip-link:focus {
  top: 1rem;
}

.section-shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  left: 50%;
  top: 0.8rem;
  z-index: 100;
  width: min(calc(100% - 1.6rem), var(--shell));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.78);
  box-shadow: 0 12px 36px rgba(64, 35, 19, 0.08);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 244, 0.92);
  box-shadow: 0 14px 42px rgba(64, 35, 19, 0.12);
}

.brand img {
  width: 104px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:not(.nav-cta) {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.35rem;
  height: 1px;
  background: var(--orange);
  transition: right 180ms ease;
}

.site-nav a:not(.nav-cta):hover::after {
  right: 0;
}

.nav-cta {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: white;
  background: var(--brown-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--text);
  background: none;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 13% 18%, rgba(243, 146, 0, 0.19), transparent 27rem),
    linear-gradient(145deg, #fbf4ea 0%, #f1dfcb 100%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(122, 69, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 69, 40, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.hero-content {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
  padding: 8.5rem 0 6rem;
  pointer-events: none;
}

.hero-content > * {
  pointer-events: auto;
}

.hero-kicker,
.case-number,
.section-index {
  margin: 0 0 1rem;
  color: var(--orange-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(3.3rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  max-width: 920px;
  margin-top: 0.12em;
}

.hero-intro {
  max-width: 650px;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--brown-dark);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--brown-dark);
}

.button-ghost {
  color: var(--brown-dark);
  background: rgba(255, 250, 244, 0.48);
  backdrop-filter: blur(8px);
}

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2.2rem;
}

.hero-capabilities span {
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(122, 69, 40, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 244, 0.42);
  font-size: 0.76rem;
  backdrop-filter: blur(8px);
}

.hero-interaction-note {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 244, 0.76);
  font-size: 0.72rem;
  backdrop-filter: blur(10px);
}

.interaction-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(243, 146, 0, 0.4);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(243, 146, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 146, 0, 0); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.7rem;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(var(--orange), transparent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% { transform: scaleY(0.5); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.work-intro,
.case,
.services-section,
.about-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.work-intro-grid,
.services-heading,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.editorial-title {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.intro-copy,
.services-heading > p,
.about-copy {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.95;
}

.intro-copy p {
  margin: 0 0 1rem;
}

.small-note {
  font-size: 0.82rem;
}

.case {
  position: relative;
}

.case[data-theme="warm"] {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--shell)) / 2));
  background: #edddcc;
}

.case[data-theme="paper"] {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--shell)) / 2));
  background: #fff8ef;
}

.case-heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.case-heading h2 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.case-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.2rem 0 2.8rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-meta div {
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--line);
}

.case-meta div:last-child {
  border-right: 0;
}

.case-meta span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--orange-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.case-meta strong {
  font-size: 0.86rem;
  font-weight: 600;
}

.media-button,
.story-media,
.before-after-panel,
.product-image,
.poster-column,
.mosaic-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: none;
  cursor: zoom-in;
}

.media-button img,
.story-media img,
.before-after-panel img,
.product-image img,
.poster-column img,
.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.75,.25,1);
}

.media-button:hover img,
.story-media:hover img,
.before-after-panel:hover img,
.product-image:hover img,
.poster-column:hover img,
.mosaic-card:hover img {
  transform: scale(1.025);
}

.carnival-stage {
  position: relative;
  min-height: 680px;
}

.carnival-banner {
  width: 86%;
  height: 520px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.carnival-banner img {
  object-fit: contain;
  padding: 1.5rem;
  background: var(--paper);
}

.carnival-poster {
  position: absolute;
  right: 1.5rem;
  bottom: 0;
  width: min(31%, 360px);
  height: 480px;
  border: 0.75rem solid var(--paper);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(61, 35, 21, 0.18);
}

.carnival-poster img {
  object-fit: contain;
  background: var(--paper);
}

.media-label,
.panel-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  color: var(--brown-dark);
  background: rgba(255, 250, 244, 0.88);
  font-size: 0.7rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.studio-note {
  max-width: 760px;
  margin: 3rem 0 0 auto;
  padding: 1.3rem 1.5rem;
  border-left: 2px solid var(--orange);
  color: var(--muted);
  background: rgba(255, 250, 244, 0.5);
}

.studio-note span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--orange-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sticky-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-top: 3rem;
}

.sticky-stage {
  position: sticky;
  top: 7.5rem;
  min-height: 660px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.story-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 500ms ease, transform 700ms cubic-bezier(.2,.75,.25,1);
  pointer-events: none;
}

.story-media.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.story-media img {
  object-fit: contain;
  padding: 2rem;
  background: var(--paper);
}

.story-progress {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  display: flex;
  gap: 0.4rem;
  transform: translateX(-50%);
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.88);
}

.story-progress span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(122, 69, 40, 0.22);
  transition: width 200ms ease, background 200ms ease;
}

.story-progress span.is-active {
  width: 1.5rem;
  background: var(--orange);
}

.story-steps {
  padding-bottom: 16vh;
}

.story-step {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.28;
  transition: opacity 300ms ease, transform 300ms ease;
}

.story-step.is-active {
  opacity: 1;
  transform: translateX(0.5rem);
}

.story-step > span {
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.story-step h3 {
  margin: 0.6rem 0 0.8rem;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.2;
}

.story-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.before-after {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 3rem;
}

.before-after-panel {
  min-height: 520px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.before-after-panel img {
  object-fit: contain;
  padding: 2rem;
}

.process-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.process-arrow i {
  position: relative;
  width: 1px;
  height: 9rem;
  background: linear-gradient(var(--orange), var(--brown));
}

.process-arrow i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.2rem;
  width: 0.5rem;
  height: 0.5rem;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid var(--brown);
  border-bottom: 1px solid var(--brown);
}

.product-slider {
  margin-top: 3rem;
}

.product-slider-viewport {
  overflow: hidden;
  border-radius: 28px;
}

.product-slider-track {
  display: flex;
  transition: transform 650ms cubic-bezier(.2,.75,.25,1);
}

.product-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: 600px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.product-image {
  min-height: 600px;
}

.product-image img {
  object-fit: cover;
}

.product-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(243, 146, 0, 0.13), transparent 16rem),
    var(--paper);
}

.product-copy span {
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.product-copy h3 {
  margin: 0.8rem 0 1rem;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2.3rem, 4vw, 4.5rem);
  line-height: 1.12;
}

.product-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.product-slider-controls {
  display: grid;
  grid-template-columns: 3rem auto 3rem 3rem;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.product-slider-controls button {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brown-dark);
  background: var(--paper);
  cursor: pointer;
}

.product-dots {
  display: flex;
  gap: 0.45rem;
}

.product-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  background: rgba(122, 69, 40, 0.22);
  transition: width 180ms ease, border-radius 180ms ease, background 180ms ease;
}

.product-dots button.is-active {
  width: 1.5rem;
  border-radius: 999px;
  background: var(--orange);
}

.information-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.75fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-top: 3rem;
}

.poster-column {
  max-height: 840px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.poster-column img {
  object-fit: contain;
  padding: 1rem;
}

.information-copy {
  padding: 2rem 0;
}

.information-copy h3 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  line-height: 1.2;
}

.information-copy > p:not(.case-number) {
  color: var(--muted);
}

.information-copy ul {
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.information-copy li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.social-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.55fr);
  grid-template-rows: auto auto;
  gap: 1.2rem;
  margin-top: 3rem;
}

.mosaic-card {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.mosaic-card img {
  object-fit: contain;
  padding: 1.5rem;
  background: var(--paper);
}

.mosaic-card span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
}

.mosaic-large {
  grid-row: span 2;
  min-height: 620px;
}

.mosaic-small {
  min-height: 360px;
}

.mosaic-quote {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border-radius: 24px;
  color: #fff8ef;
  background: var(--brown-dark);
}

.mosaic-quote p {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.25;
}

.mosaic-quote span {
  color: rgba(255, 248, 239, 0.65);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.services-heading {
  margin-bottom: 4rem;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 80px minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.service-row > span {
  color: var(--orange-dark);
  font-size: 0.74rem;
  font-weight: 800;
}

.service-row h3 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
}

.service-row p {
  margin: 0;
  color: var(--muted);
}

.lab-section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  color: #fff8ef;
  background:
    radial-gradient(circle at 72% 15%, rgba(243, 146, 0, 0.16), transparent 24rem),
    #2d1c14;
}

.lab-orbit {
  position: absolute;
  right: -9rem;
  top: 5rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(243, 146, 0, 0.28);
  border-radius: 50%;
}

.lab-orbit::before,
.lab-orbit::after {
  content: "";
  position: absolute;
  inset: 4rem;
  border: 1px solid rgba(243, 146, 0, 0.16);
  border-radius: 50%;
}

.lab-orbit::after {
  inset: 9rem;
  background: var(--orange);
  opacity: 0.08;
}

.lab-section .section-index {
  color: #ffb84d;
}

.lab-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 5rem;
  align-items: start;
}

.lab-heading > p {
  color: rgba(255, 248, 239, 0.68);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
}

.lab-card {
  min-height: 430px;
  padding: 1rem;
  border: 1px solid rgba(255, 248, 239, 0.12);
  border-radius: 24px;
  background: rgba(255, 248, 239, 0.055);
  backdrop-filter: blur(12px);
  transition: transform 220ms ease, background 220ms ease;
}

.lab-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 248, 239, 0.09);
}

.lab-card > span {
  color: #ffb84d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lab-card h3 {
  margin: 1.2rem 0 0.6rem;
  font-family: "Noto Serif TC", serif;
  font-size: 1.7rem;
}

.lab-card p {
  color: rgba(255, 248, 239, 0.62);
}

.lab-visual {
  position: relative;
  height: 220px;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 248, 239, 0.06);
}

.visual-object {
  display: grid;
  place-items: center;
}

.visual-object div {
  width: 84px;
  height: 112px;
  border-radius: 42px 42px 26px 26px;
  background: linear-gradient(145deg, #ffb84d, #c56b13);
  box-shadow: 0 24px 36px rgba(0,0,0,0.28);
  animation: lab-float 3.5s ease-in-out infinite;
}

@keyframes lab-float {
  50% { transform: translateY(-12px) rotate(4deg); }
}

.visual-space {
  background:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.visual-space i {
  position: absolute;
  bottom: 0;
  width: 26%;
  background: linear-gradient(#ffb84d, #7a4528);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.visual-space i:nth-child(1) { left: 8%; height: 74%; }
.visual-space i:nth-child(2) { left: 38%; height: 48%; }
.visual-space i:nth-child(3) { right: 8%; height: 86%; }

.visual-story {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.visual-story b {
  width: 22%;
  height: 60%;
  border-radius: 12px;
  background: rgba(255,248,239,0.16);
}

.visual-story b:nth-child(2) {
  transform: translateY(-16px);
  background: var(--orange);
}

.about-grid {
  margin-bottom: 4rem;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.process-timeline article {
  padding: 2rem 1.2rem 0 0;
}

.process-timeline span {
  color: var(--orange-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.process-timeline h3 {
  margin: 0.7rem 0 0.5rem;
  font-family: "Noto Serif TC", serif;
  font-size: 2rem;
}

.process-timeline p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(135deg, #f39200, #b85b00 52%, #7a4528);
}

.contact-glow {
  position: absolute;
  right: -8rem;
  top: -11rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
}

.contact-glow::before,
.contact-glow::after {
  content: "";
  position: absolute;
  inset: 5rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
}

.contact-glow::after {
  inset: 10rem;
}

.contact-inner {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.contact-section .section-index {
  color: rgba(255,255,255,0.72);
}

.contact-section h2 {
  max-width: 980px;
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(3.1rem, 7vw, 7rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.contact-section p:not(.section-index) {
  max-width: 640px;
  color: rgba(255,255,255,0.78);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem 0.9rem 1.4rem;
  border-radius: 999px;
  color: var(--brown-dark);
  background: white;
  font-weight: 800;
  text-decoration: none;
}

.contact-button span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: white;
  background: var(--brown-dark);
  transition: transform 180ms ease;
}

.contact-button:hover span {
  transform: translate(2px, -2px);
}

.contact-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--shell));
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  margin-inline: auto;
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.site-footer p {
  margin: 0.15rem 0;
}

.site-footer a {
  text-decoration: none;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  color: white;
  background: rgba(35, 20, 13, 0.95);
  backdrop-filter: blur(14px);
}

.lightbox-content {
  width: min(100%, 1320px);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  justify-self: center;
  margin: 0;
}

.lightbox-stage {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: auto;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
}

.lightbox-stage img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  opacity: 0;
  transition: opacity 180ms ease;
}

.lightbox-stage img.is-loaded {
  opacity: 1;
}

.lightbox-loading {
  position: absolute;
  color: rgba(255,255,255,0.7);
  font-size: 0.84rem;
}

.lightbox figcaption {
  padding: 0.8rem 0 0;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.lightbox-close {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  font-size: 1.8rem;
}

.lightbox-nav {
  width: 3rem;
  height: 3rem;
  justify-self: center;
  border-radius: 50%;
  font-size: 2rem;
}

.reveal,
.image-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(5px);
  transition:
    opacity 760ms cubic-bezier(.2,.75,.25,1),
    transform 760ms cubic-bezier(.2,.75,.25,1),
    filter 760ms ease;
}

.image-reveal {
  transform: translateY(22px) scale(0.975);
  clip-path: inset(0 0 18% 0 round 24px);
}

.reveal.is-visible,
.image-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0 round 24px);
}

.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,250,244,0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: clamp(3rem, 10vw, 5rem);
  }

  .work-intro-grid,
  .services-heading,
  .about-grid,
  .case-heading,
  .lab-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .case-meta {
    grid-template-columns: 1fr;
  }

  .case-meta div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-meta div:last-child {
    border-bottom: 0;
  }

  .sticky-story {
    grid-template-columns: 1fr;
  }

  .sticky-stage {
    position: sticky;
    top: 6.5rem;
    min-height: 58vh;
  }

  .story-step {
    min-height: 52vh;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .process-arrow {
    flex-direction: row;
    justify-content: center;
  }

  .process-arrow i {
    width: 7rem;
    height: 1px;
  }

  .process-arrow i::after {
    left: auto;
    right: -0.2rem;
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
  }

  .product-slide {
    grid-template-columns: 1fr;
  }

  .product-image {
    min-height: 460px;
  }

  .information-layout {
    grid-template-columns: 1fr 0.75fr 1fr;
  }

  .social-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .mosaic-large {
    grid-row: auto;
  }

  .service-row {
    grid-template-columns: 60px 1fr;
  }

  .service-row p {
    grid-column: 2;
  }

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

  .process-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 0.45rem;
    width: calc(100% - 0.9rem);
  }

  .brand img {
    width: 86px;
    height: 42px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 7rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .hero-intro {
    font-size: 0.94rem;
  }

  .hero-interaction-note {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .scroll-cue {
    display: none;
  }

  .work-intro,
  .case,
  .services-section,
  .about-section {
    padding-top: 5.6rem;
    padding-bottom: 5.6rem;
  }

  .editorial-title {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .case-heading h2 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .carnival-stage {
    min-height: auto;
  }

  .carnival-banner {
    width: 100%;
    height: 340px;
  }

  .carnival-poster {
    position: relative;
    right: auto;
    bottom: auto;
    width: 72%;
    height: 410px;
    margin: -2rem 0 0 auto;
  }

  .sticky-stage {
    min-height: 440px;
  }

  .story-media img {
    padding: 1rem;
  }

  .before-after-panel {
    min-height: 360px;
  }

  .product-slide {
    min-height: 0;
  }

  .product-image {
    min-height: 360px;
  }

  .product-copy {
    padding: 2rem;
  }

  .product-slider-controls {
    grid-template-columns: repeat(4, auto);
    gap: 0.5rem;
  }

  .information-layout {
    grid-template-columns: 1fr;
  }

  .information-copy {
    order: -1;
  }

  .poster-column {
    max-height: none;
  }

  .mosaic-large,
  .mosaic-small {
    min-height: 360px;
  }

  .service-row {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    padding-top: 5.8rem;
    padding-bottom: 5.8rem;
  }

  .contact-section h2 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .site-footer {
    grid-template-columns: 64px 1fr;
  }

  .site-footer > a {
    grid-column: 2;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding: 3.8rem 0.5rem 0.8rem;
  }

  .lightbox-nav {
    position: fixed;
    bottom: 0.8rem;
    z-index: 3;
  }

  .lightbox-prev {
    left: calc(50% - 3.5rem);
  }

  .lightbox-next {
    right: calc(50% - 3.5rem);
  }

  .lightbox figcaption {
    padding-bottom: 4rem;
  }
}

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

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

  .reveal,
  .image-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
}


/* =========================================================
   V15: caption protection + 15% heading scale reduction
   ========================================================= */

/* Pizza case: separate image and caption into two grid rows.
   The image no longer grows over the caption. */
.before-after-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 520px;
  overflow: hidden;
}

.before-after-panel img {
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 2rem;
  object-fit: contain;
  background: var(--paper);
  transform: none !important;
  filter: none;
}

.before-after-panel:hover img {
  transform: none !important;
  filter: saturate(1.025) contrast(1.01);
}

.before-after-panel .panel-tag {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 3;
  grid-row: 2;
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--brown-dark);
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: left;
  backdrop-filter: none;
}

/* Main section headings reduced by approximately 15%. */
.hero h1 {
  font-size: clamp(2.8rem, 5.95vw, 5.95rem);
}

.editorial-title {
  font-size: clamp(2.3rem, 4.25vw, 4.4rem);
}

.case-heading h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.6rem);
}

.story-step h3 {
  font-size: clamp(1.7rem, 2.55vw, 2.72rem);
}

.product-copy h3 {
  font-size: clamp(1.95rem, 3.4vw, 3.82rem);
}

.information-copy h3 {
  font-size: clamp(1.7rem, 3.05vw, 3.23rem);
}

.mosaic-quote p {
  font-size: clamp(1.7rem, 2.55vw, 2.8rem);
}

.service-row h3 {
  font-size: clamp(1.45rem, 2.12vw, 2.21rem);
}

.lab-card h3 {
  font-size: 1.45rem;
}

.process-timeline h3 {
  font-size: 1.7rem;
}

.contact-section h2 {
  font-size: clamp(2.64rem, 5.95vw, 5.95rem);
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: clamp(2.17rem, 10.2vw, 3.4rem);
  }

  .editorial-title {
    font-size: clamp(2.04rem, 10.2vw, 2.98rem);
  }

  .case-heading h2 {
    font-size: clamp(1.79rem, 8.5vw, 2.72rem);
  }

  .story-step h3 {
    font-size: clamp(1.6rem, 7.8vw, 2.35rem);
  }

  .product-copy h3 {
    font-size: clamp(1.85rem, 8.8vw, 3rem);
  }

  .information-copy h3 {
    font-size: clamp(1.7rem, 8.3vw, 2.75rem);
  }

  .contact-section h2 {
    font-size: clamp(2.38rem, 11.05vw, 3.83rem);
  }

  .before-after-panel {
    min-height: 360px;
  }

  .before-after-panel img {
    padding: 1.25rem;
  }
}


/* =========================================================
   V16: intrinsic image sizing + balanced title wrapping
   ========================================================= */

.hero h1,
.editorial-title,
.case-heading h2,
.product-copy h3,
.information-copy h3,
.mosaic-quote p,
.service-row h3,
.contact-section h2 {
  text-wrap: balance;
}

.case-heading h2 {
  max-width: 100%;
  font-size: clamp(1.7rem, 2.85vw, 3.05rem);
  line-height: 1.2;
  letter-spacing: -0.028em;
}

.keep-together {
  display: inline-block;
  white-space: nowrap;
}

.pizza-case-title span {
  display: block;
  white-space: nowrap;
}

.pizza-case-title span + span {
  margin-top: 0.04em;
}

/* Main editorial headings are reduced slightly again to avoid awkward wraps. */
.hero h1 {
  font-size: clamp(2.65rem, 5.5vw, 5.4rem);
}

.editorial-title {
  font-size: clamp(2.15rem, 3.9vw, 3.95rem);
}

.story-step h3 {
  font-size: clamp(1.62rem, 2.38vw, 2.55rem);
}

.product-copy h3 {
  font-size: clamp(1.82rem, 3.1vw, 3.4rem);
}

.information-copy h3 {
  font-size: clamp(1.62rem, 2.8vw, 2.9rem);
}

.mosaic-quote p {
  font-size: clamp(1.62rem, 2.38vw, 2.58rem);
}

.service-row h3 {
  font-size: clamp(1.38rem, 1.95vw, 2.02rem);
}

.contact-section h2 {
  font-size: clamp(2.5rem, 5.5vw, 5.4rem);
}

/* Carnival artwork respects the supplied image resolution.
   The 500px-wide banner thumbnail is no longer enlarged to fill the page. */
.carnival-stage {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(260px, 354px);
  justify-content: space-between;
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-top: 0.5rem;
}

.carnival-banner {
  position: relative;
  width: min(100%, 500px);
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-self: start;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(61, 35, 21, 0.12);
}

.carnival-banner img {
  grid-row: 1;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  padding: 0;
  margin: 0 auto;
  object-fit: contain;
  background: var(--paper);
  transform: none !important;
}

.carnival-banner:hover img {
  transform: none !important;
  filter: saturate(1.02) contrast(1.01);
}

.carnival-banner .media-label {
  position: static;
  grid-row: 2;
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  text-align: left;
  backdrop-filter: none;
}

.carnival-poster {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(100%, 354px);
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  justify-self: end;
  margin-top: 4.5rem;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(61, 35, 21, 0.14);
}

.carnival-poster img {
  grid-row: 1;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  padding: 0;
  margin: 0 auto;
  object-fit: contain;
  background: var(--paper);
}

.carnival-poster .media-label {
  position: static;
  grid-row: 2;
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  text-align: left;
  backdrop-filter: none;
}

/* Product slider: a smaller, consistent image stage.
   Images keep their intrinsic dimensions and are never stretched to fill the column. */
.product-slide {
  grid-template-columns: minmax(360px, 0.82fr) minmax(340px, 1.18fr);
  min-height: 520px;
}

.product-image {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.82), rgba(241,223,204,0.38)),
    var(--paper);
}

.product-image img {
  width: auto;
  height: auto;
  max-width: min(78%, 620px);
  max-height: 390px;
  object-fit: contain;
  transform: none !important;
  box-shadow: 0 12px 34px rgba(70, 40, 24, 0.09);
}

.product-image:hover img {
  transform: none !important;
  filter: saturate(1.025) contrast(1.01);
}

.product-copy {
  padding: clamp(2rem, 4.3vw, 4.3rem);
}

@media (max-width: 980px) {
  .case-heading h2 {
    font-size: clamp(1.65rem, 4.3vw, 2.75rem);
  }

  .carnival-stage {
    min-height: 540px;
    grid-template-columns: minmax(0, 500px) minmax(230px, 320px);
    gap: 1.5rem;
  }

  .carnival-poster {
    width: min(100%, 320px);
    margin-top: 3rem;
  }

  .product-slide {
    grid-template-columns: minmax(320px, 0.9fr) minmax(300px, 1.1fr);
  }
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: clamp(2.05rem, 9.5vw, 3.15rem);
  }

  .editorial-title {
    font-size: clamp(1.92rem, 9.4vw, 2.72rem);
  }

  .case-heading h2 {
    font-size: clamp(1.65rem, 7.8vw, 2.35rem);
    line-height: 1.22;
  }

  .story-step h3 {
    font-size: clamp(1.48rem, 7.2vw, 2.1rem);
  }

  .product-copy h3 {
    font-size: clamp(1.65rem, 7.8vw, 2.55rem);
  }

  .information-copy h3 {
    font-size: clamp(1.52rem, 7.4vw, 2.3rem);
  }

  .contact-section h2 {
    font-size: clamp(2.15rem, 10.2vw, 3.35rem);
  }

  .carnival-stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .carnival-banner {
    width: min(100%, 500px);
  }

  .carnival-poster {
    width: min(76%, 320px);
    margin: 0 0 0 auto;
  }

  .product-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-image {
    min-height: 350px;
    padding: 1.25rem;
  }

  .product-image img {
    max-width: min(82%, 520px);
    max-height: 300px;
  }
}


/* =========================================================
   V17: make the carnival trio read as one grouped section
   ========================================================= */

.case-carnival .carnival-stage {
  min-height: 0;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  margin-bottom: 1rem;
}

.case-carnival .carnival-banner {
  align-self: start;
}

.case-carnival .carnival-poster {
  align-self: start;
  margin-top: 1.75rem;
}

.case-carnival .studio-note {
  margin: 1.1rem 0 0 0;
  max-width: 1000px;
  padding: 1.15rem 1.35rem;
}

@media (max-width: 980px) {
  .case-carnival .carnival-stage {
    gap: 1.1rem;
    margin-bottom: 0.9rem;
  }

  .case-carnival .carnival-poster {
    margin-top: 1.2rem;
  }

  .case-carnival .studio-note {
    max-width: 100%;
    margin-top: 0.95rem;
  }
}

@media (max-width: 700px) {
  .case-carnival .carnival-stage {
    gap: 1rem;
    margin-bottom: 0.75rem;
  }

  .case-carnival .carnival-poster {
    margin-top: 0;
  }

  .case-carnival .studio-note {
    margin-top: 0.85rem;
    padding: 1rem 1.1rem;
  }
}


/* =========================================================
   V18: shared alignment lines, stable button hover,
   and grouped carnival layout
   ========================================================= */

/* Product slider copy aligns with the upper case-description column. */
.case-products .product-slide {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  column-gap: clamp(2rem, 6vw, 6rem);
}

.case-products .product-copy {
  justify-content: flex-start;
  padding:
    clamp(3.2rem, 7vw, 6.5rem)
    clamp(2rem, 4vw, 4rem)
    clamp(2.4rem, 5vw, 5rem)
    0;
}

/* Hero buttons remain the same size on hover. */
.hero-actions {
  padding-block: 2px;
}

.hero-actions .button,
.hero-actions .button:hover,
.hero-actions .button:focus-visible {
  transform: none;
}

.hero-actions .button {
  box-sizing: border-box;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.hero-actions .button-primary:hover,
.hero-actions .button-primary:focus-visible {
  background: #4a2d1f;
  box-shadow: 0 8px 22px rgba(58, 36, 25, 0.16);
}

.hero-actions .button-ghost:hover,
.hero-actions .button-ghost:focus-visible {
  border-color: var(--brown-dark);
  background: rgba(243, 146, 0, 0.08);
  box-shadow:
    inset 0 0 0 1px var(--brown-dark),
    0 7px 20px rgba(58, 36, 25, 0.08);
}

/* Carnival becomes one grouped composition:
   left column = banner + studio note
   right column = A3 poster spanning both rows. */
.case-carnival .carnival-stage {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(260px, 354px);
  grid-template-areas:
    "banner poster"
    "note   poster";
  justify-content: space-between;
  align-items: start;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: 0.9rem;
  min-height: 0;
  margin-bottom: 0;
  padding-top: 0.5rem;
}

.case-carnival .carnival-banner {
  grid-area: banner;
  width: min(100%, 500px);
  align-self: start;
}

.case-carnival .carnival-poster {
  grid-area: poster;
  width: min(100%, 354px);
  justify-self: end;
  align-self: start;
  margin-top: 1.75rem;
}

.case-carnival .studio-note {
  grid-area: note;
  width: 100%;
  max-width: 500px;
  margin: 0;
  padding: 1.05rem 1.2rem;
  align-self: start;
}

.case-carnival .studio-note span {
  margin-bottom: 0.3rem;
}

@media (max-width: 980px) {
  .case-products .product-slide {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    column-gap: 2rem;
  }

  .case-products .product-copy {
    padding: 2.8rem 2rem 2.8rem 0;
  }

  .case-carnival .carnival-stage {
    grid-template-columns: minmax(0, 500px) minmax(230px, 320px);
    column-gap: 1.4rem;
    row-gap: 0.8rem;
  }

  .case-carnival .carnival-poster {
    width: min(100%, 320px);
    margin-top: 1.1rem;
  }
}

@media (max-width: 700px) {
  .case-products .product-slide {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .case-products .product-copy {
    padding: 2rem;
  }

  .case-carnival .carnival-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "banner"
      "note"
      "poster";
    row-gap: 1rem;
  }

  .case-carnival .carnival-banner {
    width: min(100%, 500px);
  }

  .case-carnival .studio-note {
    max-width: min(100%, 500px);
  }

  .case-carnival .carnival-poster {
    width: min(76%, 320px);
    margin: 0 0 0 auto;
  }
}


/* =========================================================
   V19: centered carnival composition + case label safety +
   story order refinement + lightbox arrow alignment
   ========================================================= */

/* 1. Center the three-card carnival composition as one group */
.case-carnival .carnival-stage {
  width: min(100%, 940px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 500px) minmax(260px, 354px);
  justify-content: center;
  column-gap: clamp(1.25rem, 3vw, 2.2rem);
  row-gap: 1rem;
}

.case-carnival .carnival-banner,
.case-carnival .studio-note,
.case-carnival .carnival-poster {
  justify-self: center;
}

.case-carnival .studio-note {
  max-width: 500px;
}

@media (max-width: 980px) {
  .case-carnival .carnival-stage {
    width: min(100%, 860px);
    grid-template-columns: minmax(0, 470px) minmax(220px, 300px);
    column-gap: 1.2rem;
  }

  .case-carnival .carnival-poster {
    width: min(100%, 300px);
  }
}

@media (max-width: 700px) {
  .case-carnival .carnival-stage {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

/* 2. Protect all Case labels from left-edge clipping */
.case-number {
  display: inline-block;
  padding-left: 0.12em;
  line-height: 1.2;
}

.case-heading > div {
  overflow: visible;
}

/* 3. Story section: keep image / text cards aligned after order change */
.case-game .story-stage,
.case-game .story-steps,
.case-game .sticky-stage {
  overflow: visible;
}

/* 4. Lightbox nav arrows centered inside the circular buttons */
.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.lightbox-close {
  font-size: 1.7rem;
}

.lightbox-nav {
  font-size: 1.7rem;
}

.lightbox-nav span,
.lightbox-close span {
  display: block;
  line-height: 1;
}


/* =========================================================
   V22: studio name in the top navigation brand
   ========================================================= */

.site-header .brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: var(--brown-dark);
  text-decoration: none;
}

.site-header .brand-name {
  display: flex;
  align-items: baseline;
  gap: 0.32em;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.site-header .brand-name span:last-child {
  font-weight: 600;
  color: var(--brown);
}

@media (max-width: 980px) {
  .site-header .brand {
    gap: 0.58rem;
  }

  .site-header .brand-name {
    font-size: 0.8rem;
  }
}

@media (max-width: 700px) {
  .site-header .brand {
    gap: 0.45rem;
  }

  .site-header .brand img {
    width: 54px;
    height: 40px;
  }

  .site-header .brand-name {
    display: block;
    max-width: 112px;
    white-space: normal;
    font-size: 0.69rem;
    line-height: 1.2;
  }

  .site-header .brand-name span {
    display: block;
  }
}

@media (max-width: 390px) {
  .site-header .brand-name {
    max-width: 98px;
    font-size: 0.63rem;
  }
}


/* =========================================================
   V23: prevent text / decoration clipping near rounded edges
   ========================================================= */

/* General safe area for text blocks that looked visually clipped */
.process-timeline,
.process-timeline article,
.contact-inner,
.contact-section .section-index,
.contact-section p:not(.section-index),
.studio-note,
.studio-note span {
  overflow: visible;
}

/* Process timeline: add a little left breathing room so the first
   strokes of Chinese text and small numeric labels are not visually cut */
.process-timeline article {
  padding-right: 1rem;
  padding-left: 0.42rem;
}

.process-timeline article:first-child {
  padding-left: 0.58rem;
}

.process-timeline span,
.process-timeline h3,
.process-timeline p {
  padding-inline-start: 0.04em;
}

/* Contact intro copy: add a tiny text-safe inset on the left */
.contact-section .section-index,
.contact-section p:not(.section-index) {
  padding-inline-start: 0.05em;
}

/* Studio note: turn the border into an inset decorative line so it no longer
   touches the rounded corners and feels cropped */
.studio-note {
  position: relative;
  padding: 1.3rem 1.5rem 1.3rem 2rem;
  border-left: 0;
  border-radius: 28px;
  overflow: visible;
}

.studio-note::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 2px;
  border-radius: 999px;
  background: var(--orange);
}

.studio-note span,
.studio-note {
  padding-inline-start: 0.03em;
}

/* Keep the carnival note version aligned with its custom padding */
.case-carnival .studio-note {
  padding: 1.05rem 1.2rem 1.05rem 1.8rem;
  border-radius: 28px;
}

.case-carnival .studio-note::before {
  left: 0.82rem;
  top: 1rem;
  bottom: 1rem;
}

@media (max-width: 700px) {
  .process-timeline article {
    padding-left: 0.5rem;
    padding-right: 0.35rem;
  }

  .studio-note {
    padding: 1.15rem 1.05rem 1.15rem 1.7rem;
  }

  .studio-note::before {
    left: 0.82rem;
  }

  .case-carnival .studio-note {
    padding: 1rem 1rem 1rem 1.65rem;
  }
}


/* =========================================================
   V24: contact copy safe area + more refined button hover
   ========================================================= */

/* Contact intro paragraph:
   add top breathing room so the first line does not appear clipped */
.contact-section p:not(.section-index) {
  display: block;
  line-height: 1.88;
  padding-top: 0.18em;
  padding-bottom: 0.08em;
  text-rendering: geometricPrecision;
}

/* Hero buttons:
   restore a very subtle scale / lift motion with a softer shadow */
.hero-actions {
  padding-block: 4px;
}

.hero-actions .button {
  transform: translateY(0) scale(1);
  box-shadow: 0 0 0 rgba(58, 36, 25, 0);
  will-change: transform, box-shadow;
  transition:
    transform 200ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 200ms ease;
}

.hero-actions .button:hover,
.hero-actions .button:focus-visible {
  transform: translateY(-2px) scale(1.02);
}

.hero-actions .button-primary:hover,
.hero-actions .button-primary:focus-visible {
  background: #4a2d1f;
  box-shadow: 0 12px 24px rgba(58, 36, 25, 0.18);
}

.hero-actions .button-ghost:hover,
.hero-actions .button-ghost:focus-visible {
  border-color: var(--brown-dark);
  background: rgba(243, 146, 0, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(58, 36, 25, 0.08),
    0 10px 22px rgba(58, 36, 25, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .button,
  .hero-actions .button:hover,
  .hero-actions .button:focus-visible {
    transform: none;
  }
}


/* =========================================================
   V25: selected-work intro refinement + social title / quote wrap
   ========================================================= */

/* Selected Work intro:
   add a light editorial side panel to reduce excessive empty space */
.work-intro-grid {
  align-items: start;
}

.work-intro-sidepanel {
  margin-top: 1.1rem;
  padding: 1.25rem 1.35rem 1.2rem;
  border: 1px solid rgba(93, 61, 39, 0.10);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.56), rgba(255, 250, 244, 0.22));
  box-shadow: 0 14px 32px rgba(93, 61, 39, 0.05);
}

.sidepanel-label {
  margin: 0 0 0.75rem;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidepanel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.sidepanel-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.42rem 0.76rem;
  border: 1px solid rgba(93, 61, 39, 0.12);
  border-radius: 999px;
  color: var(--brown-dark);
  background: rgba(255, 250, 244, 0.85);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.sidepanel-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Social case title:
   force line 1 = 社交媒體及宣傳, line 2 = 設計精選 */
.case-social .case-heading h2.social-case-title {
  font-size: clamp(1.58rem, 2.55vw, 2.72rem);
  line-height: 1.14;
  letter-spacing: -0.026em;
}

.social-case-title span {
  display: block;
  white-space: nowrap;
}

.social-case-title span + span {
  margin-top: 0.06em;
}

/* Quote card:
   slightly smaller display size and block lines so the final character
   does not fall onto an isolated line */
.case-social .mosaic-quote p {
  font-size: clamp(1.72rem, 2.45vw, 2.86rem);
  line-height: 1.2;
}

.case-social .mosaic-quote p span {
  display: block;
}

.case-social .mosaic-quote p span + span {
  margin-top: 0.08em;
}

@media (max-width: 1100px) {
  .work-intro-sidepanel {
    margin-top: 0.8rem;
  }
}

@media (max-width: 900px) {
  .work-intro-sidepanel {
    margin-top: 0;
  }

  .sidepanel-note {
    font-size: 0.88rem;
  }
}

@media (max-width: 700px) {
  .work-intro-sidepanel {
    padding: 1.05rem 1rem;
    border-radius: 22px;
  }

  .sidepanel-chips span {
    font-size: 0.74rem;
  }

  .case-social .case-heading h2.social-case-title {
    font-size: clamp(1.5rem, 8vw, 2.1rem);
  }

  .case-social .mosaic-quote p {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }
}


/* =========================================================
   V26: intro section as opening gradient + contact copy wrap refinement
   ========================================================= */

/* Contact paragraph:
   slightly wider and a touch smaller for cleaner wrapping */
.contact-section p:not(.section-index) {
  max-width: 760px;
  font-size: 0.98rem;
  line-height: 1.82;
  text-wrap: pretty;
}

/* Selected Work intro:
   turn it into a shorter opening block that transitions into Case 01 */
.work-intro {
  position: relative;
  padding-top: 6.25rem;
  padding-bottom: 3.75rem;
  background:
    linear-gradient(180deg, #f4ecdf 0%, #f2e8dc 42%, #efe2d3 78%, #eddcc9 100%);
}

.work-intro-grid {
  row-gap: 1.05rem;
  align-items: start;
}

.work-intro .editorial-title {
  max-width: 8.2em;
}

.work-intro .intro-copy {
  max-width: 40rem;
}

.work-intro-sidepanel {
  grid-column: 1 / -1;
  max-width: 56rem;
  margin-top: 0.15rem;
  padding: 1rem 1.2rem 1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.70), rgba(255, 248, 240, 0.46));
  box-shadow: 0 10px 24px rgba(93, 61, 39, 0.045);
}

.sidepanel-label {
  margin-bottom: 0.62rem;
}

.sidepanel-chips {
  margin-bottom: 0.72rem;
}

.sidepanel-note {
  font-size: 0.88rem;
  line-height: 1.72;
}

/* Blend into Case 01 more clearly */
.case-carnival {
  margin-top: 0;
  padding-top: 4.65rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .work-intro .editorial-title {
    max-width: 9.2em;
  }

  .work-intro-sidepanel {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .work-intro {
    padding-top: 5.4rem;
    padding-bottom: 3.25rem;
  }

  .case-carnival {
    padding-top: 4rem;
  }
}

@media (max-width: 700px) {
  .contact-section p:not(.section-index) {
    max-width: 100%;
    font-size: 0.96rem;
  }

  .work-intro {
    padding-top: 4.6rem;
    padding-bottom: 2.8rem;
  }

  .work-intro-sidepanel {
    padding: 0.95rem 1rem;
  }
}


/* =========================================================
   V27: full-width Selected Work opening gradient
   ========================================================= */

/* Selected Work becomes a full-width opening section */
.work-intro {
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      #d8c0a8 0%,
      #e4cfbb 20%,
      #ead9c9 44%,
      #f0e5d8 72%,
      var(--bg) 100%
    );
}

.work-intro > .section-shell {
  position: relative;
}

/* remove the previous feeling of a boxed center-only background */
.work-intro .work-intro-sidepanel {
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.84), rgba(255, 248, 240, 0.62));
  box-shadow: 0 10px 24px rgba(93, 61, 39, 0.04);
}

/* tighten the transition into Case 01 */
.case-carnival {
  padding-top: 3.9rem;
}

@media (max-width: 900px) {
  .case-carnival {
    padding-top: 3.5rem;
  }
}

@media (max-width: 700px) {
  .work-intro {
    background:
      linear-gradient(
        180deg,
        #d6bea7 0%,
        #e3cfbc 22%,
        #ebddcf 52%,
        #f2e8dc 78%,
        var(--bg) 100%
      );
  }

  .case-carnival {
    padding-top: 3.1rem;
  }
}


/* =========================================================
   V28: stronger Selected Work block + alternating case backgrounds
   ========================================================= */

/* 01 / Selected Work becomes a clear orange opening block */
.work-intro {
  position: relative;
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--shell)) / 2));
  color: #fffaf4;
  overflow: hidden;
  background:
    linear-gradient(135deg, #f39200 0%, #cc6f00 52%, #8a4b1c 100%);
}

.work-intro::before {
  content: "";
  position: absolute;
  right: -7rem;
  top: -8rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(255, 250, 244, 0.14);
  border-radius: 50%;
}

.work-intro::after {
  content: "";
  position: absolute;
  right: 4rem;
  top: 2rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(255, 250, 244, 0.08);
  border-radius: 50%;
}

.work-intro > .section-shell {
  position: relative;
  z-index: 1;
}

.work-intro .section-index,
.work-intro .intro-copy,
.work-intro .small-note {
  color: rgba(255, 250, 244, 0.82);
}

.work-intro .editorial-title {
  color: #fffdf9;
}

.work-intro .work-intro-sidepanel {
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(255, 247, 239, 0.92));
  box-shadow: 0 18px 42px rgba(79, 39, 16, 0.12);
}

.work-intro .sidepanel-label {
  color: var(--orange-dark);
}

.work-intro .sidepanel-chips span {
  background: rgba(255, 250, 244, 0.96);
  box-shadow: inset 0 0 0 1px rgba(122, 69, 40, 0.10);
}

.work-intro .sidepanel-note {
  color: var(--muted);
}

.work-intro .intro-copy p:first-child {
  max-width: 39ch;
}

/* Give each later case section a clear background separation */
.case-pizza,
.case-products,
.case-information,
.case-social {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--shell)) / 2));
}

.case-pizza {
  background: linear-gradient(180deg, #f3eadf 0%, #ede0d1 100%);
}

.case-products {
  background: linear-gradient(180deg, #fbf4eb 0%, #f4eadf 100%);
}

.case-information {
  background: linear-gradient(180deg, #fff9f0 0%, #f7efe4 100%);
}

.case-social {
  background: linear-gradient(180deg, #efe3d6 0%, #e8dacb 100%);
}

/* Extra readability protection for text blocks that previously looked clipped */
.case-heading > p,
.services-heading > p,
.lab-heading > p,
.about-copy p,
.contact-section p:not(.section-index) {
  text-wrap: pretty;
  line-height: 1.9;
}

.services-heading > p,
.lab-heading > p,
.contact-section p:not(.section-index) {
  padding-block: 0.08em;
}

.services-heading > p {
  max-width: 38ch;
}

.lab-heading > p {
  max-width: 38ch;
}

.contact-section p:not(.section-index) {
  max-width: 34ch;
}

.contact-section .contact-inner {
  overflow: visible;
}

/* Tighter visual transition into Case 01, but keep it distinct */
.case-carnival {
  padding-top: 4.1rem;
}

@media (max-width: 900px) {
  .case-pizza,
  .case-products,
  .case-information,
  .case-social,
  .work-intro {
    padding-inline: 1rem;
  }

  .case-carnival {
    padding-top: 3.6rem;
  }
}

@media (max-width: 700px) {
  .work-intro {
    background:
      linear-gradient(135deg, #f08d00 0%, #c76800 58%, #87491b 100%);
  }

  .work-intro::before,
  .work-intro::after {
    opacity: 0.55;
  }

  .case-carnival {
    padding-top: 3.2rem;
  }
}


/* =========================================================
   V29: Case 01 visual effects upgrade
   ========================================================= */

.case-carnival {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 36px;
  padding: clamp(2rem, 3.5vw, 3rem);
  background:
    radial-gradient(circle at 12% 14%, rgba(243, 146, 0, 0.18), transparent 20rem),
    radial-gradient(circle at 86% 32%, rgba(122, 69, 40, 0.08), transparent 18rem),
    linear-gradient(180deg, #f8efe4 0%, #f4e8db 58%, #efe1d2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 18px 42px rgba(88, 55, 32, 0.05);
}

.case-carnival::before,
.case-carnival::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.case-carnival::before {
  right: -4.5rem;
  top: 2.2rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 36px rgba(255, 255, 255, 0.08),
    0 0 0 72px rgba(255, 255, 255, 0.04);
  opacity: 0.75;
}

.case-carnival::after {
  left: 2rem;
  bottom: 1.5rem;
  width: 14rem;
  height: 14rem;
  background:
    radial-gradient(circle, rgba(243, 146, 0, 0.14) 0%, rgba(243, 146, 0, 0.02) 58%, transparent 72%);
  filter: blur(10px);
}

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

.case-carnival .case-meta {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 251, 246, 0.52);
  border: 1px solid rgba(122, 69, 40, 0.09);
  box-shadow: 0 8px 18px rgba(88, 55, 32, 0.04);
  backdrop-filter: blur(6px);
}

.case-carnival .case-meta div {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
}

.case-carnival .carnival-stage {
  position: relative;
  padding-top: 0.75rem;
}

.case-carnival .carnival-stage::before {
  content: "";
  position: absolute;
  left: clamp(4.5rem, 10vw, 7.5rem);
  top: 2rem;
  width: clamp(9rem, 16vw, 12rem);
  height: clamp(10rem, 16vw, 13rem);
  border-top: 1px dashed rgba(243, 146, 0, 0.45);
  border-left: 1px dashed rgba(243, 146, 0, 0.45);
  border-radius: 28px 0 0 0;
  opacity: 0.95;
  pointer-events: none;
}

.case-carnival .carnival-banner,
.case-carnival .carnival-poster,
.case-carnival .studio-note {
  transition:
    transform 320ms ease,
    box-shadow 320ms ease,
    border-color 320ms ease,
    background-color 320ms ease;
}

.case-carnival .carnival-banner,
.case-carnival .carnival-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 14px 30px rgba(88, 55, 32, 0.09),
    0 3px 10px rgba(88, 55, 32, 0.06);
}

.case-carnival .carnival-banner {
  transform: rotate(-1.2deg);
}

.case-carnival .carnival-poster {
  transform: rotate(1.35deg);
}

.case-carnival .carnival-banner::before,
.case-carnival .carnival-poster::before {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brown-dark);
  background: rgba(255, 250, 244, 0.9);
  box-shadow: 0 4px 10px rgba(88, 55, 32, 0.08);
  pointer-events: none;
}

.case-carnival .carnival-banner::before {
  content: "遠距離主視覺";
}

.case-carnival .carnival-poster::before {
  content: "近距離閱讀";
}

.case-carnival .carnival-banner:hover,
.case-carnival .carnival-poster:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow:
    0 20px 42px rgba(88, 55, 32, 0.14),
    0 6px 18px rgba(88, 55, 32, 0.10);
}

.case-carnival .studio-note {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(255, 248, 241, 0.88));
  border: 1px solid rgba(243, 146, 0, 0.15);
  box-shadow: 0 12px 24px rgba(88, 55, 32, 0.06);
}

.case-carnival .studio-note:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(88, 55, 32, 0.08);
}

.case-carnival .studio-note span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.case-carnival .studio-note span::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(243, 146, 0, 0.12);
}

@media (max-width: 980px) {
  .case-carnival {
    padding: 1.65rem;
    border-radius: 30px;
  }

  .case-carnival::before {
    right: -5rem;
    top: 2.6rem;
    width: 13rem;
    height: 13rem;
  }

  .case-carnival .carnival-stage::before {
    left: 3.2rem;
    width: 8.5rem;
    height: 9.5rem;
  }
}

@media (max-width: 700px) {
  .case-carnival {
    padding: 1.2rem;
    border-radius: 24px;
  }

  .case-carnival::before {
    display: none;
  }

  .case-carnival::after {
    left: auto;
    right: 0.5rem;
    bottom: 0.5rem;
    width: 10rem;
    height: 10rem;
  }

  .case-carnival .carnival-stage::before {
    display: none;
  }

  .case-carnival .carnival-banner,
  .case-carnival .carnival-poster {
    transform: none;
  }

  .case-carnival .carnival-banner::before,
  .case-carnival .carnival-poster::before {
    left: 0.8rem;
    top: 0.8rem;
  }
}


/* =========================================================
   V30: Citrus Design Garden Three.js Hero
   ========================================================= */

.hero {
  cursor: ew-resize;
  background:
    radial-gradient(circle at 79% 38%, rgba(255, 244, 194, 0.44), transparent 26rem),
    radial-gradient(circle at 13% 18%, rgba(243, 146, 0, 0.13), transparent 27rem),
    linear-gradient(145deg, #fffaf2 0%, #f6eadc 100%);
}

#hero-canvas {
  cursor: ew-resize;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -3rem;
  top: 5.7rem;
  width: min(46rem, 58vw);
  height: calc(100% - 8rem);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 250, 242, 0.86), rgba(255, 250, 242, 0.54) 54%, transparent 73%);
  pointer-events: none;
}

.hero-interaction-note {
  border: 1px solid rgba(122, 69, 40, 0.10);
  background: rgba(255, 250, 244, 0.78);
  box-shadow: 0 8px 20px rgba(77, 45, 28, 0.06);
  backdrop-filter: blur(8px);
}

@media (max-width: 980px) {
  .hero-content::after {
    width: 72vw;
  }
}

@media (max-width: 700px) {
  .hero {
    cursor: default;
  }

  #hero-canvas {
    cursor: default;
  }

  .hero-content::after {
    left: -2rem;
    top: 4.8rem;
    width: calc(100% + 4rem);
    height: 68%;
    background:
      linear-gradient(
        180deg,
        rgba(255, 250, 242, 0.96),
        rgba(255, 250, 242, 0.82) 74%,
        transparent
      );
  }

  .hero-interaction-note {
    display: none;
  }
}


/* =========================================================
   V31: true procedural 3D Citrus Garden Hero
   ========================================================= */

.hero-backdrop {
  opacity: 0.34;
  background:
    linear-gradient(90deg, rgba(255,250,242,0.98) 0%, rgba(255,250,242,0.88) 45%, rgba(255,250,242,0.2) 68%, transparent 100%),
    url("../images/hero/citrus-design-garden.webp") right 42% center / min(59vw, 980px) auto no-repeat;
  transition: opacity 420ms ease;
}

.hero.three-ready .hero-backdrop {
  opacity: 0;
}

#hero-canvas {
  opacity: 1;
  filter: saturate(1.06) contrast(1.02);
}

.hero {
  overflow: hidden;
  cursor: ew-resize;
}

.hero-content {
  pointer-events: none;
}

.hero-content a,
.hero-content button,
.hero-capabilities {
  pointer-events: auto;
}

@media (max-width: 980px) {
  .hero-backdrop {
    background-size: min(72vw, 760px) auto;
  }
}

@media (max-width: 700px) {
  .hero {
    cursor: default;
  }

  .hero-backdrop {
    opacity: 0.16;
    background:
      linear-gradient(180deg, rgba(255,250,242,0.98) 0%, rgba(255,250,242,0.9) 62%, rgba(255,250,242,0.32) 100%),
      url("../images/hero/citrus-design-garden.webp") center bottom / 118% auto no-repeat;
  }

  .hero.three-ready .hero-backdrop {
    opacity: 0.06;
  }
}


/* =========================================================
   V33: Static hero image fallback for immediate launch
   ========================================================= */

.hero {
  cursor: default;
}

.hero-backdrop-static {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(255,250,242,0.98) 0%, rgba(255,250,242,0.9) 44%, rgba(255,250,242,0.28) 68%, transparent 100%),
    url("../images/hero/citrus-design-garden.webp") right 38% center / min(48vw, 700px) auto no-repeat;
}

.hero-content {
  pointer-events: none;
}

.hero-content a,
.hero-content button,
.hero-capabilities {
  pointer-events: auto;
}

@media (max-width: 1180px) {
  .hero-backdrop-static {
    background-size: min(52vw, 620px) auto;
    background-position: right 32% center;
  }
}

@media (max-width: 980px) {
  .hero-backdrop-static {
    background:
      linear-gradient(180deg, rgba(255,250,242,0.98) 0%, rgba(255,250,242,0.92) 58%, rgba(255,250,242,0.48) 100%),
      url("../images/hero/citrus-design-garden.webp") center bottom / min(72vw, 620px) auto no-repeat;
  }
}

@media (max-width: 700px) {
  .hero-backdrop-static {
    background:
      linear-gradient(180deg, rgba(255,250,242,0.985) 0%, rgba(255,250,242,0.94) 56%, rgba(255,250,242,0.68) 100%),
      url("../images/hero/citrus-design-garden.webp") center calc(100% - 0.75rem) / 102% auto no-repeat;
  }
}


/* =========================================================
   V34: Static hero image position correction only
   Keep the complete V33 website intact. No section redesign.
   ========================================================= */

/* Remove the old V30 soft white blob that was washing out the image. */
.hero-content::after {
  display: none;
}

.hero-backdrop-static {
  opacity: 1;
  background-image: url("../images/hero/citrus-design-garden.webp");
  background-repeat: no-repeat;
  background-size: clamp(760px, 60vw, 980px);
  background-position: right -1.5vw center;
}

/* A narrow text-to-image fade, instead of covering most of the artwork. */
.hero-backdrop-static::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 250, 242, 1) 0%,
    rgba(255, 250, 242, 0.98) 31%,
    rgba(255, 250, 242, 0.84) 39%,
    rgba(255, 250, 242, 0.44) 47%,
    rgba(255, 250, 242, 0.12) 55%,
    rgba(255, 250, 242, 0) 63%
  );
}

@media (max-width: 1180px) {
  .hero-backdrop-static {
    background-size: clamp(650px, 66vw, 790px);
    background-position: right -5vw center;
  }

  .hero-backdrop-static::after {
    background: linear-gradient(
      90deg,
      rgba(255, 250, 242, 1) 0%,
      rgba(255, 250, 242, 0.98) 34%,
      rgba(255, 250, 242, 0.78) 43%,
      rgba(255, 250, 242, 0.30) 52%,
      rgba(255, 250, 242, 0) 64%
    );
  }
}

@media (max-width: 980px) {
  .hero-backdrop-static {
    background-image: url("../images/hero/citrus-design-garden.webp");
    background-repeat: no-repeat;
    background-size: min(82vw, 720px);
    background-position: right -10vw bottom 1.5rem;
  }

  .hero-backdrop-static::after {
    background: linear-gradient(
      180deg,
      rgba(255, 250, 242, 1) 0%,
      rgba(255, 250, 242, 0.97) 48%,
      rgba(255, 250, 242, 0.66) 64%,
      rgba(255, 250, 242, 0.18) 80%,
      rgba(255, 250, 242, 0) 100%
    );
  }
}

@media (max-width: 700px) {
  .hero-backdrop-static {
    background-image: url("../images/hero/citrus-design-garden.webp");
    background-repeat: no-repeat;
    background-size: 112vw auto;
    background-position: center bottom 0.25rem;
  }

  .hero-backdrop-static::after {
    background: linear-gradient(
      180deg,
      rgba(255, 250, 242, 1) 0%,
      rgba(255, 250, 242, 0.99) 54%,
      rgba(255, 250, 242, 0.82) 68%,
      rgba(255, 250, 242, 0.35) 84%,
      rgba(255, 250, 242, 0.05) 100%
    );
  }
}


/* =========================================================
   V36/V37: line-break fixes + section separation polish
   ========================================================= */

.services-heading > p {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.about-section {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--shell)) / 2));
  background: linear-gradient(180deg, #f2e8de 0%, #ebdfd2 100%);
}

.about-section .editorial-title {
  padding-inline-start: 0.06em;
}

.about-section .about-grid,
.about-section .about-grid > div,
.about-section .about-copy,
.about-section .process-timeline,
.about-section .process-timeline article {
  overflow: visible;
}

@media (max-width: 980px) {
  .about-section {
    padding-inline: 1rem;
  }
}


/* =========================================================
   V38: reliable email-only contact CTA
   Avoid mailto handler ambiguity by copying the address.
   ========================================================= */

.contact-email-wrap {
  margin-top: 1.5rem;
}

.contact-copy-button {
  margin-top: 0;
  border: 0;
  cursor: pointer;
}

.contact-email-address {
  display: block;
  max-width: 100%;
  margin-top: 0.95rem;
  padding: 0;
  border: 0;
  color: rgba(255,255,255,0.92);
  background: transparent;
  font: inherit;
  font-size: clamp(0.88rem, 1.25vw, 1rem);
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.34);
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.contact-email-address:hover {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.78);
}

.contact-copy-status {
  min-height: 1.7em;
  margin: 0.55rem 0 0;
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.82rem;
}

.contact-copy-button.is-copied span {
  transform: scale(0.92);
}

@media (max-width: 700px) {
  .contact-copy-button {
    gap: 1.25rem;
  }

  .contact-email-address {
    font-size: 0.82rem;
  }
}


/* =========================================================
   V39: text-wrap and clipping protection refinements
   ========================================================= */

.case-heading > p,
.story-step p,
.services-heading > p,
.service-row p,
.about-copy p,
.contact-section p:not(.section-index) {
  padding-inline-start: 0.04em;
  padding-block: 0.08em;
  overflow: visible;
}

.story-step p,
.case-heading > p,
.services-heading > p,
.contact-section p:not(.section-index) {
  text-wrap: pretty;
}

.studio-note,
.case-carnival .studio-note {
  border-radius: 0 !important;
  overflow: visible !important;
}


/* =========================================================
   V40: deployment-safe visibility fallback
   The launch version must remain fully visible even if JS,
   IntersectionObserver, or reveal initialization fails.
   ========================================================= */

.reveal,
.image-reveal,
.reveal.is-visible,
.image-reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
  transition: none !important;
}

.hero-backdrop-static {
  z-index: 0 !important;
}

.hero-content {
  position: relative;
  z-index: 2 !important;
}

.scroll-cue {
  z-index: 3;
}


/* =========================================================
   V41: restore scroll reveal with progressive enhancement
   Default = visible. Animation only activates after JS observer is ready.
   ========================================================= */

.reveal,
.image-reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
  transition: none !important;
}

html.reveal-ready .reveal,
html.reveal-ready .image-reveal {
  transition:
    opacity 760ms cubic-bezier(.2,.75,.25,1) !important,
    transform 760ms cubic-bezier(.2,.75,.25,1) !important,
    filter 760ms ease !important;
}

html.reveal-ready .reveal:not(.is-visible) {
  opacity: 0 !important;
  transform: translateY(28px) !important;
  filter: blur(5px) !important;
}

html.reveal-ready .image-reveal:not(.is-visible) {
  opacity: 0 !important;
  transform: translateY(22px) scale(0.975) !important;
  filter: blur(5px) !important;
  clip-path: inset(0 0 18% 0 round 24px) !important;
}

html.reveal-ready .reveal.is-visible,
html.reveal-ready .image-reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

html.reveal-ready .image-reveal.is-visible {
  clip-path: inset(0 0 0 0 round 24px) !important;
}

html.reveal-ready .reveal-delay-1 { transition-delay: 90ms !important; }
html.reveal-ready .reveal-delay-2 { transition-delay: 180ms !important; }
html.reveal-ready .reveal-delay-3 { transition-delay: 270ms !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .image-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}


/* =========================================================
   V42: final reliable scroll reveal + cache-busted launch fix
   ========================================================= */

/* Default remains visible. Only JS-added .will-reveal elements animate. */
.reveal,
.image-reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

.will-reveal.reveal,
.will-reveal.image-reveal {
  transition:
    opacity 900ms cubic-bezier(.2,.75,.25,1) !important,
    transform 900ms cubic-bezier(.2,.75,.25,1) !important,
    filter 900ms ease !important,
    clip-path 900ms cubic-bezier(.2,.75,.25,1) !important;
  will-change: opacity, transform, filter, clip-path;
}

.will-reveal.reveal:not(.is-visible) {
  opacity: 0 !important;
  transform: translateY(42px) !important;
  filter: blur(6px) !important;
}

.will-reveal.image-reveal:not(.is-visible) {
  opacity: 0 !important;
  transform: translateY(34px) scale(0.965) !important;
  filter: blur(6px) !important;
  clip-path: inset(0 0 22% 0 round 24px) !important;
}

.will-reveal.reveal.is-visible,
.will-reveal.image-reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.will-reveal.image-reveal.is-visible {
  clip-path: inset(0 0 0 0 round 24px) !important;
}

.will-reveal.reveal-delay-1,
.will-reveal.image-reveal.reveal-delay-1 {
  transition-delay: 120ms !important;
}

.will-reveal.reveal-delay-2,
.will-reveal.image-reveal.reveal-delay-2 {
  transition-delay: 240ms !important;
}

.will-reveal.reveal-delay-3,
.will-reveal.image-reveal.reveal-delay-3 {
  transition-delay: 360ms !important;
}


/* =========================================================
   V43: reveal is controlled by main.js inline styles
   This small marker confirms the newest stylesheet is loaded.
   ========================================================= */

html::before {
  content: "";
  display: none;
}

body {
  --launch-version: "v43";
}


/* =========================================================
   V44: reveal remains viewport-based, no global timeout reveal
   ========================================================= */

body {
  --launch-version: "v44";
}


/* =========================================================
   V45: mobile Case 02 anti-overlap layout
   Fixes the one-column sticky story collision on phones.
   Desktop and tablet storytelling layout stay unchanged.
   ========================================================= */

@media (max-width: 700px) {
  .case-game .sticky-story {
    display: block;
    margin-top: 2rem;
  }

  .case-game .sticky-stage {
    position: relative !important;
    top: auto !important;
    z-index: 1;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 1 / 1.34;
    margin: 0 0 1.35rem;
    overflow: hidden;
    border-radius: 22px;
  }

  .case-game .story-media {
    position: absolute;
    inset: 0;
  }

  .case-game .story-media img {
    width: 100%;
    height: 100%;
    padding: 1rem;
    object-fit: contain;
  }

  .case-game .story-progress {
    bottom: 0.7rem;
  }

  .case-game .story-steps {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.85rem;
    padding-bottom: 0;
  }

  .case-game .story-step {
    min-height: 0 !important;
    display: block;
    padding: 1.15rem 1.05rem 1.25rem;
    border: 1px solid rgba(122, 69, 40, 0.12);
    border-radius: 22px;
    color: var(--brown-dark);
    background:
      radial-gradient(circle at 100% 0%, rgba(243, 146, 0, 0.09), transparent 11rem),
      rgba(255, 250, 244, 0.74);
    box-shadow: 0 18px 38px rgba(72, 40, 24, 0.06);
    opacity: 0.62;
    transform: none !important;
  }

  .case-game .story-step.is-active {
    opacity: 1;
    transform: none !important;
  }

  .case-game .story-step h3 {
    margin: 0.45rem 0 0.55rem;
    font-size: clamp(1.55rem, 8.2vw, 2.15rem);
    line-height: 1.18;
  }

  .case-game .story-step p {
    font-size: 0.98rem;
    line-height: 1.82;
  }
}

@media (max-width: 390px) {
  .case-game .sticky-stage {
    aspect-ratio: 1 / 1.42;
  }

  .case-game .story-step {
    padding: 1rem 0.95rem 1.1rem;
  }
}

body {
  --launch-version: "v45";
}


/* =========================================================
   V46: mobile Case 02 slider controls
   Mobile Case 02 now behaves like Case 04:
   one active slide, dots, prev/next, and play/pause.
   ========================================================= */

.story-mobile-controls {
  display: none;
}

@media (max-width: 700px) {
  .case-game .sticky-story {
    display: block;
  }

  .case-game .sticky-stage {
    margin-bottom: 0;
  }

  .case-game .story-progress {
    display: none;
  }

  .case-game .story-steps {
    margin-top: 0;
    display: block;
  }

  .case-game .story-step {
    display: none !important;
    min-height: 0 !important;
    padding: 1.55rem 1.35rem 1.7rem;
    border: 1px solid rgba(122, 69, 40, 0.12);
    border-top: 0;
    border-radius: 0 0 22px 22px;
    color: var(--brown-dark);
    background:
      radial-gradient(circle at 100% 0%, rgba(243, 146, 0, 0.10), transparent 11rem),
      rgba(255, 250, 244, 0.78);
    box-shadow: 0 18px 38px rgba(72, 40, 24, 0.06);
    opacity: 1;
    transform: none !important;
  }

  .case-game .story-step.is-active {
    display: block !important;
    animation: case02MobileCopyIn 520ms cubic-bezier(.2,.75,.25,1) both;
  }

  .case-game .story-step > span {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--orange-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
  }

  .case-game .story-step h3 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.65rem, 8.2vw, 2.25rem);
    line-height: 1.18;
  }

  .case-game .story-step p {
    font-size: 0.98rem;
    line-height: 1.82;
  }

  .story-mobile-controls {
    display: grid;
    grid-template-columns: 3rem auto 3rem 3rem;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 1.35rem 0 0;
  }

  .story-mobile-controls button {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--brown-dark);
    background: var(--paper);
    box-shadow: 0 10px 24px rgba(72, 40, 24, 0.08);
    cursor: pointer;
  }

  .story-dots {
    display: flex;
    gap: 0.45rem;
  }

  .story-dots button {
    width: 0.55rem;
    height: 0.55rem;
    border: 0;
    background: rgba(122, 69, 40, 0.22);
    box-shadow: none;
    transition: width 180ms ease, border-radius 180ms ease, background 180ms ease;
  }

  .story-dots button.is-active {
    width: 1.5rem;
    border-radius: 999px;
    background: var(--orange);
  }

  .case-game .story-media {
    transition:
      opacity 520ms ease,
      transform 720ms cubic-bezier(.2,.75,.25,1);
  }

  .case-game .story-media.is-active {
    transform: scale(1);
  }

  @keyframes case02MobileCopyIn {
    from {
      opacity: 0;
      transform: translateY(18px);
      filter: blur(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }
}

@media (max-width: 390px) {
  .story-mobile-controls {
    gap: 0.58rem;
  }

  .story-mobile-controls button {
    width: 2.55rem;
    height: 2.55rem;
  }
}

body {
  --launch-version: "v46";
}
