/* =================================================================
   The Rails Ahead — Landing Page
   Palette: Navy #0F1B2D, Bone #F5F1E8, Brass #C8A14B, Slate Teal #1F8F8F, Graphite #5B5B57
   Type: Fraunces (display) + Inter (body)
================================================================= */

:root {
  --navy: #0F1B2D;
  --navy-deep: #0A1320;
  --bone: #F5F1E8;
  --bone-soft: #EDE7D6;
  --brass: #C8A14B;
  --brass-dim: #8E7232;
  --teal: #1F8F8F;
  --graphite: #5B5B57;
  --graphite-light: #8B8B85;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

/* =========================================
   TOP BAR
========================================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--pad-x);
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
  position: sticky;
  top: 0;
  background: rgba(15, 27, 45, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brass);
}

.brand .logo {
  width: 28px;
  height: 28px;
  color: var(--brass);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--bone);
}

.topnav {
  display: flex;
  gap: 36px;
}

.topnav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.topnav a:hover {
  opacity: 1;
  color: var(--brass);
}

@media (max-width: 640px) {
  .topnav { display: none; }
}

/* =========================================
   HERO
========================================= */
.hero {
  position: relative;
  padding: clamp(80px, 14vh, 160px) var(--pad-x) clamp(60px, 10vh, 120px);
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(31, 143, 143, 0.08) 0%, transparent 60%),
    var(--navy);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 32px;
  font-variation-settings: "opsz" 144;
}

.hero-title .accent {
  color: var(--brass);
  font-style: italic;
  font-variation-settings: "opsz" 144;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 44px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--bone);
  opacity: 0.85;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--brass);
  color: var(--navy);
}

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

.btn-secondary {
  background: transparent;
  color: var(--bone);
  border-color: rgba(245, 241, 232, 0.2);
}

.btn-secondary:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--brass));
}

/* =========================================
   SECTIONS
========================================= */
.section {
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  position: relative;
}

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

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 720px;
}

.section-inner.two-col {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .section-inner.two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.section-head {
  margin-bottom: 64px;
}

.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}

.col-label .label {
  padding-top: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bone);
  max-width: 780px;
  font-variation-settings: "opsz" 144;
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
  color: var(--bone);
  margin: 28px 0 24px;
  max-width: 680px;
}

.col-content p {
  margin-bottom: 20px;
  color: var(--bone);
  opacity: 0.82;
  max-width: 680px;
}

/* =========================================
   PILLARS
========================================= */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(245, 241, 232, 0.08);
  border: 1px solid rgba(245, 241, 232, 0.08);
}

.pillar {
  background: var(--navy-deep);
  padding: 40px 36px;
  transition: background 0.3s ease;
}

.pillar:hover {
  background: var(--navy);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-bottom: 16px;
  display: inline-block;
}

.pillar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  color: var(--bone);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.pillar-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone);
  opacity: 0.78;
}

/* =========================================
   EMAIL
========================================= */
.section-email {
  text-align: center;
  background:
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.section-email .label,
.section-email .section-title {
  margin-left: auto;
  margin-right: auto;
}

.section-email .section-title {
  text-align: center;
}

.email-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--bone);
  opacity: 0.82;
  margin: 28px auto 40px;
  max-width: 560px;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.email-form input {
  flex: 1;
  min-width: 220px;
  padding: 16px 20px;
  background: rgba(245, 241, 232, 0.05);
  border: 1px solid rgba(245, 241, 232, 0.15);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--bone);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.email-form input::placeholder {
  color: var(--graphite-light);
}

.email-form input:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(245, 241, 232, 0.08);
}

.email-form button {
  padding: 16px 28px;
  background: var(--brass);
  color: var(--navy);
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.email-form button:hover {
  background: var(--bone);
  transform: translateY(-1px);
}

.email-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--graphite-light);
}

.email-note a {
  color: var(--brass);
  border-bottom: 1px solid rgba(200, 161, 75, 0.4);
}

/* =========================================
   FOLLOW
========================================= */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(245, 241, 232, 0.08);
  border: 1px solid rgba(245, 241, 232, 0.08);
}

.social {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  background: var(--navy);
  min-height: 140px;
  position: relative;
  transition: background 0.3s ease;
}

.social:hover {
  background: var(--navy-deep);
}

.social:hover .social-arrow {
  transform: translateX(6px);
  color: var(--brass);
}

.social-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: -0.01em;
}

.social-handle {
  font-size: 14px;
  color: var(--bone);
  opacity: 0.65;
  margin-top: 8px;
  font-family: var(--font-body);
}

.social-arrow {
  position: absolute;
  top: 32px;
  right: 28px;
  color: var(--bone);
  opacity: 0.4;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* =========================================
   FOOTER
========================================= */
.footer {
  padding: 64px var(--pad-x) 48px;
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  background: var(--navy-deep);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brass);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
}

.footer-brand .logo {
  width: 22px;
  height: 22px;
}

.footer-brand span {
  color: var(--bone);
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--bone);
  opacity: 0.65;
  margin-bottom: 20px;
}

.footer-fine {
  font-size: 12px;
  color: var(--graphite-light);
  letter-spacing: 0.04em;
}

/* =========================================
   MOBILE TUNING
========================================= */
@media (max-width: 480px) {
  .topbar { padding: 18px 20px; }
  .brand-text { font-size: 16px; }
  .hero { padding: 64px 20px 48px; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin: 0 auto; }
  .btn { justify-content: center; }
  .pillar { padding: 32px 24px; }
  .social { padding: 28px 24px; }
}
