/* The Gallery: a scene backdrop and geometrically matched head videos. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: -100px 0 80px;
  padding: 136px 0 48px;
  min-height: 740px;
  background: #090a0b;
  text-align: left;
}
.hero-backdrop { position: absolute; inset: 0; z-index: -1; }
/* Anchor the face beside the title, with headroom below the navigation on wide screens. */
.hero-backdrop video { position: absolute; top: 64px; left: calc(50% - 600px); width: 1440px; max-width: none; height: calc(100% - 64px); object-fit: cover; object-position: 30% top; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 85%, transparent); }
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090a0bd9, #090a0b80 42%, #090a0bd9 68%), linear-gradient(0deg, #090a0b, transparent 24%, #090a0b3b 80%, #090a0b);
}
.hero-layout { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 48px; }
.hero-content { position: relative; min-width: 0; padding-bottom: 20px; }
.hero .eyebrow { justify-content: flex-start; color: var(--accent); font-size: 9px; line-height: 1.8; letter-spacing: 1.8px; }
.hero .small-mark { background: var(--accent); }
.hero #project-title { font-size: clamp(38px, 5.2vw, 74px); line-height: 1.08; margin: 24px 0; letter-spacing: -.06em; }
.hero #project-title span { color: var(--accent); font-weight: 500; }
.hero h2 { max-width: 490px; margin: 0 0 22px; font-size: clamp(18px, 1.9vw, 26px); line-height: 1.4; letter-spacing: -.6px; }
.hero-description { margin: 0 0 30px; color: #c4c4c8; font-size: 14px; line-height: 1.85; }
.hero .hero-actions, .hero .resource-links, .hero .hero-tags { justify-content: flex-start; }
.hero .hero-actions { flex-wrap: wrap; }
.hero .button-primary { background: var(--accent); color: #130d08; }
.hero .button-primary:hover { background: #ffb375; }
.hero .button-quiet { background: #17181bb3; border-color: #ffffff30; color: #f6f4f0; }
.hero .button-quiet:hover { background: #303034; }
.hero .resource-links { margin-top: 22px; }
.hero .resource-link { background: #10111499; border-color: #ffffff30; color: #f1efeb; }
.hero .resource-link:hover { color: var(--accent); border-color: var(--accent); background: #231a14; }
.hero-tags { color: #aaa9ad; font-size: 9px; line-height: 1.8; }
.hero-tags span+span:before { color: var(--accent); margin-inline: 10px; }
.hero-visual { min-width: 0; width: 100%; max-width: 500px; justify-self: end; }
.hero-visual-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 10px; color: #c0bec1; }
.hero-visual-heading>span:first-child { color: var(--accent); letter-spacing: 2px; font-size: 9px; }
.hero-visual-heading>span:last-child>span { margin-left: 7px; color: var(--accent); }
.hero-head-comparison {
  --reveal: 50%;
  --reveal-top: 60%;
  --reveal-bottom: 40%;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: #0b0c0e;
  box-shadow: 0 0 0 1px #ffffff1f, 0 20px 70px #0005;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.hero-head-comparison video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-head-after { position: absolute; inset: 0; clip-path: polygon(var(--reveal-top) 0, 100% 0, 100% 100%, var(--reveal-bottom) 100%); }
.hero-diagonal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-diagonal path { fill: none; stroke: #ff9b52; stroke-width: 2; }
.hero-reveal-handle {
  position: absolute;
  left: var(--reveal);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 1px solid #ffb679;
  border-radius: 50%;
  background: #121316e8;
  color: #ffb679;
  box-shadow: 0 4px 24px #0008;
  display: grid;
  place-items: center;
  cursor: ew-resize;
  touch-action: none;
}
.hero-reveal-handle:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.hero-reveal-handle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-video-label { position: absolute; top: 18px; padding: 7px 10px; border: 1px solid #ffffff30; border-radius: 5px; background: #090a0bb3; color: #fff; font-size: 10px; pointer-events: none; }
.hero-original-label { left: 18px; }
.hero-enhanced-label { right: 18px; color: #ffb679; border-color: #ff9b5255; }
.hero-video-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.hero-video-toolbar p { margin: 0; font-size: 9px; color: #b0afb3; line-height: 1.6; }
.hero-video-buttons { display: flex; gap: 8px; }
.hero-media-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 11px; border: 1px solid #ffffff30; border-radius: 22px; background: #141518; color: #eee; font-size: 10px; }
.hero-media-button:hover, .hero-media-button[aria-pressed=true] { border-color: #ff9b52; color: #ffb679; background: #241b14; }
.hero-media-button svg { width: 15px; height: 15px; }
.hero-video-status { min-height: 14px; margin: 9px 0 0; font-size: 10px; color: #ffb679; }
@media (max-width: 1000px) {
  .hero-layout { gap: 30px; grid-template-columns: 1fr 1fr; }
  .hero { min-height: 710px; padding-top: 145px; }
  .hero-description { font-size: 12px; }
  .hero .desktop-break { display: none; }
  .hero .button { padding: 12px 16px; gap: 12px; font-size: 10px; }
  .hero #project-title { font-size: 5vw; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1px; }
}
@media (max-width: 700px) {
  .hero { min-height: 0; margin-top: -90px; margin-bottom: 46px; padding: 134px 0 30px; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: none; }
  .hero-content { padding: 0 4px; }
  .hero #project-title { font-size: clamp(36px, 9.2vw, 60px); margin: 20px 0; }
  .hero h2 { max-width: 440px; font-size: 20px; margin-bottom: 18px; }
  .hero-description { margin-top: 0; margin-bottom: 24px; font-size: 13px; }
  .hero-tags { font-size: 8px; }
  .hero-backdrop video { top: 54px; left: 0; width: 100%; height: 570px; object-position: 35% top; mask-image: none; }
  .hero-backdrop::after { background: linear-gradient(180deg, #090a0ba6 0%, #090a0bbf 42%, #090a0b 58%); }
  .hero-visual-heading { font-size: 9px; }
  .hero-video-label { top: 12px; font-size: 9px; }
  .hero-original-label { left: 12px; }
  .hero-enhanced-label { right: 12px; }
  .hero-video-toolbar { gap: 10px; }
}
