/* =========================================================
   MotionSeeds — design system (Apple-pro dark, 3D accents)
   Brand gradient comes from the logo: #2c74ff → #04bcd1
   ========================================================= */

:root {
  --bg: #000;
  --bg-2: #0a0a0c;
  --surface: #111113;
  --surface-2: #1d1d1f;
  --surface-3: #2a2a2d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;

  --blue: #2c74ff;
  --cyan: #04bcd1;
  --link: #2997ff;
  --grad: linear-gradient(90deg, #2c74ff 0%, #04bcd1 100%);
  --grad-v: linear-gradient(180deg, #04bcd1 0%, #2c74ff 100%);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 28px;
  --radius-sm: 18px;
  --pad: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --header-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, video, iframe, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.container-wide { max-width: 1440px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Small type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--dim); }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(4, 188, 209, 0.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(4, 188, 209, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(4, 188, 209, 0); }
  100% { box-shadow: 0 0 0 0 rgba(4, 188, 209, 0); }
}

/* ---------- Buttons (Apple pills) ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s, border-color 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 8px 30px -8px rgba(44, 116, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { background: #3d82ff; box-shadow: 0 12px 40px -8px rgba(44, 116, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.btn-sm { --h: 36px; padding: 0 16px; font-size: 14px; }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--dim); box-shadow: none; pointer-events: none; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Apple "Learn more ›" link */
.link-arrow, .btn-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--link); font-size: 17px; font-weight: 400; white-space: nowrap;
}
.link-arrow:hover, .btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow span, .btn-link span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span, .btn-link:hover span { transform: translateX(3px); }

/* ---------- Header (Apple global nav) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(10, 10, 12, 0.78); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1080px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 6px 14px; font-size: 13px; font-weight: 400; color: rgba(245, 245, 247, 0.8); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { --h: 30px; padding: 0 14px; font-size: 13px; box-shadow: none; }

.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-open .menu-btn span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: flex-start; gap: 4px;
  padding: calc(var(--header-h) + 32px) 40px 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.6; color: #e8e8ed;
  transform: translateY(-8px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s;
}
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.03s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.06s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.09s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.12s; }
.mobile-menu a small { display: none; }
.mobile-menu .mobile-foot { margin-top: 24px; color: var(--dim); font-size: 14px; }

/* ---------- Hero with 3D logo ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 0;
  text-align: center;
}
.hero::before {
  /* soft brand light behind the 3D logo */
  content: ""; position: absolute; left: 50%; top: 52%;
  width: min(1100px, 140vw); aspect-ratio: 1.6; transform: translate(-50%, -30%);
  background:
    radial-gradient(closest-side, rgba(44, 116, 255, 0.32), transparent 70%),
    radial-gradient(closest-side at 65% 40%, rgba(4, 188, 209, 0.22), transparent 70%);
  filter: blur(20px); pointer-events: none; z-index: -1;
}
.hero-role { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.hero-title {
  font-size: clamp(44px, 8vw, 112px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em;
  margin: 0 auto; max-width: 16ch;
}
.hero-title > span { display: inline-block; opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.loaded .hero-title > span { opacity: 1; transform: none; }
.loaded .hero-title > span:nth-child(2) { transition-delay: 0.08s; }
.loaded .hero-title > span:nth-child(3) { transition-delay: 0.16s; }

.hero-title > .rotator {
  display: inline-grid; justify-items: center; vertical-align: top; position: relative;
}
.rotator > span {
  grid-area: 1 / 1; padding: 0 0.04em 0.08em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(40%) rotateX(-70deg); opacity: 0; filter: blur(6px);
  transition: transform 0.9s var(--ease), opacity 0.7s var(--ease), filter 0.7s var(--ease);
  transform-origin: 50% 100%;
}
.rotator > span.is-in { transform: none; opacity: 1; filter: none; }
.rotator > span.is-out { transform: translateY(-40%) rotateX(70deg); opacity: 0; filter: blur(6px); transform-origin: 50% 0; }
.rotator { perspective: 600px; }

.hero-intro { max-width: 600px; margin: 24px auto 0; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); line-height: 1.4; }
.hero-intro strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 32px; }

.hero-stage {
  position: relative; height: clamp(320px, 52vw, 640px); margin-top: clamp(8px, 2vw, 24px);
  opacity: 0; transform: scale(0.92); transition: opacity 1.4s var(--ease) 0.2s, transform 1.6s var(--ease) 0.2s;
}
.loaded .hero-stage { opacity: 1; transform: none; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback {
  position: absolute; left: 50%; top: 50%; width: min(560px, 80%); transform: translate(-50%, -50%);
  filter: drop-shadow(0 30px 60px rgba(44, 116, 255, 0.35));
  transition: opacity 0.6s;
}
.hero-stage.ready .hero-fallback { opacity: 0; }
.hero-stage::after {
  /* floor reflection */
  content: ""; position: absolute; left: 50%; bottom: 6%; width: 50%; height: 40px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(44, 116, 255, 0.35), transparent);
  filter: blur(12px); pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-title {
  font-size: clamp(40px, 6vw, 80px); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em;
  margin: 10px 0 0;
}
.section-title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; margin: 16px auto 0; max-width: 620px; }
.section-head .link-arrow { margin-top: 20px; }

.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 112px)) 0 clamp(32px, 5vw, 56px); text-align: center; }
.page-hero .section-title { font-size: clamp(48px, 8vw, 104px); }

/* ---------- Media + generated covers ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); aspect-ratio: 16 / 10; isolation: isolate;
}
.media > img, .media > video, .media > .gen {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.5s;
}
.media > video.preview { opacity: 0; z-index: 1; }
.media.playing > video.preview { opacity: 1; }
/* "Fit (logo)" image style: whole image visible, centred on a soft brand glow */
.media.fit-contain {
  background:
    radial-gradient(70% 90% at 30% 20%, rgba(44, 116, 255, 0.22), transparent 65%),
    radial-gradient(60% 80% at 80% 85%, rgba(4, 188, 209, 0.16), transparent 60%),
    #0b0b0e;
}
.media.fit-contain > img { object-fit: contain; padding: 9% 12%; }
.media.fit-contain > video.preview { object-fit: contain; background: #000; }
.pd-media .media > video:not(.preview) { object-fit: contain; background: #000; }

.gen {
  --h: 215;
  background:
    radial-gradient(60% 80% at var(--x1, 20%) var(--y1, 30%), hsl(var(--h) 100% 58% / 0.85), transparent 62%),
    radial-gradient(50% 65% at var(--x2, 80%) var(--y2, 75%), hsl(calc(var(--h) - 30) 95% 45% / 0.75), transparent 60%),
    radial-gradient(40% 50% at 60% 15%, hsl(calc(var(--h) + 50) 90% 60% / 0.45), transparent 60%),
    #0b0b0e;
  background-size: 140% 140%;
  animation: drift 14s var(--ease-in-out) infinite alternate;
  display: flex; align-items: flex-end; padding: 24px;
}
.gen::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.gen::after {
  /* glossy top highlight for a glass feel */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 35%);
}
.gen-label {
  position: relative; z-index: 1;
  font-weight: 700; letter-spacing: -0.035em; line-height: 1;
  font-size: clamp(24px, 2.8vw, 44px); color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); max-width: 90%;
}
@keyframes drift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tag-accent { background: var(--grad); border-color: transparent; }
.media .tags { position: absolute; top: 18px; left: 18px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 3D tilt (hover) ---------- */
[data-tilt] {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; --glare: 0;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s;
  will-change: transform;
}
[data-tilt].tilting { transition: transform 0.12s linear, box-shadow 0.6s var(--ease); }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.16), transparent 45%);
  opacity: var(--glare); transition: opacity 0.4s;
}

/* ---------- Scroll-driven 3D (Apple-style perspective reveal) ---------- */
[data-scroll3d] {
  --p: 0;
  transform: perspective(1400px) rotateX(calc((1 - var(--p)) * 28deg)) scale(calc(0.86 + var(--p) * 0.14));
  transform-origin: 50% 100%;
  opacity: calc(0.35 + var(--p) * 0.65);
  will-change: transform;
}

/* ---------- Work (bento tiles with overlay info) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.work-card {
  position: relative; display: block; grid-column: span 6;
  border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.work-card.wide { grid-column: span 7; }
.work-card.narrow { grid-column: span 5; }
.work-card.full { grid-column: 1 / -1; }
.work-card .media { aspect-ratio: auto; height: 100%; min-height: clamp(300px, 34vw, 460px); border-radius: inherit; }
.work-card.full .media { min-height: clamp(320px, 42vw, 560px); }
.work-card:hover .media > img, .work-card:hover .media > .gen { transform: scale(1.04); }
.work-card .gen-label, .product-card .gen-label { display: none; }
.work-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 80px 28px 26px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  transform: translateZ(40px);
}
.work-title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.03em; margin: 0; line-height: 1.1; }
.work-cat { color: rgba(255, 255, 255, 0.7); font-size: 15px; margin-top: 4px; }
.work-year { color: rgba(255, 255, 255, 0.55); }
.media .play-badge {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transform: scale(0.8); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.4s;
}
.work-card:hover .play-badge { transform: scale(1); opacity: 1; }

/* ---------- Filters (segmented control) ---------- */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 40px; width: fit-content; max-width: 100%;
  padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.filters:empty { display: none; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: all 0.3s var(--ease); }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.chip .count { font-size: 12px; opacity: 0.5; margin-left: 6px; }

/* ---------- Featured product (Apple spotlight) ---------- */
.feature {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 56px) 0;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(44, 116, 255, 0.28), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, #070709 100%);
  border: 1px solid var(--line);
}
.feature-title {
  font-size: clamp(56px, 9vw, 120px); font-weight: 700; line-height: 1; letter-spacing: -0.05em; margin: 8px 0 12px;
  background: linear-gradient(180deg, #fff 30%, #a9c6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.feature-tagline { font-size: clamp(19px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin: 0 auto 8px; max-width: 720px; line-height: 1.2; }
.feature-desc { color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.feature .price-row { justify-content: center; }
.feature-stage { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 960px; }
.feature-stage .media { aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -20px 80px -20px rgba(44, 116, 255, 0.45); }
.feature-stage .gen-label { font-size: clamp(32px, 5vw, 64px); }
.feature-points {
  list-style: none; margin: 0; padding: 28px 0 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  border-top: 1px solid var(--line); max-width: 960px; margin-inline: auto; text-align: left;
}
.feature-points li { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.feature-points li::before, .check-list li::before {
  content: ""; flex: 0 0 20px; height: 20px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E") center / 100%;
}
.feature-points li, .check-list li { position: relative; }
.feature-points li::after, .check-list li::after {
  content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.check-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; color: var(--text); }
.check-list li::after { top: 2px; }
.check-list li::before { margin-top: 2px; }

.price-row { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.price { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.price-tba { font-size: 15px; color: var(--muted); font-weight: 500; }

/* ---------- Product cards (glass tiles) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.product-card {
  position: relative; display: flex; flex-direction: column;
  padding: 10px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.product-card:hover { border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(44, 116, 255, 0.45), 0 1px 0 rgba(255, 255, 255, 0.08) inset; }
.product-card .media { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; }
.product-card:hover .media > img, .product-card:hover .media > .gen { transform: scale(1.05); }
.product-body { padding: 20px 12px 10px; display: flex; flex-direction: column; flex: 1; transform: translateZ(30px); }
.product-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 6px; line-height: 1.15; }
.product-desc { color: var(--muted); font-size: 15px; margin: 0 0 22px; flex: 1; line-height: 1.45; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-foot .price { font-size: 22px; }

/* ---------- About ---------- */
.statement {
  font-size: clamp(32px, 4.6vw, 64px); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em;
  margin: 0 auto; max-width: 960px; text-align: center;
}
.statement .w { color: var(--surface-3); transition: color 0.4s; }
.statement .w.lit { color: var(--text); }
.services {
  list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; counter-reset: s;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px);
}
.services li {
  position: relative; counter-increment: s;
  padding: 32px 28px 36px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.services li::before {
  content: "0" counter(s); display: block; margin-bottom: 40px;
  font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.services h3 { margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.services p { margin: 0; color: var(--muted); font-size: 16px; }
.toolset { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.toolset .tag { background: var(--surface); height: 32px; padding: 0 14px; font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---------- Contact CTA ---------- */
.cta { text-align: center; padding: clamp(100px, 13vw, 180px) 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: min(1000px, 130vw); aspect-ratio: 2;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(44, 116, 255, 0.25), transparent 70%);
  pointer-events: none; z-index: -1;
}
.cta-title { font-size: clamp(48px, 8.5vw, 120px); font-weight: 700; line-height: 1; letter-spacing: -0.05em; margin: 16px 0 40px; }
.cta-title .outline { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-mail { font-size: clamp(17px, 1.8vw, 21px); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }

/* Contact form (Formspree) */
.contact-form {
  max-width: 680px; margin: 0 auto; text-align: left;
  display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px);
  background: rgba(17, 17, 19, 0.72); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.contact-form[hidden] { display: none; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: grid; gap: 8px; }
.cf-field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 13px 16px; outline: none; transition: border-color 0.25s, box-shadow 0.25s;
}
.cf-field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.cf-field select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a1a1a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.cf-field select option { background: var(--surface-2); }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(44, 116, 255, 0.22);
}
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.cf-foot .btn { flex-shrink: 0; }
.cf-foot .btn:disabled { opacity: 0.6; cursor: progress; }
.cf-status { margin: 0; font-size: 15px; color: var(--muted); }
.cf-status.ok { color: var(--cyan); }
.cf-status.err { color: #ff6b6b; }
.cf-note { margin: 0; font-size: 12px; color: var(--dim); }
.cf-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.cta-or { margin: 40px 0 16px; font-size: 14px; color: var(--dim); }
@media (max-width: 560px) {
  .cf-row { grid-template-columns: 1fr; }
  .cf-foot { flex-direction: column-reverse; align-items: stretch; }
  .cf-status { text-align: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #050506 0%, #0a0a0c 100%);
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.site-footer::before {
  /* thin brand light along the top edge */
  content: ""; position: absolute; left: 50%; top: -1px; width: min(720px, 90%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(44, 116, 255, 0.8), rgba(4, 188, 209, 0.8), transparent);
}
.site-footer::after {
  content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 120%); height: 220px; transform: translate(-50%, -60%);
  background: radial-gradient(closest-side, rgba(44, 116, 255, 0.14), transparent);
  pointer-events: none;
}
.footer-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px;
  padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 56px);
}
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin: 18px 0 22px; max-width: 300px; line-height: 1.55; }
.footer-status {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 500;
}
.footer-status .pulse { width: 7px; height: 7px; }
.footer-col h3 { margin: 6px 0 18px; font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-mail { display: inline-flex; align-items: center; gap: 6px; color: var(--link) !important; font-weight: 500; overflow-wrap: anywhere; }
.footer-mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.footer-social a {
  height: 32px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 12px;
}
.footer-social a:hover { border-color: var(--line-2); }
.footer-bottom {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim);
}
.footer-secure { display: inline-flex; align-items: center; gap: 8px; }
.footer-secure svg { color: var(--cyan); }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: 12px; transition: color 0.2s, border-color 0.2s;
}
.to-top:hover { color: var(--text); border-color: var(--line-2); }
.to-top svg { transition: transform 0.3s var(--ease); }
.to-top:hover svg { transform: translateY(-2px); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Product detail page ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 13px; margin-bottom: 24px; }
.crumbs a:hover { color: var(--text); }
.product-page .page-hero { text-align: left; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 0 clamp(24px, 4vw, 48px); align-items: start; }
.pd-media { grid-column: 1; grid-row: 1; }
.pd-card { grid-column: 2; grid-row: 1 / span 2; }
.pd-body { grid-column: 1; grid-row: 2; }
.pd-media .media { aspect-ratio: 16 / 9; box-shadow: 0 40px 100px -40px rgba(44, 116, 255, 0.5); }
.pd-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pd-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.pd-title { font-size: clamp(40px, 4.4vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; margin: 14px 0 10px; }
.pd-card .btn { width: 100%; margin-top: 24px; }
.pd-specs { list-style: none; margin: 24px 0 0; padding: 0; font-size: 14px; }
.pd-specs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.pd-specs span:first-child { color: var(--dim); }
.pd-body { margin-top: 56px; max-width: 720px; }
.pd-body h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin: 40px 0 16px; }
.pd-body p { color: var(--muted); font-size: 19px; line-height: 1.5; }

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; }
.legal .lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; color: var(--text); margin: 0 0 8px; }
.legal h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; margin: 48px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 17px; line-height: 1.6; }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li { margin: 8px 0; }
.legal li::marker { color: var(--cyan); }
.legal a { color: var(--link); }
.legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-nav a {
  height: 36px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.legal-nav a:hover { color: var(--text); text-decoration: none; border-color: var(--line-2); }
.legal-nav a[aria-current="page"] { color: var(--text); background: var(--surface-3); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--pad);
  background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-frame {
  width: min(1280px, 100%); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000;
  transform: perspective(1200px) rotateX(10deg) scale(0.9); transition: transform 0.7s var(--ease);
}
.lightbox.open .lightbox-frame { transform: none; }
.lightbox-frame iframe, .lightbox-frame video { width: 100%; height: 100%; border: 0; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); display: grid; place-items: center; font-size: 18px;
}
.lightbox-close:hover { background: var(--surface-3); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; translate: 0 48px; transition: opacity 1s var(--ease), translate 1.2s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s; }
[data-reveal].in { opacity: 1; translate: 0 0; }

.empty { grid-column: 1 / -1; color: var(--dim); padding: 48px 0; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-media, .pd-card, .pd-body { grid-column: 1; grid-row: auto; }
  .pd-card { position: static; margin-top: 20px; }
}
@media (max-width: 833px) {
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: block; }
  .work-card, .work-card.wide, .work-card.narrow { grid-column: 1 / -1; }
  .work-card .media, .work-card.full .media { min-height: 0; aspect-ratio: 4 / 3; }
  .services { grid-template-columns: 1fr; }
  .services li::before { margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .feature-points { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; translate: none; }
  [data-scroll3d] { transform: none; opacity: 1; }
  .hero-title > span, .hero-stage { opacity: 1; transform: none; }
}
