/*
  Talis website revision — Home capability carousel, desktop section takeover,
  restored editorial footer, Product hero refinements and Company page.
*/

/* Shared navigation refinement */
@media (max-width: 900px) {
  .mobile-get-started {
    font-size: 13.5px !important; /* 10% smaller label; control dimensions stay unchanged. */
  }
}

/* Home hierarchy refinements */
@media (max-width: 700px) {
  .continuity-copy .section-heading {
    width: 100% !important;
    font-size: clamp(29px, 8.35vw, 32.6px) !important;
    line-height: 1.16 !important;
    letter-spacing: -.012em;
  }
  .markets-copy .section-heading {
    width: 100% !important;
    font-size: clamp(29.5px, 8.5vw, 33.2px) !important;
    line-height: 1.17 !important;
    letter-spacing: -.014em;
  }
  .continuity-copy .section-heading .mobile-variant,
  .markets-copy .section-heading .mobile-variant {
    display: block !important;
    width: 100%;
    white-space: normal !important;
    transform: none !important;
  }
}

@media (max-width: 340px) {
  .continuity-copy .section-heading { font-size: 29px !important; }
  .markets-copy .section-heading { font-size: 29.5px !important; }
}

/* Desktop-only Section 3 -> Section 4 takeover. */
.takeover-stage {
  position: relative;
  background: #141414;
  isolation: isolate;
}

.capabilities-section {
  --takeover-radius: 0px;
}

@media (min-width: 901px) {
  .takeover-stage .markets-section {
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .takeover-stage .capabilities-section {
    position: relative;
    z-index: 2;
    margin-top: 0;
    overflow: clip;
    border-radius: var(--takeover-radius) var(--takeover-radius) 0 0;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, .12);
    will-change: border-radius;
  }
}

@media (max-width: 900px) {
  .takeover-stage .markets-section,
  .takeover-stage .capabilities-section {
    position: relative;
    top: auto;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Capability carousel */
.capabilities-inner {
  overflow: visible;
}

.capability-carousel-shell {
  position: relative;
  margin-top: 82px;
}

.capability-carousel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.capability-carousel-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Argon";
  font-size: 10px;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #777;
}

.capability-carousel-hint::before {
  content: "";
  width: 34px;
  height: 1px;
  background: #aaa;
}

.capability-carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-control {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: transparent;
  color: #202020;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.carousel-control:hover,
.carousel-control:active {
  background: #141414;
  color: #f5f5f5;
}

.carousel-control:hover { transform: translateY(-1px); }
.carousel-control:active { transform: translateY(0); }
.carousel-control svg { width: 16px; height: 16px; }

.capability-carousel {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.capability-carousel::-webkit-scrollbar { display: none; }
.capability-carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.capability-track {
  width: max-content;
  display: flex;
  gap: 18px;
  padding: 2px 2px 12px;
}

.capability-track .capability-card {
  flex: 0 0 clamp(300px, 25.35vw, 365px);
  width: clamp(300px, 25.35vw, 365px);
  min-height: 280px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.capability-icon--asset {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.capability-icon--asset img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.capability-carousel-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.carousel-dot {
  width: 24px;
  height: 2px;
  border: 0;
  padding: 0;
  background: #d0d0d0;
  transition: width 220ms ease, background-color 220ms ease;
}

.carousel-dot.is-active {
  width: 42px;
  background: #141414;
}

.carousel-count {
  min-width: 40px;
  font-family: "Argon";
  font-size: 11px;
  letter-spacing: .08em;
  color: #777;
  text-align: right;
}

@media (max-width: 900px) {
  .capability-carousel-shell { margin-top: 66px; }
  .capability-carousel-meta,
  .capability-carousel-progress {
    margin-inline: 0;
  }
  .capability-track .capability-card {
    flex-basis: min(78vw, 360px);
    width: min(78vw, 360px);
  }
}

@media (max-width: 700px) {
  .capabilities-section {
    padding-bottom: 88px !important;
  }
  .capability-carousel-shell {
    margin-top: 56px;
  }
  .capability-carousel-meta {
    margin: 0 24px 16px;
  }
  .capability-carousel-controls { display: none; }
  .capability-carousel-hint {
    font-size: 9.5px;
    letter-spacing: .13em;
  }
  .capability-carousel {
    width: 100%;
    scroll-padding-left: 24px;
  }
  .capability-track {
    gap: 14px;
    padding: 2px 24px 12px;
  }
  .capability-track .capability-card {
    flex: 0 0 calc(100vw - 58px);
    width: calc(100vw - 58px);
    min-height: 276px;
  }
  .capability-carousel-progress {
    margin: 14px 24px 0;
  }
  .carousel-dot { width: 18px; }
  .carousel-dot.is-active { width: 32px; }
}

/* Return the green manifesto to the accepted, intentionally simple composition. */
.context-system { display: none !important; }
.manifesto-section { display: block !important; }

/* Product page refinements */
@media (min-width: 901px) {
  .product-overview { padding-left: 0 !important; padding-right: 0 !important; }
  .product-hero {
    width: calc(100% - (var(--page-gutter) * 2)) !important;
    max-width: none !important;
    margin-left: var(--page-gutter) !important;
    margin-right: var(--page-gutter) !important;
    aspect-ratio: 1378 / 720;
  }
  .product-hero-media {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

@media (max-width: 700px) {
  .product-hero-copy {
    width: 100% !important;
    max-width: none !important;
    font-size: clamp(11.7px, 3.34vw, 13.1px) !important;
    line-height: 1.2 !important;
    letter-spacing: -.018em !important;
    white-space: nowrap !important;
  }
}

/* Restored original footer with supplied social artwork. */
.site-footer {
  position: relative !important;
  min-height: 750px !important;
  padding: 99px 51px 28px !important;
  overflow: hidden !important;
  background: #141414 !important;
  color: #f5f5f5 !important;
}

.site-footer::before,
.site-footer::after { display: none !important; }

.footer-top {
  display: flex;
  align-items: center;
}

.footer-logo {
  width: 51px !important;
  height: 51px !important;
  flex: 0 0 51px;
  border-radius: 3px !important;
  overflow: hidden;
}

.footer-nav {
  display: grid !important;
  grid-template-columns: 198px 201px 182px auto !important;
  width: auto !important;
  margin-left: 84px !important;
  color: #4f4f4f !important;
  text-align: left !important;
}

.footer-nav a {
  font-size: 17px !important;
  line-height: 1 !important;
  color: inherit;
  transition: color 180ms ease;
}
.footer-nav a:hover { color: #a0a0a0 !important; transform: none !important; }

.footer-statement {
  position: absolute !important;
  left: 49px !important;
  right: auto !important;
  top: 382px !important;
  max-width: none !important;
  font-size: 80px !important;
  line-height: 1.13 !important;
  letter-spacing: 0 !important;
}

.footer-bottom {
  position: absolute !important;
  left: 51px !important;
  right: 33px !important;
  bottom: 30px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #4f4f4f !important;
}

.social-list {
  display: flex !important;
  align-items: center;
  gap: 22px !important;
  grid-column: auto !important;
}

.social-link {
  width: 25px !important;
  height: 25px !important;
  display: grid !important;
  place-items: center;
  color: #777;
  opacity: .72;
  transition: opacity 180ms ease, transform 180ms ease;
}
.social-link:hover { opacity: 1; transform: translateY(-1px); }
.social-link img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain;
}

.copyright {
  font-family: "Argon" !important;
  font-size: 13.5px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  color: #4f4f4f !important;
  text-align: right !important;
}

@media (max-width: 900px) {
  .site-footer {
    min-height: 720px !important;
    padding: 68px 36px 30px !important;
  }
  .footer-nav {
    width: auto !important;
    flex: 1;
    margin-left: 54px !important;
  }
  .footer-statement {
    left: 36px !important;
    top: 320px !important;
    font-size: 68px !important;
  }
  .footer-bottom {
    left: 36px !important;
    right: 36px !important;
    bottom: 30px !important;
  }
}

@media (max-width: 700px) {
  .site-footer {
    min-height: 750px !important;
    padding: 58px 22px 28px !important;
  }
  .footer-top { align-items: flex-start !important; }
  .footer-logo {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px;
  }
  .footer-nav {
    width: auto !important;
    margin: 0 0 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    text-align: right !important;
  }
  .footer-nav a { font-size: 15px !important; }
  .footer-statement {
    left: 24px !important;
    right: auto !important;
    top: 433px !important;
    font-size: 44px !important;
    line-height: 50px !important;
  }
  .footer-bottom {
    left: 22px !important;
    right: 22px !important;
    bottom: 18px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 30px !important;
  }
  .social-list { gap: 18px !important; }
  .social-link { width: 23px !important; height: 23px !important; }
  .copyright {
    align-self: center !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
    text-align: center !important;
    transform: none !important;
  }
}

@media (max-width: 340px) {
  .footer-statement { font-size: 42px !important; }
  .copyright { font-size: 9.7px !important; }
}

/* Company page */
.company-page { background: #f5f5f5; }
.company-main {
  padding-top: 74px;
  overflow: hidden;
  background: #f5f5f5;
}

.company-hero {
  position: relative;
  width: calc(100% - (var(--page-gutter) * 2));
  aspect-ratio: 1378 / 720;
  margin: 0 var(--page-gutter);
  overflow: hidden;
  border-radius: 20px;
  background: #111;
  isolation: isolate;
}

.company-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.company-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(4, 7, 9, .78) 0%, rgba(4, 7, 9, .16) 52%, rgba(4, 7, 9, .02) 100%),
    linear-gradient(90deg, rgba(5, 8, 10, .2), rgba(5, 8, 10, 0) 60%);
}

.company-hero-content {
  position: absolute;
  left: clamp(50px, 4.6vw, 66px);
  bottom: clamp(76px, 7vw, 100px);
  max-width: 760px;
  color: #f5f5f5;
}

.company-hero-kicker,
.company-eyebrow,
.company-process-index,
.founder-label {
  font-family: "Argon";
  font-size: 10px;
  line-height: 1;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.company-hero-kicker {
  margin-bottom: 24px;
  color: rgba(255,255,255,.68);
}

.company-hero-title {
  max-width: 720px;
  font-size: clamp(48px, 4.45vw, 64px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.company-section {
  padding: 150px 76px;
}

.company-section-inner {
  width: min(100%, 1288px);
  margin: 0 auto;
}

.company-mission {
  background: #f5f5f5;
  color: #141414;
}

.company-mission-grid {
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1.58fr);
  gap: 80px;
  align-items: start;
}

.company-eyebrow { color: #7a7a7a; padding-top: 15px; }

.company-mission-title {
  max-width: 1020px;
  font-size: clamp(50px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.company-mission-body {
  grid-column: 2;
  max-width: 910px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 64px;
  margin-top: 74px;
}

.company-mission-body p,
.company-copy p,
.founder-bio p {
  font-size: 18px;
  line-height: 1.58;
  color: #3a3a3a;
}

.company-problem {
  background: #141414;
  color: #f5f5f5;
}

.company-problem-header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .65fr);
  gap: 80px;
  align-items: end;
}

.company-problem-title {
  max-width: 820px;
  font-size: clamp(50px, 4.65vw, 67px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.company-problem-intro {
  font-size: 18px;
  line-height: 1.55;
  color: #bcbcbc;
}

.company-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 106px;
}

.company-dual-card {
  min-height: 430px;
  padding: 42px 40px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
}

.company-dual-card--solution {
  background: #f5f5f5;
  color: #141414;
  border-color: #f5f5f5;
}

.company-dual-card .company-eyebrow {
  padding: 0;
  color: rgba(255,255,255,.5);
}
.company-dual-card--solution .company-eyebrow { color: #777; }
.company-dual-card h3 {
  max-width: 520px;
  margin-top: 36px;
  font-size: 36px;
  line-height: 1.16;
}
.company-dual-card p {
  max-width: 560px;
  margin-top: auto;
  padding-top: 70px;
  font-size: 17px;
  line-height: 1.58;
  color: #bcbcbc;
}
.company-dual-card--solution p { color: #444; }

.company-system {
  background: #f5f5f5;
  color: #141414;
}

.company-system-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .58fr);
  gap: 72px;
  align-items: end;
}
.company-system-title {
  max-width: 850px;
  font-size: clamp(48px, 4.5vw, 65px);
  line-height: 1.08;
  letter-spacing: -.032em;
}
.company-system-intro {
  font-size: 18px;
  line-height: 1.55;
  color: #555;
}

.company-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 100px;
}

.company-process-card {
  min-height: 390px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #ededed;
}
.company-process-index { color: #8a8a8a; }
.company-process-card h3 {
  margin-top: 58px;
  font-size: 30px;
  line-height: 1.18;
}
.company-process-card p {
  margin-top: auto;
  padding-top: 66px;
  font-size: 16px;
  line-height: 1.55;
  color: #505050;
}

.company-context {
  min-height: 820px;
  display: flex;
  align-items: center;
  background: #1e4a22;
  color: #f5f5f5;
}
.company-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .65fr);
  gap: 100px;
  align-items: center;
}
.company-context-title {
  max-width: 820px;
  font-size: clamp(54px, 5.35vw, 77px);
  line-height: 1.06;
  letter-spacing: -.038em;
}
.company-context-copy p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
}
.company-context-copy p + p { margin-top: 26px; }

.founder-section {
  background: #f5f5f5;
  color: #141414;
}
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 92px;
  align-items: center;
}
.founder-portrait-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: #17191d;
}
.founder-portrait {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 34%;
}
.founder-label { color: #7a7a7a; }
.founder-name {
  margin-top: 28px;
  font-size: clamp(50px, 4.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.founder-role {
  margin-top: 14px;
  font-size: 20px;
  color: #747474;
}
.founder-bio {
  max-width: 650px;
  margin-top: 54px;
}
.founder-bio p + p { margin-top: 22px; }

.company-prefooter {
  position: relative;
  width: calc(100% - (var(--page-gutter) * 2));
  aspect-ratio: 2048 / 941;
  margin: 0 var(--page-gutter) 36px;
  overflow: hidden;
  border-radius: 20px;
  background: #15191b;
  color: #f5f5f5;
  isolation: isolate;
}
.company-prefooter-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.company-prefooter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6,10,12,.78), rgba(6,10,12,.12) 72%);
}
.company-prefooter-copy {
  position: absolute;
  left: clamp(48px, 4.5vw, 66px);
  bottom: clamp(48px, 5.2vw, 75px);
  max-width: 780px;
}
.company-prefooter-copy p {
  max-width: 520px;
  margin-bottom: 22px;
  font-family: "Argon";
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.company-prefooter-copy h2 {
  font-size: clamp(48px, 4.65vw, 67px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

@media (max-width: 1100px) {
  .company-section { padding-inline: 48px; }
  .company-mission-grid,
  .company-problem-header,
  .company-system-header,
  .company-context-grid,
  .founder-grid { gap: 54px; }
  .company-process-card { min-height: 420px; }
}

@media (max-width: 900px) {
  .company-section { padding: 112px 36px; }
  .company-mission-grid,
  .company-problem-header,
  .company-system-header,
  .company-context-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }
  .company-mission-body { grid-column: 1; }
  .company-process-grid { grid-template-columns: 1fr; }
  .company-process-card { min-height: 290px; }
  .company-context { min-height: 0; }
}

@media (max-width: 700px) {
  .company-main { padding-top: 74px; }
  .company-hero {
    width: auto;
    height: clamp(560px, 160vw, 650px);
    aspect-ratio: auto;
    margin: 0 13px 30px 12px;
    border-radius: 10px;
  }
  .company-hero-media { object-position: 57% center; }
  .company-hero::after {
    background:
      linear-gradient(0deg, rgba(4,7,9,.88) 0%, rgba(4,7,9,.38) 45%, rgba(4,7,9,.02) 78%),
      linear-gradient(90deg, rgba(4,7,9,.2), rgba(4,7,9,0) 70%);
  }
  .company-hero-content {
    left: 24px;
    right: 22px;
    bottom: 42px;
  }
  .company-hero-kicker { margin-bottom: 18px; }
  .company-hero-title {
    max-width: 340px;
    font-size: clamp(40px, 11vw, 43px);
    line-height: 1.1;
  }

  .company-section { padding: 98px 24px; }
  .company-mission-grid { gap: 42px; }
  .company-eyebrow { padding-top: 0; }
  .company-mission-title,
  .company-problem-title,
  .company-system-title,
  .company-context-title,
  .founder-name,
  .company-prefooter-copy h2 {
    font-size: clamp(39px, 10.5vw, 43px);
    line-height: 1.1;
  }
  .company-mission-body {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
  }
  .company-mission-body p,
  .company-copy p,
  .founder-bio p,
  .company-problem-intro,
  .company-system-intro,
  .company-context-copy p {
    font-size: 16px;
    line-height: 1.58;
  }

  .company-problem-header,
  .company-system-header,
  .company-context-grid,
  .founder-grid { gap: 40px; }
  .company-dual-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 62px;
  }
  .company-dual-card {
    min-height: 330px;
    padding: 30px 26px;
  }
  .company-dual-card h3 {
    margin-top: 30px;
    font-size: 29px;
  }
  .company-dual-card p { padding-top: 52px; font-size: 15px; }

  .company-process-grid { margin-top: 62px; gap: 14px; }
  .company-process-card {
    min-height: 300px;
    padding: 28px 25px;
  }
  .company-process-card h3 { margin-top: 42px; font-size: 28px; }
  .company-process-card p { padding-top: 50px; font-size: 15px; }

  .company-context { padding-top: 112px; padding-bottom: 112px; }
  .company-context-copy p + p { margin-top: 22px; }

  .founder-portrait-wrap { border-radius: 14px; }
  .founder-content { padding-top: 6px; }
  .founder-role { font-size: 17px; }
  .founder-bio { margin-top: 38px; }

  .company-prefooter {
    width: auto;
    height: 560px;
    aspect-ratio: auto;
    margin: 0 13px 30px 12px;
    border-radius: 10px;
  }
  .company-prefooter-media { object-position: 54% center; }
  .company-prefooter::after {
    background: linear-gradient(0deg, rgba(6,10,12,.9), rgba(6,10,12,.1) 76%);
  }
  .company-prefooter-copy {
    left: 24px;
    right: 22px;
    bottom: 38px;
  }
  .company-prefooter-copy h2 { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .takeover-stage .markets-section { position: relative !important; }
  .takeover-stage .capabilities-section { border-radius: 0 !important; box-shadow: none !important; }
  .capability-carousel { scroll-behavior: auto !important; }
}
