/* =========================================================
   寰序科技 Official Site — Gemini-inspired tech aesthetic
   Edit tokens below for brand tweaks; keep structure intact.
   ========================================================= */

:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-soft: #f3f4f8;
  --text: #1a1a2e;
  --text-secondary: #5a5a72;
  --text-muted: #8b8ba0;
  --border: rgba(26, 26, 46, 0.08);
  --border-strong: rgba(26, 26, 46, 0.12);

  --blue: #4f6ef7;
  --blue-soft: #6b8cff;
  --purple: #8b5cf6;
  --purple-soft: #a78bfa;
  --gradient: linear-gradient(135deg, #4f6ef7 0%, #7c5cfc 50%, #a855f7 100%);
  --gradient-soft: linear-gradient(135deg, rgba(79, 110, 247, 0.12), rgba(168, 85, 247, 0.1));
  --glow-blue: rgba(79, 110, 247, 0.35);
  --glow-purple: rgba(168, 85, 247, 0.28);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
  --shadow-hover: 0 12px 40px rgba(79, 110, 247, 0.14);
  --header-h: 72px;

  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 110, 247, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(79, 110, 247, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #fff;
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  height: var(--header-h);
  background: rgba(250, 250, 250, 0.55);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(26, 26, 46, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  z-index: 2;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: transparent;
  display: block;
  /* optical: Chinese brand text visual center sits slightly lower */
  transform: translateY(1px);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-brand .footer-logo .logo-text {
  margin-bottom: 0;
}

.logo-text {
  background: linear-gradient(120deg, #1a1a2e 30%, #4f6ef7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(79, 110, 247, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero: full-screen spotlight ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate;
}

.hero-spotlight {
  background: #f7f7fb;
  color: var(--text);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.glow-1 {
  width: 560px;
  height: 560px;
  background: rgba(168, 85, 247, 0.28);
  top: -12%;
  right: 0%;
  opacity: 0.7;
  animation: floatGlow 14s ease-in-out infinite;
}

.glow-2 {
  width: 480px;
  height: 480px;
  background: rgba(79, 110, 247, 0.22);
  bottom: -8%;
  left: -6%;
  opacity: 0.65;
  animation: floatGlow 18s ease-in-out infinite reverse;
}

.glow-3 {
  width: 320px;
  height: 320px;
  background: rgba(192, 132, 252, 0.2);
  top: 38%;
  left: 42%;
  opacity: 0.55;
  animation: floatGlow 12s ease-in-out infinite 2s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 110, 247, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 110, 247, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 20%, transparent 78%);
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(28px, -22px) scale(1.05); }
}

/* Titles + sub: true visual center of viewport */
.hero-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 12px) 24px 120px;
  box-sizing: border-box;
  pointer-events: none;
}

.hero-center .hero-title,
.hero-center .hero-sub {
  pointer-events: auto;
  max-width: 1100px;
}

.hero-title {
  font-size: clamp(2.1rem, 5.8vw, 4.4rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.03em;
  margin: 0;
}

.hero-title .hero-line {
  display: block;
  opacity: 0;
  transform: translateY(36px);
  animation: heroFadeUp 1.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title .hero-line:nth-child(1) {
  animation-delay: 0.18s;
}

.hero-title .hero-line:nth-child(2) {
  margin-top: 0.45em;
  animation-delay: 0.55s;
}

.hero-title .hero-line-text {
  display: inline;
  background-image: linear-gradient(
    105deg,
    #1a1a2e 0%,
    #2a2a4a 22%,
    #6d5ef5 42%,
    #a855f7 52%,
    #7c6cf0 62%,
    #2a2a4a 82%,
    #1a1a2e 100%
  );
  background-size: 240% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: heroShimmer 2.6s ease-out forwards;
}

.hero-title .hero-line:nth-child(1) .hero-line-text {
  animation-delay: 0.18s;
}

.hero-title .hero-line:nth-child(2) .hero-line-text {
  animation-delay: 0.55s;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(36px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-sub {
  margin: 40px 0 0;
  max-width: 36em;
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: var(--text-secondary, #5c5c72);
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}

/* CTAs pinned near bottom of first screen — far from titles */
.hero-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(40px, 7vh, 72px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.35s forwards;
}

.br-desktop { display: inline; }

/* Privacy page */
.page-privacy .privacy-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 0 96px;
}
.page-privacy .privacy-doc h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.page-privacy .privacy-meta {
  color: var(--text-secondary, #5c5c72);
  font-size: 0.92rem;
  margin-bottom: 40px;
}
.page-privacy .privacy-doc h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  letter-spacing: 0.03em;
}
.page-privacy .privacy-doc p,
.page-privacy .privacy-doc li {
  color: var(--text-secondary, #5c5c72);
  line-height: 1.9;
  font-size: 0.98rem;
}
.page-privacy .privacy-doc ul {
  padding-left: 1.25em;
  margin: 0 0 8px;
}
.page-privacy .privacy-doc li + li { margin-top: 0.35em; }

/* ---------- Sections common ---------- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--text);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- Services ---------- */
.services {
  background: var(--bg-elevated);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 110, 247, 0.2);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  margin-bottom: 18px;
  color: var(--blue);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.expand-slot {
  margin-top: 40px;
  padding: 40px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Philosophy ---------- */
.philosophy {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.phil-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.phil-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.phil-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 110, 247, 0.25);
}

.phil-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phil-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- Process ---------- */
.process {
  background: var(--bg-elevated);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79, 110, 247, 0.25), rgba(168, 85, 247, 0.25), transparent);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 24px rgba(79, 110, 247, 0.3);
  border: 4px solid var(--bg-elevated);
}

.process-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- About ---------- */
.about {
  background: var(--bg);
  overflow: hidden;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-orb {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(168, 85, 247, 0.35), rgba(79, 110, 247, 0.25) 45%, transparent 70%);
  filter: blur(2px);
  animation: floatGlow 10s ease-in-out infinite;
}

.about-card-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-hover);
  text-align: left;
}

.about-card-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 8px;
}

.about-card-float strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.about-copy .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-copy .section-label {
  text-align: left;
}

.about-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 28px;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-meta li {
  padding: 8px 16px;
  background: var(--gradient-soft);
  border: 1px solid rgba(79, 110, 247, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #eef0f8 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-item:hover {
  border-color: rgba(79, 110, 247, 0.25);
  box-shadow: var(--shadow);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 15px;
  font-weight: 500;
  word-break: break-all;
}

.contact-item-value a:hover { color: var(--blue); }

.contact-hint {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.15);
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
}

.form-status.info {
  background: rgba(79, 110, 247, 0.08);
  color: var(--text);
  border: 1px solid rgba(79, 110, 247, 0.2);
}

.form-status.error {
  background: rgba(220, 38, 38, 0.06);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.form-alt {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.form-alt a {
  color: var(--blue);
  font-weight: 500;
}

.form-alt a:hover { text-decoration: underline; }

/* ---------- Privacy ---------- */
.privacy {
  background: var(--bg-elevated);
  padding-top: 72px;
  padding-bottom: 72px;
}

.privacy-body {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.9;
}

.privacy-body p + p { margin-top: 14px; }
.privacy-body a { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer {
  background: #12121f;
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  background: linear-gradient(120deg, #fff 20%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-brand .footer-logo .logo-text {
  margin-bottom: 0;
}
.footer-brand .logo-mark {
  /* transparent gold mark on dark footer */
  filter: none;
}

.footer-brand p { margin-bottom: 6px; line-height: 1.6; }
.footer-domain a:hover { color: #fff; }

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact p { margin-bottom: 8px; line-height: 1.6; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}


/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .service-card.reveal,
.philosophy-grid .phil-card.reveal,
.process-steps .process-step.reveal {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ---------- Mobile nav backdrop (shown ≤768) ---------- */
.nav-backdrop {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .process-steps::before { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { min-height: 240px; order: -1; }
  .about-orb { width: 220px; height: 220px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; z-index: 140; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(15, 15, 28, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s;
  }

  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 50vw;
    max-width: 360px;
    min-width: 240px;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 16px;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-left: 1px solid var(--border, rgba(26, 26, 46, 0.08));
    border-radius: 0;
    box-shadow: -16px 0 48px rgba(26, 26, 46, 0.18);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(105%);
    padding: calc(var(--header-h) + 20px) 20px 32px;
    z-index: 125;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  /* Mobile overlay is light — restore dark link colors even over hero */
  .site-header:not(.scrolled) .nav-menu.open .nav-links a {
    color: var(--text-secondary);
  }
  .site-header:not(.scrolled) .nav-menu.open .nav-links a:hover,
  .site-header:not(.scrolled) .nav-menu.open .nav-links a.active {
    color: var(--text);
    background: rgba(79, 110, 247, 0.06);
  }
  .site-header:not(.scrolled) .nav-menu.open ~ .nav-toggle span,
  .site-header:not(.scrolled).menu-open .nav-toggle span {
    background: var(--text);
  }

  .nav-links {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav-links a {
    font-size: 18px;
    padding: 14px 16px;
    text-align: center;
    width: 100%;
  }

  .nav-cta { width: 100%; max-width: 280px; }

  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }
  .hero-center { padding: calc(var(--header-h) + 8px) 20px 130px; }
  .hero-title {
    font-size: clamp(1.65rem, 7.2vw, 2.4rem);
    line-height: 1.6;
    letter-spacing: 0.02em;
  }
  .hero-title .hero-line:nth-child(2) { margin-top: 0.5em; }
  .hero-sub { margin-top: 28px; letter-spacing: 0.05em; }
  .hero-actions { bottom: 36px; gap: 12px; padding: 0 16px; }
  .br-desktop { display: none; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 28px, var(--max)); }
  .philosophy-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    bottom: 28px;
  }
  .hero-actions .btn { width: auto; min-width: 148px; }
  .contact-form { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow, .about-orb { animation: none; }
  .hero-title .hero-line,
  .hero-title .hero-line-text,
  .hero-sub,
  .hero-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-title .hero-line-text {
    background-position: 0% 50% !important;
  }
  .nav-menu,
  .nav-backdrop {
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .service-card, .phil-card, .btn { transition: none; }
}
