:root {
  --bg: #0a0908;
  --bg-raised: #12110e;
  --bg-card: #181611;
  --bg-inset: #0e0d0b;
  --gold: #c4a574;
  --gold-bright: #e4c99a;
  --gold-dim: #8d7348;
  --cream: #f4ead8;
  --text: #e7ddd0;
  --text-muted: #9d917f;
  --hairline: rgba(196, 165, 116, 0.24);
  --hairline-strong: rgba(196, 165, 116, 0.45);
  --error: #c45c4a;
  --error-bg: rgba(196, 92, 74, 0.12);
  --success: #8aaa72;
  --success-bg: rgba(138, 170, 114, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --max: 1180px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--gold-bright);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.01em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 500;
  margin: 0 0 1.2rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.45rem;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 40rem;
}

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(760px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--bg);
  padding: 0.5rem 0.9rem;
  z-index: 80;
}

.skip-link:focus {
  top: 0.6rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 9, 8, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}

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

.logo-mark {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--hairline);
  padding: 0.45rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

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

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

/* Hero variants */
.hero-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - var(--header-h));
  border-bottom: 1px solid var(--hairline);
}

.hero-copy {
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--hairline);
}

.hero-copy h1 {
  max-width: 14ch;
}

.hero-aside {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
}

.hero-aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
}

.hero-caption {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  background: rgba(10, 9, 8, 0.78);
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--hairline);
}

.hero-caption p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.text-link:hover::after {
  width: 3.4rem;
}

.page-hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--hairline);
}

.page-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}

.page-hero img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  border: 1px solid var(--hairline);
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1a140c;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #1a140c;
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
}

.btn-ghost:hover {
  background: rgba(196, 165, 116, 0.1);
  color: var(--gold-bright);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

/* Sections */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.muted {
  color: var(--text-muted);
}

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

/* Figures strip */
.figure-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--hairline);
}

.figure-item {
  padding: 2rem 1.4rem;
  border-right: 1px solid var(--hairline);
}

.figure-item:last-child {
  border-right: 0;
}

.figure-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--gold);
}

.figure-item span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}

.card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
}

.card img {
  width: 100%;
  height: 13.5rem;
  object-fit: cover;
  filter: saturate(0.78);
}

.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.card-meta {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.45rem;
}

.card h3 {
  font-size: 1.55rem;
}

.card h3 a {
  color: var(--cream);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--gold-bright);
}

/* Testimonials */
.quote-block {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.quote-block blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--cream);
}

.quote-block figcaption {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.review-stack {
  display: grid;
  gap: 1.3rem;
}

.review {
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  padding: 1.6rem 1.7rem;
}

.review.wide {
  padding: 2rem 2.2rem;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.review-attr {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Process / benefits */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.benefit-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hairline);
}

.benefit-list .num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.3rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--gold-dim);
  background: linear-gradient(180deg, #1d1a14 0%, #141210 100%);
}

.price-card .amount {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  margin: 0.6rem 0 0.2rem;
}

.price-card .amount span {
  font-size: 1rem;
  color: var(--text-muted);
}

.price-card ul {
  margin: 1.2rem 0 1.6rem;
  padding: 0 0 0 1.1rem;
  color: var(--text-muted);
  flex: 1;
}

.price-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1.6rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--hairline);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  min-height: 1.1em;
}

.form-status {
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.form-status.success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.form-status.error {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}

.form-status[hidden],
.field-error:empty {
  display: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
}

.address-block {
  border: 1px solid var(--hairline);
  padding: 1.6rem;
  background: var(--bg-raised);
}

.address-block address {
  font-style: normal;
  color: var(--text);
}

/* Article */
.article {
  padding: 3.5rem 0 5rem;
}

.article h2 {
  margin-top: 2.2rem;
}

.article figure {
  margin: 2rem 0;
}

.article figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.prose p + p {
  margin-top: 0.2rem;
}

/* Modules */
.module {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--hairline);
}

.module h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.instructor {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.6rem;
  align-items: center;
  border: 1px solid var(--hairline);
  padding: 1.3rem;
  background: var(--bg-raised);
}

.instructor img {
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.8);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--cream);
  list-style: none;
}

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

.faq details p {
  margin-top: 0.7rem;
  color: var(--text-muted);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

th {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--hairline);
  padding: 3.2rem 0 1.6rem;
  font-size: 0.92rem;
}

.footer-grid {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 0.9fr 0.9fr;
  gap: 2rem;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.copyright {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 2.4rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background: #16140f;
  border: 1px solid var(--hairline-strong);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin-inline: auto;
}

.cookie-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Errors / 404 */
.site-error {
  background: var(--error-bg);
  color: var(--error);
  border-bottom: 1px solid var(--error);
  padding: 0.7rem 1.2rem;
  font-size: 0.92rem;
}

.page-404 {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.2rem;
}

.page-404 .code {
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--gold);
  line-height: 1;
}

/* Case studies */
.case {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1.8rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--hairline);
}

.case img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  filter: saturate(0.75);
}

/* Legal */
.legal {
  padding: 3rem 0 5rem;
}

.legal h2 {
  margin-top: 2rem;
}

/* Media */
@media (max-width: 960px) {
  .hero-editorial,
  .page-hero--split,
  .split,
  .contact-layout,
  .price-grid,
  .card-grid.thirds,
  .figure-strip,
  .footer-grid,
  .case {
    grid-template-columns: 1fr;
  }

  .hero-editorial {
    min-height: 0;
  }

  .hero-copy {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .figure-item {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #100f0c;
    border-bottom: 1px solid var(--hairline);
    padding: 0.6rem 0 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 1.4rem;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

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

  .instructor {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
