/* ---------- Tokens ---------- */
:root {
  --ink-950: #302517;
  --ink-900: #3e311f;
  --ink-800: #4c3d27;
  --ink-700: #5a492f;
  --ink-600: #685537;
  --line: rgba(255,235,210,0.09);
  --paper: #f5f0e6;
  --paper-dim: #cfc3ac;
  --muted: #a4967d;
  --accent: #c9a24b;
  --accent-bright: #e6c774;
  --accent-dim: rgba(201,162,75,0.16);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1160px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.text-accent { color: var(--accent); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: 14px;
}

.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* subtle grain overlay for texture */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%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");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: var(--ink-950);
  box-shadow: 0 8px 24px rgba(201,162,75,0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,162,75,0.32); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }

.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11,15,22,0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(11,15,22,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: auto;
}

.brand-pillar {
  position: relative;
  width: 12px;
  height: 34px;
  flex-shrink: 0;
}
.brand-pillar-left { margin-right: -3px; }
.brand-pillar-right { margin-left: -6px; }
.brand-pillar img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 12px;
  height: 34px;
  margin-left: -6px;
  object-fit: contain;
  filter: sepia(0.3) saturate(1.5) brightness(0.88) drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--paper);
  white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--accent); }
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--paper-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.main-nav a:hover { color: var(--accent-bright); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 140px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201,162,75,0.16) 0%, rgba(201,162,75,0) 65%);
  pointer-events: none;
}

.hero-pillars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}
.hero-pillar {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.hero-pillar.hp-1 { left: 12%; }
.hero-pillar.hp-2 { right: 12%; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .eyebrow { text-align: center; }

.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.12;
  margin-bottom: 26px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--paper-dim);
  max-width: 660px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 34px;
}

/* ---------- Pillars strip ---------- */
.pillars-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
}
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  padding: 64px 32px;
  align-items: center;
}
.pillar-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.pillar-card h3 {
  font-size: 1.8rem;
  margin: 8px 0 12px;
}
.pillar-index {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.pillar-card p { color: var(--muted); max-width: 420px; }

/* ---------- Services ---------- */
.services { padding: 140px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--ink-900);
  padding: 40px 32px;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-card:hover {
  background: var(--ink-800);
}

.service-icon {
  width: 48px; height: 48px;
  color: var(--accent);
  margin-bottom: 22px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Method ---------- */
.method {
  padding: 120px 0;
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.method-step { position: relative; padding-top: 8px; }
.method-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 8px;
}
.method-step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.method-step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Vision ---------- */
.vision {
  padding: 160px 0;
  position: relative;
}
.vision::before {
  content: '"';
  position: absolute;
  top: 40px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.18;
  line-height: 1;
}
.vision-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.vision .eyebrow { text-align: center; }
.vision-statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.5;
  color: var(--paper);
  font-weight: 500;
}

/* ---------- Founders ---------- */
.founders { padding: 120px 0 140px; }

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.founder-card {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  transition: border-color 0.3s;
}
.founder-card:hover { border-color: rgba(201,162,75,0.35); }

.founder-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink-950);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  margin-bottom: 22px;
}

.founder-card h3 { font-size: 1.5rem; margin-bottom: 2px; }
.founder-role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.founder-edu {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.founder-bio { color: var(--paper-dim); font-size: 0.98rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: 100px 0;
  background: radial-gradient(ellipse at center, var(--ink-700), var(--ink-900));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-banner h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-banner p { color: var(--muted); font-size: 1.05rem; margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact { padding: 140px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
}

.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 6px; }

.contact-list { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.contact-list span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a { color: var(--paper); font-size: 1.05rem; transition: color 0.25s; }
.contact-list a:hover { color: var(--accent-bright); }

.contact-form {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row label, .form-row-full { display: flex; flex-direction: column; gap: 8px; }
.form-row-full { display: flex; flex-direction: column; gap: 8px; }

.contact-form span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--paper-dim);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.25s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Topic picker */
.topic-picker { display: flex; flex-direction: column; gap: 14px; }
.topic-picker-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--paper-dim);
}
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.topic-chip {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--paper-dim);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.topic-chip:hover { border-color: rgba(201,162,75,0.4); color: var(--paper); }
.topic-chip.is-selected {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* Message section reveals after a topic is chosen */
.message-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
}
.message-section.is-open {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.form-note {
  font-size: 0.85rem;
  color: var(--accent-bright);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 0.88rem; transition: color 0.25s; }
.footer-nav a:hover { color: var(--accent-bright); }
.footer-copy { color: var(--muted); font-size: 0.8rem; width: 100%; text-align: center; order: 3; margin-top: 8px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .founders-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars-grid { grid-template-columns: 1fr; text-align: center; }
  .pillar-divider { display: none; }
  .pillar-card p { margin: 0 auto; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(11,15,22,0.98);
    backdrop-filter: blur(14px);
    padding: 24px 32px 32px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 100px; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .contact-form { padding: 28px; }
  .founder-card { padding: 32px; }
}
