/* ============================================================================
   KBT — Cinematic landing design system
   Brand-faithful: deep navy + teal + cream, Kufam typography.
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #07061A;
  --navy-800: #0E0D29;
  --navy-700: #141238;
  --navy-600: #1B1A47;
  --navy-500: #242258; /* primary */
  --navy-400: #3A3B7A;
  --navy-300: #5D5D9C;
  --navy-200: #9A9BC4;
  --navy-100: #D5D8EC;
  --navy-50:  #EEF0F8;

  --teal-900: #04253B;
  --teal-700: #0A4D7B;
  --teal-500: #0F75BC; /* secondary */
  --teal-300: #3F95CE;
  --teal-100: #BFDCEF;

  --gold-light: #E2C778;
  --gold-main:  #C9A24A;
  --gold-dark:  #9A7B2F;

  --cream-50: #FCFBF7;
  --cream-100: #F7F4EC;

  --paper: #ffffff;
  --paper-warm: #FCFBF7;
  --text: #07061A;
  --text-muted: #5D5D9C;
  --text-soft: #9A9BC4;

  /* type */
  --font-display: "Kufam", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Kufam", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --font-hebrew:  "Cardo", "Frank Ruhl Libre", serif;

  /* rhythm */
  --rule: 1px;
  --gutter: clamp(20px, 4vw, 64px);
  --max-w: 1440px;

  /* motion */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-stiff: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* NOTE: do NOT set overflow-x:hidden on body/html — it turns body into a
     scroll container and breaks `position: sticky` on every descendant. */
}

/* utility classes ---------------------------------------------------------- */

.editorial-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hairline {
  display: block;
  height: var(--rule);
  border: 0;
  background: currentColor;
  opacity: 0.55;
}

.brand-rule {
  display: block;
  height: var(--rule);
  background: linear-gradient(90deg, transparent, var(--teal-500) 18%, var(--teal-500) 82%, transparent);
  border: 0;
  opacity: 0.85;
}

/* Backwards-compat alias for existing component code */
.gold-rule {
  display: block;
  height: var(--rule);
  background: linear-gradient(90deg, transparent, var(--teal-500) 18%, var(--teal-500) 82%, transparent);
  border: 0;
  opacity: 0.85;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.serif-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 0.96;
}

.drop-cap::first-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.6em;
  line-height: 0.82;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--navy-500);
}

.hebrew-watermark {
  font-family: var(--font-hebrew);
  font-weight: 400;
  color: var(--navy-500);
  opacity: 0.05;
  user-select: none;
  pointer-events: none;
  line-height: 0.9;
}

::selection {
  background: var(--teal-100);
  color: var(--navy-700);
}

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.snap-lane {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 var(--gutter);
}
.snap-lane::-webkit-scrollbar { display: none; }
.snap-lane > * { scroll-snap-align: start; flex: 0 0 auto; }

.ink-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 600ms var(--ease-soft);
}
.ink-link:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

/* ============================================================================
   Cinematic hero motion — slow Ken Burns on the photo + drifting petals.
   Combine well with the framer-motion scroll transforms applied in JSX.
   ========================================================================== */

@keyframes kenBurns {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  50%  { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
  100% { transform: scale(1.18) translate3d(1%, -2%, 0); }
}

@keyframes driftSlow {
  0%   { transform: translate3d(0, 0, 0); opacity: 0.55; }
  50%  { transform: translate3d(-2%, -1.5%, 0); opacity: 0.7; }
  100% { transform: translate3d(2%, -3%, 0); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
