/* Invictus Animus — house style
   Brand (immutable): IA Brown #604840, IA Gold #D8B028, Off-white #F8F8F8
   Font: Arial everywhere. */

:root {
  --ia-brown: #604840;
  --ia-gold: #D8B028;
  --ia-offwhite: #F8F8F8;
  --ink: #202020;
  --ink-soft: #4c4c4c;
  --stripe: #EEEEEE;
  --teal: #2B6E7A;
  --teal-dark: #1E4F58;
  --navy: #1F3A5F;
  --navy-deep: #16283F;
  --ink-dark: #101B29;
  --rust: #A04030;
  --sage: #7A8B5A;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 0.93rem + 0.36vw, 1.125rem);
  color: var(--ink);
  background: var(--ia-offwhite);
  line-height: 1.6;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.01em; }

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

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-dark);
  border-bottom: 3px solid var(--ia-gold);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ia-offwhite);
  text-decoration: none;
}

.nav .brand img { height: 44px; width: 44px; border-radius: 6px; }

.nav .brand .name { font-weight: bold; font-size: 1.05rem; letter-spacing: 0.02em; }
.nav .brand .tag { display: block; font-size: 0.72rem; color: #9fb3c8; font-weight: normal; }

.nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav ul a {
  color: var(--ia-offwhite);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav ul a:hover { background: rgba(216, 176, 40, 0.15); color: var(--ia-gold); }
.nav ul a.active { color: var(--ia-gold); }

.nav ul a.cta {
  background: var(--ia-gold);
  color: var(--ink-dark);
  font-weight: bold;
}
.nav ul a.cta:hover { background: #e6c145; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--ia-offwhite);
  background:
    linear-gradient(100deg, rgba(16, 27, 41, 0.96) 0%, rgba(22, 40, 63, 0.85) 45%, rgba(30, 79, 88, 0.55) 100%),
    url("../img/header_BG-3-scaled.jpg") center / cover no-repeat;
  padding: 110px 0 120px;
}

.hero .kicker {
  color: var(--ia-gold);
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 760px;
  margin-bottom: 20px;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 620px;
  color: #dbe4ee;
  margin-bottom: 34px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn.gold { background: var(--ia-gold); color: var(--ink-dark); }
.btn.gold:hover { background: #e6c145; text-decoration: none; }

.btn.ghost {
  border: 2px solid var(--ia-offwhite);
  color: var(--ia-offwhite);
  margin-left: 12px;
}
.btn.ghost:hover { border-color: var(--ia-gold); color: var(--ia-gold); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
section.alt { background: #fff; }
section.dark { background: linear-gradient(120deg, var(--ink-dark) 0%, var(--navy-deep) 100%); color: var(--ia-offwhite); }

.section-head { margin-bottom: 44px; }
.section-head p { max-width: 760px; }

.section-head .kicker {
  color: var(--teal);
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

section.dark .section-head .kicker { color: var(--ia-gold); }

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 8px 0 12px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--ia-gold);
  margin-top: 12px;
  border-radius: 2px;
}

.section-head p { color: var(--ink-soft); }
section.dark .section-head p { color: #c3d0dd; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--stripe);
  border-top: 4px solid var(--ia-gold);
  border-radius: 14px;
  padding: 0 0 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(16, 27, 41, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 27, 41, 0.16);
}

.card .card-photo {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 18px;
}

.card h3, .card p { padding: 0 24px; }

.cards .card:nth-child(4n+2) { border-top-color: var(--teal); }
.cards .card:nth-child(4n+3) { border-top-color: var(--rust); }
.cards .card:nth-child(4n+4) { border-top-color: var(--sage); }

section.alt .card { background: var(--ia-offwhite); }

.card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }


/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery figure {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stripe);
  box-shadow: 0 2px 8px rgba(16, 27, 41, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 27, 41, 0.18);
}

.gallery img { width: 100%; height: 230px; object-fit: cover; }

.gallery figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 3px solid var(--teal);
}

.gallery figure:nth-child(3n+2) figcaption { border-top-color: var(--ia-gold); }
.gallery figure:nth-child(3n) figcaption { border-top-color: var(--sage); }

/* ---------- Split (who we are) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split .photo img { border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }

.split .section-head h2 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); white-space: nowrap; }

@media (max-width: 820px) {
  .split .section-head h2 { white-space: normal; }
}

.split p { margin-bottom: 16px; color: #c3d0dd; }
.split strong { color: var(--ia-offwhite); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Why list ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.why .item {
  border-left: 4px solid var(--ia-gold);
  padding: 4px 0 4px 18px;
}

.why .item:nth-child(4n+2) { border-left-color: var(--teal); }
.why .item:nth-child(4n+3) { border-left-color: var(--rust); }
.why .item:nth-child(4n+4) { border-left-color: var(--sage); }

.why .item h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.why .item p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: var(--ia-offwhite);
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.cta-band p { color: #c3d0dd; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Bios ---------- */
.bio {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  background: #fff;
  border: 1px solid var(--stripe);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(16, 27, 41, 0.08);
}

.bio .portrait {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bio .portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio .portrait img.mark { width: 60%; height: auto; opacity: 0.9; }

.bio h3 { color: var(--navy); font-size: 1.4rem; }
.bio .role { color: var(--teal); font-weight: bold; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.bio p { color: var(--ink-soft); margin-bottom: 14px; }

.bio h4 { color: var(--navy); margin: 10px 0 8px; font-size: 1rem; }

.bio ul { padding-left: 20px; color: var(--ink-soft); font-size: 0.93rem; }
.bio ul li { margin-bottom: 5px; }

@media (max-width: 720px) {
  .bio { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--stripe);
  border-top: 4px solid var(--ia-gold);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(16, 27, 41, 0.08);
}

.contact-grid .contact-card:nth-child(3n+2) { border-top-color: var(--teal); }
.contact-grid .contact-card:nth-child(3n) { border-top-color: var(--sage); }

.contact-card h3 { color: var(--navy); margin-bottom: 8px; }
.contact-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.contact-card a.email { font-weight: bold; word-break: break-all; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    linear-gradient(100deg, rgba(16, 27, 41, 0.96) 0%, rgba(30, 79, 88, 0.72) 100%),
    url("../img/header_BG-3-scaled.jpg") center / cover no-repeat;
  color: var(--ia-offwhite);
  padding: 64px 0;
}

.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero p { color: #c3d0dd; max-width: 640px; margin-top: 10px; }
.page-hero p strong { color: var(--ia-gold); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink-dark);
  color: #9fb3c8;
  padding: 40px 0 28px;
  border-top: 3px solid var(--ia-gold);
  font-size: 0.9rem;
}

footer .cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

footer .brandline { display: flex; align-items: center; gap: 12px; }
footer .brandline img { height: 40px; width: 40px; border-radius: 6px; }
footer .brandline .name { color: var(--ia-offwhite); font-weight: bold; }

footer nav a { color: #9fb3c8; margin-left: 18px; }
footer nav a:hover { color: var(--ia-gold); }

footer .legal { border-top: 1px solid rgba(248, 248, 248, 0.12); padding-top: 18px; font-size: 0.8rem; }

/* ---------- Mobile nav (hamburger) ---------- */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid rgba(248, 248, 248, 0.25);
  border-radius: 8px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ia-offwhite);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .menu-btn { display: flex; }

  .nav { flex-wrap: wrap; padding: 8px 16px; }

  .nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 2px;
    padding: 10px 0 12px;
  }

  .nav.open ul { display: flex; }

  .nav ul a { display: block; padding: 12px 14px; font-size: 1.05rem; }

  .nav ul a.cta { text-align: center; margin-top: 6px; }

  .hero { padding: 70px 0 80px; }
  .btn.ghost { margin-left: 0; margin-top: 12px; }
}


/* ---------- Simulation showcase ---------- */
.sim-showcase video {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 10px 32px rgba(16, 27, 41, 0.45);
  border: 1px solid var(--navy-deep);
}

.sim-showcase .vidcap {
  color: #c3d0dd;
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 860px;
}

/* ---------- Chamber measurements (coming soon) ---------- */
.measure-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: start;
}

.measure .section-head { margin-bottom: 20px; }

.badge-soon {
  display: inline-block;
  background: var(--ia-gold);
  color: var(--ink-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.measure-note { color: var(--ink-soft); margin-bottom: 24px; max-width: 760px; }

.chambers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.chamber {
  background: var(--ia-offwhite);
  border: 1px solid var(--stripe);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 16px 18px;
}

.chamber + .chamber { border-left-color: var(--ia-gold); }
.chamber h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.chamber p { color: var(--ink-soft); font-size: 0.95rem; }

.measure-list {
  list-style: none;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 24px;
}

.measure-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 0.97rem;
}

.measure-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--teal);
}

.measure-photo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stripe);
  box-shadow: 0 6px 24px rgba(16, 27, 41, 0.18);
  background: #fff;
}

.measure-photo img { width: 100%; height: auto; }

.measure-photo figcaption {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 3px solid var(--ia-gold);
}

@media (max-width: 820px) {
  .measure-grid { grid-template-columns: 1fr; gap: 32px; }
  .measure-photo img { max-height: 420px; object-fit: cover; }
}

/* ---------- Pardon our dust (measurements placeholder page) ---------- */
.dust-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.dust-art { margin: 0; max-width: 420px; justify-self: center; width: 100%; }
.dust-art svg { width: 100%; height: auto; display: block; }

.dust-text h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--navy);
  margin: 4px 0 16px;
}

.dust-text p { color: var(--ink-soft); margin-bottom: 14px; max-width: 520px; }
.dust-text .btn { margin-top: 12px; }

.btn.outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  margin-left: 12px;
}
.btn.outline:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }

@media (max-width: 820px) {
  .dust-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .dust-text p { margin-left: auto; margin-right: auto; }
  .dust-art { max-width: 300px; }
}

@media (max-width: 480px) {
  .btn.outline { margin-left: 0; }
}

/* ---------- Scroll reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Mobile contact pill ---------- */
.contact-pill { display: none; }

@media (max-width: 720px) {
  .contact-pill {
    display: inline-block;
    background: var(--ia-gold);
    color: var(--ink-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    margin-left: auto;
    margin-right: 10px;
  }

  .nav { align-items: center; }
  .nav .brand { margin-right: auto; }
  .nav .brand .name { font-size: 0.95rem; }
  .contact-pill { margin-left: 0; }
}
