/* Modern Full-Bleed Editorial Design — inspired by the NASA JPL palette
   from site/assets/{hero-banner,side-poster,emblem}.webp without dated boxes/frames. */

:root {
  --bg-light: #faf7f0;
  --bg-tinted: #f2ece0;
  --bg-card: #ffffff;
  --bg-dark: #0d1e2e;
  --bg-dark-deep: #091521;

  --ink: #112233;
  --ink-secondary: #435769;
  --ink-on-dark: #f7f3ea;
  --ink-on-dark-muted: rgba(247, 243, 234, 0.76);

  --terracotta: #d45d35;
  --terracotta-hover: #b84a26;
  --gold: #e0a63b;
  --teal: #1e737c;
  --forest: #2b6e50;

  --hairline: rgba(17, 34, 51, 0.09);
  --hairline-dark: rgba(247, 243, 234, 0.12);

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Translucent Sticky Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(11, 24, 38, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-dark);
}

.topbar-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-on-dark);
}

.brand:hover {
  color: var(--gold);
}

.brand-emblem {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-on-dark-muted);
}

.site-nav a:hover {
  color: var(--ink-on-dark);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0.22rem 0.68rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-on-dark-muted);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.is-active {
  background-color: var(--terracotta);
  color: #ffffff;
}

/* ---------- Full-Bleed Edge-to-Edge Hero ---------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 430px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--ink-on-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 48%;
  /* Slightly oversized to cleanly hide the artwork's built-in thin print border */
  transform: scale(1.06);
  pointer-events: none;
  user-select: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(9, 21, 33, 0.94) 0%,
      rgba(9, 21, 33, 0.88) 38%,
      rgba(9, 21, 33, 0.52) 63%,
      rgba(9, 21, 33, 0.16) 100%
    ),
    linear-gradient(
      180deg,
      rgba(9, 21, 33, 0.25) 0%,
      rgba(9, 21, 33, 0) 30%,
      rgba(9, 21, 33, 0) 76%,
      rgba(9, 21, 33, 0.62) 100%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

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

.hero-identity {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.portrait {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid rgba(247, 243, 234, 0.48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.hero-eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-role {
  margin: 0.3rem 0 0;
  font-size: 1.06rem;
  font-weight: 500;
  color: rgba(247, 243, 234, 0.9);
}

.hero-lead {
  margin: 1.35rem 0 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(247, 243, 234, 0.86);
}

.hero-availability {
  margin: 1.25rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(247, 243, 234, 0.92);
}

.hero-availability.is-booked {
  padding: 0.42rem 0.95rem;
  background-color: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: var(--radius-pill);
  color: #fee2e2;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #4cc38a;
  box-shadow: 0 0 0 4px rgba(76, 195, 138, 0.22);
  flex-shrink: 0;
}

.hero-availability.is-booked .status-dot {
  background-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.32);
}

.hero-actions {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--terracotta);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--terracotta-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(247, 243, 234, 0.3);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(247, 243, 234, 0.55);
  color: #ffffff;
}

.btn-link-light {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  color: var(--gold);
}

.btn-link-light:hover {
  color: #ffffff;
}

/* ---------- Full-Bleed Alternating Bands ---------- */

.band {
  width: 100%;
  padding: 5rem 0;
}

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

.band-tinted {
  background-color: var(--bg-tinted);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.band-dark {
  background-color: var(--bg-dark);
  color: var(--ink-on-dark);
}

.section-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--terracotta);
}

.section-kicker-light {
  color: var(--gold);
}

.section-intro {
  margin-bottom: 2.25rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
  color: var(--ink-secondary);
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- Band 1: About & Mission + Sticky Poster ---------- */

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 4rem;
  align-items: start;
}

.editorial-copy {
  max-width: 65ch;
}

.section-block + .section-block {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--hairline);
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background-color: rgba(43, 110, 80, 0.1);
  color: #1f553d;
}

.aside-sticky {
  position: sticky;
  top: 5.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.poster-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(13, 30, 46, 0.16);
}

.side-poster {
  width: 100%;
  /* Slightly scaled so the built-in thin print margin bleeds out cleanly */
  transform: scale(1.035);
}

.quick-facts h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.quick-facts dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quick-facts dl > div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
}

.quick-facts dl > div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.quick-facts dt {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.quick-facts dd {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.quick-facts dd.glance-booked {
  color: #b91c1c;
  font-weight: 600;
}

/* ---------- Band 2: Selected Engineering Work (1 Featured + 2x2 Grid) ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.85rem;
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(13, 30, 46, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13, 30, 46, 0.08);
}

.work-card-featured {
  grid-column: 1 / -1;
}

.work-card-top {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}

.work-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--terracotta);
  flex-shrink: 0;
}

.work-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.work-card p {
  font-size: 0.94rem;
  line-height: 1.66;
}

.work-tags {
  margin-top: auto;
  padding-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--teal);
}

/* ---------- Band 3: Stack & Interests ---------- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 2.5rem;
}

.stack-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.stack-item p {
  font-size: 0.94rem;
  line-height: 1.64;
}

.interests-block {
  margin-top: 3.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.interests-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.interests-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.interests-list li {
  padding: 0.4rem 0.95rem;
  background-color: var(--bg-tinted);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Band 4: Full-Bleed Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.band-dark h2 {
  color: #ffffff;
}

.band-dark p {
  color: var(--ink-on-dark-muted);
  max-width: 48ch;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline-dark);
}

.contact-list li:first-child {
  padding-top: 0;
}

.contact-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-list a {
  color: #ffffff;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--gold);
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--bg-dark-deep);
  border-top: 1px solid var(--hairline-dark);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.footer-emblem {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.site-footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-on-dark-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .editorial-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .editorial-aside {
    display: none;
  }

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

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

@media (max-width: 720px) {
  .container {
    padding: 0 1.25rem;
  }

  .site-nav {
    display: none;
  }

  .brand-text {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 0;
  }

  .hero-bg {
    object-position: 62% 50%;
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(9, 21, 33, 0.86) 0%,
      rgba(9, 21, 33, 0.78) 55%,
      rgba(9, 21, 33, 0.92) 100%
    );
  }

  .hero-inner {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .hero-identity {
    align-items: flex-start;
  }

  .portrait {
    width: 68px;
    height: 68px;
  }

  .band {
    padding: 3.5rem 0;
  }

  .work-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    padding: 1.4rem 1.35rem;
  }

  .contact-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .contact-list a {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-primary:hover,
  .work-card:hover {
    transform: none;
  }
}
