/* =============================================
   KIZA — global.css
   Blue editorial theme, shared across all pages
   ============================================= */

:root {
  /* Palette */
  --bg:           #F2F6FB;
  --bg-soft:      #E8EEF7;
  --bg-mid:       #DAE3F0;
  --navy:         #152238;
  --navy-soft:    #1E3250;
  --blue:         #2C5F8A;
  --blue-light:   #4080B0;
  --blue-dim:     #1A4068;
  --slate:        #4A6080;
  --muted:        #7A90A8;
  --muted-light:  #9AAEC2;
  --white:        #FFFFFF;
  --border:       rgba(21, 34, 56, 0.1);
  --border-blue:  rgba(44, 95, 138, 0.22);

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; cursor: none; }

body {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); }

/* ── CURSOR ── */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--blue); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}
.cursor-follower {
  position: fixed; width: 30px; height: 30px;
  border: 1px solid rgba(44, 95, 138, 0.35); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), opacity 0.3s;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 52px;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(242, 246, 251, 0.93);
  backdrop-filter: blur(16px);
  padding: 14px 52px;
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.35rem;
  letter-spacing: 0.15em; color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 6px 14px;
  transition: color 0.2s, background 0.2s;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--blue); background: rgba(44, 95, 138, 0.07); }
.nav-links a.nav-active {
  color: var(--blue);
  background: rgba(44, 95, 138, 0.1);
}

/* dropdown parent */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 5px; cursor: pointer;
}
.nav-dropdown-toggle svg { width: 10px; height: 10px; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 2px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(21, 34, 56, 0.1);
  min-width: 210px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
/* Invisible bridge fills the gap between toggle and menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
/* Typography parity with other nav links */
.nav-dropdown-toggle {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px; border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-toggle:hover { color: var(--blue); background: rgba(44,95,138,0.07); }
.nav-dropdown-toggle.nav-active { color: var(--blue); background: rgba(44,95,138,0.1); }
.nav-dropdown-menu a {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.nav-dropdown-menu a:hover { color: var(--blue); background: rgba(44,95,138,0.05); }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.68rem;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a .submenu-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}

/* ── HAMBURGER & MOBILE MENU ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--navy); transition: all 0.3s var(--ease-out);
}
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--bg); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-menu.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-link {
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  padding: 12px 28px; border: 1px solid var(--border);
  width: 240px; text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mobile-link:hover, .mobile-link.mobile-active {
  background: rgba(44, 95, 138, 0.08); color: var(--blue); border-color: var(--border-blue);
}
.mobile-divider {
  width: 240px; height: 1px; background: var(--border); margin: 8px 0;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px;
  background: var(--blue); color: var(--white);
  font-family: var(--font-mono); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: none;
  transition: background 0.22s, transform 0.2s var(--ease-out);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; padding: 13px 30px;
  background: transparent; color: var(--navy);
  border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: border-color 0.22s, color 0.22s, transform 0.2s var(--ease-out);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ── SECTION COMMONS ── */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700; line-height: 1.1; color: var(--navy);
}
.section-title em { font-style: italic; color: var(--blue); }

/* ── DOTS ── */
.dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }
.dot.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 0; background: var(--bg-soft);
}
.marquee-track {
  display: flex; gap: 30px; white-space: nowrap;
  animation: marquee 28s linear infinite; width: max-content;
}
.marquee-track span {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.marquee-track .sep { color: var(--blue); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 28px 52px; background: var(--bg); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.1rem; letter-spacing: 0.15em; color: var(--navy);
}
.footer-copy {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.08em; color: var(--muted);
}
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 4px 8px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }

/* ── FOOTER EXTENDED (3-col: logo | copy+legal | links+credit) ── */
.footer-inner { align-items: flex-start; }
.footer-center { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.footer-legal { display: flex; align-items: center; gap: 8px; }
.footer-legal a {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.footer-legal a:hover { color: var(--blue); }
.footer-legal-sep { color: var(--muted); font-size: 0.6rem; }
.footer-right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-credit {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.06em; color: var(--muted);
}
.footer-credit a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: var(--blue); }

/* ── SCROLL REVEAL ── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

.reveal-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-card.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(var(--blue), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
.scroll-indicator span {
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.15em; color: var(--muted); writing-mode: vertical-lr;
}

/* ── PAGE HERO (reusable across inner pages) ── */
.page-hero {
  padding: 130px 52px 80px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(44, 95, 138, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 95, 138, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; max-width: 680px; }
.page-hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900; line-height: 1.0; color: var(--navy);
  margin-bottom: 24px;
}
.page-hero-title em { font-style: italic; color: var(--blue); }
.page-hero-sub {
  font-size: 1rem; color: var(--slate);
  line-height: 1.75; max-width: 520px;
}

/* ── BACK LINK ── */
.back-link-wrap { padding: 28px 52px; border-bottom: 1px solid var(--border); }
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.back-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.back-link:hover { color: var(--blue); }
.back-link:hover svg { transform: translateX(-4px); }

/* ── CONTENT BLOCK ── */
.content-block { padding: 80px 52px; }
.content-block + .content-block { border-top: 1px solid var(--border); }
.content-block.bg-soft { background: var(--bg-soft); }
.content-block.bg-mid  { background: var(--bg-mid); }

/* ── TWO-COL LAYOUT ── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}
.two-col.wide-left { grid-template-columns: 1.4fr 1fr; }
.two-col.wide-right { grid-template-columns: 1fr 1.4fr; }

/* ── PROSE ── */
.prose p {
  font-size: 0.97rem; color: var(--slate);
  line-height: 1.8; margin-bottom: 20px;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--navy); font-weight: 500; }

/* ── TAG LIST ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border);
  padding: 4px 10px;
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--border-blue); color: var(--blue); }
.tag.tag-accent { border-color: var(--border-blue); color: var(--blue); }

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; margin-bottom: 14px;
}
.status-active   { background: rgba(30, 120, 80, 0.1);  color: #1a6644; }
.status-writing  { background: rgba(44, 95, 138, 0.1);  color: var(--blue); }
.status-dev      { background: rgba(80, 50, 140, 0.08); color: #5a3c9a; }
.status-incoming { background: rgba(21, 34, 56, 0.07);  color: var(--slate); }

/* ── DIVIDER ── */
.divider { width: 40px; height: 2px; background: var(--blue); margin: 28px 0; }
.divider.full { width: 100%; height: 1px; background: var(--border); }

/* ── CTA BAND ── */
.cta-band {
  padding: 80px 52px;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-band-text h3 {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  line-height: 1.2; margin-bottom: 10px; color: var(--white);
}
.cta-band-text p { font-size: 0.92rem; color: rgba(255,255,255,0.6); }
.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; background: var(--white); color: var(--navy);
  font-family: var(--font-mono); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; flex-shrink: 0;
  transition: background 0.22s, transform 0.2s var(--ease-out);
}
.btn-white:hover { background: var(--bg); transform: translateY(-2px); }
.btn-white svg { width: 16px; height: 16px; transition: transform 0.22s var(--ease-out); }
.btn-white:hover svg { transform: translate(3px, -3px); }

/* ── LINK ARROW ── */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); text-decoration: none;
  border-bottom: 1px solid rgba(44, 95, 138, 0.25);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.22s var(--ease-out); }
.link-arrow:hover { opacity: 0.7; }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .page-hero { padding: 110px 24px 60px; }
  .back-link-wrap { padding: 20px 24px; }
  .content-block { padding: 60px 24px; }
  .two-col, .two-col.wide-left, .two-col.wide-right { grid-template-columns: 1fr; gap: 44px; }
  .cta-band { padding: 56px 24px; flex-direction: column; align-items: flex-start; }
  .footer { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-center { align-items: flex-start; }
  .footer-right { align-items: flex-start; }
}
