/* =============================================================
   RIVRANT — style.css
   ============================================================= */

/* --- Variables ------------------------------------------------ */
:root {
  --bg:           #050505;
  --bg-soft:      #0b0b0b;
  --panel:        rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.1);
  --text:         #f4f1eb;
  --muted:        rgba(244,241,235,0.7);
  --line:         rgba(255,255,255,0.1);
  --max:          1240px;
  --shadow:       0 20px 60px rgba(0,0,0,0.35);
  --radius-card:  24px;
  --transition:   0.25s ease;
}

::selection {
  background: #5c5c5c;
  color: #f4f1eb;
}

::-moz-selection {
  background: #5c5c5c;
  color: #f4f1eb;
}

/* --- Custom Cursor ------------------------------------------ */
html, body, a, button {
  cursor: url("assets/favicon.svg") 8 8, auto;
}

/* --- Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

/* --- Base body ------------------------------------------------ */
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* --- Background & noise --------------------------------------- */
.page-bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 34%),
    radial-gradient(circle at 80% 10%,  rgba(255,255,255,0.03), transparent 24%),
    linear-gradient(180deg, #090909 0%, #040404 100%);
}

.noise {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; opacity: 0.025;
  background-image:
    linear-gradient(rgba(255,255,255,0.75) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.75) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* --- Layout helpers ------------------------------------------ */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: 90px 0; }

/* --- Typography helpers -------------------------------------- */
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.section-copy {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* --- Navigation ---------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,5,0.72);
  backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.logo {
  font-size: 0.95rem;
  letter-spacing: 0.36em;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color var(--transition), opacity var(--transition);
}

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

/* --- Intro / splash page ------------------------------------- */
body.intro {
  width: 100%; height: 100vh; height: 100svh;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden; position: fixed; inset: 0;
  background: #030303;
}

html:has(body.intro) {
  width: 100%; height: 100%;
  overflow: hidden; overscroll-behavior: none;
}

body.intro .page-bg {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.08),  transparent 34%),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05),  transparent 26%),
    radial-gradient(circle at 80% 75%, rgba(255,255,255,0.045), transparent 28%),
    linear-gradient(180deg, #070707 0%, #010101 100%);
}

body.intro .noise { z-index: 1; opacity: 0.035; }

.intro-container {
  position: fixed; inset: 0; z-index: 5;
  width: 100%; height: 100vh; height: 100svh;
  min-height: 0; margin: 0; padding: 24px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}

.intro-container h1 {
  width: 100%; margin: 0;
  font-size: clamp(3rem, 13vw, 8rem);
  line-height: 0.88;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}

.intro-container .btn {
  width: auto; min-width: 148px;
  margin: 30px auto 0;
}

/* --- Buttons -------------------------------------------------- */
.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.btn {
  margin-top: 28px;
  background: var(--text);
  color: #090909;
  font-weight: 600;
}

.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.btn:hover,
.btn-secondary:hover { transform: translateY(-2px); }

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.cta-row .btn,
.cta-row .btn-secondary { margin-top: 0; }

/* --- Shared card base ---------------------------------------- */
.hero-card,
.feature-card,
.stat,
.gallery-item,
.contact-card,
.service-card,
.mosaic-card,
.video-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Hover lift — desktop pointer only */
@media (hover: hover) and (pointer: fine) {
  .gallery-item, .feature-card, .video-card, .service-card,
  .mosaic-card,  .hero-card,    .hero-editorial-panel,
  .contact-card, .stat {
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  }

  .gallery-item:hover, .feature-card:hover, .video-card:hover,
  .service-card:hover, .mosaic-card:hover,  .hero-card:hover,
  .hero-editorial-panel:hover, .contact-card:hover, .stat:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.18);
  }

  .policy-card {
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  }
  .policy-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.18);
  }
}

.cover {
  width: 100%; height: 100%;
  object-fit: cover;
}

video.cover { background: #000; }

/* --- Hero — editorial split (home page) ---------------------- */
.hero-editorial-split {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex; align-items: center;
  overflow: hidden; padding: 0;
}

.hero-backdrop { position: absolute; inset: 0; z-index: 0; }

.hero-bg-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(6px) saturate(0.9) brightness(0.55);
  transform: scale(1.06);
}

.hero-editorial-wash {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg,  rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.42) 42%, rgba(0,0,0,0.52) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.28) 40%, rgba(0,0,0,0.74) 100%);
}

.hero-editorial-shell {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px; align-items: center;
  width: 100%; padding: 72px 0;
}

.editorial-copy { max-width: 700px; }

.editorial-copy h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.9; letter-spacing: -0.05em;
  text-wrap: balance;
}

.editorial-copy p {
  max-width: 560px; margin-top: 18px;
  font-size: 1.04rem;
  color: rgba(244,241,235,0.82);
}

.hero-editorial-panel {
  position: relative;
  height: min(72vh, 760px); min-height: 520px;
  border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.04);
}

.hero-panel-image {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

.hero-panel-badge {
  position: absolute; left: 18px; bottom: 18px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(0,0,0,0.52);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Hero — generic (used on sub-pages) --------------------- */
.hero {
  min-height: calc(100vh - 74px);
  display: grid; align-items: end;
  padding: 64px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px; align-items: stretch;
}

.hero-copy {
  display: flex; flex-direction: column;
  justify-content: end;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92; letter-spacing: -0.05em;
  max-width: 820px;
}

.hero-copy p {
  max-width: 620px; margin-top: 18px;
  color: var(--muted); font-size: 1.06rem;
}

.hero-card { min-height: 540px; position: relative; }

/* --- Page hero (inner pages) --------------------------------- */
.page-hero { padding: 76px 0 20px; }

.page-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px; align-items: end; 
}

.page-hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.94; letter-spacing: -0.04em;
}

.page-hero-copy p {
  color: var(--muted); margin-top: 18px; max-width: 580px;
}

.page-hero-media {
  min-height: 520px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero-media img.cover,
.page-hero-media .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doc-hero-media {
  height: 520px;
  display: flex;
}

.doc-hero-media img,
.doc-hero-media .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.page-hero-media img,
.page-hero-media .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;
}

/* --- Card overlay -------------------------------------------- */
.card-overlay {
  position: absolute; inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.74));
}

.card-overlay h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card-overlay p  { color: rgba(255,255,255,0.76); font-size: 0.95rem; }

/* --- Grid layouts -------------------------------------------- */
.stats-grid,
.services-grid,
.gallery-grid,
.contact-grid,
.mosaic-grid,
.feature-grid { display: grid; gap: 18px; }

.stats-grid    { grid-template-columns: repeat(3, 1fr);   margin-top: 26px; }
.services-grid { grid-template-columns: repeat(3, 1fr);   margin-top: 32px; }
.gallery-grid  { grid-template-columns: repeat(3, 1fr);   margin-top: 30px; }
.contact-grid  { grid-template-columns: 1fr 1fr;          margin-top: 30px; }
.feature-grid  { grid-template-columns: 1.2fr 0.8fr; }
.mosaic-grid   { grid-template-columns: repeat(12, 1fr);  margin-top: 28px; }

/* --- Stat card ----------------------------------------------- */
.stat { padding: 22px; }
.stat strong { display: block; font-size: 2rem; margin-bottom: 6px; }
.stat span   { color: var(--muted); font-size: 0.95rem; }

/* --- Service card -------------------------------------------- */
.service-card { padding: 26px; }
.service-card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.service-card p  { color: var(--muted); }

/* --- Feature card -------------------------------------------- */
.feature-card { min-height: 420px; position: relative; }

.feature-card.copy {
  padding: 34px;
  display: flex; flex-direction: column;
  justify-content: space-between;
}

.feature-card.copy p,
.feature-card.copy li { color: var(--muted); }

.feature-card.copy ul {
  padding-left: 18px; display: grid; gap: 12px;
}

/* --- Mosaic grid --------------------------------------------- */
.mosaic-card { position: relative; min-height: 250px; }

.mosaic-card.tall { grid-column: span 4; min-height: 540px; }
.mosaic-card.wide { grid-column: span 8; min-height: 540px; }
.mosaic-card.half { grid-column: span 6; min-height: 380px; }

.mosaic-card .label {
  position: absolute; left: 18px; bottom: 18px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px); font-size: 0.9rem;
}

/* --- Gallery grid -------------------------------------------- */
.gallery-item { position: relative; aspect-ratio: 4 / 5; }

.gallery-caption {
  position: absolute; inset: auto 14px 14px;
  padding: 12px 14px; border-radius: 16px;
  background: rgba(0,0,0,0.42); backdrop-filter: blur(8px);
  font-size: 0.92rem;
}

/* --- Video --------------------------------------------------- */
.video-grid { display: grid; gap: 18px; margin-top: 28px; }

.featured-videos,
.secondary-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.video-frame  { position: relative; background: #000; }
.square-frame { aspect-ratio: 1 / 1; }

.video-frame video { width: 100%; height: 100%; display: block; }

.video-meta         { padding: 20px 20px 22px; }
.video-meta h3      { font-size: 1.08rem; margin-bottom: 8px; }
.video-meta p       { color: var(--muted); }
.video-meta.compact p { font-size: 0.95rem; }

.video-tag {
  display: inline-flex; align-items: center;
  margin-bottom: 10px; padding: 8px 12px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text); font-size: 0.76rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* --- Contact -------------------------------------------------- */
.contact-card { padding: 28px; }
.contact-card h3 { margin-bottom: 12px; font-size: 1.08rem; }

.contact-card p,
.contact-card li { color: var(--muted); }

.contact-card ul  { list-style: none; display: grid; gap: 12px; }
.contact-card form { display: grid; gap: 12px; }

.contact-card input,
.contact-card textarea {
  width: 100%; padding: 14px 16px;
  border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text); font: inherit;
}

.contact-card textarea { min-height: 140px; resize: vertical; }

.footer a,
.contact-card a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.28);
  text-underline-offset: 4px;
}

/* --- Policy -------------------------------------------------- */
.policy-section { padding-top: 70px; }

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; margin-top: 30px;
}

.policy-card {
  min-height: 240px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.08), transparent 34%),
    rgba(255,255,255,0.045);
  box-shadow: var(--shadow);
}

.policy-card span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 18px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.14);
  color: rgba(244,241,235,0.7); font-size: 0.76rem; letter-spacing: 0.08em;
}

.policy-card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.policy-card p  { color: var(--muted); line-height: 1.55; }

/* --- Headshot section ---------------------------------------- */
.headshot-section { padding-top: 0; }

/* --- Instagram feed ------------------------------------------ */
.instagram-section { padding-top: 70px; }

.instagram-head {
  display: flex; justify-content: space-between;
  align-items: end; gap: 24px; margin-bottom: 28px;
}

.instagram-cta { flex: 0 0 auto; }

.instagram-widget-shell {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.08), transparent 28%),
    rgba(255,255,255,0.045);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px;

  position: relative;
}

.instagram-widget-shell::after {
  content: "Collaborations";
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 205px;
  height: 33px;
  background: #1c1b1b;
  border-radius: 999px;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #f4f1eb;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 500;
  text-transform: uppercase;
}

.instagram-widget-shell iframe,
.instagram-widget-shell .elfsight-app,
.instagram-widget-shell [class*="elfsight-app"] {
  width: 100%; max-width: 100%; border: 0;
}

/* --- Footer -------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: start;
  gap: 40px;
}

.footer-center {
  justify-self: center;
  text-align: center;
}

.footer-brand {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--muted);
}

.footer-center-top {
  margin-bottom: 10px;
}

.footer-center-top a,
.footer-center-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.footer-center-bottom {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer .signup {
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

.footer .signup h2 {
  font-size: 1.1em;
  margin-bottom: 20px;
  letter-spacing: 2px;
  color: var(--muted);
}

.footer .signup form {
  display: flex;
  margin-bottom: 12px;
}

.footer .signup input[type="email"] {
  flex: 1;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid #fff;
  border-right: none;
  color: #fff;
  font-size: 0.8em;
  letter-spacing: 1px;
  outline: none;
}

.footer .signup button {
  padding: 12px 16px;
  border: 1px solid #fff;
  background: transparent;
  color: var(--muted);
  font-size: 0.8em;
  cursor: pointer;
}

.footer .signup p {
  line-height: 1.5;
}
/* --- Pricing / Quote builder --------------------------------- */
.pricing-section  { padding-top: 74px; }

.pricing-header {
  display: flex; align-items: end;
  justify-content: space-between;
  gap: 28px; margin-bottom: 30px;
}

.pricing-header-link { flex: 0 0 auto; }

.quote-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px; align-items: stretch;
}

.quote-control-panel,
.quote-summary-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.075), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.032));
  box-shadow: var(--shadow); overflow: hidden;
}

.quote-control-panel { padding: 20px; display: grid; gap: 18px; }

.quote-block {
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px; background: rgba(0,0,0,0.18);
}

.quote-block-head {
  display: flex; align-items: center;
  gap: 12px; margin-bottom: 16px;
}

.quote-block-head span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(244,241,235,0.75);
  font-size: 0.76rem; letter-spacing: 0.08em;
}

.quote-block-head h3 { font-size: 1rem; letter-spacing: -0.01em; }

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.package-card {
  appearance: none; text-align: left;
  min-height: 160px; padding: 16px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022));
  color: var(--text); cursor: pointer;
  display: flex; flex-direction: column;
  justify-content: space-between; gap: 12px;
  transition: transform 0.22s ease, border-color 0.22s ease,
              background 0.22s ease, box-shadow 0.22s ease;
}

.package-card:hover,
.package-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.32);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.14), transparent 48%),
    rgba(255,255,255,0.075);
  box-shadow: 0 20px 54px rgba(0,0,0,0.35);
}

.package-kicker {
  color: rgba(244,241,235,0.62);
  font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase;
}

.package-card strong {
  display: block; font-size: 1.08rem;
  line-height: 1.05; letter-spacing: -0.02em;
}

.package-card small {
  display: block; color: rgba(244,241,235,0.6);
  font-size: 0.82rem; line-height: 1.35;
}

.quote-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px; align-items: start;
}

.slider-card {
  padding: 18px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
}

.slider-meta {
  display: flex; align-items: center;
  justify-content: space-between; gap: 14px; margin-bottom: 16px;
}

.slider-meta label  { color: var(--muted); font-size: 0.9rem; }
.slider-meta strong { font-size: 1.28rem; letter-spacing: -0.03em; }

.slider-card input[type="range"] { width: 100%; accent-color: var(--text); }

.add-on-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.addon-chip { position: relative; cursor: pointer; }

.addon-chip input { position: absolute; opacity: 0; pointer-events: none; }

.addon-chip span {
  display: inline-flex; min-height: 42px;
  align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  color: rgba(244,241,235,0.76); font-size: 0.88rem;
  transition: border-color 0.2s ease, background 0.2s ease,
              color 0.2s ease, transform 0.2s ease;
}

.addon-chip input:checked + span {
  border-color: rgba(255,255,255,0.36);
  background: var(--text); color: #080808;
  transform: translateY(-1px);
}

.quote-summary-card {
  position: sticky; top: 96px; align-self: start;
  padding: 28px; min-height: 100%;
  background:
    radial-gradient(circle at 24% 0%, rgba(255,255,255,0.16), transparent 32%),
    linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045));
}

.estimate-label {
  color: rgba(244,241,235,0.66); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.18em;
}

.estimate-total {
  margin-top: 14px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.88; letter-spacing: -0.075em;
}

.quote-summary-card p { color: rgba(244,241,235,0.72); margin-top: 16px; }

.estimate-divider { height: 1px; margin: 24px 0; background: rgba(255,255,255,0.12); }

.quote-breakdown { display: grid; gap: 14px; }

.quote-breakdown div {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 18px;
}

.quote-breakdown dt { color: rgba(244,241,235,0.56); font-size: 0.84rem; }
.quote-breakdown dd { color: var(--text); font-size: 0.92rem; text-align: right; max-width: 58%; }

.quote-email-btn  { width: 100%; margin-top: 28px; }

.estimate-note {
  display: block; margin-top: 14px;
  color: rgba(244,241,235,0.52);
  font-size: 0.78rem; line-height: 1.45;
}

/* --- Misc ---------------------------------------------------- */
#particleOrbit { display: none !important; }

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* --- 1100px — quote builder collapses ----------------------- */
@media (max-width: 1100px) {
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .quote-builder,
  .quote-split   { grid-template-columns: 1fr; }

  .quote-summary-card { position: relative; top: auto; }
}

/* --- 980px — main layout collapses -------------------------- */
@media (max-width: 980px) {
  .hero-grid, .feature-grid, .page-hero-grid,
  .contact-grid, .services-grid, .gallery-grid,
  .stats-grid, .featured-videos, .secondary-videos,
  .policy-grid { grid-template-columns: 1fr; }

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

  .hero             { min-height: auto; padding: 44px 0 60px; }
  .hero-editorial-split { min-height: auto; align-items: end; }

  .hero-editorial-shell {
    grid-template-columns: 1fr;
    gap: 22px; padding: 88px 0 48px;
  }

  .hero-editorial-panel {
    width: min(100%, 520px);
    height: 62vh; min-height: 420px;
  }

  .hero-card,
  .page-hero-media,
  .feature-card { min-height: 420px; }

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

  .mosaic-card.tall,
  .mosaic-card.wide,
  .mosaic-card.half { grid-column: span 1; min-height: 320px; }

  .nav-inner { align-items: flex-start; padding: 16px 0; min-height: auto; }
}

/* --- 768px — mobile ----------------------------------------- */
@media (max-width: 768px) {
  .container,
  .nav-inner,
  .footer-inner { width: min(var(--max), calc(100% - 24px)); }

  .section       { padding: 48px 0; }
  .page-hero     { padding: 42px 0 12px; }
  .hero          { padding: 28px 0 48px; min-height: auto; }

  .hero-bg-image { filter: blur(4px) saturate(0.9) brightness(0.48); transform: scale(1.04); }
  .hero-editorial-shell { padding: 68px 0 30px; gap: 18px; }

  /* Nav */
  .nav-inner { display: block; padding: 12px 0 10px; }
  .logo      { display: block; margin-bottom: 10px; font-size: 0.88rem; letter-spacing: 0.28em; }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px; justify-content: stretch;
  }

  .nav-links a {
    display: flex; align-items: center; justify-content: center;
    min-height: 38px; padding: 8px 10px;
    border: 1px solid var(--line); border-radius: 999px;
    background: rgba(255,255,255,0.03);
    font-size: 0.8rem; text-align: center; line-height: 1.2;
  }

  .nav-links a.active { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); }

  /* Typography */
  .hero-copy h1,
  .page-hero-copy h1,
  .editorial-copy h1 { font-size: clamp(2.15rem, 10vw, 3.4rem); line-height: 0.96; letter-spacing: -0.04em; }

  .section-title { font-size: clamp(1.85rem, 9vw, 2.7rem); line-height: 0.98; }

  .hero-copy p, .page-hero-copy p, .section-copy, .service-card p,
  .video-meta p, .feature-card.copy p, .feature-card.copy li,
  .contact-card p, .contact-card li, .stat span, .editorial-copy p {
    font-size: 0.96rem; line-height: 1.55;
  }

  .editorial-copy, .editorial-copy p { max-width: 100%; }

  /* Buttons */
  .cta-row { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
  .btn, .btn-secondary { width: 100%; min-height: 46px; padding: 0 18px; }
  .btn { margin-top: 22px; }
  .cta-row .btn, .cta-row .btn-secondary { margin-top: 0; }

  /* Panels & cards */
  .hero-editorial-panel { width: 100%; min-height: 360px; height: 54vh; border-radius: 20px; }
  .hero-card, .feature-card, .page-hero-media { min-height: 300px; }

  .hero-card, .feature-card, .stat, .gallery-item, .contact-card,
  .service-card, .mosaic-card, .video-card, .page-hero-media { border-radius: 18px; }

  .service-card, .contact-card, .feature-card.copy,
  .video-meta, .stat { padding: 18px; }

  .card-overlay { padding: 16px; }

  /* Gallery */
  .gallery-grid     { gap: 14px; margin-top: 22px; }
  .gallery-item     { aspect-ratio: 4 / 5.25; }
  .gallery-caption  { inset: auto 10px 10px; padding: 10px 12px; border-radius: 14px; font-size: 0.84rem; }

  /* Mosaic */
  .mosaic-grid { grid-template-columns: 1fr; gap: 14px; }
  .mosaic-card.tall, .mosaic-card.wide, .mosaic-card.half { grid-column: span 1; min-height: 260px; }
  .mosaic-card .label, .video-tag { font-size: 0.76rem; }

  /* Video */
  .video-grid { gap: 14px; margin-top: 22px; }
  .video-meta h3, .service-card h3, .contact-card h3, .card-overlay h3 { font-size: 1rem; }

  /* Footer */
  .footer-inner { font-size: 0.85rem; gap: 8px; flex-direction: column; }
  .footer       { padding: 22px 0 28px; }

  /* Instagram */
  .instagram-section { padding-top: 48px; }
  .instagram-head    { display: grid; gap: 18px; margin-bottom: 22px; }
  .instagram-cta     { width: fit-content; }
  .instagram-widget-shell { min-height: 300px; border-radius: 18px; padding: 12px; }

  /* Policy */
  .policy-section { padding-top: 48px; }
  .policy-grid    { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .policy-card    { min-height: auto; padding: 18px; border-radius: 18px; }

  /* Quote */
  .pricing-header           { display: grid; gap: 18px; }
  .pricing-header-link      { width: fit-content; }
  .quote-control-panel, .quote-summary-card { border-radius: 20px; }
  .quote-control-panel, .quote-block, .quote-summary-card { padding: 16px; }
  .package-grid { grid-template-columns: 1fr; }
  .package-card { min-height: 124px; }
  .estimate-total { font-size: clamp(2.8rem, 16vw, 4.4rem); }
  .quote-breakdown div { display: grid; gap: 4px; }
  .quote-breakdown dd  { max-width: 100%; text-align: left; }
}

/* --- 520px — smallest phones --------------------------------- */
@media (max-width: 520px) {
  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1, .page-hero-copy h1,
  .editorial-copy h1 { font-size: clamp(1.95rem, 11vw, 2.8rem); }

  .section-title { font-size: clamp(1.7rem, 9vw, 2.3rem); }

  .hero-editorial-shell  { padding: 58px 0 24px; }
  .hero-editorial-panel  { min-height: 320px; height: 48vh; }
  .hero-panel-badge      { font-size: 0.72rem; left: 12px; bottom: 12px; }
  .page-hero-media, .hero-card, .feature-card { min-height: 260px; }
  .square-frame          { aspect-ratio: 4 / 5; }

  .contact-card input,
  .contact-card textarea { padding: 13px 14px; border-radius: 14px; }

  .intro-container h1 {
    font-size: clamp(2.9rem, 16vw, 4.9rem);
    letter-spacing: 0.13em; text-indent: 0.13em;
  }

  .intro-container .btn { width: auto; min-width: 142px; padding: 0 24px; }
}
