/* ==========================================================================
   Kryva.site — Burgundy Atelier
   Luxury editorial landing page · Pure CSS3
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg-primary: #2B0E18;
  --bg-secondary: #3F1624;
  --bg-accent: #5E1F36;
  --bg-card: rgba(255, 255, 255, 0.06);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #5E1F36 0%, #8B1E3F 100%);
  --grad-secondary: linear-gradient(135deg, #8B1E3F 0%, #C08457 100%);
  --grad-silk: linear-gradient(
    160deg,
    #2B0E18 0%,
    #5E1F36 35%,
    #8B1E3F 55%,
    #3F1624 75%,
    #2B0E18 100%
  );

  /* Accents */
  --gold: #E6C79C;
  --gold-soft: rgba(230, 199, 156, 0.18);
  --gold-glow: rgba(230, 199, 156, 0.35);
  --crimson: #8B1E3F;
  --antique: #C08457;

  /* Text */
  --text-primary: #FFF8F4;
  --text-secondary: #D9C6BE;
  --text-muted: rgba(217, 198, 190, 0.65);

  /* Borders & surfaces */
  --border: rgba(230, 199, 156, 0.18);
  --border-strong: rgba(230, 199, 156, 0.4);

  /* Typography */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Spacing & rhythm */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 0 40px rgba(230, 199, 156, 0.15);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.35s var(--ease), opacity 0.35s var(--ease);
}

ul,
ol {
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--crimson);
  color: var(--text-primary);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ---------- Typography Utilities ---------- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin-inline: auto;
  font-weight: 300;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header--center {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.85rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    color 0.4s var(--ease);
}

.btn--primary {
  background: var(--grad-primary);
  border-color: var(--border-strong);
  color: var(--text-primary);
  box-shadow: var(--shadow-gold);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(230, 199, 156, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(230, 199, 156, 0.28);
}

.btn--primary:hover::before {
  transform: translateX(120%);
}

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

.btn--ghost:hover {
  background: rgba(230, 199, 156, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(230, 199, 156, 0.12);
}

.btn--nav {
  padding: 0.7rem 1.4rem;
  font-size: 0.72rem;
  background: var(--bg-accent);
  border-color: var(--border-strong);
  color: var(--gold);
}

.btn--nav:hover {
  box-shadow: 0 0 28px rgba(230, 199, 156, 0.25);
  background: #6d2540;
}

.btn--lg {
  padding: 1.1rem 2.4rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.link-underline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  padding-bottom: 0.35rem;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.link-underline:hover::after {
  transform: scaleX(1);
}

/* ---------- Curve Dividers ---------- */
.curve-divider {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}

.curve-divider svg {
  width: 100%;
  height: 60px;
}

.curve-divider--down {
  bottom: -1px;
}

.curve-divider--up {
  top: -1px;
}

.curve-divider path {
  fill: var(--bg-primary);
}

.gallery .curve-divider--up path,
.case .curve-divider--up path {
  fill: var(--bg-secondary);
}

.gallery .curve-divider--down path,
.case .curve-divider--down path {
  fill: var(--bg-primary);
}

/* ---------- Floating Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem 0.75rem 1.75rem;
  background: rgba(43, 14, 24, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

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

.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}

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

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav .btn--nav {
  display: none;
}

.nav__toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav__toggle span {
  display: block;
  width: 1.35rem;
  height: 1px;
  background: var(--gold);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav__mobile {
  pointer-events: auto;
  max-width: 1180px;
  margin: 0.75rem auto 0;
  padding: 1.5rem;
  background: rgba(43, 14, 24, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.nav__mobile[hidden] {
  display: none;
}

.nav__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nav__mobile a {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

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

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }

  .nav .btn--nav {
    display: inline-flex;
  }

  .nav__toggle,
  .nav__mobile {
    display: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__silk {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: silk-drift 18s ease-in-out infinite alternate;
}

.hero__silk--1 {
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, #8B1E3F 0%, #5E1F36 40%, transparent 70%);
}

.hero__silk--2 {
  width: 55vw;
  height: 55vw;
  max-width: 600px;
  max-height: 600px;
  bottom: -10%;
  left: -8%;
  background: radial-gradient(circle, #C08457 0%, #8B1E3F 35%, transparent 70%);
  opacity: 0.3;
  animation-delay: -6s;
  animation-duration: 22s;
}

.hero__spotlight {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 20%;
  left: 25%;
  background: radial-gradient(
    ellipse at center,
    rgba(230, 199, 156, 0.12) 0%,
    transparent 65%
  );
  animation: spotlight-move 14s ease-in-out infinite alternate;
}

.hero__orb {
  position: absolute;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  animation: float-soft 12s ease-in-out infinite;
}

.hero__orb--1 {
  width: 280px;
  height: 280px;
  top: 18%;
  right: 12%;
  opacity: 0.4;
}

.hero__orb--2 {
  width: 160px;
  height: 160px;
  bottom: 22%;
  left: 10%;
  opacity: 0.25;
  animation-delay: -4s;
}

.hero__curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero__curve {
  stroke: var(--gold);
  stroke-width: 0.6;
  stroke-opacity: 0.35;
  animation: curve-draw 8s ease-in-out infinite alternate;
}

.hero__curve--2 {
  stroke-opacity: 0.22;
  animation-delay: -2s;
}

.hero__curve--3 {
  stroke-opacity: 0.15;
  animation-delay: -4s;
}

.hero__frame {
  position: absolute;
  inset: 2.5rem;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
  opacity: 0.5;
}

@media (max-width: 700px) {
  .hero__frame {
    inset: 1rem;
  }
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 820px;
  animation: fade-rise 1.2s var(--ease) both;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 34rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

/* ---------- Intro (Split) ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-3xl) 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-primary);
}

.intro__media {
  display: flex;
  justify-content: center;
}

.intro__frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  padding: 1.25rem;
}

.intro__placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, rgba(230, 199, 156, 0.08), transparent 50%),
    var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.intro__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(230, 199, 156, 0.2), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(192, 132, 87, 0.25), transparent 45%);
  animation: silk-drift 16s ease-in-out infinite alternate;
}

.intro__monogram {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 9rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(230, 199, 156, 0.45);
  line-height: 1;
  z-index: 1;
}

.intro__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
}

.intro__corner--tl {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.intro__corner--tr {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.intro__corner--bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.intro__corner--br {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}

.intro__copy {
  max-width: 520px;
}

.intro__quote {
  margin: var(--space-lg) 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--gold);
}

.intro__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-primary);
}

.intro__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-weight: 300;
}

@media (min-width: 900px) {
  .intro {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    padding-block: var(--space-3xl);
  }

  .intro__media {
    justify-content: flex-start;
  }
}

/* ---------- Gallery ---------- */
.gallery {
  position: relative;
  padding: var(--space-3xl) 1.5rem;
  background: var(--bg-secondary);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.5s var(--ease);
}

.gallery__item--tall {
  aspect-ratio: 3 / 4;
}

.gallery__item--wide {
  aspect-ratio: 16 / 9;
}

.gallery__visual {
  position: absolute;
  inset: 0;
  transition: transform 1.2s var(--ease);
  background-size: cover;
  background-position: center;
}

.gallery__visual--1 {
  background: linear-gradient(145deg, #5E1F36, #2B0E18 60%, #8B1E3F);
}

.gallery__visual--2 {
  background: linear-gradient(200deg, #8B1E3F, #3F1624, #C08457);
}

.gallery__visual--3 {
  background: linear-gradient(120deg, #2B0E18, #5E1F36 40%, #8B1E3F 70%, #3F1624);
}

.gallery__visual--4 {
  background: linear-gradient(160deg, #3F1624, #8B1E3F, #5E1F36);
}

.gallery__visual--5 {
  background: linear-gradient(30deg, #5E1F36 20%, #2B0E18, #C08457);
}

.gallery__visual--6 {
  background: linear-gradient(210deg, #8B1E3F, #2B0E18 50%, #5E1F36);
}

.gallery__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 40% 30%, rgba(230, 199, 156, 0.15), transparent 50%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.015) 40px,
      rgba(255, 255, 255, 0.015) 41px
    );
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  background: linear-gradient(
    to top,
    rgba(43, 14, 24, 0.92) 0%,
    rgba(43, 14, 24, 0.2) 50%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.gallery__overlay h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.gallery__overlay p {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.gallery__item:hover,
.gallery__item:focus-within {
  border-color: var(--border-strong);
}

.gallery__item:hover .gallery__visual,
.gallery__item:focus-within .gallery__visual {
  transform: scale(1.08);
}

.gallery__item:hover .gallery__overlay,
.gallery__item:focus-within .gallery__overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 960px) {
  .gallery__grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.25rem;
  }

  .gallery__item {
    aspect-ratio: auto;
    min-height: 240px;
  }

  .gallery__item:nth-child(1) {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    min-height: 420px;
  }

  .gallery__item:nth-child(2) {
    grid-column: 5 / 9;
    grid-row: 1 / 2;
  }

  .gallery__item:nth-child(3) {
    grid-column: 9 / 13;
    grid-row: 1 / 2;
  }

  .gallery__item:nth-child(4) {
    grid-column: 5 / 9;
    grid-row: 2 / 3;
  }

  .gallery__item:nth-child(5) {
    grid-column: 9 / 13;
    grid-row: 2 / 4;
    min-height: 420px;
  }

  .gallery__item:nth-child(6) {
    grid-column: 1 / 9;
    grid-row: 3 / 4;
    min-height: 220px;
  }
}

/* ---------- Services ---------- */
.services {
  padding: var(--space-3xl) 1.5rem;
  background: var(--bg-primary);
  max-width: 100%;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto var(--space-3xl);
}

.service-card {
  position: relative;
  padding: 2rem 1.75rem 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft), var(--shadow-gold);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
}

.service-card__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-secondary);
  transition: width 0.55s var(--ease);
}

.service-card:hover .service-card__line {
  width: 100%;
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Timeline ---------- */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  padding-top: var(--space-xl);
}

.timeline__list {
  position: relative;
  padding-left: 2.5rem;
}

.timeline__list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--gold),
    rgba(230, 199, 156, 0.2)
  );
}

.timeline__item {
  position: relative;
  padding-bottom: 2.75rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline__marker span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(230, 199, 156, 0.12);
  transition: background 0.35s, box-shadow 0.35s;
}

.timeline__item:hover .timeline__marker span {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(230, 199, 156, 0.4);
}

.timeline__num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.timeline__content h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline__content p {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 0.98rem;
}

/* ---------- Case Study ---------- */
.case {
  position: relative;
  padding: var(--space-3xl) 1.5rem;
  background: var(--bg-secondary);
}

.case__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.case__kicker {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  max-width: 36rem;
}

.case__showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.case__media {
  min-height: 280px;
  background: var(--grad-primary);
  position: relative;
}

.case__media-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(230, 199, 156, 0.2), transparent 55%),
    linear-gradient(to top, rgba(43, 14, 24, 0.7), transparent 50%);
}

.case__media-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.case__body {
  padding: 0 1.75rem 2rem;
}

.case__overview {
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.case__achievements {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.case__achievements li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.case__achievements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.case__achievements strong {
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-right: 0.35rem;
}

@media (min-width: 800px) {
  .case__showcase {
    grid-template-columns: 1.1fr 1fr;
  }

  .case__media {
    min-height: 100%;
  }

  .case__body {
    padding: 2.5rem 2.5rem 2.5rem 0.5rem;
  }
}

/* ---------- Statistics ---------- */
.stats {
  padding: var(--space-2xl) 1.5rem;
  background: var(--bg-primary);
  border-block: 1px solid var(--border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-panel {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stat-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stat-panel__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--antique));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: counter-glow 3s ease-in-out infinite alternate;
}

.stat-panel__label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Philosophy ---------- */
.philosophy {
  position: relative;
  padding: var(--space-3xl) 1.5rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(94, 31, 54, 0.5), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(139, 30, 63, 0.3), transparent 45%),
    var(--bg-primary);
  overflow: hidden;
}

.philosophy__ornament {
  position: absolute;
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
}

.philosophy__ornament::before,
.philosophy__ornament::after {
  content: "";
  position: absolute;
  inset: 40px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
}

.philosophy__ornament::after {
  inset: 80px;
  opacity: 0.5;
}

.philosophy__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.philosophy__title {
  margin-bottom: var(--space-lg);
}

.philosophy__text {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.1rem;
  max-width: 38rem;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

.philosophy__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: left;
}

.pillar {
  padding: 1.75rem;
  border-top: 1px solid var(--border);
}

.pillar__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.pillar p {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .philosophy__pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: var(--space-3xl) 1.5rem;
  background: var(--bg-secondary);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  padding: 2.25rem 1.75rem;
  background:
    linear-gradient(160deg, rgba(94, 31, 54, 0.5), rgba(43, 14, 24, 0.6)),
    var(--bg-card);
  border: 1px solid var(--border);
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.testimonial:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.testimonial__stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.testimonial blockquote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
}

.testimonial__author cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.testimonial__author span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Pricing ---------- */
.pricing {
  padding: var(--space-3xl) 1.5rem;
  background: var(--bg-primary);
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

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

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.price-card__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  line-height: 1;
}

.price-card__amount span {
  font-size: 1.25rem;
  vertical-align: super;
  color: var(--gold);
  margin-right: 0.15rem;
}

.price-card ul {
  flex: 1;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-card li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 300;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.price-card--featured {
  background: var(--grad-primary);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold), 0 0 60px rgba(139, 30, 63, 0.4);
}

.price-card--featured:hover {
  box-shadow: 0 0 50px rgba(230, 199, 156, 0.3), var(--shadow-soft);
}

.price-card__ribbon {
  position: absolute;
  top: 1.25rem;
  right: -0.35rem;
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
}

@media (min-width: 900px) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .price-card--featured {
    transform: scale(1.05);
    z-index: 1;
  }

  .price-card--featured:hover {
    transform: scale(1.05) translateY(-4px);
  }
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  padding: var(--space-3xl) 1.5rem;
  overflow: hidden;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-cta__canvas {
  position: absolute;
  inset: 0;
  background: var(--grad-silk);
}

.final-cta__silk {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(139, 30, 63, 0.6), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(192, 132, 87, 0.25), transparent 45%),
    radial-gradient(ellipse at 50% 20%, rgba(230, 199, 156, 0.12), transparent 40%);
  animation: silk-drift 20s ease-in-out infinite alternate;
}

.final-cta__glow {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  background: radial-gradient(
    circle,
    rgba(230, 199, 156, 0.15),
    transparent 60%
  );
  animation: spotlight-move 16s ease-in-out infinite alternate;
}

.final-cta__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.final-cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.final-cta__text {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
}

/* ---------- Footer ---------- */
.footer {
  background: #1a0810;
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 1.5rem var(--space-lg);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer__brand p {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 0.95rem;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.footer__newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 360px;
}

.footer__newsletter input {
  flex: 1;
  min-width: 180px;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.35s;
}

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

.footer__newsletter input:focus {
  border-color: var(--border-strong);
}

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

.footer__col h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1.15rem;
  color: var(--gold);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__col a,
.footer__col li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 300;
}

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

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.social-icon:hover {
  color: var(--gold);
  border-color: var(--border-strong);
  box-shadow: 0 0 16px rgba(230, 199, 156, 0.15);
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: 1.2fr 2fr;
  }

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

/* ---------- Animations ---------- */
@keyframes silk-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(4%, -3%) scale(1.08);
  }
}

@keyframes spotlight-move {
  0% {
    transform: translate(0, 0);
    opacity: 0.7;
  }
  100% {
    transform: translate(8%, 6%);
    opacity: 1;
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes curve-draw {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.3;
  }
  100% {
    stroke-dashoffset: -40;
    opacity: 0.55;
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

@keyframes counter-glow {
  0% {
    filter: brightness(0.95);
  }
  100% {
    filter: brightness(1.15);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visibility */
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* Print */
@media print {
  .site-header,
  .hero__canvas,
  .final-cta__canvas,
  .nav__toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}
