.about-page {
  --about-dark: #0c1319;
  --about-paper: #f0eeea;
  --about-muted: #d6d9dc;
  --about-edge: clamp(1.25rem, 5.4vw, 7rem);
  --about-rule: rgb(213 174 98 / .53);
  background: var(--about-dark);
}

.about-inner {
  position: relative;
  width: 100%;
  max-width: 112rem;
  margin-inline: auto;
  padding-inline: var(--about-edge);
}

.about-display, .about-heading {
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.about-heading { font-size: clamp(1.75rem, 3.15vw, 3.65rem); }

.about-display {
  font-family: "Zalando Sans Expanded", "DM Sans", sans-serif;
  font-size: clamp(1.4rem, 2.65vw, 3.3rem);
  font-style: italic;
  font-weight: 800;
}

.about-display span, .about-display em, .about-heading span, .about-heading em {
  display: block;
}

.about-display em, .about-heading em {
  color: var(--gold);
  font-style: inherit;
}

.about-kicker {
  margin-bottom: .65rem;
  color: var(--gold);
  font-size: clamp(.75rem, .94vw, .95rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about-stripe {
  width: 3.5rem;
  height: 4px;
  margin-top: 1.1rem;
  background: linear-gradient(to right, #fff 50%, #ce1b2b 50%);
  transform: skewX(-24deg);
}

.about-section-lead {
  max-width: 33ch;
  margin-top: 1.25rem;
  color: var(--about-muted);
  line-height: 1.55;
}

.about-intro {
  position: relative;
  isolation: isolate;
  align-items: center;
  padding-block: clamp(5rem, 7vw, 8.2rem) clamp(2.5rem, 5vw, 5.2rem);
  background:
    linear-gradient(180deg, #0a1219 1%, rgb(10 18 25 / .88) 23%, transparent 83%, rgb(10 18 25 / .23)),
    linear-gradient(90deg, rgb(10 18 25 / .57), rgb(10 18 25 / .42) 46%, #0a1219 88%),
    url("../assets/o-firmie/droga.webp") right 54% / cover no-repeat;
  overflow: clip;
}

.about-intro::before, .about-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 24%;
  height: 86%;
  background: linear-gradient(150deg, rgb(240 235 222 / .17), transparent 68%);
  clip-path: polygon(78% 0, 100% 0, 30% 100%, 8% 100%);
  pointer-events: none;
}

.about-intro::before { inset: 0 auto auto 2%; }
.about-intro::after { inset: auto -1% 0 auto; transform: rotate(180deg); }

.about-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
}

.about-intro__year {
  color: var(--gold);
  font-family: "Zalando Sans Expanded", "DM Sans", sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(9rem, 17.5vw, 22rem);
  line-height: .95;
  letter-spacing: -.085em;
  text-indent: .025em;
}

@supports (background-clip: text) {
  .about-intro__year {
    color: transparent;
    background:
      linear-gradient(180deg, rgb(178 201 225 / .38), transparent 34%, rgb(236 175 83 / .09) 73%, #0b1118),
      url("../assets/o-firmie/droga.webp") 21% 55% / 128% auto no-repeat;
    background-clip: text;
  }
}

.about-intro__copy { position: relative; }

.about-intro .about-display { font-size: clamp(1.25rem, 2.07vw, 2.75rem); }

.about-intro__copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(-3.2rem, -2.4vw, -1.4rem);
  width: 2px;
  height: 4.45rem;
  background: linear-gradient(transparent, var(--gold), transparent);
  transform: skewX(-26deg);
}

.about-intro__copy p {
  max-width: 38ch;
  margin-top: 1rem;
  color: var(--about-muted);
  font-size: clamp(.95rem, 1.16vw, 1.16rem);
  line-height: 1.5;
}

.about-light {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: #15181b;
  background: var(--about-paper);
}

.about-light .about-kicker, .about-light .about-heading em, .about-light .about-display em { color: #886023; }
.about-light .about-stripe { background: linear-gradient(to right, #d2cdc3 50%, #ce1b2b 50%); }

.about-origins .about-heading, .about-timeline .about-heading {
  font-size: clamp(1.65rem, 2.7vw, 3.35rem);
}

.about-origins__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(1.25rem, 2.7vw, 3.4rem);
  padding-block: clamp(2.25rem, 3.3vw, 4rem) clamp(3.2rem, 4.4vw, 5rem);
}

.about-origins__inner::after {
  content: "";
  position: absolute;
  inset: auto var(--about-edge) 1.55rem;
  height: 2px;
  background: linear-gradient(90deg, #a47b35, rgb(167 131 62 / .64), rgb(167 131 62 / .33));
}

.about-origins__copy, .about-roots__inner > p {
  padding-left: clamp(1.1rem, 2.45vw, 3rem);
  border-left: 1px solid rgb(151 114 48 / .5);
  font-size: clamp(.94rem, 1.08vw, 1.16rem);
  line-height: 1.5;
}

.about-origins__stat {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: .8rem;
}

.about-origins__stat strong {
  color: #886023;
  font-size: clamp(2.7rem, 5.8vw, 6.9rem);
  line-height: .94;
  letter-spacing: -.07em;
  white-space: nowrap;
}

.about-origins__stat small {
  font-size: .24em;
  letter-spacing: 0;
}

.about-origins__stat span {
  max-width: 16ch;
  font-size: clamp(.77rem, .94vw, .95rem);
  font-weight: 700;
  line-height: 1.24;
}

.about-origins__image, .about-event__image, .about-technology__figure { margin: 0; }

.about-origins__image {
  position: absolute;
  z-index: -1;
  inset: 50% 0 auto auto;
  width: 52%;
  height: min(88%, 62vw);
  translate: 0 -50%;
}

.about-origins__image img, .about-event__image img, .about-technology__figure img, .about-next > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-origins__image img {
  object-position: 73% center;
  mask-image:
    linear-gradient(90deg, transparent 22%, #000 64%),
    linear-gradient(180deg, transparent, #000 14% 89%, transparent);
  mask-composite: intersect;
}

.about-page figcaption {
  width: max-content;
  max-width: 100%;
  padding: .2rem .5rem;
  color: #f7f6f4;
  background: rgb(14 20 24 / .91);
  font-size: .69rem;
  line-height: 1.25;
}

.about-origins__image figcaption {
  position: absolute;
  right: var(--about-edge);
  bottom: 2.1rem;
}

.about-timeline {
  overflow: clip;
  background: linear-gradient(132deg, #111b23, var(--about-dark) 37%);
}

.about-timeline__inner {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 2.3fr);
  gap: clamp(1.35rem, 3vw, 3.5rem);
  padding-right: 0;
}

.about-timeline__heading { align-self: center; padding-block: clamp(2.1rem, 3.6vw, 4.4rem); }

.about-timeline__events {
  position: relative;
  display: grid;
  grid-auto-rows: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-timeline__events::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(transparent, var(--gold) 17% 83%, transparent);
  box-shadow: 0 0 12px rgb(223 166 74 / .3);
}

.about-event {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(4.75rem, .48fr) minmax(0, 1.1fr) minmax(0, 1.73fr);
  align-items: center;
  gap: clamp(.75rem, 1.5vw, 1.6rem);
  min-height: clamp(7.2rem, 8.7vw, 11.4rem);
  padding: 1rem var(--about-edge) 1rem clamp(1rem, 2vw, 2.5rem);
}

.about-event + .about-event { border-top: 1px solid rgb(225 229 229 / .2); }

.about-event::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: .8rem;
  height: .8rem;
  border: 2px solid #f1d395;
  border-radius: 50%;
  background: #463624;
  box-shadow: 0 0 13px rgb(223 166 74 / .75);
  translate: -50% -50%;
}

.about-event time {
  color: var(--gold);
  font-size: clamp(1.9rem, 3.06vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .95;
  white-space: nowrap;
}

.about-event h3, .about-spec {
  font-size: clamp(.85rem, 1.07vw, 1.18rem);
  font-weight: 700;
  line-height: 1.14;
  text-transform: uppercase;
}

.about-event p {
  margin-top: .35rem;
  color: var(--about-muted);
  font-size: clamp(.8rem, .97vw, 1rem);
  line-height: 1.4;
}

.about-event__image {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 57%;
}

.about-event__image img {
  object-position: right 56%;
  mask-image: linear-gradient(to right, transparent 0%, #000 40%);
}

.about-event--current .about-event__image img { object-position: 85% 49%; }

.about-event__image figcaption {
  position: absolute;
  right: var(--about-edge);
  bottom: .45rem;
}

.about-technology {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-block: 1px solid rgb(255 255 255 / .16);
  background: #0c1319 url("../assets/o-firmie/droga.webp") center 56% / cover no-repeat;
}

.about-technology::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #0b1218 4% 23%, rgb(11 18 24 / .96) 40%, rgb(11 18 24 / .65) 85%);
}

.about-technology__inner {
  --technology-frame: min(64dvh, 43vw);
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 2fr);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 4.4rem);
}

.about-technology__figure {
  position: absolute;
  z-index: -1;
  inset: 50% 9% auto 33%;
  height: var(--technology-frame);
  translate: 0 -50%;
}

.about-technology__figure img {
  position: absolute;
  left: 53%;
  width: auto;
  max-width: 100%;
  translate: -50% 0;
  object-fit: contain;
  mask-image:
    linear-gradient(90deg, transparent, #000 18% 79%, transparent),
    linear-gradient(180deg, transparent, #000 16% 87%, transparent);
  mask-composite: intersect;
}

.about-technology__specs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-spec {
  position: absolute;
  width: max-content;
  max-width: min(15vw, 13rem);
  padding: .5rem .65rem;
  border-bottom: 1px solid var(--gold);
  background: rgb(12 20 26 / .82);
}

.about-spec::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 100%;
  width: clamp(1.1rem, 4.5vw, 4.6rem);
  border-top: 1px solid var(--gold);
  transform: rotate(35deg);
  transform-origin: left;
}

.about-spec--tractor { top: calc(50% - var(--technology-frame) * .36); left: 32%; }
.about-spec--emissions { bottom: calc(50% - var(--technology-frame) * .24); left: 34%; }
.about-spec--tank { top: calc(50% - var(--technology-frame) * .36); right: var(--about-edge); }
.about-spec--tachograph { bottom: calc(50% - var(--technology-frame) * .29); right: var(--about-edge); }

.about-spec--tank::after, .about-spec--tachograph::after {
  right: 100%;
  left: auto;
  transform: rotate(-35deg);
  transform-origin: right;
}

.about-roots__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.6vw, 3rem);
  align-items: center;
  min-height: clamp(11.25rem, 14vw, 17rem);
  padding-block: clamp(2rem, 3.2vw, 3.5rem);
}

.about-roots__map {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 36%;
  height: 100%;
  object-fit: cover;
  object-position: right 44%;
  mask-image: linear-gradient(90deg, transparent, #000 36%);
}

.about-numbers {
  border-bottom: 1px solid rgb(255 255 255 / .2);
  background: linear-gradient(111deg, #0b141b, #121d24 52%, #0e161d);
}

.about-numbers__inner {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 2.43fr);
  gap: clamp(1.5rem, 3.1vw, 3.8rem);
  align-items: center;
  padding-block: clamp(1.5rem, 2.5vw, 2.8rem);
}

.about-numbers .about-heading { font-size: clamp(1.3rem, 2.05vw, 2.2rem); }

.about-numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.about-numbers__grid > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: start;
  gap: .5rem;
  padding-inline: clamp(.6rem, 2vw, 2.3rem);
}

.about-numbers__grid > div + div { border-left: 1px solid var(--about-rule); }

.about-numbers dt {
  max-width: 18ch;
  color: var(--about-muted);
  font-size: clamp(.8rem, 1vw, 1.04rem);
  line-height: 1.25;
}

.about-numbers dd {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.7rem, 3.25vw, 3.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.065em;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-next {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #0b1218 url("../assets/o-firmie/droga.webp") center 62% / cover no-repeat;
}

.about-next > img, .about-next::before {
  position: absolute;
  inset: 0;
}

.about-next > img {
  z-index: -2;
  left: auto;
  width: 72%;
  object-position: right 32%;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}

.about-next::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #0b1218 2%, rgb(11 18 24 / .93) 18%, rgb(11 18 24 / .64) 40%, transparent 65%);
}

.about-next__inner {
  display: grid;
  align-items: center;
  min-height: clamp(21rem, 27vw, 33rem);
  padding-block: clamp(2.5rem, 5vw, 6rem);
}

.about-next__copy { max-width: clamp(25rem, 49vw, 48rem); }
.about-next .about-display { font-size: clamp(1.65rem, 4vw, 4.7rem); }
.about-next p { margin-top: 1rem; font-size: clamp(1rem, 1.25vw, 1.25rem); }

.about-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.55rem;
  margin: 1.55rem .5rem 0;
}

.about-next__actions .hero-button { min-width: 0; }

@media (max-width: 980px) {
  .about-intro__inner { gap: clamp(1rem, 3vw, 2rem); }
  .about-intro__copy::before { display: none; }
  .about-timeline__inner { grid-template-columns: minmax(0, .72fr) minmax(0, 2.3fr); }
  .about-event { grid-template-columns: minmax(4.1rem, .4fr) minmax(0, 1.1fr) minmax(0, .9fr); }
  .about-event__image { width: 47%; }
  .about-event__image img { mask-image: linear-gradient(to right, transparent, #000 62%); }
  .about-origins__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, .55fr); }
  .about-origins__image { width: 49%; }
  .about-technology__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .about-technology__figure { right: 0; left: 32%; }
  .about-spec { font-size: .75rem; }
  .about-spec--tractor { left: 39%; }
  .about-spec--emissions { left: 38%; }
}

@media (max-width: 700px), (max-width: 980px) and (orientation: portrait) {
  .about-intro {
    background-position: center, center, center 62%;
    background-size: auto, auto, cover;
    padding-block: 5.7rem 4.4rem;
  }

  .about-intro__inner, .about-origins__inner, .about-timeline__inner, .about-technology__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-intro__year {
    width: max-content;
    max-width: 100%;
    font-size: clamp(5.55rem, 22vw, 10.5rem);
    line-height: .93;
  }

  .about-intro__copy { padding-left: .1rem; }
  .about-intro__copy p { max-width: 38ch; margin-top: .65rem; }
  .about-intro .about-display { font-size: clamp(1.45rem, 5.2vw, 2.4rem); }

  .about-origins { align-content: center; }
  .about-origins__inner { grid-row: 1; padding-block: 2rem 1.5rem; }
  .about-origins__inner::after { display: none; }
  .about-origins__copy { padding: 0; border: 0; }
  .about-origins__stat { gap: .8rem; }
  .about-origins__stat strong { font-size: 3.7rem; }

  .about-origins__image {
    position: relative;
    z-index: auto;
    inset: auto;
    width: 100%;
    height: clamp(12rem, min(42dvh, 76vw), 25rem);
    translate: none;
  }

  .about-origins__image img {
    mask-image: linear-gradient(180deg, transparent, #000 18% 93%, transparent);
    object-position: right 56%;
  }

  .about-origins__image figcaption { bottom: .65rem; }

  .about-timeline__inner { align-content: center; padding-right: var(--about-edge); gap: 0; }
  .about-timeline__heading { padding-bottom: 1.2rem; }
  .about-section-lead { margin-top: .9rem; }
  .about-timeline__events { grid-auto-rows: auto; margin-left: .45rem; padding-bottom: 1.5rem; }
  .about-timeline__events::before { background: linear-gradient(var(--gold) 77%, transparent); }

  .about-event {
    grid-template-columns: minmax(3.7rem, auto) minmax(0, 1fr);
    gap: .6rem .8rem;
    min-height: 0;
    padding: 1.05rem 0 1.2rem .98rem;
  }

  .about-event::before { top: 1.85rem; }
  .about-event time { align-self: start; }

  .about-event__image {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: clamp(6rem, 31vw, 13rem);
  }

  .about-event__image img { mask-image: none; object-position: 70% 53%; }
  .about-event__image figcaption { right: .45rem; }
  .about-technology__inner { align-content: center; gap: clamp(1rem, 3dvh, 2rem); }

  .about-technology__figure {
    position: relative;
    z-index: auto;
    inset: auto;
    height: clamp(13rem, min(39dvh, 74vw), 26rem);
    translate: none;
  }

  .about-technology__figure img {
    position: static;
    width: 100%;
    translate: none;
    object-fit: cover;
    object-position: 55% 57%;
    mask-image: linear-gradient(90deg, transparent, #000 9% 93%, transparent);
  }

  .about-technology__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem 1rem;
  }

  .about-spec {
    position: static;
    width: auto;
    max-width: none;
    padding: .5rem 0;
    border-bottom-color: var(--about-rule);
    background: transparent;
  }

  .about-spec::after { display: none; }
}

@media (max-width: 700px) {
  .about-display { font-size: clamp(1.45rem, 5.2vw, 2.4rem); }
  .about-roots__inner, .about-numbers__inner { grid-template-columns: minmax(0, 1fr); }
  .about-roots__inner > p { padding: 0; border: 0; }
  .about-roots { padding-bottom: clamp(6.8rem, 35vw, 12rem); }
  .about-roots__inner { gap: 1.05rem; padding-bottom: 0; }
  .about-roots__map {
    inset: auto 0 0 auto;
    width: 88%;
    height: clamp(6.5rem, 34vw, 12rem);
    object-position: 75% 49%;
    mask-image: linear-gradient(135deg, transparent, #000 34%);
  }

  .about-numbers__inner { gap: 1.1rem; }
  .about-numbers .about-stripe { margin-top: .7rem; }
  .about-numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 0; }
  .about-numbers__grid > div { padding-inline: 0 .4rem; }
  .about-numbers__grid > div:nth-child(odd) { border-left: 0; }
  .about-numbers__grid > div:nth-child(even) { padding-inline: 1rem 0; }
  .about-numbers dd { font-size: clamp(1.8rem, 7vw, 2.9rem); }

  .about-next__inner { min-height: 0; padding-top: clamp(13.25rem, 60vw, 24rem); }
  .about-next > img {
    width: 100%;
    height: clamp(17rem, 75vw, 27rem);
    object-position: 82% 56%;
    mask-image: none;
  }
  .about-next::before {
    background: linear-gradient(180deg, transparent 28%, rgb(11 18 24 / .68) 50%, #0b1218 70%);
  }
  .about-next .about-display { font-size: clamp(1.55rem, 6.25vw, 2.8rem); }
  .about-next__actions { align-items: flex-start; flex-direction: column; margin-top: 1.2rem; gap: .65rem; }
}
