:root {
  --bg: #0c0c0c;
  --bg-soft: #141414;
  --card: #181818;
  --line: rgba(255,255,255,.09);
  --text: #f3f3f3;
  --muted: #b8b8b8;
  --paper: #ffffff;
  --paper-text: #1c1c1c;
  --paper-muted: #666;
  --paper-line: rgba(17,17,17,.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 18%, rgba(255,255,255,.08), transparent 26%), radial-gradient(circle at 85% 10%, rgba(255,255,255,.05), transparent 22%), linear-gradient(180deg, #0a0a0a 0%, #101010 45%, #181818 100%);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: .02em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(12,12,12,.78);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  letter-spacing: .24rem;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.hero {
  padding: 5rem 0 2rem;
}

.eyebrow {
  display: inline-block;
  padding: .42rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  color: #d2d2d2;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .16rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: .92;
  margin-bottom: 1rem;
}

.hero p.lead {
  color: #d2d2d2;
  max-width: 760px;
  font-size: 1.06rem;
}

.btn-pill {
  border-radius: 999px;
  padding: .92rem 1.3rem;
  text-transform: uppercase;
  letter-spacing: .12rem;
  font-size: .8rem;
}

.btn-solid-light {
  background: #fff;
  color: #111;
  border: 1px solid #fff;
}

.btn-outline-light-soft {
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
}

.btn-outline-light-soft:hover, .btn-solid-light:hover {
  transform: translateY(-1px);
}

.overview-card, .cv-shell, .side-card {
  background: linear-gradient(180deg, #171717, #111111);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.overview-card {
  padding: 1.35rem;
}

.cv-shell {
  padding: 1.25rem;
}

.side-card {
  padding: 1.5rem;
  height: 100%;
}

.paper {
  background: var(--paper);
  color: var(--paper-text);
  border-radius: 22px;
  min-height: 1260px;
  padding: 3.2rem 3rem;
  position: relative;
  overflow: hidden;
}

.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), transparent 20%);
  pointer-events: none;
}

.paper-header {
  border-bottom: 1px solid var(--paper-line);
  padding-bottom: 1.35rem;
  margin-bottom: 2rem;
}

.paper-name {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: .95;
  margin-bottom: .45rem;
}

.paper-meta {
  text-transform: uppercase;
  letter-spacing: .14rem;
  font-size: .78rem;
  color: var(--paper-muted);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: .9rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--paper-line);
}

.cv-section + .cv-section {
  margin-top: 1.75rem;
}

.paper p, .paper li {
  color: #2a2a2a;
  line-height: 1.72;
  font-size: .98rem;
}

.paper ul {
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.paper li + li {
  margin-top: .25rem;
}

.tag {
  display: inline-block;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: .5rem .85rem;
  margin: .2rem .35rem .2rem 0;
  font-size: .78rem;
  letter-spacing: .05rem;
  text-transform: uppercase;
}

.print-toolbar {
  position: sticky;
  top: 88px;
}

.small-label {
  color: #a9a9a9;
  text-transform: uppercase;
  letter-spacing: .14rem;
  font-size: .74rem;
}

.note {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.stat-box {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255,255,255,.02);
}

.stat-number {
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
}

.divider-soft {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 1.25rem 0;
}

.clean-print-mode .topbar, .clean-print-mode .hero, .clean-print-mode .side-column, .clean-print-mode .screen-only {
  display: none !important;
}

.clean-print-mode {
  background: #e9e9e9;
}

.clean-print-mode .main-wrap {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.clean-print-mode .cv-shell {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.clean-print-mode .paper {
  max-width: 850px;
  margin: 0 auto;
  border-radius: 0;
  min-height: auto;
  box-shadow: 0 15px 50px rgba(0,0,0,.12);
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: 3.5rem;
  }
}

@media (max-width: 991.98px) {
  .paper {
    padding: 2rem 1.35rem;
    min-height: auto;
  }
}

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

@media (max-width: 991.98px) {
  .print-toolbar {
    position: static;
  }
}

.ref-product {
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 17, 17, .06);
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
  margin-top: var(--bs-gutter-y);
  margin-right: calc(var(--bs-gutter-x) * .5);
}

.ref-products {
  flex: 0 0 auto;
  width: 50%;
}

.reflow-product-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-.5 * var(--bs-gutter-x));
  margin-left: calc(-.5 * var(--bs-gutter-x));
  box-sizing: content-box;
  padding-left: calc(var(--bs-gutter-x) * .5);
}

.ref-product-data {
  padding: 1.5rem !important;
}

.reflow-product-list .ref-image, .reflow-product-list.ref-cards .ref-image {
  height: auto;
  aspect-ratio: 4/5;
  width: 110%;
  margin-left: -5%;
  filter: grayscale(100%);
  transition: filter 0.5s ease-in-out;
}

.reflow-product-list .ref-image, .reflow-product-list.ref-cards .ref-image:hover {
  filter: grayscale(0%);
}

@media (max-width: 992px) and (min-width:768px) {
  .reflow-product-list.ref-cards .ref-products {
    --ref-products-per-row: 2;
  }
}

.reflow-product .ref-media .ref-preview .ref-image.active {
  aspect-ratio: 4/5;
  height: auto;
}

.dark-section {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important;
}

.ref-cart-table {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important;
}

