/* ZM AutoLab — gallery page */

/* ---------- gallery hero strip ---------- */
.ghero {
  position: relative;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
}
.ghero-bg { position: absolute; inset: 0; }
.ghero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.ghero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 8, 18, 0.72) 0%, rgba(11, 8, 18, 0.18) 22%, rgba(11, 8, 18, 0) 40%),
    linear-gradient(to top, rgba(11, 8, 18, 0.97) 0%, rgba(11, 8, 18, 0.55) 40%, rgba(11, 8, 18, 0.08) 72%),
    radial-gradient(110% 80% at 16% 90%, rgba(109, 40, 217, 0.30) 0%, rgba(109, 40, 217, 0) 58%);
}
.ghero-content { position: relative; z-index: 1; padding-bottom: clamp(44px, 7vh, 84px); }
.ghero-content .hashes { margin-bottom: 24px; }
.ghero-title { font-size: clamp(3rem, 7.4vw, 5.6rem); color: var(--ink); text-shadow: 0 3px 34px rgba(11, 8, 18, 0.85); }
.ghero-sub { margin-top: 18px; color: var(--ink-dim); max-width: 46ch; }
.ghero-index {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.ghero-index a {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--violet-light);
  padding: 6px 0;
  position: relative;
}
.ghero-index a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--grad);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ghero-index a:hover { color: #fff; }
  .ghero-index a:hover::after { transform: scaleX(1); }
}

/* pinned hero: full screen, gets blanketed by the content below */
.ghero-pin {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 100svh;
}
.ghero-pin .ghero-stage,
.ghero-pin .ghero-content { will-change: transform, opacity; }

/* ---------- light-trail layer (gallery + blog heroes) ----------
   The brand's -24° hash mark, stretched into night-drive light trails. */
.streaks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: clip;
  mask-image: radial-gradient(130% 110% at 50% 45%, black 45%, transparent 96%);
}
.streak {
  position: absolute;
  left: 0;
  width: 46%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #6d28d9 30%, #a855f7 55%, #d8b4fe 72%, transparent 100%);
  transform: skewX(-24deg) translate3d(-60vw, 0, 0);
  animation: streak-run linear infinite;
  will-change: transform;
}
@keyframes streak-run {
  from { transform: skewX(-24deg) translate3d(-70vw, 0, 0); }
  to { transform: skewX(-24deg) translate3d(170vw, 0, 0); }
}
.s1  { top: 12%; height: 2px; opacity: 0.5;  animation-duration: 7.5s; animation-delay: -2s; }
.s2  { top: 19%; height: 4px; opacity: 0.24; filter: blur(2px); animation-duration: 11s; animation-delay: -7s; }
.s3  { top: 28%; height: 2px; opacity: 0.42; animation-duration: 8.6s; animation-delay: -5s; width: 38%; }
.s4  { top: 37%; height: 6px; opacity: 0.14; filter: blur(4px); animation-duration: 14s; animation-delay: -3s; }
.s5  { top: 47%; height: 2px; opacity: 0.34; animation-duration: 9.4s; animation-delay: -8.5s; width: 52%; }
.s6  { top: 56%; height: 3px; opacity: 0.2;  filter: blur(2px); animation-duration: 12.5s; animation-delay: -1s; }
.s7  { top: 66%; height: 2px; opacity: 0.46; animation-duration: 7.9s; animation-delay: -4.4s; width: 42%; }
.s8  { top: 74%; height: 5px; opacity: 0.15; filter: blur(4px); animation-duration: 15s; animation-delay: -10s; }
.s9  { top: 84%; height: 2px; opacity: 0.36; animation-duration: 8.8s; animation-delay: -6.2s; width: 56%; }
.s10 { top: 91%; height: 3px; opacity: 0.2;  filter: blur(2px); animation-duration: 12s; animation-delay: -9s; }
/* two wide atmosphere beams drifting slowly */
.beam {
  position: absolute;
  left: 0;
  width: 70%;
  height: 90px;
  background: linear-gradient(90deg, transparent 0%, rgba(157, 92, 255, 0.09) 45%, transparent 100%);
  filter: blur(26px);
  transform: skewX(-24deg) translate3d(-60vw, 0, 0);
  animation: streak-run linear infinite;
  will-change: transform;
}
.b1 { top: 22%; animation-duration: 26s; animation-delay: -12s; }
.b2 { top: 62%; animation-duration: 32s; animation-delay: -20s; }
@media (prefers-reduced-motion: reduce) {
  .streak, .beam { animation: none; opacity: 0.12; transform: skewX(-24deg) translate3d(20vw, 0, 0); }
}
@media (max-width: 900px) {
  .s2, .s4, .s8, .b2 { display: none; }
}

/* ---------- graphic hero (gallery): brand stage, no photo ---------- */
.ghero-graphic {
  min-height: 92svh;
  align-items: center;
  background:
    radial-gradient(90% 70% at 50% 118%, rgba(109, 40, 217, 0.38) 0%, rgba(109, 40, 217, 0) 60%),
    radial-gradient(60% 50% at 50% 42%, rgba(157, 92, 255, 0.14) 0%, rgba(157, 92, 255, 0) 70%),
    radial-gradient(85% 70% at 88% 0%, rgba(26, 17, 40, 0.95) 0%, rgba(11, 8, 18, 0) 62%),
    var(--bg);
}
.ghero-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 14px) 0 clamp(28px, 5svh, 56px);
}
@media (max-height: 760px) {
  .ghero-graphic .ghero-title { font-size: clamp(2.4rem, 5.4vw, 4rem); }
  .ghero-hashes { margin-top: 18px; }
  .ghero-graphic .ghero-sub { margin-top: 10px; }
}
.ghero-graphic .ghero-title { max-width: none; text-shadow: none; }
.ghero-graphic .ghero-sub { max-width: 52ch; margin-top: 16px; }
.ghero-hashes { margin-top: 30px; justify-content: center; }

.glogo {
  position: relative;
  width: min(430px, 74vw, 46svh);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.glogo-glow {
  position: absolute;
  inset: 8%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(157, 92, 255, 0.30) 0%, rgba(157, 92, 255, 0) 70%);
  animation: glogo-breathe 5.5s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes glogo-breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes glogo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.glogo-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: glogo-spin 70s linear infinite;
  will-change: transform;
}
.glogo-ring2 { inset: 5%; width: 90%; height: 90%; animation: glogo-spin 46s linear infinite reverse; }
.glogo-mark {
  position: relative;
  width: 72%;
  overflow: clip;
}
.glogo-mark img { width: 100%; height: auto; filter: drop-shadow(0 0 34px rgba(157, 92, 255, 0.35)); }
/* metallic sheen sweeping across the wordmark, clipped by the logo's alpha */
.glogo-sheen {
  position: absolute;
  inset: 0;
  -webkit-mask-image: url("../logo-alpha.png?v=7");
  mask-image: url("../logo-alpha.png?v=7");
  -webkit-mask-size: 100% auto;
  mask-size: 100% auto;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  overflow: clip;
  pointer-events: none;
}
.glogo-sheen::before {
  content: "";
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  transform: translateX(-55%);
  animation: glogo-sheen 5.5s cubic-bezier(0.6, 0, 0.3, 1) infinite;
  will-change: transform;
}
@keyframes glogo-sheen {
  0%, 55% { transform: translateX(-55%); }
  85%, 100% { transform: translateX(55%); }
}
@media (prefers-reduced-motion: reduce) {
  .glogo-glow, .glogo-ring, .glogo-ring2, .glogo-sheen::before { animation: none; }
}
@media (max-width: 900px) {
  .ghero-graphic { min-height: 88svh; }
  .glogo { width: min(320px, 82vw); }
}

/* ---------- blog ---------- */
.blog-hero { min-height: 56svh; align-items: center; }
.blog-hero .ghero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 0;
}
.blog-hero .hashes { justify-content: center; }
.blog-empty-card { margin-inline: auto; }
.blog-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 90% at 20% 100%, rgba(109, 40, 217, 0.32) 0%, rgba(109, 40, 217, 0) 55%),
    radial-gradient(80% 70% at 85% 0%, rgba(26, 17, 40, 0.9) 0%, rgba(11, 8, 18, 0) 60%),
    var(--bg-2);
}
.blog-empty { padding: clamp(70px, 10vh, 130px) 0; }
.blog-empty-card {
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(109, 40, 217, 0.16) 0%, rgba(109, 40, 217, 0) 55%),
    var(--bg-2);
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  padding: clamp(40px, 6vw, 80px);
  max-width: 760px;
}
.blog-empty-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: var(--ink); }
.blog-empty-sub { margin: 20px 0 30px; color: var(--ink-dim); max-width: 48ch; }

/* ---------- build sections ---------- */
.gbuild { padding-top: 0; }
.gbuild-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(40px, 6vw, 90px);
  align-items: end;
  padding: clamp(56px, 8vh, 96px) 0 clamp(30px, 4vh, 44px);
}
.gbuild-title { font-size: clamp(2rem, 4.2vw, 3.4rem); color: var(--ink); }
.gbuild-spec { margin-top: 12px; }
.gbuild-blurb { color: var(--ink-dim); max-width: 44ch; }

/* masonry grid */
.g-grid {
  columns: 3;
  column-gap: 18px;
  padding-bottom: clamp(56px, 8vh, 96px);
}
.g-item {
  display: block;
  margin-bottom: 18px;
  break-inside: avoid;
  overflow: clip;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  position: relative;
  isolation: isolate;
}
.g-item img { width: 100%; height: auto; }
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 8, 18, 0.35), rgba(11, 8, 18, 0) 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .g-item img { transition: scale 0.7s var(--ease-out); }
  .g-item:hover img { scale: 1.045; }
  .g-item:hover::after { opacity: 1; }
}

/* porsche video */
.g-video-wrap { padding-bottom: clamp(56px, 8vh, 96px); display: flex; justify-content: center; }
.g-video {
  width: min(460px, 100%);
  aspect-ratio: 4/5;
  object-fit: cover;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  background: var(--bg-3);
}

/* gallery CTA */
.gcta {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 100% at 50% 100%, rgba(109, 40, 217, 0.22) 0%, rgba(109, 40, 217, 0) 60%),
    var(--bg-2);
  padding: clamp(90px, 13vh, 150px) 0;
  text-align: left;
}
.gcta-inner .hashes { margin-bottom: 26px; }
.gcta-title { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--ink); }
.gcta-sub { margin-top: 16px; color: var(--ink-dim); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 5, 16, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: min(92vw, 1500px);
  max-height: 86svh;
  object-fit: contain;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 1.5rem;
  background: rgba(26, 17, 40, 0.75);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--violet-deep); }
}
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }
.lb-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

/* ============================================================
   CASE STUDY INDEX (gallery.html)
   ============================================================ */
.case-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 34px);
  padding: clamp(56px, 8vh, 96px) 0;
}
.case-card {
  position: relative;
  aspect-ratio: 16/10;
  overflow: clip;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  isolation: isolate;
  background: var(--bg-3);
}
.case-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(11, 8, 18, 0.9) 0%, rgba(11, 8, 18, 0.3) 42%, rgba(11, 8, 18, 0.05) 68%);
}
.case-card-meta {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.case-card-name { font-size: clamp(1.4rem, 2vw, 1.9rem); color: var(--ink); }
.case-card-spec { margin-top: 6px; font-size: 0.82rem; color: var(--ink-dim); }
.case-card-arrow {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-btn);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform 0.35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .case-card > img { transition: scale 0.8s var(--ease-out); }
  .case-card:hover > img { scale: 1.045; }
  .case-card:hover .case-card-arrow { transform: translateX(4px); }
  .case-card .case-card-name { transition: color 0.4s var(--ease-out); }
  .case-card:hover .case-card-name { color: var(--violet-light); }
}

/* ============================================================
   CASE STUDY PAGE
   ============================================================ */
.chero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
}
.chero-bg { position: absolute; inset: 0; }
.chero-bg img, .chero-bg video { width: 100%; height: 100%; object-fit: cover; }
.chero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 8, 18, 0.72) 0%, rgba(11, 8, 18, 0.16) 22%, rgba(11, 8, 18, 0) 40%),
    linear-gradient(to top, rgba(11, 8, 18, 0.97) 0%, rgba(11, 8, 18, 0.5) 42%, rgba(11, 8, 18, 0.06) 74%),
    radial-gradient(110% 80% at 16% 90%, rgba(109, 40, 217, 0.28) 0%, rgba(109, 40, 217, 0) 58%);
}
.chero-content { position: relative; z-index: 1; padding-bottom: clamp(44px, 7vh, 84px); width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.chero-crumb {
  display: inline-block;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: var(--violet-light);
}
.chero-crumb .crumb-sep { color: var(--ink-faint); padding: 0 8px; }
.chero-title { font-size: clamp(2.8rem, 6.6vw, 5.2rem); color: var(--ink); text-shadow: 0 3px 34px rgba(11, 8, 18, 0.85); }
.chero-spec { margin-top: 16px; }

/* story block */
.case-story { padding: clamp(70px, 10vh, 120px) 0 clamp(40px, 6vh, 70px); }
.case-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.case-story h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--ink); margin-bottom: 22px; }
.case-story p { color: var(--ink-dim); max-width: 58ch; }
.case-story p + p { margin-top: 18px; }
.case-specs {
  border: 1px solid var(--line);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  padding: 28px;
  background: var(--bg-2);
}
.case-specs h3 { margin-bottom: 18px; }
.case-specs ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.case-specs li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-dim);
  font-size: 0.98rem;
}
.case-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 13px;
  height: 8px;
  background: var(--grad);
  transform: skewX(-24deg);
}

/* editorial photo flow */
.case-photos { padding-bottom: clamp(50px, 7vh, 80px); }
.case-row { display: grid; gap: 18px; margin-bottom: 18px; }
.case-row-2 { grid-template-columns: 1fr 1fr; }
.case-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.case-photos .g-item { margin-bottom: 0; }
.case-photos .g-item img { width: 100%; height: 100%; object-fit: cover; }
.case-row-full .g-item { aspect-ratio: 16/9; }
.case-row-2 .g-item { aspect-ratio: 4/5; }
.case-row-3 .g-item { aspect-ratio: 3/4; }

/* film block */
.case-film { padding-bottom: clamp(56px, 8vh, 96px); }
.case-film video {
  width: 100%;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  background: var(--bg-3);
}
.case-film .case-film-portrait {
  width: min(440px, 100%);
  margin-inline: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.case-film-note { margin-top: 14px; }

/* film play affordance */
.film-frame { position: relative; }
.film-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
}
.film-play svg {
  width: 84px;
  height: 84px;
  padding: 26px;
  box-sizing: border-box;
  background: rgba(11, 8, 18, 0.72);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .film-play:hover svg { transform: scale(1.06); background: var(--violet-deep); }
}

/* brand wall (authorized dealer) */
.brand-wall { padding: clamp(30px, 5vh, 60px) 0 clamp(60px, 9vh, 100px); }
.brand-title { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--ink); }
.brand-sub { margin-top: 14px; color: var(--ink-dim); max-width: 52ch; }
.brand-grid {
  list-style: none;
  margin-top: 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.brand-chip {
  border: 1px solid var(--line);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  background: var(--bg-2);
  padding: 26px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: background 0.4s var(--ease-out);
}
.brand-chip img {
  height: 44px;
  width: auto;
  max-width: 84%;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .brand-chip:hover { background: var(--bg-3); }
}

/* service page extras */
.svc-builds { padding-bottom: clamp(40px, 6vh, 70px); }
.svc-build-row { padding: 28px 0 0; }
.case-specs-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
  line-height: 1.6;
}
.gcta-tel { color: var(--violet-light); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .gcta-tel:hover { color: #fff; }
}

/* next build */
.case-next-prefix { color: var(--ink-faint); font-size: 0.6em; vertical-align: 0.22em; margin-right: 8px; }
.case-next {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.case-next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(44px, 7vh, 72px) 0;
}
.case-next-label { color: var(--ink-faint); }
.case-next-name {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  color: var(--ink);
  transition: color 0.4s var(--ease-out);
}
.case-next-arrow { font-size: 2rem; color: var(--violet-light); transition: transform 0.35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .case-next-link:hover .case-next-name { color: var(--violet-light); }
  .case-next-link:hover .case-next-arrow { transform: translateX(8px); }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .g-grid { columns: 2; }
}
@media (max-width: 900px) {
  .ghero { min-height: 58svh; }
  .gbuild-head { grid-template-columns: 1fr; align-items: start; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .case-index { grid-template-columns: 1fr; }
  .case-story-grid { grid-template-columns: 1fr; }
  .chero { min-height: 64svh; }
  .case-row-3 { grid-template-columns: 1fr 1fr; }
  .case-row { gap: 10px; margin-bottom: 10px; }
  .case-next-name { font-size: 1.5rem; }
}
@media (max-width: 640px) {
  .g-grid { columns: 2; column-gap: 10px; }
  .g-item { margin-bottom: 10px; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
}
