/* ==========================================================================
   CommonRoot Group LLC — Global Stylesheet
   ========================================================================== */

:root {
  /* Palette — deep botanical + warm paper */
  --ink:       #1a2420;   /* near-black, warm green undertone */
  --moss:      #2d4a3e;   /* primary brand green */
  --leaf:      #4a6b5c;   /* secondary green */
  --bark:      #6b5d4f;   /* warm neutral */
  --cream:     #f5efe4;   /* page background */
  --paper:     #ede4d1;   /* slightly darker cream */
  --bone:      #fdfaf3;   /* lightest */
  --accent:    #c9753d;   /* terracotta, for punctuation */
  --line:      rgba(26, 36, 32, 0.15);

  /* Type */
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans:  'Inter Tight', 'Helvetica Neue', sans-serif;
  --mono:  'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grain overlay for paper feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  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 type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
}

.logo em {
  font-style: italic;
  color: var(--moss);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links a.active { color: var(--moss); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--ink);
}

/* ==========================================================================
   HERO (Home)
   ========================================================================== */

.hero {
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: rise 0.8s ease 0.1s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--bark);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 32px;
  opacity: 0;
  animation: rise 0.9s ease 0.25s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--moss);
  font-weight: 400;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 0.9s ease 0.4s forwards;
}

.hero-cta {
  display: flex;
  gap: 20px;
  opacity: 0;
  animation: rise 0.9s ease 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--moss);
  color: var(--bone);
}

.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bone);
}

.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero visual — abstract tree/root motif */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.1;
  opacity: 0;
  animation: fade 1.4s ease 0.5s forwards;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   SECTION: VENTURES (Home)
   ========================================================================== */

.section {
  padding: 120px 0;
  position: relative;
}

.section-alt { background: var(--paper); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
  gap: 40px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 700px;
}

.section-title em { font-style: italic; color: var(--moss); }

.section-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 18px;
}

.section-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bark);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  min-width: 180px;
}

/* Ventures grid */
.ventures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.venture {
  padding: 48px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  transition: background 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.venture:hover { background: var(--bone); }

.venture-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bark);
  margin-bottom: 28px;
  letter-spacing: 0.1em;
}

.venture-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  color: var(--moss);
}

.venture-icon svg { width: 100%; height: 100%; }

.venture h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.venture p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: auto;
}

.venture-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
}

.status-dot.upcoming { background: var(--accent); }

.venture.placeholder {
  background: transparent;
  border-style: dashed;
  border-color: rgba(26, 36, 32, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 380px;
}

.venture.placeholder .placeholder-inner {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--bark);
  max-width: 220px;
}

.venture.placeholder .plus {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--leaf);
  margin-bottom: 16px;
  line-height: 1;
}

/* ==========================================================================
   PHILOSOPHY STRIP (Home)
   ========================================================================== */

.philosophy {
  padding: 140px 0;
  background: var(--ink);
  color: var(--cream);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.philosophy-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark);
}

.philosophy-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.philosophy-quote em {
  font-style: normal;
  color: var(--accent);
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.page-header {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 24px;
}

.page-header h1 em { font-style: italic; color: var(--moss); }

.page-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark);
}

.about-intro {
  padding: 100px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
}

.about-intro-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bark);
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.about-intro-body p {
  font-size: 19px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.about-intro-body p:first-child {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.about-intro-body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 72px;
  float: left;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  color: var(--moss);
  font-weight: 500;
}

/* Principles */
.principles {
  padding: 100px 0;
  background: var(--paper);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}

.principle {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}

.principle-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--bark);
  margin-bottom: 20px;
}

.principle h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.principle p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-grid {
  padding: 100px 0 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.contact-info h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.contact-info h2 em { font-style: italic; color: var(--moss); }

.contact-info > p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 48px;
  max-width: 460px;
}

.contact-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.contact-item-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 8px;
}

.contact-item-value {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}

.contact-item-value a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-item-value a:hover { border-color: var(--moss); }

/* Form */
.contact-form {
  background: var(--bone);
  padding: 48px;
  border: 1px solid var(--line);
}

.contact-form h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.contact-form .form-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 32px;
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  outline: none;
  transition: border-color 0.3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--moss);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--sans);
}

.form-submit {
  width: 100%;
  padding: 18px;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--moss);
  color: var(--bone);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.form-submit:hover {
  background: var(--ink);
}

.form-success {
  padding: 20px;
  background: var(--moss);
  color: var(--bone);
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
  display: none;
}

.form-success.show { display: block; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
}

.footer-brand .logo { color: var(--cream); }
.footer-brand .logo em { color: var(--accent); }

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin-top: 20px;
  max-width: 340px;
  opacity: 0.8;
  line-height: 1.5;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--cream);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-col a:hover { opacity: 1; color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(245, 239, 228, 0.15);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--bark);
  text-transform: uppercase;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes grow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 360px; margin: 0 auto; }

  .section { padding: 80px 0; }
  .ventures { grid-template-columns: 1fr; }
  .venture { min-height: auto; }

  .philosophy { padding: 80px 0; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 32px; }

  .about-intro { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .principles { padding: 60px 0; }
  .principles-grid { grid-template-columns: 1fr; gap: 32px; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; padding: 60px 0 80px; }
  .contact-form { padding: 32px; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 16px 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .about-intro-body p:first-child { font-size: 22px; }
}
