/* ============================================================
   Kurve AI — Shared Stylesheet
   ============================================================ */

/* ---------- Cross-browser base ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: #0d0d0d;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
.k-logo img { height: 32px; width: auto; }
a { text-decoration: none; color: inherit; }

/* Focus styles — accessibility + keyboard nav */
:focus-visible {
  outline: 2px solid #FF6D1F;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.k-wrap { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.k-page { padding-top: 80px; padding-bottom: 4rem; }

.k-g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.k-g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }

/* ---------- Typography ---------- */
.k-h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(28px, 4.5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: #fff;
  word-break: break-word;
}
.k-h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(18px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: #fff;
  word-break: break-word;
}
.k-h3 {
  font-family: 'Merriweather', serif;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #fff;
}
.k-h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #FF6D1F;
  margin: 0 0 0.3rem;
}
.k-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FF6D1F;
  margin-bottom: 0.75rem;
  display: block;
}
.k-sub { font-size: clamp(15px, 1.8vw, 17px); line-height: 1.65; color: #999; max-width: 660px; }
.k-sm  { font-size: 14px; line-height: 1.6; color: #888; }

/* Hero section — fill most of the viewport on all screen sizes */
#k-hero {
  min-height: calc(100svh - 64px);   /* svh = stable viewport height, excludes mobile browser chrome */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.k-xs  { font-size: 13px; line-height: 1.5; color: #666; }
.k-orange { color: #FF6D1F; }
.k-muted  { color: #555; }

/* ---------- Buttons ---------- */
.k-btn {
  display: inline-block;
  background: #FF6D1F;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
  -webkit-appearance: none;
  touch-action: manipulation;
  transition: background 0.15s;
}
.k-btn:hover  { background: #e55e12; }
.k-btn:active { background: #cc5210; }

.k-btn-ghost {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 6px;
  border: 0.5px solid #333;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
  -webkit-appearance: none;
  touch-action: manipulation;
  transition: border-color 0.15s;
}
.k-btn-ghost:hover  { border-color: #555; }
.k-btn-ghost:active { border-color: #666; }

/* ---------- Cards ---------- */
.k-card {
  background: #141414;
  border: 0.5px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
}
.k-card-dim {
  background: #111;
  border: 0.5px solid #222;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.k-feature {
  background: #111;
  border: 0.5px solid #222;
  border-radius: 8px;
  padding: 1rem;
}
.k-product-card {
  background: #111;
  border: 0.5px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}
.k-product-card:hover { border-color: #FF6D1F44; }
.k-product-num {
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.k-feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.k-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.k-feat {
  background: #141414;
  border: 0.5px solid #2a2a2a;
  border-radius: 8px;
  padding: 0.875rem;
}

/* ---------- Badges & Pills ---------- */
.k-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #1e1005;
  color: #FF6D1F;
  border: 0.5px solid #FF6D1F44;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.k-tag {
  font-size: 11px;
  color: #555;
  border: 0.5px solid #2a2a2a;
  border-radius: 20px;
  padding: 3px 10px;
  display: inline-block;
  margin: 2px;
}
.k-vtag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #FF6D1F;
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.k-suite-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #FF6D1F;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.k-ind-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF6D1F;
  border: 0.5px solid #FF6D1F;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.k-phase {
  font-size: 11px;
  font-weight: 500;
  color: #FF6D1F;
  border: 0.5px solid #FF6D1F55;
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.k-powered {
  font-size: 11px;
  color: #444;
  border: 0.5px solid #222;
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
}
.k-live {
  font-size: 11px;
  color: #FF6D1F;
  border: 0.5px solid #FF6D1F44;
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
}
.k-coming {
  font-size: 11px;
  color: #666;
  border: 0.5px solid #333;
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
}
.k-check { color: #FF6D1F; margin-right: 6px; }

/* ---------- Decorative ---------- */
.k-hr { border: none; border-top: 0.5px solid #1e1e1e; margin: 3rem 0; }
.k-accent-bar { width: 40px; height: 3px; background: #FF6D1F; border-radius: 2px; margin-bottom: 1.5rem; }
.k-num {
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: 36px;
  font-weight: 800;
  color: #FF6D1F22;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.k-num-line { width: 24px; height: 2px; background: #FF6D1F; margin-bottom: 0.75rem; border-radius: 2px; }
.k-dot { width: 6px; height: 6px; background: #FF6D1F; border-radius: 50%; display: inline-block; margin-right: 6px; margin-bottom: 2px; }

.k-pillar { border-left: 2px solid #FF6D1F; padding-left: 1.5rem; margin-bottom: 3rem; }
.k-pillar-num {
  font-family: 'Iosevka Charon Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #FF6D1F;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.k-arch-row { display: flex; align-items: center; gap: 0; margin: 2rem 0; flex-wrap: nowrap; }
.k-arch-block {
  flex: 1;
  background: #141414;
  border: 0.5px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  min-width: 0;
}
.k-arch-arrow { color: #FF6D1F; font-size: 18px; padding: 0 0.5rem; flex-shrink: 0; }

.k-quote-block { border-left: 2px solid #FF6D1F; padding-left: 1.25rem; margin: 1.5rem 0; }
.k-value { border-left: 2px solid #FF6D1F; padding-left: 1.25rem; margin-bottom: 1.5rem; }

/* ---------- Platform-specific helpers ---------- */
.k-platform-ref {
  background: #111;
  border: 0.5px solid #FF6D1F33;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.k-no-vertical {
  background: #111;
  border: 0.5px solid #222;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.k-dot-orange { width: 6px; height: 6px; background: #FF6D1F; border-radius: 50%; flex-shrink: 0; }

/* ---------- Contact Form ---------- */
.k-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.k-input {
  background: #111;
  border: 0.5px solid #2a2a2a;
  border-radius: 6px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; /* 16px prevents iOS auto-zoom */
  width: 100%;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}
.k-input:focus { border-color: #FF6D1F55; outline: none; }
.k-input::placeholder { color: #444; }

.k-select {
  background: #111;
  border: 0.5px solid #2a2a2a;
  border-radius: 6px;
  padding: 12px 14px;
  color: #888;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.15s;
  cursor: pointer;
}
.k-select:focus { border-color: #FF6D1F55; outline: none; }

.k-textarea {
  background: #111;
  border: 0.5px solid #2a2a2a;
  border-radius: 6px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  width: 100%;
  resize: vertical;
  min-height: 100px;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}
.k-textarea:focus { border-color: #FF6D1F55; outline: none; }
.k-textarea::placeholder { color: #444; }
.k-form-label { font-size: 12px; color: #555; margin-bottom: 0.4rem; display: block; }
.k-contact-card {
  background: #111;
  border: 0.5px solid #222;
  border-radius: 8px;
  padding: 1.25rem;
}

/* ---------- Navigation ---------- */
.k-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid #1e1e1e;
}
/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  .k-nav-wrap { background: rgba(13, 13, 13, 0.98); }
}

.k-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.k-logo {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.k-logo .k-logo-text { color: #fff; display: inline-block; }
.k-logo .k-logo-text .k-orange { color: #FF6D1F; }
.k-logo-venture { display: block; font-size: 9px; font-weight: 400; letter-spacing: 0.03em; color: #888; white-space: nowrap; font-family: 'DM Sans', sans-serif; }

.k-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: nowrap;
}
.k-nav-link {
  font-size: 14px;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color 0.15s;
  min-height: 44px;
  touch-action: manipulation;
}
.k-nav-link:hover { color: #fff; }
.k-nav-link.active { color: #FF6D1F; }

.k-nav-dropdown { position: relative; }

.k-caret { font-size: 10px; transition: transform 0.2s; }
.k-nav-toggle[aria-expanded="true"] .k-caret { transform: rotate(180deg); }

/* Dropdown: padding-top bridges the 8px hover gap without losing :hover */
.k-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 0.5rem;
  padding-top: calc(0.5rem + 8px);  /* 8px invisible bridge above visible content */
  background: #141414;
  border: 0.5px solid #2a2a2a;
  border-radius: 10px;
  min-width: 210px;
  list-style: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
}
.k-nav-dropdown:hover .k-dropdown-menu,
.k-nav-dropdown:focus-within .k-dropdown-menu { display: block; }
.k-dropdown-menu.open { display: block; }

.k-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 14px;
  color: #888;
  transition: background 0.12s, color 0.12s;
  min-height: 40px;
}
.k-dropdown-item:hover { background: #1e1e1e; color: #fff; }

.k-nav-badge {
  font-size: 10px;
  font-weight: 500;
  background: #FF6D1F22;
  color: #FF6D1F;
  border: 0.5px solid #FF6D1F44;
  border-radius: 3px;
  padding: 1px 5px;
}

.k-nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.k-hamburger {
  display: none;
  background: none;
  border: 0.5px solid #2a2a2a;
  color: #888;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-appearance: none;
  transition: color 0.15s, border-color 0.15s;
}
.k-hamburger:hover { color: #fff; border-color: #444; }

/* Mobile drawer */
.k-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem 1.5rem 1.5rem;
  border-top: 0.5px solid #1e1e1e;
  max-height: calc(100vh - 58px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.k-mobile-menu.open { display: flex; }
.k-mobile-link {
  font-size: 15px;
  color: #888;
  padding: 0.75rem 0;
  border-bottom: 0.5px solid #141414;
  display: block;
  min-height: 44px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
  transition: color 0.15s;
}
.k-mobile-link:hover,
.k-mobile-link:active { color: #fff; }
.k-mobile-section {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
  padding: 1rem 0 0.4rem;
}

/* ---------- Footer ---------- */
.f {
  font-family: 'DM Sans', sans-serif;
  background: #0d0d0d;
  border-top: 0.5px solid #1a1a1a;
}
.f-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem 2rem; }
.f-logo { font-family: 'Merriweather', serif; font-size: 22px; font-weight: 800; }
.f-logo span { color: #FF6D1F; }
.f-tagline { font-size: 13px; color: #555; margin-top: 0.4rem; line-height: 1.5; max-width: 220px; }
.f-col-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF6D1F;
  margin-bottom: 1rem;
}
.f-link { display: block; font-size: 14px; color: #666; margin-bottom: 0.5rem; transition: color 0.15s; }
.f-link:hover { color: #fff; }
.f-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
  border-top: 0.5px solid #1e1e1e;
}
.f-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 0.5px solid #1a1a1a;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.f-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.f-bottom-link { font-size: 12px; color: #444; cursor: pointer; }
.f-copy { font-size: 12px; color: #333; }
.f-venture { font-size: 11px; color: #666; margin-top: 4px; margin-bottom: 0.75rem; }
.f-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  background: #FF6D1F22;
  color: #FF6D1F;
  border: 0.5px solid #FF6D1F44;
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.f-cta-strip {
  background: #111;
  border: 0.5px solid #222;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.f-cta-text h3 {
  font-family: 'Merriweather', serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.f-cta-text p { font-size: 14px; color: #666; margin: 0; }
.f-btn {
  background: #FF6D1F;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  -webkit-appearance: none;
  touch-action: manipulation;
  transition: background 0.15s;
}
.f-btn:hover { background: #e55e12; }
.f-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.f-social-btn {
  font-size: 12px;
  color: #555;
  border: 0.5px solid #2a2a2a;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  min-height: 32px;
  display: flex;
  align-items: center;
  transition: color 0.15s, border-color 0.15s;
}
.f-social-btn:hover { color: #fff; border-color: #444; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ---------- Large desktop (1440px+) — breathing room ---------- */
@media (min-width: 1440px) {
  .k-wrap { padding: 0 4rem; }
  .f-inner { padding: 0 4rem 2rem; }
}

/* ---------- Mid-desktop (1025px – 1280px) — laptop optimisation ---------- */
@media (max-width: 1280px) {
  .k-nav-inner { gap: 1rem; }
  .k-nav-link  { padding: 0.5rem 0.625rem; font-size: 13.5px; }
  .f-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
  .f-grid > div:last-child { grid-column: 2; }
}

/* ---------- Tablet wide (1024px) — nav gets tighter ---------- */
@media (max-width: 1024px) {
  .k-nav-inner { gap: 1rem; }
  .k-nav-link { padding: 0.5rem 0.5rem; font-size: 13px; }
  .f-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .f-grid > div:last-child { grid-column: 2; }
}

/* ---------- Tablet (768px) ---------- */
@media (max-width: 768px) {
  #k-hero { min-height: calc(100svh - 58px); }   /* 58px = mobile nav height */

  /* Nav */
  .k-nav-links { display: none; }
  .k-hamburger { display: flex; align-items: center; justify-content: center; }
  .k-nav-inner { height: 58px; gap: 1rem; }
  .k-page { padding-top: 58px; }

  /* Layout */
  .k-wrap { padding: 0 1.5rem; }
  .f-inner { padding: 0 1.5rem 2rem; }
  .k-hr { margin: 2rem 0; }

  /* Grids — force narrower min to avoid 1-column too early */
  .k-g2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .k-g3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .k-feature-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .k-feat-grid   { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

  /* Architecture flow — stack vertically */
  .k-arch-row { flex-direction: column; align-items: stretch; }
  .k-arch-arrow { transform: rotate(90deg); text-align: center; padding: 0.25rem 0; }

  /* Contact form */
  .k-input-row { grid-template-columns: 1fr; }

  /* Footer */
  .f-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 2rem 0 1.5rem; }
  .f-grid > div:first-child { grid-column: 1 / -1; }
  .f-grid > div:last-child { grid-column: unset; }
  .f-cta-strip { padding: 1.25rem 1.25rem; }

  /* Pillar */
  .k-pillar { padding-left: 1rem; }
}

/* ---------- Mobile (480px) ---------- */
@media (max-width: 480px) {
  #k-hero { min-height: auto; padding-top: 2rem; padding-bottom: 2rem; }

  /* Layout */
  .k-wrap { padding: 0 1rem; }
  .f-inner { padding: 0 1rem 1.5rem; }
  .k-page { padding-bottom: 2.5rem; }

  /* Typography */
  .k-sub { font-size: 15px; }

  /* Buttons — full width stacking handled by flex-wrap in HTML;
     ensure they don't overflow */
  .k-btn, .k-btn-ghost { padding: 11px 18px; font-size: 14px; }

  /* Grids — go single column */
  .k-g2 { grid-template-columns: 1fr; }
  .k-g3 { grid-template-columns: 1fr; }
  .k-feature-row { grid-template-columns: 1fr; }
  .k-feat-grid   { grid-template-columns: 1fr; }

  /* Footer */
  .f-grid { grid-template-columns: 1fr; }
  .f-grid > div:first-child { grid-column: unset; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
  .f-bottom-links { gap: 1rem; }
  .f-cta-strip { flex-direction: column; align-items: flex-start; }

  /* Nav */
  .k-nav-inner { padding: 0 1rem; }
  .k-logo { font-size: 17px; }
  .k-mobile-menu { padding: 0.5rem 1rem 1.25rem; }

  /* Cards */
  .k-card, .k-card-dim, .k-product-card { padding: 1.25rem; }

  /* Pillar */
  .k-pillar { padding-left: 0.875rem; margin-bottom: 2rem; }
  .k-hr { margin: 1.75rem 0; }
}

/* ---------- Very small screens (360px) ---------- */
@media (max-width: 360px) {
  .k-wrap { padding: 0 0.875rem; }
  .f-inner { padding: 0 0.875rem 1.25rem; }
  .k-btn, .k-btn-ghost { padding: 10px 14px; font-size: 13px; }
}

/* ---------- Reduced motion (accessibility) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .k-hero-bg  { animation: none !important; }
  .k-live     { animation: none !important; }
  .k-page > .k-wrap > div:first-child > * {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .k-nav-wrap, .k-hamburger, .k-mobile-menu, .f-cta-strip { display: none !important; }
  .k-page { padding-top: 0; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}

/* ============================================================
   ANIMATION SYSTEM
   ============================================================ */

/* --- Keyframes --- */
@keyframes k-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes k-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes k-slide-right {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes k-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,109,31,0); border-color: rgba(255,109,31,0.27); }
  50%       { box-shadow: 0 0 0 4px rgba(255,109,31,0.08); border-color: rgba(255,109,31,0.55); }
}
@keyframes k-mesh-drift {
  0%   { transform: translate(0,0) scale(1); opacity: 0.4; }
  33%  { transform: translate(-12px,8px) scale(1.02); opacity: 0.55; }
  66%  { transform: translate(8px,-10px) scale(0.98); opacity: 0.45; }
  100% { transform: translate(0,0) scale(1); opacity: 0.4; }
}
@keyframes k-hero-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Scroll-entrance hidden state & reveal --- */
[data-anim] {
  opacity: 0;
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--anim-delay, 0ms);
}
[data-anim="fade-up"]     { transform: translateY(16px); }
[data-anim="fade-in"]     { transform: none; }
[data-anim="slide-right"] { transform: translateX(-12px); }
[data-anim="arch-block"]  { transform: translateY(10px); }
[data-anim="arch-arrow"]  { transform: none; }
[data-anim].is-visible    { opacity: 1; transform: none; }

/* --- Hero page-load stagger (CSS-only, fires on every page) --- */
.k-page > .k-wrap > div:first-child > * {
  animation: k-hero-enter 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.k-page > .k-wrap > div:first-child > *:nth-child(1) { animation-delay: 0.05s; }
.k-page > .k-wrap > div:first-child > *:nth-child(2) { animation-delay: 0.15s; }
.k-page > .k-wrap > div:first-child > *:nth-child(3) { animation-delay: 0.25s; }
.k-page > .k-wrap > div:first-child > *:nth-child(4) { animation-delay: 0.35s; }
.k-page > .k-wrap > div:first-child > *:nth-child(5) { animation-delay: 0.43s; }
.k-page > .k-wrap > div:first-child > *:nth-child(6) { animation-delay: 0.50s; }

/* --- Live badge pulse --- */
.k-live { animation: k-live-pulse 2.8s ease-in-out infinite; }

/* --- Hero background gradient (index.html only, injected by animations.js) --- */
.k-hero-bg {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 520px;
  height: 400px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 320px 240px at 70% 40%, rgba(255,109,31,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 200px 160px at 85% 20%, rgba(255,140,60,0.04) 0%, transparent 60%);
  animation: k-mesh-drift 18s ease-in-out infinite;
  mix-blend-mode: screen;
}
.k-page > .k-wrap > div:first-child > *:not(.k-hero-bg) {
  position: relative;
  z-index: 1;
}

/* --- Enhanced hover polish --- */
.k-btn {
  transition: background 0.15s, transform 0.18s cubic-bezier(0.16,1,0.3,1), box-shadow 0.18s ease;
}
.k-btn:hover  { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,109,31,0.22); }
.k-btn:active { transform: translateY(0); box-shadow: none; }

.k-btn-ghost {
  transition: border-color 0.15s, transform 0.18s cubic-bezier(0.16,1,0.3,1);
}
.k-btn-ghost:hover  { transform: translateY(-1px); }
.k-btn-ghost:active { transform: translateY(0); }

.k-card     { transition: border-color 0.2s ease; }
.k-card:hover { border-color: #3a3a3a; }
.k-card-dim  { transition: border-color 0.2s ease; }
.k-card-dim:hover { border-color: #2e2e2e; }
