/* Portfolio v2: shared motion and a more architectural home composition. */
.reading-progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #315bf5;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.hero {
  position: relative;
  padding: 54px 48px 0;
  margin-top: 20px;
  border-radius: 36px;
  background: linear-gradient(
    125deg,
    var(--surface),
    var(--bg) 64%,
    var(--surface)
  );
}
.hero-grid {
  grid-template-columns: 1.18fr 1fr;
  align-items: center;
  gap: 0;
  min-height: 600px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(52px, 5.4vw, 82px);
  line-height: 1.06;
}
.hero .hero-lead {
  font-size: 18px;
  max-width: 560px;
}
.hero .eyebrow {
  color: var(--accent);
}
.hero .cta {
  gap: 12px 18px;
}
.hero .btn {
  font-size: 13px;
}
.btn-primary {
  border-radius: 99px;
  box-shadow: 0 12px 24px #315bf51a;
}
.hero-art {
  position: relative;
  isolation: isolate;
  margin: 0 -20px 0 0;
}
.hero-art img {
  transform: translate3d(var(--pointer-x, 0px), var(--pointer-y, 0px), 0);
  transition: transform 0.5s ease-out;
}
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6%;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 50%;
}
.hero-art::after {
  inset: 0;
  border-style: dashed;
  transform: rotate(-25deg) scaleY(0.82);
}
.orbit-label {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 99px;
  box-shadow: 0 12px 30px #11243a08;
  font-size: 12px;
  font-weight: 600;
}
.orbit-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.orbit-label:nth-of-type(1) {
  top: 5%;
  left: 8%;
}
.orbit-label:nth-of-type(2) {
  top: 26%;
  right: -10px;
}
.orbit-label:nth-of-type(3) {
  bottom: 10%;
  right: 0;
}
.hero .capabilities {
  margin-top: 26px;
  padding: 24px 0;
}
.product-featured,
.product-small {
  position: relative;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 16px 0 8px;
}
.project-link::after {
  content: "↗";
  font-size: 23px;
  transition: transform 0.25s;
}
.project-link:hover::after {
  transform: translate(4px, -4px);
}
.project-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 24px;
}
.product-featured:hover,
.product-small:hover {
  border-color: var(--accent);
}
.product-featured {
  background: var(--surface);
  padding: 32px;
  border-radius: 28px;
  border: 1px solid transparent;
}
.product-pair {
  gap: 28px;
}
.product-small {
  padding: 30px;
  border-radius: 28px;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.product-small .product-copy {
  position: static;
}
.product-small .product-copy p {
  font-size: 15px;
  max-width: 440px;
}
.product-small h3 {
  font-size: 34px;
}
.product-small .product-copy .meta {
  font-size: 12px;
}
.product-small .product-visual {
  height: 280px;
}
.product-small .product-visual img {
  object-fit: contain;
}
.product-small:last-child {
  background: var(--surface);
}
.project-credit-link {
  display: inline-block;
  position: relative;
  z-index: 2;
  margin: 8px 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  text-underline-offset: 4px;
}
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}
.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal-ready [data-reveal].is-visible:nth-child(2) {
  transition-delay: 0.07s;
}
.site-header {
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 22px #11243a07;
}
@media (max-width: 1100px) {
  .hero {
    padding: 40px 30px 0;
  }
  .hero-grid {
    min-height: 520px;
  }
  .hero h1 {
    font-size: clamp(42px, 5.4vw, 66px);
  }
  .hero .hero-lead {
    font-size: 16px;
  }
  .hero .cta {
    display: grid;
    justify-items: start;
  }
}
@media (max-width: 820px) {
  .hero {
    padding: 36px 24px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(42px, 8vw, 70px);
  }
  .hero-copy {
    max-width: 650px;
  }
  .hero-art {
    width: min(440px, 94%);
    margin: 20px auto 0;
  }
  .hero .cta {
    display: flex;
  }
  .hero .capabilities {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .hero .capabilities span + span {
    padding-left: 20px;
  }
  .product-featured {
    padding: 24px;
  }
  .product-small {
    padding: 24px;
  }
}
@media (max-width: 600px) {
  .hero {
    width: calc(100% - 24px);
    padding: 32px 20px 0;
    border-radius: 26px;
    margin-top: 10px;
  }
  .hero h1 {
    font-size: clamp(36px, 9vw, 54px);
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.4px;
  }
  .hero .hero-lead {
    font-size: 15px;
  }
  .hero .cta {
    gap: 4px 16px;
  }
  .hero-art {
    width: 86%;
    margin-top: 20px;
  }
  .orbit-label {
    padding: 7px 11px;
    font-size: 10px;
  }
  .hero .capabilities {
    font-size: 10px;
    gap: 9px;
    padding: 18px 0;
  }
  .hero .capabilities span + span {
    padding-left: 9px;
  }
  .product-small .product-visual {
    height: 220px;
  }
  .product-small h3 {
    font-size: 28px;
  }
  .project-credit-link {
    margin-left: 8px;
  }
}
/* One shared, image-led project family: Track Me is the first priority. */
.product-stack {
  display: grid;
  gap: 28px;
}
.product-stack .product-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.5fr);
  gap: 32px;
  padding: 32px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid transparent;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.product-stack .product-card:is(:hover, :focus-within) {
  border-color: var(--accent);
  box-shadow: 0 12px 40px #315bf50b;
}
.product-card .product-copy {
  min-width: 0;
  align-self: center;
  padding: 0;
}
.product-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.product-heading h3 {
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.product-heading .status {
  margin: 0;
  flex-shrink: 0;
}
.product-card .product-copy > p {
  font-size: 17px;
  margin: 22px 0 0;
  line-height: 1.7;
}
.product-card .product-copy > .meta {
  font-size: 13px;
  margin-top: 14px;
}
.product-actions {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 22px;
}
.product-card .project-link {
  padding: 6px 0;
  font-size: 14px;
}
.product-card .project-link::after {
  content: none;
}
.product-card .project-link::before {
  border-radius: 28px;
}
.product-card .project-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 5px 0;
  font-size: 12px;
}
.product-card .project-link .icon,
.product-card .project-credit-link .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s;
}
.product-card .project-link:hover .icon,
.product-card .project-credit-link:hover .icon {
  transform: translate(3px, -3px);
}
.product-stack .product-card .product-visual {
  position: relative;
  height: auto;
  aspect-ratio: 2 / 1;
  background: #edf4ff;
  border-radius: 20px;
}
.product-card .product-visual img {
  object-fit: contain;
}
.product-card .product-visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: #526581;
  font-size: 9px;
}
.product-card:hover .product-visual img {
  transform: scale(1.025);
}
@media (max-width: 1100px) {
  .product-stack .product-card {
    padding: 26px;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }
  .product-heading h3 {
    font-size: 30px;
  }
}
@media (max-width: 820px) {
  .product-stack .product-card {
    grid-template-columns: 1fr;
  }
  .product-card .product-copy > p {
    max-width: 560px;
  }
  .product-card .product-actions {
    margin-top: 18px;
  }
  .product-stack .product-card .product-visual {
    aspect-ratio: 2 / 1;
  }
}
@media (max-width: 600px) {
  .product-stack {
    gap: 20px;
  }
  .product-stack .product-card {
    padding: 22px;
    gap: 22px;
    border-radius: 24px;
  }
  .product-heading h3 {
    font-size: 28px;
  }
  .product-card .product-copy > p {
    font-size: 14px;
    margin-top: 18px;
  }
  .product-card .product-copy > .meta {
    font-size: 11px;
  }
  .product-stack .product-card .product-visual {
    border-radius: 14px;
  }
  .product-card .product-visual figcaption {
    right: 7px;
    bottom: 4px;
    font-size: 7px;
  }
  .product-card .project-credit-link {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-stack .product-card,
  .product-card .product-visual img,
  .product-card .project-link .icon,
  .product-card .project-credit-link .icon {
    transition: none;
    transform: none;
  }
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .reveal-ready [data-reveal].is-visible {
    transition: none;
  }
  .hero-art img {
    transform: none;
    transition: none;
  }
}
