/* ==========================================================================
   LiftScoreIQ — shared styles
   Aesthetic: editorial minimal, confident typography, warm cream + sharp orange
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
  --orange: #F97316;
  --orange-deep: #C2410C;
  --orange-soft: #FED7AA;
  --ink: #0A0A0A;
  --ink-soft: #262626;
  --grey: #525252;
  --grey-light: #A3A3A3;
  --cream: #FFF7ED;
  --cream-deep: #FEF3E2;
  --navy: #0F172A;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.18);

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

/* Subtle paper texture using SVG noise */
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.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.97 0 0 0 0 0.91 0 0 0 0 0.81 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

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

::selection { background: var(--orange); color: var(--cream); }

/* ============ TYPOGRAPHY ============ */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ============ LAYOUT ============ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
  z-index: 2;
}

.section--tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ============ NAV ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 237, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav__brand-iq { color: var(--orange); }

.nav__brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav__menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}

.nav__menu a {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav__menu a:hover { color: var(--orange-deep); }

.nav__menu a.active { color: var(--orange-deep); font-weight: 500; }

.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.nav__menu a:hover::after, .nav__menu a.active::after { width: 100%; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}

@media (max-width: 768px) {
  .nav__menu { display: none; }
  .nav__menu.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 1.5rem var(--gutter);
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav__toggle { display: block; }
}

/* ============ FOOTER ============ */

.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 2;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.footer__brand-iq { color: var(--orange); }

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--orange-soft);
  margin-bottom: 1.5rem;
}

.footer__contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--grey-light);
  margin-bottom: 0.5rem;
}

.footer__contact a {
  display: block;
  color: var(--cream);
  margin-bottom: 0.5rem;
  font-size: 16px;
  transition: color 0.2s ease;
}

.footer__contact a:hover { color: var(--orange); }

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.footer__nav-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--grey-light);
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer__nav-col a {
  display: block;
  color: var(--cream);
  margin-bottom: 0.5rem;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer__nav-col a:hover { color: var(--orange); }

.footer__bottom {
  border-top: 1px solid rgba(255, 247, 237, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 13px;
  color: var(--grey-light);
}

.footer__legal { font-style: italic; font-family: var(--font-display); }

/* ============ CHEVRON MARK ============ */

.mark {
  display: inline-block;
  position: relative;
}

.mark svg { display: block; }

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============ ANIMATIONS ============ */

@keyframes liftIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes chevronPulse {
  0%, 100% { opacity: var(--target-opacity, 1); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.lift-in {
  animation: liftIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.lift-in:nth-child(1) { animation-delay: 0.05s; }
.lift-in:nth-child(2) { animation-delay: 0.18s; }
.lift-in:nth-child(3) { animation-delay: 0.32s; }
.lift-in:nth-child(4) { animation-delay: 0.48s; }
.lift-in:nth-child(5) { animation-delay: 0.62s; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ HERO (homepage) ============ */

.hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(5rem, 12vw, 9rem);
  position: relative;
  overflow: hidden;
}

.hero__eyebrow {
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-variation-settings: "opsz" 144;
  margin-bottom: 2rem;
  max-width: 14ch;
}

.hero__headline-period {
  color: var(--orange);
}

.hero__sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--grey);
  max-width: 38ch;
  line-height: 1.35;
  margin-bottom: 2rem;
}

.hero__supporting {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero__chevrons {
  position: absolute;
  right: clamp(-2rem, -2vw, 2rem);
  top: 10%;
  width: clamp(220px, 32vw, 420px);
  opacity: 0.95;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero__chevrons {
    position: relative;
    right: auto;
    top: auto;
    width: 160px;
    margin: 0 0 2rem 0;
    opacity: 1;
  }
}

/* ============ DECORATIVE TYPE BLOCK ============ */

.statement {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-variation-settings: "opsz" 144;
}

.statement--center { text-align: center; }

.statement em {
  font-style: italic;
  color: var(--orange-deep);
}

.statement strong {
  font-weight: 600;
}

/* ============ RULE LINE ============ */

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.rule--orange {
  height: 2px;
  background: var(--orange);
  width: 48px;
  margin-bottom: 2rem;
  border: 0;
}

/* ============ TWO-COL EDITORIAL ============ */

.editorial {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 800px) {
  .editorial { grid-template-columns: 1fr; gap: 2rem; }
}

.editorial__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--orange-deep);
  position: sticky;
  top: 100px;
}

.editorial__body p {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}

.editorial__body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 5em;
  float: left;
  line-height: 0.85;
  margin: 0.06em 0.08em -0.05em 0;
  color: var(--orange);
  font-weight: 500;
}

/* ============ CARDS / PLAYS ============ */

.plays {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.play {
  background: var(--cream);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.3s ease;
  cursor: default;
}

.play:hover { background: var(--cream-deep); }

.play__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--orange-deep);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  display: block;
}

.play__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.play__desc {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.6;
}

/* ============ SCROLL REVEAL — PURPLE COW ============ */

.reveal-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 6rem);
}

.reveal-step {
  max-width: 22ch;
}

.reveal-step--center { margin: 0 auto; text-align: center; }
.reveal-step--right { margin-left: auto; text-align: right; }

.reveal-step__label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 1rem;
}

.reveal-step__text {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2rem, 5vw, 3.75rem);
  color: var(--ink);
}

.reveal-step--final .reveal-step__text {
  color: var(--ink);
}

.reveal-step--final .highlight {
  background: var(--orange);
  color: var(--cream);
  padding: 0 0.2em;
  font-style: italic;
  font-weight: 500;
}

/* ============ PAGE HEADER (sub-pages) ============ */

.page-header {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.page-header__eyebrow {
  margin-bottom: 1rem;
}

.page-header__title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.0;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-variation-settings: "opsz" 144;
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.page-header__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--grey);
  max-width: 50ch;
  line-height: 1.4;
}

/* ============ BLOG INDEX ============ */

.posts {
  display: flex;
  flex-direction: column;
}

.post-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease;
  align-items: baseline;
}

.post-row:hover {
  padding-left: 1rem;
}

.post-row:hover .post-row__title { color: var(--orange-deep); }

@media (max-width: 700px) {
  .post-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .post-row__date { font-size: 13px; color: var(--grey-light); }
  .post-row__cta { display: none; }
}

.post-row__date {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--grey);
  font-size: 15px;
}

.post-row__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.post-row__excerpt {
  color: var(--grey);
  font-size: 15px;
  line-height: 1.5;
  max-width: 60ch;
}

.post-row__cta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--orange-deep);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============ ABOUT — STORY ============ */

.story {
  max-width: 720px;
  margin: 0 auto;
}

.story p {
  font-size: 19px;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

.story p:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 2rem;
}

.story p.pullquote {
  font-family: var(--font-display);
  font-size: 30px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--orange-deep);
  letter-spacing: -0.015em;
  text-align: center;
  margin: 3rem 0;
  padding: 0 2rem;
}

@media (max-width: 600px) {
  .story p.pullquote { font-size: 22px; padding: 0; }
}

/* ============ CONTACT ============ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  padding: 2.5rem;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  position: relative;
}

.contact-card__label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 1rem;
}

.contact-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.contact-card__desc {
  color: var(--grey);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.contact-card__link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  border-bottom: 1.5px solid var(--orange);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.contact-card__link:hover { color: var(--orange-deep); }

/* ============ MISC ============ */

.text-center { text-align: center; }

.eyebrow-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.eyebrow-block__line {
  width: 24px;
  height: 1.5px;
  background: var(--orange);
}
