/* ==========================================================================
   Homepage — page-specific composition
   Shared tokens: css/base/variables.css | Shared components: css/components/*
   Bootstrap row/col used for multi-column layout; visual styles remain custom.
   ========================================================================== */

/* ---- Hero ----------------------------------------------------------------
   Design (1440px artboard) — exact measurements from UI.jpg:
   Header: 98px tall. Logo: 110px × 45px. Nav: 14px. Button: 48px height.
   Badge: 12px/30px. H1: 56px. Body: 14px. CTA: 48px × 14px font.
   Illustration: right 58%, positioned from left: 38%.
   ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: visible;
  background-color: transparent;
}

.hero__inner {
  position: relative;
  min-height: 547px;
  padding-top: 124px;
  padding-bottom: 110px;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 445px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  height: 35px;
  padding: 0 24px 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: #e1dfff;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: #6a6a70;
  white-space: nowrap;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #17c500;
}

.hero__content h1 {
  margin: 38px 0 0;
  font-size: 50px;
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  color: var(--color-primary);
  text-transform: capitalize;
}

/* ---- Typewriter effect --------------------------------------------------- */

.typewriter {
  position: relative;
}

.typewriter.is-typing::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 3px;
  vertical-align: -0.05em;
  background-color: currentColor;
  animation: typewriter-cursor 0.75s step-end infinite;
}

@keyframes typewriter-cursor {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter.is-typing::after {
    display: none;
  }
}

.hero__body {
  margin: 20px 0 0;
  max-width: 472px;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--color-body);
}

.hero__body--second {
  margin-top: 21px;
}

.hero__cta {
  margin-top: 38px;
  box-sizing: border-box;
  height: 48px;
  padding: 0 28px;
  gap: 10px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: var(--fw-semibold);
}

.hero__cta svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

/* Illustration: hidden by default, shown at desktop */
.hero__illustration {
  display: none;
}

/* Artboard matches hero-anim / meta.json (1024×678) for exact ball placement */
.hero__art {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 678;
}

.hero__video,
.hero__illustration-img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/*
  Animation stage — full artboard (transparent WebGL).
  Words + ball are offset in JS to meta.json center so they aren't clipped.
*/
.hero__ball-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
  background: transparent;
}

.hero__ball-stage #hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Particles hold their ball shape as the final frame — canvas stays visible.
   The #final-ball element is an empty placeholder used only by standalone mode. */
.hero__ball-stage #hero-canvas.is-done {
  /* standalone only: main.js adds is-done outside of embed mode */
  visibility: hidden;
}

/* ---- Desktop hero illustration ------------------------------------------- */
@media (min-width: 992px) {
  .hero__inner {
    overflow: visible;
  }

  .hero__illustration {
    display: block;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 32%;
    right: 34px;
    bottom: 0;
    margin: 0;
    pointer-events: none;
    overflow: visible;
  }

  .hero__art {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: 100%;
    aspect-ratio: 1024 / 678;
    overflow: visible;
  }

  .hero__illustration-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
  }
}

/* ---- Tablet / mobile hero ------------------------------------------------ */
@media (max-width: 991px) {
  .hero__inner {
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 56px;
    display: flex;
    flex-direction: column;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-top: 28px;
  }

  .hero__body {
    margin-top: 16px;
    max-width: 44ch;
  }

  .hero__cta {
    margin-top: 28px;
    height: auto;
    padding: 14px 28px;
  }

  .hero__illustration {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 420px);
    height: auto;
    margin: 32px 0 0;
  }

  .hero__art {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 678;
  }

  .hero__illustration-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

  /* Hide WebGL canvas on small screens — ball is not shown on mobile */
  .hero__ball-stage {
    display: none;
  }
}

@media (max-width: 575px) {
  .hero__inner {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero__content h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-top: 20px;
  }
}

/* ---- Philosophy (About) -------------------------------------------------- */

.philosophy {
  background-color: #bfbfe312;
  background-size: 24px 24px;
}

.philosophy {
  padding-top: 20px;
  padding-bottom: 20px;
}

.philosophy__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: contain;
  justify-content: contain;
}

.philosophy__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: contain;
}

.philosophy__content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.philosophy__content .eyebrow {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #363535;
  margin-bottom: 16px;
}

.philosophy__content h2 {
  font-size: 46px;
  font-weight: var(--fw-extrabold);
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 16px;
  text-align: right;
  max-width: 600px;
}

.philosophy__content h2 .text-accent {
  display: block;
  color: var(--color-accent);
  min-height: 1.2em;
}

.philosophy__content>p {
  max-width: 503px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: 48px;
  text-align: right;
}

.philosophy__accent {
  color: var(--color-accent);
  font-weight: var(--fw-semibold);
}

.philosophy__features {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  width: 100%;
  justify-content: flex-end;
  padding-left: 0rem;
}

.philosophy__feature {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 240px;
  padding: 0 14px;
  position: relative;
  text-align: left;
}

.philosophy__feature:first-child {
  padding-left: 0;
}

.philosophy__feature:last-child {
  padding-right: 0;
}

.philosophy__feature:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background-color: rgba(var(--color-primary-rgb), 0.12);
}

.philosophy__feature .icon-badge {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background-color: var(--color-icon-bg);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.philosophy__feature .icon-badge svg {
  width: 22px;
  height: 22px;
}

.philosophy__feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.philosophy__feature h3 {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  color: #15157d;
  margin: 0;
}

.philosophy__feature p {
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 1.45;
  color: #4b4b4b;
  margin: 0;
}

@media (min-width: 768px) {
  .philosophy__content h2 {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .philosophy__content {
    align-items: flex-start;
  }

  .philosophy__content h2 {
    font-size: 32px;
    text-align: left;
  }

  .philosophy__content>p {
    text-align: left;
    max-width: 100%;
  }

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

  .philosophy__feature {
    padding: 0;
    max-width: 100%;
    width: 100%;
  }

  .philosophy__feature:not(:first-child)::before {
    display: none;
  }

  .philosophy__image {
    max-width: 100%;
  }
}

/* ---- Shared card-section container (Research, Portfolios, Team, Insights) --
   Figma 1440px artboard: content from x=240 to x=1200 = 960px wide.
   Container padding 24px each side → max-width = 960 + 48 = 1008px.
   ---------------------------------------------------------------- */
.research .container,
.portfolios .container,
.team-teaser .container,
.insights .container {
  max-width: 1008px;
}

/* ---- Research Reports ---------------------------------------------------- */

.research__header {
  margin-bottom: var(--space-7);
  text-align: center;
}

.research__intro {
  font-size: var(--fs-body);
  max-width: 640px;
  margin-inline: auto;
  color: var(--color-body);
}

.research__header h2 {
  margin-block: var(--space-4);
}

.research__see-all {
  margin-top: var(--space-7);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--color-accent);
  font-weight: var(--fw-semibold);
}

.research__see-all:hover {
  color: var(--color-primary);
}

/* ---- Free sample report banner ------------------------------------------- */

.sample-banner {
  position: relative;
  background-color: var(--bg-navy);
  padding-block: 64px;
  overflow: hidden;
}

.sample-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../assets/bg.jpg");
  background-repeat: repeat;
  background-size: 1440px auto;
  background-position: center top;
  opacity: 0.12;
  pointer-events: none;
}

.sample-banner .container {
  position: relative;
  z-index: 1;
}

.sample-banner__card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background-color: #ffffff;
  background-image: url("../../assets/bg.jpg");
  background-repeat: repeat;
  background-size: 1440px auto;
  background-position: center top;
  border-radius: 28px;
  padding: 40px 48px 0 56px;
  min-height: 240px;
  overflow: hidden;
  max-width: 1180px;
  margin: 0px auto;
}

.sample-banner__content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 480px;
  padding-bottom: 40px;
}

.sample-banner__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 1.7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #797979;
  margin-bottom: 14px;
}

.sample-banner__content h2 {
  font-size: 40px;
  font-weight: var(--fw-extrabold);
  line-height: 1.18;
  color: var(--color-primary);
  margin: 0 0 14px;
}

.sample-banner__content h2 .text-accent {
  color: var(--color-accent);
}

.sample-banner__content p {
  font-size: 15px;
  font-weight: var(--fw-regular);
  line-height: 1.6;
  color: #4b4b4b;
  margin: 0;
  max-width: 40ch;
}

/* Right cluster: hand + button (pushed to the right) */
.sample-banner__aside {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
  align-self: flex-end;
}

.sample-banner__visual {
  position: relative;
  flex: 0 0 280px;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
  overflow: visible;
}

.sample-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: screen;
  transform: scaleX(-1);
}

.sample-banner__cta {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 26px;
  gap: 10px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  margin-bottom: 64px;
}

.sample-banner__cta svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

@media (max-width: 1199px) {
  .sample-banner__card {
    padding: 36px 40px 0 40px;
    gap: 28px;
  }

  .sample-banner__content h2 {
    font-size: 34px;
  }

  .sample-banner__visual {
    flex-basis: 230px;
    width: 230px;
    height: 230px;
  }
}

@media (max-width: 991px) {
  .sample-banner__card {
    flex-wrap: wrap;
    padding: 36px 32px 32px;
    align-items: flex-start;
  }

  .sample-banner__content {
    flex: 1 1 100%;
    max-width: none;
    padding-bottom: 0;
  }

  .sample-banner__aside {
    width: 100%;
    justify-content: flex-end;
    align-self: stretch;
    margin-top: 8px;
  }

  .sample-banner__visual {
    flex-basis: 180px;
    width: 180px;
    height: 180px;
  }

  .sample-banner__cta {
    margin-bottom: 0;
    align-self: center;
  }
}

@media (max-width: 767px) {
  .sample-banner {
    padding-block: 40px;
  }

  .sample-banner__card {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px;
    border-radius: 20px;
    gap: 24px;
    min-height: 0;
  }

  .sample-banner__content h2 {
    font-size: 28px;
  }

  .sample-banner__aside {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-left: 0;
  }

  .sample-banner__visual {
    width: 200px;
    height: 200px;
    flex-basis: 200px;
  }

  .sample-banner__cta {
    width: 100%;
    margin-bottom: 0;
    justify-content: center;
  }
}

/* ---- Model Portfolios ---------------------------------------------------- */
.founder-teaser {
  padding: 1px 0px;
}

.portfolios__header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
}

.portfolios__eyebrow {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--color-body);
}

.portfolios__heading-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.portfolios__heading-row h2 {
  margin: 0;
  font-size: 46px;
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  color: var(--color-primary);
}

.portfolios__heading-row h2 .text-accent {
  color: var(--color-accent);
}

.portfolios__heading-row .btn--outline {
  flex-shrink: 0;
  height: 48px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  border-radius: 5px;
}

.portfolios__intro {
  margin-top: 16px;
  max-width: 589px;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--color-body);
}

.portfolios__grid {
  --bs-gutter-x: 20px;
  --bs-gutter-y: 40px;
}

@media (min-width: 768px) {
  .portfolios__heading-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }

  .portfolios__heading-row h2 {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* ---- The Founder --------------------------------------------------------- */

.founder-teaser {
  background-color: #bfbfe312;
  padding-block: clamp(4rem, 3rem + 3vw, 6.5rem);
}

.founder-teaser__row {
  align-items: center;
}

.founder-teaser__eyebrow {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--color-body);
  margin-bottom: 16px;
}

.founder-teaser__content h2 {
  margin: 0 0 28px;
  font-size: 46px;
  font-weight: var(--fw-extrabold);
  line-height: 1.15;
  color: var(--color-primary);
}

.founder-teaser__content h2 .text-accent {
  color: var(--color-accent);
}

.founder-teaser__content p {
  max-width: 52ch;
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.6;
  color: var(--color-body);
}

.founder-teaser__content p:last-of-type {
  margin-bottom: 32px;
}

.founder-teaser__link {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

.founder-teaser__link:hover {
  color: var(--color-accent);
}

.founder-teaser__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.founder-teaser__image {
  display: block;
  width: 100%;
  max-width: 75%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 992px) {
  .founder-teaser__media {
    justify-content: flex-end;
    align-items: center;
  }
}

@media (max-width: 991px) {
  .founder-teaser__content h2 {
    font-size: clamp(2rem, 5vw, 2.875rem);
  }

  .founder-teaser__media {
    margin-top: 8px;
  }

  .founder-teaser__image {
    max-width: 420px;
    margin-inline: auto;
  }
}

/* ---- Meet Our Team ------------------------------------------------------- */

.team-teaser__header {
  text-align: center;
  margin-bottom: 48px;
}

.team-teaser__eyebrow {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--color-body);
  margin-bottom: 16px;
}

.team-teaser__header h2 {
  margin: 0 0 16px;
  font-size: 46px;
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  color: var(--color-primary);
}

.team-teaser__header h2 .text-accent {
  color: var(--color-accent);
}

.philosophy_wid {
  max-width: 100%;
  padding-left: 200px;
  padding-right: 70px;
}

.team-teaser__intro {
  max-width: 463px;
  margin: 0 auto;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--color-body);
}

.team-teaser__grid {
  --bs-gutter-x: 20px;
}

.team-teaser__see-all {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 48px;
  margin-inline: auto;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

.team-teaser__see-all:hover {
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .team-teaser__header h2 {
    font-size: clamp(2rem, 5vw, 2.875rem);
  }
}

/* ---- Our Insights -------------------------------------------------------- */

.insights {
  background-color: #bfbfe312;
}


.insights__header {
  text-align: center;
  margin-bottom: 48px;
}

.insights__eyebrow {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--color-body);
  margin-bottom: 16px;
}

.insights__header h2 {
  margin: 0 0 16px;
  font-size: 46px;
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  color: var(--color-primary);
}

.insights__header h2 .text-accent {
  color: var(--color-accent);
}

.insights__intro {
  max-width: 533px;
  margin: 0 auto;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--color-body);
}

.insights__grid {
  --bs-gutter-x: 20px;
}

.insights__see-all {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 48px;
  margin-inline: auto;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

.insights__see-all:hover {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .insights__header h2 {
    font-size: clamp(2rem, 5vw, 2.875rem);
  }
}