/* Contentta brand: light luxe, ivory canvas, pastel orbs, plum accent. No dark mode. */
:root {
  --ivory: #FAF6EF;
  --ivory-deep: #F3ECE0;
  --paper: #FFFFFF;
  --ink: #17130D;
  --ink-soft: #4A4339;
  --mute: #8A8073;
  --faint: #BDB4A6;
  --line: rgba(23, 19, 13, 0.09);
  --line-2: rgba(23, 19, 13, 0.14);
  --lavender: #B7A8FF;
  --peach: #FFB39C;
  --sky: #9AD0FF;
  --sage: #A9E0C2;
  --gold: #E6B45A;
  --plum: #4A3AE0;
  --plum-2: #7B6CFF;
  --plum-glow: rgba(74, 58, 224, 0.28);
  --glass: rgba(23, 19, 13, 0.62);
  --live: #2FB574;
  --shadow-soft: 0 2px 4px rgba(23, 19, 13, 0.03), 0 12px 28px -12px rgba(23, 19, 13, 0.12), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  --shadow-lift: 0 6px 12px rgba(23, 19, 13, 0.05), 0 30px 60px -20px rgba(23, 19, 13, 0.2), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif;
  --serif: 'Lora', Georgia, serif;
  --pad: clamp(22px, 5vw, 80px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .logo, .stat strong, .bot-card .big, .marquee span { font-family: var(--display); }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--lavender); color: var(--ink); }

/* atmosphere: drifting pastel orbs + cursor glow + grain */
.orbs { position: fixed; inset: -10%; z-index: 0; pointer-events: none; filter: blur(60px); }
.orbs i { position: absolute; border-radius: 50%; opacity: 0.5; animation: drift 26s ease-in-out infinite alternate; }
.orbs i:nth-child(1) { width: 46vw; height: 46vw; left: 58%; top: 2%; background: var(--lavender); }
.orbs i:nth-child(2) { width: 38vw; height: 38vw; left: -6%; top: 30%; background: var(--peach); animation-duration: 32s; animation-delay: -8s; }
.orbs i:nth-child(3) { width: 34vw; height: 34vw; left: 40%; top: 62%; background: var(--sky); animation-duration: 29s; animation-delay: -14s; }
.orbs i:nth-child(4) { width: 26vw; height: 26vw; left: 8%; top: -6%; background: var(--sage); opacity: 0.42; animation-duration: 35s; }
@keyframes drift { to { transform: translate3d(6vw, 8vh, 0) scale(1.12); } }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 70%) var(--my, 20%), rgba(183, 168, 255, 0.28), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, nav, footer { position: relative; z-index: 1; }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 200; background: var(--ink);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* small uppercase labels */
.eyebrow, .nav-links a, .stat span, .stage-title small, .chapter small, .more, .sub-head p, .cap small, .br-url,
.br-screen .live, .lang span, .bot-card .big + span, .crumb, .jump a, .footer {
  font-family: var(--sans); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}

/* nav */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 150;
  width: min(1180px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(250, 246, 239, 0.72); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.logo { font-weight: 800; letter-spacing: 0.01em; font-size: 15px; white-space: nowrap; }
.logo i { color: var(--plum); font-style: normal; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { font-size: 11px; color: var(--ink-soft); padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); background: var(--paper); box-shadow: var(--shadow-soft); }
.nav-links a sup { color: var(--plum); margin-left: 3px; font-size: 9px; letter-spacing: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 16px;
  font-weight: 600; font-size: 14px; transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--plum); color: #fff; box-shadow: 0 10px 26px -10px var(--plum-glow); }
.btn-red:hover { box-shadow: 0 16px 36px -10px var(--plum-glow); }
.btn-line { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.btn-line:hover { box-shadow: var(--shadow-lift); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* hero */
.hero { padding: 150px var(--pad) 40px; max-width: 1320px; margin: 0 auto; position: relative; }
.hero > :not(.hero-photo) { position: relative; z-index: 1; }
.hero-photo { position: absolute; top: 112px; right: var(--pad); height: 545px; z-index: 0; pointer-events: none; }
.hero-photo img { height: 100%; width: auto; display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); }
.eyebrow { font-size: 11px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(47, 181, 116, 0.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(47, 181, 116, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 181, 116, 0); } }
.hero h1 {
  font-size: clamp(44px, 8.2vw, 124px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800;
  margin: 22px 0 26px; max-width: 13ch;
}
.hero h1 em, .h2 em, .chat-intro h3 em, .page-hero h1 em, .contact h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.03em; color: var(--plum);
}
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: up 1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes up { to { transform: none; } }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero-sub { max-width: 520px; color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.stats { display: flex; gap: clamp(20px, 4vw, 56px); }
.stat strong { display: block; font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat span { font-size: 10px; color: var(--mute); }
.fade-in { opacity: 0; animation: fade 1s var(--ease) forwards; animation-delay: var(--d, 0.6s); }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* showreel stage */
.stage-wrap { perspective: 1600px; margin-top: 56px; }
.stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: var(--ivory-deep);
  border: 6px solid var(--paper);
  box-shadow: 0 6px 12px rgba(23, 19, 13, 0.05), 0 60px 110px -40px rgba(23, 19, 13, 0.35), 0 40px 120px -60px var(--plum-glow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
  transform-style: preserve-3d;
}
.stage .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s var(--ease), transform 1.2s var(--ease); transform: scale(1.04); }
.stage .slide.on { opacity: 1; transform: none; }
.stage .slide img, .stage .slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .slide video.missing { display: none; }
.stage .glare { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 35%); mix-blend-mode: screen; }
.stage-ui { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; pointer-events: none; }
.stage-ui > * { pointer-events: auto; }
.stage-title { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-soft); }
.stage-title small { display: block; font-size: 10px; color: var(--plum); }
.stage-title a { font-family: var(--display); font-weight: 700; }
.stage-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.chapter { text-align: left; padding: 14px 16px 16px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.chapter:hover { background: var(--paper); transform: translateY(-2px); }
.chapter.on { background: var(--paper); box-shadow: var(--shadow-soft); }
.chapter small { font-size: 10px; color: var(--mute); }
.chapter b { display: block; font-family: var(--display); font-weight: 700; margin: 2px 0 10px; font-size: 15px; }
.bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--plum), var(--plum-2)); transform-origin: 0 50%; transform: scaleX(0); }

/* sound button (sits on video, stays dark glass) */
.snd {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--glass); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.18); transition: transform 0.2s, background 0.2s;
}
.snd:hover { transform: scale(1.08); }
.snd svg { width: 17px; height: 17px; }
.snd .on-i { display: none; }
.snd.live { background: var(--plum); border-color: var(--plum); }
.snd.live .on-i { display: block; } .snd.live .off-i { display: none; }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; margin-top: 70px; position: relative; z-index: 1;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; color: var(--faint); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; color: var(--gold); font-size: 0.6em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: clamp(90px, 13vh, 150px) var(--pad) 40px; max-width: 1320px; margin: 0 auto; position: relative; }
.sec-head { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: end; margin-bottom: 44px; }
.num { font-family: var(--serif); font-style: italic; font-size: clamp(70px, 9vw, 140px); line-height: 0.8; color: transparent;
  -webkit-text-stroke: 1px var(--faint); }
.h2 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.045em; line-height: 0.98; font-weight: 800; }
.sec-sub { color: var(--ink-soft); max-width: 520px; margin-top: 12px; font-size: 17px; }
.more { font-size: 11px; display: inline-flex; gap: 8px; align-items: center;
  border-bottom: 1px solid var(--line-2); padding-bottom: 4px; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.more:hover { color: var(--plum); border-color: var(--plum); }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 64px 0 22px; border-top: 1px solid var(--line); padding-top: 22px; }
.sub-head h3 { font-size: 24px; letter-spacing: -0.03em; font-weight: 700; }
.sub-head p { color: var(--mute); font-size: 10px; }

/* reveal */
.rv { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* captions under media */
.cap { margin-top: 14px; }
.cap small { font-size: 10px; color: var(--plum); }
.cap h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin: 3px 0 4px; }
.cap p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.cap a.case { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.cap a.case:hover { color: var(--plum); border-color: var(--plum); }

/* video rail (phones) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 270px); gap: 22px; overflow-x: auto; padding: 10px 4px 26px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; cursor: grab; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
.rail > * { scroll-snap-align: start; }
.grid-ph { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 22px; }
.phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 32px; padding: 7px; background: linear-gradient(160deg, #2b2720, #121009);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 30px 50px -28px rgba(23, 19, 13, 0.55);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.phone:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 40px 60px -28px rgba(23, 19, 13, 0.6), 0 20px 60px -20px var(--plum-glow); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #000; }
.screen video, .screen img, .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.phone .notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; border-radius: 10px; background: #000; z-index: 2; }
.media-ui { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 8px; }
.wide { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; border: 5px solid var(--paper);
  box-shadow: var(--shadow-lift); transition: transform 0.5s var(--ease); }
.wide:hover { transform: translateY(-4px); }
.wide video, .wide img, .wide iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.grid-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 34px 24px; }
.grid-wide.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }

/* youtube facade */
.yt { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt img { transition: transform 0.6s var(--ease), filter 0.4s; }
.yt:hover img { transform: scale(1.04); filter: brightness(0.85); }
.yt .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--plum);
  display: grid; place-items: center; box-shadow: 0 10px 34px var(--plum-glow); transition: transform 0.3s var(--ease); }
.yt:hover .play { transform: scale(1.1); }
.yt .play svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }

/* websites */
.grid-web { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 40px 26px; }
.tilt-wrap { perspective: 1200px; }
.browser { display: block; border-radius: 22px; overflow: hidden; background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s var(--ease), box-shadow 0.4s; }
.browser:hover { box-shadow: var(--shadow-lift), 0 20px 70px -30px var(--plum-glow); }
.br-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.br-bar i { width: 9px; height: 9px; border-radius: 50%; }
.br-bar i:nth-child(1) { background: var(--peach); } .br-bar i:nth-child(2) { background: var(--gold); } .br-bar i:nth-child(3) { background: var(--sage); }
.br-url { margin-left: 10px; flex: 1; font-size: 10px; letter-spacing: 0.06em; text-transform: none; font-weight: 500; color: var(--mute); background: var(--ivory); border-radius: 8px; padding: 4px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-screen { position: relative; aspect-ratio: 16 / 10; background: var(--ivory-deep); overflow: hidden; }
.br-screen img, .br-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.br-screen video.missing { display: none; }
.br-screen .live { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 9px; color: var(--ink);
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(6px); padding: 5px 9px; border-radius: 999px; display: flex; gap: 6px; align-items: center; }
.br-screen .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.cap-row { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.visit { flex: none; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft); margin-top: 14px; transition: background 0.2s, color 0.2s; }
.visit:hover { background: var(--plum); color: #fff; }

/* chatbot */
.chat-zone { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: stretch; }
.chat-intro h3 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.04em; line-height: 1.02; font-weight: 800; }
.chat-intro p { color: var(--ink-soft); margin: 16px 0 22px; max-width: 440px; }
.lang { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.lang span { font-size: 10px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--lavender) 30%, transparent); color: var(--ink-soft); }
.lang span:nth-child(2) { background: color-mix(in srgb, var(--peach) 32%, transparent); }
.chips { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.chip { text-align: left; font-size: 14px; padding: 10px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.chip:hover { color: var(--plum); border-color: var(--plum-2); transform: translateX(4px); }
.chat {
  display: flex; flex-direction: column; height: 560px; border-radius: 28px; overflow: hidden; background: var(--ivory); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-lift), 0 40px 90px -50px var(--plum-glow);
}
.chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--plum), var(--plum-2)); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; position: relative; flex: none; }
.av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--live); border: 2px solid #fff; }
.chat-top b { display: block; font-size: 15px; }
.chat-top small { font-size: 12px; color: var(--mute); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;
  animation: pop 0.35s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.msg.bot { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--plum); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg.note { align-self: center; background: none; color: var(--mute); font-size: 12.5px; text-align: center; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; border-bottom-left-radius: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: bob 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
.chat-form { display: flex; gap: 8px; padding: 12px; background: var(--paper); border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 16px; font: inherit; font-size: 14.5px; background: var(--ivory); color: var(--ink); outline: none; }
.chat-form input:focus { border-color: var(--plum); }
.chat-form button { width: 44px; height: 44px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; flex: none; transition: transform 0.2s; }
.chat-form button:hover { transform: scale(1.06); }
.chat-form button:disabled { opacity: 0.5; }
.chat-form svg { width: 18px; height: 18px; }

.grid-bot { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; margin-top: 60px; }
.bot-card { border-radius: 24px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-soft); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.4s, transform 0.5s var(--ease); }
.bot-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.bot-card .img { aspect-ratio: 4 / 3; overflow: hidden; }
.bot-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.bot-card:hover .img img { transform: scale(1.05); }
.bot-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.bot-card .big { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--plum); }
.bot-card .big + span { font-size: 10px; color: var(--mute); }
.bot-card .cap { margin-top: 14px; flex: 1; }

/* software (text sits on image, so it stays light on a dark fade) */
.grid-soft { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.soft { grid-column: span 3; position: relative; border-radius: 28px; overflow: hidden; border: 5px solid var(--paper); box-shadow: var(--shadow-soft); min-height: 340px; display: flex; align-items: flex-end; isolation: isolate; color: #fff; transition: box-shadow 0.4s; }
.soft:hover { box-shadow: var(--shadow-lift); }
.soft:nth-child(1), .soft:nth-child(2) { grid-column: span 6; min-height: 420px; }
@media (max-width: 1200px) and (min-width: 961px) { .soft { grid-column: span 6; } }
.soft img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.soft::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(23, 19, 13, 0.9)); }
.soft:hover img { transform: scale(1.06); }
.soft .cap { padding: 22px; margin: 0; }
.soft .cap small { color: var(--lavender); }
.soft .cap p { color: rgba(255, 255, 255, 0.78); }
.soft .cap h4 { font-size: 22px; }
.soft .go { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--ink); backdrop-filter: blur(8px);
  display: grid; place-items: center; transition: background 0.2s, color 0.2s, transform 0.4s var(--ease); }
.soft:hover .go { background: var(--plum); color: #fff; transform: rotate(-45deg); }

/* content system cards (video page) */
.grid-img { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }

/* page hero (sub pages) */
.page-hero { padding: 150px var(--pad) 10px; max-width: 1320px; margin: 0 auto; }
.crumb { font-size: 11px; color: var(--mute); }
.crumb a:hover { color: var(--plum); }
.page-hero h1 { font-size: clamp(52px, 9vw, 140px); letter-spacing: -0.05em; line-height: 0.93; font-weight: 800; margin: 18px 0 20px; }
.page-hero p { color: var(--ink-soft); max-width: 580px; font-size: 18px; }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.jump a { font-size: 10px; padding: 9px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft); color: var(--ink-soft); transition: color 0.2s, border-color 0.2s; }
.jump a:hover { color: var(--plum); border-color: var(--plum-2); }
.sec.tight { padding-top: 20px; }

/* contact */
.contact { padding: 140px var(--pad) 60px; max-width: 1320px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.contact h2 { font-size: clamp(56px, 11vw, 170px); letter-spacing: -0.055em; line-height: 0.9; font-weight: 800; }
.contact p { color: var(--ink-soft); margin: 22px auto 30px; max-width: 520px; font-size: 18px; }
.contact-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 40px var(--pad); border-top: 1px solid var(--line); color: var(--mute);
  font-size: 10px; max-width: 1320px; margin: 0 auto; }
.footer a:hover { color: var(--plum); }

@media (max-width: 960px) {
  .nav { flex-wrap: wrap; border-radius: 22px; row-gap: 4px; padding: 8px 8px 6px 18px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin-left: -10px; }
  .nav-links a { padding: 6px 10px; font-size: 10px; white-space: nowrap; }
  .nav-links a sup { display: none; }
  .hero, .page-hero { padding-top: 170px; }
  .hero-photo { position: static; height: auto; width: min(240px, 58vw); margin: 30px auto -10px; }
  .hero-photo img { width: 100%; height: auto; }
  .sec-head { grid-template-columns: 1fr; gap: 10px; }
  .num { font-size: 64px; }
  .chat-zone { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr; }
  .chapter:not(.on) { display: none; }
  .grid-soft { grid-template-columns: 1fr; }
  .soft, .soft:nth-child(1), .soft:nth-child(2) { grid-column: auto; min-height: 320px; }
  .stage-wrap { margin-top: 36px; }
  .stage { border-width: 4px; border-radius: 20px; }
}
@media (max-width: 560px) {
  .nav .btn { padding: 10px 14px; font-size: 13px; }
  .stats { width: 100%; justify-content: space-between; }
  .chat { height: 520px; }
  .rail { grid-auto-columns: 70vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .orbs { display: none; }
  .rv { opacity: 1; transform: none; }
  .hero h1 .w > span { transform: none; }
}
video.missing { display: none !important; }
