/* One pointer layer; real links stay in place and retain their native hit targets. */
.hover-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e4ded7;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  will-change: transform, width, height;
  transition: opacity .18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hover-cursor.is-visible { opacity: 1; }
.hover-cursor > span { display: none; }
.hover-cursor.has-label { mix-blend-mode: normal; color: #19171a; }
.hover-cursor.has-label > span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -.02em;
}
.cursor-enhanced, .cursor-enhanced * { cursor: none !important; }
.cursor-enhanced [data-cursor-snap]:hover {
  background-color: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.cursor-enhanced .outline-link:hover > span,
.cursor-enhanced .text-link:hover > span { color: var(--cream); }
.cursor-enhanced .dock > a.active:hover { background-color: transparent; }
.magnetic-link {
  translate: var(--magnet-x, 0px) var(--magnet-y, 0px);
  transition: translate .3s var(--ease), color .25s, background-color .25s, border-color .25s;
}
.email-link { display: inline-block; }
.reveal-ready:focus-within { opacity: 1; transform: none; }
.outline-link > span, .text-link > span, .joyride-arrow {
  display: inline-block;
  transition: transform .35s var(--ease), color .25s;
}
.outline-link:is(:hover, :focus-visible) > span,
.text-link:is(:hover, :focus-visible) > span,
.joyride:is(:hover, :focus-visible) .joyride-arrow { transform: translate(3px, -3px); }
.circle-link:is(:hover, :focus-visible) { transform: translate(2px, -2px); }
.outline-link:focus-visible, .circle-link:focus-visible,
.dock > a:focus-visible { background: var(--cream); color: var(--bg); }
.outline-link:focus-visible > span { color: var(--bg); }

.portrait {
  z-index: 5;
  transform: translateX(-50%) translateY(var(--portrait-lift, 0px)) perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--portrait-scale, 1));
  outline-offset: 9px;
}
.portrait-glass {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid #dce3ed38;
  background: linear-gradient(145deg, #8993a836, #13171fb8 76%);
  -webkit-backdrop-filter: blur(14px) saturate(.75);
  backdrop-filter: blur(14px) saturate(.75);
  box-shadow: 0 12px 35px #0003, inset 0 1px 0 #f3f3f320;
  transition: box-shadow .65s var(--ease), border-color .65s var(--ease);
}
.portrait .portrait-glass img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: grayscale(.18) saturate(.9);
}
.hero .portrait figcaption {
  top: calc(100% + 16px);
  bottom: auto;
  font-family: Syne, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .015em;
  color: #acaeb3;
}
.portrait-caption { display: block; }
.portrait-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  min-height: 28px;
  margin: 24px auto 0;
  padding: 3px 8px;
  color: #95979d;
  font-size: 9px;
  letter-spacing: .035em;
  transition: color .25s;
}
.portrait-scroll:is(:hover, :focus-visible) { color: var(--cream); }
.portrait-scroll .scroll-arrow { font-size: 18px; line-height: 1; }
.hero-bottom .hero-location { grid-column: -2; }
@media (min-width: 701px) and (max-height: 800px) {
  .portrait {
    top: 40%;
    width: clamp(180px, 16vw, 210px);
    height: clamp(180px, 16vw, 210px);
  }
}
.portrait-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--sheen-x, 15%) var(--sheen-y, 5%), #f4f3efaa, transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .55;
  transition: opacity .4s;
}
.joyride-focus-label {
  display: none;
  position: absolute;
  z-index: 5;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--cream);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.portrait:focus-visible .portrait-glass { border-color: #e4ded770; }
.joyride { position: relative; }
.joyride.hero-joyride { position: absolute; }
.joyride-focus-label { bottom: calc(100% + 12px); right: 0; }
.joyride:focus-visible .joyride-focus-label { display: block; }

/* Project motion is illustrative: it runs only while a visitor engages a card. */
.pipeline-line span { border-radius: 4px; padding: 5px 7px; margin-inline: -7px; }
.pipeline-line span, .classification span { transition: background-color .3s, color .3s, box-shadow .3s; }
.forecast-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.review-checks span { border-radius: 3px; padding: 3px; margin: -3px; }
.clipboard-packet {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 65px;
  height: 45px;
  border: 1px solid #d9ceff99;
  border-radius: 6px;
  background: #bdb1e9;
  box-shadow: 0 6px 24px #0004;
  padding: 9px;
  opacity: 0;
  pointer-events: none;
}
.clipboard-packet i { display: block; height: 3px; margin-block: 4px; background: #30294288; border-radius: 2px; }
.clipboard-packet i:nth-child(2) { width: 70%; }
.clipboard-packet i:nth-child(3) { width: 85%; }

@keyframes pipeline-node {
  0%, 12%, 68%, 100% { color: inherit; background: transparent; box-shadow: none; }
  22%, 48% { color: #ffe8df; background: #c66c6140; box-shadow: 0 0 18px #d87a6030; }
}
@keyframes classification-result {
  0%, 55%, 100% { box-shadow: none; }
  70%, 85% { box-shadow: 0 0 0 1px #f7a89c, 0 0 20px #b3423a40; }
}
@keyframes forecast-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes evidence-check {
  0%, 15%, 100% { background: transparent; }
  35%, 65% { background: #9b604226; }
}
@keyframes clipboard-transfer {
  0%, 12% { transform: translate(-112px, -55px) rotate(-7deg) scale(.75); opacity: 0; }
  24% { opacity: 1; }
  68% { transform: translate(44px, 0px) rotate(7deg) scale(.85); opacity: 1; }
  82%, 100% { transform: translate(44px, 0px) rotate(7deg) scale(.6); opacity: 0; }
}
@keyframes receive-flash {
  0%, 55%, 100% { background: #171b28; }
  70%, 85% { background: #38324c; }
}
@keyframes road-scroll { to { background-position-x: -24px; } }

/* Keyboard focus gets the same project stories as mouse hover. */
.project-card:focus-within .pipeline-line span { animation: pipeline-node 2.6s infinite; }
.project-card:focus-within .pipeline-line span:nth-of-type(2) { animation-delay: .35s; }
.project-card:focus-within .pipeline-line span:nth-of-type(3) { animation-delay: .7s; }
.project-card:focus-within .classification span:last-child { animation: classification-result 2.6s infinite; }
.project-card:focus-within .forecast-line { animation: forecast-draw 1.8s var(--ease) both; }
.project-card:focus-within .review-checks span { animation: evidence-check 2.4s infinite; }
.project-card:focus-within .review-checks span:nth-child(2) { animation-delay: .3s; }
.project-card:focus-within .review-checks span:nth-child(3) { animation-delay: .6s; }
.project-card:focus-within .clipboard-packet { animation: clipboard-transfer 2.6s infinite var(--ease); }
.project-card:focus-within .device-two { animation: receive-flash 2.6s infinite; }
.project-card:focus-within .mini-window { transform: rotate(-1deg) translateY(-5px); }
.project-card:focus-within .foresight-ui { transform: rotate(1deg) translateY(-5px); }
.project-card:focus-within .evidence-stack { transform: rotate(-1deg) translateY(-5px); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .portrait:is(:hover, :focus-visible) { --portrait-scale: 1.012; --portrait-lift: -4px; }
  .portrait:is(:hover, :focus-visible) .portrait-glass { border-color: #dce3ed70; box-shadow: 0 18px 42px #0004, inset 0 1px 0 #f3f3f32b; }
  .portrait:is(:hover, :focus-visible) .portrait-glass::after { opacity: .9; }
  .project-card:hover .pipeline-line span { animation: pipeline-node 2.6s infinite; }
  .project-card:hover .pipeline-line span:nth-of-type(2) { animation-delay: .35s; }
  .project-card:hover .pipeline-line span:nth-of-type(3) { animation-delay: .7s; }
  .project-card:hover .classification span:last-child { animation: classification-result 2.6s infinite; }
  .project-card:hover .forecast-line { animation: forecast-draw 1.8s var(--ease) both; }
  .project-card:hover .review-checks span { animation: evidence-check 2.4s infinite; }
  .project-card:hover .review-checks span:nth-child(2) { animation-delay: .3s; }
  .project-card:hover .review-checks span:nth-child(3) { animation-delay: .6s; }
  .project-card:hover .clipboard-packet { animation: clipboard-transfer 2.6s infinite var(--ease); }
  .project-card:hover .device-two { animation: receive-flash 2.6s infinite; }
  .joyride:is(:hover, :focus-visible) .tiny-car { animation: joyride 1.15s infinite var(--ease); }
  .joyride:is(:hover, :focus-visible) .car-track {
    background: repeating-linear-gradient(90deg, #d4bab56b 0 6px, transparent 6px 12px) 0 100% / 12px 1px repeat-x;
    border-bottom-color: transparent;
    animation: road-scroll .6s linear infinite;
  }
}
@media (max-width: 700px) { .portrait-glass { border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .hover-cursor { display: none !important; }
  .magnetic-link { translate: none !important; }
  .portrait { transform: translateX(-50%) !important; }
  .portrait-glass::after { opacity: .55; }
  .clipboard-packet { display: none; }
  .project-card .mini-window { transform: rotate(-5deg) !important; }
  .project-card .foresight-ui { transform: rotate(4deg) !important; }
  .project-card .evidence-stack { transform: rotate(-4deg) !important; }
  .outline-link > span, .text-link > span, .joyride-arrow, .circle-link { transform: none !important; }
}
