/* Evergreen.ai Financial Decisions Study, static page.
   Same type, colours and footer as the after-closing homepage. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url(fonts/cormorant-garamond.woff2) format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url(fonts/cormorant-garamond-italic.woff2) format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Gothic A1";
  src: url(fonts/gothic-a1-300.woff2) format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Gothic A1";
  src: url(fonts/gothic-a1-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Gothic A1";
  src: url(fonts/gothic-a1-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Gothic A1", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ink: #141414;
  --ink-soft: #3f3b37;
  --ink-meta: #6b665f;
  --paper: #fdfcfa;
  --tint: #f4f2ee;
  --rule: #e4e0d9;
  --on-dark: #eeedeb;
  --on-dark-soft: rgba(238, 237, 235, 0.74);
  --on-dark-meta: rgba(238, 237, 235, 0.56);
  --blue: #7094fb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

em {
  font-style: italic;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ───── Header ───── */

header.site {
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

header.site .wrap {
  display: flex;
  align-items: center;
  height: 68px;
}

.logo img {
  height: 26px;
  width: auto;
}

/* ───── Hero ───── */

.hero {
  position: relative;
  overflow: hidden;
  background: #0e0e0e;
  color: var(--on-dark);
  padding: 96px 0 104px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    1200px 1020px at 50% 116%,
    #7094fb 0%,
    #5873c0 20%,
    #3f5185 40%,
    #334067 50%,
    #273049 60%,
    #1a1f2c 70%,
    #14161d 76%,
    rgba(14, 14, 14, 0) 82%
  );
  opacity: 0.42;
}

.hero-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 72px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero .subhead {
  font: 400 italic clamp(22px, 2.2vw, 28px) / 1.3 var(--serif);
  color: var(--on-dark);
  margin: 0 0 22px;
}

.hero .lede {
  font-weight: 300;
  font-size: 19px;
  line-height: 1.65;
  color: var(--on-dark-soft);
  max-width: 600px;
  margin: 0 0 36px;
}

.cta {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 9999px;
  background: var(--on-dark);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
}

.cta:hover {
  background: #fff;
}

.cta:focus-visible,
.cover:focus-visible,
footer.site a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.hero .meta {
  font-size: 14px;
  color: var(--on-dark-meta);
  margin: 22px 0 0;
}

.cover {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
}

.cover img {
  border-radius: 4px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  transform: rotate(2deg);
}

.cover-tag {
  position: absolute;
  right: -12px;
  bottom: 28px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ───── Findings ───── */

.findings {
  padding: 104px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head h2,
.method h2 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  counter-reset: finding;
}

.ledger li {
  counter-increment: finding;
  position: relative;
  padding: 28px 0 28px 56px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.ledger li::before {
  content: counter(finding, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 30px;
  font: 400 italic 22px/1 var(--serif);
  color: var(--ink-meta);
}

/* ───── Methodology ───── */

.method {
  background: var(--tint);
  padding: 104px 0;
}

.method-body {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}

.method p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.method .floor {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 600;
}

/* ───── Footer (matches the after-closing homepage) ───── */

footer.site {
  background: #000;
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

footer.site .logo img {
  height: 24px;
}

.foot-col .lab {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 16px;
}

.foot-col a {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s;
}

.foot-col a:hover {
  color: #fff;
}

.foot-bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
}

.foot-bottom p {
  margin: 0 0 14px;
  line-height: 1.75;
}

.foot-bottom p:last-child {
  margin-bottom: 0;
}

.foot-bottom a {
  color: rgba(255, 255, 255, 0.82);
}

/* ───── Narrow screens ───── */

@media (max-width: 960px) {
  .hero-body,
  .section-head,
  .method-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .cover {
    max-width: 260px;
    justify-self: start;
  }

  .ledger {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .hero .lede {
    font-size: 17px;
  }

  .findings,
  .method {
    padding: 72px 0;
  }

  .ledger li {
    padding-left: 44px;
    font-size: 16px;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
