:root {
  --black: #0d0d0d;
  --black-2: #141211;
  --black-3: #1b1716;
  --paper: #f5f2ee;
  --paper-2: #e8e4de;
  --muted: #8c8379;
  --line: rgba(245, 242, 238, 0.14);
  --line-dark: rgba(13, 13, 13, 0.12);
  --wine: #8b1a1a;
  --wine-soft: #391010;
  --green: #31513a;
  --green-soft: #e3eadf;
  --red-soft: #efe0dc;
  --bronze: #a5794f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--paper);
  font-family: var(--sans);
}

body {
  overflow: hidden;
}

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

button {
  font: inherit;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li {
  margin: 0.45rem 0;
}

.deck-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.side-nav {
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(139, 26, 26, 0.15), transparent 34%),
    #090909;
  padding: 28px 22px 22px;
  overflow: hidden;
}

.logo-link {
  display: block;
  width: 172px;
  margin-bottom: 32px;
}

.logo-link img,
.cover-logo {
  display: block;
  width: 100%;
  height: auto;
}

.menu-groups {
  display: grid;
  gap: 13px;
  overflow-y: auto;
  padding-right: 4px;
}

.menu-groups details {
  border-top: 1px solid rgba(245, 242, 238, 0.09);
  padding-top: 12px;
}

.menu-groups summary {
  cursor: pointer;
  color: var(--wine);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  list-style: none;
  text-transform: uppercase;
}

.menu-groups summary::-webkit-details-marker {
  display: none;
}

.menu-groups a {
  display: block;
  border-left: 1px solid transparent;
  margin-top: 8px;
  padding: 5px 0 5px 12px;
  color: rgba(245, 242, 238, 0.66);
  font-size: 0.82rem;
  line-height: 1.35;
}

.menu-groups a:hover,
.menu-groups a.is-current {
  border-left-color: var(--wine);
  color: var(--paper);
}

.nav-footer {
  margin-top: auto;
  border-top: 1px solid rgba(245, 242, 238, 0.1);
  padding-top: 18px;
  color: rgba(245, 242, 238, 0.54);
  font-size: 0.75rem;
}

.nav-footer span {
  display: block;
  margin-bottom: 6px;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.deck-stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--paper);
  color: var(--black);
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(139, 26, 26, 0.055), transparent 30%),
    var(--paper);
}

.slide.is-active {
  display: block;
}

.dark-slide {
  background:
    linear-gradient(150deg, rgba(139, 26, 26, 0.18), transparent 38%),
    var(--black);
  color: var(--paper);
}

.slide-inner {
  min-height: 100vh;
  width: min(1120px, calc(100% - 72px));
  margin: 0 auto;
  padding: 54px 0 104px;
}

.slide-heading {
  max-width: 850px;
  margin-bottom: 28px;
}

.page-label,
.kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.slide-heading h2,
.cover-copy h1,
.marcos-layout h2 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5.6vw, 5.7rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0;
}

.slide-heading p,
.lead,
.cover-copy p {
  max-width: 740px;
  margin-top: 16px;
  color: rgba(13, 13, 13, 0.66);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.dark-slide .slide-heading p,
.dark-slide .lead {
  color: rgba(245, 242, 238, 0.68);
}

.cover-slide {
  background: var(--black);
  color: var(--paper);
}

.cover-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.96), rgba(13, 13, 13, 0.68) 42%, rgba(13, 13, 13, 0.38)),
    url("assets/bull-prime-hero.png") center / cover;
  transform: scale(1.02);
}

.cover-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(280px, 0.62fr);
  gap: 72px;
  align-items: end;
}

.cover-logo {
  width: 244px;
  margin-bottom: 72px;
}

.cover-copy h1 {
  font-size: clamp(4.6rem, 10vw, 10rem);
}

.cover-copy p {
  color: rgba(245, 242, 238, 0.76);
}

.quote-panel {
  border-left: 2px solid var(--wine);
  padding: 20px 0 20px 24px;
}

.quote-panel span {
  display: block;
  margin-bottom: 12px;
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quote-panel strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 300;
  line-height: 1;
}

.toc-grid,
.metric-grid,
.visual-grid,
.pillar-grid,
.channel-grid,
.product-grid,
.glossary-grid,
.copy-grid {
  display: grid;
  gap: 14px;
}

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

.toc-grid a,
.content-card,
.metric-grid article,
.feature-card,
.copy-grid article,
.pillar-grid article,
.channel-grid article,
.product-grid article,
.portrait-card {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 20px;
}

.toc-grid a {
  min-height: 112px;
}

.toc-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.toc-grid span {
  color: #3f3833;
  font-weight: 600;
}

.dark-slide .content-card,
.dark-slide .feature-card,
.dark-slide .portrait-card,
.dark-slide .channel-grid article,
.dark-slide .product-grid article,
.dark-slide .glossary-grid p {
  border-color: var(--line);
  background: var(--black-2);
}

.content-card h3,
.feature-card h3,
.channel-grid h3,
.product-grid h3 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  font-weight: 300;
  line-height: 1;
}

.content-card p,
.content-card li,
.feature-card p,
.channel-grid p,
.product-grid p {
  color: rgba(13, 13, 13, 0.66);
  line-height: 1.65;
}

.dark-slide .content-card p,
.dark-slide .content-card li,
.dark-slide .feature-card p,
.dark-slide .channel-grid p,
.dark-slide .product-grid p {
  color: rgba(245, 242, 238, 0.68);
}

.content-card p + p {
  margin-top: 13px;
}

#sobre .slide-inner {
  padding-top: 42px;
}

#sobre .slide-heading {
  margin-bottom: 22px;
}

#sobre .slide-heading h2 {
  font-size: clamp(2.55rem, 5vw, 5rem);
}

#sobre .metric-grid {
  margin-bottom: 20px;
}

#sobre .metric-grid article {
  min-height: 102px;
  padding: 16px 20px;
}

#sobre .content-card {
  padding: 18px 20px;
}

#sobre .content-card p {
  line-height: 1.48;
}

#sobre .content-card p + p {
  margin-top: 9px;
}

.units-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.units-card h3 {
  grid-column: 1 / -1;
}

.units-card p + p {
  margin-top: 0 !important;
}

.content-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--wine);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}

.metric-grid article {
  min-height: 118px;
}

.metric-grid strong,
.pillar-grid strong {
  display: block;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.3rem);
  font-weight: 300;
  line-height: 0.8;
}

.metric-grid span,
.pillar-grid h3,
.product-grid span {
  display: block;
  margin-top: 12px;
  color: #5c534c;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.two-column,
.position-grid,
.marcos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 24px;
}

.position-grid {
  grid-template-columns: 1.15fr 1fr 1fr;
}

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

.feature-card {
  background:
    linear-gradient(145deg, rgba(139, 26, 26, 0.34), rgba(20, 18, 17, 0.98)),
    var(--black-2);
  color: var(--paper);
}

.feature-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.warning-card {
  border-color: rgba(139, 26, 26, 0.36) !important;
  background: #180d0b !important;
  color: var(--paper);
}

.warning-card p,
.warning-card li {
  color: rgba(245, 242, 238, 0.65) !important;
}

.typography-card {
  min-height: 420px;
}

.serif-sample {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.6rem) !important;
  font-weight: 300;
}

.sans-sample {
  margin-top: 30px;
  font-family: var(--sans) !important;
  font-size: 2rem !important;
  font-weight: 500 !important;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.swatch-grid i {
  display: block;
  height: 82px;
  border: 1px solid rgba(13, 13, 13, 0.18);
  border-radius: 6px;
  background: var(--swatch);
}

.swatch-grid strong,
.swatch-grid span {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
}

.swatch-grid span {
  color: var(--wine);
}

.note {
  font-size: 0.92rem;
}

.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.word-bank span {
  border: 1px solid rgba(139, 26, 26, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--wine);
  background: rgba(139, 26, 26, 0.06);
  font-size: 0.82rem;
}

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

.copy-grid article,
.standalone {
  min-height: 220px;
}

.copy-grid span,
.standalone span {
  display: block;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.copy-grid p,
.standalone p {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  line-height: 1.13;
}

.copy-wrong {
  border-color: rgba(139, 26, 26, 0.28) !important;
  background: var(--red-soft) !important;
  color: #764034;
}

.copy-right {
  border-color: rgba(49, 81, 58, 0.28) !important;
  background: var(--green-soft) !important;
  color: var(--green);
}

.marcos-layout {
  align-items: center;
}

.marcos-layout .content-card {
  margin-top: 30px;
}

.portrait-card {
  overflow: hidden;
  padding: 0;
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.portrait-card figcaption {
  padding: 18px 20px;
  color: rgba(245, 242, 238, 0.64);
  font-size: 0.82rem;
}

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

.pillar-grid article {
  min-height: 250px;
}

.pillar-grid p {
  margin-top: 12px;
  color: rgba(13, 13, 13, 0.62);
  line-height: 1.55;
}

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

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

.product-grid article {
  min-height: 170px;
}

.product-grid span {
  margin: 0 0 11px;
  color: var(--wine);
}

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

.glossary-grid p {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--black-2);
  padding: 20px;
  color: rgba(245, 242, 238, 0.66);
}

.glossary-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--paper);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deck-controls {
  position: fixed;
  right: 28px;
  top: 24px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.deck-controls button {
  min-width: 112px;
  min-height: 42px;
  border: 1px solid rgba(139, 26, 26, 0.35);
  border-radius: 0;
  background: var(--wine);
  color: var(--paper);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.deck-controls button:first-child {
  border-color: rgba(13, 13, 13, 0.18);
  background: rgba(13, 13, 13, 0.86);
}

.deck-controls button:disabled {
  cursor: default;
  opacity: 0.38;
}

.dark-slide ~ .deck-controls button:first-child {
  border-color: rgba(245, 242, 238, 0.16);
}

@media (max-width: 1060px) {
  body {
    overflow: auto;
  }

  .deck-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    max-height: 42vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 18px 14px;
  }

  .logo-link {
    width: 142px;
    margin-bottom: 16px;
  }

  .menu-groups {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  .menu-groups details {
    min-width: 190px;
  }

  .nav-footer {
    display: none;
  }

  .deck-stage {
    height: auto;
    min-height: 58vh;
    overflow: visible;
  }

  .slide {
    position: relative;
    min-height: 100vh;
  }

  .slide:not(.is-active) {
    display: none;
  }

  .slide-inner {
    width: min(100% - 32px, 1120px);
    padding: 50px 0 108px;
  }

  .cover-layout,
  .two-column,
  .position-grid,
  .marcos-layout,
  .visual-grid,
  .pillar-grid,
  .channel-grid,
  .product-grid,
  .toc-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .side-nav {
    max-height: 48vh;
  }

  .slide-inner {
    width: min(100% - 28px, 1120px);
  }

  .cover-layout,
  .two-column,
  .position-grid,
  .marcos-layout,
  .visual-grid,
  .pillar-grid,
  .channel-grid,
  .product-grid,
  .toc-grid,
  .metric-grid,
  .copy-grid,
  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .cover-logo {
    width: 190px;
    margin-bottom: 44px;
  }

  .quote-panel {
    margin-top: 28px;
  }

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

  .deck-controls {
    left: 14px;
    right: 14px;
    top: auto;
    bottom: 14px;
  }

  .deck-controls button {
    flex: 1;
    min-width: 0;
  }
}
