/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://martialmachina.com
 Description:  Child theme for Hello Elementor — The Kayak / Martial Machina Ltd
 Author:       Martial Machina Ltd
 Author URI:   https://martialmachina.com
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&family=DM+Mono:wght@300;400&display=swap');

/* ═══════════════════════════════════════════════════════════════
   THE KAYAK — Martial Machina Ltd
   Child theme stylesheet
   All Kayak styles live here. Survives theme updates and
   switches automatically — no manual repasting needed.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --black:      #080808;
  --dark:       #0f0f0f;
  --panel:      #141414;
  --border:     rgba(255,255,255,0.07);
  --white:      #f4f2ee;
  --muted:      rgba(244,242,238,0.45);
  --accent:     #00d4aa;
  --accent-dim: rgba(0,212,170,0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
.kyk-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.kyk-h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.kyk-h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.kyk-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kyk-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}

.kyk-lead {
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.kyk-body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.kyk-use-case {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.kyk-use-case:last-child {
  margin-bottom: 0;
}

.kyk-use-case-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
}

.kyk-use-case-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.kyk-use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.kyk-use-case-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1rem;
  border-left: 1px solid var(--accent);
}

@media (max-width: 768px) {
  .kyk-use-case-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ── NAV ── */
.kyk-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.kyk-nav-logo {
  height: 28px;
  opacity: 0.9;
}

.kyk-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.kyk-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.kyk-nav-links a:hover { color: var(--white); }

.kyk-nav-cta {
  background: var(--accent) !important;
  color: var(--black) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 2px;
  font-weight: 500 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em;
  transition: opacity 0.2s !important;
}

.kyk-nav-cta:hover { opacity: 0.85; }

.kyk-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.kyk-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── HERO BANNER ── */
.kyk-banner {
  position: relative;
  width: 100%;
  height: 36vh;
  overflow: hidden;
  background: var(--black);
  margin-bottom: 0;
}

.kyk-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 300%;
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: 0 top;
  filter: brightness(0.45);
  animation: kyk-pan 28s linear infinite;
}

@keyframes kyk-pan {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.kyk-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(8,8,8,0.7) 100%);
}

.kyk-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.kyk-banner-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.kyk-banner-play:hover {
  background: rgba(0,212,170,0.2);
  border-color: var(--accent);
  transform: scale(1.08);
}

.kyk-banner-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Remove gap between banner and hero */
.kyk-hero {
  padding-top: 4rem;
}

@media (max-width: 768px) {
  .kyk-banner { aspect-ratio: unset; height: 35vh; }
  .kyk-banner-play { width: 56px; height: 56px; }
}

/* ── HERO ── */
.kyk-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 3rem;
}

.kyk-hero-text { max-width: 560px; }

.kyk-hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kyk-hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.kyk-hero-oneliner {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--white);
  font-weight: 400;
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

.kyk-hero-descriptor {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.8rem;
  border-left: 1px solid var(--accent);
  padding-left: 1rem;
}

.kyk-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.kyk-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-direction: column;
}

.kyk-hero-image img {
  width: 100%;
  max-width: 580px;
  filter: drop-shadow(0 0 60px rgba(0,212,170,0.08));
  animation: kyk-float 6s ease-in-out infinite;
}

@keyframes kyk-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── BUTTONS ── */
.kyk-btn-primary {
  background: var(--accent);
  color: var(--black);
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.kyk-btn-primary:hover { opacity: 0.85; transform: translateY(-1px); color: var(--black); }

.kyk-btn-secondary {
  background: transparent;
  color: var(--muted);
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.kyk-btn-secondary:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }

/* ── DIVIDER ── */
.kyk-divider {
  height: 1px;
  background: var(--border);
  max-width: 1400px;
  margin: 0 auto;
}

/* ── SECTIONS ── */
.kyk-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.kyk-section-full {
  padding: 4rem 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.kyk-section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── EXPAND / SEE MORE ── */
.kyk-expand-wrap {
  position: relative;
}

.kyk-expand-body {
  position: relative;
  overflow: hidden;
  max-height: 5rem;
  transition: max-height 0.5s ease;
}

.kyk-expand-wrap.kyk-expanded .kyk-expand-body {
  max-height: 2000px;
}

.kyk-expand-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
  transition: opacity 0.3s;
}

.kyk-expand-fade-dark {
  background: linear-gradient(to bottom, transparent, var(--panel));
}

.kyk-expand-wrap.kyk-expanded .kyk-expand-fade {
  opacity: 0;
}

.kyk-expand-btn {
  display: block;
  margin-top: 0.6rem;
  background: none;
  border: none;
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.kyk-expand-btn:hover { opacity: 0.7; }

.kyk-expand-wrap.kyk-expanded .kyk-expand-btn {
  display: none;
}

.kyk-expand-less {
  display: none;
}

.kyk-expand-wrap.kyk-expanded .kyk-expand-less {
  display: block;
}

/* ── PROBLEM SECTION — BURNT ORANGE FLOATING BOX ── */
#kyk-problem {
  background: #e66414;
  border: 3px solid #000;
  border-radius: 4px;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 3rem 2.5rem;
}

#kyk-problem .kyk-lead,
#kyk-problem .kyk-body {
  color: #000 !important;
}

#kyk-problem .kyk-lead {
  font-weight: 600 !important;
  font-size: 1rem !important;
  margin-bottom: 0.5rem !important;
}

#kyk-problem .kyk-body {
  margin-bottom: 0.5rem !important;
}

#kyk-problem .kyk-h2 {
  color: #ffffff !important;
  margin-bottom: 0.75rem !important;
}

#kyk-problem .kyk-eyebrow {
  color: var(--accent) !important;
  margin-bottom: 0.5rem !important;
}

#kyk-problem .kyk-eyebrow::before {
  background: var(--accent);
}

#kyk-problem .kyk-risk-heading h2 {
  color: #ffffff !important;
}

#kyk-problem .kyk-risk-grid {
  border-top: 3px solid #fff;
  padding-top: 2.5rem;
  margin-top: 2.5rem !important;
}
.kyk-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.kyk-risk-grid {
  align-items: start;
}

.kyk-risk-heading {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── PRODUCT ── */
.kyk-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.kyk-product-image img {
  width: 100%;
  border-radius: 4px;
  opacity: 0.92;
}

/* ── ACTIVATION ── */
.kyk-activation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}

.kyk-activation-grid img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── SAFETY STRIP ── */
.kyk-safety {
  background: rgba(0,212,170,0.05);
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  margin: 3rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.kyk-safety span {
  color: var(--accent);
  font-weight: 500;
}

/* ── PILLARS ── */
.kyk-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 3rem;
}

.kyk-pillar {
  background: var(--panel);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
}

.kyk-pillar:hover { background: #1a1a1a; }

.kyk-pillar-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

/* ── DATA LAYER CAROUSEL ── */
.kyk-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin: 3rem -1.25rem 0;
}

.kyk-carousel-stage {
  position: relative;
  flex: 1;
  /* Active slide is 52% of stage width; image aspect (h/w) is 1.194,
     so active image height = 0.52 * 1.194 = 0.621 of stage width.
     aspect-ratio width/height = 1 / 0.621 ≈ 1.58 (small buffer to avoid clipping). */
  aspect-ratio: 1.58 / 1;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.kyk-carousel-slide {
  position: absolute;
  width: 52%;
  top: 50%;
  left: 50%;
  will-change: transform, opacity, filter;
  cursor: pointer;
}

.kyk-carousel-slide.kyk-slide-zoom {
  cursor: zoom-in;
}

.kyk-slide-anim {
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1),
              opacity 0.55s ease,
              filter 0.55s ease;
}

.kyk-carousel-slide img {
  width: 100%;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  pointer-events: none;
}

.kyk-carousel-btn {
  background: none;
  border: 1.5px solid var(--accent-dim);
  color: var(--accent);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 0.75rem;
  transition: border-color 0.2s, background 0.2s;
  z-index: 10;
}

.kyk-carousel-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.kyk-carousel-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kyk-carousel-copy {
  position: relative;
  min-height: 9.5rem;
  margin-top: 2.25rem;
  text-align: center;
}

.kyk-copy-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.kyk-copy-panel.kyk-copy-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.kyk-carousel-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.kyk-carousel-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.kyk-carousel-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 37rem;
  margin: 0 auto;
}

.kyk-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.kyk-carousel-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.kyk-carousel-dot.kyk-dot-on {
  background: var(--accent);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  /* Slide is 74% wide here: active height = 0.74 * 1.194 = 0.883 of stage width.
     aspect-ratio ≈ 1 / 0.883 ≈ 1.13 (small buffer). */
  .kyk-carousel-stage { aspect-ratio: 1.10 / 1; }
  .kyk-carousel-slide { width: 74%; }
  .kyk-carousel-btn { display: none; }
  .kyk-carousel-wrap { margin: 2.5rem -0.75rem 0; }
}

/* ── PROTOTYPE ── */
.kyk-prototype-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.kyk-prototype-block img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(0,212,170,0.15);
  box-shadow: 0 0 40px rgba(0,212,170,0.05);
}

.kyk-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,170,0.3);
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.kyk-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: kyk-pulse 2s ease-in-out infinite;
}

@keyframes kyk-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── CTA ── */
.kyk-cta {
  text-align: center;
  padding: 8rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.kyk-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ── FOOTER ── */
.kyk-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.kyk-footer img {
  height: 22px;
  filter: invert(1);
  opacity: 0.5;
}

.kyk-footer-text {
  font-size: 0.75rem;
  color: rgba(244,242,238,0.25);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.08em;
}

/* ── HERO IMAGE CYCLE ── */
.kyk-hero-cycle {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 4 / 3;
  animation: kyk-float 6s ease-in-out infinite;
}

.kyk-cycle-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease;
  filter: drop-shadow(0 0 60px rgba(0,212,170,0.08));
}

.kyk-cycle-img.kyk-cycle-active {
  opacity: 1;
}

.kyk-cycle-dots {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.kyk-cycle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
}

.kyk-cycle-dot.kyk-dot-active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── FADE IN ── */
.kyk-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.kyk-fade.kyk-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HELLO ELEMENTOR THEME RESETS ── */
.elementor-page .elementor-section-wrap,
.e-container,
.elementor-widget-wrap {
  padding: 0 !important;
}

.page-content,
.entry-content,
.post-content {
  padding: 0 !important;
  margin: 0 !important;
}

.site-main,
#primary,
#content,
.site-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-header,
.site-footer {
  display: none !important;
}

body.page {
  background: var(--black) !important;
  color: var(--white) !important;
}

/* ── PAGE TITLE AND GAP FIX ── */
.entry-title,
.page-title,
h1.entry-title {
  display: none !important;
}

/* Remove gap caused by WordPress admin bar and theme wrappers */
html { margin-top: 0 !important; }
html.admin-bar { margin-top: 0 !important; }
#wpadminbar { position: fixed !important; }

/* Remove any top padding/margin on page and article wrappers */
.page-template-default .site-content,
.page-template-default #primary,
.page-template-default article,
.page-template-default .entry-header,
.page-template-default .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Ensure banner sits flush under nav */
.kyk-banner {
  margin-top: 0 !important;
  aspect-ratio: 2340 / 687;
}

/* Reduce hero top padding since banner is above it */
.kyk-hero {
  padding-top: 3rem !important;
  padding-bottom: 1rem !important;
}

/* Ensure kyk-nav sits flush at top regardless of admin bar */
.kyk-nav {
  top: 0 !important;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .kyk-nav { padding: 1rem 1.2rem; }

  .kyk-nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(8,8,8,0.97);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .kyk-nav-links.kyk-open { display: flex; }
  .kyk-hamburger { display: flex; }

  .kyk-hero {
    grid-template-columns: 1fr;
    padding: 7rem 1.2rem 3rem;
    gap: 2.5rem;
  }

  .kyk-hero-image { order: -1; }
  .kyk-hero-image img { max-width: 320px; }

  /* Load More Risk Less — heading above text on mobile */
  .kyk-risk-heading { order: -1; }
  .kyk-risk-body { order: 1; }

  .kyk-section { padding: 3rem 1.2rem; }

  .kyk-problem-grid,
  .kyk-product-grid,
  .kyk-activation-grid,
  .kyk-data-grid,
  .kyk-prototype-block { grid-template-columns: 1fr; gap: 2rem; }

  .kyk-prototype-block { padding: 2rem 1.5rem; }
  .kyk-pillars-grid { grid-template-columns: 1fr; }
  .kyk-cta { padding: 3rem 1.2rem; }

  /* Fix cycle container on mobile — enforce aspect ratio */
  .kyk-hero-cycle {
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }

  .kyk-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.2rem;
  }

  .kyk-h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  .kyk-h2 { font-size: clamp(2rem, 8vw, 3rem); }
}

@media (max-width: 480px) {
  .kyk-hero-actions { flex-direction: column; }
  .kyk-btn-primary,
  .kyk-btn-secondary { text-align: center; width: 100%; }
  .kyk-cta-actions { flex-direction: column; align-items: stretch; }
  .kyk-cta-actions a { text-align: center; }
}

.kyk-patent {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ── LIGHTBOX ── */
.kyk-lightbox-trigger {
  cursor: zoom-in;
}

.kyk-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kyk-lightbox-overlay.kyk-lb-open {
  display: flex;
  opacity: 0;
}

.kyk-lightbox-overlay.kyk-lb-visible {
  opacity: 1;
}

.kyk-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 80px rgba(0,212,170,0.12);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.kyk-lightbox-overlay.kyk-lb-visible .kyk-lightbox-img {
  transform: scale(1);
}

.kyk-lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
  line-height: 1;
}

.kyk-lightbox-close:hover {
  background: rgba(255,255,255,0.15);
}

.kyk-lightbox-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-align: center;
  white-space: nowrap;
}
