/* T3ch5 Theme - Clean, Professional, Polished */

:root {
  --color-navy: #1a2332;
  --color-navy-light: #243044;
  --color-charcoal: #2d3748;
  --color-slate: #4a5568;
  --color-teal: #4a9b9b;
  --color-teal-light: #5db3b3;
  --color-teal-glow: rgba(74, 155, 155, 0.15);
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f7fafc;
  --color-gray-200: #edf2f7;
  --color-gray-300: #e2e8f0;
  --color-gray-600: #718096;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 8px 32px rgba(74, 155, 155, 0.2);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-charcoal);
  line-height: 1.7;
  background: var(--color-white);
  overflow-x: hidden;
}

/* Typography - Improved Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Accent underline for headings */
.section-header h2 {
  display: inline-block;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-teal-light));
  border-radius: 2px;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-teal-light);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: var(--color-navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo span {
  color: var(--color-teal);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  color: var(--color-gray-200);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: width var(--transition-smooth);
}

nav a:hover {
  color: var(--color-teal-light);
}

nav a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section - Enhanced */
.hero {
  background: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a9b9b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 50%, var(--color-charcoal) 100%);
  padding: 8rem 0;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, var(--color-teal-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--color-white);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  line-height: 1.1;
}

.hero .tagline {
  font-size: 1.35rem;
  color: var(--color-gray-300);
  max-width: 700px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Buttons - Enhanced */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-light));
  color: var(--color-white);
  box-shadow: var(--shadow-md), 0 4px 20px rgba(74, 155, 155, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 8px 30px rgba(74, 155, 155, 0.4);
  color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Sections - Gradient Backgrounds */
section {
  padding: 6rem 0;
  position: relative;
}

section.alt-bg {
  background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
}

section.gradient-bg {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
}

.section-header p {
  color: var(--color-slate);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* Cards Grid - Enhanced */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  border: 1px solid var(--color-gray-200);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-teal-light));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  color: var(--color-navy);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.card p {
  color: var(--color-slate);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Icon styling */
.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-teal-glow), rgba(74, 155, 155, 0.08));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-teal);
  font-size: 1.75rem;
  border: 1px solid rgba(74, 155, 155, 0.2);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-teal);
  stroke-width: 1.5;
}

/* Problem cards - Enhanced */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.problem-card {
  padding: 2.5rem;
  border-left: 4px solid var(--color-teal);
  background: var(--color-white);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.problem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.problem-card h4 {
  color: var(--color-navy);
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.problem-card p {
  color: var(--color-slate);
  margin-bottom: 0;
}

/* Industry Cards - Enhanced */
.industry-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.industry-card {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  padding: 3rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.industry-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--color-teal-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.industry-card:hover::before {
  opacity: 1;
}

.industry-card h3 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  position: relative;
}

.industry-card ul {
  list-style: none;
  margin-bottom: 2rem;
  position: relative;
}

.industry-card li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--color-gray-200);
  font-size: 1.05rem;
}

.industry-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-teal-light);
  font-weight: 600;
}

.industry-card .btn {
  position: relative;
  margin-top: 1rem;
}

/* Page Content */
.page-header {
  background: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a9b9b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--color-navy) 0%, var(--color-charcoal) 100%);
  padding: 5rem 0;
  color: var(--color-white);
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 3rem;
}

.page-header p {
  color: var(--color-gray-300);
  max-width: 700px;
  font-size: 1.25rem;
}

.page-content {
  padding: 5rem 0;
}

.page-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gray-200);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-teal);
}

.page-content ul, .page-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* Tables - Enhanced */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th, td {
  padding: 1.25rem 1.5rem;
  text-align: left;
}

th {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  font-weight: 600;
  color: var(--color-white);
}

td {
  border-bottom: 1px solid var(--color-gray-200);
  background: var(--color-white);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--color-gray-50);
}

/* CTA Section - Enhanced */
.cta-section {
  background: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a9b9b' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--color-navy) 0%, var(--color-charcoal) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 300%;
  background: radial-gradient(ellipse, var(--color-teal-glow) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  font-size: 2rem;
}

.cta-section p {
  color: var(--color-gray-300);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
}

/* Contact Form - Enhanced */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--color-gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
  background: var(--color-white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 4px var(--color-teal-glow);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info .contact-method {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--color-gray-50);
  border-radius: 12px;
  border-left: 4px solid var(--color-teal);
}

/* Footer - Enhanced */
footer {
  background: var(--color-navy);
  color: var(--color-gray-300);
  padding: 3rem 0;
  border-top: 1px solid var(--color-navy-light);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a {
  color: var(--color-gray-300);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--color-teal-light);
}

/* Trust signals - Enhanced */
.trust-signals {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 3rem 0;
}

.trust-signal {
  text-align: center;
  color: var(--color-slate);
  padding: 1.5rem 2rem;
  background: var(--color-gray-50);
  border-radius: 12px;
  transition: all var(--transition-smooth);
}

.trust-signal:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust-signal strong {
  display: block;
  font-size: 2.5rem;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* Quote/Highlight boxes - Enhanced */
.highlight-box {
  background: linear-gradient(135deg, var(--color-gray-50), var(--color-white));
  border-left: 4px solid var(--color-teal);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-charcoal);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
  font-size: 1.1rem;
}

/* Service list styling */
.service-list {
  margin: 2rem 0;
}

.service-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item h4 {
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  
  .hero { padding: 5rem 0; }
  .hero h1 { font-size: 2.5rem; }
  .hero .tagline { font-size: 1.15rem; }
  
  section { padding: 4rem 0; }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-navy);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav li {
    padding: 0.75rem 1rem;
  }
  
  nav a::after {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .trust-signals {
    gap: 1.5rem;
  }
  
  .trust-signal {
    flex: 1 1 calc(50% - 1.5rem);
    min-width: 140px;
  }
}

/* Link hover underline animation */
.page-content a:not(.btn) {
  position: relative;
  text-decoration: none;
}

.page-content a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: width var(--transition-smooth);
}

.page-content a:not(.btn):hover::after {
  width: 100%;
}

/* Selection color */
::selection {
  background: var(--color-teal);
  color: var(--color-white);
}

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

/* Hero with Background Image */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: blur(2px);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(45, 55, 72, 0.9) 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Industry Cards with Images */
.industry-cards-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2.5rem;
}

.industry-card-visual {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-smooth);
}

.industry-card-visual:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.industry-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.industry-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(26, 35, 50, 0.8), transparent);
}

.industry-content {
  padding: 2rem 2.5rem 2.5rem;
}

.industry-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--color-navy);
}

.industry-content ul {
  list-style: none;
  margin-bottom: 2rem;
}

.industry-content li {
  padding: 0.6rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--color-slate);
  font-size: 1rem;
}

.industry-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-teal);
  font-weight: 600;
}

/* About Preview Section */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-teal-glow), transparent);
  border-radius: 20px;
}

.about-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.about-content .origin-story {
  font-size: 1.2rem;
  color: var(--color-navy);
  background: var(--color-gray-50);
  padding: 1.5rem;
  border-left: 4px solid var(--color-teal);
  border-radius: 0 12px 12px 0;
  margin-bottom: 1.5rem;
}

.about-content .btn-secondary {
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
}

.about-content .btn-secondary:hover {
  background: var(--color-charcoal);
  transform: translateY(-2px);
}

/* Responsive adjustments for new sections */
@media (max-width: 968px) {
  .industry-cards-visual {
    grid-template-columns: 1fr;
  }
  
  .about-preview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    height: 280px;
  }
}

@media (max-width: 500px) {
  .industry-cards-visual {
    grid-template-columns: 1fr;
  }
  
  .industry-image {
    height: 180px;
  }
}

/* Section landing and detail system */
.sector-hero { min-height: 690px; display: flex; align-items: flex-end; padding: 8rem 0 5.5rem; position: relative; overflow: hidden; background: #081415; }
.sector-hero-art { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,20,21,.98), rgba(8,20,21,.74) 55%, rgba(8,20,21,.38)), url('/images/industries-connected.webp') center/cover no-repeat; opacity: .82; }
.sector-hero-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, black, transparent 75%); }
.sector-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(3rem, 8vw, 8rem); align-items: end; }
.sector-hero h1 { color: white; font-size: clamp(3.8rem, 7vw, 7rem); line-height: .92; letter-spacing: -.07em; margin: 0; max-width: 850px; }
.sector-hero-copy { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.68); }
.sector-hero-copy p { font-size: 1rem; }
.sector-hero-copy .text-link { margin-top: .75rem; }

.workflow-signals { background: var(--color-cream); }
.split-heading { display: grid; grid-template-columns: .75fr 1.1fr .8fr; gap: 3rem; align-items: end; margin-bottom: 5rem; }
.split-heading .eyebrow { align-self: start; justify-content: flex-start; }
.split-heading h2 { font-size: clamp(2.8rem, 5vw, 5rem); line-height: .98; letter-spacing: -.06em; margin: 0; }
.split-heading > p:last-child { color: var(--color-slate); font-size: .95rem; margin: 0; }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(8,20,21,.18); }
.signal { min-height: 270px; padding: 2rem; border-right: 1px solid rgba(8,20,21,.16); }
.signal:last-child { border-right: 0; }
.signal > span { display: block; color: #287d72; font-size: .6rem; letter-spacing: .16em; margin-bottom: 4rem; }
.signal h3 { font-size: 1.2rem; }
.signal p { color: var(--color-slate); font-size: .88rem; margin: 0; }

.industry-paths { background: #e8ece5; }
.industry-path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.industry-path-card { display: flex; flex-direction: column; min-height: 600px; background: rgba(255,255,255,.7); color: var(--color-navy); border: 1px solid rgba(8,20,21,.11); }
.industry-path-image { position: relative; height: 265px; background-size: cover; background-position: center; overflow: hidden; }
.industry-path-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(88,213,191,.08), transparent 60%); }
.industry-path-image > span { position: absolute; z-index: 1; top: 1.2rem; left: 1.2rem; color: white; font-size: .63rem; letter-spacing: .15em; }
.industry-path-copy { display: flex; flex: 1; flex-direction: column; padding: 2rem; }
.path-label { color: #287d72; text-transform: uppercase; font-size: .6rem; font-weight: 700; letter-spacing: .15em; margin-bottom: 1.4rem; }
.industry-path-copy h3 { font-size: 1.65rem; }
.industry-path-copy > p:not(.path-label) { color: var(--color-slate); font-size: .9rem; }
.path-link { margin-top: auto; padding-top: 1.4rem; border-top: 1px solid rgba(8,20,21,.12); display: flex; justify-content: space-between; color: var(--color-navy); text-transform: uppercase; font-size: .64rem; font-weight: 700; letter-spacing: .1em; }
.industry-path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--color-navy); }
.industry-path-card:hover .path-link { color: #287d72; }

.business-map { background: #081415; color: rgba(255,255,255,.65); }
.business-map-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); }
.business-map-intro { position: sticky; top: 9rem; align-self: start; }
.business-map-intro h2 { color: white; font-size: clamp(2.5rem, 4.2vw, 4.2rem); line-height: 1; letter-spacing: -.055em; }
.business-map-list > div { display: grid; grid-template-columns: 3rem 1fr; padding: 1.8rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.business-map-list > div:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.business-map-list span { color: var(--color-teal); font-size: .58rem; }
.business-map-list h3 { color: white; font-size: 1.2rem; margin-bottom: .35rem; }
.business-map-list p { grid-column: 2; color: rgba(255,255,255,.48); font-size: .78rem; margin: 0; }

.fit-check { background: var(--color-cream); }
.fit-check-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6rem; }
.fit-check h2 { font-size: clamp(2.6rem, 4.2vw, 4.3rem); line-height: 1; letter-spacing: -.055em; }
.fit-check ul { list-style: none; margin: 0; }
.fit-check li { position: relative; padding: 1.5rem 0 1.5rem 2.5rem; border-top: 1px solid rgba(8,20,21,.16); color: var(--color-charcoal); }
.fit-check li:last-child { border-bottom: 1px solid rgba(8,20,21,.16); }
.fit-check li::before { content: '✓'; position: absolute; left: .2rem; color: #287d72; }

.detail-hero { --detail-image: none; min-height: 620px; position: relative; display: flex; align-items: flex-end; padding: 8rem 0 4rem; background: #081415; overflow: hidden; }
.detail-hero-image { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(8,20,21,.98) 0%, rgba(8,20,21,.78) 55%, rgba(8,20,21,.32)), var(--detail-image); background-size: cover; background-position: center; filter: saturate(.72); }
.detail-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 5rem; align-items: end; }
.detail-back { display: inline-block; color: rgba(255,255,255,.55); font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4rem; }
.detail-hero h1 { color: white; font-size: clamp(3.4rem, 6vw, 6.2rem); line-height: .94; letter-spacing: -.065em; margin: 0; }
.detail-subtitle { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.72); font-size: 1.15rem; }
.detail-shell { max-width: 1180px; margin: 0 auto; padding: 7rem clamp(1.25rem, 4vw, 4rem); display: grid; grid-template-columns: 230px minmax(0, 760px); gap: clamp(3rem, 8vw, 8rem); }
.detail-aside { position: sticky; top: 7.5rem; align-self: start; }
.detail-aside > span { display: block; color: var(--color-slate); font-size: .58rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1.2rem; }
.detail-aside nav { display: flex; flex-direction: column; border-top: 1px solid rgba(8,20,21,.14); margin-bottom: 2rem; }
.detail-aside nav a { padding: .7rem 0; border-bottom: 1px solid rgba(8,20,21,.14); color: var(--color-slate); font-size: .74rem; }
.detail-aside nav a:hover { color: #287d72; }
.detail-aside .text-link { color: #287d72; font-size: .62rem; }
.detail-content.page-content { padding: 0; }
.detail-content > p:first-child { font-size: 1.35rem; line-height: 1.65; color: var(--color-navy); }
.detail-content hr { margin: 4rem 0; border: 0; border-top: 1px solid rgba(8,20,21,.15); }
.detail-content h2 { border: 0; padding: 0; margin-top: 4.5rem; font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -.045em; scroll-margin-top: 7rem; }
.detail-content h3 { margin-top: 2.4rem; color: var(--color-navy); font-size: 1.2rem; }
.detail-content h3::before { content: '—'; color: var(--color-teal); margin-right: .55rem; }
.detail-content ul { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 2rem; list-style: none; margin-left: 0; }
.detail-content li { position: relative; padding-left: 1.2rem; font-size: .93rem; }
.detail-content li::before { content: ''; position: absolute; left: 0; top: .7rem; width: 5px; height: 5px; border-radius: 50%; background: var(--color-teal); }

@media (max-width: 900px) {
  .sector-hero-grid, .split-heading, .business-map-grid, .fit-check-grid, .detail-hero-grid { grid-template-columns: 1fr; }
  .sector-hero-copy, .detail-subtitle { padding-left: 0; border-left: 0; max-width: 700px; }
  .signal-grid { grid-template-columns: 1fr 1fr; }
  .signal:nth-child(2) { border-right: 0; }
  .signal { border-bottom: 1px solid rgba(8,20,21,.16); }
  .industry-path-grid { grid-template-columns: 1fr; }
  .industry-path-card { min-height: 0; display: grid; grid-template-columns: .8fr 1.2fr; }
  .industry-path-image { height: 100%; min-height: 320px; }
  .business-map-intro { position: static; }
  .detail-shell { grid-template-columns: 1fr; padding-top: 4rem; }
  .detail-aside { position: static; }
  .detail-aside nav { display: none; }
}

@media (max-width: 600px) {
  .sector-hero { min-height: 620px; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal { min-height: 0; border-right: 0; }
  .signal > span { margin-bottom: 2rem; }
  .industry-path-card { display: flex; }
  .industry-path-image { height: 230px; min-height: 0; }
  .detail-hero { min-height: 560px; }
  .detail-content ul { grid-template-columns: 1fr; }
}

/* Expanded footer */
footer { padding: 5.5rem 0 2rem; }
.footer-main { display: grid; grid-template-columns: 1.5fr .55fr .75fr; gap: clamp(3rem, 8vw, 8rem); padding-bottom: 4rem; }
.footer-brand p { max-width: 450px; color: rgba(255,255,255,.48); font-size: .9rem; margin-top: 1.5rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.footer-nav > span, .footer-contact > span { color: var(--color-teal); font-size: .56rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,.72); font-size: .83rem; }
.footer-contact .footer-cta { display: flex; justify-content: space-between; gap: 2rem; width: 100%; padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); color: white; }
.footer-contact .footer-cta:hover { color: var(--color-acid); }
.footer-contact p { color: rgba(255,255,255,.4); font-size: .72rem; line-height: 1.5; margin-top: .8rem; }
.footer-content { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.35); }
.footer-content p { margin: 0; font-size: .65rem; letter-spacing: .06em; }

@media (max-width: 700px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* About, results, and contact */
.about-hero { min-height: 760px; display: flex; align-items: flex-end; padding: 8rem 0 5rem; background: #081415; overflow: hidden; }
.about-hero-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 8rem); align-items: end; }
.about-portrait { position: relative; max-width: 440px; }
.about-portrait::before { content: ''; position: absolute; inset: -2rem 2rem 2rem -2rem; border: 1px solid rgba(88,213,191,.22); }
.about-portrait img { position: relative; width: 100%; aspect-ratio: .82; object-fit: cover; object-position: 50% center; filter: saturate(.72) contrast(1.03); }
.about-hero-copy h1 { color: white; font-size: clamp(3.5rem, 6vw, 6.2rem); line-height: .93; letter-spacing: -.065em; }
.about-hero-copy > p:last-child { color: rgba(255,255,255,.58); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.about-story .detail-content > p:nth-of-type(2) { font-size: 1.12rem; color: var(--color-slate); }
.about-principle-band { padding: 2.2rem 0; background: var(--color-teal); overflow: hidden; }
.about-principle-band .container { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; color: #081415; font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.about-principle-band i { width: 5px; height: 5px; border-radius: 50%; background: #081415; opacity: .45; }

.results-hero { min-height: 630px; display: flex; align-items: flex-end; padding: 8rem 0 5rem; position: relative; overflow: hidden; background: #081415; }
.results-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,20,21,.98), rgba(8,20,21,.72)), url('/images/tech-abstract.jpg') center/cover no-repeat; opacity: .75; }
.results-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 5rem; align-items: end; }
.results-hero h1 { color: white; font-size: clamp(4rem, 8vw, 8rem); line-height: .9; letter-spacing: -.075em; }
.results-hero-grid > div:last-child > p { color: rgba(255,255,255,.66); font-size: 1.18rem; }
.result-equation { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; color: var(--color-teal-light); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.result-equation span { border: 1px solid rgba(255,255,255,.2); padding: .65rem .8rem; }
.result-equation b { color: rgba(255,255,255,.35); }
.result-outcomes { display: grid; grid-template-columns: 1fr 1fr; margin: 2.5rem 0 4rem; border-top: 1px solid rgba(8,20,21,.15); border-left: 1px solid rgba(8,20,21,.15); }
.result-outcomes > div { padding: 1.6rem; min-height: 240px; border-right: 1px solid rgba(8,20,21,.15); border-bottom: 1px solid rgba(8,20,21,.15); }
.result-outcomes span { display: block; color: #287d72; font-size: .56rem; margin-bottom: 2.7rem; }
.result-outcomes h3 { margin-top: 0; }
.result-outcomes h3::before { display: none; }
.result-outcomes p { color: var(--color-slate); font-size: .82rem; }

.contact-header { min-height: 500px; display: flex; align-items: flex-end; padding: 8rem 0 4rem; background: linear-gradient(90deg, rgba(8,20,21,.98), rgba(8,20,21,.62)), url('/images/appfoundry-hero.webp') center/cover no-repeat; }
.contact-header h1 { font-size: clamp(3.7rem, 7vw, 7rem); line-height: .92; letter-spacing: -.07em; max-width: 850px; }
.contact-header .eyebrow { margin-bottom: 1.5rem; }
.contact-intro { max-width: 800px; margin-bottom: 4rem; }
.contact-intro p { font-size: 1.25rem; color: var(--color-navy); }
.contact-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
.contact-form { padding: clamp(1.5rem, 4vw, 3rem); background: #e8ece5; border: 1px solid rgba(8,20,21,.12); }
.contact-form label { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-form label span { color: var(--color-slate); font-size: .58rem; letter-spacing: .03em; text-transform: none; }
.contact-form input, .contact-form select, .contact-form textarea { border: 0; border-bottom: 1px solid rgba(8,20,21,.22); border-radius: 0; background: rgba(255,255,255,.62); }
.contact-info { border-top: 1px solid rgba(8,20,21,.14); }
.contact-info .contact-method { position: relative; margin: 0; padding: 2rem 1rem; background: transparent; border: 0; border-bottom: 1px solid rgba(8,20,21,.14); border-radius: 0; }
.contact-step { position: absolute; right: 1rem; top: 2rem; color: #287d72; font-size: .56rem; }
.contact-info .btn-secondary { background: var(--color-navy); border: 0; }
.contact-location h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.form-honeypot { display: none !important; }
.form-privacy { color: var(--color-slate); font-size: .72rem; line-height: 1.55; margin: -.25rem 0 1.5rem; }

@media (max-width: 900px) {
  .about-hero-grid, .results-hero-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 330px; }
  .about-principle-band .container { flex-wrap: wrap; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .about-hero { min-height: 680px; }
  .about-portrait { max-width: 240px; }
  .results-hero { min-height: 570px; }
  .result-outcomes { grid-template-columns: 1fr; }
}

/* Services landing */
.services-hero { min-height: 670px; display: flex; align-items: flex-end; padding: 8rem 0 5.5rem; position: relative; overflow: hidden; background: #081415; }
.services-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,20,21,.97), rgba(8,20,21,.7)), url('/images/appfoundry-hero.webp') center/cover no-repeat; opacity: .75; }
.services-hero::after { content: ''; position: absolute; width: 650px; height: 650px; right: -170px; top: -270px; border: 1px solid rgba(88,213,191,.16); border-radius: 50%; box-shadow: 0 0 0 90px rgba(88,213,191,.025), 0 0 0 180px rgba(88,213,191,.018); }
.services-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(3rem, 8vw, 8rem); align-items: end; }
.services-hero h1 { color: white; font-size: clamp(3.8rem, 7vw, 7rem); line-height: .92; letter-spacing: -.07em; margin: 0; }
.services-hero-copy { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.68); }
.services-hero-copy p { font-size: 1rem; }

.lead-offering { background: var(--color-cream); }
.lead-offering-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.lead-offering-visual { min-height: 570px; display: grid; place-items: center; position: relative; overflow: hidden; background: linear-gradient(rgba(8,20,21,.25), rgba(8,20,21,.78)), url('/images/appfoundry-collaboration.webp') center/cover no-repeat; }
.lead-offering-visual::before { content: 'APPFOUNDRY / COLLABORATIVE BUILD ENVIRONMENT'; position: absolute; top: 1.5rem; left: 1.5rem; color: rgba(255,255,255,.55); font-size: .52rem; letter-spacing: .15em; }
.foundry-mini-map { display: flex; align-items: center; gap: .65rem; padding: 1.2rem; background: rgba(8,20,21,.76); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); color: white; font-size: .5rem; letter-spacing: .12em; }
.foundry-mini-map i { width: 1.7rem; height: 1px; background: var(--color-teal); }
.lead-offering-copy h2 { font-size: clamp(3.2rem, 5vw, 5.5rem); line-height: .95; letter-spacing: -.065em; }
.lead-offering-copy .lead { color: var(--color-navy); font-size: 1.25rem; }
.lead-offering-copy > p:not(.eyebrow):not(.lead) { color: var(--color-slate); }

.supporting-services { background: #e8ece5; }
.capability-list { border-top: 1px solid rgba(8,20,21,.17); }
.capability-row { display: grid; grid-template-columns: 3rem minmax(190px,.65fr) 1.35fr auto; gap: 2rem; align-items: center; padding: 1.7rem .5rem; border-bottom: 1px solid rgba(8,20,21,.17); color: var(--color-navy); }
.capability-index { color: #287d72; font-size: .58rem; }
.capability-row h3 { margin: 0; font-size: 1.25rem; }
.capability-row p { color: var(--color-slate); font-size: .82rem; margin: 0; }
.capability-row:hover { padding-left: 1rem; padding-right: 1rem; color: var(--color-navy); background: rgba(255,255,255,.48); }
.capability-row:hover .industry-arrow { background: var(--color-acid); border-color: var(--color-acid); color: var(--color-navy); }

.engagement-sequence { background: #081415; }
.engagement-sequence .section-header h2 { color: white; }
.sequence-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.sequence-grid > div { padding: 2.2rem; min-height: 290px; border-right: 1px solid rgba(255,255,255,.14); }
.sequence-grid > div:last-child { border-right: 0; }
.sequence-grid span { display: block; color: var(--color-teal); font-size: .58rem; letter-spacing: .14em; margin-bottom: 4rem; }
.sequence-grid h3 { color: white; }
.sequence-grid p { color: rgba(255,255,255,.5); font-size: .87rem; }

@media (max-width: 900px) {
  .services-hero-grid, .lead-offering-grid { grid-template-columns: 1fr; }
  .services-hero-copy { padding-left: 0; border-left: 0; }
  .capability-row { grid-template-columns: 2rem 1fr auto; }
  .capability-row p { grid-column: 2; }
  .capability-row .industry-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .sequence-grid { grid-template-columns: 1fr 1fr; }
  .sequence-grid > div:nth-child(2) { border-right: 0; }
  .sequence-grid > div { border-bottom: 1px solid rgba(255,255,255,.14); }
}

@media (max-width: 600px) {
  .lead-offering-visual { min-height: 420px; }
  .foundry-mini-map { flex-direction: column; }
  .foundry-mini-map i { width: 1px; height: 1rem; }
  .capability-row { gap: .7rem; }
  .sequence-grid { grid-template-columns: 1fr; }
  .sequence-grid > div { border-right: 0; min-height: 0; }
  .sequence-grid span { margin-bottom: 2rem; }
}

/* Timeline styling */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--color-teal);
  margin: 2rem 0;
}

.timeline p {
  position: relative;
  padding: 1rem 0 1rem 1.5rem;
  margin-bottom: 0;
}

.timeline p::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 1.4rem;
  width: 12px;
  height: 12px;
  background: var(--color-teal);
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-teal-glow);
}

.timeline strong {
  color: var(--color-teal);
  font-size: 1.1rem;
}

/* Timeline with embedded Photos */
.timeline-with-photos {
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--color-teal);
  margin: 2rem 0;
}

.timeline-with-photos p {
  position: relative;
  padding: 1rem 0 1rem 1.5rem;
  margin-bottom: 0;
}

.timeline-with-photos p::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 1.4rem;
  width: 12px;
  height: 12px;
  background: var(--color-teal);
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-teal-glow);
}

.timeline-with-photos strong {
  color: var(--color-teal);
  font-size: 1.1rem;
}

.timeline-photo-marker {
  position: relative;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.timeline-photo-marker img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--color-teal);
  position: relative;
  left: -3.6rem;
  transition: transform var(--transition-smooth);
}

.timeline-photo-marker:hover img {
  transform: scale(1.08);
}

.timeline-photo-marker span {
  position: absolute;
  left: calc(-3.6rem + 110px);
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.1rem;
  background: var(--color-gray-50);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

@media (max-width: 500px) {
  .timeline-photo-marker img {
    width: 80px;
    height: 80px;
    left: -3.2rem;
  }
  
  .timeline-photo-marker span {
    left: calc(-3.2rem + 90px);
  }
}

/* Hero with Photo */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  position: relative;
  z-index: 2;
}

.hero-photo {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hero-photo img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(74, 155, 155, 0.3);
  transition: transform 0.1s ease-out;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 2px dashed rgba(74, 155, 155, 0.3);
  animation: rotate 30s linear infinite;
}

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

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
  
  .hero-photo {
    order: -1;
    margin-bottom: 0;
  }
  
  .hero-photo img {
    width: 180px;
    height: 180px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .hero-photo img {
    width: 150px;
    height: 150px;
  }
}

/* Open Source Logo Grid */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition-smooth);
}

.logo-item:hover {
  transform: translateY(-4px);
}

.logo-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: all var(--transition-smooth);
}

.logo-item:hover img {
  opacity: 1;
  transform: scale(1.1);
}

.logo-item span {
  font-size: 0.8rem;
  color: var(--color-slate);
  font-weight: 500;
}


/* 2026 immersive art direction */
:root {
  --color-navy: #081415;
  --color-navy-light: #102426;
  --color-charcoal: #17282a;
  --color-slate: #526568;
  --color-teal: #58d5bf;
  --color-teal-light: #91ead8;
  --color-teal-glow: rgba(88, 213, 191, 0.16);
  --color-cream: #f2f0e8;
  --color-acid: #c8f66a;
  --shadow-lg: 0 24px 80px rgba(3, 16, 17, 0.16);
}

body { background: var(--color-cream); }

.container { max-width: 1320px; padding-left: clamp(1.25rem, 4vw, 4rem); padding-right: clamp(1.25rem, 4vw, 4rem); }

header {
  background: rgba(8, 20, 21, 0.84);
  padding: 1.15rem 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
}

.logo { font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; }
.logo span { color: var(--color-acid); }
nav ul { gap: 2rem; align-items: center; }
nav a { color: rgba(255,255,255,.72); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
nav li:last-child a { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .65rem 1rem; }
nav li:last-child a:hover { border-color: var(--color-teal); }

.hero {
  min-height: calc(100svh - 74px);
  padding: clamp(5rem, 9vh, 8rem) 0 5rem;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: #081415;
}

.hero-bg { opacity: .28; filter: saturate(.6) contrast(1.15); mix-blend-mode: luminosity; transform: scale(1.03); }
.hero::after { background: linear-gradient(90deg, rgba(8,20,21,.99) 0%, rgba(8,20,21,.9) 45%, rgba(8,20,21,.53) 100%); }
.hero::before {
  top: auto; right: auto; bottom: -25rem; left: 15%; width: 60rem; height: 60rem;
  background: radial-gradient(circle, rgba(88,213,191,.17), transparent 65%);
  z-index: 1;
}

.hero-content { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); gap: clamp(3rem, 7vw, 7rem); width: 100%; }
.hero-text { max-width: 720px; }
.hero h1 { font-size: clamp(3.15rem, 5.1vw, 5.4rem); line-height: .98; letter-spacing: -.058em; max-width: 760px; margin-bottom: 2rem; }
.hero h1 span { color: rgba(255,255,255,.88); }
.hero .tagline { max-width: 690px; color: rgba(238,244,239,.72); font-size: clamp(1.03rem, 1.35vw, 1.22rem); line-height: 1.72; margin-bottom: 2.25rem; }

.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--color-teal-light); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.5rem; }
.eyebrow span { width: 2.4rem; height: 1px; background: currentColor; }
.eyebrow.dark { color: #247b70; justify-content: center; margin-bottom: 1.25rem; }

.btn { border-radius: 999px; padding: 1rem 1.55rem; font-size: .85rem; letter-spacing: .03em; }
.btn-primary { color: #071313; background: var(--color-acid); box-shadow: 0 10px 35px rgba(200,246,106,.13); }
.btn-primary:hover { color: #071313; box-shadow: 0 12px 42px rgba(200,246,106,.24); }
.btn-secondary { border-width: 1px; display: inline-flex; gap: .7rem; align-items: center; }

.hero-proof { display: flex; gap: 2.25rem; margin-top: 3.3rem; padding-top: 1.35rem; border-top: 1px solid rgba(255,255,255,.12); width: fit-content; }
.hero-proof > div { display: flex; align-items: center; gap: .75rem; }
.hero-proof strong { color: var(--color-white); font-size: 1.45rem; font-weight: 500; }
.hero-proof span { color: rgba(255,255,255,.48); font-size: .68rem; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase; }

.hero-stage { position: relative; z-index: 2; min-height: 530px; display: flex; align-items: center; }
.foundry-window { width: 100%; background: rgba(8,20,21,.8); border: 1px solid rgba(151,234,216,.25); box-shadow: 0 40px 100px rgba(0,0,0,.45); backdrop-filter: blur(18px); overflow: hidden; }
.foundry-topbar { height: 48px; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font: 600 .59rem/1 var(--font-primary); letter-spacing: .13em; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); }
.status { color: var(--color-teal); }
.status i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; background: var(--color-teal); border-radius: 50%; box-shadow: 0 0 10px var(--color-teal); }
.foundry-canvas { position: relative; height: 390px; padding: 2rem; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 28px 28px; }
.workflow-label { color: rgba(255,255,255,.28); font-size: .57rem; letter-spacing: .16em; }
.workflow-line { position: absolute; left: 17%; right: 17%; top: 52%; height: 1px; background: linear-gradient(90deg, var(--color-teal), var(--color-acid)); opacity: .7; box-shadow: 0 0 12px rgba(88,213,191,.5); }
.workflow-node { position: absolute; top: 41%; width: 106px; padding: .9rem .8rem; background: #102426; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 16px 35px rgba(0,0,0,.35); }
.workflow-node::before { content: ''; position: absolute; width: 7px; height: 7px; right: -4px; top: 50%; border-radius: 50%; background: var(--color-teal); transform: translateY(-50%); box-shadow: 0 0 14px var(--color-teal); }
.workflow-node span { display: block; color: var(--color-teal); font-size: .58rem; margin-bottom: .8rem; }
.workflow-node strong { display: block; color: white; font-size: .82rem; margin-bottom: .25rem; }
.workflow-node small { display: block; color: rgba(255,255,255,.42); font-size: .58rem; }
.node-input { left: 6%; }.node-shape { left: 50%; transform: translateX(-50%); }.node-ship { right: 6%; border-color: rgba(200,246,106,.45); }.node-ship::before { background: var(--color-acid); }
.build-readout { position: absolute; left: 2rem; right: 2rem; bottom: 1.6rem; display: flex; gap: .5rem; }
.build-readout span { padding: .45rem .65rem; color: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.1); font-size: .5rem; letter-spacing: .11em; }
.hero-portrait { position: absolute; right: -1.3rem; bottom: -1rem; width: 158px; height: 158px; padding: 7px; border-radius: 50%; background: rgba(8,20,21,.88); border: 1px solid rgba(145,234,216,.42); box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 10px rgba(88,213,191,.06); }
.hero-portrait::before { content: ''; position: absolute; inset: -16px; border: 1px dashed rgba(145,234,216,.25); border-radius: 50%; animation: rotate 36s linear infinite; }
.hero-portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% center; border-radius: 50%; filter: saturate(.82) contrast(1.03); }
.hero-scroll { position: absolute; z-index: 2; bottom: 1.5rem; left: clamp(1.25rem, 4vw, 4rem); display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.35); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-scroll span { width: 32px; height: 1px; background: var(--color-teal); }
.hero-orbit { position: absolute; z-index: 1; border: 1px solid rgba(88,213,191,.1); border-radius: 50%; pointer-events: none; }
.hero-orbit-one { width: 540px; height: 540px; right: -160px; top: -210px; }
.hero-orbit-two { width: 280px; height: 280px; right: -20px; top: -80px; }

section { padding: clamp(5rem, 9vw, 9rem) 0; }
section.alt-bg { background: var(--color-cream); }
section.gradient-bg { background: #e8ece5; }
.section-header { margin-bottom: 4.5rem; }
.section-header h2 { font-size: clamp(2.6rem, 4.5vw, 4.7rem); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
.section-header h2::after { display: none; }
.section-header p:not(.eyebrow) { max-width: 700px; }
.problem-cards { gap: 0; border-top: 1px solid rgba(8,20,21,.18); border-bottom: 1px solid rgba(8,20,21,.18); }
.problem-card { position: relative; border: 0; border-right: 1px solid rgba(8,20,21,.14); border-radius: 0; box-shadow: none; background: transparent; padding: 3rem clamp(1.5rem, 3vw, 3rem); }
.problem-card:last-child { border-right: 0; }
.problem-card:hover { box-shadow: none; transform: translateY(-6px); background: rgba(255,255,255,.4); }
.card-number { display: block; color: #388f83; font-size: .65rem; letter-spacing: .15em; margin-bottom: 3.8rem; }
.problem-card h4 { font-size: 1.25rem; max-width: 280px; }
.problem-card p { font-size: .94rem; }

.cards-grid { grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.card { grid-column: span 4; min-height: 310px; border-radius: 2px; padding: 2.25rem; box-shadow: none; background: rgba(255,255,255,.68); }
.card:first-child { grid-column: span 8; background: var(--color-navy); }
.card:first-child h3 { color: white; font-size: 2rem; }
.card:first-child p { color: rgba(255,255,255,.62); max-width: 600px; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-icon { border-radius: 50%; background: transparent; }
.card:first-child .card-icon { border-color: rgba(88,213,191,.35); }
.card::before { height: 2px; }

footer { background: #061011; }

.collaboration-story { min-height: 820px; padding: 0; position: relative; display: flex; align-items: flex-end; overflow: hidden; background: #081415; }
.collaboration-image { position: absolute; inset: 0; background: url('/images/appfoundry-collaboration.webp') center/cover no-repeat; }
.collaboration-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,20,21,.12) 10%, rgba(8,20,21,.28) 52%, rgba(8,20,21,.88) 100%), linear-gradient(0deg, rgba(8,20,21,.94), transparent 55%); }
.collaboration-overlay { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(4rem, 8vw, 7rem); display: flex; justify-content: flex-end; }
.collaboration-copy { width: min(100%, 560px); padding: 2.8rem; color: rgba(255,255,255,.7); background: rgba(8,20,21,.72); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(18px); }
.collaboration-copy h2 { color: white; font-size: clamp(2.5rem, 4.5vw, 4.3rem); line-height: 1; letter-spacing: -.055em; }
.collaboration-copy p:not(.eyebrow) { font-size: 1rem; }
.text-link { display: inline-flex; align-items: center; gap: 1rem; color: var(--color-acid); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.text-link:hover { color: white; }
.collaboration-index { position: absolute; z-index: 2; left: 2rem; top: 2rem; color: rgba(255,255,255,.55); font-size: .58rem; letter-spacing: .18em; writing-mode: vertical-rl; }

.generated-industry { background-image: url('/images/industries-connected.webp'); }
.manufacturing-frame { background-position: 8% center; background-size: 205% auto; }
.healthcare-frame { background-position: 92% center; background-size: 205% auto; }
.industry-card-visual { border-radius: 2px; background: #f8f7f1; box-shadow: none; border: 1px solid rgba(8,20,21,.12); }
.industry-image { height: 300px; }
.industry-content { padding: 2.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .status i { animation: pulse-status 2s ease-in-out infinite; }
  .workflow-line { animation: line-glow 3s ease-in-out infinite; }
  @keyframes pulse-status { 50% { opacity: .35; box-shadow: 0 0 2px var(--color-teal); } }
  @keyframes line-glow { 50% { opacity: .35; } }
}

@media (max-width: 1000px) {
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-text { max-width: 820px; }
  .hero-stage { width: min(100%, 680px); min-height: 480px; margin: 0 auto; }
  .card, .card:first-child { grid-column: span 6; }
}

@media (max-width: 768px) {
  .hero { padding-top: 4.5rem; }
  .hero-content { text-align: left; gap: 3.5rem; }
  .hero-buttons { justify-content: flex-start; }
  .hero-stage { order: initial; min-height: 410px; }
  .foundry-canvas { height: 320px; }
  .workflow-node { width: 88px; padding: .65rem; }
  .workflow-node small { display: none; }
  .hero-portrait { right: -.25rem; }
  .hero-proof { gap: 1rem; flex-wrap: wrap; }
  .hero-scroll { display: none; }
  .problem-cards { grid-template-columns: 1fr; }
  .problem-card { border-right: 0; border-bottom: 1px solid rgba(8,20,21,.14); }
  .card-number { margin-bottom: 2rem; }
  .card, .card:first-child { grid-column: 1 / -1; }
  .collaboration-story { min-height: 700px; align-items: flex-end; }
  .collaboration-image { background-position: 38% center; }
  .collaboration-overlay { padding-bottom: 2rem; }
  .collaboration-copy { padding: 1.5rem; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: clamp(2.65rem, 12vw, 3.5rem); line-height: 1; }
  .hero .tagline { font-size: .98rem; }
  .hero-buttons .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-stage { min-height: 370px; }
  .foundry-topbar > span:nth-child(2) { display: none; }
  .foundry-canvas { height: 290px; padding: 1.25rem; }
  .workflow-line { left: 15%; right: 15%; }
  .workflow-node { width: 74px; }
  .workflow-node strong { font-size: .7rem; }
  .build-readout { left: 1rem; right: 1rem; bottom: 1rem; gap: .25rem; }
  .build-readout span { padding: .35rem; font-size: .4rem; }
  .hero-portrait { width: 118px; height: 118px; right: .25rem; bottom: -.35rem; padding: 5px; }
}

/* Expanded industry landscape */
.industry-landscape { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 760px; background: #081415; }
.industry-landscape-visual { position: relative; min-height: 620px; background: linear-gradient(0deg, rgba(8,20,21,.8), transparent 65%), url('/images/industries-connected.webp') 15% center/210% auto no-repeat; overflow: hidden; }
.industry-landscape-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #081415 100%); }
.industry-landscape-visual::after { content: 'OPERATIONS / PEOPLE / SYSTEMS'; position: absolute; left: 1.5rem; top: 1.5rem; color: rgba(255,255,255,.48); font-size: .52rem; letter-spacing: .18em; }
.landscape-caption { position: absolute; z-index: 1; left: clamp(1.5rem, 4vw, 3.5rem); right: 2rem; bottom: 3rem; color: white; }
.landscape-caption span { display: block; color: rgba(255,255,255,.55); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; }
.landscape-caption strong { display: block; max-width: 380px; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.04em; }
.industry-groups { padding: 1.2rem clamp(1.4rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.industry-group { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 1rem; align-items: center; padding: 1.55rem .5rem; border-bottom: 1px solid rgba(255,255,255,.13); color: white; }
.industry-group:first-child { border-top: 1px solid rgba(255,255,255,.13); }
.industry-number { align-self: start; padding-top: .25rem; color: var(--color-teal); font-size: .56rem; letter-spacing: .1em; }
.industry-group h3 { color: white; font-size: 1.15rem; margin-bottom: .35rem; transition: color var(--transition-fast); }
.industry-group p { color: rgba(255,255,255,.46); font-size: .7rem; letter-spacing: .045em; margin: 0; }
.industry-arrow { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: rgba(255,255,255,.62); transition: all var(--transition-smooth); }
.industry-group:hover h3 { color: var(--color-acid); }
.industry-group:hover .industry-arrow { border-color: var(--color-acid); color: #081415; background: var(--color-acid); transform: rotate(45deg); }
.industry-group-open { background: rgba(88,213,191,.06); padding-left: 1rem; padding-right: 1rem; }

.industry-roster { display: flex; flex-wrap: wrap; gap: .65rem; margin: 2.5rem 0; }
.industry-roster span { display: inline-block; padding: .65rem 1rem; border: 1px solid rgba(8,20,21,.18); border-radius: 999px; color: var(--color-navy); background: rgba(88,213,191,.07); font-size: .78rem; font-weight: 600; }

@media (max-width: 900px) {
  .industry-landscape { grid-template-columns: 1fr; }
  .industry-landscape-visual { min-height: 480px; background-size: cover; background-position: center; }
  .industry-landscape-visual::before { background: linear-gradient(0deg, #081415 0%, transparent 50%); }
  .industry-groups { padding-top: 2rem; padding-bottom: 2rem; }
}

@media (max-width: 500px) {
  .industry-landscape { margin-left: -1.25rem; margin-right: -1.25rem; }
  .industry-landscape-visual { min-height: 390px; }
  .industry-group { grid-template-columns: 1.7rem 1fr auto; gap: .65rem; }
  .industry-group h3 { font-size: 1rem; }
  .industry-group p { line-height: 1.5; }
}
