/*
  TECHNOLOGY PAGE
  ---------------
  Load style.css before this file.
  Header and footer are loaded through includes.js.
*/

.technology-page {
  background: var(--cream);
}

/* Hero */
.technology-hero {
  position: relative;
  min-height: var(--hero-height);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #232523;
  color: var(--white);
}

.technology-hero__media,
.technology-hero__overlay {
  position: absolute;
  inset: 0;
  margin: 0;
}

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

.technology-hero__overlay {
  background: rgba(0, 0, 0, 0.62);
}

.technology-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(92px, 9vw, 164px);
}

.technology-hero h1 {
  margin: 0;
  font-family: var(--display);
  /* font-size: clamp(64px, 6.77vw, 130px); */
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
}

/* Dark Foundry section */
.foundry-overview {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--radius-xl));
  padding:
    clamp(88px, 5.3vw, 102px)
    0
    clamp(82px, 6vw, 116px);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--ink);
  color: var(--white);
}

.foundry-overview__title {
  margin: 0 0 clamp(72px, 6vw, 114px);
  font-family: var(--display);
  font-size: var(--eighty);
  font-weight: 300;
  line-height: 1.12;
}

.foundry-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.45fr) minmax(330px, 1fr);
  gap: clamp(54px, 6.5vw, 124px);
  align-items: start;
}

.foundry-overview__media {
  min-height: 0;
  margin: 0;
  aspect-ratio: 1117 / 668;
  overflow: hidden;
  border-radius: clamp(18px, 1.6vw, 30px);
  background: #151716;
  transition: transform 0.2s ease;
}

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


.foundry-overview__copy {
  padding-top: 0;
}

.foundry-overview__copy p {
  margin: 0;
  font-size: var(--twenty-five);
  font-weight: 300;
  line-height: 1.3;
}

.foundry-overview__copy p + p {
  margin-top: 28px;
}

.foundry-overview__lead {
  font-weight: 400 !important;
}

.foundry-button {
  min-height: 72px;
  margin-top: clamp(38px, 4vw, 72px);
  padding: 20px 32px;
  background: #4a4a47;
  color: var(--white);
}

/* Pillars */
.foundry-pillars {
  margin-top: clamp(74px, 8vw, 154px);
}

.foundry-pillars > h2 {
  margin: 0 0 clamp(50px, 4.5vw, 80px);
  font-family: var(--display);
  font-size: var(--eighty);
  font-weight: 300;
  line-height: 1.12;
}

.foundry-pillars > h2 em {
  font-weight: 300;
}

.foundry-pillars__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(24px, 2.3vw, 44px);
}

.foundry-pillar {
  grid-column: span 2;
  min-height: clamp(360px, 23vw, 443px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 2vw, 38px) clamp(26px, 1.7vw, 32px);
  border-radius: clamp(18px, 1.6vw, 30px);
  background: var(--black);
  transition: transform 0.2s ease;
}

.foundry-pillar:hover {
  transform: scale(1.02);
}

.foundry-pillar--wide {
  grid-column: span 3;
  min-height: clamp(240px, 14.8vw, 284px);
  transition: transform 0.2s ease;
}

.foundry-pillar.foundry-pillar--wide:hover {
  transform: scale(1.02);
}

.foundry-pillar h3 {
  max-width: 620px;
  margin: 0;
  font-size: var(--thirty-two);
  font-weight: 400;
  line-height: 1.3;
}

.foundry-pillar p {
  margin: 42px 0 0;
  font-size: var(--nineteen);
  font-weight: 400;
  line-height: 1.5;
}

/* Why it matters */
.foundry-why {
  margin-top: clamp(80px, 8vw, 142px);
  padding-top: clamp(64px, 5vw, 92px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.foundry-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.85fr);
  gap: clamp(70px, 9vw, 172px);
  align-items: start;
}

.foundry-why__grid > h2 {
  margin: 0;
  font-size: var(--forty-eight);
  font-weight: 300;
  line-height: 1.3;
}

.foundry-why__benefits h3 {
  margin: 0 0 24px;
  font-size: var(--thirty-two);
  font-weight: 400;
  line-height: 1.3;
}

.foundry-why__benefits ul {
  margin: 0;
  padding-left: 21px;
}

.foundry-why__benefits li {
  margin: 0 0 12px;
  font-size: var(--nineteen);
  font-weight: 400;
  line-height: 1.5;
}

/* Comparison section */
.foundry-model {
  padding:
    clamp(78px, 7vw, 128px)
    0
    clamp(86px, 7vw, 126px);
  background: var(--cream);
  color: var(--ink);
}

.foundry-model__header {
  max-width: 900px;
  margin: 0 auto clamp(54px, 5vw, 84px);
  text-align: center;
}

.foundry-model__header h2 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: var(--eighty);
  font-weight: 300;
  line-height: 1.2;
}

.foundry-model__header p {
  max-width: 850px;
  margin: 0 auto;
  font-size: var(--nineteen);
  font-weight: 400;
  line-height: 1.5;
}

.foundry-comparison {
  overflow: hidden;
  border: 1px solid #bababa;
  border-radius: 20px;
}

/* .foundry-comparison-card span {
  white-space: nowrap;
  font-size: var(--sixteen);
} */

.foundry-comparison__header,
.foundry-comparison__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.foundry-comparison__header > div {
  min-height: clamp(130px, 8.4vw, 161px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px;
  text-align: center;
}

.foundry-comparison__traditional {
  background: #e9e0d1;
}

.foundry-comparison__foundry {
  background: var(--black);
  color: var(--white);
}

.foundry-comparison__header strong {
  font-size: var(--thirty-two);
  font-weight: 400;
  line-height: 1.3;
}

.foundry-comparison__header span {
  font-size: var(--nineteen);
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.55;
}

.foundry-comparison__foundry span {
  opacity: 1;
}

.foundry-comparison__row {
  border-top: 1px solid #bababa;
}

.foundry-comparison__row > div {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 24px;
  text-align: center;
  font-size: var(--nineteen);
  font-weight: 400;
  line-height: 1.5;
}

.foundry-comparison__row > div:first-child {
  background: #f0e8dc;
  color: rgba(33, 35, 34, 0.6);
}

.foundry-comparison__row > div:last-child {
  background: var(--ink);
  color: var(--white);
  border-left: 1px solid #333;
}

/* Hidden by default; desktop table remains visible */
.foundry-comparison-mobile {
  display: none;
}

@media (max-width: 760px) {
  .foundry-model {
    padding: 40px 24px;
  }

  .foundry-model .content-wrap {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .foundry-model__header {
    max-width: 342px;
    margin: 0 auto 24px;
  }

  .foundry-model__header h2 {
    margin: 0 0 16px;
    font-family: var(--display);
    font-size: var(--thirty-six-mobile);
    font-style: italic;
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
  }

  .foundry-model__header p {
    max-width: 342px;
    font-size: var(--fifteen-mobile);
    line-height: 1.4;
    opacity: 0.8;
  }

  /* Swap desktop table for mobile cards */
  .foundry-comparison {
    display: none;
  }

  .foundry-comparison-mobile {
    display: flex;
    width: 100%;
    max-width: 342px;
    margin: 0 auto;
    flex-direction: column;
    gap: 12px;
  }

  .foundry-comparison-card {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 26px 16px;
    gap: 8px;
    border-radius: 16px;
    text-align: center;
  }

  .foundry-comparison-card--traditional {
    background: #f0e8dc;
    color: var(--ink);
  }

  .foundry-comparison-card--foundry {
    background: #131313;
    color: var(--white);
    border: 1px solid #333;
  }

  .foundry-comparison-card__header {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .foundry-comparison-card__header h3 {
    margin: 0;
    font-family: var(--sans, "Geist", sans-serif);
    font-size: var(--twenty-four-mobile);
    font-weight: 400;
    line-height: 1.3;
  }

  .foundry-comparison-card__header p {
    margin: 0;
    font-family: var(--sans, "Geist", sans-serif);
    font-size: var(--fifteen-mobile);
    font-weight: 400;
    line-height: 1.4;
  }

  .foundry-comparison-card--traditional
    .foundry-comparison-card__header
    p {
    color: rgba(33, 35, 34, 0.4);
  }

  .foundry-comparison-card--foundry
    .foundry-comparison-card__header
    p {
    color: rgba(255, 255, 255, 0.8);
  }

  .foundry-comparison-card__list {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .foundry-comparison-card__list li {
    min-height: 21px;
    margin: 0;
    font-family: var(--sans, "Geist", sans-serif);
    font-size: var(--fifteen-mobile);
    font-weight: 400;
    line-height: 1.4;
  }

  .foundry-comparison-card--traditional
    .foundry-comparison-card__list
    li {
    color: rgba(33, 35, 34, 0.4);
  }

  .foundry-comparison-card--foundry
    .foundry-comparison-card__list {
    gap: 0;
  }

  .foundry-comparison-card--foundry
    .foundry-comparison-card__list
    li {
    display: grid;
    grid-template-columns: 22px auto 22px;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    column-gap: 8px;
    text-align: center;
  }

  .foundry-check {
    grid-column: 1;
  }

  .foundry-comparison-card__list li > span:last-child {
    grid-column: 2;
    max-width: 260px;
  }

  .foundry-check svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--cream);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* Testimonial */
.technology-testimonial {
  position: relative;
  min-height: clamp(600px, 45vw, 866px);
  display: flex;
  color: var(--white);
}

.technology-testimonial__media,
.technology-testimonial__overlay {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #0B0A08;
}

.technology-testimonial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 20%;
}


.technology-testimonial__overlay {
  z-index: -1;
}

.technology-testimonial__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(72px, 4.5vw, 86px);
  padding-bottom: clamp(72px, 4.8vw, 92px);
}

.technology-testimonial blockquote {
  max-width: 1414px;
  margin: 0;
  font-family: var(--display);
  font-size: var(--eighty);
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}

.technology-testimonial .eyebrow {
  margin: 0;
}

.technology-testimonial .eyebrow b {
  margin-left: clamp(80px, 14vw, 280px);
  font-weight: 400;
}

/* Footer */
.technology-page #site-footer {
  background: var(--black);
}

/* Tablet */
@media (max-width: 1280px) {
  .foundry-overview__grid {
    grid-template-columns: 1fr;
  }

  .foundry-overview__copy {
    max-width: 720px;
  }

  .foundry-pillars__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foundry-pillar,
  .foundry-pillar--wide {
    grid-column: span 1;
    min-height: 330px;
  }

  .foundry-pillar:last-child {
    grid-column: 1 / -1;
  }

  .foundry-why__grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .technology-hero {
    min-height: 720px;
  }

  .technology-hero__content {
    padding-bottom: 180px;
  }

  .technology-hero h1 {
    font-size: var(--fifty-two-mobile);
  }

  .foundry-overview {
    margin-top: -100px;
    border-radius: 26px 26px 0 0;
  }

  .foundry-overview__title {
    font-size: var(--forty-five-mobile);
  }

  .foundry-overview__media {
    aspect-ratio: 4 / 3;
  }

  .foundry-pillars__grid {
    grid-template-columns: 1fr;
  }

  .foundry-pillar,
  .foundry-pillar--wide,
  .foundry-pillar:last-child {
    grid-column: auto;
    min-height: 300px;
  }

  .foundry-why__grid > h2 {
    font-size: var(--thirty-mobile);
  }

  .foundry-comparison {
    overflow-x: auto;
    border-radius: 14px;
  }

  .foundry-comparison__header,
  .foundry-comparison__row {
    min-width: 680px;
  }

  .technology-testimonial blockquote {
    font-size: var(--forty-four-mobile);
  }

  .technology-testimonial .eyebrow {
    flex-wrap: wrap;
  }

  .technology-testimonial .eyebrow b {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .foundry-button {
    transition: none;
  }
}
