/* ============================================
   OSTANES VENTURES — SHARED STYLESHEET
   Single source of truth for site design.
   Edit colors, fonts, spacing here.
   ============================================ */

:root {
  --gold: #DAA82E;
  --gold-soft: #B8902A;
  --gold-light: #F6D26B;
  --gold-deep: #9C6E16;
  --gold-glow: rgba(218, 168, 46, 0.12);
  --navy: #0F1A24;
  --navy-2: #15222F;
  --navy-3: #1B2838;
  --teal: #205874;
  --ink: #E8E3D5;
  --ink-soft: #B0A998;
  --ink-mute: #6E6857;
  --line: rgba(232, 227, 213, 0.08);
  --line-strong: rgba(232, 227, 213, 0.18);
  --coral: #E8593C;
  --green: #1D9E75;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* Paper-grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.78 0 0 0 0 0.6 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--gold); text-decoration: none; }

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

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: linear-gradient(to bottom, rgba(15, 26, 36, 0.95), rgba(15, 26, 36, 0.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }
.logo img.logo-mark-img {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink) !important;
  font-size: 13px !important;
  transition: all 0.2s;
}
.nav-cta:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
  color: var(--gold) !important;
}

/* ===== PAGE INTRO ===== */
.page-intro { padding: 160px 0 60px; }
.page-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.9s 0.1s forwards;
}
.page-meta::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold);
}
.page-intro h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 18ch;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s 0.2s forwards;
}
.page-intro h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}
.page-intro-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.9s 0.35s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { to { opacity: 0.6; } }

/* ===== SECTION DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 80px 0 48px;
}
.divider-num {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.15em;
}
.divider-line { flex: 1; height: 1px; background: var(--line-strong); }
.divider-label {
  font-family: var(--mono);
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== TYPOGRAPHY (PROSE) ===== */
.prose h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  margin-top: 48px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--gold);
  margin-bottom: 16px;
  margin-top: 32px;
}
.prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 64ch;
}
.prose p strong { color: var(--ink); font-weight: 500; }
.prose p em { color: var(--gold); font-style: italic; }
.prose ol, .prose ul {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
  padding-left: 28px;
  margin-bottom: 24px;
  max-width: 64ch;
}
.prose ol li, .prose ul li { margin-bottom: 10px; padding-left: 6px; }
.prose ol li::marker { color: var(--gold); font-family: var(--mono); font-size: 14px; }
.prose ul li::marker { color: var(--gold); }

.pull-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  max-width: 56ch;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line-strong);
  padding: 60px 0 40px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand-row img {
  width: 28px;
  height: 28px;
  opacity: 0.85;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.footer-tagline {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 36ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

/* ===== BUTTONS / CTAs ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: gap 0.3s;
}
.inline-link::after { content: '→'; font-family: var(--mono); }
.inline-link:hover { gap: 14px; }

/* ===== PAGE LOADER (alchemy splash) ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: grid;
  place-items: center;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader .stage {
  position: relative;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
}
.page-loader .halo {
  position: absolute;
  width: 220px; height: 220px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218,168,46,0.20) 0%, rgba(218,168,46,0) 65%);
  animation: haloWarm 6s ease-in-out infinite;
  z-index: 0;
}
@keyframes haloWarm {
  0%   { opacity: 0; }
  25%  { opacity: 0.5; }
  45%  { opacity: 1; }
  65%  { opacity: 0.7; }
  85%  { opacity: 0.2; }
  100% { opacity: 0; }
}
.page-loader .logo-svg {
  position: relative;
  width: 200px;
  height: 200px;
  overflow: visible;
  z-index: 2;
}

/* ===== CONTACT ICONS ===== */
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  color: var(--gold);
  vertical-align: middle;
  opacity: 0.9;
}
.contact-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-channel-row {
  display: flex;
  align-items: center;
}

/* ===== TIMELINE ANIMATION (intersection-observer based) ===== */
.timeline-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item:nth-child(2).in-view { transition-delay: 0.05s; }
.timeline-item:nth-child(3).in-view { transition-delay: 0.10s; }
.timeline-item:nth-child(4).in-view { transition-delay: 0.15s; }
.timeline-item:nth-child(5).in-view { transition-delay: 0.20s; }
.timeline-item:nth-child(6).in-view { transition-delay: 0.25s; }
.timeline-item:nth-child(7).in-view { transition-delay: 0.30s; }
.timeline-item:nth-child(8).in-view { transition-delay: 0.35s; }
.timeline-item:nth-child(9).in-view { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .timeline-item { opacity: 1; transform: none; transition: none; }
  .page-loader .halo { animation: none; }
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 24px; }
  nav { padding: 14px 24px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .logo { font-size: 18px; }
  .logo img.logo-mark-img { width: 28px; height: 28px; }
  .page-intro { padding: 130px 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .pull-quote { font-size: 21px; padding-left: 20px; }
  .prose h2 { font-size: 28px; }
  .page-loader .stage { width: 160px; height: 160px; }
  .page-loader .logo-svg { width: 160px; height: 160px; }
}
