:root {
  --paper: #f7f3eb;
  --paper-deep: #eee6d8;
  --panel: #fffdf8;
  --panel-soft: #fbf8f0;
  --ink: #242b2b;
  --ink-soft: #4f5652;
  --muted: #777b72;
  --line: #ddd4c3;
  --line-soft: rgba(107, 111, 87, 0.18);
  --olive: #71765d;
  --olive-dark: #5e634c;
  --teal: #5e9c93;
  --bluegray: #6b8793;
  --cosmos: #101b21;
  --cosmos-deep: #071118;
  --star: #dfeee9;
  --shadow: 0 22px 58px rgba(68, 61, 45, 0.13);
  --shadow-soft: 0 12px 34px rgba(68, 61, 45, 0.08);
  --radius: 8px;
  --radius-lg: 18px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.92), transparent 28rem),
    linear-gradient(180deg, #fbf8f1 0%, var(--paper) 48%, #f5f0e6 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(106, 106, 84, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 106, 84, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 62%);
}

body.nav-open {
  overflow: hidden;
}

body.has-cosmic-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 44%, rgba(240, 252, 255, 0.18), transparent 23rem),
    linear-gradient(135deg, #030610 0%, #06162a 48%, #120b25 100%);
}

body.has-cosmic-hero::before {
  opacity: 0;
}

main {
  padding-top: 78px;
}

body.has-cosmic-hero main {
  height: 100dvh;
  padding-top: 0;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  transition: transform 240ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 56px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(253, 251, 246, 0.88);
  border-bottom: 1px solid rgba(107, 111, 87, 0.16);
  backdrop-filter: blur(18px);
  transition: box-shadow 420ms var(--ease), background 420ms var(--ease), border-color 420ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(253, 251, 246, 0.96);
  box-shadow: 0 10px 32px rgba(48, 45, 35, 0.08);
}

.has-cosmic-hero .site-header:not(.is-scrolled) {
  background: rgba(5, 12, 16, 0.18);
  border-bottom-color: rgba(232, 242, 235, 0.1);
  box-shadow: none;
}

.has-cosmic-hero .site-header:not(.is-scrolled) .brand strong,
.has-cosmic-hero .site-header:not(.is-scrolled) .site-nav {
  color: rgba(247, 244, 232, 0.92);
}

.has-cosmic-hero .site-header:not(.is-scrolled) .brand small {
  color: rgba(224, 234, 225, 0.66);
}

.has-cosmic-hero .site-header:not(.is-scrolled) .site-nav a:hover,
.has-cosmic-hero .site-header:not(.is-scrolled) .site-nav a.is-active {
  color: #fff;
}

.has-cosmic-hero .site-header:not(.is-scrolled) .site-nav a::after {
  background: #93cfc4;
}

.has-cosmic-hero .site-header:not(.is-scrolled) .nav-phone {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(232, 242, 235, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 42px rgba(0, 0, 0, 0.22);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #142229;
  box-shadow: 0 8px 20px rgba(44, 67, 75, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.76);
  transform-origin: center 35%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #172023;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #303733;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 9px 0;
  transition: color 240ms var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--olive);
  transition: transform 320ms var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--olive-dark);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-phone {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: var(--olive);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 24px rgba(94, 99, 76, 0.18);
  transition: transform 240ms var(--ease), background 240ms var(--ease), box-shadow 240ms var(--ease);
}

.nav-phone:hover {
  transform: translateY(-1px);
  background: var(--olive-dark);
  box-shadow: 0 14px 30px rgba(94, 99, 76, 0.22);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--olive);
  border-radius: 10px;
  background: var(--olive);
  padding: 0;
  margin-left: auto;
  box-shadow: 0 8px 18px rgba(72, 68, 52, 0.12);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
  background: #fff;
  transition: transform 260ms var(--ease);
}

.nav-toggle.is-active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.is-active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (min-width: 821px) {
  .nav-toggle {
    display: none;
  }
}

[id] {
  scroll-margin-top: 92px;
}

.section {
  padding: 78px 0;
}

.section-warm {
  background: rgba(255, 252, 246, 0.72);
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(241, 236, 225, 0.62), rgba(252, 249, 242, 0.92));
  border-block: 1px solid rgba(107, 111, 87, 0.12);
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--olive-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.section-intro {
  max-width: 760px;
}

.section-intro.narrow {
  max-width: 680px;
}

.section-intro h2,
.method-strip h2,
.philosophy-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-intro p:not(.section-kicker),
.philosophy-copy p,
.contact-copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  margin-top: 0;
  padding: 118px 0 38px;
  color: #edf5ef;
  background:
    radial-gradient(circle at 22% 20%, rgba(20, 82, 144, 0.32), transparent 24rem),
    radial-gradient(circle at 82% 70%, rgba(64, 22, 96, 0.34), transparent 28rem),
    linear-gradient(118deg, #01030a 0%, #061326 43%, #11071d 78%, #010208 100%);
  border-bottom: 1px solid rgba(198, 210, 191, 0.2);
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.46;
}

.hero::before {
  width: min(920px, 88vw);
  height: min(920px, 88vw);
  left: 55%;
  top: 12%;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 244, 0.34), rgba(156, 235, 255, 0.22) 13%, transparent 31%),
    conic-gradient(from 26deg, transparent, rgba(255, 231, 158, 0.3), transparent 18%, rgba(93, 221, 255, 0.34), transparent 39%, rgba(255, 103, 204, 0.26), transparent 64%, rgba(169, 145, 255, 0.28), transparent 86%);
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.78;
  transform: translate(-50%, -4%) rotate(-16deg) scaleX(1.64) scaleY(0.39);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.85) 42%, transparent 76%);
  display: none;
}

.hero::after {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  transform: none;
  opacity: 0.64;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.92) 0 1px, transparent 1.7px),
    radial-gradient(circle at 76% 18%, rgba(164, 230, 255, 0.88) 0 1px, transparent 1.9px),
    radial-gradient(circle at 42% 68%, rgba(255, 232, 181, 0.82) 0 1.2px, transparent 2px),
    radial-gradient(circle at 64% 82%, rgba(255, 255, 255, 0.72) 0 0.8px, transparent 1.6px);
  background-size: 210px 180px, 260px 230px, 190px 210px, 310px 270px;
  animation: starTwinkle 4.8s ease-in-out infinite alternate;
  display: none;
}

.cosmos-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 1;
}

.cosmic-depth {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 55% 44%, transparent 0 48%, rgba(3, 7, 18, 0.1) 76%, rgba(0, 1, 7, 0.58) 100%),
    linear-gradient(180deg, rgba(1, 3, 10, 0.04), rgba(2, 3, 11, 0.18));
}

.cosmic-icp {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  width: min(92vw, 640px);
  margin: 0;
  transform: translateX(-50%);
  color: rgba(243, 248, 243, 0.68);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.cosmic-icp a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 248, 243, 0.24);
}

.cosmic-icp a:hover {
  color: #fffaf0;
  border-color: rgba(255, 250, 240, 0.72);
}

.cosmic-stage {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 156px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.62fr);
  grid-template-rows: 1fr auto;
  gap: 36px 76px;
  align-items: center;
  transition: transform 420ms var(--ease), filter 420ms var(--ease);
  transform-origin: center;
}

.cosmic-copy {
  align-self: center;
  min-width: 0;
  max-width: 100%;
}

.cosmic-eyebrow {
  margin: 0 0 20px;
  color: rgba(245, 255, 252, 0.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.cosmic-copy h1 {
  max-width: 860px;
  margin: 0;
  color: #fffdf3;
  font-size: clamp(72px, 10vw, 142px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.14),
    0 16px 46px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(255, 255, 255, 0.12);
  overflow-wrap: anywhere;
}

.cosmic-title span {
  display: block;
}

.cosmic-title span:first-child {
  font-size: 0.96em;
}

.cosmic-title span:last-child {
  margin-top: 0.02em;
  font-size: 0.82em;
}

.cosmic-lead {
  max-width: min(660px, 100%);
  margin: 28px 0 0;
  color: rgba(247, 252, 250, 0.94);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.75;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.cosmic-entry-grid {
  align-self: center;
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 10px;
  perspective: 1200px;
}

.cosmic-entry {
  --entry-border: rgba(238, 248, 245, 0.24);
  --entry-glow: rgba(147, 207, 196, 0.16);
  --entry-tint: rgba(255, 255, 255, 0.045);
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 18px 54px 18px 20px;
  border: 1px solid var(--entry-border);
  border-radius: 18px;
  color: rgba(250, 247, 235, 0.9);
  background:
    radial-gradient(circle at 92% 18%, var(--entry-glow), transparent 15rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, var(--entry-tint), rgba(7, 12, 24, 0.32)),
    rgba(7, 12, 24, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 18px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px) saturate(1.08);
  overflow: hidden;
  max-width: 100%;
  transform: translateZ(0);
  transition:
    transform 520ms var(--ease),
    border-color 520ms var(--ease),
    background 520ms var(--ease),
    box-shadow 520ms var(--ease);
}

.cosmic-entry:nth-child(1) {
  --entry-glow: rgba(150, 213, 255, 0.14);
}

.cosmic-entry:nth-child(2) {
  --entry-glow: rgba(157, 219, 207, 0.18);
}

.cosmic-entry:nth-child(3) {
  --entry-glow: rgba(210, 191, 255, 0.15);
}

.cosmic-entry:nth-child(4) {
  --entry-glow: rgba(245, 213, 152, 0.13);
}

.cosmic-entry:nth-child(5) {
  --entry-glow: rgba(180, 148, 255, 0.16);
}

.cosmic-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent, rgba(210, 247, 240, 0.18), transparent),
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.12), transparent 9rem);
  opacity: 0.78;
  transform: translateX(-112%);
  transition: transform 900ms var(--ease), opacity 520ms var(--ease);
}

.cosmic-entry::after {
  content: "->";
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227, 249, 244, 0.16);
  border-radius: 50%;
  color: rgba(229, 255, 249, 0.78);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-50%) translateX(4px);
  opacity: 0.66;
  transition:
    transform 420ms var(--ease),
    opacity 420ms var(--ease),
    border-color 420ms var(--ease),
    background 420ms var(--ease);
}

.cosmic-entry:hover {
  transform: translateX(-10px) translateY(-2px) rotateY(-1.2deg);
  border-color: rgba(204, 249, 240, 0.48);
  background:
    radial-gradient(circle at 88% 18%, rgba(192, 244, 236, 0.24), transparent 14rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 24px 62px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(121, 217, 217, 0.12);
}

.cosmic-entry:hover::before {
  transform: translateX(110%);
}

.cosmic-entry:hover::after,
.cosmic-entry:focus-visible::after {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  border-color: rgba(219, 255, 248, 0.34);
  background: rgba(206, 250, 242, 0.12);
}

.cosmic-entry.is-activated {
  transform: translateX(-12px) scale(1.012);
  border-color: rgba(229, 255, 249, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 28px 82px rgba(0, 0, 0, 0.42),
    0 0 54px rgba(145, 236, 232, 0.2);
}

.cosmic-entry span {
  position: relative;
  z-index: 1;
  color: rgba(198, 246, 236, 0.96);
  font-size: 13px;
  font-weight: 700;
}

.cosmic-entry strong {
  position: relative;
  z-index: 1;
  max-width: 24em;
  color: rgba(255, 255, 248, 0.98);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.54);
}

.cosmic-entry.is-primary {
  --entry-glow: rgba(121, 231, 225, 0.24);
  border-color: rgba(199, 239, 232, 0.48);
  background:
    radial-gradient(circle at 92% 18%, rgba(190, 248, 238, 0.2), transparent 15rem),
    linear-gradient(135deg, rgba(139, 151, 106, 0.56), rgba(73, 182, 185, 0.44)),
    rgba(255, 255, 255, 0.08);
}

.cosmic-meta {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cosmic-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(232, 242, 235, 0.13);
  border-radius: 999px;
  color: rgba(247, 252, 248, 0.9);
  background: rgba(8, 13, 24, 0.34);
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.56);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.pain-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(107, 111, 87, 0.22);
  border-radius: 999px;
  color: #3d453f;
  background: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 20px 0 24px;
  font-weight: 700;
  transition: transform 520ms var(--ease), box-shadow 520ms var(--ease), background 520ms var(--ease), border-color 520ms var(--ease);
}

.button span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 520ms var(--ease), background 520ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover span {
  transform: translateX(3px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--olive), var(--teal));
  box-shadow: 0 18px 42px rgba(94, 99, 76, 0.25);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--olive-dark), #4f9189);
}

.button-ghost {
  border: 1px solid rgba(69, 72, 58, 0.35);
  color: #353b36;
  background: rgba(255, 255, 255, 0.5);
}

.button-ghost:hover {
  border-color: rgba(69, 72, 58, 0.6);
  background: rgba(255, 255, 255, 0.82);
}

.hero .button-ghost {
  border-color: rgba(235, 240, 229, 0.34);
  color: #f6f4ea;
  background: rgba(255, 255, 255, 0.08);
}

.hero .button-ghost:hover {
  border-color: rgba(235, 240, 229, 0.58);
  background: rgba(255, 255, 255, 0.14);
}

.workspace-shell {
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  padding: 11px;
  background: rgba(243, 242, 231, 0.1);
  border: 1px solid rgba(230, 239, 228, 0.18);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  transform:
    perspective(1100px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translate3d(0, var(--float-y, 0), 0);
  transition: transform 700ms var(--ease), box-shadow 700ms var(--ease);
}

.workspace-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 24px;
  background:
    conic-gradient(from 140deg, transparent 0deg, rgba(218, 235, 224, 0.46) 52deg, transparent 112deg, rgba(94, 156, 147, 0.3) 188deg, transparent 260deg);
  opacity: 0.44;
}

.workspace-shell::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: 18px;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.18) 37%, transparent 39%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0.6;
}

.workspace {
  border-radius: 16px;
  border: 1px solid rgba(105, 100, 82, 0.12);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(244, 238, 225, 0.94)),
    radial-gradient(circle at 88% 8%, rgba(94, 156, 147, 0.12), transparent 24rem);
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(105, 100, 82, 0.14);
}

.workspace-top p,
.workspace-top strong {
  display: block;
  margin: 0;
}

.workspace-top p {
  color: var(--muted);
  font-size: 13px;
}

.workspace-top strong {
  margin-top: 2px;
  font-size: 19px;
}

.workspace-top > span {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--olive-dark);
  background: #ece8dc;
  font-size: 12px;
  font-weight: 700;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.metric-row div,
.dialog-card,
.quote-card,
.training-row,
.kb-search {
  border: 1px solid rgba(105, 100, 82, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(76, 67, 47, 0.06);
}

.metric-row div,
.dialog-card,
.quote-card,
.training-row {
  transition: transform 520ms var(--ease), border-color 520ms var(--ease), box-shadow 520ms var(--ease);
}

.workspace-shell:hover .metric-row div,
.workspace-shell:hover .dialog-card,
.workspace-shell:hover .quote-card,
.workspace-shell:hover .training-row {
  border-color: rgba(94, 156, 147, 0.22);
  box-shadow: 0 16px 32px rgba(54, 76, 72, 0.1);
}

.workspace-shell:hover .metric-row div:nth-child(2) {
  transform: translateY(-4px);
}

.metric-row div {
  padding: 16px;
}

.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-row strong {
  display: block;
  margin-top: 6px;
  color: #252b2a;
  font-size: 31px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kb-search {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
}

.kb-search span,
.dialog-card span,
.quote-card span,
.training-row span {
  color: var(--olive-dark);
  font-size: 13px;
  font-weight: 700;
}

.kb-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(105, 100, 82, 0.2);
  border-radius: var(--radius);
  padding: 0 12px;
  color: #4a514c;
  background: #fffdf8;
}

.workspace-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-top: 14px;
}

.dialog-card,
.quote-card,
.training-row {
  padding: 16px;
}

.dialog-card p,
.quote-card p,
.training-row p {
  margin: 9px 0 0;
  color: #454d49;
  font-size: 14px;
}

.dialog-card strong {
  display: block;
  margin-top: 12px;
  color: #2f3a37;
  font-size: 14px;
}

.quote-lines {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.quote-lines i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d8d5c7, transparent);
}

.quote-lines i:nth-child(2) {
  width: 82%;
}

.quote-lines i:nth-child(3) {
  width: 62%;
}

.training-row {
  margin-top: 14px;
}

.scenario-board {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  align-items: start;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scenario-item,
.method-step,
.mini-version,
.case-story,
.case-board,
.case-outcome,
.process-node {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(105, 100, 82, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.scenario-item {
  padding: 22px;
}

.scenario-item span,
.mini-version span,
.case-labels span,
.case-note strong,
.case-board-top span,
.case-delivery-grid span,
.case-outcome span,
.philosophy-note span {
  color: var(--olive-dark);
  font-size: 13px;
  font-weight: 700;
}

.scenario-item h3,
.method-step h3,
.mini-version h3,
.case-story h3,
.process-node h3 {
  margin: 11px 0 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

.scenario-item p,
.method-step p,
.mini-version p,
.case-story p,
.case-delivery-grid p,
.case-outcome p,
.process-node p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.method-strip {
  max-width: 820px;
  padding-bottom: 30px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}

.method-grid::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(113, 118, 93, 0.35), transparent);
}

.method-step {
  position: relative;
  padding: 24px;
  background: #fffdf8;
}

.method-step > span,
.process-node > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--olive);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mini-version-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.mini-version {
  min-height: 188px;
  padding: 22px;
}

.mini-version.wide {
  grid-column: span 2;
}

.case-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(94, 156, 147, 0.12), transparent 36%),
    linear-gradient(180deg, #f8f4ec, #f0e8d8 54%, #e9e6dc 100%);
  border-block: 1px solid rgba(107, 111, 87, 0.14);
}

.case-section::before {
  content: "";
  position: absolute;
  right: -80px;
  top: 72px;
  width: 360px;
  height: 260px;
  opacity: 0.28;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(92, 99, 76, 0.34) 1px, transparent 1px),
    linear-gradient(rgba(92, 99, 76, 0.24) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: rotate(-8deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 72%);
}

.case-section::after {
  content: "";
  position: absolute;
  inset: auto -6% 4% 42%;
  height: 360px;
  pointer-events: none;
  opacity: 0.2;
  background:
    linear-gradient(112deg, transparent 0 34%, rgba(67, 89, 88, 0.36) 35%, transparent 36%),
    linear-gradient(20deg, transparent 0 58%, rgba(67, 89, 88, 0.24) 59%, transparent 60%),
    linear-gradient(90deg, rgba(67, 89, 88, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(67, 89, 88, 0.16) 1px, transparent 1px);
  background-size: auto, auto, 38px 38px, 38px 38px;
  transform: rotate(-4deg);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 70%, transparent);
}

.case-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 34px;
}

.case-story {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 30px;
  background: rgba(255, 253, 248, 0.78);
}

.case-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-labels span {
  padding: 7px 11px;
  border: 1px solid rgba(113, 118, 93, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.case-story h3 {
  max-width: 10em;
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0;
}

.case-story p {
  max-width: 48ch;
  font-size: 16px;
}

.case-note {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(105, 100, 82, 0.15);
}

.case-note span {
  color: var(--ink-soft);
  font-size: 15px;
}

.case-link {
  justify-self: start;
  margin-top: 2px;
}

.case-board {
  padding: 22px;
  background: rgba(255, 253, 248, 0.88);
}

.case-board-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 6px 4px 18px;
  border-bottom: 1px solid rgba(105, 100, 82, 0.14);
}

.case-board-top span,
.case-board-top strong {
  display: block;
}

.case-board-top strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.1;
}

.case-board-top small {
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--olive-dark);
  background: rgba(113, 118, 93, 0.12);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.case-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.case-delivery-grid div {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(105, 100, 82, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.case-delivery-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--bluegray);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.case-delivery-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.case-delivery-grid p {
  margin-top: 7px;
  font-size: 14px;
}

.case-outcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.72);
}

.case-outcome div {
  padding: 22px 24px;
}

.case-outcome div + div {
  border-left: 1px solid rgba(105, 100, 82, 0.14);
}

.case-outcome p {
  margin-top: 8px;
  font-size: 16px;
}

.case-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(221, 228, 216, 0.22);
  border-radius: var(--radius-lg);
  color: #f5f2e9;
  background:
    linear-gradient(135deg, rgba(23, 34, 39, 0.95), rgba(77, 91, 78, 0.9)),
    linear-gradient(90deg, rgba(94, 156, 147, 0.2), transparent);
  box-shadow: 0 28px 70px rgba(55, 62, 49, 0.22);
  position: relative;
  overflow: hidden;
}

.case-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background:
    linear-gradient(118deg, transparent 0 52%, rgba(232, 238, 225, 0.24) 53%, transparent 54%),
    linear-gradient(90deg, rgba(232, 238, 225, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(232, 238, 225, 0.1) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 86%, transparent);
}

.case-teaser-copy,
.case-teaser-media {
  position: relative;
  z-index: 1;
}

.case-teaser-copy h3 {
  margin: 10px 0 12px;
  color: #f6f3e9;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.24;
}

.case-teaser-copy > p:not(.section-kicker) {
  margin: 0;
  color: rgba(245, 242, 233, 0.72);
  font-size: 16px;
}

.case-teaser .section-kicker {
  color: rgba(228, 238, 222, 0.74);
}

.case-teaser-media,
.aftercare-visual,
.screenshot-card {
  overflow: hidden;
  border: 1px solid rgba(105, 100, 82, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.case-teaser-media img,
.aftercare-visual img,
.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.case-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 76px;
  background:
    radial-gradient(circle at 82% 18%, rgba(94, 156, 147, 0.13), transparent 28rem),
    linear-gradient(135deg, #fbf8f1 0%, #f1e8d8 100%);
  border-bottom: 1px solid rgba(107, 111, 87, 0.14);
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background:
    linear-gradient(90deg, rgba(92, 99, 76, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(92, 99, 76, 0.12) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(110deg, transparent 0%, #000 52%, transparent 100%);
}

.aftercare-hero {
  background:
    radial-gradient(circle at 78% 16%, rgba(94, 156, 147, 0.16), transparent 26rem),
    linear-gradient(135deg, #fbf8f1 0%, #eef2ed 100%);
}

.case-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.56fr);
  gap: 52px;
  align-items: center;
}

.case-hero-copy h1 {
  max-width: 10.6em;
  margin: 16px 0 22px;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.case-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.case-snapshot {
  padding: 28px;
  border: 1px solid rgba(105, 100, 82, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.aftercare-visual {
  padding: 12px;
}

.aftercare-visual-note {
  display: grid;
  gap: 4px;
  padding: 16px 4px 2px;
}

.aftercare-visual-note span {
  color: var(--olive-dark);
  font-size: 13px;
  font-weight: 700;
}

.aftercare-visual-note strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.case-snapshot-top {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(105, 100, 82, 0.14);
}

.case-snapshot-top span,
.case-snapshot-top strong {
  display: block;
}

.case-snapshot-top span,
.case-aside span,
.deliverable-item > span,
.impact-card span {
  color: var(--olive-dark);
  font-size: 13px;
  font-weight: 700;
}

.case-snapshot-top strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.3;
}

.case-snapshot dl {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
}

.case-snapshot dl div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(105, 100, 82, 0.12);
}

.case-snapshot dl div:last-child {
  border-bottom: 0;
}

.case-snapshot dt {
  color: var(--muted);
}

.case-snapshot dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.case-detail-section {
  background: #fbf8f1;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.case-aside {
  position: sticky;
  top: 110px;
  padding: 24px;
  border-left: 3px solid var(--olive);
  background: rgba(255, 253, 248, 0.64);
}

.case-aside p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.case-content h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.case-content > p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.case-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.case-problem-grid article,
.deliverable-item,
.impact-card {
  border: 1px solid rgba(105, 100, 82, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}

.case-problem-grid article {
  padding: 22px;
}

.case-problem-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--olive);
  font-size: 12px;
  font-weight: 800;
}

.case-problem-grid h3 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

.case-problem-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.deliverable-list {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.deliverable-item {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  background: rgba(255, 253, 248, 0.84);
}

.deliverable-item > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--bluegray);
  font-variant-numeric: tabular-nums;
}

.deliverable-item h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
}

.deliverable-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.case-impact-section {
  background: linear-gradient(180deg, #fbf8f1, #f2eadc);
}

.case-impact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.impact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.impact-card {
  padding: 22px;
}

.impact-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.screenshot-section {
  background: #fbf8f1;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.screenshot-card {
  margin: 0;
  padding: 12px;
}

.screenshot-card.wide {
  grid-column: 1 / -1;
}

.screenshot-card figcaption {
  padding: 13px 4px 2px;
  color: var(--ink-soft);
  font-size: 14px;
}

.roadmap-section {
  background:
    linear-gradient(90deg, rgba(113, 118, 93, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, #f6f0e6, #fbf8f1);
  background-size: 52px 52px, auto;
}

.roadmap-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.72fr);
  gap: 38px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(105, 100, 82, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow-soft);
}

.roadmap-panel h2 {
  margin: 10px 0 14px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

.roadmap-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.roadmap-steps {
  display: grid;
  gap: 10px;
}

.roadmap-steps span {
  position: relative;
  padding: 15px 18px 15px 42px;
  border: 1px solid rgba(105, 100, 82, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 700;
}

.roadmap-steps span::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  transform: translateY(-50%);
}

.tech-stack-section {
  background: #fbf8f1;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-list span {
  padding: 11px 13px;
  border: 1px solid rgba(113, 118, 93, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--ink);
  font-weight: 700;
}

.philosophy-section {
  background:
    linear-gradient(90deg, rgba(113, 118, 93, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #fcfaf4, #f4eee2);
  background-size: 52px 52px, auto;
  border-block: 1px solid rgba(107, 111, 87, 0.14);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.62fr);
  gap: 44px;
  align-items: center;
}

.philosophy-note {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(105, 100, 82, 0.16);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.philosophy-note ul {
  display: grid;
  gap: 13px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.philosophy-note li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
}

.philosophy-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
}

.industry-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 44px;
  align-items: start;
}

.industry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.industry-card {
  position: relative;
  min-height: 168px;
  aspect-ratio: 1.58;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(105, 100, 82, 0.18);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 700;
  background: #768073;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.industry-card::before,
.industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.industry-card::before {
  background:
    linear-gradient(180deg, rgba(21, 29, 26, 0.05) 0%, rgba(21, 29, 26, 0.14) 38%, rgba(21, 29, 26, 0.78) 100%),
    linear-gradient(90deg, rgba(21, 29, 26, 0.34), transparent 52%);
}

.industry-card::after {
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -34px 64px rgba(15, 22, 18, 0.2);
}

.industry-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.96) brightness(0.92);
  transform: scale(1.01);
  transition: transform 0.55s ease, filter 0.35s ease;
}

.industry-card span {
  position: relative;
  z-index: 2;
  max-width: 92%;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
}

.industry-card:hover {
  transform: translateY(-5px);
  border-color: rgba(126, 145, 108, 0.4);
  box-shadow: 0 24px 54px rgba(45, 54, 45, 0.18);
}

.industry-card:hover img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1) brightness(0.98);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 34px;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 43px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: rgba(113, 118, 93, 0.32);
}

.process-node {
  position: relative;
  padding: 18px;
}

.contact-section {
  padding: 82px 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.18), transparent 24rem),
    linear-gradient(135deg, #7e9eaa, #617f88 48%, #7f8b71);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.72fr);
  gap: 48px;
  align-items: center;
}

.contact-copy h2 {
  color: #fff;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.84);
}

.contact-section .section-kicker {
  color: rgba(255, 255, 255, 0.84);
}

.contact-section .button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

.contact-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 24px 56px rgba(33, 44, 44, 0.2);
}

.contact-brand {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(105, 100, 82, 0.16);
}

.contact-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #142229;
}

.contact-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.48);
  transform-origin: center 35%;
}

.contact-brand strong,
.contact-brand small {
  display: block;
}

.contact-brand strong {
  font-size: 18px;
}

.contact-brand small {
  color: var(--muted);
}

.contact-card dl {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
}

.contact-card dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(105, 100, 82, 0.12);
}

.contact-card dt {
  color: var(--muted);
}

.contact-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.qr-panel {
  display: grid;
  grid-template-columns: 158px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.qr-panel img {
  width: 158px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 10px 24px rgba(45, 52, 47, 0.08);
}

.qr-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer {
  padding: 24px 0;
  background: #2b332f;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.icp-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.icp-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.74);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal {
  opacity: 1;
  filter: none;
  transform: translateY(16px);
  transition: transform 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal .reveal.is-visible,
.js-reveal .hero .reveal {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .scenario-item,
  .method-step,
  .mini-version,
  .case-story,
  .case-board,
  .case-outcome,
  .process-node,
  .impact-card,
  .deliverable-item,
  .screenshot-card {
    transition: transform 520ms var(--ease), box-shadow 520ms var(--ease), border-color 520ms var(--ease);
  }

  .scenario-item:hover,
  .method-step:hover,
  .mini-version:hover,
  .process-node:hover,
  .impact-card:hover,
  .deliverable-item:hover,
  .screenshot-card:hover {
    transform: translateY(-5px);
    border-color: rgba(94, 156, 147, 0.28);
    box-shadow: 0 20px 46px rgba(68, 61, 45, 0.12);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cosmic-eyebrow,
  .cosmic-copy h1,
  .cosmic-lead,
  .cosmic-entry-grid,
  .cosmic-meta {
    animation: heroRise 980ms var(--ease) both;
  }

  .cosmic-copy h1 {
    animation-delay: 90ms;
  }

  .cosmic-lead {
    animation-delay: 180ms;
  }

  .cosmic-entry-grid {
    animation-delay: 360ms;
  }

  .cosmic-meta {
    animation-delay: 480ms;
  }

  .cosmos-canvas {
    animation: cosmosFade 1400ms var(--ease) both;
  }
}

@keyframes heroRise {
  from {
    transform: translateY(30px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes cosmosFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes starTwinkle {
  from {
    opacity: 0.46;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.44));
  }
  to {
    opacity: 0.82;
    filter: drop-shadow(0 0 7px rgba(209, 244, 255, 0.7));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js-reveal .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .cosmos-canvas {
    opacity: 0.42;
  }
}

@media (max-width: 1080px) {
  .nav-panel {
    gap: 18px;
  }

  .site-nav {
    gap: 20px;
  }

  .hero-grid,
  .cosmic-stage {
    grid-template-columns: 1fr;
  }

  .cosmic-entry-grid {
    max-width: 720px;
  }

  .workspace-shell {
    max-width: 760px;
  }

  .case-hero-grid,
  .scenario-board,
  .case-layout,
  .case-teaser,
  .case-detail-grid,
  .case-impact-grid,
  .roadmap-panel,
  .tech-stack-grid,
  .industry-layout,
  .contact-layout,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .case-aside {
    position: static;
  }

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-timeline::before {
    display: none;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .nav-wrap {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: max(16px, calc(100vw - 374px));
    top: 12px;
    z-index: 60;
    flex: 0 0 auto;
    border-color: var(--olive);
    background: var(--olive);
    box-shadow: 0 8px 18px rgba(72, 68, 52, 0.12);
  }

  .has-cosmic-hero .site-header:not(.is-scrolled) .nav-toggle {
    border-color: rgba(232, 242, 235, 0.18);
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-toggle span {
    margin: 0;
    background: #fff;
  }

  .nav-toggle span + span {
    margin-top: 5px;
  }

  .nav-toggle.is-active span + span {
    margin-top: 0;
  }

  .nav-toggle.is-active span:first-child {
    transform: translateY(1px) rotate(45deg);
  }

  .nav-toggle.is-active span:last-child {
    transform: translateY(-1px) rotate(-45deg);
  }

  .nav-panel {
    position: fixed;
    inset: 68px 16px auto 16px;
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(107, 111, 87, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(253, 251, 246, 0.99);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms var(--ease), transform 260ms var(--ease);
  }

  .nav-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .has-cosmic-hero .site-header:not(.is-scrolled) .nav-panel .site-nav {
    color: #303733;
  }

  .has-cosmic-hero .site-header:not(.is-scrolled) .nav-panel .site-nav a:hover,
  .has-cosmic-hero .site-header:not(.is-scrolled) .nav-panel .site-nav a.is-active {
    color: var(--olive-dark);
  }

  .has-cosmic-hero .site-header:not(.is-scrolled) .nav-panel .nav-phone {
    color: #fff;
    background: var(--olive);
    border-color: var(--olive);
    box-shadow: 0 10px 24px rgba(94, 99, 76, 0.18);
  }

  .site-nav {
    display: grid;
    gap: 4px;
  }

  .site-nav a {
    padding: 12px;
    border-radius: var(--radius);
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    background: rgba(113, 118, 93, 0.1);
  }

  .site-nav a::after {
    display: none;
  }

  .nav-phone {
    width: 100%;
  }

  .hero {
    padding: 96px 0 24px;
  }

  .case-hero {
    padding: 56px 0 50px;
  }

  .cosmic-stage {
    min-height: calc(100dvh - 120px);
    gap: 20px;
  }

  .cosmic-copy h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .cosmic-lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.62;
  }

  .case-hero-copy h1 {
    max-width: 9.4em;
    font-size: clamp(30px, 7.4vw, 38px);
    line-height: 1.15;
  }

  .hero-lead {
    font-size: 16px;
  }

  .metric-row,
  .workspace-body,
  .scenario-grid,
  .method-grid,
  .case-problem-grid,
  .case-delivery-grid,
  .case-outcome,
  .impact-card-grid,
  .screenshot-grid,
  .industry-list,
  .process-timeline {
    grid-template-columns: 1fr;
  }

  .case-outcome div + div {
    border-top: 1px solid rgba(105, 100, 82, 0.14);
    border-left: 0;
  }

  .method-grid::before {
    display: none;
  }

  .mini-version-grid {
    grid-template-columns: 1fr;
  }

  .mini-version.wide {
    grid-column: auto;
  }

  .section {
    padding: 62px 0;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand strong {
    font-size: 17px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-tags,
  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .workspace {
    padding: 16px;
  }

  .cosmic-copy h1 {
    max-width: 7em;
    font-size: clamp(42px, 12.5vw, 50px);
    line-height: 1.02;
  }

  .cosmic-lead {
    font-size: 14px;
    line-height: 1.54;
  }

  .cosmic-entry {
    gap: 5px;
    min-height: 76px;
    padding: 12px 48px 12px 14px;
    border-radius: 15px;
  }

  .cosmic-entry::after {
    right: 12px;
    width: 28px;
    height: 28px;
  }

  .cosmic-entry span {
    font-size: 12px;
  }

  .cosmic-entry strong {
    font-size: 14px;
    line-height: 1.36;
  }

  .cosmic-eyebrow {
    margin-bottom: 10px;
  }

  .cosmic-meta {
    display: none;
  }

  .workspace-top,
  .case-board-top,
  .case-snapshot dl div,
  .contact-card dl div,
  .qr-panel {
    grid-template-columns: 1fr;
  }

  .workspace-top,
  .case-board-top {
    display: grid;
  }

  .case-story,
  .case-board,
  .case-teaser,
  .case-snapshot,
  .roadmap-panel {
    padding: 18px;
  }

  .screenshot-card.wide {
    grid-column: auto;
  }

  .deliverable-item {
    grid-template-columns: 1fr;
  }

  .case-board-top small {
    max-width: none;
    text-align: left;
  }

  .metric-row strong {
    font-size: 27px;
  }

  .section-intro h2,
  .method-strip h2,
  .case-content h2,
  .philosophy-copy h2,
  .contact-copy h2 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .contact-card {
    padding: 18px;
  }
}

@media (max-height: 720px) and (max-width: 820px) {
  .hero {
    padding: 84px 0 16px;
  }

  .cosmic-stage {
    min-height: calc(100dvh - 100px);
    gap: 14px;
  }

  .cosmic-copy h1 {
    font-size: clamp(42px, 13vw, 54px);
  }

  .cosmic-lead {
    max-width: 34em;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
  }

  .cosmic-entry-grid {
    gap: 6px;
  }

  .cosmic-entry {
    padding: 10px 12px;
  }

  .cosmic-entry strong {
    font-size: 13px;
  }

  .cosmic-meta {
    display: none;
  }
}

@media (max-width: 820px) {
  body.has-cosmic-hero {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.has-cosmic-hero main {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  body.has-cosmic-hero .hero {
    height: auto;
    min-height: 100svh;
    padding-bottom: 0;
  }

  body.has-cosmic-hero .cosmic-stage {
    min-height: auto;
    align-items: start;
  }

  body.has-cosmic-hero .cosmic-entry-grid {
    padding-bottom: 12px;
  }

  body.has-cosmic-hero .cosmic-icp {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(calc(100% - 32px), var(--container));
    margin: 18px auto 0;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* Fun paipan entry page */
.fun-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: grid;
  align-items: end;
  padding: 120px 0 86px;
  color: #f8f4e8;
  background: #0b111d;
}

.fun-hero-media {
  position: absolute;
  inset: 0;
}

.fun-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.03);
  animation: funImageDrift 18s var(--ease) infinite alternate;
}

.fun-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 28%, rgba(116, 185, 180, 0.12), transparent 26rem),
    linear-gradient(90deg, rgba(5, 9, 16, 0.86), rgba(5, 9, 16, 0.36) 52%, rgba(5, 9, 16, 0.74));
}

.fun-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: end;
}

.fun-hero-copy {
  max-width: 760px;
}

.fun-hero-copy h1 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(58px, 9vw, 118px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
}

.fun-hero-copy p {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(248, 244, 232, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

.fun-note {
  padding: 24px;
  border: 1px solid rgba(248, 244, 232, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 22px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.fun-note span {
  color: #cfeee8;
  font-size: 13px;
  font-weight: 800;
}

.fun-note p {
  margin: 10px 0 0;
  color: rgba(248, 244, 232, 0.84);
  line-height: 1.72;
}

.fun-gallery-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(94, 156, 147, 0.12), transparent 24rem),
    linear-gradient(180deg, #fbf8f1, #f1eadc);
}

.fun-gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}

.fun-shot {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  margin: 0;
  border: 1px solid rgba(105, 100, 82, 0.14);
  border-radius: var(--radius-lg);
  background: #111a25;
  box-shadow: var(--shadow-soft);
}

.fun-shot.wide {
  grid-row: span 2;
  min-height: 574px;
}

.fun-shot img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 760ms var(--ease), opacity 760ms var(--ease);
}

.fun-shot:hover img {
  transform: scale(1.055);
}

.fun-cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

@keyframes funImageDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1.03);
  }
  to {
    transform: translate3d(-18px, 10px, 0) scale(1.06);
  }
}

@media (max-width: 900px) {
  .fun-hero-grid,
  .fun-cta {
    grid-template-columns: 1fr;
    display: grid;
  }

  .fun-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .fun-shot.wide {
    grid-row: auto;
    grid-column: span 2;
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .fun-hero {
    min-height: auto;
    padding: 108px 0 56px;
  }

  .fun-hero-copy h1 {
    font-size: clamp(46px, 16vw, 68px);
  }

  .fun-hero-copy p {
    font-size: 15px;
    line-height: 1.72;
  }

  .fun-gallery {
    grid-template-columns: 1fr;
  }

  .fun-shot,
  .fun-shot.wide {
    grid-column: auto;
    min-height: 280px;
  }
}

/* Paper compass treatment for selected paipan direction */
.paper-fun-hero {
  color: #211d17;
  background:
    radial-gradient(circle at 74% 38%, rgba(255, 255, 255, 0.6), transparent 28rem),
    radial-gradient(circle at 8% 20%, rgba(155, 47, 31, 0.1), transparent 18rem),
    linear-gradient(180deg, #f7f0e2, #e9dcc4);
}

.paper-fun-hero .fun-hero-media {
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.paper-fun-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(92, 69, 39, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 69, 39, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 86%);
  pointer-events: none;
}

.paper-fun-hero::after {
  background:
    radial-gradient(circle at 72% 42%, rgba(255, 255, 255, 0.2), transparent 22rem),
    linear-gradient(90deg, rgba(247, 240, 226, 0.08), rgba(247, 240, 226, 0.48) 50%, rgba(231, 220, 196, 0.28));
}

.paper-fun-hero .section-kicker {
  color: #9b2f1f;
}

.paper-fun-hero .fun-hero-copy h1 {
  max-width: 5em;
  color: #211d17;
  text-shadow: none;
}

.paper-fun-hero .fun-hero-copy p {
  color: rgba(33, 29, 23, 0.72);
}

.paper-fun-hero .button-primary {
  background: #1e2c28;
  color: #fff4df;
  box-shadow: 0 18px 38px rgba(30, 44, 40, 0.22);
}

.paper-fun-hero .button-ghost {
  border-color: rgba(92, 69, 39, 0.18);
  background: rgba(255, 255, 255, 0.52);
  color: #211d17;
}

.paper-fun-card {
  display: grid;
  gap: 18px;
  border-color: rgba(92, 69, 39, 0.18);
  background: rgba(255, 253, 247, 0.72);
  color: rgba(33, 29, 23, 0.72);
  box-shadow: 0 28px 80px rgba(92, 69, 39, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: none;
}

.paper-fun-card span {
  color: #9b2f1f;
}

.paper-fun-card p {
  color: rgba(33, 29, 23, 0.72);
}

.fun-paper-compass {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1;
  margin: 0 auto 4px;
  border: 1px solid rgba(92, 69, 39, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.56), transparent 28%),
    conic-gradient(from -20deg, rgba(150, 108, 54, 0.12), rgba(255, 255, 255, 0.22), rgba(30, 44, 40, 0.1), rgba(155, 47, 31, 0.08), rgba(150, 108, 54, 0.12));
}

.fun-paper-compass i {
  position: absolute;
  border: 1px solid rgba(130, 91, 43, 0.25);
  border-radius: 50%;
}

.fun-paper-compass i:nth-child(1) { inset: 24px; }
.fun-paper-compass i:nth-child(2) { inset: 66px; }
.fun-paper-compass i:nth-child(3) { inset: 108px; }

.fun-paper-compass b {
  position: absolute;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 251, 241, 0.92);
  color: #132420;
  font-size: 20px;
  box-shadow: 0 12px 26px rgba(92, 69, 39, 0.1);
}

.fun-paper-compass b:nth-of-type(1) { left: calc(50% - 23px); top: 10px; }
.fun-paper-compass b:nth-of-type(2) { right: 42px; top: 44px; }
.fun-paper-compass b:nth-of-type(3) { right: 10px; top: calc(50% - 23px); }
.fun-paper-compass b:nth-of-type(4) { right: 42px; bottom: 44px; }
.fun-paper-compass b:nth-of-type(5) { left: calc(50% - 23px); bottom: 10px; }
.fun-paper-compass b:nth-of-type(6) { left: 42px; bottom: 44px; }
.fun-paper-compass b:nth-of-type(7) { left: 10px; top: calc(50% - 23px); }
.fun-paper-compass b:nth-of-type(8) { left: 42px; top: 44px; }

.fun-paper-compass strong {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 102px;
  height: 102px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #1e2c28;
  color: #f7dfab;
  font-size: 46px;
  box-shadow: 0 20px 50px rgba(30, 44, 40, 0.22);
}

.paper-fun-hero + .fun-gallery-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(155, 47, 31, 0.08), transparent 24rem),
    linear-gradient(180deg, #fbf8f1, #f1eadc);
}

.paper-fun-hero + .fun-gallery-section .fun-shot img {
  filter: sepia(0.22) saturate(0.75) contrast(0.94);
  opacity: 0.82;
}

@media (max-width: 900px) {
  .paper-fun-card {
    max-width: 480px;
  }
}

@media (max-width: 560px) {
  .paper-fun-hero .fun-hero-copy h1 {
    font-size: clamp(54px, 18vw, 76px);
  }

  .fun-paper-compass {
    width: min(100%, 300px);
  }
}

/* Inner page atmosphere */
body.has-inner-atmosphere {
  --tone-bg-1: #fbf8f1;
  --tone-bg-2: #f1ece0;
  --tone-bg-3: #f7f2e8;
  --tone-wash-a: rgba(94, 156, 147, 0.22);
  --tone-wash-b: rgba(107, 135, 147, 0.16);
  --tone-wash-c: rgba(183, 164, 116, 0.13);
  --tone-line: rgba(82, 103, 96, 0.18);
  --tone-card: rgba(255, 253, 248, 0.74);
  --tone-card-strong: rgba(255, 253, 248, 0.88);
  --tone-card-border: rgba(105, 100, 82, 0.15);
  --tone-accent: #5e9c93;
  --tone-accent-deep: #486d67;
  --tone-shadow: rgba(58, 69, 64, 0.14);
  background:
    radial-gradient(circle at 12% 12%, var(--tone-wash-a), transparent 31rem),
    radial-gradient(circle at 82% 4%, var(--tone-wash-b), transparent 30rem),
    radial-gradient(circle at 66% 92%, var(--tone-wash-c), transparent 34rem),
    linear-gradient(180deg, var(--tone-bg-1) 0%, var(--tone-bg-2) 48%, var(--tone-bg-3) 100%);
}

body.page-tone-tools {
  --tone-bg-1: #fbf8ef;
  --tone-bg-2: #eef5f0;
  --tone-bg-3: #f8f1e5;
  --tone-wash-a: rgba(94, 156, 147, 0.26);
  --tone-wash-b: rgba(91, 132, 145, 0.17);
  --tone-wash-c: rgba(184, 160, 104, 0.13);
  --tone-line: rgba(61, 114, 110, 0.18);
  --tone-accent: #5e9c93;
  --tone-accent-deep: #426b66;
}

body.page-tone-proof {
  --tone-bg-1: #fbf6eb;
  --tone-bg-2: #efe8d9;
  --tone-bg-3: #f4f1e8;
  --tone-wash-a: rgba(157, 126, 83, 0.2);
  --tone-wash-b: rgba(91, 122, 103, 0.15);
  --tone-wash-c: rgba(126, 151, 158, 0.12);
  --tone-line: rgba(132, 104, 73, 0.18);
  --tone-accent: #8c7655;
  --tone-accent-deep: #5d6f62;
}

body.page-tone-market {
  --tone-bg-1: #f7f8f0;
  --tone-bg-2: #eaf2eb;
  --tone-bg-3: #f5efe4;
  --tone-wash-a: rgba(108, 147, 120, 0.23);
  --tone-wash-b: rgba(94, 126, 148, 0.15);
  --tone-wash-c: rgba(178, 160, 103, 0.13);
  --tone-line: rgba(79, 118, 104, 0.18);
  --tone-accent: #6f9177;
  --tone-accent-deep: #435f55;
}

body.page-tone-friction {
  --tone-bg-1: #fbf6ef;
  --tone-bg-2: #f2e8dc;
  --tone-bg-3: #f7f1e8;
  --tone-wash-a: rgba(151, 94, 72, 0.17);
  --tone-wash-b: rgba(105, 132, 102, 0.14);
  --tone-wash-c: rgba(94, 126, 148, 0.1);
  --tone-line: rgba(142, 100, 78, 0.16);
  --tone-accent: #95705b;
  --tone-accent-deep: #5f6452;
}

body.page-tone-flow {
  --tone-bg-1: #f6f6ee;
  --tone-bg-2: #e9eff0;
  --tone-bg-3: #f5efe4;
  --tone-wash-a: rgba(82, 111, 144, 0.18);
  --tone-wash-b: rgba(83, 140, 124, 0.17);
  --tone-wash-c: rgba(154, 144, 102, 0.12);
  --tone-line: rgba(77, 106, 137, 0.17);
  --tone-accent: #607c94;
  --tone-accent-deep: #485f72;
}

body.page-tone-contact {
  --tone-bg-1: #f5f7f0;
  --tone-bg-2: #e6f0ef;
  --tone-bg-3: #f2eadf;
  --tone-wash-a: rgba(101, 155, 158, 0.24);
  --tone-wash-b: rgba(121, 142, 101, 0.16);
  --tone-wash-c: rgba(226, 207, 169, 0.13);
  --tone-line: rgba(95, 146, 148, 0.18);
  --tone-accent: #6fa0a2;
  --tone-accent-deep: #4d7175;
}

body.page-tone-oracle {
  --tone-bg-1: #fbf4e7;
  --tone-bg-2: #efe4d2;
  --tone-bg-3: #f7f0e4;
  --tone-wash-a: rgba(155, 47, 31, 0.14);
  --tone-wash-b: rgba(184, 132, 71, 0.15);
  --tone-wash-c: rgba(60, 70, 68, 0.1);
  --tone-line: rgba(124, 82, 67, 0.18);
  --tone-accent: #9b5b43;
  --tone-accent-deep: #3a4a43;
}

body.has-inner-atmosphere::before {
  opacity: 0.42;
  background-image:
    radial-gradient(circle, var(--tone-line) 0 1px, transparent 1.5px);
  background-size: 34px 34px;
  mask-image:
    radial-gradient(circle at 20% 18%, rgba(0, 0, 0, 0.72), transparent 34rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent 72%);
}

.inner-atmosphere-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.78;
}

body.has-inner-atmosphere main,
body.has-inner-atmosphere .site-footer {
  position: relative;
  z-index: 1;
}

body.has-inner-atmosphere .site-header {
  border-bottom-color: rgba(105, 100, 82, 0.12);
  background: rgba(253, 251, 246, 0.82);
}

body.has-inner-atmosphere .site-header.is-scrolled {
  background: rgba(253, 251, 246, 0.94);
}

body.has-inner-atmosphere .page-main {
  isolation: isolate;
}

body.has-inner-atmosphere .page-hero,
body.has-inner-atmosphere .case-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(340px, 44vh, 520px);
  display: grid;
  align-items: center;
  padding: 108px 0 86px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.78), transparent 21rem),
    radial-gradient(circle at 84% 24%, var(--tone-wash-a), transparent 31rem),
    radial-gradient(circle at 66% 86%, var(--tone-wash-b), transparent 28rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.76), rgba(246, 241, 231, 0.62));
  border-bottom: 1px solid rgba(105, 100, 82, 0.13);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.42);
}

body.has-inner-atmosphere .page-hero::before,
body.has-inner-atmosphere .case-hero::before,
body.has-inner-atmosphere .contact-section.page-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
  background:
    radial-gradient(circle at 20% 24%, var(--tone-wash-a), transparent 24rem),
    radial-gradient(circle at 76% 20%, rgba(255, 255, 255, 0.42), transparent 18rem),
    linear-gradient(116deg, transparent 0 42%, var(--tone-line) 43%, transparent 44%),
    linear-gradient(74deg, transparent 0 62%, var(--tone-line) 63%, transparent 64%);
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.64) 58%, transparent 100%);
}

body.has-inner-atmosphere .page-hero::after,
body.has-inner-atmosphere .case-hero::after {
  content: "";
  position: absolute;
  right: clamp(-120px, -6vw, -42px);
  bottom: clamp(-140px, -10vw, -70px);
  z-index: 0;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border: 1px solid var(--tone-line);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 34px rgba(255, 255, 255, 0.1),
    inset 0 0 0 92px rgba(255, 255, 255, 0.08);
  opacity: 0.54;
}

body.has-inner-atmosphere .page-hero .container,
body.has-inner-atmosphere .case-hero .container,
body.has-inner-atmosphere .contact-section .container {
  position: relative;
  z-index: 1;
}

body.has-inner-atmosphere .page-hero h1,
body.has-inner-atmosphere .case-hero-copy h1,
body.has-inner-atmosphere .contact-copy h1 {
  margin: 0;
  color: #1e2928;
  font-size: clamp(38px, 5.7vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

body.has-inner-atmosphere .page-hero p:not(.section-kicker) {
  max-width: 760px;
  margin: 20px 0 0;
  color: #46514e;
  font-size: 18px;
  line-height: 1.86;
}

body.has-inner-atmosphere .section-warm,
body.has-inner-atmosphere .section-muted {
  background:
    radial-gradient(circle at 86% 18%, var(--tone-wash-c), transparent 26rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(246, 241, 231, 0.78));
}

body.has-inner-atmosphere .scenario-item,
body.has-inner-atmosphere .method-step,
body.has-inner-atmosphere .mini-version,
body.has-inner-atmosphere .case-story,
body.has-inner-atmosphere .case-board,
body.has-inner-atmosphere .case-outcome,
body.has-inner-atmosphere .process-node,
body.has-inner-atmosphere .case-snapshot,
body.has-inner-atmosphere .aftercare-visual,
body.has-inner-atmosphere .screenshot-card,
body.has-inner-atmosphere .contact-card {
  border-color: var(--tone-card-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 253, 248, 0.3)),
    var(--tone-card);
  box-shadow:
    0 22px 56px var(--tone-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

body.has-inner-atmosphere .case-board,
body.has-inner-atmosphere .contact-card,
body.has-inner-atmosphere .case-snapshot {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 253, 248, 0.44)),
    var(--tone-card-strong);
}

body.has-inner-atmosphere .method-step > span,
body.has-inner-atmosphere .process-node > span,
body.has-inner-atmosphere .case-delivery-grid span {
  color: #fff;
  background: linear-gradient(135deg, var(--tone-accent-deep), var(--tone-accent));
}

body.has-inner-atmosphere .section-kicker,
body.has-inner-atmosphere .scenario-item span,
body.has-inner-atmosphere .mini-version span,
body.has-inner-atmosphere .case-labels span,
body.has-inner-atmosphere .case-note strong,
body.has-inner-atmosphere .case-board-top span,
body.has-inner-atmosphere .case-outcome span,
body.has-inner-atmosphere .philosophy-note span {
  color: var(--tone-accent-deep);
}

body.has-inner-atmosphere .case-labels span,
body.has-inner-atmosphere .case-board-top small {
  border-color: var(--tone-card-border);
  background: rgba(255, 255, 255, 0.48);
}

body.has-inner-atmosphere .button-primary {
  background: linear-gradient(135deg, var(--tone-accent-deep), var(--tone-accent));
  box-shadow: 0 18px 42px rgba(65, 86, 78, 0.24);
}

body.has-inner-atmosphere .button-primary:hover {
  background: linear-gradient(135deg, #263c3c, var(--tone-accent-deep));
}

body.has-inner-atmosphere .case-section {
  background:
    radial-gradient(circle at 16% 16%, var(--tone-wash-a), transparent 26rem),
    radial-gradient(circle at 88% 62%, var(--tone-wash-b), transparent 30rem),
    linear-gradient(180deg, rgba(250, 247, 239, 0.68), rgba(239, 232, 218, 0.76));
}

body.has-inner-atmosphere .case-section::before,
body.has-inner-atmosphere .case-section::after {
  opacity: 0.2;
  background:
    radial-gradient(circle, var(--tone-line) 0 1px, transparent 1.5px);
  background-size: 30px 30px;
}

body.has-inner-atmosphere .process-timeline::before,
body.has-inner-atmosphere .method-grid::before {
  background: linear-gradient(90deg, transparent, var(--tone-line), transparent);
}

body.has-inner-atmosphere .industry-card {
  box-shadow: 0 18px 42px var(--tone-shadow);
}

body.has-inner-atmosphere .contact-section.page-contact {
  position: relative;
  overflow: hidden;
  min-height: calc(100dvh - 78px);
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.2), transparent 25rem),
    radial-gradient(circle at 74% 20%, rgba(190, 214, 207, 0.18), transparent 29rem),
    linear-gradient(135deg, rgba(91, 126, 132, 0.94), rgba(95, 121, 117, 0.9) 52%, rgba(114, 132, 99, 0.88));
}

body.has-inner-atmosphere .contact-section.page-contact::before {
  opacity: 0.36;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.22), transparent 22rem),
    linear-gradient(118deg, transparent 0 48%, rgba(255, 255, 255, 0.16) 49%, transparent 50%),
    linear-gradient(70deg, transparent 0 65%, rgba(255, 255, 255, 0.12) 66%, transparent 67%);
  mask-image: linear-gradient(90deg, #000, transparent 86%);
}

body.has-inner-atmosphere .contact-copy h1 {
  max-width: 12.8em;
  color: #fff;
  font-size: clamp(34px, 4.1vw, 56px);
  line-height: 1.12;
  text-shadow: 0 14px 34px rgba(24, 38, 38, 0.24);
}

body.has-inner-atmosphere .contact-copy p,
body.has-inner-atmosphere .contact-section .section-kicker {
  color: rgba(255, 255, 255, 0.86);
}

body.has-inner-atmosphere .contact-section .button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

body.page-tone-oracle .paper-fun-hero {
  background:
    radial-gradient(circle at 74% 24%, rgba(155, 47, 31, 0.12), transparent 24rem),
    linear-gradient(135deg, rgba(248, 239, 222, 0.92), rgba(231, 213, 185, 0.88));
}

body.page-tone-oracle .paper-fun-hero::before {
  opacity: 0.24;
}

body.page-tone-oracle .paper-fun-hero::after {
  background:
    linear-gradient(90deg, rgba(248, 239, 222, 0.82), rgba(248, 239, 222, 0.42) 46%, rgba(35, 45, 40, 0.46)),
    radial-gradient(circle at 72% 40%, rgba(155, 47, 31, 0.14), transparent 22rem);
}

body.has-inner-atmosphere .site-footer {
  background:
    linear-gradient(90deg, rgba(30, 43, 40, 0.98), rgba(38, 52, 47, 0.96)),
    var(--tone-accent-deep);
}

@media (hover: hover) and (pointer: fine) {
  body.has-inner-atmosphere .scenario-item:hover,
  body.has-inner-atmosphere .method-step:hover,
  body.has-inner-atmosphere .mini-version:hover,
  body.has-inner-atmosphere .case-story:hover,
  body.has-inner-atmosphere .case-board:hover,
  body.has-inner-atmosphere .process-node:hover,
  body.has-inner-atmosphere .contact-card:hover {
    border-color: rgba(255, 255, 255, 0.54);
    box-shadow:
      0 28px 72px rgba(58, 69, 64, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }
}

@media (max-width: 820px) {
  .inner-atmosphere-canvas {
    opacity: 0.58;
  }

  body.has-inner-atmosphere .page-hero,
  body.has-inner-atmosphere .case-hero {
    min-height: auto;
    padding: 72px 0 58px;
  }

  body.has-inner-atmosphere .page-hero h1,
  body.has-inner-atmosphere .case-hero-copy h1,
  body.has-inner-atmosphere .contact-copy h1 {
    font-size: clamp(31px, 8.6vw, 44px);
    line-height: 1.16;
  }

  body.has-inner-atmosphere .page-hero p:not(.section-kicker) {
    font-size: 16px;
    line-height: 1.76;
  }

  body.has-inner-atmosphere .contact-section.page-contact {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-atmosphere-canvas {
    opacity: 0.48;
  }
}

/* UI UX Pro Max inner-page polish */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(94, 156, 147, 0.42);
  outline-offset: 4px;
}

body.has-inner-atmosphere {
  --ui-surface: rgba(255, 253, 248, 0.82);
  --ui-surface-strong: rgba(255, 253, 248, 0.94);
  --ui-border: rgba(64, 79, 73, 0.15);
  --ui-border-strong: rgba(64, 79, 73, 0.22);
  --ui-text-muted: #53605c;
  --ui-shadow-sm: 0 12px 30px rgba(58, 69, 64, 0.09);
  --ui-shadow-md: 0 24px 60px rgba(58, 69, 64, 0.13);
  --ui-shadow-lg: 0 34px 86px rgba(58, 69, 64, 0.16);
}

body.has-inner-atmosphere .page-main > .section {
  padding-block: clamp(68px, 7vw, 108px);
}

body.has-inner-atmosphere .page-main > .section + .section {
  border-top: 1px solid rgba(64, 79, 73, 0.08);
}

body.has-inner-atmosphere .page-hero,
body.has-inner-atmosphere .case-hero {
  min-height: clamp(360px, 42vh, 500px);
  padding-block: clamp(90px, 9vw, 126px) clamp(66px, 7vw, 92px);
}

body.has-inner-atmosphere .page-hero h1,
body.has-inner-atmosphere .case-hero-copy h1 {
  max-width: 11.6em;
  font-size: clamp(36px, 5.2vw, 64px);
}

body.has-inner-atmosphere .page-hero p:not(.section-kicker),
body.has-inner-atmosphere .case-hero-copy p,
body.has-inner-atmosphere .section-intro p:not(.section-kicker),
body.has-inner-atmosphere .case-content > p,
body.has-inner-atmosphere .roadmap-panel p {
  color: var(--ui-text-muted);
}

body.has-inner-atmosphere .section-intro {
  position: relative;
}

body.has-inner-atmosphere .section-intro::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tone-accent-deep), rgba(255, 255, 255, 0));
}

body.has-inner-atmosphere .section-intro h2,
body.has-inner-atmosphere .method-strip h2,
body.has-inner-atmosphere .case-content h2,
body.has-inner-atmosphere .philosophy-copy h2,
body.has-inner-atmosphere .roadmap-panel h2 {
  max-width: 12.4em;
  text-wrap: balance;
}

body.has-inner-atmosphere .section-kicker {
  letter-spacing: 0.08em;
}

body.has-inner-atmosphere .scenario-item,
body.has-inner-atmosphere .method-step,
body.has-inner-atmosphere .mini-version,
body.has-inner-atmosphere .case-story,
body.has-inner-atmosphere .case-board,
body.has-inner-atmosphere .process-node,
body.has-inner-atmosphere .case-problem-grid article,
body.has-inner-atmosphere .deliverable-item,
body.has-inner-atmosphere .impact-card,
body.has-inner-atmosphere .case-snapshot,
body.has-inner-atmosphere .aftercare-visual,
body.has-inner-atmosphere .screenshot-card,
body.has-inner-atmosphere .philosophy-note,
body.has-inner-atmosphere .roadmap-panel,
body.has-inner-atmosphere .contact-card {
  position: relative;
  overflow: hidden;
  border-color: var(--ui-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 253, 248, 0.4)),
    var(--ui-surface);
  box-shadow: var(--ui-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

body.has-inner-atmosphere .scenario-item::before,
body.has-inner-atmosphere .method-step::before,
body.has-inner-atmosphere .mini-version::before,
body.has-inner-atmosphere .process-node::before,
body.has-inner-atmosphere .case-problem-grid article::before,
body.has-inner-atmosphere .deliverable-item::before,
body.has-inner-atmosphere .impact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tone-accent-deep), var(--tone-accent), transparent);
  opacity: 0.72;
}

body.has-inner-atmosphere .case-board,
body.has-inner-atmosphere .case-snapshot,
body.has-inner-atmosphere .contact-card,
body.has-inner-atmosphere .roadmap-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 253, 248, 0.58)),
    var(--ui-surface-strong);
  box-shadow: var(--ui-shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.has-inner-atmosphere .scenario-item h3,
body.has-inner-atmosphere .method-step h3,
body.has-inner-atmosphere .mini-version h3,
body.has-inner-atmosphere .case-problem-grid h3,
body.has-inner-atmosphere .deliverable-item h3,
body.has-inner-atmosphere .process-node h3 {
  letter-spacing: 0;
  text-wrap: balance;
}

body.has-inner-atmosphere .scenario-grid,
body.has-inner-atmosphere .case-problem-grid,
body.has-inner-atmosphere .impact-card-grid,
body.has-inner-atmosphere .screenshot-grid {
  gap: 16px;
}

body.has-inner-atmosphere .method-grid,
body.has-inner-atmosphere .mini-version-grid,
body.has-inner-atmosphere .case-layout,
body.has-inner-atmosphere .case-teaser,
body.has-inner-atmosphere .case-detail-grid,
body.has-inner-atmosphere .case-impact-grid,
body.has-inner-atmosphere .tech-stack-grid,
body.has-inner-atmosphere .philosophy-grid,
body.has-inner-atmosphere .industry-layout,
body.has-inner-atmosphere .contact-layout {
  gap: clamp(24px, 4vw, 52px);
}

body.has-inner-atmosphere .button {
  min-height: 46px;
  box-shadow: none;
}

body.has-inner-atmosphere .button-primary {
  box-shadow: 0 16px 34px rgba(65, 86, 78, 0.22);
}

body.has-inner-atmosphere .button-ghost {
  background: rgba(255, 255, 255, 0.42);
}

body.has-inner-atmosphere .case-aside {
  border-left: 0;
  border-top: 3px solid var(--tone-accent);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.62);
  box-shadow: var(--ui-shadow-sm);
}

body.has-inner-atmosphere .case-delivery-grid div,
body.has-inner-atmosphere .case-outcome,
body.has-inner-atmosphere .roadmap-steps span,
body.has-inner-atmosphere .tech-list span {
  border-color: var(--ui-border);
  background: rgba(255, 255, 255, 0.66);
}

body.has-inner-atmosphere .case-delivery-grid strong,
body.has-inner-atmosphere .case-snapshot-top strong,
body.has-inner-atmosphere .contact-brand strong {
  letter-spacing: 0;
}

body.has-inner-atmosphere .case-teaser {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--ui-shadow-lg);
}

body.has-inner-atmosphere .case-teaser-media img,
body.has-inner-atmosphere .aftercare-visual img,
body.has-inner-atmosphere .screenshot-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

body.has-inner-atmosphere .screenshot-card.wide img {
  aspect-ratio: 21 / 9;
}

body.has-inner-atmosphere .screenshot-card figcaption {
  padding: 14px 6px 4px;
  color: var(--ui-text-muted);
  font-weight: 600;
}

body.has-inner-atmosphere .industry-card {
  min-height: 190px;
  box-shadow: var(--ui-shadow-sm);
}

body.has-inner-atmosphere .industry-card span {
  font-size: 18px;
}

body.has-inner-atmosphere .contact-card dl div {
  grid-template-columns: 92px 1fr;
}

body.has-inner-atmosphere .qr-panel {
  padding-top: 4px;
}

@media (hover: hover) and (pointer: fine) {
  body.has-inner-atmosphere .scenario-item:hover,
  body.has-inner-atmosphere .method-step:hover,
  body.has-inner-atmosphere .mini-version:hover,
  body.has-inner-atmosphere .case-problem-grid article:hover,
  body.has-inner-atmosphere .deliverable-item:hover,
  body.has-inner-atmosphere .impact-card:hover,
  body.has-inner-atmosphere .process-node:hover,
  body.has-inner-atmosphere .screenshot-card:hover {
    transform: translateY(-3px);
    border-color: var(--ui-border-strong);
    box-shadow: var(--ui-shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  }

  body.has-inner-atmosphere .case-teaser-media:hover img,
  body.has-inner-atmosphere .aftercare-visual:hover img,
  body.has-inner-atmosphere .screenshot-card:hover img {
    transform: scale(1.018);
  }
}

@media (min-width: 561px) and (max-width: 820px) {
  body.has-inner-atmosphere .industry-list,
  body.has-inner-atmosphere .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.has-inner-atmosphere .page-main > .section {
    padding-block: 58px;
  }

  body.has-inner-atmosphere .page-hero,
  body.has-inner-atmosphere .case-hero {
    padding-block: 76px 56px;
  }

  body.has-inner-atmosphere .section-intro::before {
    margin-bottom: 14px;
  }

  body.has-inner-atmosphere .case-aside {
    position: relative;
    top: auto;
  }

  body.has-inner-atmosphere .case-teaser-media img,
  body.has-inner-atmosphere .aftercare-visual img,
  body.has-inner-atmosphere .screenshot-card img,
  body.has-inner-atmosphere .screenshot-card.wide img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 520px) {
  body.has-inner-atmosphere .scenario-item,
  body.has-inner-atmosphere .method-step,
  body.has-inner-atmosphere .mini-version,
  body.has-inner-atmosphere .case-story,
  body.has-inner-atmosphere .case-board,
  body.has-inner-atmosphere .process-node,
  body.has-inner-atmosphere .case-problem-grid article,
  body.has-inner-atmosphere .deliverable-item,
  body.has-inner-atmosphere .impact-card,
  body.has-inner-atmosphere .case-snapshot,
  body.has-inner-atmosphere .philosophy-note,
  body.has-inner-atmosphere .contact-card {
    padding: 18px;
  }

  body.has-inner-atmosphere .contact-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body.has-inner-atmosphere .industry-card {
    min-height: 164px;
  }
}

/* Cosmic bagua refresh for the fun paipan page */
body.page-tone-oracle {
  --oracle-space-ink: #050711;
  --oracle-space-blue: #0b1630;
  --oracle-space-violet: #160b28;
  --oracle-star-gold: rgba(255, 221, 156, 0.86);
  --oracle-star-cyan: rgba(156, 233, 255, 0.62);
  background:
    radial-gradient(circle at 58% 36%, rgba(121, 70, 186, 0.24), transparent 34rem),
    radial-gradient(circle at 22% 66%, rgba(45, 168, 178, 0.16), transparent 30rem),
    linear-gradient(135deg, var(--oracle-space-ink), var(--oracle-space-blue) 52%, var(--oracle-space-violet));
}

body.page-tone-oracle .paper-fun-hero {
  min-height: min(840px, calc(100vh - 78px));
  color: #fff6e7;
  background:
    radial-gradient(circle at 67% 42%, rgba(255, 222, 154, 0.2), transparent 18rem),
    radial-gradient(circle at 42% 46%, rgba(104, 88, 220, 0.26), transparent 38rem),
    radial-gradient(circle at 17% 52%, rgba(48, 196, 219, 0.14), transparent 30rem),
    linear-gradient(130deg, #030711 0%, #081429 46%, #170a27 78%, #03040b 100%);
}

body.page-tone-oracle .paper-fun-hero .fun-hero-media {
  opacity: 0.08;
  mix-blend-mode: screen;
}

body.page-tone-oracle .paper-fun-hero::before {
  z-index: 1;
  opacity: 0.58;
  background:
    radial-gradient(circle, rgba(255, 247, 218, 0.74) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(156, 233, 255, 0.34) 0 1px, transparent 1.5px);
  background-position: 0 0, 46px 72px;
  background-size: 118px 118px, 186px 186px;
  mask-image: radial-gradient(circle at 62% 44%, #000 0%, rgba(0, 0, 0, 0.74) 42%, transparent 86%);
  animation: oracleStarFieldDrift 32s linear infinite;
}

body.page-tone-oracle .paper-fun-hero::after {
  z-index: 1;
  background:
    radial-gradient(circle at 68% 42%, rgba(255, 236, 180, 0.18), transparent 18rem),
    radial-gradient(circle at 46% 40%, rgba(153, 103, 255, 0.18), transparent 34rem),
    linear-gradient(90deg, rgba(2, 4, 10, 0.72), rgba(3, 6, 14, 0.28) 48%, rgba(3, 5, 10, 0.7));
}

.cosmic-bagua-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.cosmic-bagua-orbit::before,
.cosmic-bagua-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cosmic-bagua-orbit::before {
  right: -18vw;
  top: 50%;
  width: min(88vw, 1120px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background:
    radial-gradient(circle, rgba(255, 225, 158, 0.18), transparent 16%),
    radial-gradient(circle, rgba(80, 209, 230, 0.12), transparent 44%),
    radial-gradient(circle, rgba(136, 82, 218, 0.18), transparent 68%);
  filter: blur(24px);
  opacity: 0.86;
}

.cosmic-bagua-orbit::after {
  left: 8%;
  top: 18%;
  width: min(38vw, 520px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(50, 195, 225, 0.16), transparent 66%);
  filter: blur(34px);
  opacity: 0.8;
}

.cosmic-bagua-disc {
  position: absolute;
  right: clamp(-420px, -18vw, -180px);
  top: 50%;
  width: min(88vw, 1040px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 230, 172, 0.22);
  border-radius: 50%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 236, 182, 0.16) 0 10%, transparent 11%),
    conic-gradient(from 12deg, rgba(255, 236, 182, 0.12), rgba(97, 214, 229, 0.16), rgba(142, 100, 255, 0.18), rgba(255, 169, 111, 0.12), rgba(255, 236, 182, 0.12));
  box-shadow:
    0 0 72px rgba(132, 103, 255, 0.28),
    inset 0 0 60px rgba(255, 238, 192, 0.1);
  opacity: 0.82;
  animation: cosmicBaguaSpin 96s linear infinite;
}

.cosmic-bagua-disc::before,
.cosmic-bagua-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.cosmic-bagua-disc::before {
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 235, 184, 0.2) 0 1deg, transparent 1deg 22.5deg),
    repeating-conic-gradient(from 11.25deg, transparent 0 20deg, rgba(147, 230, 255, 0.1) 20deg 22.5deg);
  mask-image: radial-gradient(circle, transparent 0 22%, #000 23% 78%, transparent 79%);
}

.cosmic-bagua-disc::after {
  inset: 9%;
  border: 1px solid rgba(255, 229, 171, 0.2);
  box-shadow:
    inset 0 0 0 8vw rgba(255, 255, 255, 0.015),
    inset 0 0 0 13vw rgba(97, 214, 229, 0.025),
    inset 0 0 0 18vw rgba(255, 229, 171, 0.03);
}

.bagua-ring {
  position: absolute;
  border: 1px solid rgba(255, 231, 172, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(120, 210, 255, 0.08);
}

.bagua-ring-one { inset: 9%; }
.bagua-ring-two { inset: 22%; }
.bagua-ring-three { inset: 35%; }

.bagua-trigram {
  position: absolute;
  width: clamp(54px, 7vw, 92px);
  height: clamp(54px, 7vw, 92px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 229, 171, 0.23);
  border-radius: 50%;
  color: rgba(255, 241, 202, 0.92);
  background: rgba(7, 13, 27, 0.48);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  box-shadow:
    0 0 28px rgba(255, 226, 158, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.bagua-qian { left: calc(50% - clamp(27px, 3.5vw, 46px)); top: 5.6%; }
.bagua-dui { right: 17%; top: 17%; }
.bagua-li { right: 5.6%; top: calc(50% - clamp(27px, 3.5vw, 46px)); }
.bagua-zhen { right: 17%; bottom: 17%; }
.bagua-xun { left: calc(50% - clamp(27px, 3.5vw, 46px)); bottom: 5.6%; }
.bagua-kan { left: 17%; bottom: 17%; }
.bagua-gen { left: 5.6%; top: calc(50% - clamp(27px, 3.5vw, 46px)); }
.bagua-kun { left: 17%; top: 17%; }

.bagua-yinyang {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(112px, 15vw, 190px);
  height: clamp(112px, 15vw, 190px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 226, 160, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  color: #ffe7ad;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 243, 200, 0.18), transparent 36%),
    rgba(5, 10, 22, 0.78);
  font-size: clamp(52px, 8vw, 96px);
  box-shadow:
    0 0 44px rgba(255, 215, 139, 0.28),
    0 0 92px rgba(114, 99, 255, 0.2),
    inset 0 0 32px rgba(255, 229, 171, 0.1);
}

body.page-tone-oracle .fun-hero-grid {
  z-index: 2;
}

body.page-tone-oracle .paper-fun-hero .section-kicker,
body.page-tone-oracle .paper-fun-card span {
  color: #ffe0a0;
}

body.page-tone-oracle .paper-fun-hero .fun-hero-copy h1 {
  color: #fff4dc;
  text-shadow: 0 0 28px rgba(255, 215, 139, 0.24), 0 22px 60px rgba(0, 0, 0, 0.46);
}

body.page-tone-oracle .paper-fun-hero .fun-hero-copy p,
body.page-tone-oracle .paper-fun-card p {
  color: rgba(255, 246, 225, 0.78);
}

body.page-tone-oracle .paper-fun-hero .button-primary {
  color: #06101a;
  background: linear-gradient(135deg, #ffe0a0, #72d4e6);
  box-shadow: 0 18px 46px rgba(99, 210, 231, 0.24);
}

body.page-tone-oracle .paper-fun-hero .button-ghost {
  border-color: rgba(255, 229, 171, 0.26);
  color: #fff4dc;
  background: rgba(255, 255, 255, 0.08);
}

body.page-tone-oracle .paper-fun-card {
  border-color: rgba(255, 229, 171, 0.2);
  color: rgba(255, 246, 225, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(4, 9, 20, 0.48);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

body.page-tone-oracle .fun-paper-compass {
  border-color: rgba(255, 229, 171, 0.18);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 229, 171, 0.14), transparent 26%),
    conic-gradient(from -20deg, rgba(255, 229, 171, 0.14), rgba(98, 214, 235, 0.13), rgba(151, 103, 255, 0.12), rgba(255, 229, 171, 0.14));
}

body.page-tone-oracle .fun-paper-compass i {
  border-color: rgba(255, 229, 171, 0.22);
}

body.page-tone-oracle .fun-paper-compass b {
  border: 1px solid rgba(255, 229, 171, 0.15);
  color: #ffe5ab;
  background: rgba(5, 10, 22, 0.62);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

body.page-tone-oracle .fun-paper-compass strong {
  color: #ffe5ab;
  background: rgba(5, 10, 22, 0.86);
  box-shadow: 0 0 42px rgba(255, 215, 139, 0.18);
}

@keyframes cosmicBaguaSpin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes oracleStarFieldDrift {
  from {
    background-position: 0 0, 46px 72px;
  }
  to {
    background-position: 118px 118px, 232px 258px;
  }
}

@media (max-width: 900px) {
  .cosmic-bagua-disc {
    right: -48vw;
    top: 44%;
    width: 130vw;
    opacity: 0.5;
  }

  .cosmic-bagua-orbit::before {
    right: -58vw;
    width: 150vw;
  }
}

@media (max-width: 560px) {
  body.page-tone-oracle .paper-fun-hero {
    min-height: auto;
    padding-top: 112px;
  }

  .cosmic-bagua-disc {
    right: -80vw;
    top: 34%;
    width: 178vw;
    opacity: 0.36;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-tone-oracle .paper-fun-hero::before,
  .cosmic-bagua-disc {
    animation: none;
  }
}
