/* ============================================================
   ElevAIte Labs — site stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300..800&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* Tweakable defaults via CSS variables (overridden by Tweaks panel) */
:root {
  --bg: #FAF9F6;
  --card: #F0EEE8;
  --white: #FFFFFF;
  --text: #0F0F0F;
  --body: #4A4A4A;
  --muted: #8A857A;
  --border: #E2DFD8;
  --accent: #1B4FD8;
  --accent-deep: #163fae;
  --footer-bg: #0F0F0F;
  --footer-link: #9A9A9A;
  --footer-bottom: #6A6A6A;

  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-card-lg: 16px;

  --section-pad: 120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: var(--section-pad) 0;
}

/* ---------- Type ---------- */

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.display {
  font-family: var(--display);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

h1.display { font-size: clamp(44px, 6.2vw, 80px); font-weight: 800; }
h2.display { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; }
h3.display { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; }

.subhead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--body);
  font-weight: 400;
}

p { color: var(--body); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,79,216,0.3);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

.btn-light {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.btn-light:hover {
  background: var(--bg);
  transform: translateY(-2px);
}

.link-arrow {
  color: var(--accent);
  font-weight: 500;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-bottom: 2px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.link-arrow:hover::after { right: 0; }
.link-arrow .arrow {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
}
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ---------- Scroll Progress Bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,246,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  max-width: 1440px;
  margin: 0 auto;
  gap: 40px;
  transition: padding 0.3s ease;
}
.nav.scrolled .nav-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  transition: color 0.2s;
}
.logo:hover { color: var(--accent); }
.logo .ai { color: var(--accent); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  color: var(--body);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: right 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-cta {
  padding: 10px 18px;
  font-size: 14px;
}

/* Hamburger → X */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.25s ease,
              width 0.25s ease;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Sidebar drawer (mobile nav) ---------- */

.nav-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(15,15,15,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.nav-sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  z-index: 151;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -12px 0 48px rgba(0,0,0,0.14);
  overflow-y: auto;
}
.nav-sidebar.open {
  transform: translateX(0);
}

.nav-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-sidebar-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
  transition: all 0.2s;
}
.nav-sidebar-close:hover { background: var(--text); color: #fff; border-color: var(--text); }

.nav-sidebar-links {
  flex: 1;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}
.nav-sidebar-links a {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s, padding-left 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.2s;
  opacity: 0;
  transform: translateX(24px);
  transition: color 0.2s, padding-left 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.2s, opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-sidebar.open .nav-sidebar-links a {
  opacity: 1;
  transform: translateX(0);
}
.nav-sidebar.open .nav-sidebar-links a:nth-child(1) { transition-delay: 0.06s; }
.nav-sidebar.open .nav-sidebar-links a:nth-child(2) { transition-delay: 0.10s; }
.nav-sidebar.open .nav-sidebar-links a:nth-child(3) { transition-delay: 0.14s; }
.nav-sidebar.open .nav-sidebar-links a:nth-child(4) { transition-delay: 0.18s; }
.nav-sidebar.open .nav-sidebar-links a:nth-child(5) { transition-delay: 0.22s; }
.nav-sidebar.open .nav-sidebar-links a:nth-child(6) { transition-delay: 0.26s; }
.nav-sidebar.open .nav-sidebar-links a:nth-child(7) { transition-delay: 0.30s; }

.nav-sidebar-links a:hover { color: var(--accent); padding-left: 36px; background: rgba(27,79,216,0.04); }
.nav-sidebar-links a.active { color: var(--accent); }
.nav-sidebar-links a .sidebar-arrow {
  font-size: 18px;
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-sidebar-links a:hover .sidebar-arrow { opacity: 1; transform: translateX(4px); }

.nav-sidebar-footer {
  padding: 24px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-headline {
  font-family: var(--display);
  font-size: clamp(48px, 6.4vw, 82px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 18px 0 28px;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
  font-weight: 800;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-stats {
  font-size: 14px;
  color: var(--body);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-stats .dot {
  width: 3px; height: 3px; background: var(--muted); border-radius: 50%;
  display: inline-block;
}

/* Hero stat number pulse-in */
.hero-stat-num {
  font-weight: 600;
  color: var(--text);
}

/* Image collage */
/* ── Arkin hero character ─────────────────────────────────── */
.arkin-hero-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 680px;
  overflow: visible;
}
.arkin-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: arkinGlow 4s ease-in-out infinite;
}
.arkin-hero-img {
  position: relative;
  height: 700px;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  animation: arkinFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 32px 48px rgba(0,0,0,0.18));
  transform-origin: bottom center;
  transition: transform 0.4s ease;
}
.arkin-hero-img:hover {
  transform: scale(1.03) translateY(-6px);
}
@keyframes arkinFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes arkinGlow {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}

/* Collage legacy styles kept for other pages if needed */
.collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 60px);
  gap: 6px;
  height: 580px;
}
.collage .ph { border-radius: 12px; overflow: hidden; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.collage .c1 { grid-column: 1 / 4; grid-row: 1 / 4; }
.collage .c2 { grid-column: 4 / 7; grid-row: 1 / 3; }
.collage .c3 { grid-column: 4 / 6; grid-row: 3 / 5; }
.collage .c4 { grid-column: 6 / 7; grid-row: 3 / 5; }
.collage .c5 { grid-column: 1 / 3; grid-row: 4 / 7; }
.collage .c6 { grid-column: 3 / 5; grid-row: 5 / 7; }
.collage .c7 { grid-column: 5 / 7; grid-row: 5 / 7; }
.collage .ph { transform: translateY(var(--py, 0px)); }

/* ---------- Placeholder imagery ---------- */

.ph {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  overflow: hidden;
  border-radius: var(--radius-card);
  isolation: isolate;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(15,15,15,0.04) 0px,
    rgba(15,15,15,0.04) 1px,
    transparent 1px,
    transparent 9px
  );
}
.ph-label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  background: rgba(250,249,246,0.85);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Image-treatment variants (set on body) */
body[data-imagery="solid"] .ph::before { display: none; }
body[data-imagery="solid"] .ph { background: var(--card); }

body[data-imagery="geometric"] .ph::before {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(27,79,216,0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(15,15,15,0.05) 0%, transparent 50%);
}

/* ---------- About teaser ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
}
.about-imgs .ph:nth-child(1) { grid-row: 1; transform: translateY(20px); }
.about-imgs .ph:nth-child(2) { grid-row: 1; transform: translateY(-20px); }
.about-imgs .ph:nth-child(3) { grid-row: 2; transform: translateY(20px); }
.about-imgs .ph:nth-child(4) { grid-row: 2; transform: translateY(-20px); }

.about-copy h2 { margin-bottom: 28px; }
.about-copy p { margin-bottom: 18px; max-width: 540px; }

/* ---------- Services list ---------- */

.svc-list {
  border-top: 1px solid var(--border);
  margin-top: 56px;
}
.svc-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr 40px;
  gap: 32px;
  align-items: center;
  padding: 32px 28px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}
.svc-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}
.svc-row:hover::before { transform: translateX(0); }
.svc-row > * { position: relative; z-index: 1; }

.svc-num {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  font-style: italic;
  transition: color 0.3s;
}
.svc-title {
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.svc-desc {
  font-size: 16px;
  color: var(--body);
  max-width: 420px;
  transition: color 0.3s;
}
.svc-arrow {
  text-align: right;
  color: var(--text);
  font-size: 22px;
  transition: color 0.3s, transform 0.3s;
}
.svc-row:hover .svc-num,
.svc-row:hover .svc-title,
.svc-row:hover .svc-desc,
.svc-row:hover .svc-arrow { color: #fff; }
.svc-row:hover .svc-arrow { transform: translateX(8px); }

/* ---------- Process / How we work ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 5%; right: 5%;
  height: 1px;
  background: var(--border);
  z-index: 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.process-grid.line-in::before { transform: scaleX(1); }
.process-step {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding-right: 20px;
}
.process-num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
  background: var(--bg);
  display: inline-block;
  padding-right: 16px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.process-step:hover .process-num { transform: scale(1.08) translateY(-2px); }
.process-step h3 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.process-step p { font-size: 15px; }

/* ---------- Featured Work masonry ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px -12px rgba(15,15,15,0.14);
}
.work-card .ph {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  height: 100%;
  min-height: 220px;
  flex: 1;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}
.work-card:hover .ph { transform: scale(1.03); }
.work-card-body {
  padding: 22px 24px 26px;
}
.work-card .industry {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.work-card h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.work-card .result { font-size: 14px; color: var(--body); }

.wc-w1 { grid-column: span 4; }
.wc-w1 .ph { min-height: 320px; }
.wc-w2 { grid-column: span 2; }
.wc-w3 { grid-column: span 2; }
.wc-w3 .ph { min-height: 280px; }
.wc-w4 { grid-column: span 2; }
.wc-w5 { grid-column: span 2; }
.wc-w6 { grid-column: span 3; }
.wc-w6 .ph { min-height: 260px; }
.wc-w7 { grid-column: span 3; }
.wc-w7 .ph { min-height: 260px; }

.work-cta { text-align: center; margin-top: 56px; }

/* ---------- Products ---------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius-card-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px -12px rgba(15,15,15,0.12);
}
.product-card .ph {
  aspect-ratio: 16/9;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .ph { transform: scale(1.02); }
.product-card-body { padding: 6px 8px 10px; }
.product-card h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.product-card .tagline {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 18px;
  line-height: 1.5;
}
.product-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-demo:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-demo .play {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  padding-left: 1px;
  transition: transform 0.25s ease;
}
.btn-demo:hover .play { transform: scale(1.15); }

/* ---------- Learn / reels ---------- */

.learn-section {
  background: var(--card);
}
.reels-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.reel-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
}
.reel-card .reel-media {
  aspect-ratio: 9/16;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reel-card:hover .reel-media {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px -8px rgba(15,15,15,0.14);
}
.reel-card .reel-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(15,15,15,0.04) 0,
    rgba(15,15,15,0.04) 1px,
    transparent 1px,
    transparent 9px
  );
}
.reel-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 18px;
  padding-left: 4px;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s ease;
}
.reel-card:hover .reel-play {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 8px 24px rgba(27,79,216,0.2);
}
.reel-card .reel-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}
.reel-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-top: 4px;
}

/* ---------- Testimonials ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px -10px rgba(15,15,15,0.1);
  border-color: var(--accent);
}
.quote-mark {
  font-family: var(--display);
  font-size: 64px;
  line-height: 0.8;
  color: var(--accent);
  font-weight: 600;
  height: 30px;
  transition: transform 0.3s ease;
}
.testimonial-card:hover .quote-mark { transform: scale(1.1) translateY(-2px); }
.testimonial-card .quote {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  flex: 1;
}
.testimonial-meta {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.testimonial-meta .name { font-weight: 600; color: var(--text); font-size: 15px; }
.testimonial-meta .role { font-size: 14px; color: var(--body); }
.testimonial-meta .company { font-size: 13px; color: var(--accent); font-weight: 500; margin-top: 2px; }

/* ---------- Stats strip counter ---------- */

.stat-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- Quiz CTA ---------- */

.cta-quiz {
  background: #0F0F0F;
  color: #fff;
  text-align: center;
  border-radius: 0;
}
.cta-quiz .wrap { max-width: 760px; }
.cta-quiz h2 {
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-quiz p {
  font-size: 19px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-quiz .tag { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.15); }
.cta-quiz .btn-light { background: #fff; color: #0F0F0F; border-color: #fff; }
.cta-quiz .btn-light:hover { background: rgba(255,255,255,0.9); }

/* ---------- Footer ---------- */

footer {
  background: var(--footer-bg);
  color: var(--footer-link);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
footer .logo { color: #fff; }
.footer-tag {
  margin-top: 18px;
  font-size: 15px;
  color: var(--footer-link);
  max-width: 280px;
  line-height: 1.5;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--footer-link);
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-bottom .copy {
  font-size: 13px;
  color: var(--footer-bottom);
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Generic content (inner pages) ---------- */

.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 18px 0 24px;
}
.page-hero p {
  font-size: 19px;
  color: var(--body);
  max-width: 640px;
  line-height: 1.5;
}

/* ---------- Quiz Modal ---------- */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,15,15,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  background: var(--bg);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  animation: slideUp 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px; height: 34px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text);
  transition: all 0.2s;
}
.modal-close:hover { background: var(--text); color: #fff; }
.quiz-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.quiz-step-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.quiz-question {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 28px;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.quiz-option {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.quiz-option:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.quiz-option.selected {
  border-color: var(--accent);
  background: rgba(27,79,216,0.05);
  color: var(--accent);
}
.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.quiz-actions .btn { flex: 1; justify-content: center; }
.quiz-back {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--body);
}
.quiz-back:hover { color: var(--text); border-color: var(--text); background: transparent; }

.quiz-result h3 {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.quiz-result-score {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.quiz-result p { margin-bottom: 16px; line-height: 1.6; }
.quiz-result-cta { margin-top: 28px; }

/* ---------- Keyframe animations ---------- */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Scroll fade-up ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings inside common parents */
.stagger > .fade-up:nth-child(1),
.testimonials-grid > .fade-up:nth-child(1),
.products-grid > .fade-up:nth-child(1),
.reels-row > .fade-up:nth-child(1),
.work-grid > .fade-up:nth-child(1),
.process-grid > .fade-up:nth-child(1),
.values-grid > .fade-up:nth-child(1),
.team-grid > .fade-up:nth-child(1) { transition-delay: 0ms; }

.stagger > .fade-up:nth-child(2),
.testimonials-grid > .fade-up:nth-child(2),
.products-grid > .fade-up:nth-child(2),
.reels-row > .fade-up:nth-child(2),
.work-grid > .fade-up:nth-child(2),
.process-grid > .fade-up:nth-child(2),
.values-grid > .fade-up:nth-child(2),
.team-grid > .fade-up:nth-child(2) { transition-delay: 80ms; }

.stagger > .fade-up:nth-child(3),
.testimonials-grid > .fade-up:nth-child(3),
.products-grid > .fade-up:nth-child(3),
.reels-row > .fade-up:nth-child(3),
.work-grid > .fade-up:nth-child(3),
.process-grid > .fade-up:nth-child(3),
.values-grid > .fade-up:nth-child(3),
.team-grid > .fade-up:nth-child(3) { transition-delay: 160ms; }

.stagger > .fade-up:nth-child(4),
.testimonials-grid > .fade-up:nth-child(4),
.products-grid > .fade-up:nth-child(4),
.reels-row > .fade-up:nth-child(4),
.work-grid > .fade-up:nth-child(4),
.process-grid > .fade-up:nth-child(4),
.values-grid > .fade-up:nth-child(4),
.team-grid > .fade-up:nth-child(4) { transition-delay: 240ms; }

.stagger > .fade-up:nth-child(5),
.work-grid > .fade-up:nth-child(5),
.team-grid > .fade-up:nth-child(5) { transition-delay: 320ms; }

.stagger > .fade-up:nth-child(6),
.work-grid > .fade-up:nth-child(6),
.team-grid > .fade-up:nth-child(6) { transition-delay: 400ms; }

.stagger > .fade-up:nth-child(7),
.work-grid > .fade-up:nth-child(7) { transition-delay: 480ms; }

/* ---------- Slide-in from sides ---------- */

.fade-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-left.in { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-right.in { opacity: 1; transform: translateX(0); }

/* ---------- Cursor follower (desktop only) ---------- */

@media (hover: hover) and (pointer: fine) {
  .cursor-dot,
  .cursor-ring {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
  }
  .cursor-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.3s ease;
    mix-blend-mode: multiply;
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid var(--accent);
    opacity: 0.45;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
  }
  body.cursor-hover .cursor-dot {
    width: 14px; height: 14px;
    opacity: 0.7;
  }
  body.cursor-hover .cursor-ring {
    width: 56px; height: 56px;
    opacity: 0.2;
  }
  body.cursor-hidden .cursor-dot,
  body.cursor-hidden .cursor-ring { opacity: 0; }
}

/* ---------- Hero variant: stacked centered ---------- */

body[data-hero="centered"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 56px;
}
body[data-hero="centered"] .hero-headline,
body[data-hero="centered"] .hero-sub {
  margin-left: auto;
  margin-right: auto;
}
body[data-hero="centered"] .hero-cta-row,
body[data-hero="centered"] .hero-stats { justify-content: center; }
body[data-hero="centered"] .collage { height: 480px; }

/* Hero variant: editorial (huge type, smaller image) */
body[data-hero="editorial"] .hero-grid {
  grid-template-columns: 1.4fr 1fr;
}
body[data-hero="editorial"] .hero-headline {
  font-size: clamp(56px, 8vw, 96px);
}
body[data-hero="editorial"] .collage { height: 520px; }

/* Services variant: grid */
body[data-services="grid"] .svc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
body[data-services="grid"] .svc-row {
  grid-template-columns: 1fr;
  border-right: 1px solid var(--border);
  align-items: flex-start;
  padding: 36px 28px 40px;
  gap: 16px;
}
body[data-services="grid"] .svc-arrow { display: none; }
body[data-services="grid"] .svc-desc { max-width: none; }

/* Services variant: minimal (no hover fill, just underline) */
body[data-services="minimal"] .svc-row::before { display: none; }
body[data-services="minimal"] .svc-row:hover .svc-num,
body[data-services="minimal"] .svc-row:hover .svc-desc { color: inherit; }
body[data-services="minimal"] .svc-row:hover .svc-title { color: var(--accent); }
body[data-services="minimal"] .svc-row:hover .svc-arrow { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .reels-row[style*="repeat(5"] { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 700px) {
  .reels-row[style*="repeat(5"] { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 960px) {
  :root { --section-pad: 80px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; flex-direction: column; }

  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .collage { height: 460px; }
  .arkin-hero-wrap { height: 380px; }
  .arkin-hero-img { height: 360px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .wc-w1, .wc-w2, .wc-w3, .wc-w4, .wc-w5, .wc-w6, .wc-w7 { grid-column: span 2; }
  .products-grid { grid-template-columns: 1fr; }
  .reels-row { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .wrap { padding: 0 24px; }
  .nav-inner { padding: 16px 24px; }
  .modal { padding: 32px 24px; }
  .quiz-question { font-size: 24px; }
}

@media (max-width: 560px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { justify-content: center; }
  .reels-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PHASE 2 ADDITIONS — images · typewriter · tilt · clips · blogs · Kredoo
   ================================================================ */

/* ---------- Real photo support in .ph ---------- */
.ph[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-color: #111;
}
.ph[style*="background-image"]::before { opacity: 0; }
.ph[style*="background-image"] .ph-label {
  background: rgba(0,0,0,0.52);
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.18);
  position: relative;
  z-index: 1;
}
/* Ensure img tags inside .ph fill the container */
.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* ---------- Typewriter cursor ---------- */
/* Hero headline — lock typewriter word to its own line */
.hero-headline em {
  white-space: nowrap;
  font-style: normal;
  font-weight: 800;
  position: relative;
}

/* Collage cell staggered clip-reveal (above fold, JS triggers immediately) */
.collage .c1.clip-reveal { transition-delay: 0.10s; }
.collage .c2.clip-reveal { transition-delay: 0.22s; }
.collage .c3.clip-reveal { transition-delay: 0.34s; }
.collage .c4.clip-reveal { transition-delay: 0.42s; }
.collage .c5.clip-reveal { transition-delay: 0.50s; }
.collage .c6.clip-reveal { transition-delay: 0.62s; }
.collage .c7.clip-reveal { transition-delay: 0.74s; }

/* Reel media background image support (same as .ph) */
.reel-media[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-color: #111;
}
.reel-media[style*="background-image"]::before { opacity: 0; }

/* Cards come forward on hover — stronger lift + z-index */
.work-card { position: relative; z-index: 1; }
.work-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 32px 64px -10px rgba(15,15,15,0.22) !important;
  z-index: 2;
}
.product-card { position: relative; z-index: 1; }
.product-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 28px 56px -10px rgba(15,15,15,0.2) !important;
  z-index: 2;
}
.testimonial-card { position: relative; z-index: 1; }
.testimonial-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 52px -10px rgba(15,15,15,0.15) !important;
  z-index: 2;
}
.reel-card { position: relative; z-index: 1; }
.reel-card:hover { z-index: 2; }
.reel-card:hover .reel-media {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px -8px rgba(15,15,15,0.22);
}
.ig-reel-wrap:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px -8px rgba(15,15,15,0.2);
  z-index: 2;
  position: relative;
}

/* Kredoo iframe card */
.kredoo-iframe-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}
.kredoo-iframe-wrap {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.kredoo-iframe {
  width: 167%;
  height: 800px;
  border: none;
  display: block;
  transform: scale(0.6);
  transform-origin: top left;
  pointer-events: none;
}
.kredoo-iframe-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(5,10,30,0.75) 0%, transparent 55%);
  text-decoration: none;
}
.kredoo-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #1034A6;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.2s ease;
}
.kredoo-iframe-overlay:hover .kredoo-visit-btn {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Kredoo blog iframe embed card */
.kredoo-blog-iframe-card {
  border-radius: 16px;
  overflow: hidden;
  margin: 48px 0;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.kredoo-blog-iframe-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f0f0f0;
  border-bottom: 1px solid var(--border);
}
.kredoo-blog-iframe-dot { width: 9px; height: 9px; border-radius: 50%; }
.kredoo-blog-iframe-dot:nth-child(1) { background: #FF5F57; }
.kredoo-blog-iframe-dot:nth-child(2) { background: #FEBC2E; }
.kredoo-blog-iframe-dot:nth-child(3) { background: #28C840; }
.kredoo-blog-iframe-url {
  flex: 1;
  margin-left: 8px;
  font-size: 12px;
  color: #666;
  font-family: ui-monospace, Menlo, monospace;
}
.kredoo-blog-iframe-wrap {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.kredoo-blog-iframe {
  width: 167%;
  height: 700px;
  border: none;
  display: block;
  transform: scale(0.6);
  transform-origin: top left;
  pointer-events: none;
}
.kredoo-blog-iframe-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(to top, rgba(15,15,15,0.6) 0%, transparent 60%);
  text-decoration: none;
}
.kredoo-blog-visit-btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kredoo-blog-iframe-link:hover .kredoo-blog-visit-btn {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,79,216,0.4);
}

.tw-cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.82em;
  background: var(--accent);
  vertical-align: middle;
  border-radius: 1px;
  margin-left: 3px;
  animation: tw-blink 0.72s step-end infinite;
}
@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---------- Clip-path image reveal ---------- */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.clip-reveal.in { clip-path: inset(0 0% 0 0); }

/* ---------- Instagram reel grid ---------- */
.ig-reels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 48px;
  align-items: start;
}
.ig-reel-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  min-height: 480px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ig-reel-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -8px rgba(15,15,15,0.15);
}
.ig-reel-wrap .instagram-media {
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
@media (max-width: 1100px) {
  .ig-reels-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .ig-reels-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Blog list (horizontal) ---------- */
.blog-list { margin-top: 56px; }
.blog-list-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.blog-list-item:first-child { border-top: 1px solid var(--border); }
.blog-list-item .cover {
  aspect-ratio: 3/2;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-list-item .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-list-item:hover .cover img { transform: scale(1.05); }
.blog-list-item .meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.blog-list-item h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.blog-list-item:hover h3 { color: var(--accent); }
.blog-list-item .excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 18px;
}
@media (max-width: 760px) {
  .blog-list-item { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Blog article page ---------- */
.blog-wrap { max-width: 760px; margin: 0 auto; padding: 0 40px; }
.blog-hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  border-radius: 16px;
  margin: 40px 0 56px;
}
.blog-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-meta-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.blog-pill {
  background: rgba(27,79,216,0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.blog-byline { font-size: 13px; color: var(--muted); }
.blog-dot { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; display: inline-block; }
.blog-article-title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.07;
  margin-bottom: 24px;
}
.blog-lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 48px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.blog-body h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 52px 0 16px;
  line-height: 1.15;
}
.blog-body h3 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
}
.blog-body p {
  font-size: 17px;
  line-height: 1.8;
  color: #3C3C3C;
  margin-bottom: 22px;
}
.blog-body ul, .blog-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.blog-body li {
  font-size: 17px;
  line-height: 1.75;
  color: #3C3C3C;
  margin-bottom: 10px;
}
.blog-callout {
  background: rgba(27,79,216,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 22px 28px;
  margin: 36px 0;
}
.blog-callout p { margin: 0; font-size: 16px; color: var(--text); line-height: 1.65; }
.blog-divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.blog-share {
  background: var(--card);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-top: 64px;
}
.blog-share h3 { font-family: var(--display); font-size: 28px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.blog-share p { font-size: 16px; margin-bottom: 24px; }
@media (max-width: 760px) {
  .blog-wrap { padding: 0 20px; }
  .blog-lede { font-size: 18px; }
}

/* ---------- Kredoo flagship section ---------- */
.kredoo-section {
  background: #0A0A0A;
  position: relative;
  overflow: hidden;
}
.kredoo-section::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}
.kredoo-section::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.08) 0%, transparent 70%);
  bottom: -100px; left: -50px;
  pointer-events: none;
}
.kredoo-flagship {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.kredoo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.kredoo-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse-green 2s ease infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}
.kredoo-wordmark {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.kredoo-wordmark span { color: #93C5FD; font-style: italic; }
.kredoo-tagline {
  font-size: 19px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 32px;
  line-height: 1.5;
  max-width: 440px;
}
.kredoo-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 36px;
}
.kredoo-feat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 18px 20px;
  transition: background 0.25s, border-color 0.25s;
}
.kredoo-feat:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.25);
}
.kredoo-feat-icon { font-size: 20px; margin-bottom: 8px; }
.kredoo-feat h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.kredoo-feat p { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.6); margin: 0; }
.kredoo-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.kredoo-stat { text-align: center; flex: 1; }
.kredoo-stat-num {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.kredoo-stat-label { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; }
.kredoo-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.kredoo-cta-row .btn-white {
  background: #fff;
  color: var(--accent);
  border: 1px solid #fff;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.kredoo-cta-row .btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.kredoo-cta-row .btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.kredoo-cta-row .btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* Kredoo CSS dashboard mockup */
.kredoo-mockup {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}
.kredoo-mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.kredoo-mockup-dot { width: 9px; height: 9px; border-radius: 50%; }
.kd1 { background: #FF5F57; }
.kd2 { background: #FEBC2E; }
.kd3 { background: #28C840; }
.kredoo-mockup-title {
  flex: 1;
  margin-left: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.kredoo-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
}
.kredoo-col-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
  padding-left: 2px;
}
.kl-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
}
.kl-name { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 2px; }
.kl-co { font-size: 10px; color: rgba(255,255,255,0.45); margin-bottom: 5px; }
.kl-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}
.kt-new    { background: rgba(96,165,250,0.2); color: #93C5FD; }
.kt-hot    { background: rgba(248,113,113,0.2); color: #FCA5A5; }
.kt-warm   { background: rgba(251,191,36,0.2);  color: #FCD34D; }
.kt-booked { background: rgba(74,222,128,0.2);  color: #86EFAC; }

.kredoo-notif {
  margin: 0 16px 16px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #86EFAC;
}
.kredoo-notif-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  animation: pulse-green 2s ease infinite;
}

@media (max-width: 960px) {
  .kredoo-flagship { grid-template-columns: 1fr; gap: 48px; }
  .kredoo-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .kredoo-features { grid-template-columns: 1fr; }
  .kredoo-stats { flex-direction: column; gap: 12px; }
}

/* ── Instagram Reels Premium Section ─────────────────────── */
.ig-section {
  background: #0A0A0A;
  padding: 100px 0;
}
.ig-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.tag-light {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.12);
}
.ig-embeds-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: start;
}
.ig-embed-card {
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ig-embed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.ig-embed-card .instagram-media {
  border-radius: 12px !important;
  overflow: hidden;
}
.ig-follow-row {
  margin-top: 52px;
  text-align: center;
}
.ig-follow-btn {
  color: rgba(255,255,255,0.75) !important;
  border-color: rgba(255,255,255,0.2) !important;
  font-size: 15px;
  padding: 14px 32px;
}
.ig-follow-btn:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,0.6) !important;
  background: rgba(255,255,255,0.06) !important;
}
@media (max-width: 1200px) {
  .ig-embeds-grid { grid-template-columns: repeat(3, 1fr); }
  .ig-embed-card:nth-child(4), .ig-embed-card:nth-child(5) { display: none; }
}
@media (max-width: 720px) {
  .ig-embeds-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-embed-card:nth-child(3) { display: none; }
}

/* ── Reel iframe autoplay embeds ──────────────────────────── */
.reel-media.ig-reel { overflow: hidden; }
.reel-media.ig-reel::before { opacity: 0 !important; }
.reel-media.ig-reel .reel-iframe {
  position: absolute;
  top: -58px;
  left: 0;
  width: 100%;
  height: calc(100% + 112px);
  border: none;
  pointer-events: none;
}
.reel-media.ig-reel .reel-play { z-index: 3; }

/* ── Hero animations — page-specific ─────────────────────── */
.hero-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  animation: heroTagFloat 5s ease-in-out infinite;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-tag:nth-child(2) { animation-delay: 0.5s; }
.hero-tag:nth-child(3) { animation-delay: 1.0s; }
.hero-tag:nth-child(4) { animation-delay: 1.5s; }
.hero-tag:nth-child(5) { animation-delay: 2.0s; }
.hero-tag:nth-child(6) { animation-delay: 2.5s; }
@keyframes heroTagFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.hero-stat-row {
  display: flex;
  gap: 48px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stat-item { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family: var(--display);
  font-size: 52px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--body);
  margin-top: 6px;
  font-weight: 600;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  animation: heroTagFloat 6s ease-in-out infinite;
}
.hero-badge .badge-icon { font-size: 18px; }
.hero-badge .badge-sub { font-size: 11px; color: var(--body); display: block; margin-top: 1px; }
.hero-badge strong { font-weight: 600; display: block; line-height: 1; }
.hero-badge:nth-child(2) { animation-delay: 0.7s; }
.hero-badge:nth-child(3) { animation-delay: 1.4s; }

/* contact page response badge */
.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text);
  animation: heroTagFloat 5s ease-in-out infinite;
}
.response-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 2s ease infinite;
  flex-shrink: 0;
}

/* ── Kredoo logo SVG ──────────────────────────────────────── */
.kredoo-logo-svg {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

/* ── Generic Arkin character — reused across pages ──────── */
.arkin-char-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}
.arkin-char {
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 36px rgba(0,0,0,0.13));
  animation: arkinFloat 5s ease-in-out infinite;
}
.arkin-char:hover { filter: drop-shadow(0 28px 44px rgba(0,0,0,0.18)); }
