/* About / "Chi siamo" — clone of generalintelligencecompany.com/about, rebuilt
   in the Hoplo design system. Tokens match the site: surface rgb(245,245,242),
   ink rgb(23,23,23), muted greys, accent rgb(0,126,199). Fonts are the shared
   CSS vars (--font-neoris, --font-ibm-plex-mono). */

.spa-page {
  --spa-ink: rgb(23, 23, 23);
  --spa-muted: rgb(92, 90, 88);
  --spa-faint: rgb(150, 152, 148);
  --spa-surface: rgb(245, 245, 242);
  --spa-card: rgb(254, 255, 252);
  --spa-line: rgb(231, 231, 227);
  --spa-accent: rgb(0, 126, 199);
  background: var(--spa-surface);
}

/* ---- 1. Hero --------------------------------------------------------- */
.spa-hero {
  position: relative;
  width: 100%;
  /* 16:9 to match the wide source; caps below the fold on tall/short screens
     so the panorama isn't scaled up and cropped on large desktops. */
  aspect-ratio: 16 / 9;
  max-height: 88vh;
  /* Tall enough that the absolutely-positioned title (top:216) and the
     bottom-anchored mission card never collide in the tablet/small-laptop
     band (761–~1100px) where 16:9 alone would be too short. */
  min-height: 660px;
  overflow: hidden;
  background: #cfe0e6;
}
.spa-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* bias left so the boy + fish-kite (upper-left of the panorama) stay in
     frame on narrow viewports where the sides get cropped */
  object-position: 40% 42%;
  display: block;
}
.spa-hero-scrim {
  position: absolute;
  inset: 0;
  /* One continuous top-down darkening over the whole hero (no box edge → no
     hard line): keeps the transparent nav readable and lifts the title. */
  background: linear-gradient(
    180deg,
    rgba(6, 10, 8, 0.55) 0%,
    rgba(6, 10, 8, 0.32) 15%,
    rgba(6, 10, 8, 0.1) 40%,
    rgba(6, 10, 8, 0) 66%
  );
}
.spa-hero-title {
  position: absolute;
  top: 216px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 620px);
  margin: 0;
  text-align: center;
  font-family: var(--font-neoris);
  font-size: 52px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.spa-mission {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: min(88%, 392px);
  padding: 22px 22px 20px;
  border-radius: 14px;
  background: rgba(254, 255, 252, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 44px rgba(20, 24, 22, 0.22);
}
.spa-mission-lead {
  margin: 0;
  font-family: var(--font-neoris);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--spa-ink);
}
.spa-mission-sub {
  margin: 10px 0 0;
  font-family: var(--font-neoris);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--spa-muted);
}
.spa-mission-from {
  margin: 14px 0 0;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--spa-faint);
}
.spa-clock {
  position: absolute;
  right: 26px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 100px;
  background: rgba(20, 22, 20, 0.42);
  backdrop-filter: blur(8px);
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
}
.spa-clock-city {
  opacity: 0.7;
}

/* ---- 2. Manifesto ---------------------------------------------------- */
.spa-manifesto {
  padding: 116px 24px 104px;
}
.spa-manifesto-col {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.spa-para {
  margin: 0 0 22px;
  font-family: var(--font-neoris);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--spa-muted);
}
.spa-sign {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 0;
  font-family: var(--font-neoris);
  font-size: 15px;
  color: var(--spa-muted);
}
.spa-flower {
  flex: 0 0 auto;
}
.spa-sign-name {
  margin: 4px 0 0;
  font-family: var(--font-neoris);
  font-size: 15px;
  font-weight: 500;
  color: var(--spa-ink);
}

/* ---- 3. Leadership --------------------------------------------------- */
.spa-leadership {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 116px;
}
.spa-leadership-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 38px;
  padding-top: 48px;
  border-top: 1px solid var(--spa-line);
}
.spa-leadership-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #168a74;
}
.spa-leadership-title {
  max-width: 15ch;
  margin: 0;
  font-family: var(--font-neoris);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.07;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--spa-ink);
}
.spa-leadership-intro {
  max-width: 42ch;
  margin: 0 0 3px;
  font-family: var(--font-neoris);
  font-size: 16px;
  line-height: 1.58;
  color: var(--spa-muted);
}
.spa-leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.spa-leader-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(28, 48, 42, 0.1);
  border-radius: 18px;
  background: rgba(254, 255, 252, 0.92);
  color: var(--spa-ink);
  text-decoration: none;
  box-shadow: inset 0 1px 0 #fff, 0 14px 34px rgba(20, 24, 22, 0.07);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.spa-leader-card:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 138, 116, 0.24);
  box-shadow: inset 0 1px 0 #fff, 0 24px 52px rgba(20, 48, 40, 0.13);
}
.spa-leader-card:focus-visible {
  outline: 2px solid #168a74;
  outline-offset: 4px;
}
.spa-leader-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #e6edea, #f7f6f1);
}
.spa-leader-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 22, 18, 0.12));
}
.spa-leader-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.025);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}
.spa-leader-card:hover .spa-leader-media img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.015);
}
.spa-leader-number {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: grid;
  width: 34px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(248, 250, 247, 0.76);
  backdrop-filter: blur(8px);
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(23, 23, 23, 0.65);
}
.spa-leader-content {
  display: flex;
  min-height: 266px;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 20px;
}
.spa-leader-role {
  margin: 0 0 9px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #168a74;
}
.spa-leader-name {
  margin: 0;
  font-family: var(--font-neoris);
  font-size: 27px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--spa-ink);
}
.spa-leader-bio {
  margin: 14px 0 0;
  font-family: var(--font-neoris);
  font-size: 14.5px;
  line-height: 1.56;
  color: var(--spa-muted);
}
.spa-leader-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 10px;
  letter-spacing: 0.03em;
  color: rgba(23, 23, 23, 0.56);
}
.spa-leader-card:hover .spa-leader-profile .spa-arrow {
  transform: translateX(3px);
}

/* ---- 4. Careers card ------------------------------------------------- */
.spa-careers {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 96px;
}
.spa-careers-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 440px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 60px rgba(20, 24, 22, 0.14);
}
.spa-careers-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.spa-careers-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 20, 26, 0.78) 0%, rgba(12, 20, 26, 0.42) 38%, rgba(12, 20, 26, 0) 68%);
}
.spa-careers-text {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  width: min(84%, 430px);
  color: #fff;
}
.spa-careers-h {
  margin: 0;
  font-family: var(--font-neoris);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}
.spa-careers-b {
  margin: 14px 0 0;
  font-family: var(--font-neoris);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.spa-careers-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 12px;
  color: #fff;
  text-decoration: none;
}
.spa-careers-cta:hover {
  opacity: 0.85;
}
.spa-arrow {
  transition: transform 0.2s ease;
}
.spa-careers-cta:hover .spa-arrow,
.spa-closing-cta:hover .spa-arrow {
  transform: translateX(3px);
}

/* ---- 5. Contact columns ---------------------------------------------- */
.spa-contact {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 24px 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--spa-line);
  padding-top: 48px;
}
.spa-contact-label {
  margin: 0 0 8px;
  font-family: var(--font-neoris);
  font-size: 13px;
  color: var(--spa-faint);
}
.spa-contact-value {
  margin: 0;
  font-family: var(--font-neoris);
  font-size: 16px;
  color: var(--spa-ink);
}
.spa-contact-link {
  text-decoration: none;
  color: var(--spa-ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.spa-contact-link:hover {
  border-bottom-color: var(--spa-ink);
}

/* ---- 6. Technology partners ------------------------------------------ */
.spa-partners {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 24px;
}
.spa-partners-heading {
  margin: 0;
  border-top: 1px solid var(--spa-line);
  padding-top: 48px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--spa-faint);
}
.spa-partner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  padding: 38px 0;
  border-bottom: 1px solid var(--spa-line);
}
.spa-partner-text {
  min-width: 0;
}
.spa-partner-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--spa-accent);
}
.spa-partner-title {
  margin: 0;
  font-family: var(--font-neoris);
  font-size: 30px;
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--spa-ink);
}
.spa-partner-body {
  margin: 14px 0 0;
  max-width: 48ch;
  font-family: var(--font-neoris);
  font-size: 16px;
  line-height: 1.55;
  color: var(--spa-muted);
}
.spa-partner-logo {
  width: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--spa-line);
  background: var(--spa-card);
  box-shadow: rgb(255, 255, 255) 0 2px 1px, rgba(20, 24, 22, 0.05) 0 12px 28px;
}
.spa-partner-logo img {
  width: 100%;
  max-height: 104px;
  height: auto;
  display: block;
  object-fit: contain;
}
.spa-partner-logo--openai img {
  width: min(100%, 230px);
}

/* ---- 7. Closing CTA -------------------------------------------------- */
.spa-closing {
  padding: 80px 24px 120px;
  text-align: center;
}
.spa-closing-inner {
  max-width: 620px;
  margin: 0 auto;
}
.spa-closing-h {
  margin: 0;
  font-family: var(--font-neoris);
  font-size: 32px;
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--spa-ink);
}
.spa-closing-sub {
  margin: 14px 0 0;
  font-family: var(--font-neoris);
  font-size: 16px;
  color: var(--spa-muted);
}
.spa-closing-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  padding: 11px 18px;
  border-radius: 8px;
  background: rgb(23, 23, 23);
  color: #fff;
  font-family: var(--font-neoris);
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgb(56, 56, 56);
  box-shadow: 0 0 0 1px rgba(64, 64, 64, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.24), 0 3px 4px rgba(0, 0, 0, 0.16);
}
.spa-closing-cta:hover {
  transform: translateY(-1px);
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 900px) and (min-width: 761px) {
  .spa-leadership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spa-leader-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .spa-hero {
    height: auto;
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
  }
  .spa-hero-img {
    position: relative;
    height: 62vh;
    min-height: 420px;
  }
  .spa-hero-title {
    top: 150px;
    font-size: 34px;
  }
  .spa-mission {
    /* relative + z-index so the card paints ABOVE the relatively-positioned
       hero image it overlaps (static would be painted under it, hiding the
       card's first line). */
    position: relative;
    z-index: 2;
    width: auto;
    margin: -40px 16px 0;
    backdrop-filter: none;
    background: var(--spa-card);
  }
  .spa-clock {
    display: none;
  }
  .spa-manifesto {
    padding: 72px 22px;
  }
  .spa-para {
    font-size: 16px;
  }
  .spa-leadership {
    padding: 8px 18px 80px;
  }
  .spa-leadership-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
    padding-top: 36px;
  }
  .spa-leadership-title {
    font-size: 34px;
  }
  .spa-leadership-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .spa-leader-card {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
  }
  .spa-leader-content {
    min-height: 0;
  }
  .spa-careers-card {
    height: 400px;
  }
  .spa-careers-text {
    left: 24px;
    right: 24px;
    width: auto;
  }
  .spa-careers-h {
    font-size: 24px;
  }
  .spa-contact {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .spa-closing-h {
    font-size: 26px;
  }
  .spa-partner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .spa-partner-title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spa-leader-card,
  .spa-leader-media img,
  .spa-leader-profile .spa-arrow {
    transition: none;
  }
}
