:root {
  --premium-ink: #080e15;
  --premium-navy: #0c141e;
  --premium-panel: #111b26;
  --premium-panel-raised: #172330;
  --premium-rule: rgba(139, 158, 174, 0.2);
  --premium-rule-strong: rgba(184, 115, 51, 0.55);
  --premium-copper: #b87333;
  --premium-copper-light: #d99a61;
  --premium-bone: #f2efe9;
  --premium-muted: #94a2ae;
  --premium-max: 76rem;
}

html {
  background: var(--premium-ink);
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) center top / min(8vw, 7rem) 100%,
    var(--premium-ink);
  color: var(--premium-bone);
}

body::selection {
  background: rgba(184, 115, 51, 0.45);
  color: #fff;
}

.premium-page-progress {
  background: rgba(255, 255, 255, 0.08);
  height: 2px;
  inset: 0 0 auto;
  pointer-events: none;
  position: fixed;
  z-index: 120;
}

.premium-page-progress span {
  background: linear-gradient(90deg, #7e4722, var(--premium-copper-light));
  display: block;
  height: 100%;
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
  width: 100%;
}

.premium-page-rail {
  align-items: center;
  bottom: 2.5rem;
  display: flex;
  gap: 0.8rem;
  pointer-events: none;
  position: fixed;
  right: 1.6rem;
  transform: rotate(90deg) translateX(100%);
  transform-origin: right bottom;
  z-index: 80;
}

.premium-page-rail__label {
  color: rgba(217, 154, 97, 0.7);
  font: 600 0.58rem/1 Arial, sans-serif;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.premium-page-rail__line {
  background: linear-gradient(90deg, var(--premium-copper), rgba(184, 115, 51, 0.1));
  display: block;
  height: 1px;
  width: 5rem;
}

.premium-header {
  background: rgba(8, 14, 21, 0.78) !important;
  border-bottom-color: rgba(139, 158, 174, 0.17) !important;
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  transition: background 240ms ease, box-shadow 240ms ease;
}

body[data-scrolled="true"] .premium-header {
  background: rgba(8, 14, 21, 0.93) !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.cinematic-hero[data-poster-scrub="true"] {
  --hero-scroll-height: 220vh !important;
}

.cinematic-hero__content h1 {
  font-size: clamp(3.2rem, 5.7vw, 6.6rem) !important;
  letter-spacing: -0.035em;
  max-width: 68rem;
  text-wrap: balance;
}

.cinematic-hero__content p {
  max-width: 47rem !important;
}

.premium-section {
  background-color: var(--premium-ink) !important;
  border-color: var(--premium-rule) !important;
  isolation: isolate;
  overflow: clip;
  position: relative;
}

.premium-section::before {
  background:
    radial-gradient(circle at 82% 22%, rgba(184, 115, 51, 0.09), transparent 25rem),
    linear-gradient(115deg, transparent 0 72%, rgba(184, 115, 51, 0.035) 72.1% 72.25%, transparent 72.35%);
  content: "";
  inset: -12rem -5rem;
  pointer-events: none;
  position: absolute;
  transform: translate3d(0, var(--section-shift, 0), 0);
  z-index: -1;
}

.premium-section::after {
  background: linear-gradient(90deg, transparent, var(--premium-rule-strong), transparent);
  content: "";
  height: 1px;
  left: 50%;
  opacity: calc(0.2 + var(--section-progress, 0) * 0.5);
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: min(76rem, calc(100% - 3rem));
}

.premium-section > .container,
.premium-section > .hg-feed__inner {
  position: relative;
  z-index: 2;
}

.premium-chapter {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  left: max(1.5rem, calc((100% - var(--premium-max)) / 2));
  position: absolute;
  top: 2.2rem;
  z-index: 3;
}

.premium-chapter::after {
  background: linear-gradient(90deg, var(--premium-copper), transparent);
  content: "";
  height: 1px;
  width: 3rem;
}

.premium-chapter span,
.premium-chapter em {
  font-family: Arial, sans-serif;
  font-style: normal;
  text-transform: uppercase;
}

.premium-chapter span {
  color: var(--premium-copper-light);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.premium-chapter em {
  color: rgba(148, 162, 174, 0.65);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.premium-section h2,
.premium-section h3 {
  color: var(--premium-bone) !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.premium-section h2 {
  font-size: clamp(2.8rem, 5vw, 5.4rem) !important;
  line-height: 0.98 !important;
}

.premium-section p {
  color: var(--premium-muted) !important;
}

.premium-reveal {
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 240ms ease,
    background-color 240ms ease,
    box-shadow 240ms ease;
  transition-delay: calc(var(--reveal-order, 0) * 70ms);
}

.premium-reveal[data-revealed="true"] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.premium-section--credentials {
  background: rgba(12, 20, 30, 0.97) !important;
  min-height: 11rem;
}

.premium-section--credentials > .container {
  padding-bottom: 1.8rem;
  padding-top: 3.8rem;
}

.premium-section--credentials .grid > div {
  position: relative;
}

.premium-section--credentials .grid > div::before {
  background: var(--premium-copper);
  content: "";
  height: 1.75rem;
  left: -1.1rem;
  opacity: 0.55;
  position: absolute;
  top: 0.25rem;
  width: 1px;
}

.premium-section--services,
.premium-section--about,
.premium-section--speaking,
.premium-section--newsletter {
  padding-bottom: clamp(7rem, 10vw, 11rem) !important;
  padding-top: clamp(7rem, 10vw, 11rem) !important;
}

#services .grid > div {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 62%),
    rgba(17, 27, 38, 0.76) !important;
  border: 1px solid var(--premium-rule) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  min-height: 20rem;
  overflow: hidden;
  padding: clamp(2rem, 3vw, 3rem) !important;
  position: relative;
}

#services .grid > div::after {
  background: linear-gradient(90deg, var(--premium-copper-light), transparent);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 0;
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

#services .grid > div:hover {
  background-color: rgba(23, 35, 48, 0.94) !important;
  border-color: rgba(184, 115, 51, 0.55) !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  transform: translateY(-0.4rem);
}

#services .grid > div:hover::after {
  transform: scaleX(1);
}

.premium-section--about {
  background:
    radial-gradient(circle at 15% 78%, rgba(34, 65, 82, 0.21), transparent 26rem),
    var(--premium-ink) !important;
}

#about .grid > div:last-child {
  background:
    linear-gradient(145deg, rgba(184, 115, 51, 0.1), transparent 48%),
    rgba(17, 27, 38, 0.9) !important;
  border-color: rgba(184, 115, 51, 0.34) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
  padding: clamp(2rem, 4vw, 3.2rem) !important;
}

.premium-section--speaking {
  background:
    linear-gradient(90deg, rgba(184, 115, 51, 0.08), transparent 38%),
    #0d151f !important;
}

.premium-section--speaking > .container::after {
  color: rgba(184, 115, 51, 0.08);
  content: "BRIEF";
  font: 700 clamp(8rem, 20vw, 18rem)/0.8 Georgia, serif;
  pointer-events: none;
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
}

.premium-section--speaking button,
.premium-section--newsletter button,
.cinematic-hero__content button {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.premium-section--speaking button::after,
.premium-section--newsletter button::after,
.cinematic-hero__content button::after {
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-130%);
  transition: transform 700ms ease;
}

.premium-section--speaking button:hover::after,
.premium-section--newsletter button:hover::after,
.cinematic-hero__content button:hover::after {
  transform: translateX(130%);
}

.premium-section--latest.hg-feed {
  background:
    radial-gradient(circle at 78% 16%, rgba(184, 115, 51, 0.13), transparent 30rem),
    #090f16 !important;
  padding-bottom: clamp(7rem, 10vw, 11rem) !important;
  padding-top: clamp(7rem, 10vw, 11rem) !important;
}

.premium-section--latest .hg-feed__grid {
  gap: 1.2rem;
}

.premium-section--latest .hg-feed__card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 55%),
    rgba(13, 21, 31, 0.92) !important;
  border-color: var(--premium-rule) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.17);
  overflow: hidden;
}

.premium-section--latest .hg-feed__card:hover {
  border-color: rgba(184, 115, 51, 0.55) !important;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.34);
  transform: translateY(-0.45rem);
}

.premium-section--latest .hg-feed__card--featured {
  min-height: 33rem;
}

.premium-section--newsletter {
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 115, 51, 0.1), transparent 26rem),
    #0b121b !important;
}

#newsletter > .container {
  max-width: 68rem !important;
}

#newsletter > .container > div {
  background:
    linear-gradient(125deg, rgba(184, 115, 51, 0.13), transparent 34%),
    rgba(13, 21, 31, 0.95) !important;
  border: 1px solid rgba(184, 115, 51, 0.42) !important;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.34);
  padding: clamp(2.5rem, 6vw, 5rem) !important;
}

.premium-footer {
  background: #070c12 !important;
  border-top: 1px solid var(--premium-rule) !important;
  padding-bottom: 3rem !important;
  padding-top: 3rem !important;
  position: relative;
}

.premium-footer::before {
  color: rgba(184, 115, 51, 0.65);
  content: "HGC / 2026";
  font: 600 0.58rem/1 Arial, sans-serif;
  letter-spacing: 0.2em;
  left: 50%;
  position: absolute;
  top: 0.9rem;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .premium-page-rail {
    display: none;
  }

  .premium-chapter {
    left: 1.25rem;
  }

  .cinematic-hero__content h1 {
    font-size: clamp(2.8rem, 8vw, 5rem) !important;
  }
}

@media (max-width: 767px) {
  .cinematic-hero[data-poster-scrub="true"] {
    --hero-scroll-height: 180vh !important;
  }

  .premium-section h2 {
    font-size: clamp(2.35rem, 11vw, 4rem) !important;
  }

  .premium-section--services,
  .premium-section--about,
  .premium-section--speaking,
  .premium-section--newsletter,
  .premium-section--latest.hg-feed {
    padding-bottom: 6rem !important;
    padding-top: 7rem !important;
  }

  #services .grid > div {
    min-height: auto;
  }

  .premium-section--speaking > .container::after {
    font-size: 8rem;
    right: -2rem;
  }
}

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

  .premium-reveal,
  .premium-reveal[data-revealed="true"] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .premium-section::before,
  .premium-page-progress span {
    transform: none;
  }
}
