/* ============================================
   INVENTION SHOWCASE - Premium Template
   A sophisticated dark theme for inventor sites
   ============================================ */

/* === CSS Variables === */
:root {
  /* Colors - Modern Ocean Theme - Deep Navy/Teal */
  --color-bg-primary: #0a0f1a;
  --color-bg-secondary: #111827;
  --color-bg-tertiary: #1e293b;
  --color-bg-elevated: #334155;
  
  /* Accent - Vibrant Teal/Cyan */
  --color-accent: #22d3ee;
  --color-accent-light: #67e8f9;
  --color-accent-dark: #06b6d4;
  --color-accent-glow: rgba(34, 211, 238, 0.35);
  
  /* Text Colors */
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  /* Borders & Surfaces */
  --color-border: rgba(148, 163, 184, 0.12);
  --color-border-accent: rgba(34, 211, 238, 0.3);
  --color-surface-glass: rgba(255, 255, 255, 0.04);
  
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  
  /* Sizing */
  --max-width: 1280px;
  --section-padding: clamp(5rem, 10vw, 8rem);
  
  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-base: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

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

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

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

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.ambient-orb--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
  animation-delay: 0s;
}

.ambient-orb--2 {
  width: 500px;
  height: 500px;
  bottom: 20%;
  left: -200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
  animation-delay: -7s;
}

.ambient-orb--3 {
  width: 400px;
  height: 400px;
  top: 50%;
  right: 20%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent 70%);
  animation-delay: -14s;
}

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

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* === Container === */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 4rem, var(--max-width));
    padding-inline: 2rem;
  }
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-bg-primary);
  box-shadow: 
    0 4px 24px var(--color-accent-glow),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 40px var(--color-accent-glow),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--color-surface-glass);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary {
  background: var(--color-bg-elevated);
  color: var(--color-accent);
  border: 1px solid var(--color-border-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-bg-primary);
}

.btn-full {
  width: 100%;
}

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

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.external-icon {
  width: 16px;
  height: 16px;
  margin-left: 0.25rem;
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-base);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--color-bg-primary), transparent);
  pointer-events: none;
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  z-index: 10;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  z-index: 10;
}

.hamburger {
  width: 20px;
  height: 2px;
  background: var(--color-text-primary);
  position: relative;
  transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-fast);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.primary-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

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

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--color-text-primary);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-bg-primary) !important;
  border-radius: 100px;
  font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--color-accent-light);
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .primary-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--color-bg-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-base);
  }
  
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .primary-nav a {
    font-size: 1.5rem;
    font-family: var(--font-display);
  }
}

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

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  width: fit-content;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.8s var(--ease-out-expo) both;
}

.badge-icon {
  font-size: 0.7rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

.title-line {
  display: block;
  color: var(--color-text-primary);
}

.title-accent {
  display: block;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 50%, var(--color-accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 480px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.stat-divider {
  width: 1px;
  background: var(--color-border);
  align-self: stretch;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInUp 1s var(--ease-out-expo) 0.5s both;
}

.product-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  max-width: 500px;
  margin: 0 auto;
}

.showcase-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
  filter: blur(60px);
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.showcase-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-border-accent);
  animation: rotate 20s linear infinite;
}

.showcase-ring--1 {
  width: 100%;
  height: 100%;
  animation-direction: normal;
}

.showcase-ring--2 {
  width: 85%;
  height: 85%;
  animation-direction: reverse;
  animation-duration: 25s;
}

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

.product-frame {
  position: relative;
  width: 70%;
  background: var(--color-bg-elevated);
  border-radius: 24px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 40px 80px rgba(0, 0, 0, 0.5);
}

.product-image {
  width: 100%;
  height: auto;
}

.play-button {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: 50%;
  transition: all var(--transition-base);
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px var(--color-accent-glow);
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 10px solid var(--color-bg-primary);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}

.floating-card {
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  max-width: 220px;
  padding: 1.25rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card-accent {
  position: absolute;
  top: 0;
  left: 1.25rem;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 0 0 4px 4px;
}

.floating-card h3 {
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.floating-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  animation: fadeInUp 1s var(--ease-out-expo) 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Section Styles === */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-header {
  max-width: 700px;
  margin-bottom: 4rem;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-secondary);
}

.section-lead {
  font-size: 1.1rem;
}

/* === Patent Section === */
.patent-section {
  background: var(--color-bg-secondary);
}

.patent-showcase {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .patent-showcase {
    grid-template-columns: auto 1fr auto;
    gap: 4rem;
  }
}

.patent-badge {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--color-border-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.patent-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.patent-content h2 {
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.patent-content p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.patent-document {
  position: relative;
}

.document-frame {
  position: relative;
  max-width: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.document-frame img {
  width: 100%;
  height: auto;
}

.document-stamp {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--color-accent);
  color: var(--color-bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transform: rotate(-5deg);
}

/* === Video Section === */
.video-section {
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.video-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .video-layout {
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 4rem;
  }
}

.video-intro h2 {
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.video-intro p {
  color: var(--color-text-secondary);
}

.video-container {
  position: relative;
}

.video-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.responsive-media {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--color-bg-elevated);
}

.responsive-media iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === Innovation Section === */
.innovation-section {
  background: var(--color-bg-primary);
}

.feature-grid {
  display: grid;
  gap: 2rem;
}

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

.feature-card {
  position: relative;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-accent);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.feature-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg-secondary), transparent);
  pointer-events: none;
}

.feature-content {
  padding: 1.5rem;
}

.feature-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.feature-content h3 {
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* === Advantages Section === */
.advantages-section {
  background: var(--color-bg-secondary);
}

.advantages-grid {
  display: grid;
  gap: 1rem;
}

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

.advantage-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: all var(--transition-base);
}

.advantage-item:hover {
  border-color: var(--color-border-accent);
  background: var(--color-bg-elevated);
}

.advantage-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-accent);
}

.advantage-content h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.advantage-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* === Gallery Section === */
.gallery-section {
  background: var(--color-bg-primary);
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
}

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

.gallery-item {
  margin: 0;
}

.gallery-item button {
  position: relative;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.7);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item button:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item button:hover img {
  transform: scale(1.1);
}

.zoom-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-bg-primary);
  font-size: 1.5rem;
  font-weight: 300;
  border-radius: 50%;
}

.gallery-item figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* === Story Section === */
.story-section {
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
}

.story-layout {
  display: grid;
  gap: 4rem;
}

@media (min-width: 900px) {
  .story-layout {
    grid-template-columns: 300px 1fr;
    gap: 5rem;
  }
}

.story-portrait {
  text-align: center;
}

.portrait-frame {
  position: relative;
  display: inline-block;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.portrait-frame img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.portrait-accent {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

.inventor-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.inventor-title {
  font-size: 0.9rem;
  color: var(--color-accent);
}

.story-content h2 {
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.story-text p {
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

.story-signature {
  margin-top: 2rem;
}

.signature-line {
  width: 80px;
  height: 2px;
  background: var(--color-accent);
}

/* === Contact Section === */
.contact-section {
  background: var(--color-bg-primary);
  position: relative;
}

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

.contact-layout {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.contact-info h2 {
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.contact-lead {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-feature {
  display: flex;
  gap: 1rem;
}

.cf-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-accent);
  border-radius: 10px;
  color: var(--color-accent);
  font-size: 0.9rem;
}

.cf-text h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.15rem;
}

.cf-text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 2rem;
}

@media (min-width: 768px) {
  .contact-form-wrapper {
    padding: 2.5rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-header {
  text-align: center;
  margin-bottom: 1rem;
}

.form-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

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

.hidden-hp {
  position: absolute;
  left: -9999px;
}

.g-recaptcha {
  transform-origin: left top;
}

/* === Social Section === */
.social-section {
  padding: 3rem 0;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

.social-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .social-content {
    flex-direction: row;
    justify-content: center;
  }
}

.social-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  list-style: none;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.social-link img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.social-link:hover img {
  opacity: 1;
}

/* === Footer === */
.site-footer {
  padding: 2.5rem 0;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

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

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
}

.lightbox__dialog {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: 0;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__dialog img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.lightbox__dialog figcaption {
  color: var(--color-text-secondary);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox__close:hover {
  background: var(--color-accent-light);
  transform: scale(1.1);
}

.lightbox__close svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-bg-primary);
}

/* === Utilities === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
