/* ============================================
   Reformation Partners — Site Redesign
   Palette: warm cream base, deep forest ink,
   copper accent. Inter display + body (sans-serif).
   ============================================ */

:root {
  --cream: #FAF7F1;
  --cream-2: #F3EEE4;
  --ink: #1A1A1A;
  --ink-2: #2E2E2E;
  --ink-soft: #4A4A4A;
  --muted: #808080;
  --copper: #FF2800;
  --copper-soft: #FF6B4F;
  --line: rgba(26, 26, 26, 0.12);
  --line-dark: rgba(250, 247, 241, 0.14);
  --radius: 14px;
  --max: 1200px;
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; }

.display {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}
.display em, h2 em {
  font-style: normal;
  color: var(--copper);
  font-weight: 500;
}

.h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.h3 { font-size: 1.45rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--copper);
  display: inline-block;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 620px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 600; letter-spacing: 0.01em;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--copper); border-radius: 2px;
}
.btn {
  display: inline-block;
  background: var(--ink); color: #fff;
  padding: 12px 26px; border-radius: 100px;
  font-size: 0.92rem; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--ink-2); transform: translateY(-1px); }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 140px; position: relative; overflow: hidden;
  min-height: calc(100vh - 76px);
  display: flex; align-items: center; justify-content: center;
}
.hero .display { max-width: 15ch; margin-bottom: 34px; }
.hero .lede { margin-bottom: 42px; }
.hero-mark {
  position: absolute; right: -60px; top: 40px;
  width: clamp(280px, 34vw, 480px); opacity: 0.07;
  pointer-events: none;
}
.hero-stamp {
  width: clamp(160px, 18vw, 240px);
  height: auto;
  margin: 0 auto 64px;
}
.hero .wrap { text-align: center; }
.hero .hero-sentence { margin: 0 auto; }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.link-arrow {
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.link-arrow::after { content: "→"; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero sentence (linked, from original homepage) ---------- */
.hero-sentence {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  max-width: 42ch;
  color: var(--ink);
}
.flip-wrap {
  display: inline-block;
  text-align: center;
}
.flip-word {
  display: inline-block; white-space: nowrap;
  color: var(--copper);
  will-change: transform, opacity;
}
.flip-word.out { animation: flip-out 0.38s ease-in forwards; }
.flip-word.in { animation: flip-in 0.42s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes flip-out {
  to { opacity: 0; transform: translateY(-0.45em); }
}
@keyframes flip-in {
  from { opacity: 0; transform: translateY(0.45em); }
  to { opacity: 1; transform: none; }
}
.hero-sentence a {
  border-bottom: 2px solid var(--copper);
  transition: color 0.2s, border-color 0.2s;
}
.hero-sentence a:hover { color: var(--copper); }

/* ---------- Dark sections ---------- */
.dark {
  background: var(--ink); color: var(--cream);
}
.dark .eyebrow { color: var(--copper-soft); }
.dark .eyebrow::before { background: var(--copper-soft); }
.dark .lede { color: rgba(250, 247, 241, 0.72); }

/* ---------- Stats band ---------- */
.stats { padding: 90px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  margin-top: 56px;
}
.stat { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500; color: var(--cream); line-height: 1.2;
  margin-bottom: 12px;
}
.stat-num sup { font-size: 0.45em; color: var(--copper-soft); }
.stat-label { font-size: 0.92rem; color: rgba(250, 247, 241, 0.65); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head .lede { margin-top: 22px; }

/* ---------- Pillars (numbered) ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 28px; }
.pillars-3 { grid-template-columns: repeat(3, 1fr); }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 36px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26, 26, 26, 0.08); }
.pillar-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 1rem; color: var(--copper); margin-bottom: 18px; display: block;
}
.pillar h3 { margin-bottom: 14px; }
.pillar-head {
  display: flex; align-items: center; gap: 20px; margin-bottom: 18px;
}
.pillar-head .criteria-icon { margin-bottom: 0; flex-shrink: 0; }
.pillar-head .pillar-num { margin-bottom: 2px; font-size: 0.88rem; }
.pillar-head h3 { margin-bottom: 0; }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; }
.pillar ul { list-style: none; margin-top: 16px; }
.pillar ul li {
  color: var(--ink-soft); font-size: 0.96rem;
  padding: 10px 0 10px 26px; position: relative;
  border-top: 1px solid var(--line);
}
.pillar ul li::before {
  content: "→"; position: absolute; left: 0; color: var(--copper);
  font-size: 0.85rem;
}

/* ---------- Platform banner ---------- */
.platform-banner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 72px 64px; text-align: center;
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.04);
}
.platform-banner h1 {
  margin-bottom: 22px;
  font-size: clamp(1rem, 5.4vw, 3.9rem);
  white-space: nowrap;
}
.platform-banner .lede { max-width: 62ch; margin: 0 auto; }
@media (max-width: 720px) {
  .platform-banner { padding: 44px 20px; }
}

/* ---------- Criteria cards ---------- */
.criteria-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 28px; }
.criteria-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 40px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.criteria-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26, 26, 26, 0.08); }
.criteria-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--copper);
}
.criteria-icon svg { width: 26px; height: 26px; }
.criteria-card .metric {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 500;
  line-height: 1.5;
  margin-bottom: 8px;
}
.criteria-card .metric span { color: var(--copper); }
.criteria-card h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }

/* ---------- Logo strip / marquee ---------- */
.logo-strip { padding: 70px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream-2); }
.logo-strip .wrap > p {
  text-align: center; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 40px;
}
.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 48px 64px; align-items: center;
}
.logo-row img {
  height: 34px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s;
}
.logo-row img:hover { filter: grayscale(0) opacity(1); }

/* ---------- Logo marquee (chyron) ---------- */
.marquee { overflow: hidden; position: relative; }
.marquee-track {
  display: flex; align-items: center; gap: 72px;
  width: max-content; padding-left: 72px;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 36px; width: auto; max-width: 160px; object-fit: contain;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Portfolio grid ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.company {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.company:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26, 26, 26, 0.08); }
.company-logo {
  height: 56px; display: flex; align-items: center; margin-bottom: 22px;
}
.company-logo img { max-height: 44px; max-width: 170px; width: auto; object-fit: contain; }
.company-loc {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--copper); margin-bottom: 10px;
}
.company-desc { font-size: 0.95rem; color: var(--ink-soft); flex: 1; }
.company-link {
  margin-top: 20px; font-size: 0.88rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink);
}
.company-link::after { content: "↗"; color: var(--copper); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; padding-top: 32px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.person:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26, 26, 26, 0.08); }
.person img.headshot {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  margin: 0 26px; border: 3px solid var(--cream-2);
}
.person-info { padding: 20px 26px 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.person-info h3 { font-size: 1.25rem; margin-bottom: 4px; }
.person-role { font-size: 0.88rem; color: var(--muted); }
.person-info .li {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px;
  background: var(--cream-2); display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.person-info .li:hover { background: var(--ink); color: var(--cream); }

/* ---------- Contact ---------- */
.contact-card {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 32px; align-self: stretch; box-sizing: border-box;
}

/* ---------- Bio pages ---------- */
.bio-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 72px; align-items: start;
}
.bio-photo {
  width: 242px; height: 242px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--cream-2);
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.08);
}
.bio-text {
  font-size: 1.1rem; line-height: 1.75; color: var(--ink-soft);
  max-width: 60ch; margin-top: 28px;
}
@media (max-width: 720px) {
  .bio-layout { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split .sticky { position: sticky; top: 120px; }

/* ---------- CTA ---------- */
.cta { padding: 120px 0; text-align: center; }
.cta .h2 { max-width: 20ch; margin: 0 auto 24px; }
.cta .lede { margin: 0 auto 44px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(250, 247, 241, 0.6); padding: 64px 0 40px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap; margin-bottom: 56px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.footer-brand img { width: 38px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand span { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: rgba(250, 247, 241, 0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding-top: 28px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 90px 0 70px; }
.page-hero .display { font-size: clamp(2.4rem, 5.5vw, 4.4rem); max-width: 18ch; }
.page-hero .lede { margin-top: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pillars, .pillars-3, .criteria-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split .sticky { position: static; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 24px 32px; gap: 20px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .portfolio-grid, .team-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding: 70px 0 60px; }
}
