/* =========================================================
   KYBO — Demo website styles (DARK MOOD)
   Built on official KYBO design system (tokens.css).
   Anthracite-dominant, sand accents, scroll-driven motion.
   ========================================================= */

/* Override design-system display token — drop Goldman, use Montserrat ExtraBold */
:root {
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--anthracite-700);
  color: var(--cream-200);
}

body {
  font-family: var(--font-body);
  background: var(--anthracite-700);
  color: var(--cream-200);
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; border-bottom: 0; }

/* Anchor offset for in-page nav */
section[id] { scroll-margin-top: 80px; }

/* Selection */
::selection { background: var(--sand-500); color: var(--anthracite-700); }

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

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 40px;
}
@media (max-width: 720px) {
  .container { padding-inline: 24px; }
}

.section { padding: 140px 0; position: relative; }
@media (max-width: 720px) {
  .section { padding: 80px 0; }
}

.section--anthracite { background: var(--anthracite-700); }
.section--anthracite-deep { background: var(--anthracite-800); }
.section--anthracite-soft { background: var(--anthracite-600); }
.section--anthracite-light { background: var(--anthracite-500); }

/* Hairline divider between dark sections */
.section--anthracite + .section--anthracite,
.section--anthracite-deep + .section--anthracite,
.section--anthracite + .section--anthracite-deep,
.section--anthracite-soft + .section--anthracite,
.section--anthracite + .section--anthracite-soft {
  border-top: 1px solid rgba(245, 243, 239, 0.05);
}

h1, h2, h3, h4 {
  color: var(--cream-200);
  font-family: var(--font-heading);
  margin: 0;
}

p { color: rgba(245, 243, 239, 0.72); margin: 0 0 16px; }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand-300);
  margin-bottom: 20px;
  display: inline-block;
}

/* ---------- HEADER ---------- */
.kybo-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(19, 21, 24, 0.4);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(245, 243, 239, 0.06);
  transition: background 240ms cubic-bezier(.2,.6,.2,1), border-color 240ms cubic-bezier(.2,.6,.2,1);
}
.kybo-header.is-scrolled {
  background: rgba(19, 21, 24, 0.85);
  border-bottom-color: rgba(245, 243, 239, 0.1);
}
.kybo-header__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.kybo-header__logo { display: inline-flex; align-items: center; }
.kybo-header__logo img {
  height: 22px;
  filter: brightness(0) invert(1);
}
.kybo-header__nav { display: flex; gap: 36px; }
.kybo-header__nav a {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  white-space: nowrap;
  color: rgba(245, 243, 239, 0.6);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 240ms cubic-bezier(.2,.6,.2,1), border-bottom-color 240ms cubic-bezier(.2,.6,.2,1);
}
.kybo-header__nav a:hover { color: var(--cream-200); }
.kybo-header__nav a.is-active {
  color: var(--cream-200);
  border-bottom-color: var(--sand-400);
}
.kybo-header__cta {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  white-space: nowrap;
  background: var(--sand-500); color: var(--anthracite-700);
  padding: 12px 22px; border: 0; border-radius: 4px;
  transition: background 240ms cubic-bezier(.2,.6,.2,1);
}
.kybo-header__cta:hover { background: var(--sand-400); }
.kybo-header__burger {
  display: none;
  width: 32px; height: 32px;
  background: none; border: 0;
  position: relative;
}
.kybo-header__burger::before,
.kybo-header__burger::after {
  content: '';
  position: absolute; left: 6px; right: 6px;
  height: 1.5px; background: var(--cream-200);
  transition: transform 240ms cubic-bezier(.2,.6,.2,1), top 240ms cubic-bezier(.2,.6,.2,1);
}
.kybo-header__burger::before { top: 12px; }
.kybo-header__burger::after { top: 19px; }
.kybo-header.is-open .kybo-header__burger::before { top: 15px; transform: rotate(45deg); }
.kybo-header.is-open .kybo-header__burger::after { top: 15px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .kybo-header__nav, .kybo-header__cta { display: none; }
  .kybo-header__burger { display: block; }
  .kybo-header.is-open .kybo-header__nav {
    display: flex;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 4px;
    padding: 24px 32px;
    background: var(--anthracite-800);
    border-bottom: 1px solid rgba(245, 243, 239, 0.08);
  }
  .kybo-header.is-open .kybo-header__nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(245, 243, 239, 0.06);
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 240ms cubic-bezier(.2,.6,.2,1), color 240ms cubic-bezier(.2,.6,.2,1), border-color 240ms cubic-bezier(.2,.6,.2,1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn--accent {
  background: var(--sand-500); color: var(--anthracite-700);
}
.btn--accent:hover { background: var(--sand-400); }
.btn--ghost {
  background: transparent;
  color: var(--cream-200);
  border-color: rgba(245, 243, 239, 0.3);
}
.btn--ghost:hover { background: rgba(245, 243, 239, 0.08); border-color: var(--cream-200); }
.btn--link {
  background: transparent;
  color: var(--cream-200);
  padding: 10px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--sand-500);
}
.btn--link:hover { color: var(--sand-300); }
.btn .arrow {
  transition: transform 240ms cubic-bezier(.2,.6,.2,1);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--anthracite-900);
}
.hero__image {
  position: absolute; inset: 0;
  background-image: url('assets/Cakovice/Cakovice%2013.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.05) translateY(0);
  will-change: transform;
  filter: brightness(0.65) saturate(0.95) contrast(1.05);
  pointer-events: none;
}
.hero__gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(13, 15, 18, 0.95) 0%, rgba(13, 15, 18, 0.7) 30%, rgba(13, 15, 18, 0.3) 60%, rgba(13, 15, 18, 0.4) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(187, 165, 127, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; width: 100%;
  padding: 120px 40px 96px;
  color: var(--cream-200);
}
.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--sand-300);
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 14px;
}
.hero__eyebrow::before {
  content: ''; width: 40px; height: 1px; background: var(--sand-300);
  display: inline-block;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7.4vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  max-width: 1100px;
  color: var(--cream-200);
  text-wrap: balance;
}
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Negative margins cancel the inner span's padding, so the tight 0.96
     line-height is preserved while the mask box stays tall enough to show
     descenders and diacritics (Czech háček/čárka on bold Montserrat needs
     more headroom than English caps). */
  margin: -0.22em 0 -0.22em;
}
.hero__title .word > span {
  display: inline-block;
  /* Breathing room so the overflow:hidden mask never clips diacritics (top)
     or descenders like j/p/y and the period (bottom). */
  padding: 0.22em 0 0.22em;
  transform: translateY(110%);
}
.hero__lead {
  font-family: var(--font-body); font-weight: 300;
  font-size: 22px; line-height: 1.5;
  color: rgba(245, 243, 239, 0.78);
  margin: 0 0 44px;
  max-width: 540px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; right: 40px; bottom: 48px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-family: var(--font-heading);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(245, 243, 239, 0.5);
}
.hero__scroll-line {
  display: block; width: 1px; height: 64px;
  background: linear-gradient(180deg, var(--sand-300) 0%, transparent 100%);
  transform-origin: top;
  animation: scrollLine 2.4s cubic-bezier(.2,.6,.2,1) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (max-width: 720px) {
  .hero { min-height: 100vh; }
  .hero__inner { padding: 96px 24px 72px; }
  .hero__lead { font-size: 17px; }
  .hero__scroll { right: 24px; bottom: 32px; }
}

/* ---------- BRAND STATEMENT ---------- */
.statement {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.statement__line {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(245, 243, 239, 0.55);
  text-wrap: balance;
}
.statement__line strong {
  font-weight: 600;
  color: var(--cream-200);
}
.statement__line .accent {
  color: var(--sand-300);
  font-weight: 400;
}
.statement__rule {
  width: 56px; height: 1px;
  background: var(--sand-500);
  border: 0;
  margin: 40px auto;
}
.statement__signature {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: rgba(245, 243, 239, 0.5);
}

/* ---------- SECTION HEAD ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}
.section-head__left { max-width: 720px; }
.section-head__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--cream-200);
  text-wrap: balance;
}
.section-head__lead {
  font-family: var(--font-body); font-weight: 300;
  font-size: 18px; line-height: 1.6;
  color: rgba(245, 243, 239, 0.6);
  margin: 28px 0 0;
  max-width: 600px;
}

/* ---------- PROJECT GRID ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .projects { grid-template-columns: 1fr; } }

.project-card {
  background: var(--anthracite-600);
  border: 1px solid rgba(245, 243, 239, 0.06);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 320ms cubic-bezier(.2,.6,.2,1), transform 320ms cubic-bezier(.2,.6,.2,1);
  display: flex;
  flex-direction: column;
  position: relative;
}
.project-card:hover {
  border-color: rgba(187, 165, 127, 0.4);
  transform: translateY(-4px);
}
.project-card__image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  filter: brightness(0.85) saturate(0.9);
  transition: filter 480ms cubic-bezier(.2,.6,.2,1), transform 800ms cubic-bezier(.2,.6,.2,1);
}
.project-card:hover .project-card__image {
  filter: brightness(1) saturate(1);
  transform: scale(1.04);
}
.project-card__tag {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-heading);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  background: rgba(13, 15, 18, 0.82);
  backdrop-filter: blur(8px);
  color: var(--sand-300);
  padding: 6px 12px;
  border: 1px solid rgba(187, 165, 127, 0.3);
  border-radius: 999px;
  z-index: 2;
}
.project-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.project-card__loc {
  font-family: var(--font-heading);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--sand-300);
  margin-bottom: 12px;
}
.project-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px; line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--cream-200);
}
.project-card__tagline {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.55;
  color: rgba(245, 243, 239, 0.55);
  margin: 0 0 24px;
  flex: 1;
}
.project-card__meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(245, 243, 239, 0.45);
  padding-top: 18px;
  border-top: 1px solid rgba(245, 243, 239, 0.08);
}
.project-card__meta .dot { color: rgba(245, 243, 239, 0.25); }

/* ---------- VALUES ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(245, 243, 239, 0.06);
  border: 1px solid rgba(245, 243, 239, 0.06);
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .values { grid-template-columns: 1fr; } }
.value {
  background: var(--anthracite-700);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background 320ms cubic-bezier(.2,.6,.2,1);
}
.value:hover { background: var(--anthracite-600); }
.value__num {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand-400);
  margin-bottom: 24px;
  line-height: 1;
}
.value__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  color: var(--cream-200);
}
.value__text {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.6;
  color: rgba(245, 243, 239, 0.55);
  margin: 0;
}

/* ---------- ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) { .about { grid-template-columns: 1fr; gap: 48px; } }

.about__text { padding-top: 8px; }
.about__lead {
  font-family: var(--font-body); font-weight: 300;
  font-size: 18px; line-height: 1.7;
  color: rgba(245, 243, 239, 0.7);
  margin: 0 0 24px;
}
.about__lead strong { color: var(--sand-300); font-weight: 500; }
.about__rule { width: 48px; height: 1px; background: var(--sand-500); border: 0; margin: 32px 0; }

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 540px) { .founders { grid-template-columns: 1fr; } }
.founder {
  background: var(--anthracite-600);
  border: 1px solid rgba(245, 243, 239, 0.06);
  border-radius: 10px;
  padding: 32px;
  transition: border-color 320ms cubic-bezier(.2,.6,.2,1), background 320ms cubic-bezier(.2,.6,.2,1);
}
.founder:hover {
  border-color: rgba(187, 165, 127, 0.3);
  background: var(--anthracite-500);
}
.founder__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--cream-200);
}
.founder__role {
  font-family: var(--font-heading);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sand-300);
  margin-bottom: 20px;
}
.founder__bio {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.65;
  color: rgba(245, 243, 239, 0.6);
  margin: 0;
}
.founder__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sand-300, #B9A36E);
  color: var(--anthracite-600, #2F3138);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* ---------- STATS ---------- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  border-top: 1px solid rgba(245, 243, 239, 0.1);
  padding-top: 64px;
  margin-top: 64px;
}
@media (max-width: 880px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
.stat { display: flex; flex-direction: column; gap: 12px; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 1;
  color: var(--sand-300);
  letter-spacing: -0.035em;
}
.stat__num .unit {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.4em;
  color: var(--sand-500);
  margin-left: 6px;
  vertical-align: top;
  line-height: 1;
  display: inline-block;
  margin-top: 0.25em;
  letter-spacing: -0.02em;
}
.stat__approx {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--sand-300);
  margin-right: 0.02em;
  letter-spacing: -0.035em;
}
.stat__label {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245, 243, 239, 0.55);
  line-height: 1.5;
}

/* ---------- INVESTOR ---------- */
.investor {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) { .investor { grid-template-columns: 1fr; gap: 48px; } }

.investor__features {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 24px 0 36px;
}
.investor__features li {
  font-family: var(--font-heading);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sand-300);
  border: 1px solid rgba(187, 165, 127, 0.3);
  border-radius: 999px;
  padding: 8px 16px;
}

.investor__panel {
  background: var(--anthracite-600);
  border: 1px solid rgba(245, 243, 239, 0.06);
  border-radius: 10px;
  padding: 36px;
}
.investor__panel-title {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--sand-300);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.investor__doc {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 243, 239, 0.06);
}
.investor__doc:last-child { border-bottom: 0; }
.investor__doc-title {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(245, 243, 239, 0.78);
}
.investor__doc-meta {
  font-family: var(--font-heading);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(187, 165, 127, 0.7);
}

/* ---------- CONTACT ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; gap: 48px; } }

.contact__lead {
  font-family: var(--font-body); font-weight: 300;
  font-size: 18px; line-height: 1.7;
  color: rgba(245, 243, 239, 0.65);
  margin: 0 0 40px; max-width: 480px;
}
.contact__list { margin: 0; }
.contact__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  padding: 16px 0;
  border-top: 1px solid rgba(245, 243, 239, 0.08);
}
.contact__row:last-child { border-bottom: 1px solid rgba(245, 243, 239, 0.08); }
.contact__row dt {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245, 243, 239, 0.5);
  margin: 0;
}
.contact__row dd {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--cream-200);
  margin: 0;
}

.contact__form {
  background: var(--anthracite-600);
  padding: 40px;
  border: 1px solid rgba(245, 243, 239, 0.06);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (max-width: 540px) { .contact__form { padding: 28px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-heading);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245, 243, 239, 0.55);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  background: var(--anthracite-800);
  border: 1px solid rgba(245, 243, 239, 0.08);
  border-radius: 4px;
  color: var(--cream-200);
  outline: none;
  transition: border-color 240ms cubic-bezier(.2,.6,.2,1), background 240ms cubic-bezier(.2,.6,.2,1);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 243, 239, 0.3); }
.field input:focus, .field textarea:focus {
  border-color: var(--sand-400);
  background: var(--anthracite-700);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* ---------- FOOTER ---------- */
.kybo-footer {
  background: var(--anthracite-900);
  color: var(--cream-200);
  padding: 96px 0 32px;
  position: relative;
}
.kybo-footer::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--sand-500) 50%, transparent 100%);
  opacity: 0.5;
}
.kybo-footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.kybo-footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(245, 243, 239, 0.06);
}
@media (max-width: 880px) {
  .kybo-footer__top { grid-template-columns: 1fr; gap: 48px; }
}
.kybo-footer__brand img {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.kybo-footer__brand p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 243, 239, 0.45);
  margin: 24px 0 0;
  max-width: 320px;
}
.kybo-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 540px) {
  .kybo-footer__cols { grid-template-columns: 1fr; gap: 32px; }
}
.kybo-footer__col-title {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sand-300);
  margin-bottom: 18px;
}
.kybo-footer__col a {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(245, 243, 239, 0.55);
  padding: 6px 0;
  transition: color 240ms cubic-bezier(.2,.6,.2,1);
}
.kybo-footer__col a:hover { color: var(--cream-200); }

.kybo-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(245, 243, 239, 0.35);
  flex-wrap: wrap;
  gap: 16px;
}
.kybo-footer__legal { display: flex; gap: 24px; }
.kybo-footer__legal a {
  color: rgba(245, 243, 239, 0.35);
  transition: color 240ms cubic-bezier(.2,.6,.2,1);
}
.kybo-footer__legal a:hover { color: var(--cream-200); }

/* ---------- INVESTOR PAGE ---------- */
.page-hero {
  background: var(--anthracite-800);
  color: var(--cream-200);
  padding: 200px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(187, 165, 127, 0.1) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: var(--cream-200);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 880px;
  text-wrap: balance;
}
.page-hero p {
  font-family: var(--font-body); font-weight: 300;
  font-size: 18px; line-height: 1.65;
  color: rgba(245, 243, 239, 0.65);
  max-width: 580px;
  margin: 0;
}

.login-card {
  max-width: 480px;
  margin: -50px auto 0;
  background: var(--anthracite-600);
  border: 1px solid rgba(245, 243, 239, 0.08);
  border-radius: 10px;
  padding: 44px;
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
@media (max-width: 540px) { .login-card { padding: 28px; } }
.login-card h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--cream-200);
}
.login-card__sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(245, 243, 239, 0.55);
  margin: 0 0 28px;
}
.login-card .field { gap: 8px; }
.login-card__forgot {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(245, 243, 239, 0.5);
  text-align: center;
  margin: 12px 0 0;
}
.login-card__forgot a {
  color: var(--cream-200);
  border-bottom: 1px solid var(--sand-500);
  padding-bottom: 1px;
}

.docs {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.doc {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  background: var(--anthracite-600);
  border: 1px solid rgba(245, 243, 239, 0.06);
  border-radius: 10px;
  transition: border-color 240ms cubic-bezier(.2,.6,.2,1), background 240ms cubic-bezier(.2,.6,.2,1);
}
.doc:hover { border-color: rgba(187, 165, 127, 0.3); background: var(--anthracite-500); }
.doc__icon {
  width: 44px; height: 52px;
  background: rgba(187, 165, 127, 0.12);
  border: 1px solid rgba(187, 165, 127, 0.25);
  border-radius: 4px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sand-300);
}
.doc__body { flex: 1; min-width: 0; }
.doc__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--cream-200);
}
.doc__meta {
  font-family: var(--font-heading);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245, 243, 239, 0.45);
}
.doc__btn {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 4px;
  background: transparent;
  color: var(--cream-200);
  border: 1px solid rgba(245, 243, 239, 0.2);
  transition: background-color 240ms cubic-bezier(.2,.6,.2,1), color 240ms cubic-bezier(.2,.6,.2,1), border-color 240ms cubic-bezier(.2,.6,.2,1);
  flex-shrink: 0;
}
.doc__btn:hover { background: var(--sand-500); color: var(--anthracite-700); border-color: var(--sand-500); }

/* ---------- DECORATIVE ELEMENTS ---------- */
.bg-noise {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* GSAP-managed reveal classes */
.reveal-up { opacity: 0; transform: translateY(40px); }
.reveal-fade { opacity: 0; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); }

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mt-md { margin-top: 24px; }

/* ---- Intro overlay (CSS-driven, no JS-lib dependency) ---- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0A0B0D;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.7s ease;
}
.intro__logo {
  width: 240px;
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 1.4s cubic-bezier(.2,.6,.2,1), transform 1.4s cubic-bezier(.2,.6,.2,1);
  will-change: transform, opacity;
}
.intro__hint {
  position: absolute;
  bottom: 52px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease 0.5s;
}
/* fade-in once ready */
#intro.is-ready .intro__logo { opacity: 1; transform: scale(1); }
#intro.is-ready .intro__hint { opacity: 1; }
/* zoom-out on dismiss */
#intro.is-leaving { opacity: 0; pointer-events: none; }
#intro.is-leaving .intro__logo {
  opacity: 0;
  transform: scale(14);
  transition: opacity 0.9s cubic-bezier(.6,0,.85,.25), transform 1.0s cubic-bezier(.6,0,.85,.25);
}
body.intro-active {
  overflow: hidden;
}

/* ---- Light section variant ---- */
.section--light {
  background: var(--cream-200);
}
.section--light + .section--light {
  border-top: 1px solid rgba(45, 49, 55, 0.06);
}
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4,
.section--light .section-head__title {
  color: var(--anthracite-500);
}
.section--light p,
.section--light .section-head__lead,
.section--light .about__lead {
  color: rgba(45, 49, 55, 0.62);
}
.section--light .eyebrow {
  color: var(--sand-600);
}
/* Statement */
.section--light .statement__line {
  color: rgba(45, 49, 55, 0.55);
}
.section--light .statement__line strong {
  color: var(--anthracite-500);
}
.section--light .statement__line .accent {
  color: var(--sand-600);
  font-weight: 400;
}
.section--light .statement__signature {
  color: rgba(45, 49, 55, 0.45);
}
/* About */
.section--light .about__lead strong {
  color: var(--sand-700);
}
.section--light .about__rule {
  background: var(--sand-500);
}
/* Values grid */
.section--light .values {
  background: rgba(45, 49, 55, 0.06);
  border-color: rgba(45, 49, 55, 0.08);
}
.section--light .value {
  background: var(--cream-100);
}
.section--light .value:hover {
  background: #ffffff;
}
.section--light .value__title {
  color: var(--anthracite-500);
}
.section--light .value__text {
  color: rgba(45, 49, 55, 0.58);
}
/* Buttons */
.section--light .btn--ghost {
  color: var(--anthracite-500);
  border-color: rgba(45, 49, 55, 0.22);
}
.section--light .btn--ghost:hover {
  background: rgba(45, 49, 55, 0.06);
  border-color: var(--anthracite-500);
}
.section--light .btn--link {
  color: var(--anthracite-500);
}
/* Investor features */
.section--light .investor__features li {
  color: rgba(45, 49, 55, 0.65);
  border-color: rgba(45, 49, 55, 0.10);
}
/* bg-icons on cream: turn dark, keep subtle */
.section--light .bg-icon {
  filter: brightness(0);
  opacity: 0.07;
}
/* Preserve dark-card colors inside light sections */
.section--light .project-card h3,
.section--light .project-card__title { color: var(--cream-200); }
.section--light .project-card p,
.section--light .project-card__tagline { color: rgba(245, 243, 239, 0.55); }
.section--light .project-card__loc { color: var(--sand-300); }
.section--light .project-card__meta,
.section--light .project-card__meta .dot { color: rgba(245, 243, 239, 0.45); }
.section--light .founder h3,
.section--light .founder__name { color: var(--cream-200); }
.section--light .founder p,
.section--light .founder__bio { color: rgba(245, 243, 239, 0.6); }
.section--light .founder__role { color: var(--sand-300); }

/* ---- Background decorative icons ---- */
.bg-icon {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  z-index: 0;
}
.bg-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bg-icon--hero {
  width: 560px;
  height: 560px;
  right: -80px;
  top: calc(50% - 280px);
  opacity: 0.09;
  z-index: 1;
}

.bg-icon--values {
  width: 500px;
  height: 500px;
  right: -60px;
  top: -60px;
  opacity: 0.10;
}

.bg-icon--stats {
  width: 620px;
  height: 620px;
  left: -120px;
  top: calc(50% - 310px);
  opacity: 0.10;
}

.bg-icon--investor {
  width: 520px;
  height: 520px;
  right: -80px;
  bottom: -80px;
  opacity: 0.10;
}

@media (max-width: 768px) {
  .bg-icon--hero    { width: 260px; height: 260px; top: calc(50% - 130px); opacity: 0.06; }
  .bg-icon--values  { width: 240px; height: 240px; right: -40px; top: -30px; }
  .bg-icon--stats   { width: 300px; height: 300px; left: -60px; top: calc(50% - 150px); }
  .bg-icon--investor{ width: 260px; height: 260px; right: -40px; bottom: -40px; }
}
.mt-lg { margin-top: 48px; }

/* ============================================================
   PROJECT CARD — gallery affordance
   ============================================================ */
.project-card[data-gallery] { cursor: pointer; }
.project-card[data-gallery]:focus-visible {
  outline: 2px solid var(--sand-300, #B9A36E);
  outline-offset: 4px;
}
.project-card__zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 33, 40, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream-200, #F5F3EF);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 320ms cubic-bezier(.2,.6,.2,1), transform 320ms cubic-bezier(.2,.6,.2,1);
  pointer-events: none;
}
.project-card__zoom svg { color: var(--sand-300, #B9A36E); }
.project-card:hover .project-card__zoom,
.project-card:focus-visible .project-card__zoom {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .project-card__zoom { opacity: 1; transform: none; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 22, 28, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms cubic-bezier(.2,.6,.2,1), visibility 0s linear 280ms;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 280ms cubic-bezier(.2,.6,.2,1), visibility 0s linear 0s;
}
.lightbox__head {
  position: absolute;
  top: 24px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--cream-200, #F5F3EF);
  pointer-events: none;
  max-width: calc(100% - 120px);
}
.lightbox__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.lightbox__count {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-300, #B9A36E);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 243, 239, 0.18);
  background: rgba(245, 243, 239, 0.04);
  color: var(--cream-200, #F5F3EF);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.lightbox__close:hover {
  background: rgba(187, 163, 110, 0.15);
  border-color: var(--sand-300, #B9A36E);
  color: var(--sand-300, #B9A36E);
}
.lightbox__close:active { transform: scale(0.96); }
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(90vw, 1400px);
  height: min(82vh, 900px);
  padding: 0 16px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 220ms cubic-bezier(.2,.6,.2,1);
}
.lightbox__img.is-loaded { opacity: 1; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(245, 243, 239, 0.18);
  background: rgba(245, 243, 239, 0.04);
  color: var(--cream-200, #F5F3EF);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  z-index: 2;
}
.lightbox__nav:hover {
  background: rgba(187, 163, 110, 0.18);
  border-color: var(--sand-300, #B9A36E);
  color: var(--sand-300, #B9A36E);
}
.lightbox__nav--prev { left: 28px; }
.lightbox__nav--next { right: 28px; }
.lightbox.is-single .lightbox__nav,
.lightbox.is-single .lightbox__count { display: none; }

@media (max-width: 768px) {
  .lightbox__head { top: 16px; left: 20px; }
  .lightbox__close { top: 14px; right: 16px; width: 40px; height: 40px; }
  .lightbox__stage { width: 96vw; height: 70vh; padding: 0 8px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}
body.is-lightbox-open { overflow: hidden; }
