:root {
  --paper: #f8f5ee;
  --paper-warm: #fbf7ef;
  --paper-cool: #f4f8ef;
  --ink: #1d211d;
  --muted: #5f665f;
  --sage: #829470;
  --sage-dark: #657853;
  --company-green: #80946f;
  --line: rgba(117, 132, 103, 0.24);
  --pad: clamp(2.4rem, 5vw, 6.8rem);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #edeae3;
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.company-profile__sprite {
  display: none;
}

.company-contact-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.4rem;
  padding: 1.2rem var(--pad);
  color: rgba(29, 33, 29, 0.8);
  background: rgba(248, 245, 238, 0.88);
  border-bottom: 1px solid rgba(117, 132, 103, 0.18);
  backdrop-filter: blur(14px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.company-contact-bar__back {
  white-space: nowrap;
}

.company-contact-bar__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem clamp(1.6rem, 2vw, 3rem);
}

.company-contact-bar a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.5rem;
}

.company-profile--premium {
  --poster-width: 86.4rem;
  --poster-ratio: calc(864 / 1821);
  --max: var(--poster-width);
  color: var(--ink);
  background: transparent;
  overflow: hidden;
  text-align: left;
}

.company-profile--premium h2,
.company-profile--premium h3,
.company-profile--premium p,
.company-profile--premium figure {
  margin: 0;
}

.company-profile__poster-reference {
  width: min(100%, var(--poster-width));
  aspect-ratio: var(--poster-ratio);
  max-width: var(--poster-width);
  margin: 0 auto;
  background: #fbf8f2;
  box-shadow: 0 2.4rem 7rem rgba(29, 33, 29, 0.1);
}

.company-profile__poster-reference img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-profile--premium .company-profile__hero,
.company-profile--premium .company-profile__section-head,
.company-profile__capabilities,
.company-profile--premium .company-profile__stats,
.company-profile--premium .company-profile__timeline {
  display: none !important;
}

.company-profile--premium .company-profile__hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  min-height: clamp(62rem, 55vw, 78rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(7rem, 8vw, 12.5rem) var(--pad) clamp(6rem, 6vw, 9rem);
  background:
    linear-gradient(90deg, rgba(251, 247, 239, 0.98) 0%, rgba(251, 247, 239, 0.94) 33%, rgba(251, 247, 239, 0.56) 48%, rgba(251, 247, 239, 0.08) 70%),
    linear-gradient(180deg, #f8f1e8 0%, #fbf8f2 72%, #f7f3ec 100%);
}

.company-profile__hero-copy {
  position: relative;
  z-index: 2;
  max-width: 74rem;
  padding-top: clamp(1rem, 2vw, 3rem);
}

.company-profile--premium .company-profile__hero h2 {
  max-width: none;
  color: #20241f;
  font-size: clamp(5.2rem, 4.7vw, 7.2rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.company-profile--premium .company-profile__hero h2 span {
  display: block;
  white-space: nowrap;
}

.company-profile__summary {
  max-width: 52rem;
  margin-top: clamp(2.4rem, 2.8vw, 4rem);
  color: #303a37;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.7rem, 1.3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.62;
}

.company-profile__hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  background:
    radial-gradient(circle at 76% 42%, rgba(228, 220, 202, 0.48) 0 22rem, transparent 46rem),
    linear-gradient(180deg, #f8f1e8 0%, #fbf8f2 72%, #f7f3ec 100%);
}

.company-profile__hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 14% 58%, rgba(251, 247, 239, 0.55) 0 8rem, transparent 18rem),
    linear-gradient(90deg, rgba(251, 247, 239, 0.98) 0%, rgba(251, 247, 239, 0.72) 35%, rgba(251, 247, 239, 0.1) 58%, rgba(251, 247, 239, 0) 100%);
  pointer-events: none;
}

.company-profile__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: saturate(0.95) contrast(0.98);
}

.company-profile--premium .company-profile__section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.company-profile--premium .company-profile__section-head p {
  display: none;
}

.company-profile--premium .company-profile__section-head h2 {
  display: none;
}

.company-profile--premium .company-profile__section-head--center {
  text-align: left;
}

.company-profile__capabilities {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.6rem, 1.6vw, 2.4rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(6rem, 6vw, 8.8rem) var(--pad) clamp(6.8rem, 6vw, 9.2rem);
  background: linear-gradient(180deg, #f7f9f2 0%, #fbfaf5 100%);
  border-top: 0.8rem solid #fff;
}

.company-profile__capabilities article {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: clamp(24rem, 23vw, 34rem);
  padding: clamp(2.6rem, 2.5vw, 4.2rem) 1.8rem;
  background: rgba(255, 254, 249, 0.68);
  border: 1px solid rgba(117, 132, 103, 0.23);
  border-radius: 1rem;
  box-shadow: none;
  text-align: center;
}

.company-profile__icon {
  display: grid;
  place-items: center;
  width: clamp(6.8rem, 6vw, 9.8rem);
  height: clamp(6.8rem, 6vw, 9.8rem);
  margin-bottom: clamp(2.8rem, 3vw, 4.4rem);
  color: #99aa8a;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.company-profile__icon svg,
.company-profile__timeline-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.company-profile__capabilities h3 {
  position: relative;
  max-width: 13ch;
  padding-top: 3rem;
  color: #171c19;
  font-size: clamp(2rem, 1.85vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.company-profile__capabilities h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 5.2rem;
  height: 1px;
  background: rgba(117, 132, 103, 0.46);
  transform: translateX(-50%);
}

.company-profile__capabilities p {
  display: none;
}

.company-profile--premium .company-profile__stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.18fr 1fr 1fr;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 5.5vw, 7.4rem) var(--pad);
  background: linear-gradient(180deg, #fffef9 0%, #fbfaf5 100%);
  border-top: 0.8rem solid #fff;
  border-right: 0;
  border-bottom: 0.8rem solid #fff;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.company-profile--premium .company-profile__stats article {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 12rem;
  padding: 0 clamp(1.2rem, 2vw, 3rem);
  border-right: 1px solid rgba(117, 132, 103, 0.22);
  text-align: center;
}

.company-profile--premium .company-profile__stats article:last-child {
  border-right: 0;
}

.company-profile--premium .company-profile__stats strong,
.company-profile--premium .company-profile__stats strong span,
.company-profile--premium .company-profile__stats article:nth-child(3) strong,
.company-profile--premium .company-profile__stats article:nth-child(3) strong span {
  color: var(--sage-dark) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(3.8rem, 3.75vw, 5.8rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.04em !important;
  line-height: 0.92 !important;
  white-space: nowrap !important;
}

.company-profile--premium .company-profile__stats article:nth-child(3) strong,
.company-profile--premium .company-profile__stats article:nth-child(3) strong span {
  font-size: clamp(3.2rem, 3.15vw, 4.8rem) !important;
}

.company-profile--premium .company-profile__stats span:last-child {
  margin-top: 1.6rem;
  color: #191d19;
  font-size: clamp(1.4rem, 1.15vw, 1.8rem);
  font-weight: 500;
  line-height: 1.15;
}

.company-profile--premium .company-profile__timeline {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(7.4rem, 7vw, 10rem) var(--pad) clamp(8rem, 8vw, 12rem);
  background: linear-gradient(180deg, #f5f9f0 0%, #fbfaf5 100%);
}

.company-profile--premium .company-profile__timeline .company-profile__section-head {
  display: none;
}

.company-profile--premium .company-profile__timeline-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3rem, 8vw, 13rem);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.company-profile--premium .company-profile__timeline-list::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: clamp(11.2rem, 9vw, 14rem);
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(101, 120, 83, 0.62) 0 0.7rem, transparent 0.7rem 1.4rem);
}

.company-profile--premium .company-profile__timeline-list li {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.company-profile__timeline-icon {
  display: grid;
  place-items: center;
  width: clamp(8.8rem, 8vw, 12rem);
  height: clamp(8.8rem, 8vw, 12rem);
  color: #95a586;
  border: 1px solid rgba(101, 120, 83, 0.66);
  border-radius: 50%;
  background: rgba(255, 255, 250, 0.54);
}

.company-profile__timeline-icon svg {
  width: 48%;
  height: 48%;
}

.company-profile__timeline-dot {
  position: relative;
  z-index: 2;
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  margin: 2.1rem 0 2.7rem;
  border-radius: 50%;
  background: var(--sage-dark);
  box-shadow: 0 0 0 0.6rem rgba(245, 249, 240, 0.92);
}

.company-profile--premium .company-profile__timeline-list time {
  color: var(--sage-dark);
  font-size: clamp(4.8rem, 5.3vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.company-profile--premium .company-profile__timeline-list h3 {
  max-width: 18ch;
  margin-top: 1.8rem;
  color: #171c19;
  font-size: clamp(1.9rem, 1.65vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.company-profile--premium .company-profile__timeline-list p {
  display: none;
}

[data-reveal] {
  transition: opacity 520ms ease, transform 520ms ease;
}

@media (max-width: 980px) {
  .company-profile--premium .company-profile__hero {
    grid-template-columns: 1fr;
    min-height: clamp(68rem, 95vw, 84rem);
    padding-top: 6rem;
  }

  .company-profile__hero-copy {
    max-width: 58rem;
  }

  .company-profile__hero-media img {
    object-position: right bottom;
  }

  .company-profile__capabilities,
  .company-profile--premium .company-profile__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-profile__capabilities article:last-child,
  .company-profile--premium .company-profile__stats article:last-child {
    grid-column: 1 / -1;
  }

  .company-profile--premium .company-profile__stats article:nth-child(2n) {
    border-right: 0;
  }

  .company-profile--premium .company-profile__stats article {
    padding-top: 2.8rem;
    padding-bottom: 2.8rem;
    border-bottom: 1px solid rgba(117, 132, 103, 0.22);
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 2rem;
  }

  .company-contact-bar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    gap: 1.2rem;
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }

  .company-contact-bar__links {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.9rem;
  }

  .company-profile__poster-reference {
    width: 100%;
    box-shadow: none;
  }

  .company-profile--premium .company-profile__hero {
    min-height: 68rem;
    padding-top: 4rem;
    padding-bottom: 24rem;
    background:
      linear-gradient(180deg, rgba(251, 247, 239, 0.98) 0%, rgba(251, 247, 239, 0.9) 49%, rgba(251, 247, 239, 0.08) 78%),
      #fbf7ef;
  }

  .company-profile__hero-media::before {
    background: linear-gradient(180deg, rgba(251, 247, 239, 0.98) 0%, rgba(251, 247, 239, 0.75) 42%, rgba(251, 247, 239, 0.08) 70%);
  }

  .company-profile__hero-media img {
    object-position: right bottom;
  }

  .company-profile--premium .company-profile__hero h2 {
    font-size: clamp(3.6rem, 10vw, 4.8rem);
    line-height: 1;
  }

  .company-profile--premium .company-profile__hero h2 span {
    white-space: normal;
  }

  .company-profile__summary {
    max-width: 100%;
    font-size: 1.65rem;
    line-height: 1.55;
  }

  .company-profile__capabilities,
  .company-profile--premium .company-profile__stats,
  .company-profile--premium .company-profile__timeline-list {
    grid-template-columns: 1fr;
  }

  .company-profile__capabilities {
    padding-top: 4.8rem;
    padding-bottom: 5rem;
  }

  .company-profile__capabilities article {
    min-height: 21rem;
  }

  .company-profile--premium .company-profile__stats article,
  .company-profile--premium .company-profile__stats article:nth-child(2n),
  .company-profile--premium .company-profile__stats article:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(117, 132, 103, 0.22);
  }

  .company-profile--premium .company-profile__stats article:last-child {
    border-bottom: 0;
  }

  .company-profile--premium .company-profile__timeline {
    padding-top: 6rem;
  }

  .company-profile--premium .company-profile__timeline-list {
    gap: 5.4rem;
  }

  .company-profile--premium .company-profile__timeline-list::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none;
  }
}
