/* ═══════════════════════════════════════════════════════
   CANONIX — Design System
   Deep charcoal / fire accent / Swiss editorial grid
═══════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  /* LAYER 1 — Matte off-white backgrounds */
  --bg: #f4f2ef;
  --surface: #ece9e4;
  --surface2: #e2ded7;
  /* Structural lines: ocean blue toned */
  --line: #d1cdc5;
  --line-light: #e2ded7;
  /* LAYER 2 — Ocean blue matte text */
  --t1: #0d1525;
  --t2: #2a3449;
  --t3: #555b78;
  /* LAYER 3 — Off-purple matte accent */
  --fire: #8c6acc;
  --fire-dim: #7350b3;
  --fire-glow: rgba(140, 106, 204, 0.12);
  --grain-opacity: 0.045;
  /* Slightly stronger for light bg */

  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --max-w: 1380px;
  --gutter: clamp(24px, 5vw, 80px);
  --section-py: clamp(80px, 10vw, 160px);
}

/* ── Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Grain overlay ───────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* ── Utility ─────────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Skip Link ──────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--fire);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* ── Scroll Reveal ──────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.reveal-in.visible {
  opacity: 1;
}

/* ════════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: border-color 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(58, 45, 78, 0.96);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(140, 106, 204, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 68px;
  width: 100%;
  padding: 0 var(--gutter);
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  line-height: 1;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.25s ease;
  filter: none;
}

/* Always show hero-logo; hide the duplicate scrolled img */
.nav-logo .hero-logo { display: block; }
.nav-logo .scrolled-logo { display: none; }

/* Nav logo always visible — standard top-left position */

.footer-logo-img {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Hero section standalone logo — sits at the hero content left gutter */
.hero-section-logo {
  display: block;
  height: 80px;
  width: auto;
  margin-bottom: 32px;
  filter: none; /* use original PNG colors */
}

.logo-c {
  color: var(--fire);
}

.logo-rest {
  color: var(--t1);
  transition: color 0.3s ease;
}

/* On dark hero, make ANONIX white */
.nav-dark-hero:not(.scrolled) .logo-rest {
  color: #fff;
}

/* On scrolled dark nav, keep white */
.nav.scrolled .logo-rest {
  color: rgba(255,255,255,0.9);
}

/* ── Scrolled nav — all elements readable on dark purple bg ── */
.nav.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.75);
}

.nav.scrolled .nav-link::after {
  background: var(--fire);
}

.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link.active {
  color: #fff;
}

.nav.scrolled .nav-link-blog {
  color: rgba(200, 175, 255, 0.75);
}

.nav.scrolled .nav-link-blog:hover {
  color: var(--fire);
}

.nav.scrolled .nav-cta {
  color: var(--fire);
  border-color: rgba(140, 106, 204, 0.55);
}

.nav.scrolled .nav-hamburger span {
  background: rgba(255, 255, 255, 0.85);
}

.nav.scrolled .nav-mobile-menu {
  background: rgba(32, 20, 52, 0.98);
  backdrop-filter: blur(20px);
  border-top-color: rgba(140, 106, 204, 0.18);
}

.nav.scrolled .nav-mobile-menu a {
  color: rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.nav.scrolled .nav-mobile-menu a:hover {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 36px;
  margin-left: auto;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
  position: relative;
  transition: color 0.25s;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--t1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--t1);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--t1);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link-blog {
  color: var(--t2);
}

.nav-link-blog::after {
  background: var(--fire);
}

.nav-link-blog:hover {
  color: var(--fire);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fire);
  border: 1px solid var(--fire-dim);
  padding: 8px 18px;
  margin-left: 32px;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--fire);
  color: var(--bg);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--t1);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 16px var(--gutter) 24px;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.nav-mobile-menu a:hover {
  color: var(--t1);
}

.mobile-cta {
  color: var(--fire) !important;
  border-bottom: none !important;
}

/* ════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */
.hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Canonix dark hero — warm matte purple, lighter + more contrast */
  background:
    radial-gradient(ellipse 75% 65% at 65% 48%, rgba(140, 106, 204, 0.40) 0%, rgba(115, 80, 179, 0.20) 45%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 18% 55%, rgba(80, 45, 140, 0.35) 0%, transparent 55%),
    #1a1228;
  z-index: 0;
}

/* Matte crayon grain on hero — sits above canvas, below content */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* Hero loader */
.hero-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(ellipse 75% 65% at 65% 48%, rgba(140, 106, 204, 0.40) 0%, transparent 70%),
    #1a1228;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-loader-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--fire);
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}

.hero-loader-text {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.2em;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

#phoenix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: pan-y;
}

.hero-grid-overlay {
  display: none;
}

.hero-content {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: clamp(80px, 14vw, 160px);
  width: min(780px, 60vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-label {
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.18em;
  font-size: 10px;
  opacity: 0;
  animation: fade-in 1s 0.3s forwards;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  animation: hero-rise 1.2s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hl-line {
  display: block;
  color: #ffffff;
}

.hl-accent {
  color: var(--fire);
  opacity: 1;
  filter: brightness(1.18);
}

.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--fire);
  margin: 4px 0;
  opacity: 0;
  animation: fade-in 0.8s 1.1s forwards;
}

.hero-sub {
  font-size: clamp(13px, 1.5vw, 16px);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  line-height: 1.65;
  max-width: 340px;
  opacity: 0;
  letter-spacing: 0.01em;
  animation: fade-in 1s 1.2s forwards;
}

.hero-metadata {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  opacity: 0;
  animation: fade-in 1s 1.3s forwards;
  overflow: hidden;
}

/* Hero right structural accent */
.hero-right-accent {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  opacity: 0;
  animation: fade-in 1s 1.5s forwards;
}

.hero-vert-rule {
  width: 1px;
  height: 140px;
  background: linear-gradient(to bottom, var(--fire-dim), transparent 80%);
  flex-shrink: 0;
}

.hero-status-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hss-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hss-key {
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
}

.hss-val {
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: var(--gutter);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fade-in 1s 2s forwards;
}

.hero-scroll-hint .mono {
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
}

.scroll-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(to right, var(--fire), transparent);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}

/* ── Hero Animations ─────────────────────────────── */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-pulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }

  50% {
    transform: scaleY(0.6);
    opacity: 0.4;
  }
}

/* ── Dark-hero nav overrides (index.html only) ───── */
.nav-dark-hero:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.6);
}

.nav-dark-hero:not(.scrolled) .nav-link::after {
  background: rgba(255, 255, 255, 0.8);
}

.nav-dark-hero:not(.scrolled) .nav-link:hover,
.nav-dark-hero:not(.scrolled) .nav-link.active {
  color: #fff;
}

.nav-dark-hero:not(.scrolled) .nav-link-blog {
  color: rgba(200, 175, 255, 0.7);
}

.nav-dark-hero:not(.scrolled) .nav-link-blog:hover {
  color: var(--fire);
}

.nav-dark-hero:not(.scrolled) .logo-rest {
  color: rgba(255, 255, 255, 0.92);
}

.nav-dark-hero:not(.scrolled) .logo-c {
  color: var(--fire);
}

.nav-dark-hero:not(.scrolled) .nav-cta {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-dark-hero:not(.scrolled) .nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-dark-hero:not(.scrolled) .nav-hamburger span {
  background: rgba(255, 255, 255, 0.85);
}

.nav-dark-hero:not(.scrolled) .nav-mobile-menu {
  background: rgba(8, 4, 28, 0.96);
  backdrop-filter: blur(20px);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.nav-dark-hero:not(.scrolled) .nav-mobile-menu a {
  color: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.nav-dark-hero:not(.scrolled) .nav-mobile-menu a:hover {
  color: #fff;
}

/* ════════════════════════════════════════════════════
   SHARED SECTION STRUCTURE
════════════════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-py) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Section Badges & Centered Headings ──────────── */
.section-badge-wrap {
  text-align: center;
  margin-bottom: 28px;
}

.section-badge {
  display: inline-block;
  background: var(--fire);
  color: #fff;
  font-size: 10px;
  padding: 6px 18px;
  border-radius: 20px;
  letter-spacing: 0.12em;
}

.section-badge-fire {
  background: var(--fire);
}

.section-title-center {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--t1);
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle-center {
  color: var(--t2);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.75;
  text-align: center;
  max-width: 520px;
  margin: 0 auto clamp(52px, 7vw, 80px);
}

.subsection-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  margin-top: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* ════════════════════════════════════════════════════
   SECTION 01 — Who We Are (Bento Grid)
════════════════════════════════════════════════════ */
.whoweare-section {
  background: var(--bg);
}

.bento-grid {
  display: grid;
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}

/* Method card (tall left) */
.bento-method {
  grid-area: method;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

/* Animated flowing line across the process steps */
@keyframes method-flow {
  0%   { transform: translateX(-110%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(110%); opacity: 0; }
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(140, 106, 204, 0); }
  50%       { box-shadow: 0 0 0 6px rgba(140, 106, 204, 0.18); }
}
@keyframes step-line-glow {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.65; }
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
  position: relative;
}

/* Horizontal connecting track behind the dots */
.process-steps::before {
  content: '';
  position: absolute;
  top: 15px;               /* vertically centred with 32px dots */
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--fire-dim) 20%,
    var(--fire) 50%,
    var(--fire-dim) 80%,
    transparent 100%);
  opacity: 0.25;
  animation: step-line-glow 3s ease-in-out infinite;
  z-index: 0;
}

/* Moving light pulse along the track */
.process-steps::after {
  content: '';
  position: absolute;
  top: 11px;
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 9px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(140, 106, 204, 0.08) 20%,
    rgba(180, 140, 240, 0.70) 50%,
    rgba(140, 106, 204, 0.08) 80%,
    transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  border-radius: 4px;
  animation: method-flow 2.8s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.bento-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.bento-card-desc {
  color: var(--t2);
  font-size: 13px;
  line-height: 1.75;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.step-dot {
  width: 26px;
  height: 26px;
  border-radius: 0;
  border: 2px solid var(--line);
  transform: rotate(45deg);
  position: relative;
  z-index: 2;
  background: var(--surface);
  flex-shrink: 0;
  animation: dot-pulse 3s ease-in-out infinite;
}

.process-step:nth-child(1) .step-dot { animation-delay: 0s; }
.process-step:nth-child(2) .step-dot { animation-delay: 0.7s; }
.process-step:nth-child(3) .step-dot { animation-delay: 1.4s; }
.process-step:nth-child(4) .step-dot { animation-delay: 2.1s; }

.step-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: var(--t3);
  transform: translate(-50%, -50%);
}

.step-dot-alt {
  border-color: var(--line);
}

.step-dot-alt::after {
  background: var(--t3);
  width: 6px;
  height: 6px;
  border-radius: 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.step-dot-filled {
  border-color: var(--fire);
  background: var(--fire);
}

.step-dot-filled::after {
  background: #fff;
}

.step-name {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
}

.step-sub {
  font-size: 9px;
  color: var(--t3);
  line-height: 1.4;
}

/* Bento tags */
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.bento-tag {
  font-size: 10px;
  color: var(--t2);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

/* Numbered cards */
.bento-strategic { grid-area: strategic; }
.bento-proven { grid-area: proven; }

.bento-num {
  font-family: var(--font-head);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  color: var(--fire);
  opacity: 0.18;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  display: block;
}

/* Phoenix card — decorative animated rings + stat */
.bento-phoenix {
  grid-area: phoenix;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(145deg, #1e1532 0%, #2d1d4e 100%);
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

/* Pulsing concentric rings */
@keyframes ring-expand {
  0%   { transform: translate(-50%, -50%) scale(0.55); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.5);  opacity: 0; }
}
@keyframes ring-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.phoenix-pulse-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.phoenix-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(175, 140, 245, 0.35);
}

.phoenix-ring.r1 {
  width: 130px; height: 130px;
  animation: ring-expand 3s ease-out infinite;
}
.phoenix-ring.r2 {
  width: 185px; height: 185px;
  border-style: dashed;
  border-color: rgba(140, 106, 204, 0.22);
  animation: ring-expand 3s ease-out 1s infinite,
             ring-rotate 18s linear infinite;
}
.phoenix-ring.r3 {
  width: 240px; height: 240px;
  border-color: rgba(110, 80, 180, 0.14);
  animation: ring-expand 3s ease-out 2s infinite;
}

.phoenix-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.phoenix-year {
  font-size: 9px;
  color: rgba(200, 175, 245, 0.65);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.phoenix-stat {
  font-family: var(--font-head);
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.phoenix-stat em {
  font-size: 0.55em;
  font-style: normal;
  color: var(--fire);
  vertical-align: super;
}

.phoenix-label {
  font-size: 10px;
  color: rgba(200, 175, 245, 0.75);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Vision card (purple) */
.bento-vision {
  grid-area: vision;
  background: var(--fire);
  border-color: var(--fire-dim);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.bento-vision-label {
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.bento-vision-text {
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

/* Tech Focus card */
.bento-tech {
  grid-area: tech;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-size: 10px;
  color: var(--fire);
  border: 1px solid var(--fire-dim);
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}

.tech-pill:hover {
  background: var(--fire);
  color: #fff;
}

/* \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
   SUITE SECTION
\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 */
.suite-section {
  background:
    radial-gradient(ellipse 55% 48% at 10% 18%, rgba(175,145,228,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 92% 14%, rgba(212,168,222,0.06) 0%, transparent 60%),
    var(--surface);
  position: relative;
  z-index: 2;
  border-radius: 36px 36px 0 0;
  border-top: none !important;
  box-shadow:
    0 -40px 100px rgba(15,8,35,0.25),
    0 -2px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  padding-top: clamp(80px, 10vw, 140px);
}

.suite-section .section-title-center    { color: var(--t1); }
.suite-section .section-subtitle-center { color: var(--t2); }
.suite-section .section-badge           { background: var(--fire); color: #fff; border: none; }

/* ── Suite watermark ── */
.suite-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: clamp(160px, 20vw, 320px);
  font-weight: 800;
  color: var(--t1);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.04em;
  z-index: 0;
  line-height: 1;
}

/* ── Bento Grid ── */
.suite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 24px 0 56px;
}

/* Bento layout — first card tall left, last card wide bottom-right */
.suite-card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.suite-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.suite-card:nth-child(3) { grid-column: 3; grid-row: 1; }
.suite-card:nth-child(4) { grid-column: 2; grid-row: 2; }
.suite-card:nth-child(5) { grid-column: 3; grid-row: 2; }

/* ── Card base ── */
.suite-card {
  position: relative;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 22px;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.16,1,0.3,1),
    box-shadow 0.4s cubic-bezier(0.16,1,0.3,1),
    border-color 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  background: var(--bg);
  border: 1px solid var(--line);
}

.suite-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(80,40,160,0.10),
    0 2px 8px rgba(80,40,160,0.04);
  border-color: var(--card-accent, var(--fire));
}

/* ── Card icon ── */
.suite-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fire-glow);
  color: var(--card-accent, var(--fire));
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.suite-card:hover .suite-card-icon {
  background: var(--card-accent, var(--fire));
  color: #fff;
  transform: scale(1.05);
}

/* ── Lavender card variant ── */
.suite-card-dark {
  background: linear-gradient(160deg, #ede5fa 0%, #e0d4f5 100%);
  border: 1px solid rgba(140,106,204,0.18);
}

.suite-card-dark:hover {
  border-color: var(--card-accent, var(--fire));
  box-shadow:
    0 12px 40px rgba(120,80,200,0.14),
    0 2px 8px rgba(120,80,200,0.06);
}

.suite-card-dark .suite-card-icon {
  background: rgba(140,106,204,0.15);
}

.suite-card-dark:hover .suite-card-icon {
  background: var(--card-accent, var(--fire));
  color: #fff;
}

.suite-card-dark .suite-card-num {
  color: var(--t3);
  opacity: 0.5;
}

.suite-card-dark .suite-card-name {
  color: var(--t1);
}

.suite-card-dark .suite-card-tagline {
  color: var(--t3);
}

.suite-card-dark .suite-card-desc {
  color: var(--t2);
}

.suite-card-dark .suite-card-arrow {
  color: var(--card-accent, var(--fire));
}

.suite-card-dark:hover .suite-card-arrow {
  color: var(--card-accent, var(--fire));
  opacity: 1;
}

/* ── Card body ── */
.suite-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

/* ── Typography ── */
.suite-card-num {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--t3);
  opacity: 0.5;
  margin-bottom: 6px;
}

.suite-card-name {
  font-family: var(--font-head);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--t1);
}

.suite-card-tagline {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--t3);
  margin-top: 4px;
}

.suite-card-desc {
  color: var(--t3);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 320px;
}

.suite-card-arrow {
  font-size: 10px;
  color: var(--card-accent, var(--fire));
  letter-spacing: 0.10em;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), color 0.3s;
  opacity: 0.55;
  margin-top: auto;
  padding-top: 16px;
}

.suite-card:hover .suite-card-arrow {
  transform: translateX(6px);
  opacity: 1;
}


/* ════════════════════════════════════════════════════
   SECTION 02 — Innovation in Action
════════════════════════════════════════════════════ */
.innovation-section {
  background: var(--surface);
}

/* Solutions Grid */
.solutions-grid {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.solutions-grid .solution-card:only-child {
  max-width: 480px;
}

.solution-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,21,37,0.06);
}

.solution-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--fire-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-icon-alt {
  background: rgba(220, 80, 80, 0.1);
}

.solution-icon-accent {
  background: rgba(80, 160, 220, 0.1);
}

.solution-icon {
  font-size: 20px;
}

.solution-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
}

.solution-desc {
  color: var(--t2);
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.solution-tag {
  font-size: 10px;
  color: var(--fire);
  border: 1px solid var(--fire-dim);
  padding: 4px 12px;
  border-radius: 16px;
  letter-spacing: 0.06em;
}

.solution-link {
  font-size: 11px;
  color: var(--t2);
  transition: color 0.2s;
  margin-top: auto;
  padding-top: 8px;
}

.solution-link:hover {
  color: var(--fire);
}

/* Research Cards */
.research-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.research-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.research-card-full {
  grid-column: 1 / -1;
}

.research-status {
  display: inline-block;
  font-size: 10px;
  padding: 4px 14px;
  border-radius: 16px;
  width: fit-content;
  letter-spacing: 0.08em;
}

.status-progress {
  background: #fff3cd;
  color: #856404;
}

.status-active {
  background: #d1fae5;
  color: #065f46;
}

.status-planning {
  background: #e0e7ff;
  color: #3730a3;
}

.research-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.01em;
}

.research-card-desc {
  color: var(--t2);
  font-size: 13px;
  line-height: 1.7;
}

.research-meta {
  display: flex;
  gap: 20px;
  align-items: center;
}

.research-meta .mono {
  font-size: 10px;
  color: var(--t3);
}

.research-phase-tag {
  color: var(--fire) !important;
}

/* ════════════════════════════════════════════════════
   SECTION 03 — Client Success Stories
════════════════════════════════════════════════════ */
.portfolio-section {
  background: var(--bg);
}

.portfolio-grid {
  display: grid;
  gap: 20px;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,21,37,0.06);
}

.portfolio-thumb {
  height: 200px;
  background: linear-gradient(145deg, var(--surface2) 0%, var(--line) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
}

.portfolio-thumb-alt {
  background: linear-gradient(145deg, rgba(140,106,204,0.08) 0%, var(--surface2) 100%);
}

.portfolio-thumb-dark {
  background: linear-gradient(145deg, var(--line) 0%, var(--surface) 100%);
}

.portfolio-thumb-accent {
  background: linear-gradient(145deg, var(--surface) 0%, rgba(140,106,204,0.12) 100%);
}

.portfolio-cat {
  font-size: 9px;
  background: var(--fire);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.08em;
}

.portfolio-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portfolio-client {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portfolio-dot {
  color: var(--fire);
  font-size: 12px;
}

.portfolio-client h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
}

.portfolio-body p {
  color: var(--t2);
  font-size: 12px;
  line-height: 1.65;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-tag {
  font-size: 9px;
  color: var(--fire);
  border: 1px solid var(--fire-dim);
  padding: 3px 10px;
  border-radius: 14px;
  letter-spacing: 0.06em;
}

/* ── R&D CTA Link (homepage) ─────────────────────── */
.rnd-cta-wrap {
  text-align: center;
  margin-top: clamp(40px, 5vw, 64px);
}

.rnd-cta-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fire);
  border: 1px solid var(--fire-dim);
  padding: 16px 36px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.rnd-cta-link:hover {
  background: var(--fire);
  color: #fff;
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════
   CTA
════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(80px, 10vw, 160px) 0;
  overflow: hidden;
  background: var(--bg);
}

.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-label {
  color: var(--t3);
  font-size: 10px;
}

.cta-headline {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--t1);
  margin-bottom: 8px;
}

.cta-headline em {
  color: var(--fire);
  font-style: normal;
}

.cta-body {
  color: var(--t2);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.75;
  max-width: 460px;
}

/* ── CTA Form ── */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 480px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--t3);
}

.form-input {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--t1);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: var(--t3);
  opacity: 0.6;
}

.form-input:focus {
  border-color: var(--fire);
  box-shadow: 0 0 0 3px rgba(140,106,204,0.12);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236b6280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.cta-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--fire);
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  align-self: flex-start;
}

.cta-btn:hover {
  background: var(--t1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: #ebe4f5;
  padding: 64px 0 48px;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: clamp(100px, 22vw, 360px);
  font-weight: 800;
  color: var(--fire);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.04em;
  z-index: 1;
  line-height: 0.85;
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  color: var(--fire-dim);
  font-size: 9px;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  display: flex;
}

.footer-desc {
  color: var(--t2);
  font-size: 13px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(140, 106, 204, 0.25);
  color: var(--t3);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social:hover {
  color: var(--fire);
  border-color: var(--fire-dim);
  background: var(--fire-glow);
}

.footer-link {
  color: var(--t2);
  font-size: 10px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--t1);
}

.footer-link-accent {
  color: var(--fire) !important;
}

.footer-link-accent:hover {
  color: var(--fire-dim) !important;
}

.footer-legal {
  color: var(--t3);
  font-size: 10px;
}

.footer-system-id {
  color: var(--t3);
  font-size: 9px;
  opacity: 0.5;
}

/* ════════════════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--t2);
  font-family: var(--font-mono);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s, color 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--fire);
  color: var(--bg);
  border-color: var(--fire);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
════════════════════════════════════════════════════ */

/* ── Base (mobile, <480px default) ───────────────── */
.nav-links,
.nav-cta {
  display: none;
}

.nav-hamburger {
  display: flex;
}

.hero {
  min-height: 100svh;
  min-height: 480px;
}

.hero-content {
  width: min(780px, calc(100vw - 48px));
  bottom: clamp(40px, 8vw, 80px);
}

.hero-headline {
  font-size: clamp(38px, 10vw, 56px);
}

.hero-right-accent {
  display: none;
}

.hero-scroll-hint {
  display: none;
}

.bento-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "method method"
    "strategic phoenix"
    "proven phoenix"
    "vision tech";
  gap: 10px;
}

.process-steps {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
}

.process-step {
  padding: 10px 0;
}

/* Reduce bento card padding + text on mobile */
.bento-card {
  padding: 20px 18px;
}

.bento-card-desc {
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.bento-num {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
}

.bento-card-title {
  font-size: 15px;
  margin-bottom: 6px;
}

/* Vertical track line — replaces horizontal on mobile */
.process-steps::before {
  top: 33px;
  bottom: 33px;
  left: calc(50% - 0.5px);
  right: auto;
  width: 1px;
  height: auto;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--fire-dim) 20%,
    var(--fire) 50%,
    var(--fire-dim) 80%,
    transparent 100%);
}

/* Vertical flow pulse — replaces horizontal on mobile */
.process-steps::after {
  top: 33px;
  bottom: 33px;
  left: calc(50% - 4px);
  right: auto;
  width: 9px;
  height: auto;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(140, 106, 204, 0.08) 20%,
    rgba(180, 140, 240, 0.70) 50%,
    rgba(140, 106, 204, 0.08) 80%,
    transparent 100%);
  background-size: 100% 40%;
  background-repeat: no-repeat;
  animation: method-flow-v 2.8s ease-in-out infinite;
}

@keyframes method-flow-v {
  0%   { transform: translateY(-110%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(110%); opacity: 0; }
}

.solutions-grid {
  grid-template-columns: 1fr;
}

.research-cards {
  grid-template-columns: 1fr;
}

.research-card-full {
  grid-column: 1;
}

.portfolio-grid {
  grid-template-columns: 1fr;
}

.suite-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 0 40px;
}

.suite-card:nth-child(1),
.suite-card:nth-child(2),
.suite-card:nth-child(3),
.suite-card:nth-child(4),
.suite-card:nth-child(5) {
  grid-column: 1;
  grid-row: auto;
}

.suite-card {
  padding: 22px 20px 18px;
}

.suite-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}

.suite-card-icon svg {
  width: 22px;
  height: 22px;
}

.suite-card-name {
  font-size: 18px;
}

.suite-card-desc {
  font-size: 13px;
}

.suite-watermark {
  font-size: 80px;
}

.cta-inner {
  grid-template-columns: 1fr;
  gap: 32px;
}

.cta-form {
  max-width: 100%;
}

.footer-inner {
  grid-template-columns: 1fr;
}

.cta-headline {
  font-size: 32px;
  letter-spacing: -0.04em;
}

.section-title-center {
  font-size: 28px;
  line-height: 1.2;
}

.section-subtitle-center {
  font-size: 14px;
  margin-bottom: clamp(24px, 5vw, 52px);
}

.bento-card {
  padding: 18px 16px;
}

.bento-card-title {
  font-size: 15px;
}

.bento-card-desc {
  font-size: 13px;
}

.portfolio-thumb {
  height: 70px;
}

.footer-watermark {
  font-size: clamp(80px, 28vw, 200px);
  bottom: 0;
}

/* ── Mobile hero glow pulse (CSS fallback / enhancement) ─ */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 65% 55% at 50% 45%,
    rgba(140, 106, 204, 0.22) 0%,
    transparent 70%
  );
  animation: hero-orb-pulse 3.2s ease-in-out infinite;
  display: none;
}

@media (max-width: 768px) {
  .hero::after {
    display: block;
  }
}

@keyframes hero-orb-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ── Mobile portfolio carousel ─────────────────── */
.portfolio-carousel-outer {
  overflow: hidden;
  position: relative;
  border-radius: 4px;
}

.portfolio-carousel-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
  transform: translateY(0);
}

.portfolio-carousel-track .portfolio-card {
  flex-shrink: 0;
}

.portfolio-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.pc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.pc-dot.active {
  background: var(--fire);
  transform: scale(1.5);
}

/* Compact card body on mobile */
.portfolio-body {
  padding: 16px;
  gap: 10px;
}

.portfolio-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}



/* ── 481px+ ─────────────────────────────────────── */
@media (min-width: 481px) {
  .hero {
    min-height: 520px;
  }

  .hero-content {
    bottom: clamp(60px, 10vw, 100px);
  }

  .hero-headline {
    font-size: clamp(44px, 10vw, 72px);
  }

  .suite-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .suite-card:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .suite-card:nth-child(2),
  .suite-card:nth-child(3),
  .suite-card:nth-child(4),
  .suite-card:nth-child(5) { grid-column: auto; grid-row: auto; }

  .suite-card {
    padding: 24px 22px 20px;
  }

  .section-title-center {
    font-size: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-col-legal {
    grid-column: 1 / -1;
  }
}

/* ── 769px+ (Tablet) ────────────────────────────── */
@media (min-width: 769px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }

  .nav-hamburger {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    width: min(780px, 60vw);
  }

  .hero-headline {
    font-size: clamp(56px, 9vw, 128px);
  }

  .hero-right-accent {
    display: flex;
  }

  .hero-scroll-hint {
    display: flex;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "method method"
      "strategic phoenix"
      "proven phoenix"
      "vision tech";
  }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    overflow: visible;
  }

  /* Restore horizontal line at tablet+ */
  .process-steps::before {
    top: 13px;
    bottom: auto;
    left: calc(12.5% + 4px);
    right: calc(12.5% + 4px);
    width: auto;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      var(--fire-dim) 20%,
      var(--fire) 50%,
      var(--fire-dim) 80%,
      transparent 100%);
    animation: step-line-glow 3s ease-in-out infinite;
  }

  /* Restore horizontal flow pulse at tablet+ */
  .process-steps::after {
    top: 9px;
    bottom: auto;
    left: calc(12.5% + 4px);
    right: calc(12.5% + 4px);
    width: auto;
    height: 9px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(140, 106, 204, 0.08) 20%,
      rgba(180, 140, 240, 0.70) 50%,
      rgba(140, 106, 204, 0.08) 80%,
      transparent 100%);
    background-size: 40% 100%;
    animation: method-flow 2.8s ease-in-out infinite;
  }

  .process-step {
    padding: 0;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid .solution-card:last-child {
    grid-column: 1 / -1;
  }

  .research-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-card-full {
    grid-column: 1 / -1;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  /* Restore full card sizes at tablet */
  .portfolio-thumbnail-outer {
    display: block;
  }

  .portfolio-thumb {
    height: 150px;
  }

  .portfolio-body {
    padding: 20px;
    gap: 12px;
  }

  .portfolio-body p {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  /* Restore bento card text at tablet+ */
  .bento-card {
    padding: 28px 24px;
  }

  .bento-card-desc {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    font-size: 13px;
    line-height: 1.75;
  }

  .bento-num {
    font-size: 40px;
  }

  .bento-card-title {
    font-size: 18px;
  }

  /* Hide mobile carousel on tablet+ */
  .portfolio-carousel-outer,
  .portfolio-carousel-dots {
    display: none !important;
  }

  /* Restore hidden grid */
  #evidence .portfolio-grid {
    display: grid !important;
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 48px;
  }

  .footer-col-legal {
    grid-column: auto;
  }

  .cta-inner {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }

  .cta-headline {
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: -0.045em;
  }

  .suite-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .suite-card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .suite-card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .suite-card:nth-child(3) { grid-column: 3; grid-row: 1; }
  .suite-card:nth-child(4) { grid-column: 2; grid-row: 2; }
  .suite-card:nth-child(5) { grid-column: 3; grid-row: 2; }

  .suite-card {
    padding: 28px 26px 22px;
  }

  .suite-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }

  .suite-card-icon svg {
    width: 28px;
    height: 28px;
  }

  .suite-card-name {
    font-size: clamp(18px, 1.8vw, 24px);
  }

  .suite-watermark {
    font-size: clamp(160px, 20vw, 320px);
  }

  .section-title-center {
    font-size: clamp(36px, 5vw, 64px);
  }

  .bento-card {
    padding: 32px;
  }

  .portfolio-thumb {
    height: 200px;
  }

  .footer-watermark {
    font-size: clamp(100px, 16vw, 260px);
  }
}

/* ── 1025px+ (Desktop) ──────────────────────────── */
@media (min-width: 1025px) {

  .bento-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "method strategic phoenix"
      "method proven phoenix"
      "vision tech tech";
  }

  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .solutions-grid .solution-card:last-child {
    grid-column: auto;
  }

  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}
