/* ==========================================================================
   PAO Interactive (paooffice.com) — Master Stylesheet
   Art Direction: "LUMINOUS HORIZON — SCULPTURAL GAME WORLD"
   2026 Awwwards Site of the Day Craft · Full-Viewport Real-Time 3D WebGL World
   Zero External Requests · TH / EN / ZH Native Stacks · WCAG AA/AAA Verified
   ========================================================================== */

:root {
  /* Deep Twilight & Midnight World Surfaces (Zero Green Back-Office Tones) */
  --bg-void: #05070E;
  --bg-deep: #090D1A;
  --bg-surface: #0E1426;
  --bg-scrim: rgba(5, 7, 14, 0.72);
  --bg-scrim-strong: rgba(5, 7, 14, 0.86);
  --bg-glass: rgba(12, 17, 32, 0.68);

  /* High-Contrast Warm Editorial Text (Verified WCAG AAA/AA on all surfaces) */
  --text-primary: #FAF7F2;     /* 18.6:1 on #05070E */
  --text-secondary: #D5DCEB;   /* 13.8:1 on #05070E */
  --text-muted: #9BA7C0;       /* 7.9:1 on #05070E */
  --text-on-accent: #05070E;

  /* Luminous Game-World Palette */
  --accent-coral: #FF785A;     /* Ember Coral — 7.4:1 on #05070E */
  --accent-gold: #FFC86B;      /* Solar Gold — 12.9:1 on #05070E */
  --accent-cyan: #70E4FF;      /* Celestial Cyan — 13.4:1 on #05070E */
  --accent-violet: #C8A6FF;    /* Twilight Violet — 9.3:1 on #05070E */

  /* Sculptural Hairlines & Focus Ring */
  --hairline: rgba(250, 247, 242, 0.15);
  --hairline-strong: rgba(250, 247, 242, 0.32);
  --focus-ring: #FFC86B;

  /* Language-Specific System Font Stacks (Zero external network requests) */
  --font-sans-th: 'Sukhumvit Set', 'Thonburi', 'Leelawadee UI', 'Tahoma', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans-en: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, 'Sukhumvit Set', 'Leelawadee UI', sans-serif;
  --font-sans-zh: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'Heiti SC', 'WenQuanYi Micro Hei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --font-sans: var(--font-sans-th);

  /* Layout & Scroll Storytelling Variables */
  --container-max: 1360px;
  --page-scroll: 0;
  --hero-scroll: 0;
  --process-progress: 1;
}

html:lang(th) {
  --font-sans: var(--font-sans-th);
}

html:lang(en) {
  --font-sans: var(--font-sans-en);
}

html:lang(zh),
html[lang^="zh"] {
  --font-sans: var(--font-sans-zh);
}

/* ==========================================================================
   Reset & Strict Multilingual Typography Safeguards
   Rule: Thai line-height >= 1.5, never letter-space Thai text.
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: normal;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  letter-spacing: normal;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Guarantee line-height >= 1.5 and zero letter-spacing across all elements */
h1, h2, h3, h4, h5, h6,
p, li, a, span, button, label, dt, dd, strong, em, small, div, section, article, aside, header, footer, nav {
  line-height: 1.55;
  letter-spacing: normal;
}

p, li, dd {
  line-height: 1.72;
}

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

a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--accent-cyan);
}

/* High-Contrast Keyboard Focus Ring (WCAG AA/AAA) */
:focus-visible {
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 6px rgba(5, 7, 14, 0.92) !important;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: -120px;
  left: 24px;
  z-index: 10000;
  background-color: var(--accent-gold);
  color: var(--text-on-accent);
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 20px;
}

/* Subtle Top Scroll Horizon Line */
.scroll-horizon {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(250, 247, 242, 0.06);
  z-index: 900;
  pointer-events: none;
}

.scroll-horizon-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-coral), var(--accent-gold), var(--accent-cyan));
  transform-origin: 0 50%;
  transform: scaleX(var(--page-scroll, 0));
}

/* ==========================================================================
   Custom Studio Halo Cursor (Desktop Pointer Only)
   ========================================================================== */
.custom-cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
}

@media (hover: hover) and (pointer: fine) {
  html.js-motion-ready .custom-cursor {
    display: block;
  }
}

.cursor-dot {
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  pointer-events: none;
  transition: transform 0.15s ease, background-color 0.25s ease;
}

.cursor-halo {
  position: fixed;
  top: -22px;
  left: -22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 200, 107, 0.45);
  background: radial-gradient(circle, rgba(255, 200, 107, 0.14) 0%, rgba(112, 228, 255, 0) 70%);
  pointer-events: none;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              top 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              left 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              background 0.25s ease;
}

.custom-cursor.is-interactive .cursor-halo {
  top: -36px;
  left: -36px;
  width: 72px;
  height: 72px;
  border-color: var(--accent-cyan);
  background: radial-gradient(circle, rgba(112, 228, 255, 0.2) 0%, rgba(255, 120, 90, 0) 72%);
}

/* ==========================================================================
   Full-Viewport Real-Time 3D WebGL World & Static World Fallback
   Carries continuously through the entire page behind all sections.
   ========================================================================== */
.world-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-void);
}

.world-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.world-fallback svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.webgl-ready .world-fallback {
  opacity: 0;
}

.world-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
}

/* Soft atmospheric vignette that anchors editorial legibility */
.world-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 38%, rgba(5, 7, 14, 0.12) 0%, rgba(5, 7, 14, 0.62) 68%, rgba(5, 7, 14, 0.88) 100%),
    linear-gradient(180deg, rgba(5, 7, 14, 0.55) 0%, rgba(5, 7, 14, 0.22) 32%, rgba(5, 7, 14, 0.58) 78%, rgba(5, 7, 14, 0.92) 100%);
}

/* ==========================================================================
   Layout Container & Editorial Scrims
   ========================================================================== */
.page-shell {
  position: relative;
  z-index: 4;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 64px);
}

/* ==========================================================================
   Minimal Floating Header & Plain-Link Language Switcher (TH / EN / 中文)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  background: linear-gradient(180deg, rgba(5, 7, 14, 0.86) 0%, rgba(5, 7, 14, 0.42) 75%, rgba(5, 7, 14, 0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.18rem;
}

.brand-link:hover {
  color: var(--accent-gold);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-link:hover .brand-mark {
  transform: scale(1.08) rotate(-6deg);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: 0% 50%;
}

/* Plain Link Language Switcher (Works with JS and cookies off) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--hairline-strong);
}

.lang-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-link:hover {
  color: var(--text-primary);
}

.lang-link.is-active,
.lang-link[aria-current="page"] {
  color: var(--text-on-accent);
  background-color: var(--accent-gold);
}

.menu-toggle {
  display: none;
  appearance: none;
  background: rgba(14, 20, 38, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Scroll Storytelling & Whole-Word Kinetic Typography
   Default state is 100% visible when JS is off or reduced motion is set.
   ========================================================================== */
.k-line {
  display: inline;
}

.k-word {
  display: inline-block;
}

.reveal-up {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.js-motion-ready .k-line {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
  }

  html.js-motion-ready .k-word {
    transform: translate3d(0, 108%, 0);
    opacity: 0;
    transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.7s ease;
    transition-delay: var(--delay, 0s);
  }

  html.js-motion-ready .is-inview .k-word,
  html.js-motion-ready .k-line.is-inview .k-word {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }

  html.js-motion-ready .reveal-up {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
  }

  html.js-motion-ready .reveal-up.is-inview {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ==========================================================================
   1. HERO SECTION — Full-Viewport 3D World Behind Monumental Typography
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 136px 0 clamp(64px, 10vh, 112px);
}

.hero-stage-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: end;
}

.hero-content {
  position: relative;
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: 28px;
  background: radial-gradient(circle at 20% 30%, rgba(5, 7, 14, 0.82) 0%, rgba(5, 7, 14, 0.62) 75%, rgba(5, 7, 14, 0.35) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.eyebrow {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.55rem, 5.6vw, 5.15rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.52;
  margin-bottom: 26px;
}

.accent-coral {
  color: var(--accent-coral);
}

.accent-gold {
  color: var(--accent-gold);
}

.accent-cyan {
  color: var(--accent-cyan);
}

.hero-lead {
  font-size: clamp(1.12rem, 1.45vw, 1.34rem);
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.btn-luminous {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-coral) 100%);
  color: var(--text-on-accent);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 36px rgba(255, 120, 90, 0.28);
}

.btn-luminous:hover {
  color: var(--text-on-accent);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 44px rgba(255, 200, 107, 0.42);
}

.link-minimal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 10px 4px;
  border-bottom: 1.5px solid var(--hairline-strong);
  transition: color 0.22s ease, border-color 0.22s ease, gap 0.22s ease;
}

.link-minimal:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  gap: 15px;
}

.hero-world-window {
  /* Open negative space letting the full-screen 3D WebGL portal shine through */
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: var(--bg-scrim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scroll-cue-line {
  width: 36px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}

/* ==========================================================================
   Full-Bleed Scene Sections & Scale Contrast
   ========================================================================== */
.scene-section {
  position: relative;
  padding: clamp(104px, 15vh, 188px) 0;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(5, 7, 14, 0.64) 0%, rgba(5, 7, 14, 0.78) 50%, rgba(5, 7, 14, 0.68) 100%);
}

.scene-section-deep {
  background: linear-gradient(180deg, rgba(5, 7, 14, 0.78) 0%, rgba(9, 13, 26, 0.86) 50%, rgba(5, 7, 14, 0.78) 100%);
}

.section-intro-wrap {
  max-width: 920px;
  margin-bottom: clamp(64px, 9vh, 108px);
}

.section-title {
  font-size: clamp(2.15rem, 4.6vw, 4.25rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.52;
  margin-bottom: 22px;
}

.section-lead {
  font-size: clamp(1.12rem, 1.45vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 56ch;
}

/* ==========================================================================
   2. SERVICES — Two Monumental Acts (Games & Custom Software)
   ========================================================================== */
.services-act {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(44px, 6vw, 96px);
  align-items: center;
  padding-bottom: clamp(88px, 12vh, 148px);
  border-bottom: 1px solid var(--hairline);
}

.act-title {
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.52;
  margin-bottom: 20px;
}

.act-body {
  font-size: clamp(1.08rem, 1.35vw, 1.26rem);
  color: var(--text-secondary);
  max-width: 54ch;
  margin-bottom: 40px;
}

.editorial-points {
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.editorial-point {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: baseline;
}

.editorial-point-title {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--text-primary);
}

.editorial-point-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* Striking Visual I: Sculptural Celestial Game World Artwork */
.visual-sculpture {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sculpture-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 24px 64px rgba(255, 120, 90, 0.18));
}

@media (prefers-reduced-motion: no-preference) {
  html.js-motion-ready .orbit-slow {
    transform-origin: 240px 240px;
    animation: spinWorld 36s linear infinite;
  }

  html.js-motion-ready .orbit-reverse {
    transform-origin: 240px 240px;
    animation: spinWorldReverse 28s linear infinite;
  }

  html.js-motion-ready .float-core {
    animation: floatPulse 6s ease-in-out infinite;
  }
}

@keyframes spinWorld {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinWorldReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.03); }
}

/* Act II: Custom Software Monumental Editorial Index */
.software-act {
  padding-top: clamp(88px, 12vh, 148px);
}

.software-act-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 7vh, 80px);
}

.software-act-head .act-body {
  margin-bottom: 0;
}

.software-index {
  list-style: none;
  border-top: 1px solid var(--hairline-strong);
}

.software-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(28px, 4vh, 44px) 0;
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.3s ease, padding-left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.software-row:hover {
  border-bottom-color: var(--accent-cyan);
  padding-left: 14px;
}

.software-row-title {
  font-size: clamp(1.5rem, 2.7vw, 2.35rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.52;
  transition: color 0.25s ease;
}

.software-row:hover .software-row-title {
  color: var(--accent-cyan);
}

.software-row-desc {
  font-size: clamp(1.04rem, 1.25vw, 1.18rem);
  color: var(--text-secondary);
}

/* ==========================================================================
   3. FEATURED PRODUCT: Niti Online (https://nitionline.com)
   One Strong Idea + One Striking Visual (Luminous 3-Stage Stream)
   ========================================================================== */
.niti-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vh, 84px);
}

.niti-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.niti-display-title {
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.52;
  margin-bottom: 14px;
}

.niti-subtitle {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 700;
  color: var(--accent-gold);
}

.niti-narrative {
  font-size: clamp(1.08rem, 1.35vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Striking Visual II: Niti Online Luminous Flow Sculpture */
.niti-visual-stage {
  position: relative;
  width: 100%;
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: 32px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 200, 107, 0.1) 0%, rgba(11, 16, 30, 0.78) 65%, rgba(5, 7, 14, 0.9) 100%);
  border: 1px solid var(--hairline);
}

.niti-flow-svg {
  width: 100%;
  height: auto;
  margin-bottom: clamp(32px, 5vh, 52px);
}

.niti-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.niti-pillar-step {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.niti-pillar-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.niti-pillar-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   4. HOW WE WORK — Scroll-Illuminated Horizon Path
   ========================================================================== */
.process-horizon-wrap {
  position: relative;
  padding-top: 24px;
}

/* Striking Visual III: Continuous Luminous Horizon Beam */
.process-beam-track {
  position: relative;
  width: 100%;
  height: 2px;
  background-color: var(--hairline);
  margin-bottom: clamp(44px, 6vh, 72px);
  overflow: hidden;
}

.process-beam-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-coral), var(--accent-gold), var(--accent-cyan));
  transform-origin: 0 50%;
  transform: scaleX(var(--process-progress, 1));
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.process-step {
  padding-top: 20px;
  border-top: 1px solid var(--hairline-strong);
}

.process-step-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.process-step-title {
  font-size: clamp(1.32rem, 1.8vw, 1.65rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.process-step-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   5. CONTACT — Monumental Interactive Contact Typography
   ========================================================================== */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vh, 80px);
}

.contact-list {
  border-top: 1px solid var(--hairline-strong);
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: clamp(28px, 4.5vh, 48px) 0;
  border-bottom: 1px solid var(--hairline);
}

.contact-row-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
}

.contact-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.contact-row-link {
  font-size: clamp(1.65rem, 3.8vw, 3.35rem);
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.52;
  transition: color 0.25s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  word-break: break-all;
}

.contact-row-link:hover {
  color: var(--accent-gold);
  transform: translateX(8px);
}

.contact-row-note {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--hairline);
  padding: 48px 0 64px;
  background-color: rgba(5, 7, 14, 0.92);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   Responsive Breakpoints (Verified at 1440px and 390px)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-stage-grid,
  .services-act,
  .software-act-head,
  .niti-header-grid {
    grid-template-columns: 1fr;
  }

  .hero-world-window {
    min-height: 120px;
    align-items: flex-start;
  }

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

  .niti-pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    background-color: rgba(9, 13, 26, 0.96);
    border: 1px solid var(--hairline-strong);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-link {
    display: block;
    padding: 10px 12px;
  }

  .lang-switch {
    padding-left: 10px;
  }

  .editorial-point,
  .software-row,
  .contact-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .process-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .container {
    padding: 0 18px;
  }

  .hero-section {
    padding-top: 108px;
    padding-bottom: 48px;
  }

  .hero-content {
    padding: 20px 18px;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .section-title,
  .niti-display-title {
    font-size: 1.95rem;
  }

  .act-title {
    font-size: 1.75rem;
  }

  .contact-row-link {
    font-size: 1.48rem;
  }

  .btn-luminous {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Strict Reduced Motion Compliance (prefers-reduced-motion: reduce)
   Stops all motion and ensures 100% of content is immediately shown.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .custom-cursor {
    display: none !important;
  }

  .k-line,
  .k-word,
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .process-beam-fill {
    transform: scaleX(1) !important;
  }
}

/* ==========================================================================
   Hand fixes after review: hero fits the first screen, scene stays visible,
   headlines break at sensible points, mobile header fits.
   ========================================================================== */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 7, 14, 0.88) 0%, rgba(5, 7, 14, 0.62) 42%, rgba(5, 7, 14, 0) 72%);
}
.hero-section > * { position: relative; z-index: 1; }
.hero-stage-grid { grid-template-columns: minmax(0, 1fr); }
.hero-content {
  max-width: 820px;
  padding: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hero-title { font-size: clamp(2.15rem, 4.3vw, 4rem); line-height: 1.5; margin-bottom: 20px; }
.hero-title .k-line { display: block; }
.hero-section { padding-top: 112px; padding-bottom: clamp(40px, 7vh, 80px); }
@media (min-width: 620px) { .keep-line { white-space: nowrap; } }
@media (max-width: 780px) {
  .hero-section::before { background: linear-gradient(180deg, rgba(5, 7, 14, 0.55) 0%, rgba(5, 7, 14, 0.8) 55%, rgba(5, 7, 14, 0.92) 100%); }
}
@media (max-width: 430px) {
  .header-inner { gap: 8px; }
  .brand-name, .logo-text { font-size: 0.98rem; white-space: nowrap; }
  .menu-toggle { padding-left: 10px; padding-right: 10px; }
  .lang-switch { padding-left: 6px; gap: 0; flex-shrink: 0; }
  .lang-link { padding-left: 7px; padding-right: 7px; font-size: 0.82rem; }
  .hero-content { padding: 0; }
  .hero-title { font-size: 1.95rem; }
}

/* PAO logo in the header (vector redraw of the brand logo, white for the dark page) */
.brand-logo { display: block; height: 27px; width: auto; }
.brand-link { align-items: center; gap: 10px; }
.brand-link span { font-weight: 500; white-space: nowrap; }
@media (max-width: 430px) {
  .brand-logo { height: 22px; }
  .brand-link { gap: 7px; }
  .brand-link span { display: none; }
}
.footer-name { display: inline-flex; align-items: center; gap: 9px; }
.footer-logo { display: block; height: 24px; width: auto; }
