:root {
  /* Palette pulled directly from the logo */
  --paper: #fdf6ec;
  --paper-warm: #f9eedb;
  --paper-strong: #f4e6cf;
  --ink: #211712;
  --muted: #6c5f53;
  --maroon: #8e0d1c;
  --red: #b51626;
  --orange: #d4561f;
  --saffron: #e09a1f;
  --green: #1c6b39;
  --forest: #123726;
  --navy: #1d3c5e;
  --navy-deep: #14283f;

  --line: rgba(33, 23, 18, 0.1);
  --line-soft: rgba(33, 23, 18, 0.07);
  --glass: rgba(253, 246, 236, 0.8);
  --shadow-soft: 0 14px 40px rgba(60, 30, 15, 0.08);
  --shadow-strong: 0 30px 70px rgba(70, 25, 12, 0.16);

  --maxw: 1200px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  font-family: var(--sans);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

:focus-visible {
  outline: 3px solid rgba(142, 13, 28, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

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

::selection { background: rgba(142, 13, 28, 0.16); color: var(--maroon); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* warm paper texture + fixed colour wash */
.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58vw 48vw at 92% -10%, rgba(212, 86, 31, 0.10), transparent 60%),
    radial-gradient(48vw 44vw at -8% 12%, rgba(142, 13, 28, 0.06), transparent 60%),
    radial-gradient(52vw 50vw at 78% 112%, rgba(28, 107, 57, 0.07), transparent 62%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background 280ms ease, border-color 280ms ease, box-shadow 280ms ease, padding 280ms ease;
}

.site-header.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-color: var(--line-soft);
  box-shadow: 0 8px 26px rgba(60, 30, 15, 0.06);
  padding-top: 11px;
  padding-bottom: 11px;
}

.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; font-weight: 800; }

.brand-logo {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.brand-logo img { object-fit: contain; }

.brand:hover .brand-logo { transform: scale(1.06) rotate(-4deg); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.12rem; font-weight: 700; letter-spacing: 0.2px;
  color: var(--maroon); white-space: nowrap;
}

.site-nav {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
  color: #3a2f27; font-size: 0.92rem; font-weight: 600;
}

.site-nav a:not(.nav-cta) { position: relative; padding: 6px 0; }

.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px; background: var(--maroon);
  transform: scaleX(0); transform-origin: left; transition: transform 240ms ease;
}

.site-nav a:not(.nav-cta):hover { color: var(--maroon); }
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  padding: 10px 22px; border-radius: 999px;
  color: #fff; background: var(--maroon);
  box-shadow: 0 8px 18px rgba(142, 13, 28, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.nav-cta:hover { transform: translateY(-2px); background: var(--red); box-shadow: 0 12px 26px rgba(142, 13, 28, 0.3); }

.nav-toggle {
  display: none; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--maroon); cursor: pointer;
}
.nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; }

/* ---------- Shared type ---------- */
.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 11px;
  margin: 0 0 22px;
  color: var(--green);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(224, 154, 31, 0.18); }
.kicker-line { width: 30px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.55; }
.section-kicker.light { color: var(--saffron); }

h1, h2, h3, p { margin-top: 0; }

h2 {
  margin-bottom: 22px;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.04; letter-spacing: -0.018em; color: var(--ink);
}
h2 em { font-style: italic; color: var(--maroon); }

h3 {
  margin-bottom: 10px;
  font-family: var(--serif); font-size: 1.42rem; font-weight: 600; line-height: 1.2;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.97rem; line-height: 1.2; cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}
.button-arrow { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms ease; }
.button:hover .button-arrow { transform: translateX(4px); }

.button.primary { color: #fff; background: var(--maroon); box-shadow: 0 14px 30px rgba(142, 13, 28, 0.24); }
.button.primary:hover { transform: translateY(-2px); background: var(--red); box-shadow: 0 20px 40px rgba(142, 13, 28, 0.32); }

.button.secondary { color: var(--maroon); background: #fff; border-color: rgba(142, 13, 28, 0.2); }
.button.secondary:hover { transform: translateY(-2px); border-color: var(--maroon); box-shadow: var(--shadow-soft); }

.button.ghost { color: var(--maroon); background: transparent; border-color: rgba(142, 13, 28, 0.28); }
.button.ghost:hover { transform: translateY(-2px); border-color: var(--maroon); background: rgba(142, 13, 28, 0.05); }

.button.on-dark.primary { background: #fff; color: var(--maroon); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22); }
.button.on-dark.primary:hover { background: var(--paper-warm); }
.button.on-dark.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.button.on-dark.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  padding: clamp(120px, 15vh, 168px) clamp(20px, 5vw, 40px) clamp(72px, 10vh, 110px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}
.rangoli {
  width: min(94vh, 980px);
  height: min(94vh, 980px);
  max-width: 130%;
  transform: translateX(22%);
  opacity: 0.5;
}
.rangoli circle { fill: none; stroke: rgba(142, 13, 28, 0.14); stroke-width: 1; }
.rangoli-petals path { fill: none; stroke: rgba(212, 86, 31, 0.16); stroke-width: 1; }
.rangoli-spin { transform-origin: 300px 300px; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-copy, .hero-emblem { position: relative; z-index: 1; min-width: 0; max-width: 100%; }

.hero-title {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.6rem, 8.4vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.028em;
}
.hero-title .line { display: block; }
.word-connect { color: var(--maroon); }
.word-belong { color: var(--navy); }
.word-grow { color: var(--green); }

.hero-lede {
  max-width: 500px; margin-bottom: 34px;
  color: #3b3027; font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6;
}
.hero-lede em { font-style: italic; color: var(--maroon); font-family: var(--serif); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Emblem + orbit */
.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.orbit { position: absolute; inset: 0; display: grid; place-items: center; }
.orbit-ring {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(142, 13, 28, 0.22);
}
.orbit-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 15px; height: 15px;
  margin: -7.5px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(60, 30, 15, 0.2);
  --r: 50%;
  animation: orbit 26s linear infinite;
}
.dot-1 { background: var(--maroon); --a: 0deg; }
.dot-2 { background: var(--orange); --a: 72deg; }
.dot-3 { background: var(--saffron); --a: 144deg; }
.dot-4 { background: var(--navy); --a: 216deg; }
.dot-5 { background: var(--green); --a: 288deg; }
@keyframes orbit {
  from { transform: rotate(var(--a)) translateX(min(50%, 230px)) rotate(calc(-1 * var(--a))); }
  to   { transform: rotate(calc(var(--a) + 360deg)) translateX(min(50%, 230px)) rotate(calc(-1 * var(--a) - 360deg)); }
}

.hero-mark {
  position: relative;
  width: 78%;
  border-radius: 50%;
  background: #fdf5ec;
  box-shadow: 0 30px 70px rgba(70, 25, 12, 0.18), 0 0 0 1px rgba(142, 13, 28, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: transform 200ms ease;
  will-change: transform;
}
.hero-mark img { width: 100%; border-radius: 50%; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(142, 13, 28, 0.3);
  border-radius: 14px;
  display: grid; place-items: start center;
  padding-top: 7px;
  z-index: 1;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--maroon); animation: cue 1.7s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(8px); opacity: 1; } }

/* ---------- Pillars ---------- */
.pillars {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar {
  position: relative;
  padding: clamp(34px, 4vw, 52px) clamp(24px, 3vw, 40px);
  transition: background 300ms ease;
}
.pillar:not(:last-child) { border-right: 1px solid var(--line); }
.pillar:hover { background: rgba(255, 255, 255, 0.55); }
.pillar-ic {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 22px;
  border-radius: 15px; color: #fff;
}
.pillar-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-connect { background: var(--maroon); }
.ic-belong { background: var(--navy); }
.ic-grow { background: var(--green); }
.pillar h3 { color: var(--ink); }
.pillar p { margin: 0; color: var(--muted); }

/* ---------- Scroll reveal ----------
   Base state is the VISIBLE end-state, so content always shows for
   no-JS, print, reduced-motion, and any environment that freezes
   CSS transitions. The hidden pre-animation state is opt-in via the
   .anim class (added by JS) and only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .anim [data-reveal] {
    opacity: 0; transform: translateY(26px);
    transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1), transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .anim [data-reveal].is-visible { opacity: 1; transform: none; }
  /* fallback: show instantly (no transition) if the compositor never animates */
  .anim [data-reveal].reveal-instant { transition: none; }
  .anim [data-reveal-delay="1"] { transition-delay: 110ms; }
  .anim [data-reveal-delay="2"] { transition-delay: 220ms; }
}

@media (prefers-reduced-motion: reduce) {
  .rangoli-spin, .orbit-dot, .scroll-cue span { animation: none; }
}
