/* ===========================================================
   KZ·space — luxury glass/gradient one-page site
   =========================================================== */

:root {
  --bg: #08070c;
  --bg-elev: #0d0c14;
  --ink: #f3efe8;
  --ink-dim: #b8b2c4;
  --ink-faint: #756f85;
  --gold: #e9c98f;
  --gold-soft: #f0dcb0;
  --violet: #8a7bd8;
  --rose: #d89bb0;
  --line: rgba(243, 239, 232, 0.09);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-dim); }

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

::selection { background: var(--gold); color: #1a1420; }

/* ---------- ambient fx ---------- */

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(233, 201, 143, 0.06) 0%, rgba(138, 123, 216, 0.04) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}
.cursor-glow.active { opacity: 1; }

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 16px 0;
  background: rgba(8, 7, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.logo span {
  background: linear-gradient(120deg, var(--gold-soft), var(--violet) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
  font-style: italic;
}
.logo-sm { font-size: 1.1rem; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 0.88rem;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
  position: relative;
}
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.main-nav a:not(.nav-cta):hover { color: var(--ink); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav-cta:hover { border-color: rgba(233, 201, 143, 0.4); background: var(--glass-strong); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 110px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.orb-a { width: 520px; height: 520px; top: -120px; right: -80px; background: radial-gradient(circle, var(--violet), transparent 70%); animation: float-a 22s ease-in-out infinite; }
.orb-b { width: 420px; height: 420px; bottom: -140px; left: -100px; background: radial-gradient(circle, var(--gold), transparent 70%); opacity: 0.35; animation: float-b 26s ease-in-out infinite; }
.orb-c { width: 340px; height: 340px; top: 40%; left: 55%; background: radial-gradient(circle, var(--rose), transparent 70%); opacity: 0.28; animation: float-c 30s ease-in-out infinite; }

@keyframes float-a { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-60px, 50px); } }
@keyframes float-b { 0%,100% { transform: translate(0,0); } 50% { transform: translate(50px, -40px); } }
@keyframes float-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px, -60px) scale(1.1); } }

.grain-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243,239,232,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,239,232,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 75%);
}

.hero-inner { position: relative; z-index: 3; max-width: 780px; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  font-weight: 500;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-soft) 10%, var(--violet) 60%, var(--rose) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 560px;
  color: var(--ink-dim);
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
}
.btn-primary {
  color: #17121f;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 60%, var(--rose));
  font-weight: 500;
  box-shadow: 0 12px 32px -8px rgba(233, 201, 143, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -8px rgba(233, 201, 143, 0.55); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }

.scroll-cue {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 3;
}
.scroll-cue span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-soft);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { top: 7px; opacity: 1; } 70% { top: 18px; opacity: 0; } 100% { top: 18px; opacity: 0; } }

/* ---------- sections shared ---------- */

.section { position: relative; padding: 150px 0; }
.section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  max-width: 640px;
  margin-bottom: 60px;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- glass card ---------- */

.glass-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}

/* ---------- services grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card-grid .glass-card {
  padding: 34px 30px;
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.5s var(--ease);
}
.card-grid .glass-card:hover {
  border-color: rgba(233, 201, 143, 0.3);
  box-shadow: 0 30px 70px -20px rgba(138, 123, 216, 0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

.card-icon {
  width: 48px; height: 48px;
  margin-bottom: 22px;
}
.card-icon svg { width: 100%; height: 100%; }

.card-grid h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-grid p { font-size: 0.94rem; margin-bottom: 0; }

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline-item {
  padding: 34px 26px 34px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.timeline-item:last-child { border-right: none; }

.timeline-index {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2.1rem;
  background: linear-gradient(120deg, var(--gold-soft), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.timeline-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.timeline-item p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- values ---------- */

.values-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}
.values-copy h2 { margin-bottom: 20px; }

.values-list { display: flex; flex-direction: column; gap: 34px; }
.value-item { display: flex; gap: 22px; align-items: flex-start; }
.value-mark {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-soft);
  flex: none;
  padding-top: 2px;
}
.value-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-item p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- contact ---------- */

.contact-panel {
  padding: 70px 60px;
  text-align: center;
}
.contact-panel .eyebrow { justify-content: center; }
.contact-panel h2 { max-width: none; margin: 0 auto 20px; }
.contact-panel .hero-lead { margin: 0 auto 50px; text-align: center; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s ease, transform 0.3s var(--ease), background 0.3s ease;
}
a.contact-item:hover {
  border-color: rgba(233, 201, 143, 0.35);
  background: rgba(255,255,255,0.045);
  transform: translateY(-3px);
}
.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.contact-value { font-size: 1rem; color: var(--ink); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 34px 0; position: relative; z-index: 3; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.82rem; color: var(--ink-faint); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .main-nav { gap: 20px; }
  .main-nav a:not(.nav-cta) { display: none; }
  .values-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline-item { border-right: none; border-bottom: 1px solid var(--line); }
  .contact-panel { padding: 50px 24px; }
}

@media (max-width: 540px) {
  .wrap { padding: 0 22px; }
  .section { padding: 100px 0; }
  .timeline { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .reveal { transition: opacity 0.3s ease; transform: none; }
  .scroll-cue span { animation: none; }
}
