/* =============================================================
   PROLOGUE · 序章  —  Design system
   ============================================================= */

:root {
  --bg: #fbfbfd;
  --bg-soft: #f4f5f9;
  --surface: #ffffff;
  --surface-2: rgba(255, 255, 255, .72);
  --ink: #0d1020;
  --ink-2: #3b4160;
  --ink-3: #767d9b;
  --line: rgba(16, 20, 45, .09);
  --line-strong: rgba(16, 20, 45, .16);
  --brand: #5b5bf6;
  --brand-2: #8a5cf6;
  --cyan: #12c8e8;
  --warm: #ff8a5b;
  --grad: linear-gradient(115deg, #5b5bf6 0%, #8a5cf6 42%, #12c8e8 100%);
  --grad-soft: linear-gradient(115deg, rgba(91, 91, 246, .12), rgba(18, 200, 232, .12));
  --shadow-sm: 0 2px 8px rgba(20, 24, 60, .05), 0 12px 32px rgba(20, 24, 60, .05);
  --shadow-md: 0 10px 30px rgba(20, 24, 60, .08), 0 30px 80px rgba(20, 24, 60, .07);
  --shadow-lg: 0 24px 70px rgba(20, 24, 60, .14);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --max: 1240px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: #07080e;
  --bg-soft: #0d0f19;
  --surface: #11131f;
  --surface-2: rgba(20, 23, 38, .72);
  --ink: #f3f4fb;
  --ink-2: #b9bed8;
  --ink-3: #7d849f;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .17);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .28);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .4), 0 30px 80px rgba(0, 0, 0, .32);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(91, 91, 246, .22); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: -.035em;
  font-weight: 650;
}

p { margin: 0; }

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section { padding: clamp(80px, 10vw, 148px) 0; position: relative; }
.section--tight { padding: clamp(60px, 7vw, 100px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  letter-spacing: -.05em;
}
.h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.035em; }

.lead {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--ink-2);
  line-height: 1.85;
  max-width: 640px;
}

.muted { color: var(--ink-3); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: clamp(44px, 6vw, 76px);
  flex-wrap: wrap;
}
.section-head .lead { max-width: 420px; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
    background-color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .btn--primary { background: #fff; color: #0a0b12; }
.btn--primary:hover { box-shadow: var(--shadow-md); }

.btn--grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(91, 91, 246, .3);
}
.btn--grad:hover { box-shadow: 0 16px 44px rgba(91, 91, 246, .42); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface-2);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--sm { padding: 10px 20px; font-size: 13px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 620;
  color: var(--brand);
}
.text-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------- navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color .4s var(--ease), border-color .4s var(--ease),
    backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: var(--surface-2);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 720;
  font-size: 19px;
  letter-spacing: -.04em;
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(91, 91, 246, .32);
}
.brand__sub {
  font-size: 10px;
  letter-spacing: .22em;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 2px;
}

.nav__menu { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  font-size: 14px;
  font-weight: 540;
  color: var(--ink-2);
  position: relative;
  transition: color .3s var(--ease);
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -7px;
  width: 0; height: 1.5px;
  background: var(--brand);
  transition: width .35s var(--ease);
}
.nav__menu a:hover, .nav__menu .current-menu-item a { color: var(--ink); }
.nav__menu a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  transition: color .3s, border-color .3s, transform .3s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); transform: rotate(18deg); }
.icon-btn svg { width: 17px; height: 17px; }

.nav__toggle { display: none; }

/* ---------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(70px, 9vw, 130px)) 0 clamp(80px, 9vw, 130px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--a {
  width: 620px; height: 620px;
  top: -220px; right: -120px;
  background: radial-gradient(circle, rgba(91, 91, 246, .28), transparent 68%);
}
.hero__glow--b {
  width: 520px; height: 520px;
  bottom: -260px; left: -160px;
  background: radial-gradient(circle, rgba(18, 200, 232, .2), transparent 68%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 5%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 5%, transparent 75%);
  opacity: .55;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 30px;
}
.hero__badge span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.hero h1 {
  font-size: clamp(46px, 6.6vw, 88px);
  line-height: 1.07;
  letter-spacing: -.065em;
  font-weight: 700;
  margin-bottom: 26px;
}
.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 38px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero__trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__trust-label { font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
.hero__logos { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.hero__logos b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink-3);
  opacity: .8;
  transition: opacity .3s, color .3s;
}
.hero__logos b:hover { opacity: 1; color: var(--ink); }

/* orbit artwork */
.orbit {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.orbit__ring {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  inset: var(--inset);
  animation: spin var(--dur) linear infinite;
}
.orbit__ring::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 18px var(--dot);
}
.orbit__ring--1 { --inset: 2%;  --dur: 34s; --dot: var(--brand); }
.orbit__ring--2 { --inset: 15%; --dur: 26s; --dot: var(--cyan); animation-direction: reverse; }
.orbit__ring--3 { --inset: 28%; --dur: 20s; --dot: var(--warm); }
.orbit__ring--4 { --inset: 39%; --dur: 44s; --dot: var(--brand-2); animation-direction: reverse; border-style: dashed; }

.orbit__core {
  position: relative;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #5b5bf6, #8a5cf6, #12c8e8, #ff8a5b, #5b5bf6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 30px 90px rgba(91, 91, 246, .4);
  display: grid;
  place-items: center;
  animation: float 7s ease-in-out infinite;
}
.orbit__core::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: var(--bg);
  backdrop-filter: blur(10px);
  opacity: .93;
}
.orbit__core span {
  position: relative;
  z-index: 2;
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 760;
  letter-spacing: -.08em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.orbit__chip {
  position: absolute;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 6s ease-in-out infinite;
}
.orbit__chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.orbit__chip--1 { top: 8%; right: -2%; }
.orbit__chip--2 { bottom: 14%; left: -6%; animation-delay: -2.5s; }
.orbit__chip--3 { bottom: 4%; right: 8%; animation-delay: -4s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------------------------------------------------------- metrics */
.metrics {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.metric {
  background: var(--bg-soft);
  padding: 44px 30px;
  text-align: center;
}
.metric__num {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
  margin-bottom: 12px;
}
.metric__num em {
  font-style: normal;
  font-size: .55em;
  margin-left: 2px;
  color: var(--brand);
}
.metric__label { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }

/* ---------------------------------------------------------- cards / services */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(28px, 3vw, 42px);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(91, 91, 246, .09), transparent 65%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }

.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 34px; }
.service__icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  color: var(--brand);
  border: 1px solid var(--line);
}
.service__icon svg { width: 24px; height: 24px; }
.service__no { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.service h3 { font-size: 23px; margin-bottom: 14px; letter-spacing: -.04em; }
.service p { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; margin-bottom: 26px; }
.service__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.service__list li { font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.service__list li::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand);
  flex: none;
}

/* ---------------------------------------------------------- work grid */
.works__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.work { grid-column: span 3; }
.work--wide { grid-column: span 4; }
.work--narrow { grid-column: span 2; }

.work__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .5s var(--ease);
}
.work--narrow .work__media { aspect-ratio: 3 / 4; }
.work:hover .work__media { box-shadow: var(--shadow-lg); }

.work__art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform .8s var(--ease);
}
.work:hover .work__art { transform: scale(1.06); }
.work__art svg { width: 100%; height: 100%; }

.work__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 8, 18, .72));
  display: flex;
  align-items: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.work:hover .work__overlay { opacity: 1; }
.work__overlay span { color: #fff; font-size: 14px; font-weight: 600; display: flex; gap: 9px; align-items: center; }

.work__meta { padding: 20px 4px 4px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.work__meta h3 { font-size: 20px; letter-spacing: -.035em; margin-bottom: 6px; }
.work__meta p { font-size: 13px; color: var(--ink-3); }
.work__tag {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* ---------------------------------------------------------- process */
.process { background: var(--bg-soft); }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process__grid::before {
  content: "";
  position: absolute;
  top: 27px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--cyan), transparent);
}
.step { padding: 0 24px; text-align: center; position: relative; }
.step__dot {
  width: 54px; height: 54px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }

/* ---------------------------------------------------------- quote */
.quote { position: relative; overflow: hidden; }
.quote__card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: clamp(44px, 6vw, 90px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote__card::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  top: -320px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(91, 91, 246, .16), transparent 70%);
  pointer-events: none;
}
.quote__mark { font-size: 90px; line-height: .6; color: var(--brand); opacity: .22; font-family: Georgia, serif; }
.quote blockquote {
  margin: 24px auto 34px;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.55;
  letter-spacing: -.04em;
  font-weight: 560;
  max-width: 900px;
}
.quote__by { display: flex; align-items: center; justify-content: center; gap: 14px; }
.quote__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
}
.quote__by div { text-align: left; }
.quote__by strong { display: block; font-size: 14px; }
.quote__by small { color: var(--ink-3); font-size: 12px; }

/* ---------------------------------------------------------- posts */
.posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.post-card__art { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.post-card__art svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.post-card:hover .post-card__art svg { transform: scale(1.07); }
.post-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: 650; margin-bottom: 14px; }
.post-card h3 { font-size: 20px; letter-spacing: -.035em; margin-bottom: 12px; line-height: 1.4; }
.post-card p { font-size: 13.5px; color: var(--ink-3); line-height: 1.8; margin-bottom: 22px; }
.post-card__foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------- CTA */
.cta {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) clamp(32px, 6vw, 90px);
  text-align: center;
  background: #0a0c18;
  color: #fff;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 18% 10%, rgba(91, 91, 246, .55), transparent 62%),
    radial-gradient(520px circle at 84% 92%, rgba(18, 200, 232, .38), transparent 60%),
    radial-gradient(420px circle at 60% 0%, rgba(255, 138, 91, .22), transparent 65%);
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
}
.cta h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.055em; margin-bottom: 22px; }
.cta p { color: rgba(255, 255, 255, .72); max-width: 560px; margin: 0 auto 36px; font-size: 17px; }
.cta .btn--grad { background: #fff; color: #0a0c18; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.cta__note { margin-top: 22px; font-size: 12px; color: rgba(255, 255, 255, .5); }

/* ---------------------------------------------------------- footer */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 7vw, 90px) 0 32px;
  background: var(--bg-soft);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer__about p { font-size: 14px; color: var(--ink-3); line-height: 1.9; max-width: 320px; margin: 22px 0 26px; }
.footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; font-weight: 650; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__links a { font-size: 14px; color: var(--ink-2); transition: color .3s; }
.footer__links a:hover { color: var(--brand); }
.footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 14px; color: var(--ink-2); }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer__bottom a:hover { color: var(--brand); }

/* ---------------------------------------------------------- inner pages */
.page-hero {
  padding: calc(var(--nav-h) + clamp(70px, 9vw, 120px)) 0 clamp(50px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 700px; height: 500px;
  top: -300px; right: -100px;
  background: radial-gradient(circle, rgba(91, 91, 246, .18), transparent 68%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -.06em; margin-bottom: 20px; }
.page-hero .lead { max-width: 700px; }

.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 52px 0 18px; }
.prose h3 { font-size: 22px; margin: 38px 0 14px; }
.prose p { color: var(--ink-2); font-size: 16.5px; line-height: 1.95; margin-bottom: 22px; }
.prose ul, .prose ol { color: var(--ink-2); line-height: 1.95; padding-left: 24px; margin: 0 0 24px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 36px 0;
  padding: 8px 0 8px 26px;
  border-left: 3px solid var(--brand);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.75;
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r-md); }

.entry-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-bottom: 30px; }
.archive__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 60px; }
.pagination a, .pagination span {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.empty-state { text-align: center; padding: 80px 0; }

/* ---------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .orbit { max-width: 420px; margin-top: 20px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__menu, .nav__actions .btn { display: none; }
  .nav__toggle { display: grid; }
  .nav__menu.is-open {
    display: flex;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav__menu.is-open a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .services__grid, .posts__grid, .archive__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .process__grid::before { display: none; }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .work, .work--wide, .work--narrow { grid-column: span 1; }
  .work--narrow .work__media { aspect-ratio: 16 / 11; }
  .section-head { gap: 22px; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 36px, var(--max)); }
  .nav__inner { width: min(100% - 36px, var(--max)); }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 30px 16px; }
  .services__grid, .posts__grid, .archive__grid, .works__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__about, .footer__col--contact { grid-column: 1 / -1; }
  .hero__actions .btn { flex: 1 1 auto; }
  .orbit__chip { font-size: 10px; padding: 6px 10px; }
  .prose h2 { margin-top: 40px; }
}

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