/* Chapter House Applied AI microsite v0.3
   Deck-style static microsite. No external dependencies. */

:root {
  --ink: #061019;
  --navy: #071b29;
  --panel: rgba(7, 23, 35, 0.54);
  --panel-strong: rgba(7, 23, 35, 0.62);
  --panel-line: rgba(105, 167, 194, 0.28);
  --warm: #e6ddcc;
  --warm-muted: #cfc5b5;
  --white: #ffffff;
  --gold: #d6ad38;
  --teal: #54b8c8;
  --shadow: rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--ink);
  color: var(--warm);
  font-family: Aptos, "Aptos Display", "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

a {
  color: var(--white);
}

.page {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 16, 25, 0.62) 0%, rgba(6, 16, 25, 0.42) 46%, rgba(6, 16, 25, 0.28) 100%),
    linear-gradient(180deg, rgba(6, 16, 25, 0.40) 0%, rgba(6, 16, 25, 0.16) 44%, rgba(6, 16, 25, 0.48) 100%);
}

.home { --bg: url("../img/home-boardroom.png"); }
.why { --bg: url("../img/why-control-desk.png"); }
.workflows { --bg: url("../img/workflow-evidence.png"); }
.operational { --bg: url("../img/operational-control.png"); }
.start { --bg: url("../img/where-to-start-path.png"); }
.contact { --bg: url("../img/contact-golden-path.png"); }

.shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 26px 0 28px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
}

.site-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 173, 56, 0.82);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-name {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-note {
  display: block;
  color: var(--warm);
  margin-top: 2px;
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 750;
}

.nav a {
  color: var(--warm);
  text-decoration: none;
  opacity: 0.90;
}

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

.nav .nav-cta {
  border: 1px solid rgba(214, 173, 56, 0.62);
  border-radius: 999px;
  color: var(--white);
  padding: 9px 14px;
}

.stage {
  min-height: 0;
  display: grid;
  align-items: center;
}

.content-panel {
  width: min(790px, 100%);
  max-height: calc(100svh - 150px);
  overflow: auto;
  padding: clamp(26px, 4.3vw, 50px);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  box-shadow: 0 18px 56px var(--shadow);
  backdrop-filter: blur(3px);
}

.content-panel.wide {
  width: min(1010px, 100%);
}

.content-panel::-webkit-scrollbar {
  width: 8px;
}

.content-panel::-webkit-scrollbar-thumb {
  background: rgba(230, 221, 204, 0.25);
  border-radius: 999px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 850;
}

h1,
h2 {
  margin: 0;
  color: var(--white);
  letter-spacing: -0.035em;
}

h1 {
  max-width: 860px;
  font-size: clamp(43px, 6.2vw, 78px);
  line-height: 0.98;
}

h2 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
}

.lead {
  margin: 22px 0 0;
  color: var(--warm);
  max-width: 760px;
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.32;
}

.body {
  margin-top: 22px;
  max-width: 780px;
  color: var(--warm);
  font-size: 18px;
}

.body p {
  margin: 0 0 13px;
}

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

.signature {
  margin-top: 24px;
  padding: 14px 0 14px 18px;
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(214,173,56,0.10), rgba(214,173,56,0.00));
  color: var(--white);
  font-size: 18px;
}

.card-grid {
  margin-top: 24px;
  display: grid;
  gap: 13px;
}

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

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  min-height: 118px;
  padding: 17px;
  border: 1px solid rgba(105, 167, 194, 0.30);
  background: rgba(9, 32, 48, 0.48);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.18;
}

.card p {
  margin: 0;
  color: var(--warm);
  font-size: 15px;
}

.card.teal h3 {
  color: var(--teal);
}

.callout {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: rgba(6, 16, 25, 0.26);
  color: var(--white);
  font-size: 18px;
}

.actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.action-note {
  color: var(--warm-muted);
  font-size: 14px;
  font-weight: 600;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #061019;
  border: 1px solid rgba(214,173,56,0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.button.secondary {
  background: rgba(6,16,25,0.10);
  color: var(--white);
  border-color: rgba(230,221,204,0.32);
}

.bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  align-items: center;
}

.bottom-nav a,
.bottom-nav span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}


.bottom-nav a {
  background: var(--gold);
  border: 1px solid rgba(214, 173, 56, 0.90);
  color: #061019;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(3px);
}

.bottom-nav a:hover {
  background: #e2bb45;
  border-color: rgba(230, 221, 204, 0.55);
}

.bottom-nav span {
  color: var(--warm-muted);
}

.footer-line {
  color: rgba(230,221,204,0.72);
  font-size: 12px;
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }

  .shell {
    width: min(100% - 30px, 900px);
  }

  .content-panel,
  .content-panel.wide {
    width: 100%;
    max-height: none;
  }

  .card-grid.two,
  .card-grid.three,
  .card-grid.five {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    position: sticky;
    bottom: 10px;
    z-index: 4;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 900px);
    padding-top: 18px;
  }

  .brand-note {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 33px;
  }

  .content-panel {
    padding: 22px;
  }

  .lead {
    font-size: 19px;
  }

  .body {
    font-size: 16px;
  }
}

@media (max-height: 780px) and (min-width: 1001px) {
  .shell {
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .site-header {
    min-height: 40px;
  }

  .content-panel {
    max-height: calc(100svh - 124px);
    padding: 30px;
  }

  h1 {
    font-size: clamp(40px, 5.4vw, 66px);
  }

  h2 {
    font-size: clamp(32px, 4.4vw, 52px);
  }

  .lead {
    margin-top: 18px;
    font-size: clamp(18px, 1.9vw, 24px);
  }

  .body {
    margin-top: 18px;
    font-size: 16px;
  }

  .card {
    min-height: 96px;
    padding: 14px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 14px;
  }

  .callout,
  .signature {
    margin-top: 18px;
    font-size: 16px;
  }
}
