/* A living signal field, with the original portrait composited into the scene. */
.hero-immersive {
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: 760px;
  padding: 0;
  overflow: clip;
  background: var(--bg);
  --scene-ink: #285dc5;
}
.hero-immersive::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 43% 62% at 77% 44%, oklch(92% .045 255 / .7), transparent 85%);
}
.signal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mask-image: linear-gradient(to bottom, transparent, black 7%, black 74%, transparent 94%); }
.hero-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; min-height: 760px; gap: 20px; padding-block: 68px 94px; }
.hero-immersive .hero-copy { position: relative; z-index: 4; animation: none; }
.hero-immersive .hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 11px; }
.hero-kicker-line { display: block; width: 28px; height: 1px; background: currentColor; }
.hero-immersive h1 { font-size: clamp(40px, 4.2vw, 62px); line-height: 1.12; letter-spacing: -.04em; max-width: none; }
.hero-immersive h1 .hero-line { display: block; color: var(--ink); overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-immersive h1 .hero-line > span { display: block; color: inherit; }
.hero-immersive h1 .hero-line-accent { color: var(--blue); }
.hero-immersive .hero-description { max-width: 46ch; margin-top: 29px; font-size: 14px; }
.hero-immersive .hero-actions { margin-top: 28px; gap: 24px; }
.hero-immersive .hero-location { margin-top: 37px; }
.hero-immersive .hero-portrait { position: relative; z-index: 2; align-self: stretch; padding: 0; margin: 0 -25px 0 -35px; animation: none; min-height: 598px; pointer-events: none; }
.hero-immersive .portrait-image {
  position: absolute;
  inset: -13px -28px 30px;
  border-radius: 0;
  background: none;
  overflow: visible;
  aspect-ratio: auto;
  transform-origin: 50% 65%;
  will-change: transform;
}
.hero-immersive .portrait-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  /* Imagegen supplies alpha only; all visible pixels come from the original JPG. */
  mask-image: url('/images/portrait-alpha-imagegen-v1.png');
  mask-mode: alpha;
  mask-size: contain;
  mask-position: center bottom;
  mask-repeat: no-repeat;
  -webkit-mask-image: url('/images/portrait-alpha-imagegen-v1.png');
  -webkit-mask-size: contain;
  -webkit-mask-position: center bottom;
  -webkit-mask-repeat: no-repeat;
}
.hero-immersive .hero-portrait figcaption {
  position: absolute;
  bottom: 0;
  left: 29%;
  right: 3%;
  padding: 0;
  z-index: 2;
  gap: 12px;
  justify-content: start;
  align-items: center;
  color: var(--body);
  font-size: 10px;
}
.hero-immersive .hero-portrait figcaption::before { content: ''; width: 18px; height: 1px; background: var(--blue); }
.hero-immersive .hero-portrait figcaption span:last-child { display: none; }

.hero-immersive .button-primary { box-shadow: 0 8px 22px oklch(48% .18 261 / .14); }
.hero-immersive .button-primary:hover { transform: translateY(-2px); }
.hero-immersive .button-primary:active { transform: translateY(0); }

[data-theme='dark'] .hero-immersive::before { background: radial-gradient(ellipse 43% 62% at 77% 44%, oklch(30% .06 255 / .6), transparent 85%); }
@keyframes hero-line-in { from { opacity: 0; transform: translateY(105%) rotate(2deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes hero-detail-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes portrait-in { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-immersive .hero-line > span { animation: hero-line-in 1.15s var(--ease) both; }
  .hero-immersive .hero-line:nth-child(2) > span { animation-delay: .12s; }
  .hero-immersive .hero-line:nth-child(3) > span { animation-delay: .24s; }
  .hero-immersive .hero-kicker { animation: hero-detail-in .8s .08s var(--ease) both; }
  .hero-immersive .hero-description { animation: hero-detail-in .9s .4s var(--ease) both; }
  .hero-immersive .hero-actions { animation: hero-detail-in .9s .5s var(--ease) both; }
  .hero-immersive .hero-location { animation: hero-detail-in .9s .65s var(--ease) both; }
  .hero-immersive .hero-portrait { animation: portrait-in 1.7s .1s var(--ease) both; }
}
@media (min-width: 1500px) { .hero-immersive { padding: 0; }.hero-layout { min-height: 800px; }.hero-immersive .hero-portrait { margin-right: -35px; } }
@media (max-width: 1100px) {
  .hero-immersive { min-height: 710px; padding: 0; }.hero-layout { min-height: 710px; grid-template-columns: 1.12fr 1fr; padding-block: 70px 100px; }.hero-immersive h1 { font-size: clamp(40px, 4.2vw, 62px); }.hero-immersive .hero-portrait { min-height: 550px; margin-left: -70px; margin-right: -30px; }.hero-immersive .hero-description { font-size: 13px; max-width: 41ch; }.hero-immersive .hero-actions { gap: 16px; }.hero-immersive .hero-actions .text-link { font-size: 11px; gap: 12px; }.hero-immersive .hero-actions .button { font-size: 12px; padding-inline: 18px; gap: 22px; }
}
@media (max-width: 800px) {
  .hero-immersive { min-height: 690px; padding: 0; }.hero-layout { min-height: 690px; padding-top: 65px; }.hero-immersive h1 { font-size: 48px; }.hero-immersive .hero-kicker { font-size: 9px; gap: 9px; }.hero-kicker-line { width: 18px; }.hero-immersive .hero-portrait { margin-left: -80px; margin-right: -40px; min-height: 510px; }.hero-immersive .hero-description { font-size: 12px; max-width: 38ch; }.hero-immersive .hero-portrait figcaption { bottom: 2px; left: 33%; flex-direction: row; }
}
@media (max-width: 800px) {
  .hero-immersive { min-height: 0; padding: 0; }.hero-layout { min-height: 0; grid-template-columns: 1fr; gap: 0; padding-top: 43px; padding-bottom: 94px; }.hero-immersive .hero-kicker { font-size: 9px; margin-bottom: 24px; }.hero-immersive h1 { max-width: none; font-size: clamp(29px, 8.5vw, 60px); line-height: 1.14; letter-spacing: -.04em; }.hero-immersive h1 .hero-line:nth-child(1), .hero-immersive h1 .hero-line:nth-child(2) { display: block; }.hero-immersive h1 .hero-line-accent { display: block; margin-top: 5px; }.hero-immersive .hero-description { font-size: 13px; max-width: 47ch; line-height: 1.85; margin-top: 26px; }.hero-immersive .hero-actions { gap: 17px; margin-top: 24px; }.hero-immersive .hero-location { margin-top: 26px; font-size: 9px; }.hero-immersive .hero-portrait { min-height: 440px; margin: 20px -20px -10px; }.hero-immersive .portrait-image { inset: 0 0 25px; }.hero-immersive .hero-portrait figcaption { bottom: -6px; left: 17%; font-size: 9px; }.hero-immersive::before { background: radial-gradient(ellipse 65% 33% at 50% 76%, oklch(92% .045 255 / .8), transparent 90%); }[data-theme='dark'] .hero-immersive::before { background: radial-gradient(ellipse 65% 33% at 50% 76%, oklch(30% .06 255 / .6), transparent 90%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-immersive *, .hero-immersive *::before, .hero-immersive *::after { animation: none !important; transition: none !important; }
  
}
@media print { .signal-canvas { display: none; }.hero-immersive, .hero-layout { min-height: 0; }.hero-layout { padding-block: 30px; }.hero-immersive .hero-portrait { min-height: 400px; } }
