/* ==========================================================================
   CONTENT KEEDA TYPOGRAPHY SYSTEM
   Exclusively Outfit (Google Fonts Geometric Sans-Serif)
   ========================================================================== */

:root {
  /* Color Palette — Pure Canvas matching 3D Frames */
  --bg-canvas: #ffffff;
  --bg-canvas-warm: #faf9f6;
  --bg-card: rgba(255, 255, 255, 0.75);
  
  --color-text-primary: #111111;
  --color-text-secondary: #58554e;
  --color-text-muted: #8c897f;
  --color-text-light: #bcb9ae;
  
  --border-subtle: rgba(17, 17, 17, 0.08);
  --border-medium: rgba(17, 17, 17, 0.16);

  /* Content Keeda Signature Colors (Extracted directly from Brand Frames & Logo) */
  --ck-orange: #e45919;
  --ck-orange-bright: #ff5f1f;
  --ck-orange-neon: #ff4500;
  --ck-orange-soft: rgba(228, 89, 25, 0.12);
  --ck-orange-glow: rgba(228, 89, 25, 0.40);
  --ck-cream: #cabd9c;
  --ck-cream-light: #f5eedf;
  --ck-black: #111111;
  --ck-charcoal: #1e1d1b;
  --ck-white: #ffffff;

  /* Backward-compatible aliases */
  --brand-orange: var(--ck-orange);
  --brand-emerald: var(--ck-orange);
  --brand-teal: #148b81;
  --brand-gold: #d4983b;
  --brand-amber: var(--ck-orange-bright);
  --brand-dusk: #532563;

  /* Typography Stacks: Exclusively Outfit across the entire website */
  --font-outfit: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hero: var(--font-outfit);
  --font-keeda: var(--font-outfit);
  --font-headline: var(--font-outfit);
  --font-impact: var(--font-outfit);
  --font-display: var(--font-outfit);
  --font-rougho: var(--font-outfit);
  --font-rougho-stamp: var(--font-outfit);
  --font-rougho-outline: var(--font-outfit);
  --font-serif: var(--font-outfit);
  --font-sans: var(--font-outfit);

  /* Transitions & Easings */
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  /* Dimensions */
  --header-height: 80px;
}

/* CSS Reset & Foundation */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background-color: var(--bg-canvas);
  color: var(--color-text-primary);
  font-family: var(--font-outfit);
  font-size: 16px;
  overflow-x: clip;
  scroll-behavior: auto;
  user-select: none;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-canvas);
  font-family: var(--font-outfit);
  overflow-x: clip;
  cursor: default;
}

body.loading {
  opacity: 0;
  pointer-events: none;
}

body.ready {
  opacity: 1;
  transition: opacity 0.6s var(--ease-luxury);
}

/* Tactile Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient Subtle Lighting Glow */
.ambient-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 89, 25, 0.035) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 1;
  filter: blur(60px);
}

/* ==========================================================================
   Editorial Navigation / Header Frame
   ========================================================================== */

.editorial-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--header-height);
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
  pointer-events: none;
}

.editorial-header > * {
  pointer-events: auto;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.agency-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

.brand-orange-text {
  color: var(--ck-orange);
  font-weight: 800;
}

.agency-edition {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}



.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease-luxury);
}

.menu-btn:hover {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.95);
}

.menu-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-text-primary);
}

.menu-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-lines .line {
  width: 18px;
  height: 1.5px;
  background-color: var(--color-text-primary);
  transition: transform 0.3s var(--ease-luxury);
}

.menu-btn:hover .line:first-child {
  transform: translateX(3px);
}
.menu-btn:hover .line:last-child {
  transform: translateX(-3px);
}

/* ==========================================================================
   Scroll Canvas & Pinned Hero Stage
   ========================================================================== */

.scroll-canvas {
  position: relative;
  width: 100%;
}

/* Pinned Hero Track: Provides physical scroll distance for animation + pause buffer */
.hero-track {
  position: relative;
  width: 100%;
  height: calc(100vh + 3200px);
}

/* Sticky Hero Stage: Stays 100% PAUSED / PINNED in viewport while scrolling through hero-track */
.hero-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  overflow: hidden;
  background-color: var(--bg-canvas);
}

.frame-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 5;
  background-color: #ffffff;
}

.stage-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(228, 89, 25, 0.05) 0%, rgba(255, 255, 255, 0) 65%);
  transition: opacity 0.5s ease;
}

.composition-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 15;
}

/* ==========================================================================
   Scene 4: Asymmetric Editorial Typography
   ========================================================================== */

.editorial-phrase {
  position: absolute;
  z-index: 15;
  opacity: 0;
  pointer-events: auto;
  will-change: transform, opacity;
}

/* Top-Left: "We’re" */
.editorial-phrase.top-left {
  top: clamp(135px, 18vh, 185px);
  left: clamp(24px, 6vw, 100px);
  max-width: 380px;
}

.phrase-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.keeda-tag-badge {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ffffff;
  background-color: var(--ck-black);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  text-transform: uppercase;
}

.meta-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

.meta-dash {
  width: 20px;
  height: 1px;
  background-color: var(--border-medium);
}

.meta-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ck-orange);
}

.main-lead-text {
  font-family: var(--font-impact);
  font-size: clamp(3.6rem, 7.5vw, 7.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--ck-black);
  text-transform: uppercase;
  margin: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.05));
}

/* Bottom-Right: "A [BOLD] AGENCY" */
.editorial-phrase.bottom-right {
  bottom: clamp(60px, 9vh, 120px);
  right: clamp(24px, 6vw, 100px);
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.statement-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.statement-line-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.statement-lead {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ck-black);
  letter-spacing: -0.02em;
}

.blank-word-cycler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--ck-orange);
  color: #ffffff;
  padding: 4px 18px 6px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s var(--ease-luxury), background-color 0.2s ease;
  user-select: none;
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
}

.blank-word-cycler:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

/* Fast professional kinetic shutter wipe animations (left to right width 0) */
.blank-word-cycler.wipe-out {
  animation: cyclerWipeOut 0.18s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.blank-word-cycler.wipe-in {
  animation: cyclerWipeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cyclerWipeOut {
  0% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes cyclerWipeIn {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.cycler-word {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #ffffff;
  min-width: 130px;
  text-align: center;
  text-shadow: none;
}

.statement-line-bottom {
  display: flex;
  align-items: baseline;
  margin-top: 4px;
}

.statement-tail {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ck-black);
  text-transform: uppercase;
}

.statement-subtext {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 0;
  max-width: 400px;
}

/* ==========================================================================
   Blank Space Section (Testing & Verification Area After Hero)
   ========================================================================== */

.blank-space-section {
  position: relative;
  width: 100vw;
  min-height: 150vh;
  background-color: var(--bg-canvas-warm);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 100px clamp(24px, 5vw, 80px) 140px;
  border-top: 2px dashed var(--border-medium);
}

.blank-space-container {
  width: 100%;
  max-width: 960px;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-medium);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 50px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.blank-tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--ck-orange);
  text-transform: uppercase;
  background: var(--ck-orange-soft);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  display: inline-block;
}

.blank-headline {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
  max-width: 720px;
}

.blank-description {
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin-bottom: 36px;
}

.test-scroll-indicator-widget {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.widget-arrow {
  font-size: 1.1rem;
  color: var(--ck-orange);
  animation: bounceUp 1.8s infinite ease-in-out;
}

.widget-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

.test-markers-container {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.test-marker-card {
  padding: 24px 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.marker-badge {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--ck-orange);
  text-transform: uppercase;
}

.marker-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

@keyframes bounceUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ==========================================================================
   Custom Editorial Cursor
   ========================================================================== */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  margin-left: -3px;
  background-color: var(--ck-orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-100px, -100px, 0);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  border: 1px solid rgba(228, 89, 25, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.cursor-ring.hovered {
  width: 56px;
  height: 56px;
  margin-top: -28px;
  margin-left: -28px;
  border-color: var(--ck-orange);
  background-color: var(--ck-orange-soft);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .editorial-phrase.top-left {
    top: 125px;
    left: 32px;
  }
  .editorial-phrase.bottom-right {
    bottom: 80px;
    right: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .editorial-phrase.top-left {
    top: 100px;
    left: 20px;
    max-width: 280px;
  }

  .main-lead-text {
    font-size: 3.2rem;
  }

  .editorial-phrase.bottom-right {
    bottom: 74px;
    right: 20px;
    max-width: 300px;
  }

  .statement-lead, .statement-tail, .cycler-word {
    font-size: 1.8rem;
  }

  .statement-subtext {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }

  .stage-footer .footer-center {
    display: none;
  }

  .stage-footer {
    padding: 0 20px;
  }

  .cursor-dot, .cursor-ring {
    display: none; /* Disable custom cursor on touch devices */
  }
}
