:root {
  color-scheme: dark;
  --ink: #050607;
  --ink-2: #0b0f12;
  --paper: #f6f5f1;
  --paper-2: #eceae3;
  --text: #f7f8f5;
  --text-dark: #101214;
  --muted: #aeb4b8;
  --muted-dark: #626a70;
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(5, 6, 7, 0.16);
  --teal: #12c9c0;
  --teal-dark: #06988f;
  --radius: 6px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --page-width: min(1680px, calc(100% - clamp(32px, 5vw, 96px)));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #000;
  font-family:
    "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 50%;
  width: var(--page-width);
  height: 54px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 126px;
  color: #ffffff;
}

.brand-title {
  font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.brand-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.brand-subtitle {
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(247, 248, 245, 0.78);
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.5vw, 34px);
  color: rgba(247, 248, 245, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
}

.nav-links a,
.site-footer nav a {
  position: relative;
  padding: 12px 0;
}

.nav-links a::after,
.site-footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  opacity: 0;
  background: var(--teal);
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.nav-cta,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-cta {
  color: #ffffff;
}

.nav-cta::after,
.button::after {
  content: "↗";
  margin-left: 11px;
  font-size: 0.78rem;
  transform: translateY(-1px);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #031415;
  border-color: var(--teal);
  background: var(--teal);
}

.button.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
  background: transparent;
}

.button.ghost:hover,
.nav-cta:hover {
  color: var(--ink);
  border-color: var(--teal);
  background: var(--teal);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
}

.menu-button span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 3px 0;
  background: #ffffff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .menu-button span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .menu-button span:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-button span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  z-index: 25;
  inset: 82px 0 auto;
  display: none;
  padding: 18px 22px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.hero {
  --hero-copy-y: 0px;
  --hero-copy-opacity: 1;
  --hero-model-x: 0px;
  --hero-model-y: 0px;
  --hero-model-scale: 1;
  --hero-model-rotate: 0deg;
  --hero-mask-x: 56%;
  --hero-mask-y: 54%;
  --hero-mask-size: 48%;
  --hero-veil-opacity: 0.38;
  position: relative;
  min-height: clamp(520px, 48vw, 760px);
  overflow: hidden;
  padding: 72px 0 42px;
  background:
    radial-gradient(circle at 74% 50%, rgba(170, 184, 190, 0.22), transparent 24rem),
    linear-gradient(90deg, rgba(5, 6, 7, 1) 0%, rgba(5, 6, 7, 0.98) 45%, rgba(5, 6, 7, 0.86) 100%),
    var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 54px 0 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 11.5%, rgba(255, 255, 255, 0.16) 11.55%, transparent 11.6%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 100% 88px;
  opacity: 0.1;
}

#brain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.22;
  mix-blend-mode: screen;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(520px, 0.92fr) minmax(620px, 1.18fr);
  align-items: center;
  gap: clamp(48px, 5vw, 108px);
  width: var(--page-width);
  max-width: none;
  min-height: clamp(410px, 39vw, 610px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
  padding-top: clamp(36px, 4vw, 74px);
  opacity: var(--hero-copy-opacity);
  transform: translate3d(0, var(--hero-copy-y), 0);
  will-change: transform, opacity;
}

.hero h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
  font-size: clamp(7rem, 8.8vw, 12rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-line {
  position: relative;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--teal);
  font-size: clamp(1.8rem, 2.25vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
}

.hero-summary {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(247, 248, 245, 0.76);
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  line-height: 1.9;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 22px;
  margin-top: 26px;
}

.scan-button span {
  position: relative;
  z-index: 1;
}

.scan-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -55%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}

.scan-button:hover::before,
.scan-button:focus-visible::before {
  opacity: 0.72;
  animation: premium-sheen 1.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

@keyframes premium-sheen {
  0% {
    transform: translateX(0) skewX(-18deg);
  }

  54% {
    transform: translateX(420%) skewX(-18deg);
  }

  100% {
    transform: translateX(420%) skewX(-18deg);
  }
}

.hero-object {
  position: relative;
  min-height: clamp(390px, 34vw, 560px);
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--hero-model-x), var(--hero-model-y), 0) scale(var(--hero-model-scale)) rotate(var(--hero-model-rotate));
  transform-origin: 56% 54%;
  will-change: transform;
}

.hero-object img {
  position: absolute;
  inset: -38px -140px -58px -62px;
  width: calc(100% + 220px);
  height: calc(100% + 96px);
  display: block;
  object-fit: contain;
  object-position: center;
  mask-image:
    radial-gradient(
      ellipse at var(--hero-mask-x) var(--hero-mask-y),
      black var(--hero-mask-size),
      rgba(0, 0, 0, 0.82) calc(var(--hero-mask-size) + 16%),
      transparent calc(var(--hero-mask-size) + 34%)
    );
  will-change: transform, mask-image;
}

.hero-object::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 8% -12% 8% 2%;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 28%, rgba(255, 255, 255, 0.5) 38%, rgba(18, 201, 192, 0.18) 45%, transparent 58%),
    radial-gradient(circle at var(--hero-mask-x) var(--hero-mask-y), rgba(18, 201, 192, 0.2), transparent 42%);
  mix-blend-mode: screen;
  opacity: var(--hero-veil-opacity);
  transform: translate3d(calc(var(--hero-model-x) * -0.35), calc(var(--hero-model-y) * -0.25), 0);
  mask-image: linear-gradient(90deg, transparent, black 24%, black 78%, transparent);
  will-change: transform, opacity;
}

.hero-object::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 8%;
  bottom: 9%;
  width: 46%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(18, 201, 192, 0.85), transparent);
  opacity: calc(var(--hero-veil-opacity) + 0.18);
  transform: translate3d(calc(var(--hero-model-x) * -0.5), calc(var(--hero-model-y) * -0.15), 0);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  width: 18px;
  height: 18px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translateX(-50%) rotate(45deg);
  opacity: 0.72;
}

.service-index,
.cases,
.about,
.insights {
  color: var(--text-dark);
  background: var(--paper);
}

.service-index,
.process-band,
.cases,
.about,
.insights,
.contact {
  scroll-margin-top: 82px;
}

.service-index {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 2.7fr);
  width: var(--page-width);
  margin: 0 auto;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.section-title {
  padding: clamp(34px, 3.2vw, 54px) clamp(34px, 3.2vw, 56px);
}

.section-title p,
.process-heading p,
.about > div > p {
  margin: 0 0 18px;
  font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
  font-size: clamp(1.85rem, 2.4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.1;
}

.section-title h2,
.process-heading h2,
.about h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(0.9rem, 1vw, 1.08rem);
  font-weight: 600;
  line-height: 1.85;
  color: var(--muted-dark);
}

.section-title a {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 900;
}

.section-title a::after {
  content: "→";
  margin-left: 10px;
  color: var(--teal-dark);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-left: 1px solid var(--line-dark);
}

.service-card {
  min-height: clamp(170px, 12.4vw, 220px);
  padding: clamp(34px, 3vw, 48px) clamp(18px, 1.8vw, 32px) clamp(28px, 2.4vw, 40px);
  border-right: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.32);
  transition: background 180ms ease, transform 180ms ease;
}

.service-card:hover {
  background: #ffffff;
  transform: translateY(-4px);
}

.service-icon {
  width: clamp(40px, 3vw, 56px);
  height: clamp(40px, 3vw, 56px);
  margin: 0 auto clamp(16px, 1.6vw, 28px);
  color: var(--text-dark);
  position: relative;
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
}

.service-icon.screen::before {
  inset: 6px 4px 14px;
  border-radius: 2px;
}

.service-icon.screen::after {
  right: 12px;
  bottom: 7px;
  left: 12px;
  height: 7px;
  border-width: 0 0 2px;
}

.service-icon.layers::before,
.service-icon.layers::after {
  inset: 7px;
  border-width: 2px 2px 0 0;
  transform: rotate(135deg);
}

.service-icon.layers::after {
  top: 19px;
}

.service-icon.cube::before {
  inset: 8px;
  transform: rotate(30deg) skewY(-22deg);
}

.service-icon.cube::after {
  inset: 12px 7px 8px 18px;
  border-left: 0;
  transform: skewY(28deg);
}

.service-icon.cart::before {
  inset: 14px 6px 14px 10px;
  border-top: 0;
  transform: skewX(-12deg);
}

.service-icon.cart::after {
  right: 10px;
  bottom: 5px;
  left: 13px;
  height: 8px;
  border-width: 2px 0 0;
  border-radius: 999px;
  box-shadow: 18px 0 0 -3px currentColor;
}

.service-icon.search::before {
  inset: 7px 13px 13px 7px;
  border-radius: 50%;
}

.service-icon.search::after {
  right: 7px;
  bottom: 9px;
  width: 16px;
  height: 2px;
  border: 0;
  background: currentColor;
  transform: rotate(45deg);
}

.service-icon.chart::before {
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 30px;
  border-width: 0 0 2px 2px;
}

.service-icon.chart::after {
  right: 10px;
  bottom: 11px;
  width: 5px;
  height: 14px;
  border: 0;
  background: currentColor;
  box-shadow: -12px -9px 0 currentColor, -24px 1px 0 currentColor;
}

.service-card h3,
.process-list h3,
.case-copy h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(1rem, 1.05vw, 1.25rem);
  line-height: 1.35;
}

.service-card p,
.process-list p,
.case-copy dd,
.about-panel,
.insight-list strong,
.contact p {
  color: var(--muted-dark);
  line-height: 1.82;
  font-weight: 600;
}

.service-card p {
  margin: 12px 0 0;
  font-size: clamp(0.76rem, 0.74vw, 0.92rem);
  text-align: center;
}

.service-card h3 {
  text-align: center;
}

.process-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 2.7fr);
  width: var(--page-width);
  margin: 0 auto;
  padding: 0;
  color: var(--text);
  background: #060707;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-heading {
  padding: 23px 28px;
}

.process-heading h2 {
  color: rgba(247, 248, 245, 0.64);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.process-list li {
  position: relative;
  min-height: clamp(150px, 11vw, 205px);
  padding: clamp(30px, 2.8vw, 48px) clamp(18px, 1.8vw, 30px);
  border-right: 1px solid var(--line);
}

.process-list li::after {
  content: "›";
  position: absolute;
  top: clamp(52px, 4.8vw, 82px);
  right: -9px;
  z-index: 1;
  color: #ffffff;
  font-size: clamp(1.7rem, 2.4vw, 2.8rem);
  font-weight: 200;
}

.process-list li:last-child::after {
  display: none;
}

.process-list span {
  display: block;
  margin-bottom: 15px;
  color: var(--teal);
  font-size: clamp(1rem, 1vw, 1.25rem);
  font-weight: 900;
}

.process-list h3 {
  color: #ffffff;
}

.process-list p {
  margin: 10px 0 0;
  color: rgba(247, 248, 245, 0.66);
  font-size: clamp(0.72rem, 0.72vw, 0.9rem);
}

.cases {
  width: var(--page-width);
  margin: 0 auto;
  padding-bottom: 0;
}

.cases .section-title {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.5fr) auto;
  align-items: end;
  gap: 28px;
}

.cases .section-title p,
.cases .section-title h2,
.cases .section-title a {
  margin-top: 0;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: calc(100% - clamp(48px, 5vw, 96px));
  margin: 0 auto 0;
  border: 1px solid var(--line-dark);
  background: #ffffff;
}

.case-card {
  display: grid;
  grid-template-rows: clamp(170px, 12vw, 240px) auto;
  border-right: 1px solid var(--line-dark);
}

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

.case-visual {
  position: relative;
  overflow: hidden;
  margin: clamp(18px, 1.6vw, 28px) clamp(18px, 1.6vw, 28px) 0;
  background: #0a0d10;
}

.case-visual::before,
.case-visual::after {
  content: "";
  position: absolute;
}

.case-visual span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.visual-green::before {
  inset: 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 70% 30%, rgba(18, 201, 192, 0.32), transparent 28%),
    linear-gradient(135deg, #111, #282a26);
}

.visual-green::after {
  width: 52px;
  height: 52px;
  right: 22px;
  top: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(246, 245, 241, 0.3), rgba(18, 201, 192, 0.18));
}

.visual-system::before {
  inset: 12px;
  border: 1px solid rgba(18, 201, 192, 0.34);
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(18, 201, 192, 0.24) 48% 49%, transparent 49%),
    linear-gradient(0deg, transparent 0 61%, rgba(255, 255, 255, 0.16) 61% 62%, transparent 62%),
    #081018;
}

.visual-system::after {
  right: 24px;
  bottom: 20px;
  width: 72px;
  height: 38px;
  border-bottom: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
  box-shadow: -70px -32px 0 -30px rgba(18, 201, 192, 0.7), -18px -50px 0 -24px rgba(255, 255, 255, 0.5);
}

.visual-shop::before {
  inset: 13px 34px 13px 48px;
  border-radius: 16px;
  border: 5px solid #f5f5f0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(180deg, #d9d0c2, #f4f1e9);
}

.visual-shop::after {
  left: 22px;
  bottom: 19px;
  width: 62px;
  height: 42px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 150px -36px 0 -22px rgba(18, 201, 192, 0.8), 212px 24px 0 -18px rgba(16, 18, 20, 0.9);
}

.case-copy {
  padding: clamp(22px, 2vw, 34px) clamp(24px, 2.2vw, 38px) clamp(26px, 2.4vw, 42px);
}

.case-copy dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.case-copy div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
}

.case-copy dt {
  color: var(--text-dark);
  font-weight: 900;
}

.case-copy dd {
  margin: 0;
  font-size: clamp(0.76rem, 0.74vw, 0.92rem);
}

.case-copy dt {
  font-size: clamp(0.76rem, 0.74vw, 0.92rem);
}

.about {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.45fr);
  gap: clamp(32px, 7vw, 90px);
  padding: clamp(70px, 8vw, 108px) clamp(22px, 5vw, 76px);
  border-top: 1px solid var(--line-dark);
}

.about-panel {
  max-width: 820px;
  padding-top: 8px;
  font-size: 1.03rem;
}

.about-panel p {
  margin: 0;
}

.about-panel ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.about-panel li {
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
}

.insights {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.7fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.section-title.compact {
  border-right: 1px solid var(--line-dark);
}

.insight-list {
  display: grid;
}

.insight-list a {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--line-dark);
  transition: background 180ms ease;
}

.insight-list a:last-child {
  border-bottom: 0;
}

.insight-list a:hover {
  background: #ffffff;
}

.insight-list span {
  color: var(--teal-dark);
  font-weight: 900;
}

.insight-list strong {
  color: var(--text-dark);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 28px;
  align-items: center;
  width: var(--page-width);
  margin: 0 auto;
  padding: 24px 24px;
  color: #ffffff;
  background: #050607;
  border-bottom: 1px solid var(--line);
}

.contact h2 {
  max-width: 760px;
  margin: 0;
  font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.25;
}

.contact p {
  max-width: 720px;
  margin: 8px 0 0;
  color: rgba(247, 248, 245, 0.72);
}

.contact-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  width: var(--page-width);
  margin: 0 auto;
  padding: 12px 24px 16px;
  color: rgba(247, 248, 245, 0.7);
  background: #050607;
}

.footer-brand {
  color: #ffffff;
  font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
  font-size: 0.9rem;
  font-weight: 900;
}

.footer-brand span {
  margin-left: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
}

.site-footer nav {
  gap: 20px;
  font-size: 0.82rem;
}

@media (max-width: 920px) {
  .site-header {
    gap: 18px;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.82rem;
  }

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

  .hero-object {
    position: absolute;
    right: -8%;
    bottom: 4%;
    width: 52%;
    min-height: 360px;
    opacity: 0.58;
  }

  .service-index,
  .process-band,
  .insights {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .process-band {
    padding: 0;
  }

  .process-heading {
    padding: 44px clamp(22px, 5vw, 76px) 26px;
  }

  .process-list {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    overflow-x: auto;
    border-left: 0;
  }

  .cases .section-title {
    grid-template-columns: 1fr;
  }

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

  .case-card {
    grid-template-columns: minmax(280px, 0.8fr) 1fr;
    grid-template-rows: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .case-card:last-child {
    border-bottom: 0;
  }

  .case-visual {
    min-height: 260px;
    margin: 24px;
  }

  .section-title.compact {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .contact,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .contact-actions,
  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 840px) {
  .site-header {
    height: 74px;
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    min-width: auto;
  }

  .brand-title {
    font-size: 1.35rem;
  }

  .brand-subtitle,
  .brand-divider {
    display: none;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: grid;
    justify-self: end;
  }

  .nav-open .mobile-nav {
    display: block;
  }

  .mobile-nav {
    inset-block-start: 74px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 112px;
    background:
      linear-gradient(90deg, rgba(5, 6, 7, 1) 0%, rgba(5, 6, 7, 0.9) 100%),
      url("assets/hero-ai-brain.png") center / cover no-repeat;
  }

  .hero-grid {
    min-height: calc(88svh - 186px);
  }

  .hero h1 {
    font-size: clamp(4.5rem, 18vw, 7.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    width: min(300px, 100%);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-object {
    position: absolute;
    display: block;
    right: -36%;
    top: 19%;
    width: 86%;
    min-height: 300px;
    opacity: 0.34;
    pointer-events: none;
  }

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

  .service-card {
    min-height: 210px;
    padding: 34px 20px 28px;
  }

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

  .case-visual {
    margin: 18px 18px 0;
  }

  .insight-list a {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 90svh;
    padding: 104px 18px 64px;
  }

  .hero h1 {
    font-size: clamp(4.1rem, 24vw, 5.4rem);
  }

  .hero-line {
    font-size: 1.45rem;
  }

  .hero-summary {
    font-size: 0.96rem;
    line-height: 1.9;
  }

  .section-title,
  .process-heading,
  .about,
  .contact {
    padding-right: 18px;
    padding-left: 18px;
  }

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

  .service-card {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

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

  .process-list li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-list li::after {
    display: none;
  }

  .case-grid {
    width: calc(100% - 28px);
  }

  .case-visual {
    min-height: 220px;
  }

  .case-copy div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
