@import "tailwindcss";

:root {
  --ink: #151515;
  --paper: #ffffff;
  --lime: #d9ff3f;
  --violet: #7562ff;
  --orange: #ff6b35;
  --line: rgba(21, 21, 21, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

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

.preserve-lines {
  white-space: pre-line;
}

.site-nav {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 22px 3vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
}

.wordmark {
  width: fit-content;
  font-size: clamp(1.18rem, 1.85vw, 1.72rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
}

.wordmark span {
  color: var(--lime);
}

.wordmark sup {
  margin-left: 0.25rem;
  font-size: 0.34em;
  letter-spacing: 0;
  vertical-align: top;
}

.nav-links {
  display: flex;
  gap: 2.4vw;
  font-size: clamp(0.88rem, 1vw, 1.02rem);
}

.nav-links a,
.nav-cta {
  transition: opacity 180ms ease;
}

.nav-links a:hover,
.nav-cta:hover {
  opacity: 0.6;
}

.nav-cta {
  justify-self: end;
  font-size: clamp(0.86rem, 0.96vw, 1rem);
  font-weight: 700;
}

.arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

a:hover .arrow,
.service-row:hover .arrow {
  transform: translateX(5px);
}

.arrow--diagonal {
  transform: rotate(-45deg);
}

a:hover .arrow--diagonal,
.service-row:hover .arrow--diagonal {
  transform: translate(4px, -4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 112px 3vw 38px;
  background:
    radial-gradient(circle at 74% 34%, rgba(117, 98, 255, 0.55), transparent 28%),
    linear-gradient(135deg, #111 8%, #232323 46%, #101010 100%);
  color: white;
}

.hero-kicker,
.hero-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.hero-location {
  opacity: 0.52;
}

.hero h1 {
  position: relative;
  z-index: 3;
  margin: clamp(12vh, 17vh, 190px) 0 0;
  max-width: 12ch;
  font-size: clamp(3.2rem, 6.8vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.92;
  text-align: left;
}

.hero h1 > span {
  display: block;
  white-space: nowrap;
}

.hero-line {
  padding-left: 0;
}

.jump-word {
  position: relative;
  display: inline-block;
  color: var(--lime);
  font-family: "Times New Roman", "Songti SC", serif;
  font-style: italic;
  font-weight: 400;
  transform: rotate(-8deg) translateY(-0.03em);
  text-shadow: 0 0 70px rgba(217, 255, 63, 0.34);
}

.hero-bottom {
  margin-top: clamp(9vh, 15vh, 180px);
  align-items: flex-end;
}

.hero-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(0.86rem, 1.2vw, 1.12rem);
  line-height: 1.75;
}

.circle-link {
  display: grid;
  width: 112px;
  height: 112px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  align-content: center;
  justify-items: center;
  gap: 8px;
  font-size: 0.75rem;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.circle-link:hover {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(4deg);
}

.orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(1px);
}

.orb--two {
  right: 31%;
  bottom: 5%;
  width: 9vw;
  height: 9vw;
  min-width: 80px;
  min-height: 80px;
  overflow: visible;
  background: transparent;
  opacity: 1;
  animation: float 6s ease-in-out -2s infinite reverse;
}

.cosmic-warp-canvas {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  inset: 0;
}

.hero-star-core {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  background:
    radial-gradient(circle at 37% 32%, #fff 0 5%, #fff6b0 13%, #ffd53f 34%, #ff922e 62%, rgba(255, 107, 53, 0.1) 72%);
  box-shadow:
    0 0 16px 4px rgba(255, 244, 176, 0.88),
    0 0 42px 15px rgba(255, 180, 54, 0.52),
    0 0 90px 34px rgba(255, 107, 53, 0.24);
  inset: 18%;
  animation: starBurn 3.4s ease-in-out infinite;
}

.hero-star-core::before,
.hero-star-core::after {
  position: absolute;
  border: 1px solid rgba(255, 222, 117, 0.55);
  border-radius: 46% 54% 41% 59%;
  content: "";
  inset: -18%;
  animation: starCorona 5s linear infinite;
}

.hero-star-core::after {
  border-color: rgba(255, 133, 49, 0.42);
  animation-direction: reverse;
  inset: -32%;
}

.hero-star-flare {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 133, 0.82), transparent);
  filter: blur(1px);
  transform: translate(-50%, -50%);
}

.hero-star-flare--horizontal {
  width: 180%;
  height: 1px;
}

.hero-star-flare--vertical {
  width: 1px;
  height: 150%;
  background: linear-gradient(transparent, rgba(255, 224, 133, 0.62), transparent);
}

@keyframes starBurn {
  0%, 100% { transform: scale(0.94); filter: brightness(0.92); }
  50% { transform: scale(1.08); filter: brightness(1.18); }
}

@keyframes starCorona {
  to { transform: rotate(360deg); }
}

.hero-grid {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 8.333vw 8.333vw;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 85%, transparent);
}

.hero--cosmic {
  --pointer-x: 74%;
  --pointer-y: 34%;
  --cosmic-x: 0px;
  --cosmic-y: 0px;
  --cosmic-rotate-x: 0deg;
  --cosmic-rotate-y: 0deg;
  --cosmic-opposite-x: 0px;
  --cosmic-opposite-y: 0px;
  --cosmic-soft-x: 0px;
  --cosmic-soft-y: 0px;
  --cosmic-nebula-x: 0px;
  --cosmic-nebula-y: 0px;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 44%, rgba(255, 255, 255, 0.055), transparent 31%),
    #000;
}

.hero--cosmic .cosmic-orbit {
  display: none;
}

.cosmic-scene {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  inset: 0;
}

.cosmic-nebula {
  position: absolute;
  width: 76vw;
  height: 76vw;
  top: -31vw;
  left: -19vw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 55% 52%, rgba(28, 105, 218, 0.2), transparent 34%),
    conic-gradient(from 70deg, transparent, rgba(75, 207, 255, 0.06), transparent 38%, rgba(20, 76, 168, 0.14), transparent 72%);
  filter: blur(34px);
  opacity: 0.84;
  transform: translate3d(
    var(--cosmic-nebula-x),
    var(--cosmic-nebula-y),
    0
  ) rotate(-13deg);
  transition: transform 500ms cubic-bezier(.2,.8,.2,1);
}

.cosmic-stars {
  position: absolute;
  inset: -3%;
  transform: translate3d(
    var(--cosmic-soft-x),
    var(--cosmic-soft-y),
    0
  );
  transition: transform 360ms ease-out;
}

.cosmic-stars i {
  position: absolute;
  width: var(--star-size);
  height: var(--star-size);
  top: var(--star-y);
  left: var(--star-x);
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 calc(var(--star-size) * 4) rgba(255, 255, 255, 0.78);
  opacity: 0.34;
  animation: starPulse var(--star-duration) ease-in-out var(--star-delay) infinite;
}

.cosmic-stars i:nth-child(5n) {
  background: #4dd7ff;
  box-shadow: 0 0 16px rgba(55, 158, 255, 0.72);
}

.cosmic-stars i:nth-child(7n) {
  background: #215dc9;
  box-shadow: 0 0 18px rgba(32, 100, 228, 0.82);
}

@keyframes starPulse {
  0%, 100% { opacity: 0.18; transform: scale(0.72); }
  50% { opacity: 0.94; transform: scale(1.35); }
}

.cosmic-orbit {
  position: absolute;
  top: 34%;
  left: 74%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-17deg);
}

.cosmic-orbit::before {
  position: absolute;
  border: 1px solid rgba(217, 255, 63, 0.13);
  border-radius: inherit;
  content: "";
  inset: 8%;
}

.cosmic-orbit--wide {
  width: min(58vw, 860px);
  aspect-ratio: 1.9 / 1;
  animation: orbitBreathe 9s ease-in-out infinite;
}

.cosmic-orbit--small {
  width: min(30vw, 460px);
  aspect-ratio: 1.6 / 1;
  border-color: rgba(117, 98, 255, 0.34);
  transform: translate(-50%, -50%) rotate(62deg);
  animation: orbitBreathe 7s ease-in-out -3s infinite reverse;
}

.cosmic-orbit span {
  position: absolute;
  width: 9px;
  height: 9px;
  top: 17%;
  left: 12%;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 24px 8px rgba(217, 255, 63, 0.28);
}

.cosmic-orbit--small span {
  top: auto;
  right: 8%;
  bottom: 20%;
  left: auto;
  background: #a99eff;
  box-shadow: 0 0 22px 7px rgba(117, 98, 255, 0.4);
}

@keyframes orbitBreathe {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 0.9; }
}

.cosmic-pointer {
  position: absolute;
  z-index: 2;
  width: 390px;
  height: 390px;
  top: var(--pointer-y);
  left: var(--pointer-x);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 2%, rgba(255, 255, 255, 0.1) 10%, rgba(255, 255, 255, 0.035) 30%, transparent 66%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(.2, .8, .2, 1);
}

.hero--cosmic[data-pointer-active="true"] .cosmic-pointer {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cosmic-pointer span {
  position: absolute;
  width: 6px;
  height: 6px;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 18px 5px rgba(255, 255, 255, 0.32),
    0 0 42px 14px rgba(255, 255, 255, 0.14);
  transform: translate(-50%, -50%);
}

.cosmic-pointer::before,
.cosmic-pointer::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
  inset: 23%;
  animation: pointerOrbit 8s linear infinite;
}

.cosmic-pointer::after {
  border-color: rgba(255, 255, 255, 0.1);
  animation-direction: reverse;
  inset: 34%;
}

@keyframes pointerOrbit {
  to { transform: rotate(360deg) scaleX(1.18); }
}

.hero--cosmic .orb--two {
  animation: cosmicFloatSmall 6s ease-in-out -2s infinite reverse;
}

@keyframes cosmicFloat {
  0%, 100% {
    transform: translate3d(var(--cosmic-x), var(--cosmic-y), 0) rotate(0deg);
  }
  50% {
    transform: translate3d(calc(var(--cosmic-x) + 18px), calc(var(--cosmic-y) - 20px), 0) rotate(4deg);
  }
}

@keyframes cosmicFloatSmall {
  0%, 100% {
    transform: translate3d(var(--cosmic-opposite-x), var(--cosmic-opposite-y), 0) rotate(0deg);
  }
  50% {
    transform: translate3d(calc(var(--cosmic-opposite-x) - 15px), calc(var(--cosmic-opposite-y) + 18px), 0) rotate(-5deg);
  }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(1.2vw, -2vh, 0) rotate(4deg); }
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--lime);
}

.ticker-track {
  display: flex;
  width: max-content;
  padding: 18px 0;
  align-items: center;
  gap: 2rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  animation: ticker 22s linear infinite;
}

.ticker-track i {
  font-size: 1.1rem;
  font-style: normal;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.section-pad {
  padding: clamp(88px, 11vw, 170px) 3vw;
}

.eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 9vw;
  margin-top: 7vw;
}

.intro h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6.3vw, 6.4rem);
  letter-spacing: -0.07em;
  line-height: 1.02;
}

.intro h2 span {
  position: relative;
  color: var(--violet);
  font-family: "Times New Roman", "Songti SC", serif;
  font-style: italic;
  font-weight: 400;
}

.intro-copy {
  align-self: end;
}

.intro-copy p {
  margin: 0 0 2.5rem;
  color: #4f4c47;
  font-size: 0.95rem;
  line-height: 1.8;
}

.text-link {
  display: flex;
  width: 100%;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--ink);
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
}

.services {
  background: var(--ink);
  color: white;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: end;
}

.service-list {
  margin-top: 8vw;
  border-top: 1px solid rgba(255,255,255,0.28);
}

.service-row {
  display: grid;
  grid-template-columns: 0.5fr 2fr 2fr auto;
  gap: 2vw;
  padding: clamp(28px, 3.5vw, 54px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  align-items: center;
  transition: color 200ms ease, padding 200ms ease;
}

.service-row:hover {
  padding-inline: 1.2vw;
  color: var(--lime);
}

.service-index,
.service-en {
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.service-row h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3.2vw, 3.6rem);
  letter-spacing: -0.05em;
}

.service-row p {
  max-width: 430px;
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.82rem;
  line-height: 1.7;
}

.service-row > .arrow {
  font-size: 2rem;
}

.project-showcase {
  background: #dad5cc;
}

.project-header {
  display: flex;
  padding-bottom: 3.5vw;
  align-items: end;
  justify-content: space-between;
}

.project-header > p:last-child {
  margin: 0;
  color: #5d5952;
  font-size: 0.8rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 690px;
}

.project-card {
  display: flex;
  min-height: 65vw;
  max-height: 820px;
  padding: 2.4vw;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--ink);
  overflow: hidden;
}

.project-card:last-child {
  border-right: 0;
}

.project-card--lime {
  background: var(--lime);
}

.project-card--violet {
  background: var(--violet);
  color: white;
}

.project-card--orange {
  background: var(--orange);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.project-visual {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  transition: border-radius 500ms cubic-bezier(.2,.8,.2,1), transform 500ms ease;
}

.project-card:hover .project-visual {
  border-radius: 12%;
  transform: rotate(6deg) scale(0.95);
}

.project-visual span {
  font-size: clamp(2.4rem, 5vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.1em;
}

.project-visual i {
  position: absolute;
  width: 28%;
  height: 28%;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translate(75%, -75%);
}

.project-copy h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 3.6vw, 4.5rem);
  letter-spacing: -0.07em;
}

.project-copy p {
  margin: 0;
  font-size: 0.78rem;
}

.method {
  background: var(--paper);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 9vw;
  border-top: 1px solid var(--ink);
}

.process-item {
  position: relative;
  padding: 2rem 1.8rem 0 0;
  border-right: 1px solid var(--ink);
}

.process-item:last-child {
  border-right: 0;
}

.process-number {
  font-size: 0.65rem;
  font-weight: 700;
}

.process-dot {
  width: 13px;
  height: 13px;
  margin: 4rem 0 3rem;
  border-radius: 50%;
  background: var(--violet);
}

.process-item:nth-child(2) .process-dot { background: var(--orange); }
.process-item:nth-child(3) .process-dot { background: var(--lime); border: 1px solid var(--ink); }
.process-item:nth-child(4) .process-dot { background: var(--ink); }

.process-item h3 {
  display: inline;
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.5rem);
  letter-spacing: -0.06em;
}

.process-item > span:nth-of-type(2) {
  margin-left: 0.5rem;
  color: #77716a;
  font-size: 0.68rem;
}

.process-item p {
  margin: 1.2rem 0 0;
  color: #5e5952;
  font-size: 0.75rem;
}

.contact {
  padding: 42px 3vw 36px;
  background: var(--violet);
  color: white;
}

.contact-top,
.contact-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-top > span,
.contact-foot {
  font-size: 0.72rem;
}

.contact-link {
  display: block;
  margin: 10vw 0 8vw;
  font-size: clamp(4.4rem, 11vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.86;
}

.contact-link > span {
  display: block;
}

.contact-link > span:last-child {
  display: flex;
  padding-left: 9vw;
  justify-content: space-between;
  align-items: center;
  color: var(--lime);
}

.contact-link .arrow {
  margin-right: 5vw;
  color: white;
  font-size: 0.75em;
}

.contact-foot {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.68);
}

.contact-foot p {
  margin: 0;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 28px 3vw;
  align-items: end;
  background: var(--ink);
  color: white;
}

.wordmark--footer {
  font-size: clamp(1.5rem, 2.4vw, 2.8rem);
}

footer p {
  margin: 0;
  color: rgba(255,255,255,0.46);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

footer p:last-child {
  justify-self: end;
}

@media (max-width: 800px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero h1 {
    margin-top: 180px;
    max-width: 11ch;
    font-size: clamp(2.8rem, 11.8vw, 4.8rem);
  }

  .hero-line {
    padding-left: 0;
  }

  .orb--two {
    right: 5%;
    bottom: 18%;
  }

  .hero-bottom {
    margin-top: 190px;
  }

  .circle-link {
    width: 82px;
    height: 82px;
    padding: 15px;
  }

  .intro-grid,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .intro-copy {
    max-width: 440px;
  }

  .service-row {
    grid-template-columns: 0.5fr 3fr auto;
  }

  .service-row p {
    display: none;
  }

  .project-header {
    align-items: start;
    flex-direction: column;
    gap: 1.2rem;
  }

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

  .project-card {
    min-height: 720px;
    padding: 28px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .project-visual {
    width: min(76vw, 390px);
    justify-self: center;
    align-self: center;
  }

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

  .process-item {
    min-height: 310px;
    border-bottom: 1px solid var(--ink);
  }

  .process-item:nth-child(2) {
    border-right: 0;
    padding-left: 1.2rem;
  }

  .process-item:nth-child(3) {
    padding-top: 2rem;
  }

  .process-item:nth-child(4) {
    padding-top: 2rem;
    padding-left: 1.2rem;
    border-right: 0;
  }

  .contact-link {
    margin-block: 120px 100px;
    font-size: 17vw;
  }

  .contact-foot {
    align-items: flex-end;
    gap: 2rem;
  }

  footer {
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
  }

  footer p:nth-of-type(1) {
    display: none;
  }
}

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

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

  .cosmic-pointer {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cosmic-pointer {
    display: none;
  }

  .cosmic-orbit {
    opacity: 0.55;
  }
}

/* Expanded agency and case-study system */
.nav-links--full {
  gap: clamp(1rem, 2.2vw, 2.6rem);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(80px, 10vw, 150px);
  border-top: 1px solid var(--ink);
}

.advantage-grid article {
  min-height: 260px;
  padding: 26px 2vw 28px 0;
  border-right: 1px solid var(--ink);
}

.advantage-grid article:not(:first-child) {
  padding-left: 2vw;
}

.advantage-grid article:last-child {
  border-right: 0;
}

.advantage-grid strong {
  display: block;
  min-height: 100px;
  color: var(--violet);
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  letter-spacing: -0.08em;
  line-height: 1;
}

.advantage-grid h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.advantage-grid p {
  max-width: 230px;
  margin: 0;
  color: #625e57;
  font-size: 0.76rem;
  line-height: 1.65;
}

.case-section {
  padding-top: clamp(80px, 9vw, 140px);
  background: #dad5cc;
}

.case-heading {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 8vw;
  align-items: end;
}

.case-heading h2,
.insight-intro h2 {
  margin: 3.5vw 0 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  letter-spacing: -0.07em;
  line-height: 1.02;
}

.case-heading > p {
  margin: 0;
  color: #5d5952;
  font-size: 0.78rem;
  line-height: 1.8;
}

.case-filters {
  display: flex;
  margin: 6vw 0 3.5vw;
  padding: 0 0 1.4rem;
  border-bottom: 1px solid rgba(21, 21, 21, 0.35);
  gap: 0.7rem;
  flex-wrap: wrap;
}

.case-filters button {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(21, 21, 21, 0.34);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.case-filters button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.case-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  background: white;
  transition:
    transform 420ms cubic-bezier(.2,.8,.2,1),
    box-shadow 420ms cubic-bezier(.2,.8,.2,1);
}

.case-image {
  position: relative;
  grid-column: 1 / -1;
  aspect-ratio: 628 / 522;
  overflow: hidden;
  background: #f2f2f0;
}

.case-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent 24%,
    rgba(255, 255, 255, 0.42) 45%,
    transparent 66%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-72%);
  transition: opacity 260ms ease, transform 760ms cubic-bezier(.2,.8,.2,1);
}

.case-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.8,.2,1), filter 300ms ease;
}

.case-image > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.case-card:hover .case-image img {
  transform: scale(1.065);
  filter: saturate(1.06) contrast(1.02);
}

.case-card:hover .case-image > span {
  opacity: 1;
  transform: translateY(0);
}

.case-card:hover {
  z-index: 2;
  box-shadow: 0 24px 60px rgba(21, 21, 21, 0.13);
  transform: translateY(-8px);
}

.case-card:hover .case-image::after {
  opacity: 1;
  transform: translateX(72%);
}

.case-number {
  padding: 24px 0 24px 18px;
  color: #6b665f;
  font-size: 0.65rem;
  transition: color 260ms ease, transform 360ms cubic-bezier(.2,.8,.2,1);
}

.case-info {
  min-height: 190px;
  padding: 22px 20px 28px;
  transition: transform 360ms cubic-bezier(.2,.8,.2,1);
}

.case-card:hover .case-number {
  color: var(--violet);
  transform: translateX(4px);
}

.case-card:hover .case-info {
  transform: translateX(4px);
}

.case-info p,
.case-info span {
  margin: 0;
  color: #6b665f;
  font-size: 0.68rem;
  line-height: 1.5;
}

.case-info h3 {
  margin: 1rem 0 2.4rem;
  font-size: clamp(1.25rem, 2vw, 2rem);
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.client-section {
  overflow: hidden;
  background: var(--lime);
}

.client-cloud {
  display: flex;
  margin-top: 7vw;
  gap: 0;
  flex-wrap: wrap;
}

.client-cloud span {
  padding: 0.3em 0.45em 0.42em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: clamp(2rem, 5.3vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease;
}

.client-cloud span:nth-child(3n + 2) {
  background: var(--violet);
  color: white;
}

.client-cloud span:nth-child(4n) {
  background: var(--orange);
}

.client-cloud span:hover {
  background: var(--ink);
  color: white;
}

.insights {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8vw;
  background: var(--paper);
}

.insight-intro {
  position: sticky;
  top: 3rem;
  align-self: start;
}

.insight-list {
  border-top: 1px solid var(--ink);
}

.insight-list > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--ink);
  align-items: start;
}

.insight-list > a > span:first-child {
  color: #77716a;
  font-size: 0.65rem;
}

.insight-list h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 2.2vw, 2.4rem);
  letter-spacing: -0.05em;
}

.insight-list p {
  max-width: 520px;
  margin: 0;
  color: #615d56;
  font-size: 0.76rem;
  line-height: 1.7;
}

.insight-list .arrow {
  font-size: 1.5rem;
}

.contact--detailed {
  background: var(--violet);
}

.contact-details {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr auto;
  gap: 4vw;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  align-items: start;
}

.contact-details > div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-details span {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.contact-details a,
.contact-details p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
}

.back-link {
  justify-self: end;
}

.footer--full {
  grid-template-columns: 1fr auto;
  gap: 22px 40px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-social a {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 0.66rem;
  font-weight: 700;
}

.insight-body {
  max-width: 1180px;
  margin: 0 auto;
}

.insight-body > section {
  display: grid;
  grid-template-columns: 90px minmax(0, 760px);
  padding: clamp(46px, 7vw, 90px) 0;
  border-top: 1px solid var(--ink);
}

.insight-body > section > span {
  color: var(--violet);
  font-size: 0.64rem;
  font-weight: 800;
}

.insight-body h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4.5vw, 4.8rem);
  letter-spacing: -0.07em;
  line-height: 1;
}

.insight-body section p {
  margin: 0;
  color: #625e58;
  font-size: 0.86rem;
  line-height: 2;
}

@media (max-width: 1000px) {
  .case-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .insight-intro {
    position: static;
  }
}

@media (max-width: 800px) {
  .nav-links--full {
    display: none;
  }

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

  .advantage-grid article:nth-child(2) {
    border-right: 0;
  }

  .advantage-grid article:nth-child(3),
  .advantage-grid article:nth-child(4) {
    border-top: 1px solid var(--ink);
  }

  .case-heading {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .case-filters {
    margin-top: 4rem;
  }

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

  .case-info {
    min-height: 170px;
  }

  .case-image > span {
    opacity: 1;
    transform: none;
  }

  .client-cloud span {
    font-size: clamp(1.8rem, 9vw, 4rem);
  }

  .contact-details {
    grid-template-columns: 1fr 1fr;
  }

  .back-link {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .advantage-grid article {
    min-height: 210px;
    padding-left: 0 !important;
    border-right: 0;
    border-top: 1px solid var(--ink);
  }

  .advantage-grid article:first-child {
    border-top: 0;
  }

  .advantage-grid strong {
    min-height: 80px;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }
}

/* Case detail pages */
.detail-page {
  background: var(--paper);
}

.detail-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: 100%;
  padding: 24px 3vw;
  border-bottom: 1px solid var(--ink);
  align-items: center;
}

.detail-nav > div {
  display: flex;
  gap: clamp(1.2rem, 2.6vw, 3rem);
  font-size: clamp(0.88rem, 1vw, 1.02rem);
}

.detail-nav a {
  transition: opacity 180ms ease;
}

.detail-nav .wordmark span {
  color: var(--ink);
}

.detail-nav a:hover {
  opacity: 0.55;
}

.detail-nav-cta {
  justify-self: end;
  font-size: clamp(0.86rem, 0.96vw, 1rem);
  font-weight: 700;
}

.detail-hero {
  padding: clamp(48px, 7vw, 110px) 3vw clamp(60px, 8vw, 120px);
}

.detail-breadcrumb {
  display: flex;
  color: #69645d;
  gap: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.detail-count {
  margin-left: auto;
}

.detail-hero h1 {
  max-width: 1300px;
  margin: clamp(90px, 12vw, 180px) 0 0;
  font-size: clamp(3.4rem, 8.6vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.88;
}

.detail-lead {
  max-width: 620px;
  margin: clamp(50px, 6vw, 90px) 0 0 auto;
  color: #4f4b44;
  font-size: clamp(1.18rem, 1.75vw, 1.65rem);
  line-height: 1.7;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(70px, 8vw, 130px);
  border-top: 1px solid var(--ink);
}

.detail-meta > div {
  min-height: 138px;
  padding: 22px 2vw 20px 0;
  border-right: 1px solid var(--ink);
}

.detail-meta > div:not(:first-child) {
  padding-left: 2vw;
}

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

.detail-meta span {
  color: #77716a;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.detail-meta p {
  max-width: 270px;
  margin: 2.2rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.detail-cover {
  display: flex;
  width: 100%;
  padding: clamp(24px, 5vw, 88px);
  background: #e5e0d8;
  justify-content: center;
}

.detail-cover img {
  display: block;
  width: 100%;
  max-width: 1300px;
  height: auto;
  object-fit: contain;
}

.detail-story {
  background: #f7f4ee;
  color: var(--ink);
}

.detail-story-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10vw;
  margin-top: 7vw;
}

.detail-story h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.3rem);
  letter-spacing: -0.075em;
  line-height: 1;
}

.detail-story h2 em {
  color: var(--violet);
  font-family: "Times New Roman", "Songti SC", serif;
  font-weight: 400;
}

.detail-story article {
  padding: 0 0 3rem;
  border-bottom: 1px solid rgba(18, 18, 18, 0.24);
}

.detail-story article + article {
  padding-top: 3rem;
}

.detail-story article span {
  color: #77716a;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.detail-story article h3 {
  margin: 1.5rem 0 1rem;
  font-size: clamp(1.42rem, 1.8vw, 1.8rem);
}

.detail-story article p {
  margin: 0;
  color: #625e58;
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  line-height: 1.8;
}

.detail-gallery {
  padding: clamp(80px, 11vw, 180px) clamp(18px, 6vw, 110px) clamp(110px, 14vw, 230px);
  background: #eeeae3;
}

.detail-gallery-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 1600px;
  margin: 0 auto clamp(80px, 11vw, 180px);
  border-top: 1px solid rgba(18, 18, 18, 0.28);
  padding-top: 20px;
  align-items: end;
}

.detail-gallery-intro .eyebrow {
  grid-column: 1 / -1;
}

.detail-gallery-intro h2 {
  margin: clamp(60px, 8vw, 120px) 0 0;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  letter-spacing: -0.08em;
  line-height: 0.95;
}

.detail-gallery-intro > span {
  color: #6b665f;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.detail-gallery-grid {
  display: flex;
  flex-direction: column;
  max-width: 1300px;
  margin: 0 auto;
  gap: clamp(64px, 9vw, 150px);
  align-items: center;
}

.detail-gallery-item {
  display: flex;
  width: 100%;
  margin: 0;
  align-items: center;
  justify-content: center;
}

.detail-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.detail-system {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
  align-items: center;
  background: var(--lime);
}

.detail-system-mark {
  position: relative;
  display: grid;
  width: min(40vw, 560px);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  place-items: center;
}

.detail-system-mark span {
  font-size: clamp(7rem, 18vw, 17rem);
  font-weight: 900;
  letter-spacing: -0.18em;
  transform: translateX(-0.07em);
}

.detail-system-mark i {
  position: absolute;
  right: 8%;
  bottom: 7%;
  display: grid;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--violet);
  color: white;
  font-size: clamp(2rem, 5vw, 5rem);
  font-style: normal;
  font-weight: 800;
  place-items: center;
}

.detail-system h2 {
  margin: 2.5rem 0;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  letter-spacing: -0.07em;
  line-height: 1.03;
}

.detail-system > div:last-child > p:last-of-type {
  max-width: 560px;
  color: #4f4b24;
  font-size: 0.82rem;
  line-height: 1.8;
}

.detail-system a {
  display: inline-block;
  margin-top: 2.2rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.detail-next {
  padding: clamp(70px, 9vw, 140px) 3vw;
  background: var(--paper);
}

.detail-next > p {
  margin: 0 0 5vw;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.detail-next > a {
  display: grid;
  grid-template-columns: 1fr 4fr auto;
  gap: 2vw;
  padding: 2.5rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  align-items: center;
}

.detail-next > a > span {
  color: #6d6860;
  font-size: 0.66rem;
}

.detail-next strong {
  font-size: clamp(2rem, 5vw, 5rem);
  letter-spacing: -0.065em;
}

.detail-next i {
  font-size: clamp(2rem, 4vw, 4rem);
  font-style: normal;
  transition: transform 180ms ease;
}

.detail-next a:hover i {
  transform: translate(6px, -6px);
}

.detail-contact {
  padding: 42px 3vw clamp(70px, 9vw, 130px);
  background: var(--violet);
  color: white;
}

.detail-contact p {
  margin: 0;
  font-size: 0.68rem;
}

.detail-contact > a {
  display: block;
  margin-top: 8vw;
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.9;
}

.detail-contact > a span {
  display: inline-block;
  padding-left: 8vw;
  color: var(--lime);
}

/* AI brand diagnosis */
.diagnosis-entry {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
  min-height: 760px;
  gap: 8vw;
  overflow: hidden;
  background: var(--violet);
  color: white;
  align-items: center;
}

.diagnosis-entry-orb {
  position: relative;
  display: grid;
  width: min(40vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 33%, white 0 4%, transparent 5%),
    radial-gradient(circle at 48% 50%, var(--lime) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 50%, rgba(217, 255, 63, 0.34), transparent 52%);
  place-items: center;
}

.diagnosis-entry-orb::before,
.diagnosis-entry-orb::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  content: "";
  inset: 14%;
}

.diagnosis-entry-orb::after {
  border-color: rgba(217, 255, 63, 0.55);
  transform: rotate(58deg) scaleX(0.38);
  inset: 5%;
}

.diagnosis-entry-orb span {
  z-index: 1;
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.1em;
}

.diagnosis-entry-copy h2 {
  margin: clamp(60px, 8vw, 110px) 0 32px;
  font-size: clamp(3.2rem, 6vw, 6.5rem);
  letter-spacing: -0.08em;
  line-height: 0.96;
}

.diagnosis-entry-copy > p:not(.eyebrow) {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  line-height: 1.8;
}

.diagnosis-entry-copy > a {
  display: inline-flex;
  margin-top: 38px;
  padding: 16px 22px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  gap: 28px;
}

.diagnosis-page {
  background: #eeeae3;
}

.diagnosis-nav {
  background: #eeeae3;
}

.diagnosis-hero {
  padding: clamp(150px, 15vw, 230px) 3vw clamp(90px, 10vw, 150px);
  border-bottom: 1px solid var(--ink);
}

.diagnosis-hero > div:first-child,
.diagnosis-hero-bottom {
  display: flex;
  justify-content: space-between;
}

.diagnosis-hero > div:first-child {
  font-size: 0.62rem;
  letter-spacing: 0.11em;
}

.diagnosis-hero > div:first-child p {
  margin: 0;
  font-weight: 800;
}

.diagnosis-hero > div:first-child span {
  color: #716b64;
}

.diagnosis-hero h1 {
  max-width: 1450px;
  margin: clamp(70px, 9vw, 130px) 0;
  font-size: clamp(4.2rem, 10vw, 10.5rem);
  letter-spacing: -0.095em;
  line-height: 0.88;
}

.diagnosis-hero-bottom {
  align-items: end;
}

.diagnosis-hero-bottom p {
  max-width: 570px;
  margin: 0 0 0 32vw;
  font-size: 0.88rem;
  line-height: 1.8;
}

.diagnosis-hero-bottom span {
  color: #716b64;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  line-height: 1.65;
  text-align: right;
}

.diagnosis-form,
.diagnosis-result {
  width: min(1180px, calc(100% - 6vw));
  margin: 0 auto;
  padding: clamp(80px, 11vw, 170px) 0;
}

.diagnosis-form > section {
  padding: 0 0 clamp(90px, 11vw, 160px);
}

.diagnosis-form > section + section {
  padding-top: clamp(70px, 9vw, 130px);
  border-top: 1px solid var(--ink);
}

.diagnosis-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  margin-bottom: clamp(60px, 8vw, 110px);
}

.diagnosis-step > span {
  color: var(--violet);
  font-size: 0.65rem;
  font-weight: 800;
}

.diagnosis-step p {
  margin: 0 0 18px;
  color: #716b64;
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.diagnosis-step h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  letter-spacing: -0.075em;
}

.diagnosis-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 5vw;
}

.diagnosis-fields > label {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diagnosis-fields > label > span,
.diagnosis-options legend {
  color: #5f5a54;
  font-size: 0.64rem;
  font-weight: 700;
}

.diagnosis-fields input,
.diagnosis-fields textarea,
.diagnosis-fields select {
  width: 100%;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid rgba(21, 21, 21, 0.42);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
}

.diagnosis-fields textarea {
  min-height: 150px;
  resize: vertical;
}

.diagnosis-fields input:focus,
.diagnosis-fields textarea:focus,
.diagnosis-fields select:focus {
  border-color: var(--violet);
}

.diagnosis-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 80px;
  padding: 0;
  border: 0;
  gap: 12px;
}

.diagnosis-options legend {
  margin-bottom: 22px;
}

.diagnosis-options label {
  position: relative;
  cursor: pointer;
}

.diagnosis-options input {
  position: absolute;
  opacity: 0;
}

.diagnosis-options label span {
  display: block;
  min-height: 86px;
  padding: 26px 24px;
  border: 1px solid rgba(21, 21, 21, 0.25);
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  transition: background 160ms ease, border-color 160ms ease;
}

.diagnosis-options input:checked + span {
  border-color: var(--violet);
  background: var(--violet);
  color: white;
}

.diagnosis-options input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.diagnosis-consent {
  display: flex;
  max-width: 760px;
  margin-top: 48px;
  color: #5f5a54;
  cursor: pointer;
  font-size: 0.68rem;
  line-height: 1.6;
  gap: 12px;
}

.diagnosis-consent input {
  margin-top: 3px;
  accent-color: var(--violet);
}

.diagnosis-honeypot {
  position: absolute;
  left: -10000px;
}

.diagnosis-submit {
  display: flex;
  width: min(100%, 620px);
  margin-top: 52px;
  padding: 22px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  justify-content: space-between;
}

.diagnosis-submit:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.diagnosis-disclaimer,
.diagnosis-error {
  max-width: 620px;
  color: #77716a;
  font-size: 0.6rem;
  line-height: 1.6;
}

.diagnosis-error {
  color: #be3b25;
}

.diagnosis-result-head {
  display: flex;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--ink);
  justify-content: space-between;
  align-items: end;
}

.diagnosis-result-head p {
  margin: 0 0 10px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.diagnosis-result-head > div > span {
  color: #716b64;
  font-size: 0.78rem;
}

.diagnosis-result-head > strong {
  color: var(--violet);
  font-size: clamp(4rem, 9vw, 9rem);
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.diagnosis-result-head small {
  font-size: 0.16em;
  letter-spacing: 0;
}

.diagnosis-result > h2 {
  max-width: 1000px;
  margin: clamp(70px, 9vw, 130px) 0 32px;
  font-size: clamp(3.2rem, 7vw, 7rem);
  letter-spacing: -0.08em;
  line-height: 0.96;
}

.diagnosis-summary {
  max-width: 720px;
  margin: 0 0 clamp(80px, 10vw, 140px);
  color: #5f5a54;
  font-size: 0.9rem;
  line-height: 1.85;
}

.diagnosis-score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.diagnosis-score-grid article {
  padding: clamp(26px, 4vw, 52px);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.diagnosis-score-grid article > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.diagnosis-score-grid article strong {
  font-size: 2.4rem;
  letter-spacing: -0.06em;
}

.diagnosis-score-grid i {
  display: block;
  height: 5px;
  margin: 28px 0 20px;
  background: rgba(21, 21, 21, 0.12);
}

.diagnosis-score-grid b {
  display: block;
  height: 100%;
  background: var(--violet);
}

.diagnosis-score-grid p,
.diagnosis-priorities article p {
  margin: 0;
  color: #68635d;
  font-size: 0.72rem;
  line-height: 1.7;
}

.diagnosis-priorities {
  margin-top: clamp(90px, 12vw, 170px);
}

.diagnosis-priorities > p {
  margin: 0 0 38px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.diagnosis-priorities article {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 34px 0;
  border-top: 1px solid var(--ink);
}

.diagnosis-priorities article > span {
  color: var(--violet);
  font-size: 0.65rem;
}

.diagnosis-priorities h3 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  letter-spacing: -0.05em;
}

.diagnosis-next {
  display: flex;
  margin-top: 80px;
  padding: clamp(34px, 5vw, 70px);
  background: var(--lime);
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.diagnosis-next p {
  max-width: 650px;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.75;
}

.diagnosis-next a {
  flex: 0 0 auto;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.diagnosis-restart {
  margin-top: 28px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
}

@media (max-width: 800px) {
  .detail-nav {
    grid-template-columns: 1fr auto;
  }

  .detail-nav > div {
    display: none;
  }

  .detail-hero h1 {
    margin-top: 100px;
    font-size: clamp(3.2rem, 14.5vw, 6rem);
  }

  .detail-lead {
    margin-left: 0;
  }

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

  .detail-meta > div:nth-child(2) {
    border-right: 0;
  }

  .detail-meta > div:nth-child(3),
  .detail-meta > div:nth-child(4) {
    border-top: 1px solid var(--ink);
  }

  .detail-cover {
    padding: 18px;
  }

  .detail-story-grid,
  .detail-system {
    grid-template-columns: 1fr;
  }

  .detail-story-grid {
    gap: 5rem;
  }

  .detail-gallery {
    padding: 72px 18px 110px;
  }

  .detail-gallery-intro {
    grid-template-columns: 1fr;
    margin-bottom: 80px;
  }

  .detail-gallery-intro h2 {
    margin-top: 64px;
  }

  .detail-gallery-intro > span {
    margin-top: 28px;
  }

  .detail-gallery-grid {
    display: block;
  }

  .detail-gallery-item + .detail-gallery-item {
    margin-top: 56px;
  }

  .detail-system-mark {
    width: min(88vw, 520px);
  }

  .detail-next > a {
    grid-template-columns: 1fr auto;
  }

  .detail-next > a > span {
    grid-column: 1 / -1;
  }

  .diagnosis-entry {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .diagnosis-entry-orb {
    width: min(78vw, 500px);
  }

  .diagnosis-hero > div:first-child,
  .diagnosis-hero-bottom {
    gap: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .diagnosis-hero-bottom p {
    margin-left: 0;
  }

  .diagnosis-hero-bottom span {
    text-align: left;
  }

  .diagnosis-fields,
  .diagnosis-options,
  .diagnosis-score-grid {
    grid-template-columns: 1fr;
  }

  .diagnosis-step,
  .diagnosis-priorities article {
    grid-template-columns: 50px 1fr;
  }

  .diagnosis-next {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Content management */
.admin-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100svh;
  background: #ece8e0;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: auto;
  padding: 28px 20px;
  background: var(--ink);
  color: white;
}

.admin-brand {
  display: block;
  margin: 0 10px 52px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.admin-brand span {
  color: var(--lime);
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-sidebar nav > p {
  margin: 28px 10px 10px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.admin-sidebar button {
  display: grid;
  grid-template-columns: 28px 1fr;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.admin-sidebar button span {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.56rem;
}

.admin-sidebar button:hover,
.admin-sidebar button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-sidebar button.is-active span {
  color: var(--lime);
}

.admin-workspace {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 78px;
  padding: 16px 3vw;
  border-bottom: 1px solid rgba(21, 21, 21, 0.18);
  background: rgba(236, 232, 224, 0.94);
  backdrop-filter: blur(14px);
  align-items: center;
  justify-content: space-between;
}

.admin-topbar > div {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.admin-topbar p,
.admin-topbar span {
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.admin-topbar span {
  color: #716c64;
}

.admin-topbar a,
.admin-topbar button,
.admin-upload {
  padding: 11px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 700;
}

.admin-topbar button {
  background: var(--ink);
  color: white;
}

.admin-topbar button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.admin-notice {
  margin: 24px 3vw 0;
  padding: 14px 18px;
  font-size: 0.72rem;
}

.admin-notice.is-success {
  background: var(--lime);
}

.admin-notice.is-error {
  background: #ffb5a4;
}

.admin-form {
  width: min(1040px, calc(100% - 6vw));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) 0 140px;
}

.admin-content-manager {
  width: min(1240px, calc(100% - 6vw));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) 0 140px;
}

.admin-manager-heading {
  display: flex;
  margin-bottom: clamp(50px, 7vw, 90px);
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.admin-manager-heading p {
  margin: 0 0 1rem;
  color: #77716a;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.admin-manager-heading h1 {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.admin-manager-heading span {
  color: #69645d;
  font-size: 0.78rem;
}

.admin-manager-heading > button {
  flex: 0 0 auto;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
}

.admin-content-table {
  border-top: 1px solid var(--ink);
}

.admin-content-row {
  display: grid;
  grid-template-columns: 54px minmax(240px, 1.8fr) minmax(150px, 1fr) 90px 150px;
  min-height: 84px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(21, 21, 21, 0.22);
  align-items: center;
  gap: 18px;
}

.admin-content-row strong,
.admin-content-row small {
  display: block;
}

.admin-content-row strong {
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.admin-content-row small,
.admin-content-row > span,
.admin-content-row > label {
  color: #6d6861;
  font-size: 0.62rem;
  line-height: 1.5;
}

.admin-content-row input {
  accent-color: var(--violet);
}

.admin-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.admin-row-actions button,
.admin-remove-media {
  padding: 7px 9px;
  border: 1px solid rgba(21, 21, 21, 0.28);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.6rem;
}

.admin-check {
  justify-content: flex-end;
}

.admin-check input {
  width: auto;
  margin-right: 8px;
}

.admin-image-placeholder {
  display: grid;
  min-height: 260px;
  border: 1px dashed rgba(21, 21, 21, 0.3);
  color: #77716a;
  font-size: 0.72rem;
  place-items: center;
}

.admin-cover-preview > div:last-child {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
}

.admin-leads {
  width: min(1180px, calc(100% - 6vw));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) 0 140px;
}

.admin-lead-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.admin-lead-list > article {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(21, 21, 21, 0.2);
  background: #f7f3eb;
}

.admin-lead-list header {
  display: flex;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(21, 21, 21, 0.22);
  justify-content: space-between;
  align-items: end;
}

.admin-lead-list header span,
.admin-lead-meta span,
.admin-lead-detail span {
  color: #77716a;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.admin-lead-list h2 {
  margin: 10px 0 6px;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.065em;
}

.admin-lead-list header p,
.admin-lead-meta p,
.admin-lead-detail p {
  margin: 0;
}

.admin-lead-list header strong {
  color: var(--violet);
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.07em;
}

.admin-lead-list header small {
  font-size: 0.18em;
}

.admin-lead-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(21, 21, 21, 0.22);
}

.admin-lead-meta > div {
  padding: 24px 20px 24px 0;
}

.admin-lead-meta p,
.admin-lead-detail p {
  margin-top: 10px;
  font-size: 0.72rem;
  line-height: 1.65;
}

.admin-lead-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 0 32px;
  gap: 32px;
}

.admin-lead-list article > a {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
}

.admin-empty {
  padding: 60px;
  border: 1px solid rgba(21, 21, 21, 0.2);
  text-align: center;
}

.admin-empty a {
  display: inline-block;
  margin-top: 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.7rem;
}

.admin-form-heading {
  margin-bottom: clamp(60px, 8vw, 110px);
}

.admin-form-heading p,
.admin-media-section p {
  margin: 0 0 1rem;
  color: #77716a;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.admin-form-heading h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.admin-form-heading > span {
  color: #69645d;
  font-size: 0.8rem;
}

.admin-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.admin-field {
  display: flex;
  margin-bottom: 30px;
  flex-direction: column;
  gap: 10px;
}

.admin-field > span {
  color: #615d56;
  font-size: 0.64rem;
  font-weight: 700;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid rgba(21, 21, 21, 0.38);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.7;
  transition: border-color 160ms ease;
}

.admin-field textarea {
  min-height: 140px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  border-color: var(--violet);
}

.admin-media-section {
  margin-top: 90px;
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}

.admin-media-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.06em;
}

.admin-media-heading {
  display: flex;
  margin-bottom: 36px;
  justify-content: space-between;
  align-items: end;
}

.admin-upload {
  position: relative;
  display: inline-block;
  width: fit-content;
  background: var(--lime);
}

.admin-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.admin-cover-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 36px;
  gap: 24px;
  align-items: end;
}

.admin-cover-preview img {
  width: 100%;
  max-height: 480px;
  background: #ddd7cd;
  object-fit: contain;
}

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

.admin-media-grid article {
  padding: 10px;
  border: 1px solid rgba(21, 21, 21, 0.18);
  background: #f5f1e9;
}

.admin-media-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e2ddd4;
  object-fit: contain;
}

.admin-media-grid article > div {
  display: flex;
  padding-top: 10px;
  align-items: center;
  gap: 8px;
}

.admin-media-grid span {
  margin-right: auto;
  color: #77716a;
  font-size: 0.58rem;
}

.admin-media-grid button {
  padding: 6px 8px;
  border: 1px solid rgba(21, 21, 21, 0.28);
  background: transparent;
  cursor: pointer;
  font-size: 0.6rem;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    max-height: 330px;
  }

  .admin-brand {
    margin-bottom: 24px;
  }

  .admin-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .admin-content-row {
    grid-template-columns: 54px minmax(180px, 1fr) 90px 140px;
  }

  .admin-content-row > span:nth-child(3) {
    display: none;
  }
}

@media (max-width: 620px) {
  .footer--full {
    grid-template-columns: 1fr;
  }

  .footer--full p:last-child {
    justify-self: start;
  }

  .admin-topbar > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-field-row,
  .admin-media-grid,
  .admin-cover-preview {
    grid-template-columns: 1fr;
  }

  .admin-manager-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-content-row {
    grid-template-columns: 42px 1fr;
  }

  .admin-content-row > label {
    display: none;
  }

  .admin-row-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .insight-body > section {
    grid-template-columns: 44px 1fr;
  }

  .admin-media-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .admin-lead-meta,
  .admin-lead-detail {
    grid-template-columns: 1fr;
  }

  .admin-lead-list header {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
}

/* White gallery theme */
.ticker {
  background: white;
}

.intro,
.case-section,
.services,
.client-section,
.diagnosis-entry,
.insights,
.contact--detailed,
.detail-story,
.detail-gallery,
.detail-system,
.detail-next,
.detail-contact,
.footer--full {
  background: white;
  color: var(--ink);
}

.case-section {
  background: #f7f7f5;
}

.services .service-list {
  border-top-color: rgba(21, 21, 21, 0.24);
}

.services .service-row {
  border-bottom-color: rgba(21, 21, 21, 0.24);
}

.services .service-row:hover {
  color: var(--violet);
}

.services .service-index,
.services .service-en {
  color: rgba(21, 21, 21, 0.45);
}

.services .service-row p {
  color: rgba(21, 21, 21, 0.66);
}

.client-cloud span {
  background: white;
}

.client-cloud span:nth-child(3n + 2),
.client-cloud span:nth-child(4n) {
  background: white;
  color: var(--ink);
}

.client-cloud span:hover {
  background: var(--ink);
  color: white;
}

.diagnosis-entry {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.diagnosis-entry-orb {
  border-color: rgba(21, 21, 21, 0.42);
  background:
    radial-gradient(circle at 62% 33%, var(--ink) 0 3%, transparent 4%),
    radial-gradient(circle at 48% 50%, var(--lime) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 50%, rgba(117, 98, 255, 0.12), transparent 54%);
}

.diagnosis-entry-orb::before,
.diagnosis-entry-orb::after {
  border-color: rgba(21, 21, 21, 0.2);
}

.diagnosis-entry-orb::after {
  border-color: rgba(117, 98, 255, 0.48);
}

.diagnosis-entry-copy > p:not(.eyebrow) {
  color: rgba(21, 21, 21, 0.65);
}

.diagnosis-entry-copy > a {
  border: 1px solid var(--ink);
  background: white;
}

.diagnosis-entry-copy > a:hover {
  background: var(--ink);
  color: white;
}

.contact--detailed,
.detail-contact {
  border-top: 1px solid var(--ink);
}

.contact--detailed .contact-link > span:last-child,
.detail-contact > a span {
  color: var(--violet);
}

.contact--detailed .contact-link .arrow {
  color: var(--ink);
}

.contact-details {
  border-top-color: rgba(21, 21, 21, 0.34);
}

.contact-details span {
  color: rgba(21, 21, 21, 0.5);
}

.footer--full {
  border-top: 1px solid var(--ink);
}

.footer--full p {
  color: rgba(21, 21, 21, 0.54);
}

.footer--full .wordmark span {
  color: var(--ink);
}

.detail-cover,
.detail-gallery {
  background: #f7f7f5;
}

.detail-story {
  border-top: 1px solid rgba(21, 21, 21, 0.16);
}

.detail-system {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.detail-system > div:last-child > p:last-of-type {
  color: rgba(21, 21, 21, 0.66);
}

@media (prefers-reduced-motion: reduce) {
  .case-card:hover {
    transform: none;
  }

  .case-image::after {
    display: none;
  }
}
