/* ─────────────────────────────────────────────
   Sugar → HubSpot · Plan & Progress
   Single-viewport, consulting-deck aesthetic.
   ───────────────────────────────────────────── */

:root {
  /* Palette */
  --bg:           #FBFAF6;    /* warm paper */
  --bg-edge:      #F4F1E7;    /* faint vignette */
  --navy:         #0E1F44;
  --navy-soft:    #2A3A5E;
  --ink:          #16264A;
  --muted:        #7A7461;
  --muted-soft:   #C9C2AF;
  --line:         #E5DECC;
  --gold:         #B08D43;
  --gold-soft:    #D9C28A;
  --gold-faint:   rgba(176, 141, 67, 0.12);

  /* Type */
  --serif: 'Source Serif Pro', 'Iowan Old Style', 'Georgia', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at top left, var(--bg) 0%, var(--bg-edge) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Page container — fills viewport, distributes sections.
   Header pins to the top, footer to the bottom, and the body
   sections fill the remaining vertical space, centered. */
.page {
  min-height: 100vh;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(24px, 3.2vh, 40px) clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
}

.page-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 3.4vh, 42px);
  padding: clamp(16px, 2.4vh, 28px) 0;
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 900ms var(--ease) var(--delay, 0ms),
    transform 900ms var(--ease) var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Header ─── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  height: 32px;
  width: auto;
  display: block;
}
.meta {
  text-align: right;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
.meta-label { font-weight: 600; color: var(--navy-soft); }
.meta-date  { font-weight: 400; }

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding-top: clamp(8px, 2vh, 24px);
}
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
}
.title .arrow {
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 300;
  margin: 0 0.18em;
  font-size: 0.82em;
  vertical-align: 0.04em;
}
.subtitle {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.005em;
}

/* ─── Stats ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  padding: 0 clamp(12px, 4vw, 64px);
}
.stat {
  text-align: center;
  padding: 0 clamp(12px, 2.5vw, 32px);
  position: relative;
}
.stat--divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: var(--line);
}
.stat-number {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}
.stat-number .suffix {
  font-size: 0.55em;
  font-weight: 400;
  color: var(--gold);
  margin-left: 0.06em;
  letter-spacing: 0;
}
.stat-label {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Section labels (small caps with rules) ─── */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-label .rule {
  flex: 0 1 64px;
  height: 1px;
  background: var(--line);
}

/* ─── Timeline ─── */
.timeline-section {
  padding: 0 clamp(0px, 2vw, 24px);
  min-width: 0;
}
.timeline-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.timeline-wrap::-webkit-scrollbar { display: none; }

.timeline {
  width: 100%;
  min-width: 720px;
  height: auto;
  display: block;
}

.tl-line {
  fill: none;
  stroke-linecap: round;
  stroke-dashoffset: 0;
}
.tl-line--past {
  stroke: var(--navy);
  stroke-width: 1.8;
}
.tl-line--future {
  stroke: var(--muted-soft);
  stroke-width: 1.4;
  stroke-dasharray: 2 6;
}

.tl-dot--done {
  fill: var(--navy);
}
.tl-dot--current {
  fill: var(--gold);
}
.tl-dot--future {
  fill: var(--bg);
  stroke: var(--muted-soft);
  stroke-width: 1.5;
}

.tl-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  opacity: 0.7;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { r: 11; opacity: 0.7; }
  60%  { r: 18; opacity: 0;   }
  100% { r: 18; opacity: 0;   }
}

.tl-milestone path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.tl-milestone-core {
  fill: var(--gold);
}

.tl-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--muted);
}
.tl-sub {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 11px;
  fill: var(--muted);
}
.tl-current-label {
  fill: var(--navy);
  font-weight: 600;
}
.tl-current-label.tl-sub {
  fill: var(--navy-soft);
  font-weight: 500;
}
.tl-gold {
  fill: var(--gold);
  font-weight: 600;
}
.tl-gold.tl-sub {
  fill: var(--gold);
  font-weight: 500;
}

/* ─── Team ─── */
.team-section { padding-top: 4px; }

.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(8px, 1.2vw, 14px);
}

.member {
  position: relative;
  padding: 18px 12px 16px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-align: center;
  transition:
    transform 360ms var(--ease),
    border-color 360ms var(--ease),
    background 360ms var(--ease),
    box-shadow 360ms var(--ease);
}
.member::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 420ms var(--ease);
}
.member:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px -16px rgba(14, 31, 68, 0.18);
}
.member:hover::after {
  width: 36px;
}

.member .name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.member .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.member .status .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  flex: none;
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.footer span {
  display: inline-block;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  min-width: 220px;
}

/* ─── Responsive ─── */
@media (max-width: 880px) {
  .page { gap: 24px; padding: 28px 24px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat--divider::before { display: none; }
  .stat--divider {
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }
  .team { grid-template-columns: repeat(2, 1fr); }
  .header { flex-wrap: wrap; gap: 12px; }
  .logo { height: 26px; }
  .timeline { min-width: 640px; }
  .footer span { padding-top: 14px; }
}

@media (max-width: 480px) {
  .team { grid-template-columns: 1fr 1fr; }
  .title { font-size: 38px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tl-pulse { animation: none; opacity: 0.3; }
  .member { transition: none; }
}
