/* ===== Custom Properties ===== */
:root {
  --orange: #E8753A;
  --cream: #F5F0E8;
  --maroon: #7A2E2E;
  --sage: #8B9E8B;
  --mauve: #9E7B7B;
  --dark: #1E1A17;
  --mint: #A8BFA8;
  --white: #FFFFFF;

  --font-mono: 'DM Mono', monospace;
  --font-serif: 'DM Serif Display', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-pad: 6rem 2rem;
  --max-width: 1200px;
  --nav-height: 64px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ===== Focus ===== */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.newsletter__input:focus-visible {
  outline-color: var(--cream);
}

/* ===== Typography ===== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 1rem;
}

.section-label--light {
  color: var(--cream);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.section-heading--light {
  color: var(--cream);
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--dark);
  height: var(--nav-height);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.25em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--cream);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0;
  flex-shrink: 0;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 101;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__menu {
  display: flex;
  gap: 2rem;
}

.nav__menu a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.7);
  transition: color 0.2s;
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: var(--dark);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: grid;
  gap: 2px;
  /* grid-template set by JS */
}

.grid-cell {
  background-color: var(--orange);
  transition: filter 120ms ease-out;
}

.hero__content {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  text-align: left;
  max-width: 640px;
  padding: 2rem 2rem 6rem 4rem;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 1rem 2.5rem;
  background: var(--cream);
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s, transform 0.2s;
}

.hero__cta:hover {
  background: var(--white);
  transform: translateY(-2px);
}

/* ===== Press Logos ===== */
.press {
  background: var(--cream);
  padding: 3rem 2rem;
  border-bottom: 1px solid rgba(30, 26, 23, 0.08);
}

.press__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.press__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(30, 26, 23, 0.4);
  white-space: nowrap;
}

.press__logos {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.press__logo {
  height: 24px;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.press__logo:hover {
  opacity: 0.7;
}

/* ===== Research Focus ===== */
.research {
  background: var(--cream);
  padding: var(--section-pad);
}

.research__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.research__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.research__card {
  padding: 2rem 1.75rem;
  min-height: 120px;
  border-radius: 4px;
  color: var(--cream);
  display: flex;
  align-items: flex-end;
}

.research__card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0;
}

.research__card--orange { background: var(--orange); }
.research__card--sage { background: var(--sage); }
.research__card--mauve { background: var(--mauve); }
.research__card--dark { background: var(--dark); }
.research__card--mint { background: var(--mint); color: var(--dark); }
.research__card--maroon { background: var(--maroon); }

/* ===== Track Record ===== */
.track-record {
  background: var(--white);
  padding: var(--section-pad);
}

.track-record__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.track-record__desc {
  font-size: 1.1rem;
  color: rgba(30, 26, 23, 0.65);
  max-width: 560px;
  margin-bottom: 3rem;
}

.track-record__chart {
  max-width: 700px;
}

.track-record__svg {
  width: 100%;
  height: auto;
}

.chart-svg__label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: rgba(30, 26, 23, 0.4);
}

.chart-svg__legend {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: rgba(30, 26, 23, 0.6);
}

.track-record__footnote {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(30, 26, 23, 0.35);
  margin-top: 2rem;
}

/* ===== Judgment ===== */
.judgment {
  background: var(--cream);
  padding: var(--section-pad);
}

.judgment__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.judgment__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.judgment__card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 2px;
  border: 1px solid rgba(30, 26, 23, 0.06);
  position: relative;
  overflow: hidden;
}

.judgment__card--warm {
  background: linear-gradient(135deg, rgba(158, 123, 123, 0.25), rgba(232, 117, 58, 0.2));
  border: none;
  color: var(--dark);
}

/* Grid decoration in top-right corner */
.judgment__grid-deco {
  position: absolute;
  top: 16px;
  right: 16px;
  opacity: 0.55;
  pointer-events: none;
}

.judgment__number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(30, 26, 23, 0.3);
  display: block;
  margin-bottom: 0.75rem;
}

.judgment__card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.judgment__card p {
  font-size: 0.95rem;
  color: rgba(30, 26, 23, 0.65);
  line-height: 1.55;
}

/* ===== Briefings ===== */
.briefings {
  background: var(--white);
  padding: var(--section-pad);
}

.briefings__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.briefings__carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  margin-top: 2rem;
}

.briefings__carousel::-webkit-scrollbar {
  height: 4px;
}

.briefings__carousel::-webkit-scrollbar-track {
  background: rgba(30, 26, 23, 0.04);
}

.briefings__carousel::-webkit-scrollbar-thumb {
  background: rgba(30, 26, 23, 0.15);
  border-radius: 2px;
}

.briefings__card {
  min-width: 320px;
  max-width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--cream);
  padding: 2rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.briefings__issue {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(30, 26, 23, 0.35);
}

.briefings__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(30, 26, 23, 0.4);
}

.briefings__card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.3;
}

.briefings__card p {
  font-size: 0.9rem;
  color: rgba(30, 26, 23, 0.6);
  line-height: 1.5;
  flex-grow: 1;
}

.briefings__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(30, 26, 23, 0.08);
}

.briefings__card--sage { background: var(--sage); color: var(--cream); }
.briefings__card--sage .briefings__issue { color: rgba(245, 240, 232, 0.5); }
.briefings__card--sage .briefings__date { color: rgba(245, 240, 232, 0.6); }
.briefings__card--sage p { color: rgba(245, 240, 232, 0.8); }
.briefings__card--sage .briefings__tag { color: var(--cream); border-color: rgba(245, 240, 232, 0.2); }

.briefings__card--mauve { background: var(--mauve); color: var(--cream); }
.briefings__card--mauve .briefings__issue { color: rgba(245, 240, 232, 0.5); }
.briefings__card--mauve .briefings__date { color: rgba(245, 240, 232, 0.6); }
.briefings__card--mauve p { color: rgba(245, 240, 232, 0.8); }
.briefings__card--mauve .briefings__tag { color: var(--cream); border-color: rgba(245, 240, 232, 0.2); }

.briefings__card--orange { background: var(--orange); color: var(--cream); }
.briefings__card--orange .briefings__issue { color: rgba(245, 240, 232, 0.5); }
.briefings__card--orange .briefings__date { color: rgba(245, 240, 232, 0.6); }
.briefings__card--orange p { color: rgba(245, 240, 232, 0.8); }
.briefings__card--orange .briefings__tag { color: var(--cream); border-color: rgba(245, 240, 232, 0.2); }

.briefings__nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.briefings__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(30, 26, 23, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--dark);
  transition: border-color 0.2s, background 0.2s;
}

.briefings__arrow:hover {
  border-color: var(--dark);
  background: rgba(30, 26, 23, 0.04);
}

/* ===== Leadership ===== */
.leadership {
  background: var(--cream);
  padding: var(--section-pad);
}

.leadership__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.leadership__desc {
  font-size: 1.05rem;
  color: rgba(30, 26, 23, 0.6);
  max-width: 560px;
  margin-bottom: 1rem;
}

.leadership__list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.leadership__card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding-left: 1.5rem;
}

.leadership__card--orange {
  border-left: 4px solid var(--orange);
}

.leadership__card--sage {
  border-left: 4px solid var(--sage);
}

.leadership__photo {
  width: 180px;
  min-width: 180px;
  aspect-ratio: 1;
  background: rgba(30, 26, 23, 0.06);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leadership__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leadership__info {
  flex: 1;
}

.leadership__card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.leadership__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange);
  display: block;
  margin-bottom: 0.75rem;
}

.leadership__card p {
  font-size: 0.95rem;
  color: rgba(30, 26, 23, 0.6);
  line-height: 1.6;
  max-width: 500px;
}

/* ===== Foresight ===== */
.foresight {
  background: var(--cream);
  padding: 3rem 2rem;
  border-top: 1px solid rgba(30, 26, 23, 0.06);
}

.foresight__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.foresight__names {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 1rem;
}

.foresight__member {
  display: flex;
  flex-direction: column;
  min-width: 160px;
}

.foresight__name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(30, 26, 23, 0.7);
}

.foresight__role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(30, 26, 23, 0.35);
  margin-top: 0.15rem;
}

/* ===== Newsletter ===== */
.newsletter {
  background: var(--maroon);
  padding: var(--section-pad);
}

.newsletter__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter__desc {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: 2.5rem;
}

.newsletter__form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.newsletter__input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(245, 240, 232, 0.2);
  background: rgba(245, 240, 232, 0.08);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 2px 0 0 2px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter__input::placeholder {
  color: rgba(245, 240, 232, 0.4);
}

.newsletter__input:focus {
  border-color: rgba(245, 240, 232, 0.5);
}

.newsletter__submit {
  padding: 1rem 2rem;
  background: var(--cream);
  color: var(--maroon);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0 2px 2px 0;
  transition: background 0.2s;
}

.newsletter__submit:hover {
  background: var(--white);
}

.newsletter__note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.35);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: var(--cream);
  padding: 4rem 2rem 2rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__brand {
  margin-bottom: 3rem;
}

.footer__logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo .nav__logo-icon {
  border-color: var(--cream);
  color: var(--cream);
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.4);
  margin-top: 0.5rem;
}

.footer__links {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.65);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--cream);
}

.footer__bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  padding-top: 2rem;
}

.footer__bottom p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.25);
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .hero__content {
    padding: 2rem 2rem 6rem 2rem;
  }

  .research__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .judgment__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 4rem 1.25rem;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--dark);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav__menu.is-open {
    transform: translateX(0);
  }

  .nav__menu a {
    font-size: 1rem;
    color: var(--cream);
  }

  .hero {
    align-items: flex-end;
    justify-content: flex-start;
  }

  .hero__content {
    padding: 2rem 1.25rem 4rem 1.25rem;
  }

  .hero__headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .press__inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .press__logos {
    justify-content: center;
    gap: 2rem;
  }

  .research__grid {
    grid-template-columns: 1fr;
  }

  .judgment__grid {
    grid-template-columns: 1fr;
  }

  .leadership__card {
    flex-direction: column;
    gap: 1.5rem;
  }

  .leadership__photo {
    width: 140px;
    min-width: 140px;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .newsletter__input {
    border-radius: 2px;
  }

  .newsletter__submit {
    border-radius: 2px;
  }

  .foresight__names {
    gap: 1rem 1.5rem;
  }

  .foresight__member {
    min-width: 140px;
  }
}
