:root {
  --bg: #0c0d10;
  --fg: oklch(0.96 0.004 260);
  --accent-1: oklch(0.72 0.14 210); /* cyan */
  --accent-2: oklch(0.62 0.23 350); /* magenta */
  --accent-3: oklch(0.88 0.17 95);  /* amber */
  --accent-4: oklch(0.9 0.004 260); /* neutral */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--fg);
}

a { color: inherit; }

html { scroll-behavior: smooth; }

::selection { background: oklch(0.72 0.14 210 / 0.35); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 6px;
}

.page {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Animations ---------- */
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-40px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,30px) scale(0.94); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,35px) scale(1.05); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 92px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: height 0.35s ease, background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
#site-header.scrolled {
  height: 68px;
  background: oklch(0.13 0.01 260 / 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: oklch(0.98 0.002 260);
  border-radius: 12px;
  padding: 8px 16px;
}
.logo-pill img { height: 26px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  color: oklch(0.9 0.004 260);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-item { position: relative; }
.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: oklch(0.9 0.004 260);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.nav-dropdown-trigger::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.25s ease;
}
.nav-dropdown-trigger[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }

/* ---------- Mega menu ---------- */
.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(720px, 92vw);
  background: oklch(0.15 0.012 260);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  z-index: 55;
}
.mega-menu.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }

.mega-menu-sidebar {
  display: flex;
  flex-direction: column;
  width: 176px;
  flex-shrink: 0;
  border-right: 1px solid oklch(1 0 0 / 0.08);
  padding-right: 8px;
  gap: 2px;
}
.mega-sidebar-link {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: oklch(0.72 0.01 260);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.mega-sidebar-link:hover { background: oklch(1 0 0 / 0.05); color: oklch(0.95 0.004 260); }
.mega-sidebar-link.active { background: oklch(1 0 0 / 0.07); color: var(--fg); }
.mega-sidebar-all { color: var(--accent-1); }
.mega-sidebar-divider { height: 1px; background: oklch(1 0 0 / 0.08); margin: 6px 4px 8px; }

.mega-menu-panels { flex: 1; min-width: 0; padding: 4px 6px; }
.mega-panel { display: none; }
.mega-panel.active { display: block; }

.mega-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.mega-product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.mega-product:hover { background: oklch(1 0 0 / 0.05); }
.mega-product img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  display: block;
}
.mega-product span {
  font-size: 12px;
  font-weight: 600;
  color: oklch(0.85 0.004 260);
  line-height: 1.3;
}
.mega-viewall {
  display: inline-flex;
  margin: 10px 4px 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-1);
  text-decoration: none;
}
.mega-viewall:hover { text-decoration: underline; }

.mega-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  gap: 10px;
  color: oklch(0.48 0.01 260);
  font-size: 13.5px;
  text-align: center;
}
.mega-panel-empty svg { width: 30px; height: 30px; opacity: 0.6; }

.store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #08090b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------- Hamburger + mobile menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: oklch(1 0 0 / 0.08);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  width: 18px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: oklch(0.1 0.01 260 / 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mobile-menu nav a {
  color: var(--fg);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mobile-menu.open nav a { opacity: 1; transform: translateY(0); }
.mobile-menu.open nav a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: 0.09s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: 0.13s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: 0.17s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: 0.21s; }
.mobile-submenu-link {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: oklch(0.65 0.01 260) !important;
  margin-top: -14px;
}
.store-btn-mobile {
  font-size: 15px !important;
  padding: 14px 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mobile-menu.open .store-btn-mobile { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }

/* ---------- Sub-page hero (e.g. mimaki.html) ---------- */
.page-hero { padding: 160px 40px 40px; max-width: 1360px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: oklch(0.55 0.01 260); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: oklch(0.7 0.01 260); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 10px 0 18px;
}
.page-hero p { font-size: 16px; line-height: 1.7; color: oklch(0.68 0.01 260); max-width: 640px; margin: 0; }
.machine-page-sections { padding: 0 40px 60px; max-width: 1360px; margin: 0 auto; }
.machine-page-sections .machine-section:first-child { margin-top: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 40px 80px;
  perspective: 1200px;
  overflow: hidden;
}

.blob { position: absolute; pointer-events: none; will-change: transform; }
.blob-inner { width: 100%; height: 100%; border-radius: 50%; }
.blob-1 { top: 12%; left: 8%; width: 420px; height: 420px; }
.blob-1 .blob-inner { background: radial-gradient(circle at 35% 35%, oklch(0.72 0.14 210 / 0.55), transparent 70%); filter: blur(40px); animation: float1 9s ease-in-out infinite; }
.blob-2 { top: 38%; right: 10%; width: 480px; height: 480px; }
.blob-2 .blob-inner { background: radial-gradient(circle at 60% 40%, oklch(0.62 0.23 350 / 0.5), transparent 70%); filter: blur(50px); animation: float2 11s ease-in-out infinite; }
.blob-3 { bottom: 6%; left: 32%; width: 360px; height: 360px; }
.blob-3 .blob-inner { background: radial-gradient(circle at 45% 55%, oklch(0.88 0.17 95 / 0.4), transparent 70%); filter: blur(45px); animation: float3 8s ease-in-out infinite; }

.ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  pointer-events: none;
}
.ring-1 { width: 640px; height: 640px; margin: -320px 0 0 -320px; border: 1px solid oklch(1 0 0 / 0.08); will-change: transform; }
.ring-2 { width: 820px; height: 820px; margin: -410px 0 0 -410px; border: 1px solid oklch(1 0 0 / 0.05); animation: spinSlow 60s linear infinite; }

.hero-3d-wrap {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  width: min(46vw, 620px);
  height: min(46vw, 620px);
  z-index: 1;
  pointer-events: none;
}
.hero-3d-wrap canvas { width: 100% !important; height: 100% !important; display: block; }
@media (max-width: 1200px) { .hero-3d-wrap { opacity: 0.4; right: -6%; } }
@media (max-width: 860px) { .hero-3d-wrap { display: none; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid oklch(1 0 0 / 0.25);
  border-radius: 100px;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.9s ease-out 0.9s forwards;
}
.scroll-cue span {
  display: block;
  width: 4px; height: 8px;
  margin: 7px auto 0;
  border-radius: 100px;
  background: var(--fg);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0% { opacity:0; transform: translateY(0); } 30% { opacity:1; } 100% { opacity:0; transform: translateY(16px); } }
@media (max-width: 860px) { .scroll-cue { display: none; } }

.hero-content { position: relative; z-index: 2; max-width: 1360px; margin: 0 auto; width: 100%; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.9s ease-out 0.1s forwards;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-1);
  animation: pulseDot 2s ease-in-out infinite;
}
.eyebrow span:last-child {
  font-size: 13px; letter-spacing: 0.14em; color: oklch(0.68 0.01 260); text-transform: uppercase;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 7vw, 108px);
  line-height: 0.98;
  font-weight: 600;
  margin: 0 0 32px;
  max-width: 1100px;
  letter-spacing: -0.02em;
  opacity: 0; animation: fadeUp 0.9s ease-out 0.25s forwards;
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 19px; line-height: 1.6; color: oklch(0.72 0.01 260);
  max-width: 560px; margin: 0 0 44px;
  opacity: 0; animation: fadeUp 0.9s ease-out 0.4s forwards;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 16px;
  opacity: 0; animation: fadeUp 0.9s ease-out 0.55s forwards;
}

.btn {
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
}
.btn-primary { background: oklch(0.96 0.004 260); color: #0c0d10; }
.btn-outline { border: 1px solid oklch(1 0 0 / 0.18); color: oklch(0.96 0.004 260); font-weight: 600; }
.btn-lg { padding: 18px 36px; }
.btn-block { display: block; text-align: center; padding: 15px; margin-bottom: 20px; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); color: #08090b; }

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid oklch(1 0 0 / 0.08);
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 56px;
  animation: marquee 24s linear infinite;
}
.ticker-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: oklch(0.5 0.01 260);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }

/* ---------- Services ---------- */
.services { padding: 140px 40px; max-width: 1360px; margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: 72px; }
.kicker {
  font-size: 13px; letter-spacing: 0.14em; color: var(--accent-1);
  text-transform: uppercase; font-weight: 600;
}
.kicker-warm { color: var(--accent-3); }
.section-head h2, .contact h2, .store-banner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 16px 0 0;
}
.section-head h2 { font-size: clamp(32px, 4vw, 52px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: oklch(0.19 0.012 260);
  border: 1px solid oklch(1 0 0 / 0.07);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.25s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover { border-color: oklch(1 0 0 / 0.16); }
.tilt-card { transform: translateY(0); }

.card-media {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: oklch(0.22 0.012 260);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media-light img { background: #fff; object-fit: contain; padding: 10px; }
.dot-badge { position: absolute; top: 14px; left: 14px; width: 10px; height: 10px; z-index: 2; }

.card-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px; font-weight: 600; margin: 0 0 10px;
}
.card-body p { font-size: 14.5px; line-height: 1.6; color: oklch(0.66 0.01 260); margin: 0; }

.tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px; padding: 5px 12px; border-radius: 100px;
  background: oklch(1 0 0 / 0.06); color: oklch(0.75 0.01 260);
}

/* ---------- Mimaki machine subsection ---------- */
.machine-section { margin-top: 88px; }
.machine-head { max-width: 640px; margin-bottom: 40px; }
.machine-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 14px 0 14px;
}
.machine-head p { font-size: 15px; line-height: 1.6; color: oklch(0.66 0.01 260); margin: 0; }

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 280px));
  gap: 20px;
}
.machine-card {
  display: block;
  background: oklch(0.16 0.012 260);
  border: 1px solid oklch(1 0 0 / 0.07);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.3s ease;
}
.machine-card:hover { transform: translateY(-4px); border-color: oklch(1 0 0 / 0.16); }
.machine-link-hint {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-1);
}
.machine-link-hint svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.machine-card:hover .machine-link-hint svg { transform: translateX(3px); }
.machine-media {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 16px;
  overflow: hidden;
}
.machine-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; display: block; }
.machine-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600; margin: 0 0 10px;
}
.machine-desc { font-size: 13px; line-height: 1.55; color: oklch(0.64 0.01 260); margin: 0; }

/* ---------- Product detail hero ---------- */
.product-hero { padding: 150px 40px 0; max-width: 1360px; margin: 0 auto; }
.product-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  margin-top: 24px;
  padding-bottom: 100px;
}
.product-hero-content { display: flex; flex-direction: column; }
.product-hero-content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
}
.product-tagline { font-size: 17px; line-height: 1.65; color: oklch(0.72 0.01 260); max-width: 540px; margin: 0 0 36px; }

.product-badges { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.product-badge { display: flex; flex-direction: column; }
.product-badge-num { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; }
.product-badge-label { font-size: 12.5px; color: oklch(0.6 0.01 260); margin-top: 2px; }

.product-hero-media { position: relative; }
.product-shot-glow {
  position: absolute; inset: -10%;
  background: radial-gradient(circle at 40% 40%, oklch(0.72 0.14 210 / 0.28), transparent 65%);
  filter: blur(30px);
  z-index: 0;
}
.product-shot {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.product-shot img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Production skill / usage grid ---------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.skill-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: oklch(0.16 0.012 260);
  border: 1px solid oklch(1 0 0 / 0.07);
}
.skill-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: relative; z-index: 0;
  transition: transform 0.4s ease;
}
.skill-card:hover img, .skill-card:focus-visible img { transform: scale(1.06); }
.skill-card::before {
  content: '';
  position: absolute; inset: 0;
  background: oklch(0.08 0.01 260 / 0.9);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}
.skill-card:hover::before, .skill-card:focus-visible::before { opacity: 1; }
.skill-card-logo { aspect-ratio: 1/1; max-width: 280px; }
.skill-card-logo-media {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  z-index: 0;
}
.skill-card-logo-media img { width: 100%; height: 100%; object-fit: contain; transform: none !important; }
.skill-card-logo-media.on-white { background: #fff; }
.skill-card-logo-media.on-white img { padding: 8px; }
.skill-card-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px; font-weight: 600;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
  transition: opacity 0.25s ease;
  z-index: 2;
}
.skill-card-desc {
  position: absolute; inset: 0;
  padding: 18px;
  display: flex; align-items: center;
  font-size: 12.5px; line-height: 1.55;
  color: oklch(0.94 0.004 260);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 2;
}
.skill-card:hover .skill-card-desc, .skill-card:focus-visible .skill-card-desc { opacity: 1; transform: translateY(0); }
.skill-card:hover .skill-card-title, .skill-card:focus-visible .skill-card-title { opacity: 0; }
.skill-card:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 3px; }

/* ---------- Page sub-navigation ---------- */
.page-subnav {
  position: sticky;
  top: 68px;
  z-index: 30;
  background: oklch(0.11 0.012 260 / 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.page-subnav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.page-subnav-inner::-webkit-scrollbar { display: none; }
.subnav-tab {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: oklch(0.68 0.01 260);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.subnav-tab:hover { background: oklch(1 0 0 / 0.07); color: oklch(0.95 0.004 260); }
.subnav-tab.active { background: var(--accent-1); color: #08090b; }

/* ---------- Tab panels ---------- */
.tab-panel:not([hidden]) { animation: fadeUp 0.4s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .tab-panel:not([hidden]) { animation: none; }
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.feature-card {
  background: oklch(0.16 0.012 260);
  border: 1px solid oklch(1 0 0 / 0.07);
  border-radius: 16px;
  padding: 26px;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: oklch(1 0 0 / 0.06);
  color: var(--accent-1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 21px; height: 21px; }
.feature-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16.5px; font-weight: 600; margin: 0 0 8px;
}
.feature-card p { font-size: 14px; line-height: 1.6; color: oklch(0.66 0.01 260); margin: 0; }

/* ---------- Spec table ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin: 0;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.07);
}
.spec-row dt { font-size: 13.5px; color: oklch(0.58 0.01 260); margin: 0; }
.spec-row dd { font-size: 14px; font-weight: 500; color: oklch(0.88 0.004 260); margin: 0; text-align: right; }

/* ---------- Store banner ---------- */
.store-banner {
  margin: 0 40px 140px;
  max-width: 1360px;
  margin-left: auto; margin-right: auto;
  border-radius: 28px;
  background: linear-gradient(120deg, oklch(0.2 0.02 240), oklch(0.16 0.02 320));
  border: 1px solid oklch(1 0 0 / 0.08);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.store-banner-glow {
  position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.72 0.14 210 / 0.25), transparent 70%);
  filter: blur(10px);
}
.store-banner-text { max-width: 600px; position: relative; z-index: 1; }
.store-banner h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 14px 0 16px; }
.store-banner p { font-size: 16px; line-height: 1.6; color: oklch(0.75 0.01 260); margin: 0; }
.store-banner .btn { position: relative; z-index: 1; flex-shrink: 0; white-space: nowrap; }

/* ---------- Contact ---------- */
.contact { padding: 0 40px 120px; max-width: 1360px; margin: 0 auto; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.contact h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 16px 0 24px; }
.about-desc { font-size: 17px; line-height: 1.7; color: oklch(0.7 0.01 260); max-width: 520px; margin: 0 0 32px; }
.stats { display: flex; gap: 40px; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700; }
.stat-label { font-size: 13px; color: oklch(0.6 0.01 260); margin-top: 4px; }

.contact-card {
  background: oklch(0.19 0.012 260);
  border: 1px solid oklch(1 0 0 / 0.07);
  border-radius: 20px;
  padding: 40px;
}
.contact-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 600; margin: 0 0 24px; }
.contact-lines { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.contact-lines div { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: oklch(0.78 0.01 260); }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--accent-1); }

.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: oklch(1 0 0 / 0.06);
  display: flex; align-items: center; justify-content: center;
  color: oklch(0.9 0.004 260);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-btn svg { width: 19px; height: 19px; }
.social-btn:hover { background: var(--accent-1); color: #08090b; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid oklch(1 0 0 / 0.08);
  padding: 32px 40px;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  height: 20px; width: auto;
  background: oklch(0.98 0.002 260);
  border-radius: 8px;
  padding: 6px 10px;
}
.footer-copy { font-size: 13px; color: oklch(0.5 0.01 260); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .store-btn { display: none; }
  .hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 24px 60px; }
  .services, .contact { padding-left: 24px; padding-right: 24px; }
  .store-banner { margin-left: 24px; margin-right: 24px; padding: 40px 28px; }
  .header-inner { padding: 0 20px; }
  .product-hero { padding: 130px 24px 0; }
  .product-hero-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 60px; }
  .product-hero-media { order: -1; }
  .spec-grid { grid-template-columns: 1fr; }
  .page-subnav-inner { padding: 12px 20px; }
}

/* ---------- Scroll reveal (3D) ---------- */
.reveal {
  opacity: 0;
  transform: perspective(1000px) rotateX(10deg) translateY(36px);
  transition: opacity 0.9s cubic-bezier(.16,.8,.3,1), transform 0.9s cubic-bezier(.16,.8,.3,1);
}
.reveal.in-view { opacity: 1; transform: perspective(1000px) rotateX(0deg) translateY(0); }
.card-grid .card:nth-child(1) { transition-delay: 0s; }
.card-grid .card:nth-child(2) { transition-delay: 0.08s; }
.card-grid .card:nth-child(3) { transition-delay: 0.16s; }
.card-grid .card:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob-inner, .ring-2, .pulse-dot, .ticker-track, .eyebrow, .hero h1, .hero-desc, .hero-actions, .scroll-cue, .scroll-cue span {
    animation: none !important;
    opacity: 1 !important;
  }
  .reveal { transition: opacity 0.3s ease !important; transform: none !important; }
}
