/* Shared + page transitions for MCNASIA */
:root {
  --bg: #ffffff;
  --ink: #0d0e10;
  --muted: #5c6370;
  --line: rgba(13, 14, 16, 0.1);
  --soft: #f6f5f2;
  --accent: #ff6a29;
  --accent-soft: rgba(255, 106, 41, 0.12);
  --dark: #111214;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Roboto", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.bg-mark {
  position: fixed;
  top: -18%;
  right: -28%;
  width: min(92vw, 980px);
  height: min(92vw, 980px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  transform: rotate(-8deg);
  animation: markFloat 18s var(--ease) infinite alternate;
}

.bg-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes markFloat {
  from { transform: rotate(-8deg) translate3d(0, 0, 0); }
  to { transform: rotate(-4deg) translate3d(-18px, 24px, 0); }
}

.topbar,
main,
.footer { position: relative; z-index: 1; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 0;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  width: min(980px, 100%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(13, 14, 16, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-size: 0.92rem;
}

.brand img { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.is-active { opacity: 0.75; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang button.is-active {
  background: var(--ink);
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.page-enter {
  animation: pageIn 0.65s var(--ease) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(28px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.hero {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(7.5rem, 14vh, 9.5rem) 1.25rem 3.5rem;
  text-align: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  animation: rise 0.8s var(--ease) both;
}

.hero-chip > span:first-child {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.8rem, 12vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  animation: rise 0.85s var(--ease) 0.05s both;
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  animation: rise 0.85s var(--ease) 0.12s both;
}

.hero-title em,
h2 em,
.page-title em { font-style: italic; font-weight: 400; }

.hero-lede {
  margin: 1.35rem auto 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
  animation: rise 0.85s var(--ease) 0.18s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.85rem;
  animation: rise 0.85s var(--ease) 0.24s both;
}

.hero-trust {
  margin: 1.25rem 0 0;
  color: #8b919c;
  font-size: 0.88rem;
  animation: rise 0.85s var(--ease) 0.3s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; border: 0; }
.btn-ghost { background: transparent; border-color: rgba(13, 14, 16, 0.22); color: var(--ink); }

.demo-band { width: min(980px, calc(100% - 2rem)); margin: 0 auto 2rem; }

.demo-window {
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--dark);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(13, 14, 16, 0.18);
}

.demo-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-top .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.demo-top p {
  margin: 0 0 0 0.6rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.demo-body { display: grid; grid-template-columns: 1fr 1fr; }
.demo-col { padding: 1.6rem 1.4rem 1.8rem; }
.demo-col.accent {
  background: rgba(255, 106, 41, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-label {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.demo-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.35;
}

.demo-col ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
}

.demo-col li + li { margin-top: 0.45rem; }

.section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 6.5rem) 1.25rem;
}

.section-soft {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: rgba(246, 245, 242, 0.72);
}

.section-soft > .eyebrow,
.section-soft > h2,
.section-soft > .section-lede,
.section-soft > .case-grid,
.section-soft > .case-media-grid,
.section-soft > .about-split,
.section-soft > .explore-grid {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

.cases-sub {
  margin-top: 3rem !important;
}

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

.case-media {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.case-media:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(13, 14, 16, 0.08);
}

.case-media .cover {
  aspect-ratio: 16 / 10;
  background: #e8e6e1;
  overflow: hidden;
}

.case-media .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.case-media:hover .cover img {
  transform: scale(1.04);
}

.case-media .body {
  padding: 1.15rem 1.2rem 1.3rem;
}

.case-media .tag {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
}

.case-media h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.case-media p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.eyebrow span:first-child {
  color: var(--accent);
  margin-right: 0.35rem;
}

h2, .page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Homepage explore entries */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.explore-card {
  display: block;
  text-decoration: none;
  padding: 1.5rem 1.4rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.explore-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 41, 0.45);
  box-shadow: 0 18px 40px rgba(13, 14, 16, 0.08);
}

.explore-card .num {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.explore-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
}

.explore-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.explore-card .go {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.feature-rows {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.feature-rows article {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-rows .num { margin: 0; color: var(--accent); font-weight: 500; }

.feature-rows h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
}

.feature-rows p { margin: 0; color: var(--muted); max-width: 40rem; }

.feature-rows ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-rows li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.85);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.case-grid article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.4rem 1.35rem 1.5rem;
}

.case-grid .tag {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
}

.case-grid h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.case-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.logo-wall img {
  width: 100%;
  height: 62px;
  object-fit: contain;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  filter: grayscale(1);
  opacity: 0.78;
}

.about-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.about-note { margin-top: 1.25rem; color: var(--muted); }
.about-note a { color: var(--accent); font-weight: 500; text-decoration: none; }
.about-split figure { margin: 0; }
.about-split img {
  width: 100%;
  display: block;
  border-radius: 1.15rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.about-split figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.contact-card,
.enquiry {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
}

.contact-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
}

address {
  margin: 0;
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}

address a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.15rem;
}

.enquiry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.enquiry label { display: grid; gap: 0.35rem; }
.enquiry .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.enquiry .full,
.enquiry .btn.full { grid-column: 1 / -1; }
.enquiry span { font-size: 0.8rem; font-weight: 500; color: var(--muted); }

.enquiry input,
.enquiry textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: var(--soft);
  outline: none;
}

.enquiry input:focus,
.enquiry textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.cta-final {
  width: min(var(--max), 100%);
  margin: 0 auto 2rem;
  padding: clamp(3.5rem, 8vh, 5rem) 1.25rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.cta-final h2 { margin: 0 auto 1.5rem; max-width: 16ch; }

.footer {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

/* Detail pages */
.page-hero {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(7rem, 12vh, 8.5rem) 1.25rem 2.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.page-lede {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--muted);
}

.detail-block {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.detail-block + .detail-block { padding-top: 0.5rem; }

.detail-card {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.5rem;
  background: #fff;
  margin-top: 1rem;
}

.detail-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.pill-row span {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  background: var(--soft);
}

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

.svc-panel {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.35rem;
  background: #fff;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s var(--ease) forwards;
}

.svc-panel:nth-child(2) { animation-delay: 0.08s; }
.svc-panel:nth-child(3) { animation-delay: 0.16s; }
.svc-panel:nth-child(4) { animation-delay: 0.24s; }
.svc-panel:nth-child(5) { animation-delay: 0.32s; }
.svc-panel:nth-child(6) { animation-delay: 0.4s; }

.svc-panel .idx {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.svc-panel h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.svc-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.svc-panel ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.svc-panel li + li { margin-top: 0.3rem; }

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.market-card {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  background: #fff;
}

.market-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--soft);
}

.market-card .cap {
  padding: 1.1rem 1.2rem 1.25rem;
}

.market-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
}

.market-card p { margin: 0; color: var(--muted); }

.star-grid,
.kol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.star-item,
.kol-item {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  background: #fff;
}

.star-item strong,
.kol-item strong {
  display: block;
  font-size: 0.95rem;
}

.star-item span,
.kol-item span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-banner {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.15rem;
  background: var(--dark);
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: center;
}

.stat-banner h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
}

.stat-banner .big {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--accent);
}

.stat-banner p { margin: 0.4rem 0 0; color: rgba(255,255,255,0.7); }

.fulfill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.fulfill-list li {
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: #fff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .demo-body,
  .case-grid,
  .about-split,
  .contact-grid,
  .explore-grid,
  .svc-grid,
  .market-grid,
  .stat-banner,
  .fulfill-list {
    grid-template-columns: 1fr;
  }
  .demo-col.accent { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .bg-mark { top: -10%; right: -42%; width: 120vw; height: 120vw; opacity: 0.07; }
}

@media (max-width: 720px) {
  .nav, .nav-cta { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(13,14,16,0.1);
    margin-left: 0;
  }
  .nav.is-open a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-pill { position: relative; }
  .menu-btn { display: block; }
  .lang { margin-left: auto; }
  .feature-rows article { grid-template-columns: 1fr; }
  .enquiry { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}


/* Case detail */
.case-detail-hero {
  position: relative;
  width: 100%;
  min-height: min(58vh, 520px);
  display: grid;
  align-items: end;
  background: #1a1b1e;
  color: #fff;
  overflow: hidden;
}
.case-detail-hero .bg { position: absolute; inset: 0; }
.case-detail-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.case-detail-hero .inner {
  position: relative;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 5.5rem 1.25rem 2.5rem;
}
.case-detail-hero .tag { margin: 0 0 .6rem; color: #ff9a6a; font-size: .9rem; font-weight: 500; }
.case-detail-hero h1 {
  margin: 0 0 .65rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  letter-spacing: -.03em;
  line-height: 1.12;
  max-width: 16ch;
}
.case-detail-hero .result { margin: 0; color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 42ch; }
.case-detail-hero .back-link { color: rgba(255,255,255,.75); }
.case-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  margin: -1.5rem auto 0;
  width: min(var(--max), calc(100% - 2.5rem));
  position: relative;
  z-index: 2;
}
.case-kpi div { background: #fff; padding: 1.25rem 1.1rem; text-align: center; }
.case-kpi strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -.02em;
}
.case-kpi span { color: var(--muted); font-size: .85rem; }
.case-story {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 3rem 1.25rem 1rem;
  display: grid;
  gap: 1.5rem;
}
.case-story h2 {
  margin: 0 0 .45rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
}
.case-story p { margin: 0; color: var(--muted); max-width: 62ch; }
.case-gallery {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}
.case-gallery h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
}
.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.case-gallery-grid figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}
.case-gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.case-gallery-grid figcaption {
  padding: .7rem .9rem .85rem;
  color: var(--muted);
  font-size: .85rem;
}
.case-cta {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto 3.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.4rem;
  background: var(--dark);
  color: #fff;
  border-radius: 1.1rem;
}
.case-cta p { margin: 0; color: rgba(255,255,255,.78); }
.case-cta .btn {
  display: inline-flex; align-items: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}
.case-cta .ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  margin-right: .4rem;
}
@media (max-width: 900px) {
  .case-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .case-media-grid { grid-template-columns: 1fr; }
  .case-kpi { grid-template-columns: 1fr; }
  .case-gallery-grid { grid-template-columns: 1fr; }
}


/* —— Hermes Present mode ——
   Background = full viewport.
   4:3 = content safe zone (padding from deck.css), content fills that zone landscape-wide.
   —— */
html.is-presenting .topbar {
  opacity: 0;
  pointer-events: none;
}
html.is-presenting .bg-mark {
  opacity: .04;
}
html.is-presenting .footer {
  display: none !important;
}

/* Fill the 4:3 safe zone — do NOT shrink into a skinny center column */
html.is-presenting [data-deck-page] {
  box-sizing: border-box;
}
html.is-presenting .hero,
html.is-presenting .demo-band,
html.is-presenting .section,
html.is-presenting .cta-final,
html.is-presenting .page-hero,
html.is-presenting .detail-block {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

html.is-presenting .hero {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  text-align: left;
}
html.is-presenting .hero-brand {
  font-size: clamp(18px, 2.2vmin, 28px) !important;
}
html.is-presenting .hero-title {
  font-size: clamp(40px, 6.2vmin, 72px) !important;
  max-width: 18ch;
  line-height: 1.08 !important;
}
html.is-presenting .hero-lede {
  max-width: 46ch;
  font-size: clamp(16px, 1.8vmin, 22px) !important;
}
html.is-presenting .demo-band {
  margin-top: clamp(18px, 3vmin, 32px) !important;
}
html.is-presenting .demo-window {
  max-width: none;
  width: 100%;
}

html.is-presenting .section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
html.is-presenting .section h2,
html.is-presenting .page-title {
  font-size: clamp(28px, 4.2vmin, 48px) !important;
  line-height: 1.12 !important;
  margin-bottom: 0.45rem !important;
}
html.is-presenting .section-lede,
html.is-presenting .page-lede {
  font-size: clamp(15px, 1.6vmin, 20px) !important;
  max-width: 52ch;
  margin-bottom: 1rem !important;
}

/* Keep landscape multi-column inside safe zone (ignore mobile 1-col breakpoints) */
html.is-presenting .explore-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.2vmin, 16px) !important;
  margin-top: clamp(14px, 2vmin, 24px) !important;
  width: 100% !important;
}
html.is-presenting .explore-card {
  padding: clamp(14px, 1.8vmin, 22px) !important;
}
html.is-presenting .explore-card h3 {
  font-size: clamp(16px, 1.8vmin, 22px) !important;
}
html.is-presenting .explore-card p {
  font-size: clamp(13px, 1.35vmin, 16px) !important;
}

html.is-presenting .case-media-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.2vmin, 14px) !important;
  margin-top: clamp(12px, 1.8vmin, 20px) !important;
  width: 100% !important;
  max-height: none !important;
}
html.is-presenting .case-media .cover img {
  max-height: 22vh;
  width: 100%;
  object-fit: cover;
}
html.is-presenting .case-media .body h3 {
  font-size: clamp(14px, 1.5vmin, 18px) !important;
}
html.is-presenting .case-media .body p {
  font-size: clamp(12px, 1.25vmin, 14px) !important;
}

html.is-presenting .case-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.2vmin, 14px) !important;
  margin-top: clamp(12px, 1.8vmin, 20px) !important;
  width: 100% !important;
}
html.is-presenting .case-grid article {
  padding: clamp(12px, 1.5vmin, 18px) !important;
}
html.is-presenting .case-grid h3 {
  font-size: clamp(15px, 1.7vmin, 20px) !important;
}
html.is-presenting .case-grid p:last-child {
  font-size: clamp(12px, 1.3vmin, 15px) !important;
}

html.is-presenting .logo-wall {
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
  margin-top: 1rem !important;
  width: 100% !important;
}
html.is-presenting .logo-wall img {
  height: clamp(48px, 7vh, 64px);
}

html.is-presenting .about-split {
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr !important;
  gap: clamp(18px, 2.5vmin, 36px) !important;
  align-items: center !important;
  width: 100% !important;
}
html.is-presenting .about-split img {
  max-height: 52vh;
  aspect-ratio: 16 / 10;
}

html.is-presenting .contact-grid {
  display: grid !important;
  grid-template-columns: 0.9fr 1.1fr !important;
  gap: clamp(16px, 2vmin, 28px) !important;
  width: 100% !important;
}

html.is-presenting .svc-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.2vmin, 16px) !important;
  width: 100% !important;
  margin-top: clamp(12px, 1.8vmin, 20px) !important;
}
html.is-presenting .svc-panel {
  padding: clamp(12px, 1.5vmin, 18px) !important;
}
html.is-presenting .svc-panel h3 {
  font-size: clamp(15px, 1.7vmin, 20px) !important;
}
html.is-presenting .svc-panel p,
html.is-presenting .svc-panel li {
  font-size: clamp(12px, 1.3vmin, 15px) !important;
}

html.is-presenting .cta-final h2 {
  max-width: 22ch;
  font-size: clamp(32px, 5vmin, 56px) !important;
}
