/* Service previews preserve the original 1200 × 630 OGP composition. */
.product-links { gap: 22px; }
.product-links .product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px #20262204;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.product-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  background: var(--paper);
}
.product-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbnail-white { background: #fff; }
.product-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 10px;
  padding: 20px 18px;
}
.product-card-info { min-width: 0; }
.product-links .product-card small { font-size: 11px; line-height: 1.7; }
.product-links .product-card strong { margin-top: 5px; font-size: 22px; }
.product-card-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--accent);
}
.product-card .circle-arrow { background: var(--paper); border-color: transparent; }
.product-links.single .product-card {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  align-items: center;
}
.product-links.single .product-thumbnail { border-radius: 5px 0 0 5px; }
.service-detail > p.service-note { margin-top: 18px; }
.service-category { align-self: start; }
.hero h1 { perspective: 1000px; }
.hero #hero-title { position: relative; }
.hero h1 > .hero-title-scramble {
  position: absolute;
  inset: 0;
  display: none;
  color: var(--ink);
  font-size: .72em;
  line-height: inherit;
  pointer-events: none;
}
.hero h1 > .hero-title-final { display: block; color: var(--ink); }
.hero-title-final em { color: #e56119; font-style: normal; }
.hero h1.hero-title-playing > .hero-title-scramble { display: block; }
.hero-title-playing .hero-title-final { visibility: hidden; }
.hero-title-line { display: block; white-space: nowrap; }
[data-hero-glyph] { display: inline-block; width: .965em; }
[data-hero-glyph].is-empty { width: 0; }
[data-hero-glyph].is-scrambling { color: var(--accent); }
.hero-title-line:last-child [data-hero-glyph].is-resolved { color: #e56119; }
.hero-portrait img {
  transform: perspective(1000px) rotateX(var(--art-rx, 0deg)) rotateY(var(--art-ry, 0deg)) scale(1.04);
  transition: transform .35s ease-out;
}
.hero-art { isolation: isolate; }
.motion-enabled .header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
.motion-enabled .hero-bottom a span { animation: scroll-cue 1.8s ease-in-out 3; }
.motion-paused .hero-bottom a span {
  animation-play-state: paused;
}
.button > span, .nav-contact > span, .text-link > span,
.contact-round > span, .circle-arrow {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s, color .25s;
}
.product-card:focus-visible { border-color: var(--accent); box-shadow: 0 10px 28px #20262214; }
.product-card:focus-visible .circle-arrow { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .product-links .product-card:hover {
    transform: translateY(-7px);
    border-color: #b9bdb2;
    box-shadow: 0 16px 34px #20262216;
  }
  .product-card:hover .circle-arrow { transform: rotate(45deg); }
  .button:hover > span, .nav-contact:hover > span { transform: translate(3px,-3px); }
  .text-link:hover > span { transform: translateY(3px); }
  .contact-round:hover > span { transform: translate(5px,-5px); }
}
@keyframes scroll-cue { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (max-width: 1100px) and (min-width: 801px) {
  .product-links { grid-template-columns: 1fr; }
  .product-links .product-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; }
  .product-thumbnail { border-radius: 5px 0 0 5px; }
  .product-card-body { padding: 16px 12px; }
  .product-links .product-card strong { font-size: 19px; }
}
@media (max-width: 800px) {
  /* On phones, the portrait sits behind the copy instead of adding a second panel. */
  .hero.container {
    width: 100%;
    padding: 64px 22px 0;
    isolation: isolate;
  }
  .hero .hero-art {
    position: absolute;
    inset: 0;
    height: auto;
    margin: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--paper);
  }
  .hero-portrait { inset: 0; }
  .hero-portrait img {
    object-position: 58% top;
    transform: none;
  }
  .hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, #fff3 0%, #fff1 25%, #fffffff2 67%, #fff 91%),
      linear-gradient(90deg, #fffffff2 0%, #ffffffc7 35%, #ffffff26 100%);
    pointer-events: none;
  }
  .hero .art-topline,
  .hero .art-caption,
  .hero .art-index { z-index: 1; }
  .hero .art-topline { top: 22px; left: 22px; right: 22px; }
  .hero .art-caption { bottom: 92px; left: 22px; }
  .hero .art-index { bottom: 92px; right: 22px; }
  .hero-bottom { position: relative; z-index: 2; margin-top: 78px; }
  .product-links { grid-template-columns: 1fr; gap: 24px; }
  .product-links.single .product-card { display: flex; flex-direction: column; align-items: stretch; }
  .product-links.single .product-thumbnail { border-radius: 5px 5px 0 0; }
  .product-card-body { padding: 20px; }
  .product-links .product-card small { font-size: 12px; }
  .product-links .product-card strong { font-size: 23px; }
  .product-card .circle-arrow { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-portrait img { transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
