/* Dynamic CF Hero + Blueprint SVG + Atmospheric Light + Sticky Intro Stage */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: #101214; color: #fff;
  overflow: hidden;
  padding: 112px 0 96px;
}
.hero-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0;
  clip-path: inset(6% 4% 6% 4% round 14px);
  transition: opacity 0.9s ease, clip-path 1.1s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.hero-layer.active {
  opacity: 1;
  clip-path: inset(0% 0% 0% 0% round 0px);
}
.hero-cursor-light {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 65%) var(--my, 45%), rgba(235, 208, 162, 0.22), transparent 65%);
}
.hero-layer video, .hero-layer img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1.16) contrast(1.04);
  transform: scale(1.08) translate3d(0, 0, 0);
}
.hero-layer.active video, .hero-layer.active img {
  animation: kenBurnsArchi 7.5s ease-out forwards;
}
@keyframes kenBurnsArchi {
  0% { transform: scale(1.1) translate3d(-1.2%, 0, 0); }
  100% { transform: scale(1.0) translate3d(0.8%, -0.6%, 0); }
}
.hero-fallback-bg {
  position: absolute; inset: 0;
  background: linear-gradient(125deg, #e8e2d7 0%, #d4cab9 100%);
}
.hero-shade {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(95deg, rgba(18,20,22,0.44) 0%, rgba(18,20,22,0.18) 46%, rgba(18,20,22,0.04) 100%);
}
.hero-grid-svg {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.24;
}
.hero-grid-svg path, .hero-grid-svg line, .hero-grid-svg rect {
  stroke: #d9bf94; stroke-width: 0.9; fill: none;
  stroke-dasharray: 640; stroke-dashoffset: 640;
  animation: heroDraw 2.6s cubic-bezier(.22,1,.36,1) .25s forwards;
}
@keyframes heroDraw { to { stroke-dashoffset: 0; } }

/* Floating architectural light dust (modeled on /dental/hero.js) */
.light-atmosphere {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden;
}
.light-atmosphere i {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--size); height: var(--size); border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 206, 152, 0.85), rgba(236, 206, 152, 0));
  animation: drift var(--time) ease-in-out var(--delay) infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(0.8); opacity: 0.25; }
  to { transform: translate3d(18px, -24px, 0) scale(1.25); opacity: 0.75; }
}

/* Hero Copy (Left 40% zone) */
.hero-inner {
  position: relative; z-index: 6;
  width: min(var(--max), 100% - 32px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 560px) 1fr; align-items: center; gap: 32px;
}
.hero-copy { transition: opacity .35s ease, transform .35s ease; }
.hero-copy.changing { opacity: 0; transform: translateY(10px); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-soft); font-weight: 700;
  margin-bottom: 14px;
}
.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.15; letter-spacing: -0.035em; font-weight: 800;
}
.hero-copy h1 .char {
  display: inline-block;
  animation: charUp .52s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(var(--i) * 24ms);
}
@keyframes charUp {
  from { opacity: 0.12; transform: translateY(18px) rotateX(28deg); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) rotateX(0deg); filter: blur(0); }
}
.hero-grid-svg {
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.hero-desc { margin: 0 0 26px; font-size: 16px; color: rgba(255,255,255,0.82); max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero Scene Controls (modeled on /care/care-motion.js) */
.hero-controls {
  position: absolute; left: clamp(16px, 4vw, 48px); bottom: 28px; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero-controls button {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(16,18,20,0.56); color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25); font-size: 12px; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(8px);
}
.hero-controls button[aria-pressed="true"] { background: var(--brass); color: #fff; border-color: var(--brass); }
.hero-progress {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0%; z-index: 10;
  background: linear-gradient(90deg, var(--brass), var(--brass-soft));
}

/* Bounded Sticky Intro Stage (modeled on /care/care-motion.js) */
.intro-scroll { position: relative; min-height: 165vh; background: var(--dark); }
.intro-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
.intro-visual {
  position: absolute; inset: 10% 8%; border-radius: 18px; overflow: hidden;
  transition: border-radius .2s linear;
}
.intro-visual img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.intro-visual::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(16,18,20, calc(0.45 + var(--scene-dim, 0) * 0.25));
}
.intro-caption {
  position: relative; z-index: 2; text-align: center; color: #fff;
  width: min(740px, 100% - 36px);
}
.intro-caption h2 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 46px); line-height: 1.2; letter-spacing: -0.03em; }
.intro-caption p { margin: 0; font-size: 16px; color: rgba(255,255,255,0.82); }

/* Scroll reveal — visible by default so full-page captures and non-scrolled views never show blank sections */
.reveal { opacity: 1; transform: translateY(0); transition: transform .55s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-controls { bottom: 18px; }
  .intro-scroll { min-height: 120vh; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-copy h1 .char { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .hero-layer.active video, .hero-layer.active img { animation: none !important; transform: none !important; }
  .light-atmosphere i { animation: none !important; }
}
