/* ════════════════════════════════════════════════════════════
   BALORA LLC — Website Stylesheet
   Brand: Paper/Ink/Sun · Geist + JetBrains Mono
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ── */
:root {
  --ink:     #0A1628;
  --slate:   #2A3B52;
  --mist:    #E6EAF0;
  --paper:   #FAFAF7;
  --paper-2: #F3F3EF;
  --sun:     #C8A961;

  --line:    rgba(10, 22, 40, 0.09);
  --line-2:  rgba(10, 22, 40, 0.05);
  --line-h:  rgba(200, 169, 97, 0.35);

  --display: "Geist", "Helvetica Neue", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --max:      1060px;
  --pad-x:    clamp(20px, 5vw, 88px);
  --h-height: 64px;
  --r:        4px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01","cv11";
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Subtle horizontal rule pattern from brand */
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0 119px,
    var(--line-2) 119px 120px
  );
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 500; color: var(--ink); }

/* ── Fade-in ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade { opacity: 0; animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) forwards; }
.d1 { animation-delay: 0.04s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.22s; }
.d4 { animation-delay: 0.34s; }
.d5 { animation-delay: 0.46s; }
.d6 { animation-delay: 0.58s; }

/* ── Layout ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: clamp(64px, 10vh, 96px) 0; }
.divider { height: 1px; background: var(--line); }

/* ── Wordmark / Lettermark SVG helpers ── */
.wm svg { width: 100%; height: auto; display: block; }
.lm svg { width: 100%; height: 100%; display: block; }

/* ── Labels (mono caps) ── */
.label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--sun);
  flex-shrink: 0;
}

/* ── Typography ── */
.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--ink);
}
h1.display { font-size: clamp(44px, 7.5vw, 80px); }
h2.display { font-size: clamp(30px, 4.5vw, 52px); }

.body-lg {
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 400;
  color: var(--slate);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.body-sm {
  font-size: 14px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.65;
}

/* ── Eyebrow (from brand) ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--sun);
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--r);
  transition: all 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--slate);
  border-color: var(--slate);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: rgba(10,22,40,0.25);
  color: var(--ink);
  background: var(--paper-2);
}

.link-arrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s ease, color 0.15s ease;
}
.link-arrow::after { content: '→'; }
.link-arrow:hover { gap: 10px; color: var(--ink); }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--h-height);
  border-bottom: 1px solid var(--line);
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo wordmark in header — inline SVG, sized down */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 108px;
  transition: opacity 0.15s;
}
.site-logo:hover { opacity: 0.65; }
.site-logo svg { width: 100%; height: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 6px 12px;
  border-radius: var(--r);
  transition: color 0.14s, background 0.14s;
}
.nav-link:hover { color: var(--ink); background: var(--paper-2); }
.nav-link.active { color: var(--ink); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--slate);
  transition: all 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--h-height);
  left: 0; right: 0;
  background: rgba(250,250,247,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 16px var(--pad-x) 24px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  font-size: 12px;
  padding: 14px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.14em;
}
.mobile-nav .nav-link:last-child { border-bottom: none; }

/* ── Main offset ── */
main { flex: 1; padding-top: var(--h-height); }

/* ── Hero ── */
.hero {
  padding: clamp(72px,13vh,120px) 0 clamp(64px,10vh,96px);
  border-bottom: 1px solid var(--line);
  /* horizontal rule grid from brand */
  background-image:
    repeating-linear-gradient(0deg, transparent 0 119px, var(--line-2) 119px 120px);
}

.hero-wordmark {
  width: clamp(180px, 30vw, 340px);
  margin-bottom: 48px;
}
.hero-wordmark svg { width: 100%; height: auto; display: block; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 56px;
  max-width: 560px;
}

.hm-item {
  padding: 20px 0 0;
  padding-right: 24px;
}
.hm-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 5px;
  opacity: 0.7;
}
.hm-v {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

/* ── Service cards — grid with 1px gap borders ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.card {
  background: var(--paper);
  padding: 32px 32px 36px;
  border-right: 1px solid var(--line);
  transition: background 0.16s ease;
  position: relative;
}
.card:last-child { border-right: none; }
.card:hover { background: var(--paper-2); }

.card-number {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.5;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
  font-weight: 400;
}

/* Sun accent top border on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.card:hover::before { transform: scaleX(1); }

/* ── Venture card ── */
.venture-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 36px 40px;
  transition: border-color 0.18s, background 0.18s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.venture-card:hover {
  border-color: rgba(10,22,40,0.2);
  background: var(--paper-2);
}
/* Sun bar top on hover */
.venture-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.venture-card:hover::before { transform: scaleX(1); }

.venture-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.venture-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sun);
  background: rgba(200,169,97,0.10);
  padding: 4px 10px;
  border-radius: 2px;
}

.venture-link-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--slate);
  opacity: 0.7;
}

.venture-card h3 {
  font-size: clamp(22px,3vw,30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.1;
}

.venture-card p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Section header (numbered) — from brand ── */
.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 52px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.sh-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0.12em;
  opacity: 0.6;
  flex-shrink: 0;
}
.sh-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sh-rule { flex: 1; height: 1px; background: var(--line); }
.sh-meta {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── Services page ── */
.service-block {
  padding: clamp(48px,7vh,72px) 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: none; }

.service-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.service-index {
  font-size: clamp(56px,7vw,80px);
  font-weight: 500;
  color: var(--mist);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-top: -8px;
  font-family: var(--display);
}

.service-content h2 {
  font-size: clamp(22px,3vw,30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.1;
}

.service-content p {
  font-size: 15.5px;
  color: var(--slate);
  line-height: 1.75;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  max-width: 580px;
}
.service-content p:last-of-type { margin-bottom: 28px; }

/* ── About page ── */
.about-intro { max-width: 620px; }

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.focus-block {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.16s;
}
.focus-block:nth-child(2n) { border-right: none; }
.focus-block:nth-last-child(-n+2) { border-bottom: none; }
.focus-block:hover { background: var(--paper-2); }

.focus-block h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}
.focus-block p {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.7;
}

/* Meta grid — from brand cover-meta pattern */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.meta-item {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.meta-item:last-child { border-right: none; }
.mi-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
  opacity: 0.7;
}
.mi-v {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ── Contact page ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(40px,7vw,96px);
  align-items: start;
}

.direct-email-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
  opacity: 0.7;
}
.direct-email-val {
  font-size: clamp(15px,2vw,18px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color 0.14s;
}
.direct-email-val:hover { color: var(--slate); }

.contact-note {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.contact-note p {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.7;
}

/* Form */
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.8;
}
.field input,
.field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.14s;
  width: 100%;
  resize: vertical;
  -webkit-appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(42,59,82,0.35); }
.field input:focus,
.field textarea:focus { border-color: rgba(10,22,40,0.25); }
.field textarea { min-height: 130px; }

/* ── Ventures page ── */
.ventures-list { display: flex; flex-direction: column; gap: 20px; }

.venture-placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.ph-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mist);
  flex-shrink: 0;
}
.venture-placeholder p {
  font-size: 14px;
  color: var(--slate);
  font-style: italic;
  opacity: 0.7;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: clamp(56px,9vh,88px) 0 clamp(44px,6vh,64px);
  border-bottom: 1px solid var(--line);
}

/* ── CTA band ── */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--paper);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-wm { width: 72px; }
.footer-wm svg { width: 100%; height: auto; display: block; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.55;
  transition: opacity 0.14s;
}
.footer-nav a:hover { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 800px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .cards-grid { grid-template-columns: 1fr; }
  .card { border-right: none; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: none; }

  .service-layout { grid-template-columns: 1fr; gap: 12px; }
  .service-index { font-size: 48px; margin-top: 0; }

  .focus-grid { grid-template-columns: 1fr; }
  .focus-block { border-right: none; }
  .focus-block:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .focus-block:last-child { border-bottom: none; }

  .meta-grid { grid-template-columns: 1fr; }
  .meta-item { border-right: none; border-bottom: 1px solid var(--line); }
  .meta-item:last-child { border-bottom: none; }

  .hero-meta { grid-template-columns: 1fr 1fr; }

  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .venture-card { padding: 28px 24px; }
}

@media (max-width: 520px) {
  .footer-nav { display: none; }
  .hero-meta { grid-template-columns: 1fr; }
  .footer-copy { flex-direction: column; align-items: flex-start; gap: 6px; }
}
