/* RB Sea — Ocean Infrastructure Engineering */

:root {
  --bg-deep: #060a0f;
  --bg-primary: #0c1219;
  --bg-elevated: #141c26;
  --bg-card: #1a2433;
  --border: rgba(72, 202, 228, 0.15);
  --border-strong: rgba(72, 202, 228, 0.35);
  --text-primary: #e8edf4;
  --text-secondary: #8b9cb3;
  --text-muted: #5a6d85;
  --accent: #00b4d8;
  --accent-bright: #48cae4;
  --accent-glow: rgba(0, 180, 216, 0.25);
  --industrial: #f59e0b;
  --industrial-dim: rgba(245, 158, 11, 0.15);
  --success: #10b981;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
  --nav-height: 72px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --content-max: 1280px;
  --radius: 4px;
  --radius-lg: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

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

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

/* Grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(72, 202, 228, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 202, 228, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-bright);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-layout {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 48%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) clamp(1.5rem, 3vw, 3rem) 3rem clamp(1.5rem, 4vw, 4rem);
  background: var(--bg-deep);
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  min-height: 100vh;
  background: var(--bg-primary);
  overflow: hidden;
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-media-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg-deep) 0%, rgba(6, 10, 15, 0.55) 18%, rgba(6, 10, 15, 0.35) 100%),
    rgba(6, 10, 15, 0.45);
  pointer-events: none;
  z-index: 1;
}

.hero-concept-label {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding: 0.5rem 0.65rem 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  background: rgba(6, 10, 15, 0.7);
  backdrop-filter: blur(8px);
}

.hero-replay-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(6, 10, 15, 0.5);
  color: var(--accent-bright);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.hero-replay-btn:hover {
  border-color: var(--accent);
  background: rgba(0, 180, 216, 0.15);
  color: var(--accent);
}

.hero-replay-btn:active {
  transform: scale(0.95);
}

.hero-replay-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.hero h1 strong {
  font-weight: 600;
  color: var(--accent-bright);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 48ch;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

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

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Sections */
section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 2rem;
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

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

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 65ch;
  line-height: 1.7;
}

/* Mission */
.mission {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.mission .section-inner {
  max-width: none;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}

.mission .section-header {
  margin-bottom: 1.75rem;
  max-width: var(--content-max);
}

.mission .section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.mission .section-desc {
  font-size: 0.95rem;
  max-width: 72ch;
}

.architecture-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(1.25rem, 2vw, 2rem);
  width: 100%;
  margin-bottom: 1.25rem;
}

.architecture-row:last-child {
  margin-bottom: 0;
}

.architecture-visual {
  position: relative;
  flex: 1 1 50%;
  width: 50%;
  max-width: 50%;
  min-width: 0;
  height: clamp(280px, 38vh, 420px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.architecture-visual img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  object-fit: cover;
  object-position: center center;
}

.architecture-visual-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(0deg, rgba(6, 10, 15, 0.95) 0%, transparent 100%);
}

.architecture-visual-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.architecture-visual-left .architecture-visual-tag {
  color: var(--accent);
}

.architecture-visual-right .architecture-visual-tag {
  color: var(--industrial);
}

.architecture-visual-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.arch-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 1.5vw, 1.5rem);
  flex: 1 1 50%;
  width: 50%;
  max-width: 50%;
  min-width: 0;
  height: clamp(280px, 38vh, 420px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.arch-tower {
  border-top: 2px solid var(--accent);
}

.arch-dome {
  border-top: 2px solid var(--industrial);
}

.arch-card-header {
  margin-bottom: 0.6rem;
}

.arch-card-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.arch-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

.arch-card-desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.arch-pros,
.arch-cons {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.arch-pros {
  margin-bottom: 0.5rem;
}

.arch-pros li,
.arch-cons li {
  font-size: 0.72rem;
  line-height: 1.4;
  padding-left: 0.85rem;
  position: relative;
}

.arch-pros li {
  color: var(--text-secondary);
}

.arch-pros li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--success);
  font-family: var(--font-mono);
  font-weight: 600;
}

.arch-cons li {
  color: var(--text-muted);
}

.arch-cons li::before {
  content: '−';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Tech cards */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.tech-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

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

.tech-card-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.tech-card-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--industrial);
  margin-bottom: 0.75rem;
}

.tech-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.tech-card-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.tech-card-body {
  padding: 1.5rem 2rem 2rem;
}

.tech-card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.tech-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tech-features li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.tech-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tech-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.tech-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Compute section */
.compute {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.compute-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.compute-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s;
}

.pillar:hover {
  border-color: var(--border-strong);
}

.pillar-primary {
  border-left: 3px solid var(--accent);
}

.pillar-secondary {
  border-left: 3px solid var(--industrial);
}

.pillar-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.pillar-primary .pillar-label {
  color: var(--accent);
}

.pillar-secondary .pillar-label {
  color: var(--industrial);
}

.pillar h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.pillar p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.compute-visual {
  position: relative;
}

.compute-visual img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compute-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.metric-box .metric-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 0.25rem;
}

.metric-box .metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Prototype */
.prototype-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.prototype-gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}

.prototype-gallery .gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.prototype-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.prototype-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

.prototype-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.prototype-info h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.prototype-info p,
.prototype-info li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.prototype-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prototype-info li {
  padding-left: 1.25rem;
  position: relative;
}

.prototype-info li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Scale path */
.scale {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.scale-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.scale-timeline::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--industrial), var(--success));
}

.phase {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  padding-top: 3.5rem;
}

.phase-marker {
  position: absolute;
  top: 1.75rem;
  left: 2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-elevated);
}

.phase:nth-child(1) .phase-marker { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.phase:nth-child(2) .phase-marker { background: var(--industrial); box-shadow: 0 0 12px var(--industrial-dim); }
.phase:nth-child(3) .phase-marker { background: var(--success); box-shadow: 0 0 12px rgba(16, 185, 129, 0.25); }

.phase-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.phase h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.phase-funding {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 1rem;
}

.phase p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.phase-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.phase-deliverables li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.phase-deliverables li::before {
  content: '□';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.65rem;
}

/* Strategy */
.strategy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.strategy-content h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.strategy-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.strategy-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.highlight-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
}

.strategy-map img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* Vision gallery */
.vision {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vision-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  group: vision;
}

.vision-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.vision-card:hover img {
  transform: scale(1.08);
}

.vision-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 10, 15, 0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.vision-card-overlay h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.vision-card-overlay p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.vision-statement {
  text-align: center;
  max-width: 70ch;
  margin: 4rem auto 0;
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.vision-statement p {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

.vision-statement strong {
  color: var(--accent-bright);
  font-weight: 500;
}

/* Contact */
.contact {
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact-item-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.contact-item-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-item-text a {
  color: var(--accent-bright);
}

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.form-submit:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-brand:hover .footer-logo-img {
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav */
@media (max-width: 1024px) {
  .tech-grid,
  .compute-layout,
  .strategy-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .scale-timeline {
    grid-template-columns: 1fr;
  }

  .scale-timeline::before {
    display: none;
  }

  .prototype-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .prototype-gallery .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }

  .vision-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(6, 10, 15, 0.98);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav.mobile-open .nav-cta {
    display: block;
    position: absolute;
    top: calc(var(--nav-height) + 280px);
    left: 2rem;
    right: 2rem;
    text-align: center;
  }

  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-layout {
    min-height: 0;
  }

  .hero-content {
    width: 100%;
    height: auto;
    min-height: 0;
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 2rem;
  }

  .hero-media {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 320px;
  }

  .hero-media-fade {
    background: linear-gradient(180deg, var(--bg-deep) 0%, transparent 15%);
  }

  .architecture-row,
  .architecture-row-reverse {
    flex-direction: column;
  }

  .architecture-row-reverse .arch-card {
    order: 2;
  }

  .architecture-row-reverse .architecture-visual {
    order: 1;
  }

  .architecture-visual {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: clamp(200px, 32vh, 280px);
  }

  .arch-card {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .prototype-gallery,
  .vision-grid,
  .prototype-info,
  .compute-metrics {
    grid-template-columns: 1fr;
  }

  .prototype-gallery .gallery-item:first-child {
    grid-column: span 1;
  }

  .hero-concept-label {
    right: 1rem;
    top: calc(var(--nav-height) + 1rem);
    font-size: 0.6rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}