:root {
  font-family: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #0f172a;
  background:
    radial-gradient(circle at top, rgba(249, 115, 22, 0.12), transparent 34%),
    linear-gradient(180deg, #f7f2e8 0%, #f1eee7 24%, #e9eff7 62%, #fbfdff 100%);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --bg-dark: #0f172a;
  --surface: rgba(255, 251, 245, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --surface-deep: rgba(255, 251, 245, 0.9);
  --surface-night: rgba(17, 24, 39, 0.78);
  --text-main: #0f172a;
  --text-muted: #556277;
  --border: rgba(148, 163, 184, 0.2);
  --border-strong: rgba(255, 255, 255, 0.4);
  --accent: #f97316;
  --accent-deep: #eb5e35;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --shadow: 0 26px 64px rgba(15, 23, 42, 0.11);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --pixel-grid: linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text-main);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 221, 178, 0.44), transparent 18%),
    radial-gradient(circle at 82% 24%, rgba(251, 191, 36, 0.12), transparent 18%),
    radial-gradient(circle at 50% 56%, rgba(59, 130, 246, 0.08), transparent 30%),
    linear-gradient(180deg, #f4ede5 0%, #f0e7df 18%, #e7e2eb 56%, #f8fafc 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}

body::before {
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.04) 0 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.025) 0 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at center, black 24%, transparent 92%);
}

body::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 24%, rgba(255, 255, 255, 0.28) 100%);
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-atmosphere::before,
.page-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
}

.page-atmosphere::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 196, 126, 0.16), transparent 0 22%),
    radial-gradient(circle at 78% 16%, rgba(90, 160, 255, 0.08), transparent 0 26%),
    radial-gradient(circle at 52% 48%, rgba(255, 255, 255, 0.24), transparent 0 18%),
    linear-gradient(180deg, rgba(28, 22, 34, 0.06), rgba(44, 30, 46, 0.04) 30%, rgba(255, 255, 255, 0));
  z-index: -2;
}

.page-atmosphere::after {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.12), transparent 0 18%),
    radial-gradient(circle at 24% 72%, rgba(249, 115, 22, 0.06), transparent 0 18%),
    radial-gradient(circle at 72% 78%, rgba(59, 130, 246, 0.06), transparent 0 16%);
  mix-blend-mode: screen;
  opacity: 0.82;
  z-index: -1;
}

.atmosphere-grid,
.atmosphere-glow,
.atmosphere-band,
.atmosphere-frost,
.atmosphere-lobster,
.atmosphere-lobster-silhouette {
  position: absolute;
}

.atmosphere-grid {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 36%),
    var(--pixel-grid);
  background-size: auto, 28px 28px;
  opacity: 0.5;
}

.atmosphere-glow {
  border-radius: 50%;
  filter: blur(60px);
}

.atmosphere-glow-a {
  top: -6%;
  right: -12%;
  width: 42vw;
  height: 42vw;
  background: rgba(249, 115, 22, 0.16);
}

.atmosphere-glow-b {
  top: 28%;
  left: -10%;
  width: 32vw;
  height: 32vw;
  background: rgba(59, 130, 246, 0.1);
}

.atmosphere-band {
  top: 6vh;
  right: -6vw;
  width: 64vw;
  height: 108vh;
  border-radius: 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 30% 14%, rgba(255, 187, 120, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(255, 245, 232, 0.18), rgba(233, 241, 250, 0.05) 56%, rgba(255, 255, 255, 0));
  transform: rotate(-8deg);
  opacity: 0.54;
}

.atmosphere-frost {
  top: 10vh;
  right: 3vw;
  width: 44vw;
  height: 74vh;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 24%, rgba(255, 255, 255, 0.01) 100%),
    radial-gradient(circle at 36% 22%, rgba(255, 234, 214, 0.06), transparent 24%),
    radial-gradient(circle at 62% 54%, rgba(255, 255, 255, 0.03), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 52px rgba(8, 10, 18, 0.05);
  backdrop-filter: blur(8px) saturate(0.96);
  -webkit-backdrop-filter: blur(8px) saturate(0.96);
  transform: rotate(-8deg);
  opacity: 0.36;
}

.atmosphere-lobster-silhouette {
  pointer-events: none;
  border-radius: 50%;
  filter: blur(38px);
  mix-blend-mode: multiply;
}

.atmosphere-lobster-silhouette-primary {
  top: 10vh;
  right: 6vw;
  width: min(40vw, 620px);
  height: 42vh;
  background: radial-gradient(ellipse at center, rgba(26, 18, 30, 0.08), transparent 72%);
  opacity: 0.2;
}

.atmosphere-lobster-silhouette-shadow {
  top: 20vh;
  right: 12vw;
  width: min(28vw, 400px);
  height: 28vh;
  background: radial-gradient(ellipse at center, rgba(26, 18, 30, 0.06), transparent 72%);
  opacity: 0.18;
}

.atmosphere-lobster {
  object-fit: contain;
  filter: drop-shadow(0 34px 60px rgba(15, 23, 42, 0.12)) saturate(1.03);
}

.atmosphere-lobster-primary {
  --lobster-shift-x: 0px;
  --lobster-shift-y: 0px;
  top: 10vh;
  right: 4vw;
  width: min(48vw, 680px);
  opacity: 0.11;
  transform: translate3d(var(--lobster-shift-x), var(--lobster-shift-y), 0) rotate(-8deg) scale(1);
  transform-origin: 64% 36%;
  animation: heroLobsterFloat 16s ease-in-out infinite;
  filter:
    blur(14px)
    brightness(0.88)
    contrast(0.94)
    sepia(0.08)
    saturate(0.68)
    drop-shadow(0 34px 68px rgba(8, 10, 18, 0.08));
  mix-blend-mode: multiply;
  mask-image: radial-gradient(circle at 58% 42%, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.68) 34%, rgba(0, 0, 0, 0.26) 60%, transparent 94%);
}

.atmosphere-lobster-secondary {
  display: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 120px;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 56% 34%, rgba(255, 255, 255, 0.1), transparent 24%),
    radial-gradient(circle at 72% 58%, rgba(255, 255, 255, 0.08), transparent 22%);
  backdrop-filter: blur(10px) saturate(1.01);
  -webkit-backdrop-filter: blur(10px) saturate(1.01);
  pointer-events: none;
  z-index: -1;
}

.page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 0 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.04) 0 1px, transparent 1px);
  background-size: auto, 88px 88px, 88px 88px;
  opacity: 0.54;
  pointer-events: none;
  z-index: -1;
}

.shell-panel,
.shell-section {
  position: relative;
}

.shell-panel::after,
.shell-section::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 36px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 56%);
  pointer-events: none;
  z-index: -1;
}

.shell-section {
  padding-inline: 8px;
}

.shell-section::before {
  content: "";
  position: absolute;
  inset: 30px 0 -18px;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top, rgba(249, 115, 22, 0.08), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  opacity: 0.72;
  pointer-events: none;
  z-index: -1;
}

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

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  margin-bottom: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark,
.footer-mark,
.chat-trigger-avatar,
.chat-header-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(255, 241, 225, 0.74)),
    linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(249, 115, 22, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.brand-mark {
  width: 58px;
  height: 58px;
}

.brand-mark img,
.footer-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
}

.brand strong,
.chat-header strong {
  display: block;
  font-size: 0.98rem;
}

.brand span,
.chat-header p,
.footer p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.brand span {
  display: block;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
}

.section {
  position: relative;
  padding: 88px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 28px;
}

.hero-copy,
.hero-aside-card,
.card,
.service-card,
.contrast-card,
.lobster-member,
.timeline-card,
.case-card,
.case-preview,
.contact-card,
.contact-companion {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy,
.card,
.service-card,
.lobster-member,
.timeline-card,
.case-card,
.contact-card,
.case-preview,
.contact-companion,
.contrast-card {
  position: relative;
  overflow: hidden;
}

.hero-copy::before,
.card::before,
.service-card::before,
.lobster-member::before,
.timeline-card::before,
.case-card::before,
.contact-card::before,
.case-preview::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background:
    linear-gradient(90deg, transparent 0 28px, rgba(249, 115, 22, 0.18) 28px 30px, transparent 30px),
    linear-gradient(transparent 0 28px, rgba(249, 115, 22, 0.18) 28px 30px, transparent 30px);
  opacity: 0.8;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 56px 54px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 240, 0.68) 54%, rgba(242, 247, 252, 0.58)),
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 36%);
}

.hero-copy h1 {
  max-width: 11.2ch;
}

.hero-copy > p {
  margin-top: 14px;
  max-width: 48ch;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-aside-card {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 249, 252, 0.58)),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.1), transparent 30%);
}

.hero-aside-intro {
  min-height: 0;
}

.hero-aside-intro h3 {
  margin-top: 16px;
  font-size: 1.5rem;
  line-height: 1.24;
  font-weight: 760;
  max-width: 16ch;
}

.hero-aside-intro p {
  margin-top: 14px;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.hero-stack-head {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-stack-head img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 20px rgba(15, 23, 42, 0.12));
}

.hero-stack-head p {
  margin-top: 8px;
  color: var(--text-muted);
}

.hero-metric-grid {
  margin-top: 10px;
}

.eyebrow,
.member-role,
.member-chip,
.contrast-label,
.timeline-index,
.chip,
.card-icon,
.case-preview-kicker,
.case-preview-meta span,
.hero-tags span,
.contact-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow {
  background: rgba(15, 23, 42, 0.06);
  color: #1e293b;
}

.eyebrow.warm {
  background: rgba(249, 115, 22, 0.12);
  color: #9a3412;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 20px;
  font-size: clamp(3rem, 5.2vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  font-weight: 800;
}

h2 {
  font-size: clamp(2.15rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 760;
}

h3 {
  font-size: 1.02rem;
  line-height: 1.28;
  font-weight: 700;
}

.hero-tags,
.contact-points,
.tag-row,
.showcase-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 28px;
}

.hero-tags span,
.contact-points span,
.showcase-marquee span {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #475569;
}

.showcase-marquee {
  margin-top: 14px;
}

.showcase-marquee span {
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button,
.inline-button,
.text-link,
.chat-trigger,
.quick-group button,
.case-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.button:hover,
.inline-button:hover,
.text-link:hover,
.chat-trigger:hover,
.quick-group button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.24);
}

.button.secondary,
.inline-button,
.quick-group button,
.chat-header button {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.82);
  color: #1e293b;
}

.hero-note,
.section-footnote {
  margin-top: 22px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.68;
}

.metric-grid,
.card-grid,
.timeline,
.contrast-grid,
.contact-section {
  margin-top: 28px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 126px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.08) 0 14px, transparent 14px),
    rgba(255, 255, 255, 0.34);
}

.metric-card span,
.card-icon {
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 0.98rem;
  line-height: 1.42;
}

.metric-card p {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.62;
}

.lobster-card {
  position: relative;
}

.lobster-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -16px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.26), transparent 68%);
}

.section-heading {
  max-width: 820px;
}

.member-deck-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.08) 0 12px, transparent 12px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(247, 250, 252, 0.3));
}

.member-deck-copy {
  max-width: 56ch;
}

.member-deck-copy strong {
  display: block;
  font-size: 1rem;
}

.member-deck-copy p {
  margin-top: 8px;
  color: var(--text-muted);
}

.member-deck-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.member-deck-status span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.member-ambient-terminal {
  left: 10px;
  bottom: 68px;
  width: 52px;
  height: 34px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.02)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.12) 0 1px, transparent 1px);
  background-size: auto, 16px 16px, 16px 16px;
  opacity: 0.9;
}

.member-station-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.72);
  color: rgba(255, 247, 237, 0.92);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.case-preview-mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.case-preview-mini-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 247, 237, 0.92);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.case-preview-overlay-card {
  position: absolute;
  right: 14px;
  top: 48px;
  z-index: 2;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.case-preview-overlay-card strong {
  display: block;
  font-size: 0.84rem;
}

.case-preview-overlay-card p {
  margin-top: 4px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.74rem;
}

.showcase-marquee[data-active-case] span:first-child {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.2);
  color: #9a3412;
}

.case-card.active .case-summary {
  color: #7c2d12;
}

.case-card.active::before {
  opacity: 1;
}

.case-card.active::after {
  background: rgba(249, 115, 22, 0.18);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 30px 0 -10px;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.08), transparent 36%);
  pointer-events: none;
  z-index: -1;
}

.footer {
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 16px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.34), transparent);
}

.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: rgba(249, 115, 22, 0.22);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.contact-copy,
.contact-card {
  position: relative;
  z-index: 1;
}

.chat-panel {
  backdrop-filter: blur(18px);
}

.chat-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.92));
}

@media (max-width: 820px) {
  .member-deck-head {
    flex-direction: column;
  }

  .member-deck-status {
    min-width: 0;
  }

  .case-preview-overlay-card {
    right: 12px;
    top: 42px;
  }
}

.section-heading h2 {
  margin-top: 10px;
  max-width: 16ch;
}

.section-heading p {
  margin-top: 18px;
  max-width: 58ch;
  color: #64748b;
  font-size: 1.02rem;
  line-height: 1.76;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid,
.case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.service-card,
.lobster-member,
.timeline-card,
.case-card,
.contact-card {
  padding: 28px;
}

.case-grid-compact .case-card {
  padding: 18px;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.card::after,
.service-card::after,
.lobster-member::after,
.timeline-card::after,
.case-card::after,
.contrast-card::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 10px;
  height: 10px;
  background: rgba(249, 115, 22, 0.1);
  box-shadow:
    14px 0 0 rgba(249, 115, 22, 0.08),
    0 -14px 0 rgba(249, 115, 22, 0.08);
}

.contact-card::after {
  display: none;
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(250, 251, 253, 0.55)),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 24%);
}

.card h3,
.service-card h3,
.contrast-card h3,
.lobster-member h3,
.timeline-card h3,
.case-card h3,
.contact-card h3 {
  margin-top: 12px;
  font-size: 1.24rem;
  line-height: 1.24;
  font-weight: 730;
}

.case-grid-compact .case-card h3 {
  font-size: 1.08rem;
  line-height: 1.28;
}

.case-grid-compact .case-card p {
  font-size: 0.88rem;
  line-height: 1.58;
}

.card p,
.service-card p,
.contrast-card li,
.lobster-member p,
.timeline-card p,
.case-card p,
.contact-card p {
  margin-top: 14px;
  color: #64748b;
  font-size: 0.96rem;
  line-height: 1.72;
}

.service-card {
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.08) 0 12px, transparent 12px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(249, 250, 252, 0.66));
}

.chip,
.contrast-label,
.timeline-index {
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.chip.subtle {
  background: rgba(249, 115, 22, 0.08);
  color: #b45309;
}

.service-card dl {
  margin: 18px 0 0;
}

.service-card dt {
  color: #0f172a;
  font-weight: 700;
}

.service-card dd {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.service-card dl div + div {
  margin-top: 14px;
}

.contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contrast-card {
  position: relative;
  padding: 30px;
}

.contrast-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.contrast-card li + li {
  margin-top: 12px;
}

.contrast-card.muted {
  background: linear-gradient(180deg, rgba(232, 238, 246, 0.72), rgba(248, 250, 252, 0.84));
}

.contrast-card.accent {
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(248, 250, 252, 0.76));
}

.lobster-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.lobster-grid::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 34px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 251, 245, 0.32), rgba(235, 244, 252, 0.18));
  background-size: 24px 24px, 24px 24px, auto;
  opacity: 0.58;
  pointer-events: none;
}

.lobster-member {
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(247, 250, 252, 0.6)),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 26%);
}

.lobster-member.live {
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.12) 0 14px, transparent 14px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 250, 252, 0.62));
}

.member-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-role {
  background: rgba(249, 115, 22, 0.08);
  color: #9a3412;
}

.member-chip {
  background: rgba(15, 23, 42, 0.07);
  color: #475569;
}

.member-habitat {
  position: relative;
  margin-top: 12px;
  min-height: 150px;
  padding: 12px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.member-habitat::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.member-habitat::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px 18px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.14), transparent 70%);
}

.habitat-amber {
  background-color: rgba(255, 234, 210, 0.44);
}

.habitat-slate {
  background-color: rgba(223, 233, 245, 0.4);
}

.habitat-mint {
  background-color: rgba(218, 242, 234, 0.42);
}

.habitat-rose {
  background-color: rgba(249, 229, 232, 0.44);
}

.habitat-gold {
  background-color: rgba(255, 230, 192, 0.46);
}

.habitat-steel {
  background-color: rgba(226, 233, 240, 0.42);
}

.member-ambient {
  position: absolute;
  pointer-events: none;
}

.member-ambient-lines {
  top: 16px;
  right: 16px;
  width: 84px;
  height: 48px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0 9px, transparent 9px 16px, rgba(15, 23, 42, 0.08) 16px 24px, transparent 24px),
    rgba(255, 255, 255, 0.36);
}

.member-ambient-deck {
  inset: auto 12px 12px 12px;
  height: 46px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  opacity: 0.9;
}

.member-pixel-cloud {
  position: absolute;
  top: 16px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.56), transparent 66%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  filter: blur(2px);
}

.member-portrait {
  position: absolute;
  inset: auto 10px 8px 10px;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 112px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.4), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  overflow: hidden;
}

.member-portrait img {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
  transform: translateY(8px);
  filter:
    drop-shadow(0 14px 20px rgba(15, 23, 42, 0.14))
    saturate(1.02);
}

.amber img {
  width: 96px;
}

.mint img {
  width: 98px;
}

.member-corner-note {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  color: #475569;
  font-size: 0.62rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.inline-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  margin-top: 10px;
  font-weight: 600;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timeline-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(246, 250, 252, 0.62)),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.1), transparent 24%);
}

.timeline-card::after {
  top: 18px;
  right: 18px;
  left: auto;
  bottom: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.14), transparent 70%);
  box-shadow: none;
}

.case-visual {
  display: grid;
  place-items: end start;
  min-height: 180px;
  padding: 20px;
  border-radius: 18px;
  color: #fff;
  background-size: 20px 20px, 20px 20px, auto;
}

.case-visual span {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
}

.visual-1 {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #18263c, #265dc0);
}

.visual-2 {
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #263445, #f97316);
}

.visual-3 {
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #16263c, #0f766e);
}

.case-summary {
  color: #0f172a;
  font-weight: 600;
}

.case-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
  align-items: start;
  position: relative;
}

.case-showcase::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
  z-index: -1;
}

.case-preview {
  position: relative;
  top: 0;
  padding: 30px;
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.1) 0 18px, transparent 18px),
    linear-gradient(180deg, rgba(255, 251, 246, 0.9), rgba(244, 248, 252, 0.84));
  box-shadow: 0 34px 88px rgba(15, 23, 42, 0.14);
}

.case-preview::after {
  content: "";
  position: absolute;
  bottom: -44px;
  left: -20px;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 68%);
}

.case-preview-stage {
  position: relative;
  min-height: 560px;
  padding: 28px;
  border-radius: 28px;
  color: #fff;
  background-size: 18px 18px, 18px 18px, auto;
  transition: background 180ms ease;
  overflow: hidden;
}

.case-preview-stage.visual-1 {
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #142033, #24529a 52%, #f97316);
}

.case-preview-stage.visual-2 {
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #2b3547, #cb5a22 56%, #f2b84b);
}

.case-preview-stage.visual-3 {
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #12243c, #0e766e 56%, #38bdf8);
}

.case-preview-stage::before {
  content: "";
  position: absolute;
  top: -52px;
  right: -24px;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), transparent 70%);
}

.case-preview-screen {
  position: relative;
  z-index: 1;
  min-height: 432px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
}

.case-preview-screen::after {
  content: "";
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 46px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-preview-browser {
  display: inline-flex;
  gap: 8px;
}

.case-preview-browser span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.case-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 260px;
  gap: 22px;
  align-items: end;
  min-height: 360px;
  margin-top: 28px;
}

.case-preview-copy {
  align-self: start;
  max-width: 34ch;
}

.case-preview-kicker,
.case-preview-meta span {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 247, 237, 0.92);
}

.case-preview-meta span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.case-preview-copy h3 {
  margin-top: 16px;
  max-width: 12ch;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.08;
  font-weight: 760;
}

.case-preview-copy p {
  margin-top: 16px;
  max-width: 40ch;
  font-size: 1.02rem;
  line-height: 1.72;
  color: rgba(226, 232, 240, 0.92);
}

.case-preview-art {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.08));
  overflow: hidden;
}

.case-preview-art::before {
  content: "";
  position: absolute;
  inset: auto 18px 14px 18px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.34), transparent 70%);
}

.case-preview-art::after {
  content: "作品预览舱";
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 247, 237, 0.86);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.case-preview-art img {
  position: absolute;
  inset: 18px 22px 18px 22px;
  width: calc(100% - 44px);
  height: calc(100% - 36px);
  object-fit: contain;
  object-position: center 68%;
  image-rendering: pixelated;
  filter:
    saturate(1.02)
    contrast(1.02)
    drop-shadow(0 18px 24px rgba(0, 0, 0, 0.16));
}

.case-preview-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.case-grid {
  display: grid;
  gap: 16px;
  margin-top: 0;
}

.case-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.case-card .tag-row,
.case-card .text-link {
  position: relative;
  z-index: 1;
}

.case-card .text-link {
  margin-top: 12px;
}

.case-card:hover,
.case-card:focus-visible,
.case-card.active {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: 0 28px 52px rgba(15, 23, 42, 0.14);
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.1) 0 12px, transparent 12px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 238, 0.74) 52%, rgba(244, 248, 252, 0.7));
}

.case-card:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.32);
  outline-offset: 3px;
}

.case-footnote {
  max-width: 56ch;
}

.text-link {
  color: #b45309;
  background: rgba(249, 115, 22, 0.08);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 24px;
  align-items: start;
}

.contact-copy,
.contact-card {
  align-self: start;
}

.contact-copy {
  padding: 28px 10px 0 0;
}

.contact-copy p {
  margin-top: 10px;
  color: var(--text-muted);
}

.contact-points {
  margin-top: 24px;
}

.contact-companion {
  display: grid;
  grid-template-columns: 1fr 172px;
  gap: 18px;
  margin-top: 28px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.08) 0 14px, transparent 14px),
    linear-gradient(180deg, rgba(255, 251, 245, 0.82), rgba(255, 255, 255, 0.72));
  box-shadow: var(--shadow-soft);
}

.contact-companion-copy h3 {
  margin-top: 14px;
}

.contact-companion-copy p {
  margin-top: 12px;
}

.contact-companion-visual {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 176px;
  overflow: hidden;
}

.contact-companion-habitat {
  position: absolute;
  inset: 18px 10px 12px;
  border-radius: 26px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 231, 199, 0.52), rgba(235, 243, 252, 0.24));
  background-size: 18px 18px, 18px 18px, auto;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.contact-companion-visual::after {
  content: "";
  position: absolute;
  inset: auto 16px 8px 16px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.32), transparent 70%);
}

.contact-companion-visual img {
  position: relative;
  z-index: 1;
  width: 152px;
  height: 152px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.14));
}

.contact-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.78));
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(249, 115, 22, 0.64);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.full-width {
  width: 100%;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 42px 0 0;
  color: #475569;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 640px;
}

.footer-mark {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
}

.chat-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.14) 0 12px, transparent 12px),
    linear-gradient(140deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96)),
    radial-gradient(circle at left top, rgba(249, 115, 22, 0.28), transparent 24%);
  color: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
}

.chat-trigger-avatar {
  width: 56px;
  height: 56px;
}

.chat-trigger-avatar img,
.chat-header-avatar img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}

.chat-trigger-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.chat-trigger-text strong {
  font-size: 0.95rem;
}

.chat-trigger-text small {
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.82rem;
}

.chat-panel {
  width: min(380px, calc(100vw - 24px));
  margin-top: 12px;
  margin-left: auto;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.hidden {
  display: none;
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
  color: #fff;
}

.chat-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 52px;
  height: 52px;
}

.chat-header-avatar img {
  width: 38px;
  height: 38px;
}

.chat-header p {
  color: rgba(226, 232, 240, 0.84);
}

.chat-header button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.chat-body {
  display: grid;
  gap: 12px;
  max-height: 360px;
  padding: 18px;
  overflow-y: auto;
}

.message {
  display: flex;
}

.message p {
  padding: 12px 14px;
  border-radius: 18px;
  white-space: pre-line;
}

.message.bot p {
  max-width: 88%;
  background: #fff;
  color: #334155;
  border-radius: 16px 16px 16px 6px;
}

.message.user {
  justify-content: flex-end;
}

.message.user p {
  max-width: 76%;
  background: rgba(249, 115, 22, 0.14);
  color: #9a3412;
  border-radius: 16px 16px 6px 16px;
}

.chat-actions {
  padding: 0 18px 18px;
}

.quick-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-group button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
}

.secondary-group {
  margin-top: 12px;
}

.chat-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 1080px) {
  .hero,
  .contact-section,
  .value-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lobster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .case-grid-compact,
  .contact-companion {
    grid-template-columns: 1fr;
  }

  .case-showcase,
  .contact-companion {
    grid-template-columns: 1fr;
  }

  .case-preview {
    position: relative;
    top: 0;
  }

  .atmosphere-lobster-primary {
    top: 10vh;
    right: -16vw;
    width: 118vw;
    opacity: 0.12;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 24px, 1200px);
    padding-bottom: 140px;
  }

  .topbar {
    top: 10px;
    padding: 14px 16px;
    border-radius: 20px;
  }

  .nav {
    display: none;
  }

  .service-grid,
  .case-grid,
  .contrast-grid,
  .contact-section,
  .value-grid,
  .timeline,
  .metric-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy,
  .hero-aside-card,
  .card,
  .service-card,
  .contrast-card,
  .lobster-member,
  .timeline-card,
  .case-card,
  .contact-card,
  .case-preview,
  .contact-companion {
    padding: 24px;
    border-radius: 24px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-mark img {
    width: 36px;
    height: 36px;
  }

  .hero-copy {
    padding: 34px 24px;
  }

  .hero-stack-head {
    grid-template-columns: 72px 1fr;
  }

  .hero-stack-head img {
    width: 72px;
    height: 72px;
  }

  .member-habitat {
    min-height: 228px;
  }

  .member-portrait img {
    width: 156px;
    height: 156px;
  }

  .case-preview-stage {
    min-height: 380px;
  }

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

  .case-preview-art {
    min-height: 220px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .chat-trigger {
    min-height: 68px;
    padding-right: 14px;
  }

  .chat-trigger-text small {
    display: none;
  }

  .section {
    padding-top: 64px;
  }

  .footer {
    flex-direction: column;
  }

  .chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .atmosphere-band {
    right: -24vw;
    width: 112vw;
    opacity: 0.72;
  }

  .atmosphere-lobster-primary {
    top: 18vh;
    right: -18vw;
    width: 132vw;
    opacity: 0.12;
  }

  .atmosphere-lobster-secondary {
    display: none;
  }

  .shell-section {
    padding-inline: 0;
  }

  .shell-section::before,
  .shell-section::after,
  .lobster-grid::before,
  .case-showcase::before {
    inset: 0;
  }

  .hero-copy h1,
  .hero-aside-intro h3 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


.lobster-member {
  animation: memberCardFloat 5.6s ease-in-out infinite;
  transform-origin: center bottom;
}

.lobster-member:nth-child(2n) {
  animation-duration: 6.4s;
}

.lobster-member:nth-child(3n) {
  animation-duration: 4.8s;
}

.member-portrait img {
  animation: lobsterIdle 3.2s ease-in-out infinite;
  transform-origin: center 82%;
}

.lobster-member:nth-child(2n) .member-portrait img {
  animation-name: lobsterIdleAlt;
}

.member-ambient-lines {
  animation: panelBlink 2.8s steps(2, end) infinite;
}

.member-ambient-terminal {
  animation: terminalPulse 2.2s ease-in-out infinite;
}

@keyframes memberCardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes lobsterIdle {
  0%, 100% { transform: translateY(8px) rotate(-2deg) scale(1); }
  25% { transform: translateY(4px) rotate(1deg) scale(1.03); }
  50% { transform: translateY(10px) rotate(3deg) scale(0.98); }
  75% { transform: translateY(3px) rotate(-1deg) scale(1.02); }
}

@keyframes lobsterIdleAlt {
  0%, 100% { transform: translateY(8px) rotate(2deg) scale(1); }
  25% { transform: translateY(2px) rotate(-2deg) scale(1.04); }
  50% { transform: translateY(11px) rotate(-4deg) scale(0.97); }
  75% { transform: translateY(4px) rotate(1deg) scale(1.01); }
}

@keyframes panelBlink {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes terminalPulse {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.chat-trigger-avatar img {
  animation: lobsterBadgeBounce 2.4s ease-in-out infinite;
}

@keyframes lobsterBadgeBounce {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(4deg); }
}

@keyframes heroLobsterFloat {
  0%, 100% {
    transform: translate3d(var(--lobster-shift-x), var(--lobster-shift-y), 0) rotate(-10deg) scale(1.02);
  }
  50% {
    transform: translate3d(calc(var(--lobster-shift-x) + 16px), calc(var(--lobster-shift-y) - 12px), 0) rotate(-8deg) scale(1.04);
  }
}

.contact-handoff-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 280px);
  gap: 24px;
  margin-top: 22px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-soft);
}

.contact-handoff-copy h3 {
  margin: 8px 0 10px;
}

.contact-handoff-copy p {
  margin: 0;
  color: var(--text-muted);
}

.contact-handoff-copy ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text-main);
}

.contact-handoff-copy li + li {
  margin-top: 8px;
}

.contact-handoff-qr,
.contact-card-qr-block {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.contact-handoff-qr img,
.contact-card-qr-image {
  width: min(100%, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  background: #fff;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-soft);
}

.contact-handoff-qr span,
.contact-card-qr-copy span,
.contact-card-note p {
  color: var(--text-muted);
}

.contact-card-qr-copy {
  display: grid;
  gap: 6px;
  text-align: center;
}

.contact-card-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 820px) {
  .contact-handoff-card {
    grid-template-columns: 1fr;
  }
}
