:root {
  --bg: #f7f7f4;
  --bg-strong: #f1f1ec;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --line: rgba(23, 31, 41, 0.1);
  --ink: #121923;
  --muted: rgba(18, 25, 35, 0.68);
  --muted-soft: rgba(18, 25, 35, 0.48);
  --shadow: 0 30px 80px rgba(17, 24, 32, 0.11);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --content-width: min(1200px, calc(100vw - 48px));
  --renduoma-accent: #0f6b72;
  --renduoma-warm: #f0a05e;
  --pawscope-accent: #ff7b66;
  --pawscope-mint: #4fc8be;
  --campy-accent: #49755c;
  --campy-warm: #cba36b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 32%),
    radial-gradient(circle at top right, rgba(196, 210, 225, 0.38), transparent 28%),
    radial-gradient(circle at bottom left, rgba(220, 216, 205, 0.4), transparent 24%),
    linear-gradient(180deg, #fbfbf7 0%, var(--bg) 52%, #f4f3ed 100%);
  position: relative;
}

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

body.page-home {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.98), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(198, 214, 232, 0.48), transparent 30%),
    radial-gradient(circle at 8% 92%, rgba(240, 214, 178, 0.36), transparent 26%),
    linear-gradient(180deg, #fcfcf8 0%, #f7f5ef 52%, #f4f1ea 100%);
}

body.page-home::before {
  background:
    radial-gradient(
      72% 64% at 90% 52%,
      transparent 56%,
      rgba(255, 255, 255, 0.5) 63%,
      rgba(255, 255, 255, 0.14) 69%,
      transparent 75%
    ),
    radial-gradient(
      84% 72% at -8% 90%,
      transparent 58%,
      rgba(255, 255, 255, 0.42) 65%,
      rgba(255, 255, 255, 0.12) 70%,
      transparent 76%
    );
  opacity: 0.96;
}

body.page-home::after {
  background:
    radial-gradient(circle at 46% 46%, rgba(255, 255, 255, 0.62), transparent 38%),
    radial-gradient(circle at 68% 18%, rgba(233, 240, 247, 0.24), transparent 26%);
  opacity: 0.88;
}

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

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

.page-shell {
  width: var(--content-width);
  margin: 0 auto;
  padding-bottom: 56px;
  position: relative;
  z-index: 1;
}

.page-home .page-shell {
  padding-bottom: 0;
}

.page-detail .page-shell {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  backdrop-filter: blur(16px);
}

.page-home .site-header {
  justify-content: flex-start;
}

.page-home .brand span:last-child {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3a34f 0%, #7ea6d8 100%);
  box-shadow: 0 0 0 8px rgba(126, 166, 216, 0.1);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.site-nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  transform: translateX(-1px);
}

.detail-nav {
  position: sticky;
  top: 18px;
  z-index: 32;
  display: flex;
  justify-content: flex-start;
  padding-top: 18px;
  pointer-events: none;
}

.detail-back-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28));
  box-shadow:
    0 18px 36px rgba(17, 24, 32, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  color: rgba(18, 25, 35, 0.82);
  pointer-events: auto;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.detail-back-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.08));
  opacity: 0.92;
}

.detail-back-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.34));
  color: var(--ink);
  box-shadow:
    0 22px 38px rgba(17, 24, 32, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.detail-back-button svg {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(-1px);
}

.hero {
  padding: 42px 0 24px;
}

.minimal-main {
  min-height: calc(100svh - 92px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 36px;
}

.minimal-grid {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
}

.icon-entry {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 28px 18px;
  border-radius: 36px;
  transition: transform 220ms ease, background 220ms ease;
}

.icon-entry:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.34);
}

.project-icon.large {
  width: 156px;
  height: 156px;
  border-radius: 34px;
}

.page-home .project-icon.large {
  box-shadow:
    0 16px 34px rgba(16, 23, 31, 0.1),
    0 3px 10px rgba(255, 255, 255, 0.4);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.page-home .icon-entry:hover .project-icon.large {
  box-shadow:
    0 22px 40px rgba(16, 23, 31, 0.12),
    0 4px 12px rgba(255, 255, 255, 0.46);
}

.icon-label {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
}

.hero-detail {
  padding-top: 32px;
}

.page-detail .hero-detail {
  padding-top: 18px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.hero-kicker,
.section-label,
.panel-label,
.project-meta {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.hero h1,
.section-heading h2,
.content-card h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.hero-home h1 {
  max-width: 10ch;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.96;
}

.hero-detail h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
}

.hero-text,
.content-card p,
.section-paragraph,
.detail-list li,
.project-card-body p,
.about-grid p,
.panel-note,
.hero-stat span {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.project-card:hover,
.visual-stage img:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #f9fafc;
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(16, 23, 31, 0.16);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
}

.glass-card,
.project-card,
.content-card,
.capability-card,
.visual-stage {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 26px;
  border-radius: var(--radius-xl);
}

.hero-stack {
  display: grid;
  gap: 14px;
}

.hero-stat {
  display: grid;
  gap: 4px;
}

.hero-stat strong {
  font-size: 38px;
  letter-spacing: -0.05em;
}

.section-block {
  padding: 18px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.04;
}

.section-heading.compact h2,
.content-card h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.project-grid,
.content-grid,
.about-grid,
.capability-grid {
  display: grid;
  gap: 18px;
}

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

.project-card {
  display: grid;
  gap: 20px;
  min-height: 360px;
  padding: 24px;
  border-radius: var(--radius-xl);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.project-icon,
.hero-icon {
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(16, 23, 31, 0.14);
}

.project-arrow {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
}

.project-card-body h3 {
  margin: 0 0 10px;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.project-card-body p {
  margin: 0;
  font-size: 16px;
}

.project-tags,
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tags span,
.feature-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(18, 25, 35, 0.08);
  font-size: 13px;
  color: var(--muted);
}

.card-renduoma {
  background:
    radial-gradient(circle at top right, rgba(15, 107, 114, 0.13), transparent 40%),
    radial-gradient(circle at bottom left, rgba(240, 160, 94, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
}

.card-pawscope {
  background:
    radial-gradient(circle at top right, rgba(79, 200, 190, 0.12), transparent 38%),
    radial-gradient(circle at bottom left, rgba(255, 123, 102, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
}

.card-campy {
  background:
    radial-gradient(circle at top right, rgba(73, 117, 92, 0.12), transparent 38%),
    radial-gradient(circle at bottom left, rgba(203, 163, 107, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
}

.about-block {
  padding: 28px;
  border-radius: var(--radius-xl);
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 30px;
  color: var(--muted-soft);
  font-size: 14px;
}

.project-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.visual-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 34px;
  padding: 20px;
}

.renduoma-stage {
  background:
    radial-gradient(circle at top right, rgba(244, 179, 112, 0.28), transparent 30%),
    linear-gradient(160deg, rgba(15, 107, 114, 0.97), rgba(6, 55, 59, 1));
  color: #f3f5f8;
}

.route-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: 0.35;
}

.route-line {
  position: absolute;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 215, 156, 0.94));
}

.route-line-a {
  top: 26%;
  left: 12%;
  width: 58%;
  transform: rotate(15deg);
}

.route-line-b {
  bottom: 26%;
  right: 12%;
  width: 48%;
  transform: rotate(-18deg);
}

.pulse-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f3a34f;
  box-shadow: 0 0 0 0 rgba(243, 163, 79, 0.35);
  animation: pulse 2.6s ease-out infinite;
}

.pulse-one {
  top: 22%;
  right: 18%;
}

.pulse-two {
  bottom: 24%;
  left: 16%;
  animation-delay: 0.8s;
}

.stage-chip,
.stage-card {
  position: absolute;
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.stage-chip {
  padding: 14px 18px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.chip-orange {
  top: 14%;
  left: 12%;
  background: rgba(246, 167, 94, 0.18);
}

.chip-blue {
  bottom: 18%;
  right: 12%;
  background: rgba(146, 202, 255, 0.16);
}

.stage-card {
  width: 180px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.stage-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.stage-card strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.stage-card-top {
  top: 32%;
  right: 12%;
}

.stage-card-bottom {
  bottom: 14%;
  left: 14%;
}

.preview-collage,
.preview-stack {
  display: grid;
  gap: 14px;
  align-content: center;
}

.preview-collage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background:
    radial-gradient(circle at top left, rgba(255, 123, 102, 0.18), transparent 40%),
    radial-gradient(circle at bottom right, rgba(79, 200, 190, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(255, 255, 255, 0.76));
}

.preview-collage img,
.preview-stack img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(18, 25, 35, 0.08);
  box-shadow: 0 20px 42px rgba(17, 24, 32, 0.12);
  transition: transform 220ms ease;
}

.preview-stack {
  background:
    radial-gradient(circle at top left, rgba(73, 117, 92, 0.16), transparent 40%),
    radial-gradient(circle at bottom right, rgba(203, 163, 107, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 254, 249, 0.92), rgba(255, 255, 255, 0.76));
}

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

.content-card,
.capability-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.detail-list {
  margin: 0;
  padding-left: 20px;
}

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

.capability-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.narrative-strip {
  max-width: 960px;
}

.section-paragraph {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms ease, transform 640ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(243, 163, 79, 0.35);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(243, 163, 79, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(243, 163, 79, 0);
  }
}

@media (max-width: 1024px) {
  .hero-home,
  .split-layout,
  .project-grid,
  .content-grid,
  .about-grid,
  .capability-grid,
  .minimal-grid {
    grid-template-columns: 1fr;
  }

  .hero-home {
    min-height: auto;
    padding-top: 18px;
  }

  .visual-stage {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 28px, 100%);
  }

  .site-header {
    padding: 18px 0;
  }

  .detail-nav {
    top: 12px;
    padding-top: 12px;
  }

  .detail-back-button {
    width: 46px;
    height: 46px;
  }

  .minimal-main {
    min-height: calc(100svh - 84px);
    padding-bottom: 24px;
  }

  .icon-entry {
    gap: 14px;
    padding: 18px 12px;
  }

  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero-home h1 {
    font-size: clamp(48px, 16vw, 74px);
  }

  .hero-detail h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-text,
  .content-card p,
  .section-paragraph,
  .detail-list li,
  .about-grid p {
    font-size: 16px;
  }

  .project-card {
    min-height: 320px;
    padding: 20px;
  }

  .project-icon.large {
    width: 132px;
    height: 132px;
  }

  .icon-label {
    font-size: 22px;
  }

  .project-card-body h3 {
    font-size: 30px;
  }

  .project-heading {
    align-items: start;
  }

  .hero-icon {
    width: 84px;
    height: 84px;
  }

  .visual-stage {
    min-height: 360px;
    padding: 16px;
  }

  .stage-card {
    width: 150px;
  }

  .stage-card strong {
    font-size: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}
