﻿/* Makina detail pages — dark theme */
.page-detail {
  --color-bg: var(--bg);
  --color-bg-elevated: var(--bg-soft);
  --color-bg-card: var(--bg-card);
  --color-surface: var(--bg-soft);
  --color-text: var(--text);
  --color-text-muted: var(--text-muted);
  --color-border: var(--border);
  --color-accent: var(--accent);
  --color-accent-hover: var(--accent-hover);
  --transition: 0.25s var(--ease);
  --ease: var(--ease);
}


.page-detail { background: var(--color-bg); }

/* Sub hero (showcase-like split) */
.sub-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(88vh, 760px);
  margin-top: var(--header-h);
}
.sub-hero__visual {
  position: relative;
  min-height: 45vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1rem, 3vw, 2.25rem);
}
.sub-hero__visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sub-hero__visual--biz1 .sub-hero__visual-bg {
  background: linear-gradient(145deg, rgba(124, 117, 255, 0.22) 0%, rgba(124, 117, 255, 0.08) 45%, transparent 100%);
}
.sub-hero__visual--biz2 .sub-hero__visual-bg {
  background: linear-gradient(145deg, rgba(124, 117, 255, 0.18) 0%, rgba(124, 117, 255, 0.07) 50%, transparent 100%);
}
.sub-hero__visual--biz3 .sub-hero__visual-bg {
  background: linear-gradient(145deg, rgba(124, 117, 255, 0.16) 0%, rgba(124, 117, 255, 0.06) 55%, transparent 100%);
}
.sub-hero__visual--prod1 .sub-hero__visual-bg {
  background: linear-gradient(145deg, rgba(124, 117, 255, 0.24) 0%, rgba(124, 117, 255, 0.09) 50%, transparent 100%);
}
.sub-hero__visual--prod2 .sub-hero__visual-bg {
  background: linear-gradient(145deg, rgba(124, 117, 255, 0.16) 0%, rgba(124, 117, 255, 0.06) 50%, transparent 100%);
}
.sub-hero__visual--prod3 .sub-hero__visual-bg {
  background: linear-gradient(145deg, rgba(124, 117, 255, 0.18) 0%, rgba(124, 117, 255, 0.07) 55%, transparent 100%);
}
.sub-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 68%, var(--color-bg) 100%);
  z-index: 1;
  pointer-events: none;
}
.sub-hero__img,
.sub-hero__video {
  position: relative;
  z-index: 2;
  max-width: min(98%, 680px);
  max-height: min(78vh, 620px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(79, 70, 229, 0.18));
}
.sub-hero__video {
  width: min(98%, 680px);
  max-height: min(78vh, 620px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
}
.sub-hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem clamp(2rem, 5vw, 5rem);
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span[aria-hidden="true"] { opacity: 0.35; }
.sub-hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: none;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.sub-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.sub-hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--color-text-muted);
  line-height: 1.85;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.sub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.sub-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.sub-hero__scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--color-accent), transparent);
  animation: detailScrollLine 2s ease infinite;
}
@keyframes detailScrollLine {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}
.sub-hero__scroll:hover { color: var(--color-accent); }

/* Sticky in-page nav */
.detail-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.detail-nav__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.detail-nav__inner::-webkit-scrollbar { display: none; }
.detail-nav a {
  flex-shrink: 0;
  padding: 1.1rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.detail-nav a:hover { color: var(--color-text); }
.detail-nav a.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Content bands */
.detail-band {
  padding: 5.5rem 0;
}
.detail-band--elevated {
  background: var(--color-bg-elevated);
  border-block: 1px solid var(--color-border);
}
.detail-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.detail-band .section-head__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.detail-intro {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.detail-intro p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.95;
  margin-bottom: 1.25rem;
}
.detail-intro p:last-child { margin-bottom: 0; }

/* Split block (image + text) */
.detail-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}
.detail-split--reverse .detail-split__media { order: 2; }
.detail-split--reverse .detail-split__text { order: 1; }
.detail-split__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(79, 70, 229, 0.08), transparent 60%),
    var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.detail-split__media img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.detail-split__text h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.detail-split__text p {
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.detail-split__text p:last-child { margin-bottom: 0; }

/* Capability grid (numbered — like business cards) */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.capability-card--featured {
  margin-top: 2.5rem;
  grid-column: 1 / -1;
  border-color: rgba(79, 70, 229, 0.35);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, var(--color-bg-card) 50%);
}
.capability-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.65rem;
}
.capability-card--featured p a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.capability-card--featured p a:hover { opacity: 0.85; }
.capability-card {
  padding: 2rem 1.75rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.capability-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-3px);
}
.capability-card__num {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-accent);
  margin-bottom: 1rem;
  line-height: 1;
}
.capability-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.capability-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}
.capability-card__more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}
.capability-card__more:hover { text-decoration: underline; }
.capability-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.capability-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Spec list */
.spec-panel {
  margin-top: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: var(--color-surface); }
.spec-row strong {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.spec-row span {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Full-width CTA band */
.detail-cta-band {
  padding: 5rem max(4vw, 1.5rem);
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(79, 70, 229, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(0, 102, 255, 0.1), transparent 50%),
    var(--color-bg-elevated);
  border-block: 1px solid var(--color-border);
}
.detail-cta-band__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.detail-cta-band h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.detail-cta-band p {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.75;
}

/* Related */
.detail-related {
  padding: 5rem 0 6rem;
}
.detail-related .section-head {
  margin-bottom: 2.5rem;
}
.detail-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.detail-related-card {
  display: block;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.detail-related-card:hover {
  border-color: rgba(79, 70, 229, 0.35);
  transform: translateY(-4px);
}
.detail-related-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.detail-related-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-related-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.detail-related-card__body span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}
.detail-related-card__body strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.detail-related-card__body em {
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.detail-related-card:hover em { color: var(--color-accent); }

/* Reveal on detail pages */
.page-detail [data-reveal] {
  opacity: 1;
  transform: none;
}
.js-loaded.page-detail [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-loaded.page-detail [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nav__link--active { color: var(--color-text); }

@media (max-width: 1024px) {
  .capability-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .sub-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sub-hero__visual {
    min-height: 38vh;
    border-bottom: 1px solid var(--color-border);
  }
  .sub-hero__visual::after {
    background: linear-gradient(180deg, transparent 50%, var(--color-bg) 100%);
  }
  .sub-hero__panel {
    border-left: none;
    padding: 3rem clamp(1.5rem, 4vw, 2.5rem) 3.5rem;
  }
  .sub-hero__scroll { display: none; }
  .detail-split,
  .detail-split--reverse .detail-split__media,
  .detail-split--reverse .detail-split__text {
    grid-template-columns: 1fr;
    order: unset;
  }
  .capability-grid,
  .capability-grid--3,
  .capability-grid--4,
  .detail-related__grid {
    grid-template-columns: 1fr;
  }
  .detail-cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .detail-band { padding: 4rem 0; }
  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* VR simulation embed */
.detail-band--vr {
  background: linear-gradient(180deg, var(--color-bg) 0%, #0a1520 50%, var(--color-bg) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.section-head__desc {
  margin-top: 0.75rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.spec-row__link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.spec-row__link:hover { color: var(--color-accent-hover, #00d4f0); }

.vr-embed {
  margin: 2.5rem auto 0;
  max-width: 960px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(79, 70, 229, 0.2);
  background: #030508;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}
.vr-embed.is-highlight {
  box-shadow:
    0 0 0 2px rgba(79, 70, 229, 0.45),
    0 24px 64px rgba(0, 0, 0, 0.4);
}
.vr-embed__chrome {
  display: flex;
  flex-direction: column;
}
.vr-embed__header {
  padding: 0.65rem 1rem;
  text-align: center;
  background: rgba(8, 14, 24, 0.95);
  border-bottom: 1px solid var(--color-border);
}
.vr-embed__header-title {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.vr-embed__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 600;
  background: #000;
  overflow: hidden;
}
.vr-embed__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(79, 70, 229, 0.08), transparent 70%),
    #030508;
}
.vr-embed__placeholder[hidden] {
  display: none !important;
}
.vr-embed__placeholder-inner {
  text-align: center;
  max-width: 28rem;
}
.vr-embed__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.vr-embed__placeholder-inner h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.vr-embed__placeholder-inner p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.vr-embed__note {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
  font-size: 0.8rem !important;
  opacity: 0.85;
}
.vr-embed__note--warn {
  color: #f0b429;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
.vr-embed__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.vr-embed__frame[hidden] {
  display: none !important;
}
.vr-embed__footer {
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--color-border);
}
@media (max-width: 768px) {
  .vr-embed { margin-top: 2rem; }
  .vr-embed__placeholder { padding: 1.5rem 1rem; }
}

/* Project metrics (SHI reference etc.) */
.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.project-metrics__item {
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}
.project-metrics__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.project-metrics__item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}
.detail-source {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  opacity: 0.75;
}
.project-metrics__item p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.detail-band--media {
  border-top: 1px solid var(--color-border);
}
.media-video {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}
.media-video video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.media-embed {
  width: 100%;
  background: #000;
}
.media-embed__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.media-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.media-embed__pending {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1220 center / cover no-repeat;
  display: grid;
  place-items: center;
}
.media-embed__pending::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.72);
}
.media-embed__pending-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
  padding: 1rem 1.25rem;
  color: #e8edf5;
  font-size: 0.875rem;
}
.media-embed__pending-card strong {
  font-size: 1rem;
  font-weight: 600;
}
.media-embed__pending-card span {
  color: #9aa8bd;
  font-size: 0.78rem;
}
.media-embed.sub-hero__video,
.media-embed.media-embed--hero {
  overflow: hidden;
}
.media-video .media-embed {
  border-radius: inherit;
}
.media-video__note {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.media-video__note code {
  font-size: 0.7rem;
  word-break: break-all;
}
.media-video__caption {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}
.media-video--secondary {
  margin-top: 2rem;
  max-width: 720px;
}
.shi-gallery__group {
  margin: 2rem 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.shi-gallery__group:first-child { margin-top: 0; }
.shi-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.shi-gallery__item {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}
.shi-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}
.shi-gallery__item figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  border-top: 1px solid var(--color-border);
}
.shi-gallery__item--wide {
  grid-column: span 3;
}
@media (max-width: 768px) {
  .project-metrics { grid-template-columns: 1fr; }
  .shi-gallery__grid { grid-template-columns: 1fr; }
  .shi-gallery__item--wide { grid-column: span 1; }
}

.sub-hero__visual .sub-hero__privacy-placeholder {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy-notice-panel {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-elevated);
}
.privacy-notice-panel p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.privacy-notice-panel p:last-child { margin-bottom: 0; }
.privacy-notice-panel a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}
.privacy-notice-panel a:hover { text-decoration: underline; }


.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

.section-head { margin-bottom: 3rem; }
.section-head--center { text-align: center; }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-head__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section-head__more {
  font-size: 0.875rem;
  color: var(--accent);
  white-space: nowrap;
}
.section-head__more:hover { opacity: 0.85; }

.top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.25s var(--ease);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.top-btn:hover { background: var(--accent-hover); }

.site-footer--detail {
  margin-top: 0;
  padding-top: 3rem;
}
.site-footer__grid--compact {
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.site-footer__cols--inline {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.site-footer__cols--inline h4 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.7);
}
.site-footer__cols--inline a:hover { color: #fff; }
@media (max-width: 768px) {
  .site-footer__grid--compact { grid-template-columns: 1fr; }
}

/* Fullpage wheel-scroll — robot product details */
.page-fullscroll.page-detail .sub-hero.fullpage-section {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}
.page-fullscroll.page-detail .sub-hero.fullpage-section > .sub-hero__visual,
.page-fullscroll.page-detail .sub-hero.fullpage-section > .sub-hero__panel {
  min-height: 0;
  height: 100%;
}
.page-fullscroll.page-detail .sub-hero.fullpage-section .sub-hero__visual {
  padding: 1.25rem clamp(0.75rem, 2vw, 1.75rem);
}
.page-fullscroll.page-detail .sub-hero.fullpage-section .sub-hero__img,
.page-fullscroll.page-detail .sub-hero.fullpage-section .sub-hero__video {
  max-width: min(100%, 760px);
  max-height: min(82vh, 680px);
}
.page-fullscroll.page-detail .sub-hero.fullpage-section .sub-hero__video {
  width: min(100%, 760px);
}
.page-fullscroll.page-detail .sub-hero.fullpage-section .sub-hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 2rem;
}
.page-fullscroll.page-detail .detail-band.fullpage-section,
.page-fullscroll.page-detail .detail-related.fullpage-section,
.page-fullscroll.page-detail .detail-cta-band.fullpage-section {
  padding-block: calc(var(--header-h) + 0.75rem) 1.5rem;
}
.page-fullscroll.page-detail .detail-band.fullpage-section > .container,
.page-fullscroll.page-detail .detail-related.fullpage-section > .container {
  width: min(var(--container-max, 1200px), 100%);
  margin-inline: auto;
  padding-inline: var(--page-pad);
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-fullscroll.page-detail .detail-cta-band.fullpage-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-fullscroll.page-detail .detail-cta-band.fullpage-section .detail-cta-band__inner {
  width: min(var(--container-max, 1200px), 100%);
  margin-inline: auto;
  padding-inline: var(--page-pad);
  box-sizing: border-box;
}
.page-fullscroll.page-detail .detail-band.fullpage-section .capability-grid {
  margin-top: 0;
}
.page-fullscroll.page-detail .detail-band.fullpage-section .capability-grid--4 {
  gap: 0.75rem;
}
.page-fullscroll.page-detail .detail-band.fullpage-section .section-head,
.page-fullscroll.page-detail .detail-related.fullpage-section .section-head {
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.page-fullscroll.page-detail .detail-band.fullpage-section .detail-intro {
  margin-bottom: 0;
}
.page-fullscroll.page-detail .detail-band.fullpage-section .detail-intro p {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}
.page-fullscroll.page-detail .detail-band.fullpage-section .project-metrics {
  margin-bottom: 1rem;
}
.page-fullscroll.page-detail .detail-band.fullpage-section .spec-panel {
  margin: 0;
}
.page-fullscroll.page-detail .detail-band--media.fullpage-section .media-video {
  max-width: min(920px, 100%);
  margin-inline: auto;
}
.page-fullscroll.page-detail .detail-band--media.fullpage-section .media-video video,
.page-fullscroll.page-detail .detail-band--media.fullpage-section .media-video .media-embed {
  max-height: min(52vh, 520px);
  width: 100%;
  object-fit: contain;
  background: #000;
}
.page-fullscroll.page-detail .detail-band--media.fullpage-section .media-video .media-embed__frame,
.page-fullscroll.page-detail .detail-band--media.fullpage-section .media-video .media-embed__pending {
  max-height: min(52vh, 520px);
}
.page-fullscroll.page-detail .detail-related.fullpage-section .detail-related__grid {
  gap: 1rem;
}
.page-fullscroll.page-detail .detail-related.fullpage-section .detail-related-card__thumb {
  aspect-ratio: 16 / 9;
}
@media (min-width: 901px) {
  .page-fullscroll.page-detail .detail-nav {
    display: none;
  }
}
.page-fullscroll.page-detail .fullpage-nav__dot {
  border-color: rgba(90, 104, 124, 0.45);
  background: rgba(90, 104, 124, 0.22);
}
.page-fullscroll.page-detail .fullpage-nav__dot:hover {
  background: rgba(90, 104, 124, 0.34);
  border-color: rgba(90, 104, 124, 0.58);
}
.page-fullscroll.page-detail .fullpage-nav__dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 194, 224, 0.18);
}
@media (max-width: 1024px) {
  .page-fullscroll.page-detail .sub-hero.fullpage-section {
    grid-template-columns: 1fr;
  }
  .page-fullscroll.page-detail .sub-hero.fullpage-section > .sub-hero__visual {
    min-height: 38vh;
    height: auto;
  }
}

/* InterTwin platform */
.intertwin-axes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.intertwin-axes__card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.intertwin-axes__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.intertwin-axes__card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.intertwin-axes__card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* InterTwin Platform 2×2 matrix */
.it-map {
  --it-gap: 0.55rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) minmax(9.5rem, 13rem) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--it-gap);
  margin-top: 0;
  align-items: stretch;
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-height: 0;
}
.it-map--matrix {
  --it-gap: 0.75rem;
  grid-template-columns: 2.4rem minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--it-gap) 0.9rem;
}
.it-map__corner {
  grid-column: 1;
  grid-row: 1;
}
.it-map__x {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding-bottom: 0.2rem;
}
.it-map__x--gap {
  visibility: hidden;
}
.it-map__y {
  display: flex;
  align-items: center;
  justify-content: center;
}
.it-map__y span {
  writing-mode: vertical-rl;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  line-height: 1;
}
.it-map__y--spacer {
  min-height: 0;
}
.it-map__hub {
  position: relative;
  min-height: 2.8rem;
}
.it-map__hub::before,
.it-map__hub::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(0, 194, 224, 0.28);
}
.it-map__hub::before {
  width: 70%;
  height: 1px;
  transform: translate(-50%, -50%);
}
.it-map__hub::after {
  width: 1px;
  height: 70%;
  transform: translate(-50%, -50%);
}

.it-cell {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.it-cell--q2 { border-color: rgba(0, 194, 224, 0.4); background: linear-gradient(160deg, rgba(0, 194, 224, 0.12), var(--bg-card) 72%); }
.it-cell--q3 { border-color: rgba(0, 194, 224, 0.22); }
.it-cell--q1 { border-color: rgba(255, 107, 53, 0.3); background: linear-gradient(160deg, rgba(255, 107, 53, 0.09), var(--bg-card) 72%); }
.it-cell--q4 { border-color: rgba(255, 107, 53, 0.45); background: linear-gradient(160deg, rgba(255, 107, 53, 0.14), var(--bg-card) 68%); }
.it-cell__media {
  flex: 1.15 1 0;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(0, 194, 224, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.it-cell__media span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.28);
}
.it-cell__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.it-cell__body {
  flex: 1 1 auto;
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  justify-content: flex-start;
}
.it-cell__num {
  display: block;
  margin: 0 0 0.45rem;
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.it-cell h3 {
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  font-weight: 600;
  margin: 0 0 0.18rem;
}
.it-map--matrix .it-cell h3 {
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  margin-bottom: 0.28rem;
}
.it-map--matrix .it-cell ul {
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.it-map--matrix .it-cell li {
  font-size: clamp(0.84rem, 1.05vw, 0.96rem);
  line-height: 1.4;
}
.it-cell__axis {
  margin: 0 0 0.5rem;
  font-size: clamp(0.74rem, 0.95vw, 0.84rem);
  color: var(--text-muted);
}
.it-cell ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.18rem;
}
.it-cell li {
  font-size: clamp(0.8rem, 1vw, 0.92rem);
  line-height: 1.32;
  color: var(--text);
  padding-left: 0.75rem;
  position: relative;
}
.it-cell li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--accent);
}

.it-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.18rem;
  padding: 0.58rem 0.5rem;
  border-radius: 0.55rem;
  border: 1px dashed rgba(0, 194, 224, 0.4);
  background: rgba(0, 194, 224, 0.07);
  min-width: 0;
  position: relative;
}
.it-flow strong {
  font-size: clamp(0.8rem, 1.05vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.25;
}
.it-flow em {
  font-style: normal;
  font-size: clamp(0.66rem, 0.82vw, 0.76rem);
  line-height: 1.28;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.it-flow--h::after {
  content: "→";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.75;
}
.it-flow--h {
  padding-right: 1.1rem;
}
.it-flow--v::after {
  content: "↓";
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 0.95rem;
  opacity: 0.75;
}
.it-flow--v {
  padding-bottom: 0.95rem;
}

@media (max-width: 900px) {
  .intertwin-axes {
    grid-template-columns: 1fr;
  }
  .it-map,
  .it-map--matrix {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.75rem;
    flex: none;
  }
  .it-map__corner,
  .it-map__x,
  .it-map__y,
  .it-map__y--spacer,
  .it-map__hub {
    display: none;
  }
  .it-cell__media {
    min-height: 7rem;
    aspect-ratio: 16 / 9;
    flex: none;
  }
  .it-cell--q2 { order: 1; }
  .it-flow--h[title="시험 산출"],
  .it-flow--h[title="Test outputs"] { order: 2; }
  .it-cell--q1 { order: 3; }
  .it-flow--v[title="시뮬레이션 산출"],
  .it-flow--v[title="Simulation outputs"] { order: 4; }
  .it-flow--v[title="프로토타입 산출"],
  .it-flow--v[title="Prototype outputs"] { order: 5; }
  .it-cell--q3 { order: 6; }
  .it-flow--h[title="전환 산출"],
  .it-flow--h[title="Transfer outputs"] { order: 7; }
  .it-cell--q4 { order: 8; }
  .it-flow--h::after,
  .it-flow--v::after {
    content: "↓";
    right: auto;
    top: auto;
    bottom: 0.15rem;
    left: 50%;
    transform: translateX(-50%);
  }
  .it-flow--h,
  .it-flow--v {
    padding: 0.7rem 0.85rem 1.05rem;
  }
}

/* Map section: fill viewport */
.page-fullscroll.page-detail #map.fullpage-section > .container--map {
  width: min(1480px, 100%);
  height: 100%;
  justify-content: stretch;
  gap: 0.55rem;
}
.page-fullscroll.page-detail #map .section-head--map {
  margin-bottom: 0.2rem;
}
.page-fullscroll.page-detail #map .section-head--map .section-head__title {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}
.page-fullscroll.page-detail #map .section-head--map .section-head__desc {
  margin-bottom: 0;
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
}
.page-fullscroll.page-detail #map .it-map {
  margin-top: 0.15rem;
  max-height: none;
  height: 100%;
}
.page-fullscroll.page-detail .section-head--center {
  margin-bottom: 0.2rem;
}

/* Fuel-Master gallery carousel */
.detail-gallery-carousel {
  width: 100%;
  max-width: 52rem;
  margin: 0.35rem auto 0;
}
.detail-gallery-carousel .carousel__viewport {
  margin-bottom: 0.85rem;
}
.detail-gallery-carousel .carousel__track {
  gap: 1rem;
  align-items: stretch;
}
.detail-gallery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 30rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-gallery-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 23rem;
  height: 23rem;
  padding: 1.2rem 1.6rem;
  background: rgba(5, 10, 18, 0.42);
}
.detail-gallery-card__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.detail-gallery-card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-height: 7rem;
  padding: 1rem 1.2rem 1.15rem;
}
.detail-gallery-card__body h3 {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.35rem;
}
.detail-gallery-card__body p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.page-fullscroll.page-detail--fuel-master #gallery.fullpage-section {
  overflow: hidden;
  padding-block: calc(var(--header-h) + 0.5rem) 1rem;
}
.page-fullscroll.page-detail--fuel-master #gallery.fullpage-section > .container {
  justify-content: center;
  gap: 0.35rem;
}
.page-fullscroll.page-detail--fuel-master #gallery .section-head {
  margin-bottom: 0.65rem;
}
.page-fullscroll.page-detail--fuel-master #gallery .section-head__title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}
.page-fullscroll.page-detail--fuel-master #gallery .section-head__desc {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0;
}
.page-fullscroll.page-detail--fuel-master .detail-gallery-carousel .carousel__nav {
  margin-top: 0;
}

@media (max-width: 900px) {
  .detail-gallery-card {
    min-height: 27rem;
  }
  .detail-gallery-card__media {
    flex-basis: 19.5rem;
    height: 19.5rem;
    padding: 1rem 1.2rem;
  }
  .detail-gallery-card__body {
    min-height: 6.5rem;
    padding: 0.85rem 1rem 1rem;
  }
  .page-fullscroll.page-detail--fuel-master #gallery.fullpage-section {
    overflow-y: auto;
  }
}