@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@700;800&display=swap");

:root {
  --bg: #ffffff;
  --bg-soft: #f2f5f8;
  --panel: #ffffff;
  --text: #15202e;
  --muted: #5b6776;
  --line: #dde2e8;
  --navy: #0b2a4d;
  --black: #0a0d12;
  --accent: #c1272d;
  --shadow: 0 12px 32px rgba(11, 42, 77, 0.08);
  --radius: 6px;
  --font-display: "Orbitron", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--black);
  border-top: 3px solid var(--accent);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  font-variant-caps: small-caps;
  color: #fff;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 2px;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px;
  background: #fff;
}

/* Shared containers */
.hero,
.page-hero,
.section,
.statement,
.content-grid,
.contact-grid,
.timeline {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Section bands (full-bleed backgrounds used as dividers between sections) */
.band {
  width: 100%;
  padding: 48px 0;
}

.band-soft {
  background: var(--bg-soft);
}

.band-navy {
  background: var(--navy);
  color: #fff;
}

.band-navy .content-block h2,
.band-navy .content-block h3 {
  color: #fff;
}

.band-navy .content-block p {
  color: rgba(255, 255, 255, 0.82);
}

.band-navy .content-block ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.founder-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
}

.founder-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-portrait p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 64px 24px 22px;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0) 0%, rgba(10, 13, 18, 0.78) 100%);
  font-weight: 800;
  color: #fff;
}

.founder-portrait p span {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Type */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  font-weight: 800;
  color: var(--navy);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
}

/* Used to render "MAProLab" within all-caps text with the lowercase
   letters (ro, ab) as small caps instead of full-size capitals */
.brand-caps {
  text-transform: none;
  font-variant-caps: small-caps;
}

.hero-text,
.page-hero p,
.section-heading p,
.content-block p,
.timeline-item p,
.contact-card p,
.card p {
  color: var(--muted);
}

/* Home banner / hero */
.home-banner {
  background: var(--black);
}

.home-banner-image {
  position: relative;
  width: 100%;
  min-height: 60vh;
  max-height: 640px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.home-banner-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-banner-overlay {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius);
}

.home-banner-overlay h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  font-weight: 800;
}

.banner-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-style: italic;
}

.banner-visual {
  display: grid;
  place-items: center;
}

.visual-frame {
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(11, 42, 77, 0.06) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(11, 42, 77, 0.06) 0 1px, transparent 1px 32px),
    #ffffff;
}

/* Secondary hero */
.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-text {
  max-width: 620px;
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.button.primary {
  background: var(--navy);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--navy);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-panel-image {
  width: 100%;
  min-height: 360px;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero-panel p {
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

/* Sections / cards */
.section {
  padding: 72px 0;
}

.section.compact {
  padding-top: 32px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.card,
.side-panel,
.contact-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.card {
  padding: 28px;
}

.card-number {
  display: inline-block;
  color: var(--accent);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 48px;
}

/* Statement / callout */
.statement {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 32px;
  align-items: center;
}

.statement .eyebrow {
  color: #f3b9bb;
}

.statement h2 {
  margin-bottom: 0;
  color: #fff;
}

.statement p {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Page hero */
.page-hero {
  padding: 72px 0 40px;
  max-width: 900px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--navy);
}

.page-hero p {
  font-size: 1.1rem;
}

/* Page banner (photo header) */
.page-banner {
  background: var(--black);
}

.page-banner-image {
  position: relative;
  width: 100%;
  min-height: 38vh;
  max-height: 440px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.page-banner-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.page-banner-overlay {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  max-width: 980px;
  padding: 48px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.25), rgba(10, 13, 18, 0.72));
}

.page-banner-overlay h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  font-weight: 800;
  color: #fff;
}

.page-banner-overlay p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Content / contact grids */
.content-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  padding-bottom: 48px;
}

.contact-grid.contact-single {
  grid-template-columns: 1fr;
}

.contact-single .contact-card {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.content-block {
  padding: 32px 0;
}

.side-panel,
.contact-card {
  padding: 28px;
}

.side-panel h3,
.contact-card h2 {
  color: var(--navy);
}

.side-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 18px;
  padding: 16px 0 88px;
}

.timeline-item {
  padding: 30px;
  display: grid;
  grid-template-columns: 160px 0.6fr 1fr;
  gap: 24px;
  align-items: start;
}

.timeline-item h2 {
  font-size: 1.5rem;
}

.timeline-item span {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.contact-details {
  margin-top: 24px;
}

/* Footer */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  color: #fff;
}

.footer-inner p {
  margin: 4px 0 0;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.footer-meta a:hover,
.contact-details a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  font-size: 0.85rem;
  text-align: center;
}

/* Scroll-triggered reveal animation */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .cards .reveal:nth-child(2),
.js .timeline .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.js .cards .reveal:nth-child(3),
.js .timeline .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: var(--black);
    box-shadow: var(--shadow);
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    border-bottom: none;
    padding: 10px 8px;
    border-radius: 4px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.08);
  }

  .brand-text small {
    display: none;
  }

  .hero-grid,
  .content-grid,
  .contact-grid,
  .statement {
    grid-template-columns: 1fr;
  }

  .home-banner-image {
    min-height: 48vh;
  }

  .cards,
  .cards.two {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }
}
