/* ============================================
   KinetixSolutions - Landing Page Styles
   Color Palette: Deep Navy & Gold — Classic Professional
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #FAFBFD;
  --bg-secondary: #F0F4F8;
  --bg-accent: #E2E8F0;
  --bg-dark: #0B1628;
  --bg-dark-lighter: #111F36;
  --bg-dark-card: #162240;

  --text-primary: #0B1628;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --text-inverse: #F0F4F8;

  --color-sage: #1D4ED8;
  --color-sage-light: #3B82F6;
  --color-sage-lighter: #93C5FD;
  --color-sage-bg: #EFF6FF;
  --color-sage-dark: #1E3A8A;

  --color-terracotta: #C8A24E;
  --color-terracotta-light: #D4B86A;
  --color-terracotta-bg: #FEF9EC;

  --color-blue-muted: #6366F1;
  --color-blue-muted-bg: #EEF2FF;

  --color-gold: #C8A24E;
  --color-gold-light: #E2C572;
  --color-gold-dark: #A67C2E;

  --border-color: #CBD5E1;
  --border-color-light: #E2E8F0;

  --shadow-sm: 0 1px 3px rgba(11, 22, 40, 0.05), 0 1px 2px rgba(11, 22, 40, 0.08);
  --shadow-md: 0 4px 20px rgba(11, 22, 40, 0.07), 0 2px 6px rgba(11, 22, 40, 0.05);
  --shadow-lg: 0 14px 44px rgba(11, 22, 40, 0.09), 0 6px 16px rgba(11, 22, 40, 0.05);
  --shadow-xl: 0 28px 72px rgba(11, 22, 40, 0.12), 0 10px 24px rgba(11, 22, 40, 0.07);
  --shadow-glow: 0 0 40px rgba(29, 78, 216, 0.15);
  --shadow-gold: 0 4px 24px rgba(200, 162, 78, 0.2);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold);
}

::selection {
  background-color: var(--color-sage);
  color: white;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
  transition: background var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-light);
}

/* For Firefox compatibility */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--bg-dark);
}

/* --- Container --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 48px; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  padding: 18px 0;
  border-radius: 0;
  background: rgba(11, 22, 40, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid var(--text-primary);
  transition: all var(--transition-smooth);
}

.nav.scrolled {
  top: 0;
  padding: 14px 0;
  background: rgba(11, 22, 40, 0.98);
  box-shadow: 0 4px 20px rgba(11, 22, 40, 0.15);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .nav-inner { padding: 0 48px; }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: white;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  color: var(--color-gold);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-sage), var(--color-gold));
  transition: width var(--transition-smooth);
  border-radius: 1px;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--color-gold);
  padding: 10px 24px;
  border-radius: 0;
  border: 2px solid var(--text-primary);
  transition: all var(--transition-base);
}

.nav-cta:hover {
  background: var(--text-primary);
  color: white;
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px var(--color-gold);
}

.nav-cta-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.nav-cta:hover .nav-cta-icon {
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .nav-cta { display: flex; }
}

/* Mobile Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu-link {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
}

.mobile-menu.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.25s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 0;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  border: 2px solid var(--text-primary);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(2px) translateY(-2px);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--text-primary);
}

.btn-primary::before {
  display: none !important;
}

.btn-primary:hover {
  background-color: var(--text-primary);
  color: white;
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0px var(--color-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-ghost:hover {
  background-color: var(--text-primary);
  color: white;
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0px var(--color-gold);
}

.btn-lg {
  padding: 18px 38px;
  font-size: 16px;
}

.btn-lg svg {
  width: 20px;
  height: 20px;
}

/* --- Reveal Animations --- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  transition-delay: var(--delay, 0s);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Common --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-sage));
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 48px;
}

.section-header {
  margin-bottom: 64px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px 24px 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0F1D32 50%, var(--bg-dark) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: var(--color-sage);
  top: -200px;
  right: -150px;
  animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
  width: 500px;
  height: 500px;
  background: var(--color-gold);
  bottom: -150px;
  left: -150px;
  animation: float 25s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 350px;
  height: 350px;
  background: var(--color-blue-muted);
  top: 30%;
  left: 50%;
  opacity: 0.15;
  animation: float 18s ease-in-out infinite 3s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.8;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black, transparent);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 32px;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.08;
  color: #FFFFFF;
  margin-bottom: 28px;
}

.hero-title em {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero .btn-primary {
  background: var(--color-gold);
  color: var(--text-primary);
  border-color: var(--color-gold);
}

.hero .btn-primary::before {
  display: none !important;
}

.hero .btn-primary:hover {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0px white;
}

.hero .btn-ghost {
  color: white;
  border-color: white;
  background: transparent;
}

.hero .btn-ghost:hover {
  background: white;
  color: var(--text-primary);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 4px 4px 0px var(--color-gold);
}



/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 0.6s 1.5s forwards;
}

.hero-scroll-indicator span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.hero-scroll-mouse {
  width: 24px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll-wheel {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================
   MARQUEE SECTION
   ============================================ */
.marquee-section {
  padding: 16px 0;
  background: transparent;
  border-top: 1px solid rgba(11, 22, 40, 0.08);
  border-bottom: 1px solid rgba(11, 22, 40, 0.08);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 40px, black 80px, black calc(100% - 80px), transparent calc(100% - 40px));
  mask-image: linear-gradient(90deg, transparent 40px, black 80px, black calc(100% - 80px), transparent calc(100% - 40px));
}

.marquee-track {
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 0;
  background: var(--color-gold);
  flex-shrink: 0;
  opacity: 0.8;
}

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

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: 140px 0;
  background: var(--bg-primary);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  background: white;
  border: 2px solid var(--text-primary);
  border-radius: 0;
  padding: 36px;
  transition: all var(--transition-smooth);
  cursor: pointer;
  overflow: hidden;
}

.service-card::before,
.service-card::after {
  display: none !important;
}

.service-card:hover {
  background-color: var(--text-primary);
  color: white;
  border-color: var(--color-gold);
  transform: translateY(-6px);
  box-shadow: 6px 6px 0px rgba(11, 22, 40, 0.15);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--text-primary);
  border-radius: 0;
  color: var(--text-primary);
  margin-bottom: 22px;
  transition: all var(--transition-smooth);
}

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

.service-card:hover .service-card-icon {
  background: var(--color-gold);
  color: var(--text-primary);
  border-color: var(--color-gold);
  transform: scale(1.08);
}

.service-card-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: color var(--transition-smooth);
}

.service-card:hover .service-card-title {
  color: white;
}

.service-card-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 22px;
  transition: color var(--transition-smooth);
}

.service-card:hover .service-card-desc {
  color: #94A3B8;
}

.service-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.service-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--text-primary);
  padding: 5px 12px;
  border-radius: 0;
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.service-card:hover .service-tag {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: transparent;
}

.service-card-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all var(--transition-smooth);
}

.service-card-arrow svg {
  width: 20px;
  height: 20px;
}

.service-card:hover .service-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--color-gold);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: 140px 0;
  background: var(--bg-secondary);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 88px;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  color: var(--text-primary);
}

.about-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-text:last-child {
  margin-bottom: 0;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .about-values { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .about-values { grid-template-columns: repeat(4, 1fr); }
}

.about-value {
  background: white;
  border: 2px solid var(--text-primary);
  border-radius: 0;
  padding: 32px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.about-value::before {
  display: none !important;
}

.about-value:hover {
  background-color: var(--text-primary);
  color: white;
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px rgba(11, 22, 40, 0.15);
}

.about-value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--text-primary);
  border-radius: 0;
  color: var(--text-primary);
  margin-bottom: 18px;
  transition: all var(--transition-smooth);
}

.about-value-icon svg {
  width: 22px;
  height: 22px;
}

.about-value:hover .about-value-icon {
  background: var(--color-gold);
  color: var(--text-primary);
  border-color: var(--color-gold);
}

.about-value-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
  transition: color var(--transition-smooth);
}

.about-value:hover .about-value-title {
  color: white;
}

.about-value-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  transition: color var(--transition-smooth);
}

.about-value:hover .about-value-desc {
  color: #94A3B8;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
  padding: 140px 0;
  background: var(--bg-primary);
  position: relative;
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.process-line {
  display: none;
}

@media (min-width: 768px) {
  .process-line {
    display: block;
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
  }

  .process-line-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-sage), var(--color-gold));
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

.process-step {
  position: relative;
  z-index: 1;
}

.process-step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.process-step-dot {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: white;
  border: 2px solid var(--text-primary);
  position: relative;
  transition: all var(--transition-smooth);
}

.process-step-dot::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 0;
  background: var(--color-gold);
  transform: scale(0);
  transition: transform var(--transition-smooth);
}

.process-step.active .process-step-dot {
  border-color: var(--color-gold);
  box-shadow: none;
}

.process-step.active .process-step-dot::after {
  transform: scale(1);
}

.process-step-content {
  background: white;
  border: 2px solid var(--text-primary);
  border-radius: 0;
  padding: 30px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.process-step-content::before {
  display: none !important;
}

.process-step:hover .process-step-content {
  background-color: var(--text-primary);
  color: white;
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px rgba(11, 22, 40, 0.15);
}

.process-step-number {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}

.process-step-title {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
  transition: color var(--transition-smooth);
}

.process-step:hover .process-step-title {
  color: white;
}

.process-step-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  transition: color var(--transition-smooth);
}

.process-step:hover .process-step-desc {
  color: #94A3B8;
}

.process-step-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--color-sage-lighter);
  transition: color var(--transition-smooth);
}

.process-step-icon svg {
  width: 20px;
  height: 20px;
}

.process-step:hover .process-step-icon {
  color: var(--color-gold);
}

/* ============================================
   TECH SECTION
   ============================================ */
.tech-section {
  padding: 110px 0 90px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.tech-section .section-label {
  color: var(--color-gold);
}

.tech-section .section-label::before {
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.tech-section .section-title {
  color: #FFFFFF;
}

.tech-section .section-title em {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tech-marquee {
  margin-top: 52px;
  overflow: hidden;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 40px, black 80px, black calc(100% - 80px), transparent calc(100% - 40px));
  mask-image: linear-gradient(90deg, transparent 40px, black 80px, black calc(100% - 80px), transparent calc(100% - 40px));
}

.tech-marquee-track {
  overflow: hidden;
}

.tech-marquee-content {
  display: flex;
  gap: 24px;
  animation: marquee 35s linear infinite;
  width: max-content;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 14px 26px;
  border-radius: 0;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.tech-item:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(200, 162, 78, 0.1);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px rgba(200, 162, 78, 0.2);
}

.tech-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
}

/* ============================================
   WORK SECTION
   ============================================ */
.work {
  padding: 140px 0;
  background: var(--bg-primary);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

.work-card {
  border-radius: 0;
  overflow: hidden;
  background: white;
  border: 2px solid var(--text-primary);
  transition: all var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 6px 6px 0px rgba(11, 22, 40, 0.15);
  border-color: var(--color-gold);
}

.work-card-visual {
  position: relative;
  height: 290px;
  background: linear-gradient(135deg, var(--card-accent, var(--color-sage)), color-mix(in srgb, var(--card-accent, var(--color-sage)), black 15%));
  overflow: hidden;
}

.work-card-image-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.work-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-card-image {
  transform: scale(1.05);
}

.work-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(11, 22, 40, 0.4));
  opacity: 1;
  transition: opacity var(--transition-smooth);
}

.work-card:hover .work-card-image-overlay {
  opacity: 0.7;
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 40, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-smooth);
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card-view {
  background: var(--color-gold);
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0px var(--text-primary);
  transform: scale(0.9) translateY(10px);
  transition: all var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.work-card:hover .work-card-view {
  transform: scale(1) translateY(0);
}

.work-card-overlay svg {
  display: none !important;
}

.work-card-info {
  padding: 30px;
  background-color: white;
  transition: all var(--transition-smooth);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.work-card:hover .work-card-info {
  background-color: var(--text-primary);
  color: white;
}

.work-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.work-card-tags span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--text-primary);
  padding: 4px 12px;
  border-radius: 0;
  transition: all var(--transition-smooth);
}

.work-card:hover .work-card-tags span {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: transparent;
}

.work-card-title {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text-primary);
  transition: color var(--transition-smooth);
}

.work-card:hover .work-card-title {
  color: white;
}

.work-card-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 22px;
  transition: color var(--transition-smooth);
}

.work-card:hover .work-card-desc {
  color: #94A3B8;
}

.work-card-metrics {
  margin-top: auto;
  display: flex;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color-light);
  transition: border-top-color var(--transition-smooth);
}

.work-card:hover .work-card-metrics {
  border-top-color: var(--color-gold);
}

.work-card-metric-value {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-primary);
  display: block;
  transition: color var(--transition-smooth);
}

.work-card:hover .work-card-metric-value {
  color: var(--color-gold);
}

.work-card-metric-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
  display: block;
  font-weight: 500;
  transition: color var(--transition-smooth);
}

.work-card:hover .work-card-metric-label {
  color: #94A3B8;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  background: var(--bg-primary);
}

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

.cta-block {
  position: absolute;
  border: 2px solid var(--text-primary);
  background: white;
  opacity: 0.12;
  transition: all var(--transition-smooth);
}

.cta-block-1 {
  width: 140px;
  height: 140px;
  top: 10%;
  left: 4%;
  transform: rotate(15deg);
  background: var(--color-gold);
}

.cta-block-2 {
  width: 200px;
  height: 90px;
  bottom: 12%;
  left: 6%;
  transform: rotate(-22deg);
}

.cta-block-3 {
  width: 160px;
  height: 160px;
  top: 12%;
  right: 6%;
  transform: rotate(28deg);
}

.cta-block-4 {
  width: 100px;
  height: 180px;
  bottom: 10%;
  right: 8%;
  transform: rotate(-14deg);
  background: var(--color-gold);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 1024px) {
  .cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    text-align: left;
    align-items: center;
    max-width: 1120px;
  }
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: inherit;
}

.cta-subtitle {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 52px;
  text-align: inherit;
}

.cta-form {
  text-align: left;
  background: white;
  border: 2px solid var(--text-primary);
  border-radius: 0;
  padding: 40px;
  box-shadow: 10px 10px 0px var(--color-gold);
  transition: all var(--transition-smooth);
}

.cta-form.reveal-up {
  transform: translateY(30px) rotate(-1.5deg);
}

.cta-form.reveal-up.revealed {
  transform: translateY(0) rotate(-1.5deg);
}

.cta-form:hover {
  transform: translateY(0) rotate(0deg);
  box-shadow: 8px 8px 0px var(--text-primary);
}

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

@media (min-width: 640px) {
  .cta-form-row { grid-template-columns: 1fr 1fr; }
}

.cta-form-group {
  margin-bottom: 20px;
}

.cta-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.cta-form-group input,
.cta-form-group textarea {
  width: 100%;
  background: white;
  border: 2px solid var(--text-primary);
  border-radius: 0;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

.cta-form-group input::placeholder,
.cta-form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.cta-form-group input:focus,
.cta-form-group textarea:focus {
  border-color: var(--color-gold);
  background: white;
  box-shadow: 4px 4px 0px var(--text-primary);
}

.cta-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Custom Form Validation Errors --- */
.form-error-msg {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: #E05A47; /* Terracotta-red validation color */
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0;
  transition: all var(--transition-smooth);
}

.cta-form-group.has-error .form-error-msg {
  max-height: 24px;
  opacity: 1;
  margin-top: 8px;
}

.cta-form-group.has-error input,
.cta-form-group.has-error textarea {
  border-color: #E05A47 !important;
}

.cta-form-group.has-error input:focus,
.cta-form-group.has-error textarea:focus {
  box-shadow: 4px 4px 0px #E05A47 !important;
  border-color: #E05A47 !important;
}

.cta-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .cta-form .btn {
    width: auto;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 88px 0 44px;
  position: relative;
  z-index: 950; /* Sits on top of the vertical side borders */
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.3;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 72px;
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1fr 2fr; }
}

.footer-logo {
  color: var(--text-inverse);
}

.footer-logo .nav-logo-icon {
  color: var(--color-gold);
}

.footer-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 18px;
  line-height: 1.7;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-links-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 22px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-gold);
}

/* ============================================
   WORK SECTION ENHANCEMENTS
   ============================================ */
.work-card-featured {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .work-card-featured {
    grid-column: span 2;
  }
  
  .work-card-featured .work-card-visual {
    height: 290px;
  }
}

.work-card-featured .work-card-image {
  object-position: center top;
}

/* Work Card Link Styles */
.work-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.work-card-link:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

.work-card-link:focus-visible .work-card-visual {
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.2);
}

.work-card-link:hover {
  cursor: pointer;
}

.work-card-link:hover .work-card-visual {
  transform: none;
  box-shadow: none;
}

/* Security: Show external link indicator */
.work-card-link[target="_blank"] .work-card-view::after {
  content: " ↗";
  font-size: 0.9em;
  opacity: 0.8;
  margin-left: 2px;
}

/* Ensure proper focus states */
.work-card-link:focus {
  outline: none;
}

/* ============================================
   UTILITY & RESPONSIVE
   ============================================ */
@media (max-width: 640px) {

  .nav {
    width: calc(100% - 16px);
    top: 16px;
  }
  .nav.scrolled {
    top: 8px;
  }
  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Enhanced Responsive Work Grid */
@media (max-width: 767px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .work-card-featured {
    grid-column: span 1;
  }
  
  .work-card-visual {
    height: 220px;
  }
  
  .work-card-info {
    padding: 24px;
  }
  
  .work-card-title {
    font-size: 20px;
  }
  
  .work-card-desc {
    font-size: 13px;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .work-card-featured {
    grid-column: span 2;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .work-card-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(11, 22, 40, 0.8) 0%, transparent 60%);
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    backdrop-filter: none;
  }
  
  .work-card-view {
    display: none;
  }
  
  .work-card-overlay svg {
    display: none;
  }
  
  .work-card-image-overlay {
    opacity: 0.3;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .work-card-image,
  .work-card-overlay,
  .work-card {
    transition: none;
  }
  
  .work-card:hover .work-card-image {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .work-card {
    border: 2px solid var(--text-primary);
  }
  
  .work-card-tags span {
    border: 1px solid var(--color-sage);
  }
}

/* Print styles */
@media print {
  .work-card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .work-card-overlay,
  .work-card-image-overlay {
    display: none;
  }
}



/* ============================================
   SPECIFICITY HOVER OVERRIDE FOR CTA FORM
   ============================================ */
.cta-form.reveal-up.revealed:hover {
  transform: translateY(0) rotate(0deg);
  box-shadow: 8px 8px 0px var(--text-primary);
}

/* ============================================
   VERTICAL BORDER MARQUEES (LEFT & RIGHT)
   ============================================ */
.border-marquee-left,
.border-marquee-right {
  position: fixed;
  top: 76px; /* Starts exactly below the navbar */
  bottom: 0;
  width: 40px;
  z-index: 900;
  pointer-events: none;
  background: transparent;
  overflow: hidden;
}

.border-marquee-left {
  left: 0;
  border-right: 1px solid rgba(11, 22, 40, 0.15);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(180deg, transparent, black 15%, black 85%, transparent);
}

.border-marquee-right {
  right: 0;
  border-left: 1px solid rgba(11, 22, 40, 0.15);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(180deg, transparent, black 15%, black 85%, transparent);
}

.marquee-vertical-track {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.border-marquee-left .marquee-vertical-track {
  transform: translate(-50%, -50%) rotate(-90deg);
}

.border-marquee-right .marquee-vertical-track {
  transform: translate(-50%, -50%) rotate(90deg);
}

.marquee-vertical-content {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: marquee 28s linear infinite;
  width: max-content;
  white-space: nowrap;
}

.marquee-vertical-content.reverse {
  animation-direction: reverse;
}

.border-marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.border-marquee-item .text-gold {
  color: var(--color-gold);
}

.border-marquee-item .text-sage {
  color: var(--color-sage-light);
}

/* Hide on mobile and tablet to preserve viewport space */
@media (max-width: 1023px) {
  .border-marquee-left,
  .border-marquee-right {
    display: none !important;
  }
}

/* Multicolor helpers for horizontal marquee items */
.marquee-item .text-gold {
  color: var(--color-gold);
}
.marquee-item .text-sage {
  color: var(--color-sage-light);
}
.marquee-item .text-terracotta {
  color: #E05A47;
}
.marquee-item .text-navy {
  color: var(--text-primary);
}

/* ============================================
   LEGAL PAGES (TERMS & PRIVACY)
   ============================================ */
.legal-page {
  padding: 160px 0 100px;
  background: var(--bg-primary);
  min-height: 80vh;
}

.legal-card {
  background: white;
  border: 2px solid var(--text-primary);
  padding: 48px;
  border-radius: 0;
  box-shadow: 8px 8px 0px rgba(11, 22, 40, 0.15);
}

@media (max-width: 640px) {
  .legal-card {
    padding: 24px;
  }
}

.legal-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-date {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-divider {
  border: none;
  border-top: 2px solid var(--text-primary);
  margin: 32px 0;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 14px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.legal-content a {
  color: var(--color-sage);
  text-decoration: underline;
  font-weight: 600;
}

.legal-content a:hover {
  color: var(--color-gold);
}

.legal-actions {
  margin-top: 48px;
  display: flex;
}

.legal-actions .btn svg {
  transform: rotate(180deg);
}

.legal-actions .btn:hover svg {
  transform: rotate(180deg) translateX(3px);
}



