/* ═══════════════════════════════════════════
   MOURINET V2 — Digital Engineering Dark Theme
   ═══════════════════════════════════════════ */

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #04090b;
  --bg-soft: #071013;
  --ink: #e8f3f0;
  --muted: #8fa8a2;
  --faint: #5c7570;
  --line: rgba(140, 220, 200, 0.1);
  --teal: #14e0b8;
  --cyan: #38e8ff;
  --amber: #ffb35c;
  --glass: rgba(13, 32, 30, 0.42);
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 60px);
  --nav-h: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", Arial, sans-serif;
  overflow-x: clip;
}

::selection {
  background: var(--teal);
  color: #032019;
}

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

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

.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(90px, 12vw, 160px) 0;
}

/* ─────────── Preloader ─────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 600ms ease, visibility 600ms ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader-mark {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.preloader-mark img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  animation: preloaderPulse 1.1s ease-in-out infinite;
}

.preloader-mark span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(20, 224, 184, 0)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 26px rgba(20, 224, 184, 0.45)); }
}

/* ─────────── Progress / Cursor ─────────── */
.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 150;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cyan) 60%, var(--amber));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  box-shadow: 0 0 16px rgba(20, 224, 184, 0.55);
  pointer-events: none;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 160;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 16px rgba(20, 224, 184, 0.8);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 224, 184, 0.07), transparent 62%);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
}

body.has-cursor .cursor,
body.has-cursor .cursor-glow {
  opacity: 1;
}

body.cursor-hot .cursor {
  transform: translate(-50%, -50%) scale(2.6);
  background: var(--amber);
  box-shadow: 0 0 22px rgba(255, 179, 92, 0.75);
}

.cursor {
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

@media (pointer: coarse) {
  .cursor,
  .cursor-glow {
    display: none;
  }
}

/* ─────────── Backdrop layers ─────────── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.backdrop canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.aurora {
  position: absolute;
  width: 55vw;
  height: 55vw;
  min-width: 480px;
  min-height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.aurora-a {
  left: -18%;
  top: -22%;
  background: radial-gradient(circle, rgba(16, 90, 76, 0.55), transparent 66%);
  animation: auroraDrift 22s ease-in-out infinite;
}

.aurora-b {
  right: -20%;
  top: 4%;
  background: radial-gradient(circle, rgba(20, 90, 120, 0.4), transparent 66%);
  animation: auroraDrift 27s -8s ease-in-out infinite reverse;
}

.aurora-c {
  left: 22%;
  bottom: -38%;
  background: radial-gradient(circle, rgba(120, 78, 30, 0.28), transparent 66%);
  animation: auroraDrift 31s -15s ease-in-out infinite;
}

@keyframes auroraDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6vw, 4vh) scale(1.12); }
  66% { transform: translate(-4vw, -3vh) scale(0.94); }
}

.grid-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(140, 220, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 220, 200, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 72%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.nav,
.footer {
  position: relative;
  z-index: 2;
}

/* ─────────── Nav ─────────── */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  min-height: var(--nav-h);
  padding: 0 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6, 15, 14, 0.6);
  backdrop-filter: blur(22px) saturate(1.4);
  transform: translateX(-50%);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease, background 300ms ease;
}

.nav.is-scrolled {
  background: rgba(6, 15, 14, 0.82);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.nav.is-hidden {
  transform: translateX(-50%) translateY(calc(-100% - 20px));
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-brand span {
  display: grid;
  gap: 2px;
}

.nav-brand strong {
  font-size: 16px;
  line-height: 1;
}

.nav-brand em {
  color: var(--faint);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 200ms ease, background 200ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: rgba(140, 220, 200, 0.08);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(20, 224, 184, 0.8);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(20, 224, 184, 0.35);
  background: rgba(20, 224, 184, 0.08);
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: background 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.nav-cta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(20, 224, 184, 0.9);
  animation: dotPulse 1.8s ease-in-out infinite;
}

.nav-cta:hover {
  background: rgba(20, 224, 184, 0.18);
  box-shadow: 0 0 32px rgba(20, 224, 184, 0.25);
}

@keyframes dotPulse {
  0%, 100% { transform: scale(0.7); opacity: 0.6; }
  50% { transform: scale(1); opacity: 1; }
}

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: calc(var(--nav-h) + 50px) 0 165px;
}

.hero .hero-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-inner {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(20, 224, 184, 0.9);
  animation: dotPulse 1.8s ease-in-out infinite;
}

.hero-title {
  margin: 0;
  font-size: clamp(52px, 9vw, 124px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.hero-title .line {
  display: block;
}

.line-gradient .split-char {
  background: linear-gradient(105deg, var(--teal) 10%, var(--cyan) 45%, #d8fff4 70%, var(--amber) 105%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: charIn 800ms cubic-bezier(0.22, 1, 0.36, 1) both, gradientSlide 6s ease-in-out 1.6s infinite;
  animation-delay: var(--char-delay, 0ms), 1.6s;
}

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

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(6deg) scale(0.92);
  filter: blur(10px);
  animation: charIn 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--char-delay, 0ms);
}

@keyframes charIn {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 26px 0 0;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--muted);
}

.typewriter {
  display: inline-flex;
  align-items: baseline;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.typewriter b {
  font-weight: 800;
  text-shadow: 0 0 26px rgba(20, 224, 184, 0.4);
}

.caret {
  width: 3px;
  height: 1.05em;
  margin-left: 3px;
  border-radius: 2px;
  background: var(--teal);
  transform: translateY(0.14em);
  animation: caretBlink 0.9s steps(1) infinite;
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

.hero-desc {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 2;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 800;
  transition: box-shadow 240ms ease, background 240ms ease, border-color 240ms ease;
  will-change: transform;
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  position: relative;
  background: linear-gradient(120deg, var(--teal), var(--cyan));
  color: #032019;
  box-shadow: 0 10px 40px rgba(20, 224, 184, 0.25);
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-primary:hover {
  box-shadow: 0 14px 56px rgba(20, 224, 184, 0.45);
}

.btn-primary span,
.btn-primary svg {
  position: relative;
}

.btn-ghost {
  border: 1px solid rgba(140, 220, 200, 0.24);
  background: rgba(140, 220, 200, 0.04);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(20, 224, 184, 0.5);
  background: rgba(20, 224, 184, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin-top: 40px;
}

.hero-stats div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease, box-shadow 260ms ease;
}

.hero-stats div:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 224, 184, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 24px rgba(20, 224, 184, 0.12);
}

.hero-stats strong {
  display: block;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #eafff8, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats span {
  display: block;
  margin-top: 10px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
}

/* ─────────── Marquee ─────────── */
.marquee-belt {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 15, 14, 0.5);
  backdrop-filter: blur(10px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.marquee-row {
  overflow: hidden;
  padding: 10px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
}

.row-a .marquee-track {
  animation: marqueeLeft 30s linear infinite;
}

.row-b .marquee-track {
  animation: marqueeRight 36s linear infinite;
}

.marquee-belt:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}

.row-b .marquee-track span {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.marquee-track em {
  color: var(--teal);
  font-size: 10px;
  font-style: normal;
  opacity: 0.7;
}

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

@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ─────────── Shared section headings ─────────── */
.eyebrow {
  margin: 0 0 22px;
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.26em;
}

.statement {
  max-width: 880px;
  margin: 0 0 clamp(40px, 6vw, 72px);
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1.2;
}

.statement mark {
  background: none;
  color: transparent;
  background-image: linear-gradient(110deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

/* ─────────── Reveal ─────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(10px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 800ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ─────────── Intro ─────────── */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  max-width: 980px;
}

.intro-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 2.05;
}

.intro-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

.intro-pillars span {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.intro-pillars span:hover {
  border-color: rgba(20, 224, 184, 0.45);
  box-shadow: 0 0 28px rgba(20, 224, 184, 0.15);
}

/* ─────────── Bento services ─────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  perspective: 1400px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(320px circle at var(--sx, 50%) var(--sy, -20%), rgba(20, 224, 184, 0.1), transparent 70%),
    linear-gradient(160deg, rgba(16, 36, 33, 0.6), rgba(8, 18, 17, 0.7));
  backdrop-filter: blur(16px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: 20px;
  background: conic-gradient(from var(--spin), transparent 0 68%, var(--teal) 78%, var(--cyan) 84%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 300ms ease;
  animation: spinBorder 3.4s linear infinite paused;
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes spinBorder {
  to { --spin: 360deg; }
}

.bento-card:hover {
  border-color: rgba(20, 224, 184, 0.3);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 40px rgba(20, 224, 184, 0.08);
}

.span-2 {
  grid-column: span 2;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(20, 224, 184, 0.28);
  background: rgba(20, 224, 184, 0.08);
  color: var(--teal);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease;
}

.bento-card:hover .card-icon {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 0 34px rgba(20, 224, 184, 0.3);
}

.card-icon svg {
  width: 25px;
  height: 25px;
}

.card-index {
  position: absolute;
  right: 24px;
  top: 22px;
  font-size: 44px;
  font-weight: 900;
  color: rgba(140, 220, 200, 0.07);
  font-variant-numeric: tabular-nums;
}

.bento-card h3 {
  margin: 4px 0 0;
  font-size: 23px;
  font-weight: 800;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.bento-card ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed rgba(140, 220, 200, 0.14);
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.bento-card li {
  position: relative;
  padding-left: 16px;
}

.bento-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(20, 224, 184, 0.6);
}

.bento-card em {
  margin-top: 14px;
  color: var(--faint);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.26em;
}

/* ─────────── Method ─────────── */
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: center;
}

.method-lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.method-copy .statement {
  margin-bottom: 28px;
}

.method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.method-tags span {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.method-steps {
  display: grid;
  gap: 14px;
}

.method-steps article {
  position: relative;
  padding: 26px 26px 26px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(280px circle at var(--sx, 50%) var(--sy, 0%), rgba(20, 224, 184, 0.08), transparent 70%),
    var(--glass);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease;
}

.method-steps article:hover {
  transform: translateX(10px);
  border-color: rgba(20, 224, 184, 0.32);
}

.method-steps article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.method-steps article:hover::before {
  transform: scaleY(1);
}

.method-steps b {
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 52px;
  font-weight: 900;
  color: rgba(140, 220, 200, 0.06);
}

.method-steps h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.method-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

/* ─────────── Cases ─────────── */
.case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(340px circle at var(--sx, 50%) var(--sy, 0%), rgba(20, 224, 184, 0.09), transparent 70%),
    linear-gradient(160deg, rgba(14, 30, 28, 0.55), rgba(7, 16, 15, 0.65));
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease, box-shadow 260ms ease;
}

.case-card:hover {
  transform: translateY(-7px);
  border-color: rgba(20, 224, 184, 0.3);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.case-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.case-tag {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.case-cycle {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 179, 92, 0.3);
  border-radius: 999px;
  background: rgba(255, 179, 92, 0.07);
  color: var(--amber);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.case-card h3 {
  margin: 0;
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 800;
  line-height: 1.3;
}

.case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-chips span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.case-card footer {
  display: flex;
  gap: 34px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed rgba(140, 220, 200, 0.14);
}

.case-card footer strong {
  display: block;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #eafff8, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-card footer span {
  display: block;
  margin-top: 7px;
  color: var(--faint);
  font-size: 12.5px;
}

.case-card footer.case-note {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.case-more {
  margin: 26px 0 0;
  color: var(--faint);
  font-size: 14px;
}

/* ─────────── Assurance ─────────── */
.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.assurance-grid article {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(260px circle at var(--sx, 50%) var(--sy, 0%), rgba(20, 224, 184, 0.08), transparent 70%),
    var(--glass);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease;
}

.assurance-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 224, 184, 0.3);
}

.assurance-grid article::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 30px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 0 14px rgba(20, 224, 184, 0.5);
}

.assurance-grid h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 800;
}

.assurance-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

/* ─────────── Process timeline ─────────── */
.timeline {
  position: relative;
  max-width: 760px;
}

.timeline-rail {
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: rgba(140, 220, 200, 0.1);
  overflow: hidden;
}

.timeline-rail i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--teal), var(--cyan));
  box-shadow: 0 0 16px rgba(20, 224, 184, 0.7);
  transform: scaleY(var(--timeline-progress, 0));
  transform-origin: top;
}

.timeline ol {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.timeline li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  color: var(--teal);
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.timeline li:hover > span {
  border-color: rgba(20, 224, 184, 0.45);
  box-shadow: 0 0 26px rgba(20, 224, 184, 0.25);
}

.timeline li > div {
  padding: 16px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease;
}

.timeline li:hover > div {
  transform: translateX(8px);
  border-color: rgba(20, 224, 184, 0.28);
}

.timeline h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ─────────── Contact ─────────── */
.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(40px, 6vw, 80px);
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid rgba(20, 224, 184, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 85% 10%, rgba(20, 224, 184, 0.14), transparent 42%),
    linear-gradient(150deg, rgba(12, 34, 30, 0.85), rgba(5, 12, 11, 0.92));
  backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.5);
}

.contact-beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(20, 224, 184, 0.08) 48%, transparent 62%);
  transform: translateX(-70%);
  animation: beamSweep 5.5s cubic-bezier(0.4, 0, 0.4, 1) infinite;
  pointer-events: none;
}

@keyframes beamSweep {
  0%, 55% { transform: translateX(-70%); }
  100% { transform: translateX(70%); }
}

.contact-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 900;
  line-height: 1.3;
}

.contact-lead {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

.contact-checks {
  display: grid;
  gap: 10px;
  margin: 26px 0 34px;
  padding: 0;
  list-style: none;
}

.contact-checks li {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 11px 16px 11px 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(140, 220, 200, 0.05);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.contact-checks li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  color: var(--teal);
  font-weight: 900;
}

.contact-info {
  display: grid;
  align-content: center;
  gap: 0;
  margin: 0;
}

.contact-info div {
  padding: 20px 0;
  border-bottom: 1px solid rgba(140, 220, 200, 0.12);
  transition: transform 240ms ease;
}

.contact-info div:hover {
  transform: translateX(8px);
}

.contact-info div:first-child {
  padding-top: 0;
}

.contact-info div:last-child {
  border-bottom: 0;
}

.contact-info dt {
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contact-info dd {
  margin: 8px 0 0;
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.5;
}

.contact-info a:hover {
  color: var(--teal);
}

/* ─────────── Footer ─────────── */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 9, 11, 0.7);
  backdrop-filter: blur(12px);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 26px;
  padding: 30px 0 38px;
  color: var(--faint);
  font-size: 13px;
}

/* ─────────── Responsive ─────────── */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

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

  .span-2 {
    grid-column: span 2;
  }

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

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

@media (max-width: 760px) {
  .nav {
    top: 10px;
    padding: 8px 10px 8px 12px;
    min-height: 62px;
  }

  .nav-brand em {
    display: none;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 46px);
    padding-bottom: 170px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 46px;
  }

  .intro-grid,
  .bento,
  .case-list,
  .assurance-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .bento-card {
    min-height: 0;
  }

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

  .timeline-rail {
    left: 23px;
  }

  .timeline li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
  }

  .timeline li > span {
    width: 48px;
    height: 48px;
  }

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal],
  .split-char {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .line-gradient .split-char {
    opacity: 1;
  }

  .preloader {
    display: none;
  }

  .cursor,
  .cursor-glow {
    display: none;
  }
}
