/* ============================================
   FrameHaus — Design System v2
   Premium. Grounded. Creatively confident.
   ============================================ */

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

:root {
  /* Primary Palette */
  --charcoal: #2b2b2b;
  --warm-black: #1a1a1a;
  --off-white: #faf9f7;
  --stone: #f5f3f0;

  /* Accent Palette */
  --terracotta: #c47c5c;
  --terracotta-dark: #a8644a;
  --terracotta-light: #d99a7e;
  --terracotta-glow: rgba(196, 124, 92, 0.2);
  --sage: #9ca896;
  --sage-dark: #7e8d77;
  --sage-light: #b5c4ae;
  --sage-glow: rgba(156, 168, 150, 0.15);
  --warm-gray: #8b8680;
  --bronze: #a8956b;
  --gold: #b89968;
  --gold-glow: rgba(184, 153, 104, 0.25);

  /* Section tint backgrounds */
  --terracotta-bg: #fdf6f2;
  --sage-bg: #f5f7f4;

  /* Functional */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #8b8680;
  --text-on-dark: #f5f3f0;
  --border: #e4e0db;
  --border-dark: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --content-width: 620px;
  --section-padding: clamp(120px, 16vw, 220px);
  --section-padding-sm: clamp(70px, 10vw, 140px);
  --gutter: clamp(24px, 5vw, 48px);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-slow: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(162, 185, 165, 0.18), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(196, 123, 93, 0.08), transparent 55%),
    var(--off-white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc1Ii8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2EpIi8+PC9zdmc+");
}

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

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

/* ============================================
   Typography — Dramatic scaling
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text-primary);
}

h1 em,
h2 em {
  font-style: italic;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.75rem;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

p {
  max-width: var(--content-width);
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.7;
}

p + p {
  margin-top: 1.15rem;
}

.text-lg {
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  line-height: 1.65;
}

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-block;
}

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

/* Accent line before labels */
.label--line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.label--line::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  margin-top: 1px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
}

.section--sm {
  padding-top: var(--section-padding-sm);
  padding-bottom: var(--section-padding-sm);
}

.section--dark {
  background: var(--charcoal);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--text-on-dark);
}

.section--dark p {
  color: var(--text-on-dark);
  opacity: 0.8;
}

.section--dark .label {
  color: var(--gold);
}

.section--stone {
  background: var(--stone);
}

/* Terracotta and sage tinted sections */
.section--terracotta {
  background: var(--terracotta-bg);
}

.section--sage {
  background: var(--sage-bg);
}

.section--black {
  background: var(--warm-black);
  color: var(--text-on-dark);
}

.section--black h2,
.section--black h3 {
  color: var(--text-on-dark);
}

.section--black p {
  color: var(--text-on-dark);
  opacity: 0.8;
}

/* Dot-grid pattern overlay for select sections */
.section--dots::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(circle, var(--charcoal) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Diagonal section divider clip-paths */
.section--clip-top {
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
  margin-top: -40px;
  padding-top: calc(var(--section-padding) + 40px);
}

.section--clip-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  padding-bottom: calc(var(--section-padding) + 40px);
}

/* ============================================
   Split Layouts — Asymmetric
   ============================================ */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.split--reverse {
  grid-template-columns: 7fr 5fr;
}

.split--center {
  align-items: center;
}

.split__sticky {
  position: sticky;
  top: 120px;
}

/* Offset content — push right for visual interest */
.offset-right {
  margin-left: auto;
  max-width: 85%;
}

/* Production image + text layout */
.production-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.production-video {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-width: 440px;
  background: var(--stone);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.production-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.production-video::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  pointer-events: none;
}

.offset-left {
  max-width: 85%;
}

/* ============================================
   Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(247, 244, 239, 0.85) 0%, rgba(247, 244, 239, 0) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.35s var(--ease), backdrop-filter 0.4s var(--ease);
}

.header--scrolled {
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}

.header--hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
}

.logo {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-primary);
  transition: opacity 0.2s;
  text-transform: uppercase;
}

.logo__half {
  font-weight: 400;
}

.logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--bronze);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .nav-cta {
  color: var(--off-white);
  background: linear-gradient(135deg, var(--terracotta), #B35E3D);
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 32px rgba(196,123,93,0.35);
  transition: background 0.3s var(--ease), transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
}

.nav-links .nav-cta::after {
  display: none;
}

.nav-links .nav-cta:hover {
  color: var(--off-white);
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--terracotta-glow);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--text-primary);
  margin: 7px 0;
  border-radius: 1px;
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================
   Hero — Full impact with gradient glow
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 160px;
  padding-bottom: clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 25%, rgba(196,123,93,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(162,185,165,0.22) 0%, transparent 60%),
    linear-gradient(180deg, #F7F4EF 0%, #EFE9E2 100%);
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    rgba(196, 123, 93, 0.25),
    linear-gradient(
      180deg,
      rgba(168, 149, 107, 0.15) 0%,
      rgba(196, 123, 93, 0.12) 40%,
      transparent 70%
    ),
    linear-gradient(
      180deg,
      rgba(247, 244, 239, 0.35) 0%,
      rgba(239, 233, 226, 0.55) 50%,
      rgba(239, 233, 226, 0.92) 100%
    );
  pointer-events: none;
}

.hero .container {
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero .label {
  margin-bottom: 2rem;
}

.hero h1 {
  margin-bottom: 2rem;
  max-width: 800px;
}

.hero p {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  max-width: 520px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* Decorative geometric element — terracotta/sage gradients */
.hero__accent {
  position: absolute;
  top: 15%;
  right: 8%;
  width: clamp(200px, 25vw, 400px);
  height: clamp(200px, 25vw, 400px);
  border: 1.5px solid transparent;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
  background: linear-gradient(135deg, var(--terracotta-glow), var(--sage-glow)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero__accent::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  border: 1.5px solid transparent;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-glow), var(--terracotta-glow)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Fallback for browsers without mask-composite */
@supports not (mask-composite: exclude) {
  .hero__accent {
    border-color: var(--terracotta-light);
    background: none;
    -webkit-mask: none;
    mask: none;
  }

  .hero__accent::after {
    border-color: var(--sage-light);
    background: none;
    -webkit-mask: none;
    mask: none;
  }
}

/* Decorative line — gradient */
.hero__line {
  position: absolute;
  bottom: 0;
  left: var(--gutter);
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, var(--terracotta), var(--gold));
  opacity: 0.6;
}

/* ============================================
   Buttons — Terracotta-tinted primary, ripple active
   ============================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 18px 38px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--bronze) 120%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(196,123,93,0.35);
}

.btn--primary:hover {
  box-shadow: 0 6px 32px var(--terracotta-glow), 0 2px 8px var(--gold-glow);
  transform: translateY(-3px);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 8px var(--terracotta-glow);
}

/* Ripple effect on active */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.btn--primary:active::after {
  opacity: 1;
}

.btn--dark {
  background: var(--warm-black);
  color: var(--off-white);
}

.btn--dark:hover {
  background: #252525;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
}

.btn--ghost {
  background: none;
  padding: 0;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 0;
  overflow: visible;
}

.btn--ghost .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.btn--ghost:hover .arrow {
  transform: translateX(6px);
}

.btn--ghost::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.btn--ghost:hover::after {
  transform: scaleX(1);
}

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

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

.btn--large {
  padding: 20px 48px;
  font-size: 0.95rem;
}

/* ============================================
   Grid System
   ============================================ */

.grid {
  display: grid;
  gap: 2rem;
}

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

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

.grid--tiers {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* ============================================
   Cards — With depth, hover lift + tilt, accent borders
   ============================================ */

.card {
  padding: 2.5rem;
  border-radius: 6px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s var(--ease);
  perspective: 800px;
}

.card--bordered {
  border: 1px solid var(--border);
  background: #fff;
  border-left: 3px solid var(--terracotta);
  transition: transform 0.65s var(--ease-slow), box-shadow 0.65s var(--ease-slow), border-color 0.4s var(--ease);
}

.card--bordered:hover {
  border-color: var(--terracotta-light);
  border-left-color: var(--terracotta);
  transform: translateY(-6px) rotateX(1deg) rotateY(-0.5deg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0,0,0,0.04);
}

.card--dark {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
}

.card--dark:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

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

.card--dark h3 {
  color: var(--text-on-dark);
}

.card p {
  font-size: 0.95rem;
}

.card--dark p {
  color: rgba(245, 243, 240, 0.7);
}

/* Card with top accent line — terracotta/sage alternating */
.card--accent {
  position: relative;
}

.card--accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2.5rem;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  border-radius: 2px;
}

.card--accent:nth-child(even)::before {
  background: linear-gradient(90deg, var(--sage), var(--gold));
}

/* ============================================
   Tier Cards (Partnership) — Featured with gradient border
   ============================================ */

.tier {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s var(--ease), transform 0.65s var(--ease-slow), box-shadow 0.65s var(--ease-slow);
  position: relative;
}

.tier:hover {
  border-color: var(--sage);
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0,0,0,0.04);
}

/* Non-featured tiers get subtle accent */
.tier:not(.tier--featured) {
  border-top: 3px solid var(--sage);
}

.tier:not(.tier--featured):last-child {
  border-top-color: var(--terracotta-light);
}

.tier--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--terracotta), var(--gold), var(--terracotta-light)) border-box;
  box-shadow: 0 8px 32px var(--terracotta-glow), 0 0 0 1px var(--gold-glow);
  transform: scale(1.03);
  z-index: 2;
}

.tier--featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 32px 72px var(--terracotta-glow), 0 12px 32px rgba(0,0,0,0.06);
}

.tier--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 2.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  color: #fff;
  padding: 5px 16px;
  border-radius: 4px;
  box-shadow: 0 2px 8px var(--terracotta-glow);
}

.tier .label {
  margin-bottom: 0.75rem;
}

.tier__price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.tier--featured .tier__price {
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tier__period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.tier__description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: none;
  line-height: 1.6;
}

.tier ul {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.tier ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--stone);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.tier ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.tier--featured ul li::before {
  background: var(--terracotta);
}

.tier__fit {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: auto;
  max-width: none;
  line-height: 1.55;
}

.tier__fit strong {
  color: var(--text-primary);
}

/* ============================================
   Feature Quote — Full-bleed impact
   ============================================ */

.feature-quote {
  padding: clamp(100px, 16vw, 240px) var(--gutter);
  background: var(--charcoal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Gradient overlay on quote section */
.feature-quote::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, var(--terracotta-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

/* Decorative circle */
.feature-quote::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(400px, 50vw, 700px);
  height: clamp(400px, 50vw, 700px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.feature-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.75rem);
  color: var(--text-on-dark);
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.35;
  opacity: 1;
  position: relative;
  z-index: 1;
}

.feature-quote .quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 8rem);
  color: var(--terracotta);
  opacity: 0.3;
  line-height: 0.5;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ============================================
   Process / Timeline — With prominent markers
   ============================================ */

.timeline-item {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: start;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item .label {
  padding-top: 0.35rem;
}

.timeline-item h3 {
  margin-bottom: 0.75rem;
}

/* ============================================
   Comparison Cards
   ============================================ */

.comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.comparison__item {
  padding: 2.25rem;
  border-radius: 6px;
  transition: transform 0.65s var(--ease-slow), box-shadow 0.65s var(--ease-slow);
}

.comparison__item:hover {
  transform: translateY(-4px);
}

/* Wrong options — dark, closed off */
.comparison__item--muted {
  background: var(--charcoal);
  color: var(--text-on-dark);
}

.comparison__item--muted h3 {
  color: rgba(255, 255, 255, 0.7);
}

.comparison__item--muted p {
  color: rgba(255, 255, 255, 0.45);
}

.comparison__item--muted:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Right option — warm, illuminated */
.comparison__item--highlight {
  background: linear-gradient(145deg, #F7F4EF 0%, #F0E8DD 100%);
  color: var(--text-primary);
  grid-column: span 2;
  border: 1px solid rgba(184, 153, 104, 0.2);
  box-shadow:
    0 4px 24px rgba(184, 153, 104, 0.12),
    0 0 48px rgba(196, 123, 93, 0.06);
}

.comparison__item--highlight h3 {
  color: var(--text-primary);
}

.comparison__item--highlight p {
  color: var(--text-secondary);
}

.comparison__item--highlight:hover {
  box-shadow:
    0 12px 40px rgba(184, 153, 104, 0.2),
    0 0 64px rgba(196, 123, 93, 0.1);
}

.comparison__tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.comparison__item--muted .comparison__tag {
  color: rgba(255, 255, 255, 0.35);
}

.comparison__item--highlight .comparison__tag {
  color: var(--bronze);
}

/* ============================================
   Lists — Refined
   ============================================ */

.check-list {
  list-style: none;
  margin-top: 1.25rem;
}

.check-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.65rem 0;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.5;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.check-list--red li::before {
  background: var(--terracotta);
}

/* ============================================
   Testimonials
   ============================================ */

.testimonial {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.testimonial:last-child {
  border-bottom: none;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--text-primary);
  line-height: 1.45;
  max-width: var(--content-width);
  font-style: italic;
  padding-left: 1.5rem;
  border-left: 3px solid var(--terracotta-light);
}

/* ============================================
   Numbered Framework Items
   ============================================ */

.framework-item {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
}

.framework-item::before {
  content: attr(data-num);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 14vw, 14rem);
  line-height: 1;
  opacity: 0.04;
  color: var(--sage);
  pointer-events: none;
  z-index: 0;
}

.framework-item:nth-child(even)::before {
  color: var(--terracotta);
}

.framework-item:first-child {
  padding-top: 2rem;
}

.framework-item:last-child {
  border-bottom: none;
}

.framework-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--bronze);
  opacity: 0.7;
}

/* ============================================
   Standards Grid
   ============================================ */

.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-top: 2.5rem;
}

.standard {
  position: relative;
  padding-top: 1.5rem;
}

.standard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  border-radius: 2px;
}

.standard:nth-child(even)::before {
  background: linear-gradient(90deg, var(--sage), var(--gold));
}

.standard h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.standard p {
  font-size: 0.9rem;
}

/* ============================================
   Call Details
   ============================================ */

.call-details {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.call-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  border-left: 2px solid var(--terracotta);
  line-height: 1.4;
}

.call-detail:nth-child(2) {
  border-left-color: var(--gold);
}

.call-detail:nth-child(3) {
  border-left-color: var(--sage);
}

/* ============================================
   Industry Sections
   ============================================ */

.industry {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid transparent;
  transition: border-left-color 0.3s var(--ease);
}

.industry:nth-child(odd) {
  border-left-color: var(--terracotta-light);
}

.industry:nth-child(even) {
  border-left-color: var(--sage-light);
}

.industry:last-child {
  border-bottom: none;
}

.industry h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin-bottom: 1.25rem;
}

.industry-image {
  max-width: 700px;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--stone);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04);
}

.industry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.industry p + p {
  margin-top: 0.85rem;
}

/* ============================================
   Contact / Form
   ============================================ */

.form-section {
  max-width: 520px;
}

.form-section label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.form-section label:first-of-type {
  margin-top: 0;
}

.form-section input,
.form-section textarea {
  width: 100%;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  resize: vertical;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-section input:focus,
.form-section textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-glow);
}

/* ============================================
   Footer CTA — High impact with gradient
   ============================================ */

.footer-cta {
  text-align: center;
  padding: var(--section-padding) var(--gutter);
  background: linear-gradient(135deg, var(--warm-black) 0%, #2a2520 50%, var(--warm-black) 100%);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

/* Terracotta glow */
.footer-cta::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--terracotta-glow) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.5;
}

.footer-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.footer-cta h2 {
  margin-bottom: 2.5rem;
  color: var(--text-on-dark);
  position: relative;
  z-index: 1;
}

.footer-cta .btn {
  position: relative;
  z-index: 1;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 3rem var(--gutter);
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: none;
  letter-spacing: 0.02em;
}

.footer--dark {
  background: var(--warm-black);
  border-top-color: rgba(255, 255, 255, 0.04);
}

.footer--dark p {
  color: rgba(245, 243, 240, 0.3);
}

/* ============================================
   Decorative Elements
   ============================================ */

/* Horizontal rule with accent */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

.divider--gold {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), var(--bronze), var(--gold), transparent);
  opacity: 0.45;
  border: none;
  width: auto;
  margin: 2rem 0;
  border-radius: 0;
}

/* Subtle vertical line accent */
.v-line {
  width: 1px;
  height: 60px;
  background: var(--gold);
  opacity: 0.4;
  margin: 0 auto;
}

/* Section top accent */
.section-accent {
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, var(--terracotta), transparent);
  opacity: 0.4;
}

/* ============================================
   Scroll Reveal Animation — Enhanced with variety
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left variant */
.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal--left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right variant */
.reveal--right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal--right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in variant */
.reveal--scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal--scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Blur-in variant */
.reveal--blur {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal--blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ============================================
   Calendar Placeholder
   ============================================ */

.calendar-placeholder {
  margin-top: 3.5rem;
  padding: 5rem 2rem;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.calendar-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.02);
}

.calendar-placeholder p {
  color: rgba(245, 243, 240, 0.35);
  font-size: 0.85rem;
  max-width: none;
  position: relative;
}

/* ============================================
   Card 3D tilt (JS-driven via custom properties)
   ============================================ */

.card[data-tilt] {
  transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px));
  transition: transform 0.15s var(--ease), box-shadow 0.3s var(--ease);
}

/* ============================================
   Number counter animation
   ============================================ */

.tier__price[data-count] {
  transition: opacity 0.3s;
}

/* ============================================
   Section color transitions (JS intersection)
   ============================================ */

.section[data-bg-transition] {
  transition: background-color 0.6s var(--ease);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1000px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .offset-right,
  .offset-left {
    max-width: 100%;
    margin-left: 0;
  }

  .production-split {
    grid-template-columns: 1fr;
  }

  .production-video {
    max-width: 85vw;
    margin: 0 auto;
  }

  .timeline-item {
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .grid--3,
  .grid--tiers {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

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

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

  .comparison__item--highlight {
    grid-column: span 1;
  }

  .framework-item {
    grid-template-columns: 50px 1fr;
    gap: 1.25rem;
  }

  .framework-number {
    font-size: 2.5rem;
  }

  .tier--featured {
    transform: scale(1);
  }

  .tier--featured:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: var(--off-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    z-index: 999;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    overflow: hidden;
  }

  .nav-links a {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text-primary);
    padding: 0.75rem 0;
    letter-spacing: -0.01em;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .nav-cta {
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 14px 28px;
  }

  .hero {
    min-height: 85vh;
    padding-top: 130px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero__accent {
    display: none;
  }

  .call-details {
    flex-direction: column;
    gap: 1.5rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .tier--featured {
    order: -1;
  }

  .industry {
    padding-left: 1rem;
  }

  .card--bordered {
    border-left-width: 2px;
  }
}

/* ============================================
   Scroll Progress Indicator
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--terracotta-light));
  z-index: 10000;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.scroll-progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-glow));
  opacity: 0.6;
}

/* ============================================
   Back to Top Button
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition:
    opacity 0.4s var(--ease),
    visibility 0.4s var(--ease),
    transform 0.4s var(--ease-out),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(184, 153, 104, 0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--warm-black);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(184, 153, 104, 0.3),
    0 0 24px var(--gold-glow);
  transform: translateY(-2px) scale(1);
}

.back-to-top:active {
  transform: translateY(0) scale(0.96);
  transition-duration: 0.1s;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-out);
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   Prefers reduced motion — scroll enhancements
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    transition: none;
  }

  .back-to-top {
    transition: opacity 0.01s;
    transform: none;
  }

  .back-to-top.visible {
    transform: none;
  }

  .back-to-top:hover {
    transform: none;
  }
}

/* ============================================
   Prefers reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal--scale,
  .reveal--blur {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .header {
    transition: background 0s, box-shadow 0s;
  }

  .hero__accent {
    animation: none;
  }
}
