/* ═══════════════════════════════════════════════════════════════
   SILVA DIGITAL — Styles
   "A calm, architectural interface sculpted from light, 
    shadow, and precision — where intelligence feels tangible."
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Foundation ───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #07070d;
  --bg-surface: #0c0c14;
  --bg-elevated: #111119;
  --steel-100: #e8e9ed;
  --steel-200: #c8c9d1;
  --steel-300: #a0a1ae;
  --steel-400: #7a7b8c;
  --steel-500: #55566a;
  --accent: #8b9cc6;
  --accent-glow: rgba(139, 156, 198, 0.12);
  --accent-bright: #a8b8e0;
  --glass-bg: rgba(255, 255, 255, 0.012);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.1);
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --section-pad: clamp(80px, 12vw, 160px);
  --container-max: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-calm: 0.6s var(--ease-out);
  --transition-slow: 1s var(--ease-out);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--steel-200);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 300;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; color: inherit; }
::selection { background: rgba(139, 156, 198, 0.25); color: var(--steel-100); }

/* ── Glass Border Frame ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 10px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 40px rgba(139, 156, 198, 0.02) inset;
}

/* ── Edge Mask — hide content beyond the curved border ─────── */
.edge-mask {
  position: fixed;
  inset: 10px;
  border-radius: 20px;
  box-shadow: 0 0 0 9999px var(--bg-deep);
  z-index: 9998;
  pointer-events: none;
}

/* ── Full-page background image (Background.jpg) ───────────────── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('Background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.45;
  filter: brightness(0.55) saturate(0.6);
  pointer-events: none;
}

/* ── Ambient Background ───────────────────────────────────────── */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-image-wrap {
  position: absolute;
  inset: -25%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: brightness(0.6) saturate(0.5);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  animation: orbFade 2s var(--ease-out) forwards;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(100, 120, 180, 0.02), transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
  animation-delay: 0.5s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(80, 100, 160, 0.02), transparent 70%);
  top: 50%; right: -150px;
  animation-delay: 1s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(120, 130, 170, 0.02), transparent 70%);
  bottom: 10%; left: -100px;
  animation-delay: 1.5s;
}
.orb-4 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(90, 110, 160, 0.02), transparent 70%);
  bottom: -300px; left: 50%; transform: translateX(-50%);
  animation-delay: 2s;
}

@keyframes orbFade { to { opacity: 1; } }

.grain-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}


/* ── Container ────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
}


/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 10px; left: 10px; right: 10px;
  z-index: 10000;
  padding: 0 clamp(14px, 4vw, 50px);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.8s var(--ease-out), opacity 0.8s var(--ease-out);
}

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

.nav-inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  background: var(--bg-deep);
  border: 1px solid var(--glass-border);
  border-top: none;
  padding: 0 28px;
  border-radius: 0 0 16px 16px;
}

/* Inverse curve — top left (sweeps upward to the left) */
.nav-inner::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: -1px;
  width: 14px;
  height: 14px;
  background: transparent;
  border-top-left-radius: 14px;
  box-shadow: -6px -6px 0 0 var(--bg-deep);
}

/* Inverse curve — top right (sweeps upward to the right) */
.nav-inner::after {
  content: '';
  position: absolute;
  bottom: 100%;
  right: -1px;
  width: 14px;
  height: 14px;
  background: transparent;
  border-top-right-radius: 14px;
  box-shadow: 6px -6px 0 0 var(--bg-deep);
}


.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
}

.nav-logo-img {
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.nav-brand {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 100%;
}

.nav-link {
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--steel-400);
  transition: color var(--transition-calm);
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition-calm);
}

.nav-link:hover { color: var(--steel-100); }
.nav-link:hover::after { width: 100%; }

.nav-link.active {
  color: var(--steel-100);
}
.nav-link.active::after { width: 100%; }

.nav-link-cta {
  color: var(--steel-100);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: 8px;
  transition: all var(--transition-calm);
}
.nav-link-cta::after { display: none; }
.nav-link-cta.active {
  border-color: rgba(139, 156, 198, 0.25);
  background: rgba(255, 255, 255, 0.06);
}
.nav-link-cta:hover {
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 30px rgba(139, 156, 198, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1px;
  background: var(--steel-200);
  transition: all 0.4s var(--ease-out);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(7, 7, 13, 0.96);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 300; letter-spacing: 0.04em;
  color: var(--steel-300);
  transform: translateY(20px); opacity: 0;
  transition: all 0.5s var(--ease-out);
}
.mobile-menu.open .mobile-link { transform: translateY(0); opacity: 1; }
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.32s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.4s; }
.mobile-link:hover,
.mobile-link:active { color: var(--steel-100); }


/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  margin-top: -40px;
}

.hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(40px, 8vw, 100px);
  padding-left: clamp(80px, 16vw, 220px);
}


/* ── Hero Left: Logo + Brand ──────────────────────────────────── */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  padding-right: clamp(24px, 4vw, 56px);
}

.hero-left .logo-emblem {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}

.hero-left .logo-badge {
  width: 300px;
  height: 300px;
}

.hero-left .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-left .brand-name {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--steel-300);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-40px);
  animation: beamOut 1.2s var(--ease-out) 0.4s forwards;
}

@keyframes beamOut {
  0% { opacity: 0; transform: translateX(-40px); filter: blur(8px); }
  40% { opacity: 0.6; filter: blur(2px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}


/* ── Vertical Divider ─────────────────────────────────────────── */
.hero-divider-vertical {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 40px 0;
}

.divider-line-vertical {
  width: 1px;
  height: 100%;
  min-height: 240px;
  background: linear-gradient(to bottom, transparent, var(--steel-500), transparent);
}


/* ── Hero Right: Statements + CTA ─────────────────────────────── */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: clamp(24px, 4vw, 56px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 76px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--steel-100);
  margin-bottom: 16px;
  position: relative;
  text-align: left;
  width: 100%;
}

.title-line {
  display: block;
  position: relative;
  background: linear-gradient(180deg, #d0d2da 0%, #a0a3b2 25%, #808394 50%, #606378 75%, #484b60 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5))
          drop-shadow(0 4px 0 rgba(0, 0, 0, 0.3))
          drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 24px);
  font-weight: 300;
  color: var(--steel-400);
  letter-spacing: 0.02em;
  margin-bottom: 40px;
  text-align: left;
  white-space: nowrap;
}


/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-calm);
}
.btn-primary:hover {
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(139, 156, 198, 0.08);
}
.btn-text {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--steel-100);
}
/* Hero badge — static, non-interactive */
.hero-badge {
  cursor: default;
}
.hero-badge:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--glass-border);
  background: var(--glass-bg);
}

.btn-glow {
  position: absolute; inset: -1px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 156, 198, 0.06), transparent 50%, rgba(139, 156, 198, 0.04));
  opacity: 0;
  transition: opacity var(--transition-calm);
}
.btn-primary:hover .btn-glow { opacity: 1; }


/* ── Scroll Indicator ─────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: fit-content;
}

.scroll-dot { display: none; }
.scroll-line { display: none; }

.scroll-chevron {
  width: 24px;
  height: 24px;
  color: var(--steel-300);
  opacity: 0.65;
  animation: chevronBounce 2.4s ease-in-out infinite;
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50% { transform: translateY(5px); opacity: 0.25; }
}


/* ── Section Shared ───────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.section-tag {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(139, 156, 198, 0.15);
  border-radius: 100px;
  background: rgba(139, 156, 198, 0.04);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--steel-100);
  margin-bottom: 20px;
}

.section-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--steel-400);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.8;
}


/* ── Glass Card ───────────────────────────────────────────────── */
.glass-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: all var(--transition-calm);
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-edge {
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition-calm);
}
.glass-card:hover .card-edge { opacity: 1; }

/* Card header: icon left, title right */
.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--steel-300);
  transition: color var(--transition-calm);
}
.card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.glass-card:hover .card-icon { color: var(--accent-bright); }

.card-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 400;
  color: var(--steel-100);
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
}

.card-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--steel-400);
  margin: 0;
}


/* ── Services Grid ────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}


/* ── Capability Stack (2×3 grid, minimal icon + title + sentence) ─ */
.capability-stack .section-header {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.capability-stack .section-desc {
  display: none;
}

/* Four words — Clarity. Capacity. Margin. Velocity. (individual glass boxes) */
.glass-words-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  max-width: 900px;
  margin: 0 auto;
}

.glass-word-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(52px, 8vw, 68px);
  padding: clamp(12px, 2vw, 18px) clamp(14px, 1.8vw, 20px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: border-color var(--transition-calm), box-shadow var(--transition-calm), transform var(--transition-calm);
  overflow: hidden;
}

.glass-word-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
}

.glass-word-box:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.glass-word-text {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--steel-100);
  text-align: center;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  max-width: 1000px;
  margin: 0 auto;
}

.capability-block {
  position: relative;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: border-color var(--transition-calm), box-shadow var(--transition-calm);
}

.capability-block:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Capability header: icon left, title right (same as What We Engineer cards) */
.capability-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.capability-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--steel-400);
  opacity: 0.9;
  transition: color var(--transition-calm), opacity var(--transition-calm);
}

.capability-block:hover .capability-icon {
  color: var(--steel-300);
  opacity: 1;
}

.capability-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  display: block;
}

.capability-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  color: var(--steel-100);
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
}

.capability-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--steel-400);
  font-weight: 300;
  margin: 0;
}


/* ── Glass Panel (Shared) ─────────────────────────────────────── */
.glass-panel {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: all var(--transition-calm);
  overflow: hidden;
}
.glass-panel:hover { border-color: var(--glass-border-hover); }


/* ── Process Timeline ─────────────────────────────────────────── */
.process.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 7vw, 80px) 0;
}

.process .container {
  width: 100%;
}

.process .section-header {
  margin-bottom: clamp(32px, 5vw, 52px);
}

.process .section-title {
  font-size: clamp(28px, 4vw, 48px);
}

.process .section-desc {
  font-size: clamp(14px, 1.5vw, 17px);
  max-width: 520px;
}

.process-timeline {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 18px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%);
}

.process-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.process-step:last-child { margin-bottom: 0; }

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 36px;
  padding-top: 24px;
  box-sizing: border-box;
}

.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--steel-400);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-calm);
  box-shadow: 0 0 0 0 rgba(139, 156, 198, 0);
}
.process-step:hover .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 156, 198, 0.15);
}

.step-number {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--steel-400);
  letter-spacing: 0.05em;
}

.process-step:hover .step-number {
  color: var(--steel-300);
}

.step-content {
  flex: 1;
  padding: 24px 28px;
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  transition: all var(--transition-calm);
  overflow: hidden;
}

.step-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
}

.process-step:hover .step-content {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--steel-100);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel-400);
}


/* ── Conviction Section ───────────────────────────────────────── */
.philosophy.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}

.philosophy .container {
  width: 100%;
}

/* Anchor Statement */
.conviction-anchor {
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.conviction-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--steel-100);
  margin-top: 20px;
  margin-bottom: 20px;
}

.conviction-supporting {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--steel-400);
  max-width: 640px;
  margin: 0 auto;
}

/* Four-word glass boxes in Philosophy */
.philosophy .glass-words-row {
  margin-top: clamp(32px, 5vw, 56px);
  margin-bottom: 0;
}

/* Conviction Body */
.conviction-body {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.conviction-copy {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--steel-300);
  max-width: 680px;
  margin: 0 auto;
  font-style: italic;
}

/* Architectural Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 920px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.025);
}

.principle-item {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  border-right: 1px solid rgba(255, 255, 255, 0.025);
}

.principle-item:nth-child(3n) {
  border-right: none;
}

.principle-term {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 400;
  color: var(--steel-200);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.principle-def {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 300;
  color: var(--steel-500);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* Transition Statement */
.conviction-transition {
  text-align: center;
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.transition-line {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--steel-400);
}

/* ── Precision Gauges — Transformation ────────────────────────── */
.gauge-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  max-width: 1000px;
  margin: 0 auto;
}

.gauge-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.gauge-ring-wrap {
  position: relative;
  width: clamp(72px, 9vw, 110px);
  height: clamp(72px, 9vw, 110px);
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-180deg); /* stroke draws left → right */
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 1;
}

.gauge-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 263.9;
  stroke-dashoffset: 263.9;
  opacity: 0.45;
  transition: stroke-dashoffset 2.6s var(--ease-out), opacity 1.8s var(--ease-out);
}

.gauge-cell.gauge-active .gauge-fill {
  stroke-dashoffset: 0;
  opacity: 0.6;
}

.gauge-to {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--steel-300);
  transition: color 1.5s var(--ease-out);
}

.gauge-cell.gauge-active .gauge-to {
  color: var(--steel-200);
}

.gauge-from {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-400);
  opacity: 0.6;
  position: relative;
}

.gauge-from::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px;
  top: 50%;
  height: 1px;
  background: var(--steel-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out) 1.6s;
}

.gauge-cell.gauge-active .gauge-from::after {
  transform: scaleX(1);
}


/* ── Contact Section ──────────────────────────────────────────── */
.contact-inner {
  position: relative;
  padding: clamp(40px, 5vw, 64px);
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(139, 156, 198, 0.06), transparent 70%);
  pointer-events: none;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  color: var(--steel-100);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 20px;
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 16px;
  color: var(--steel-400);
  margin-bottom: 48px;
  line-height: 1.8;
}

.contact-form { max-width: 560px; margin: 0 auto; text-align: left; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group { position: relative; margin-bottom: 20px; }
.form-row .form-group { margin-bottom: 0; }

.form-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--steel-100);
  font-size: 14px; font-weight: 300;
  letter-spacing: 0.02em;
  transition: all var(--transition-calm);
  resize: none;
}
.form-input::placeholder { color: var(--steel-500); }
.form-input:focus {
  border-color: rgba(139, 156, 198, 0.15);
  background: rgba(255, 255, 255, 0.025);
}

.input-edge {
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 156, 198, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-calm);
}
.form-input:focus ~ .input-edge { opacity: 1; }

.form-textarea { min-height: 120px; }
.btn-submit { width: 100%; margin-top: 8px; }

/* ── Form success toast (Message sent) ───────────────────────────── */
.form-toast {
  position: fixed;
  left: 50%;
  bottom: clamp(24px, 6vw, 48px);
  transform: translateX(-50%) translateY(24px) scale(0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  background: rgba(12, 12, 20, 0.94);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset,
              0 24px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
  overflow: hidden;
}

.form-toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
}

.form-toast--visible {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}

.form-toast--out {
  transform: translateX(-50%) translateY(-16px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

.form-toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent-bright);
}

.form-toast-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--steel-100);
}


/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  border-top: 1px solid var(--glass-border);
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }

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

.footer-logo {
  width: 28px; height: 28px;
  object-fit: contain;
  border-radius: 6px;
  opacity: 0.8;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--steel-300);
}

.footer-line { width: 48px; height: 1px; background: var(--glass-border); }

.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.footer-copy { font-size: 12px; color: var(--steel-500); letter-spacing: 0.04em; }
.footer-tagline { font-size: 11px; color: var(--steel-500); letter-spacing: 0.08em; font-style: italic; }




/* ── Reveal & Fade Animations ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal.faded-out {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s var(--ease-in-out), transform 0.6s var(--ease-in-out);
}


/* ── Cursor Glow Effect ───────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 156, 198, 0.025), transparent 60%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}


/* ── Responsive: same concept & design, optimized per viewport ────
   Breakpoints: 900px = tablet/small laptop, 600px = phone, 400px = small phone
   Viewport detection: script.js sets data-viewport="mobile"|"desktop" on <html> */

@media (max-width: 900px) {
  /* Prevent zoom-out and horizontal drift: lock viewport and overflow */
  html {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
  }
  body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
    overscroll-behavior-x: none;
  }

  /* Static background on mobile: no fixed attachment (stops shaking/jitter) */
  .page-bg {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    -webkit-background-size: cover;
  }

  /* Orbs: no drift animation on mobile so background area stays static */
  .hero .orb {
    animation: none;
    opacity: 0.4;
  }

  /* Frame: slightly less inset so more content visible */
  body::before,
  .edge-mask {
    inset: 8px;
    border-radius: 16px;
  }
  .nav {
    top: 8px; left: 8px; right: 8px;
    padding: 0 16px;
  }

  /* Section & container spacing */
  .section {
    padding: clamp(48px, 10vw, 72px) 0;
  }
  .section-header {
    margin-bottom: clamp(40px, 6vw, 56px);
  }
  .container {
    padding: 0 clamp(20px, 5vw, 32px);
    max-width: 100%;
    width: 100%;
  }

  /* Keep all sections and content centered, no horizontal escape */
  .section,
  .hero,
  .services,
  .capability-stack,
  .process,
  .philosophy,
  .contact {
    max-width: 100%;
    width: 100%;
  }
  .hero-content,
  .services-grid,
  .capability-grid,
  .glass-words-row,
  .process-timeline,
  .contact-inner {
    max-width: 100%;
  }

  /* Hero: stacked, centered, same hierarchy */
  .hero {
    padding: 0 16px;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 0 clamp(24px, 5vw, 48px);
    gap: 0;
  }
  .hero-left {
    padding-right: 0;
    padding-bottom: clamp(24px, 4vw, 36px);
  }
  .hero-divider-vertical { display: none; }
  .hero-right {
    padding-left: 0;
    align-items: center;
  }
  .hero-title,
  .hero-subtitle {
    text-align: center;
  }
  .hero-title {
    font-size: clamp(28px, 6vw, 44px);
  }
  .hero-subtitle {
    white-space: normal;
    margin-bottom: 28px;
  }
  .hero-left .logo-emblem,
  .hero-left .logo-badge {
    width: clamp(160px, 40vw, 220px);
    height: clamp(160px, 40vw, 220px);
  }
  .scroll-indicator {
    bottom: 24px;
  }

  /* Nav: hide links, show hamburger */
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .nav-inner {
    padding: 0 20px;
  }

  /* Mobile menu: full-screen, touch-friendly */
  .mobile-menu {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .mobile-link {
    display: block;
    min-height: 48px;
    padding: 12px 24px;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
  }

  /* Grids: single or two columns */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .glass-words-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 100%;
  }
  .glass-word-box {
    min-height: clamp(48px, 14vw, 62px);
    padding: 14px 12px;
  }
  .glass-word-text {
    font-size: clamp(14px, 3.8vw, 18px);
  }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle-item:nth-child(3n) { border-right: 1px solid rgba(255, 255, 255, 0.025); }
  .principle-item:nth-child(2n) { border-right: none; }
  .gauge-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .form-row { grid-template-columns: 1fr; }

  /* Process: compact timeline */
  .process.section {
    padding: clamp(40px, 8vw, 64px) 0;
  }
  .process-timeline {
    max-width: 100%;
  }
  .process-step {
    gap: 20px;
    margin-bottom: 20px;
  }
  .step-content {
    padding: 20px 22px;
  }
  .step-title {
    font-size: 18px;
  }
  .step-desc {
    font-size: 13px;
  }

  /* Philosophy */
  .philosophy.section {
    padding: clamp(40px, 8vw, 64px) 0;
  }
  .conviction-title {
    font-size: clamp(26px, 6vw, 40px);
  }
  .philosophy .glass-words-row {
    margin-top: clamp(28px, 5vw, 44px);
  }
}

@media (max-width: 600px) {
  /* Tighter frame on phone */
  body::before,
  .edge-mask {
    inset: 6px;
    border-radius: 14px;
  }
  .nav {
    top: 6px; left: 6px; right: 6px;
    padding: 0 12px;
  }
  .nav-inner {
    padding: 0 16px;
    height: 52px;
  }

  /* Sections: comfortable phone padding */
  .section {
    padding: clamp(40px, 8vw, 56px) 0;
  }
  .section-header {
    margin-bottom: clamp(32px, 5vw, 44px);
  }
  .section-title {
    font-size: clamp(24px, 5.5vw, 32px);
  }
  .section-tag {
    font-size: 10px;
    padding: 5px 12px;
    letter-spacing: 0.2em;
  }
  .container {
    padding: 0 20px;
  }

  /* Hero: smaller emblem, wrapped subtitle */
  .hero {
    padding: 0 12px;
  }
  .hero-left .logo-emblem,
  .hero-left .logo-badge {
    width: 160px;
    height: 160px;
  }
  .hero-title {
    font-size: clamp(24px, 6.5vw, 32px);
  }
  .hero-subtitle {
    font-size: clamp(13px, 3.2vw, 16px);
    margin-bottom: 24px;
  }
  .hero-badge,
  .btn-primary {
    min-height: 44px;
    padding: 12px 28px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Single-column grids */
  .capability-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .glass-words-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .glass-word-box {
    min-height: 56px;
    padding: 14px 16px;
  }
  .glass-word-text {
    font-size: clamp(15px, 4vw, 18px);
  }
  .principles { grid-template-columns: 1fr; }
  .principle-item { border-right: none !important; }
  .gauge-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Process: stacked steps */
  .process-step {
    gap: 16px;
    margin-bottom: 18px;
  }
  .step-content {
    padding: 18px 20px;
  }
  .step-title {
    font-size: 17px;
  }
  .timeline-line {
    left: 14px;
  }
  .step-indicator {
    width: 28px;
  }

  /* Contact: touch-friendly inputs */
  .contact-inner {
    padding: clamp(28px, 6vw, 40px) 20px;
  }
  .contact-title {
    font-size: clamp(24px, 5vw, 32px);
  }
  .form-input {
    min-height: 48px;
    padding: 14px 18px;
    -webkit-tap-highlight-color: transparent;
  }
  .form-textarea {
    min-height: 120px;
    padding: 14px 18px;
  }
  .btn-submit {
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Footer */
  .footer {
    padding: 36px 20px;
  }
  .footer-inner {
    gap: 20px;
  }
}

@media (max-width: 400px) {
  body::before,
  .edge-mask {
    inset: 5px;
    border-radius: 12px;
  }
  .nav {
    top: 5px; left: 5px; right: 5px;
  }
  .hero-left .logo-emblem,
  .hero-left .logo-badge {
    width: 140px;
    height: 140px;
  }
  .hero-title {
    font-size: 22px;
  }
  .section {
    padding: 36px 0;
  }
  .container {
    padding: 0 16px;
  }
  .glass-word-box {
    min-height: 52px;
    padding: 12px 14px;
  }
  .glass-word-text {
    font-size: 14px;
  }
}
