/* ==================================================
   Home page sections — Figma "Desktop - 1" (9052:931, 1440 x 8562)
   All desktop values are the literal Figma measurements; the media
   queries at the bottom take over below the 1440px design width.
   Shared section primitives (.eyebrow, .section-title, .lead, .body-sm,
   br.br-d) live in base.css so every page can use them.
   ================================================== */

/* --------------------------------------------------
   Hero — 9052:609 (copy) + 9052:963 (portrait)
   Occupies y 101 → 917, i.e. 816px tall
   -------------------------------------------------- */

.hero {
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 816px;
}

.hero__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  /* Figma: copy block starts at y 285 → 184px below the 101px header */
  padding-top: 184px;
  max-width: 586px;
}

/* Poppins Bold 80/84 — the only heading in the design set in Poppins */
.hero__title {
  margin: 0;
  color: var(--color-text-strong);
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  line-height: 84px;
  letter-spacing: -3.2px;
}

.hero__title .accent {
  color: var(--color-accent);
}

.hero__text {
  max-width: 512px;
}

.hero__actions {
  padding-top: 16px;
}

.hero__cta {
  width: 249px;
  height: 56px;
}

/* Portrait: 716x716 at x683 y129 — 23px wider than the content column */
.hero__media {
  position: relative;
  flex: none;
  width: 716px;
  height: 716px;
  margin-top: 28px;
  margin-right: -23px;
}

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

/* Bottom fade into the page background — 630x288 at x746 y571 */
.hero__fade {
  position: absolute;
  left: 63px;
  top: 442px;
  width: 630px;
  height: 288px;
  background-image: linear-gradient(to bottom, rgba(18, 20, 19, 0), #121413);
  pointer-events: none;
}

/* --------------------------------------------------
   Stats band — 9052:953/954/955 with 0.6px #82e66d rules
   Full-bleed band from y 917 to y 1089
   -------------------------------------------------- */

.stats {
  display: grid;
  /* Dividers sit at x 511 and x 980 of 1440 */
  grid-template-columns: 511fr 469fr 460fr;
  border-top: 0.6px solid var(--color-accent);
  border-bottom: 0.6px solid var(--color-accent);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  /* Keeps the two 0.6px rules exactly 172px apart, as in the design */
  padding-block: 30px 28px;
}

.stat + .stat {
  border-left: 0.6px solid var(--color-accent);
}

/* The design nudges stats 1 and 3 off their cell centres (+22px / -50px). */
.stat--1 {
  padding-left: 44px;
}

.stat--3 {
  padding-right: 100px;
}

.stat__value {
  margin: 0;
  color: var(--color-accent);
  font-size: 80px;
  font-weight: 700;
  line-height: 84px;
  letter-spacing: -3.2px;
}

.stat__label {
  margin: 0;
  color: #fff;
}

/* --------------------------------------------------
   Statement — 9052:652 (heading) + 9052:653 (copy)
   -------------------------------------------------- */

.statement {
  padding-top: 74px;
}

.statement__text {
  margin-top: 33px;
}

/* --------------------------------------------------
   Showcase image — 9052:655 (1315 x 773.14, radius 48)
   -------------------------------------------------- */

.showcase {
  margin-top: 74px;
}

.showcase__frame {
  overflow: hidden;
  height: 773.14px;
  background-color: var(--color-card);
  border: 1px solid var(--line-strong);
  border-radius: 48px;
}

.showcase__frame img {
  width: 100%;
  height: 771.14px;
  object-fit: cover;
}

/* --------------------------------------------------
   Philosophy — 9051:474 (12-col grid, cols 1-5 / 7-12)
   -------------------------------------------------- */

.philosophy {
  margin-top: 102px;
}

.philosophy__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.philosophy__head {
  display: flex;
  grid-column: 1 / span 5;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* Poppins SemiBold 80/84, -0.96px tracking */
.philosophy__title {
  margin: 0;
  max-width: 532px;
  color: var(--color-text-strong);
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 600;
  line-height: 84px;
  letter-spacing: -0.96px;
}

.philosophy__body {
  display: flex;
  grid-column: 7 / span 6;
  flex-direction: column;
  gap: 48px;
}

.philosophy__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Founders story panel — #1e2020, radius 48, 33px padding */
.founders {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Figma's 33px padding is measured through the border */
  padding: 32px;
  background-color: var(--color-panel);
  border: 1px solid var(--line-strong);
  border-radius: 48px;
}

.founders__title {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* --------------------------------------------------
   Process — 9052:1383 (heading) + 9052:1390 (steps)
   -------------------------------------------------- */

.process {
  margin-top: 138px;
  /* The step row is 1384px wide — 72px past the content column */
  overflow: hidden;
}

.process__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.process__lead {
  padding-top: 8px;
  max-width: 672px;
}

.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 328px);
  gap: 24px;
  margin-top: 81px;
}

/* Dashed connector, centred on the 48px markers. It stops at marker 04's
   leading edge: the Figma home frame runs it 18px past the marker, which
   reads as a stray "..." tail (the How it works frame stops short of it). */
.process__steps::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 1056px;
  border-top: 1px dashed var(--color-accent);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.step__marker {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
}

.step__badge {
  display: flex;
  width: 48px;
  height: 48px;
  flex: none;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.step__caret {
  position: absolute;
  left: 48px;
  top: 13px;
  width: 6.4167px;
  height: 8.1667px;
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step__title {
  margin: 0;
  color: var(--color-text-strong);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

/* --------------------------------------------------
   Independent perspective card — 9051:525
   -------------------------------------------------- */

.independent {
  margin-top: 165px;
}

.independent__card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 64px;
  background-color: var(--color-accent);
  border: 1px solid rgba(163, 207, 202, 0.3);
  border-radius: 48px;
}

/* Blurred white bloom in the top-right corner */
.independent__glow {
  position: absolute;
  right: -241px;
  top: -401px;
  width: 587px;
  height: 657px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.46);
  filter: blur(32px);
  pointer-events: none;
}

.independent__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 566px;
  min-height: 296px;
}

/* Poppins SemiBold 48/56 in black */
.independent__title {
  margin: 0;
  color: #000;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  line-height: 56px;
  letter-spacing: -0.96px;
}

.independent__text {
  margin: 0;
  color: var(--color-on-accent-body);
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.2px;
}

/* Outlined pill on the green surface */
.btn--outline-dark {
  position: relative;
  align-self: flex-end;
  margin-bottom: 13px;
  padding: 17px 33px;
  border: 1px solid #000;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: none;
}

.btn--outline-dark:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------
   Archive — 9051:556 / 9051:563 / 9051:581
   -------------------------------------------------- */

.archive {
  margin-top: 164px;
}

.archive__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.archive__lead {
  padding-top: 8px;
  max-width: 672px;
}

.archive__toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 27px;
}

/* Reserve the toolbar's exact box while its partial loads, so the card
   grid below doesn't jump when the markup lands. */
[data-include*="archive-toolbar"] {
  min-height: 57px;
  margin-top: 27px;
}

/* Search field — radius 32, 49px left inset for the icon */
.search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.search__input {
  width: 100%;
  padding: 18px 17px 19px 49px;
  background-color: var(--color-input);
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  color: var(--color-text-strong);
  font-family: inherit;
  font-size: 16px;
  /* 18 + 18 + 19 + 2 borders = the 57px field in the design */
  line-height: 18px;
}

.search__input::placeholder {
  color: var(--color-placeholder);
}

.filters {
  display: flex;
  flex: none;
  gap: 8px;
}

.filter {
  padding: 12px 24px;
  background-color: var(--color-input);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter:hover {
  color: var(--color-text-strong);
}

.filter.is-active {
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 279px;
  gap: 24px;
  margin-top: 48px;
}

/* Case card — radius 32, 33px padding, 279px tall */
.case-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background-color: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: 32px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.case-card:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 245, 192, 0.35);
}

.case-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.case-card__ref {
  margin: 0;
  opacity: 0.6;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 16px;
}

.case-card__status {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-accent);
  font-size: 12px;
  line-height: 16px;
}

.case-card__status img {
  width: 11.6667px;
  height: 11.6667px;
}

.case-card__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Poppins Medium 12/16 category label */
.case-card__tag {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
}

.case-card__title {
  margin: 0;
  color: var(--color-text-strong);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.case-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--line-soft);
}

.case-card__views {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 16px;
}

.case-card__link {
  color: var(--color-accent);
  font-size: 14px;
  line-height: 20px;
}

.case-card__link:hover {
  text-decoration: underline;
}

/* Poppins Regular 20/32 "See More →", right aligned */
.archive__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 48px;
}

.archive__more a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.2px;
}

.archive__more a:hover {
  text-decoration: underline;
}

.archive__empty {
  margin-top: 48px;
  color: var(--color-text-muted);
}

/* --------------------------------------------------
   Industries — 9052:1938 (heading) + 9052:1949 (rows)
   -------------------------------------------------- */

.industries {
  margin-top: 120px;
}

.industries__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.industries__head {
  display: flex;
  grid-column: 1 / span 8;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.industries__note {
  grid-column: 9 / span 4;
  padding-top: 48px;
}

.industries__list {
  margin-top: 64px;
  border-top: 1px solid var(--line-soft);
}

/* Accordion item: the row plus its expandable panel */
.industry-item {
  border-bottom: 1px solid var(--line-soft);
}

.industry {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 32px 16px;
  text-align: left;
}

.industry__head {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 48px;
  min-width: 0;
}

.industry__index {
  opacity: 0.6;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
}

.industry__title {
  margin: 0;
  color: var(--color-text-strong);
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
}

.industry__text {
  flex: 1 1 0;
  min-width: 0;
}

.industry__go {
  display: flex;
  width: 48px;
  height: 48px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.industry__go img {
  width: 7.4px;
  height: 12px;
}

.industry:hover .industry__go {
  border-color: var(--color-accent);
  transform: translateX(2px);
}

.industry-item.is-open .industry__go {
  border-color: var(--color-accent);
  transform: rotate(90deg);
}

/* Collapsible panel. Animating grid-template-rows 0fr -> 1fr needs no fixed
   height, so the copy can reflow freely; where it is unsupported the panel
   simply snaps open instead of sliding. */
.industry__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.industry-item.is-open .industry__panel {
  grid-template-rows: 1fr;
}

/* visibility keeps collapsed copy out of the accessibility tree */
.industry__panel-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.32s;
}

.industry-item.is-open .industry__panel-inner {
  visibility: visible;
  transition-delay: 0s;
}

/* Spans the full row — the 16px inline padding matches the row above it */
.industry__detail {
  padding: 0 16px 36px;
}

/* --------------------------------------------------
   Journal — 9052:2700 (heading) + 9052:2705 (cards)
   -------------------------------------------------- */

.journal {
  margin-top: 111px;
}

.journal__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.journal__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

/* Post card — 539px tall, radius 32, 33px padding */
.post-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  height: 539px;
  padding: 32px;
  background-color: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: 32px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.post-card:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 245, 192, 0.35);
}

.post-card__media {
  overflow: hidden;
  height: 169.88px;
  /* Fixed-height card + space-between: without this the media is the
     item flex-shrink squeezes, landing 5px under the designed height */
  flex: none;
  border-radius: 32px;
}

/* Figma composites a white layer in "saturation" blend mode = desaturated */
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.3s ease, transform 0.4s ease;
}

.post-card:hover .post-card__media img {
  filter: grayscale(0.55);
  transform: scale(1.03);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 48px;
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-card__tag {
  margin: 0;
  color: var(--color-accent);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
}

.post-card__date {
  margin: 0;
  opacity: 0.6;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 16px;
}

.post-card__title {
  margin: 0;
  color: var(--color-text-strong);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.post-card__foot {
  margin-top: 24px;
  padding-top: 25px;
  border-top: 1px solid var(--line-soft);
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-size: 14px;
  line-height: 20px;
}

.post-card__link img {
  width: 9.3333px;
  height: 9.3333px;
}

.post-card__link:hover {
  text-decoration: underline;
}

/* The footer follows the last section by 108px in the design */
.page__main {
  padding-bottom: 108px;
}

/* ==================================================
   Responsive — below the 1440px design width
   ================================================== */

@media (max-width: 1400px) {
  .process__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process__steps::before {
    width: calc(75% + 18px);
  }
}

@media (max-width: 1240px) {
  .section-title,
  .hero__title,
  .philosophy__title {
    font-size: 64px;
    line-height: 68px;
    letter-spacing: -2.2px;
  }

  .hero__media {
    width: 46%;
    height: auto;
    aspect-ratio: 1;
    margin-right: 0;
  }

  .hero__fade {
    left: 8%;
    top: 62%;
    width: 88%;
    height: 40%;
  }

  .showcase__frame {
    height: auto;
    border-radius: 40px;
  }

  .showcase__frame img {
    height: auto;
    aspect-ratio: 1315 / 771;
  }

  .philosophy__head {
    grid-column: 1 / span 6;
  }

  .philosophy__body {
    grid-column: 7 / span 6;
  }

  .industry__title {
    font-size: 26px;
    line-height: 32px;
  }
}

@media (max-width: 1100px) {
  /* Drop the Figma line breaks and let the copy reflow */
  br.br-d {
    display: none;
  }

  .stat--1 {
    padding-left: 0;
  }

  .stat--3 {
    padding-right: 0;
  }

  .hero__inner {
    flex-direction: column;
    min-height: 0;
    padding-bottom: 96px;
  }

  .hero__copy {
    padding-top: 96px;
    max-width: none;
  }

  .hero__media {
    width: 100%;
    max-width: 560px;
    margin-top: 48px;
  }

  .philosophy,
  .process,
  .independent,
  .archive,
  .industries,
  .journal {
    margin-top: 96px;
  }

  .statement {
    padding-top: 56px;
  }

  .philosophy__inner,
  .industries__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .philosophy__head,
  .philosophy__body,
  .industries__head,
  .industries__note {
    grid-column: 1 / -1;
  }

  .industries__note {
    padding-top: 0;
  }

  .process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 24px;
  }

  .process__steps::before,
  .step__caret {
    display: none;
  }

  .archive__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    flex-wrap: wrap;
  }

  .archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .case-card {
    min-height: 279px;
  }

  .journal__grid {
    flex-wrap: wrap;
  }

  .post-card {
    flex-basis: calc(50% - 12px);
    height: auto;
    min-height: 500px;
  }

  .independent__card {
    flex-direction: column;
    padding: 48px;
  }

  .independent__copy {
    min-height: 0;
  }

  .btn--outline-dark {
    align-self: flex-start;
    margin-top: 32px;
    margin-bottom: 0;
  }

  .industry {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .industry__head {
    flex: 1 1 100%;
    gap: 24px;
  }

  .industry__text {
    flex: 1 1 auto;
  }
}

@media (max-width: 720px) {
  .section-title,
  .hero__title,
  .philosophy__title {
    font-size: 40px;
    line-height: 46px;
    letter-spacing: -1.2px;
  }

  .lead,
  .independent__text {
    font-size: 17px;
    line-height: 28px;
  }

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

  .stat + .stat {
    border-left: 0;
    border-top: 0.6px solid var(--color-accent);
  }

  .stat__value {
    font-size: 56px;
    line-height: 60px;
    letter-spacing: -1.6px;
  }

  .showcase__frame,
  .post-card__media {
    border-radius: 24px;
  }

  .founders,
  .independent__card {
    padding: 27px;
    border-radius: 32px;
  }

  .independent__title {
    font-size: 34px;
    line-height: 42px;
  }

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

  .case-card {
    min-height: 0;
  }

  .post-card {
    flex-basis: 100%;
    min-height: 0;
  }

  .industry {
    padding-inline: 0;
  }

  .industry__detail {
    padding-inline: 0;
  }

  .industry__title {
    font-size: 22px;
    line-height: 28px;
  }

  .hero__cta {
    width: auto;
    padding-inline: 24px;
  }

  .page__main {
    padding-bottom: 72px;
  }
}

/* ==================================================
   Wide screens (> 1440px) — the fixed-width pieces
   take their Figma share of the wider rail
   ================================================== */

@media (min-width: 1441px) {
  /* The portrait is 716 of 1312 content (54.57%) in the design */
  .hero__media {
    width: 54.57%;
    height: auto;
    aspect-ratio: 1;
    margin-right: -1.75%;
  }

  .hero__fade {
    left: 8.8%;
    top: 61.7%;
    width: 87.9%;
    height: 40.2%;
  }

  /* Keep the frame's aspect rather than its fixed 773px height */
  .showcase__frame {
    height: auto;
  }

  .showcase__frame img {
    height: auto;
    aspect-ratio: 1315 / 771;
  }

  /* Steps share the wider rail; the connector still stops just past marker 4 */
  .process__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process__steps::before {
    /* marker 04's leading edge = 0.75 x rail + 18 */
    width: calc(75% + 18px);
  }
}
