/* ==========================================================================
   Alan Joshy — Persona Theme (Accurate 1:1 Match to Patrick Bradley)
   Tax Consultant &middot; Software Engineer &middot; IoT Hardware Architect
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Reset & Global Variables
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Exact Persona Color System */
  --bg-main: #161616;
  --bg-alt: #1c1c1c;
  --bg-card: #222222;
  --bg-card-hover: #292929;
  --bg-input: #121212;
  
  /* Brand Electric Tangerine Orange */
  --accent-orange: #f2542d;
  --accent-orange-hover: #db441e;
  --accent-orange-subtle: rgba(242, 84, 45, 0.12);

  /* Typography Colors */
  --text-white: #ffffff;
  --text-gray: #a3a3a3;
  --text-muted: #666666;

  /* Hairline Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.16);

  /* Typography Stacks */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout Dimensions */
  --container-max: 1200px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  color: var(--text-white);
  font-family: var(--font-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   02. Common Containers & Persona Section Headers
   -------------------------------------------------------------------------- */
.content-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.section-wrapper {
  padding: 7rem 0;
  position: relative;
}

.bg-dark-alt {
  background-color: var(--bg-alt);
}

/* Section Header with Outline Watermark (Persona Signature) */
.persona-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.header-left {
  position: relative;
}

.section-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
}

.title-with-watermark {
  position: relative;
  display: inline-block;
}

.section-heading {
  font-size: clamp(2.2rem, 3.5vw, 2.85rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
  line-height: 1.15;
}

.watermark-text {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(3.5rem, 6.5vw, 5.2rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  letter-spacing: 0.06em;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
  border: 1px solid transparent;
}

.btn-orange {
  background-color: var(--accent-orange);
  color: #ffffff;
}

.btn-orange:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(242, 84, 45, 0.35);
}

.btn-dark-outline {
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-mid);
  padding: 0.65rem 1.4rem;
  font-size: 0.75rem;
}

.btn-dark-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--text-white);
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   03. Site Header (Navbar)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.35rem 0;
  transition: background-color var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background-color: rgba(22, 22, 22, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--accent-orange);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: var(--accent-orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.search-icon-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  cursor: pointer;
  transition: color var(--transition);
}

.search-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.search-icon-wrap:hover {
  color: var(--text-white);
}

.btn-header {
  padding: 0.55rem 1.25rem;
  font-size: 0.78rem;
  border-radius: var(--radius-xs);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 26px;
  height: 18px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-white);
  transition: transform var(--transition);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem;
  z-index: 99;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-link {
  color: var(--text-white);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   04. Hero Section (Persona 1:1 Match — Full-Bleed Background Portrait)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-color: #161616;
  background-image: url('hero_bg.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  padding: 7rem 0 4rem;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(22, 22, 22, 0.98) 0%, rgba(22, 22, 22, 0.88) 45%, rgba(22, 22, 22, 0.3) 75%, transparent 100%),
              linear-gradient(to bottom, rgba(22, 22, 22, 0.4) 0%, transparent 20%, transparent 80%, rgba(22, 22, 22, 1) 100%);
}

.hero-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 560px;
}

.hero-intro-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-name {
  font-size: clamp(3.8rem, 7vw, 6.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-white);
  margin-bottom: 1.35rem;
}

.hero-role-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.social-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(34, 34, 34, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  text-decoration: none;
  transition: all var(--transition);
}

.social-circle svg {
  width: 16px;
  height: 16px;
}

.social-circle:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   05. Section 01: Services (Exact Persona 3-Cards with Solid Orange Card)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.service-card {
  padding: 3rem 2.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
}

/* Card 1: Solid Orange (Persona Highlight) */
.card-orange {
  background-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(242, 84, 45, 0.28);
}

.card-orange .service-desc {
  color: rgba(255, 255, 255, 0.9);
}

.card-orange .service-link {
  color: #ffffff;
  font-weight: 700;
}

/* Dark Cards */
.card-dark {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.card-dark:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-mid);
}

.service-icon-wrap {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  margin-bottom: 1.75rem;
}

.service-icon-wrap svg {
  width: 34px;
  height: 34px;
}

.icon-orange {
  color: var(--accent-orange);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
  transition: transform var(--transition);
  display: inline-block;
}

.service-card:hover .service-link {
  transform: translateX(4px);
}

/* Stats Counter Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  font-size: 1.25rem;
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-weight: 700;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   06. Section 02: Selected Works (Portfolio)
   -------------------------------------------------------------------------- */
.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-gray);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-mid);
}

.project-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.project-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-orange);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.project-specs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.spec-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-white);
}

.code-box {
  background: #0d0d0d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.code-top {
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-filename {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.code-body {
  padding: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: #d1d5db;
}

.k { color: #f2542d; font-weight: 600; }
.f { color: #38bdf8; }

/* --------------------------------------------------------------------------
   07. Section 03: Interactive Lab
   -------------------------------------------------------------------------- */
.lab-tab-controls {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-gray);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
}

.lab-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
}

.lab-panel.active {
  display: block;
}

.calculator-layout,
.iot-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
}

.calc-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
  color: var(--text-white);
}

.field-wrap {
  margin-bottom: 1.15rem;
}

.field-wrap label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-gray);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.input-text {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.7rem 0.9rem;
  color: var(--text-white);
  font-size: 0.88rem;
  font-family: var(--font-main);
  transition: border-color var(--transition);
}

.input-text:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.regime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.regime-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 1.25rem;
  transition: border-color var(--transition);
}

.regime-box.recommended {
  border-color: var(--accent-orange);
  background: var(--accent-orange-subtle);
}

.regime-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.regime-amount {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.regime-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.advice-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  color: var(--text-gray);
}

.advice-card strong {
  color: var(--text-white);
}

/* IoT Simulator */
.node-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg-input);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.meta-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-orange);
}

.meta-status {
  font-size: 0.72rem;
  color: #27c93f;
}

.relay-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.relay-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-xs);
}

.relay-title {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
}

.relay-state-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.relay-state-label.on {
  color: #27c93f;
}

.btn-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  padding: 0.35rem 0.85rem;
  font-size: 0.74rem;
}

.btn-toggle.on {
  background: #27c93f;
  color: #000000;
}

.terminal-screen {
  background: #0d0d0d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  height: 230px;
  overflow-y: auto;
  color: #9e9e9e;
  line-height: 1.6;
}

.term-row {
  margin-bottom: 0.35rem;
}

.term-ts {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   08. Section 04: Experience & About
   -------------------------------------------------------------------------- */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.timeline-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.timeline-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  font-size: 0.82rem;
  color: var(--text-gray);
  display: block;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.65;
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   09. Section 05: Big CTA Banner (Persona Signature)
   -------------------------------------------------------------------------- */
.cta-section-wrap {
  padding: 4rem 0 7rem;
}

.persona-cta-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cta-num {
  margin-bottom: 0.5rem;
}

.cta-heading {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.cta-subheading {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-email-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-radius: var(--radius-xs);
  max-width: 380px;
}

.cta-email-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-white);
  font-weight: 600;
}

.copy-toast {
  font-size: 0.75rem;
  color: #27c93f;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  display: none;
}

.copy-toast.show {
  display: block;
}

.persona-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row select.input-text option {
  background: #141414;
  color: #ffffff;
}

.form-feedback {
  font-size: 0.8rem;
  color: #27c93f;
  margin-top: 0.5rem;
  display: none;
}

.form-feedback.success {
  display: block;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #0d0d0d;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
}

.footer-flex {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-col-nav a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-tz {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.scroll-top-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--accent-orange);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: transform var(--transition);
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   11. Responsive Overrides
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-section {
    background-position: 70% center;
  }

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

  .stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

  .project-featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .calculator-layout,
  .iot-layout,
  .persona-cta-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-flex {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav,
  .search-icon-wrap {
    display: none;
  }

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

  .hero-section {
    padding-top: 7rem;
    background-position: 80% center;
  }

  .hero-name {
    font-size: 3.4rem;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

  .persona-cta-card {
    padding: 2rem;
  }
}