.history-shell {
  --history-max: 1220px;
  --history-side: 58px;
  --history-red: #d40000;
  --history-line: rgba(18, 18, 18, 0.18);
}

.history-shell .sr-nav a[aria-current="page"] {
  color: var(--color-red);
}

.history-shell .sr-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.history-page {
  overflow: hidden;
  padding-top: 0;
  background-color: var(--color-paper);
  background-image: var(--paper-texture);
}

.history-block {
  width: min(100% - var(--history-side) * 2, var(--history-max));
  margin-inline: auto;
}

.history-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--color-black);
}

.history-hero__image {
  position: absolute;
  inset: 0 0 0 34.5%;
  margin: 0;
  background: var(--color-black);
}

.history-hero__image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 8px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.24));
  mix-blend-mode: multiply;
}

.history-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) saturate(0.18) contrast(1.16) brightness(0.86);
}

.history-hero__breadcrumb {
  position: absolute;
  top: 36px;
  left: 45px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.history-hero__breadcrumb a,
.history-hero__breadcrumb span {
  color: inherit;
}

.history-hero__breadcrumb .sep {
  color: rgba(255, 255, 255, 0.42);
}

.history-hero__image img {
  object-position: 47% center;
}

.history-hero__outline {
  position: absolute;
  top: 28px;
  left: 45px;
  z-index: 2;
  max-width: calc(100% - 90px);
  color: transparent;
  font-family: var(--font-en);
  font-size: clamp(4.6rem, 7.15vw, 6.35rem);
  font-weight: 500;
  line-height: 0.86;
  opacity: 0.78;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(214, 0, 0, 0.82);
  text-transform: uppercase;
  white-space: nowrap;
}

.history-hero__panel {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(49%, 520px);
  min-height: 260px;
  align-content: center;
  margin-top: 86px;
  padding: 44px 56px 50px;
  overflow: hidden;
  background-color: var(--history-red);
  background-image: var(--red-texture);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 88% 100%, 0 100%);
  color: var(--color-white);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
}

.history-hero__panel p {
  margin: 0 0 18px;
  font-family: var(--font-en);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  word-spacing: 0.14em;
}

.history-hero__panel h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.3vw, 4rem);
  font-weight: var(--weight-heavy);
  line-height: 1.14;
}

.history-hero__panel strong {
  display: block;
  margin-top: 26px;
  font-size: 1.12rem;
  font-weight: var(--weight-heavy);
  line-height: 1.85;
}

.history-proof {
  display: grid;
  grid-template-columns: 48px 1fr;
  width: min(100% - var(--history-side) * 2, 1030px);
  min-height: 142px;
  margin: 36px auto 38px;
  border: 1px solid rgba(18, 18, 18, 0.25);
  background: rgba(255, 255, 255, 0.35);
}

.history-proof__label {
  display: grid;
  place-items: center;
  margin: 0;
  background-color: var(--history-red);
  background-image: var(--red-texture);
  color: var(--color-white);
  font-size: 0.86rem;
  font-weight: var(--weight-heavy);
  line-height: 1.35;
  text-align: center;
  writing-mode: vertical-rl;
}

.history-proof__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.history-proof__item {
  display: grid;
  min-height: 108px;
  place-items: center;
  align-content: center;
  padding: 18px 18px;
  text-align: center;
}

.history-proof__item + .history-proof__item {
  border-left: 1px solid rgba(18, 18, 18, 0.34);
}

.history-proof__item p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: var(--weight-heavy);
  line-height: 1;
}

.history-proof__item div {
  color: var(--history-red);
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: var(--weight-heavy);
  line-height: 1;
  white-space: nowrap;
}

.history-proof__item div strong {
  font-family: var(--font-en);
  font-size: 4.95rem;
  font-weight: 500;
  line-height: 0.88;
}

.history-proof__item span {
  display: block;
  margin-top: 10px;
  color: #252522;
  font-size: 0.75rem;
  font-weight: var(--weight-heavy);
}

.history-section-heading {
  display: grid;
  gap: 8px;
}

.history-section-heading p {
  margin: 0;
  color: var(--history-red);
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.history-section-heading h2 {
  position: relative;
  display: inline-grid;
  width: fit-content;
  margin: 0;
  padding-bottom: 18px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 2.34rem;
  font-weight: var(--weight-heavy);
  line-height: 1.2;
}

.history-section-heading h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  content: "";
  background: var(--history-red);
}

.history-section-heading strong {
  display: block;
  margin-top: 24px;
  color: #252522;
  font-size: 0.88rem;
  font-weight: var(--weight-heavy);
  line-height: 2;
}

.history-clients {
  padding: 0 0 30px;
}

.history-clients__intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 26px;
}

.history-clients__intro > p {
  margin: 0 0 10px;
  color: #242421;
  font-size: 0.92rem;
  font-weight: var(--weight-heavy);
  line-height: 2.05;
}

.history-client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--history-line);
  border-left: 1px solid var(--history-line);
  background: rgba(255, 255, 255, 0.18);
}

.history-client-card {
  display: grid;
  min-height: 68px;
  place-items: center;
  padding: 20px 16px;
  border-right: 1px solid var(--history-line);
  border-bottom: 1px solid var(--history-line);
  color: #161613;
  font-size: 0.98rem;
  font-weight: var(--weight-heavy);
  line-height: 1.45;
  text-align: center;
}

.history-clients__note {
  margin: 14px 0 0;
  color: #20201d;
  font-size: 0.78rem;
  font-weight: var(--weight-heavy);
  text-align: right;
}

.history-records {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 18px);
  padding: 24px 0 60px;
}

.history-records__inner {
  display: grid;
  width: min(100% - var(--history-side) * 2, var(--history-max));
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 50px;
  margin-inline: auto;
}

.history-records__intro {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  padding-top: 18px;
}

.history-records__content {
  min-width: 0;
}

.history-year-tabs {
  display: flex;
  align-items: flex-end;
  margin-left: 8px;
}

.history-year-tabs a {
  position: relative;
  display: grid;
  min-width: 166px;
  min-height: 56px;
  place-items: center;
  border: 1px solid rgba(18, 18, 18, 0.28);
  background: rgba(255, 255, 255, 0.32);
  color: #22221f;
  font-size: 0.9rem;
  font-weight: var(--weight-heavy);
  transition: background 180ms ease, color 180ms ease;
}

.history-year-tabs a + a {
  margin-left: 5px;
}

.history-year-tabs a:hover,
.history-year-tabs a.is-active {
  border-color: var(--history-red);
  background-color: var(--history-red);
  background-image: var(--red-texture);
  color: var(--color-white);
}

.history-records__content:has(.history-year-panel:target) .history-year-tabs a.is-active {
  border-color: rgba(18, 18, 18, 0.28);
  background: rgba(255, 255, 255, 0.32);
  color: #22221f;
}

.history-records__content:has(#works-2026:target) .history-year-tabs a[href="#works-2026"],
.history-records__content:has(#works-2025:target) .history-year-tabs a[href="#works-2025"],
.history-records__content:has(#works-2024:target) .history-year-tabs a[href="#works-2024"] {
  border-color: var(--history-red);
  background-color: var(--history-red);
  background-image: var(--red-texture);
  color: var(--color-white);
}

.history-year-tabs a.is-active::after {
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 0;
  height: 0;
  content: "";
  border: 12px solid transparent;
  border-top-color: var(--history-red);
  transform: translateX(-50%);
}

.history-records__content:has(.history-year-panel:target) .history-year-tabs a.is-active::after {
  display: none;
}

.history-records__content:has(#works-2026:target) .history-year-tabs a[href="#works-2026"]::after,
.history-records__content:has(#works-2025:target) .history-year-tabs a[href="#works-2025"]::after,
.history-records__content:has(#works-2024:target) .history-year-tabs a[href="#works-2024"]::after {
  position: absolute;
  bottom: -12px;
  left: 50%;
  display: block;
  width: 0;
  height: 0;
  content: "";
  border: 12px solid transparent;
  border-top-color: var(--history-red);
  transform: translateX(-50%);
}

.history-records__content .history-year-tabs a.is-active {
  border-color: var(--history-red);
  background-color: var(--history-red);
  background-image: var(--red-texture);
  color: var(--color-white);
}

.history-records__content .history-year-tabs a.is-active::after {
  position: absolute;
  bottom: -12px;
  left: 50%;
  display: block;
  width: 0;
  height: 0;
  content: "";
  border: 12px solid transparent;
  border-top-color: var(--history-red);
  transform: translateX(-50%);
}

.history-year-panels {
  position: relative;
}

.history-year-panel {
  display: none;
}

.history-year-panel--default,
.history-year-panel:target {
  display: block;
}

.history-year-panel.is-hidden {
  display: none;
}

.history-year-panel.is-active {
  display: block;
}

.history-year-panels:has(.history-year-panel:target) .history-year-panel--default:not(:target) {
  display: none;
}

.history-year-panel__meta {
  display: block;
  margin: 2px 0 0;
  padding: 8px 0;
  color: #353531;
  font-size: 0.78rem;
  font-weight: var(--weight-heavy);
  text-align: right;
}

@media (min-width: 821px) {
  .history-year-panels {
    margin-top: 12px;
  }

  .history-year-panel {
    position: relative;
  }

  .history-year-panel__meta {
    position: absolute;
    top: -40px;
    right: 0;
    margin: 0;
    padding: 0;
  }
}

.records-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 16px 35px rgba(20, 20, 20, 0.04);
}

.records-table th,
.records-table td {
  border: 1px solid rgba(18, 18, 18, 0.17);
  font-size: 0.73rem;
  font-weight: var(--weight-heavy);
  line-height: 1.55;
  text-align: center;
  vertical-align: middle;
}

.records-table th {
  padding: 17px 12px;
  background: #070707;
  color: var(--color-white);
}

.records-table td {
  height: 48px;
  padding: 10px 12px;
  color: #1f1f1c;
}

.records-table th:nth-child(1),
.records-table td:nth-child(1) {
  width: 24%;
}

.records-table th:nth-child(2),
.records-table td:nth-child(2) {
  width: 48%;
}

.records-table th:nth-child(3),
.records-table td:nth-child(3) {
  width: 28%;
}

.records-cards {
  display: none;
}

.history-records__button {
  display: flex;
  width: min(100%, 300px);
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 38px auto 0;
  padding: 0 26px;
  border: 1px solid rgba(18, 18, 18, 0.45);
  background: rgba(255, 255, 255, 0.28);
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: var(--weight-heavy);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.history-records__button::after,
.history-records__mobile-link::after {
  width: 30px;
  height: 20px;
  content: "";
  background:
    linear-gradient(currentColor, currentColor) left 50% / 30px 2px no-repeat,
    linear-gradient(45deg, transparent 48%, currentColor 49% 55%, transparent 56%) right 50% / 12px 12px no-repeat;
  transition: transform 180ms ease;
}

.history-records__button:hover {
  background: var(--color-ink);
  color: var(--color-white);
  box-shadow: 0 14px 24px rgba(20, 20, 20, 0.14);
  transform: translateY(-2px);
}

.history-records__button:hover::after,
.history-records__mobile-link:hover::after {
  transform: translateX(4px);
}

.history-records__mobile-link {
  display: none;
}

@media (max-width: 1180px) {
  .history-shell {
    --history-side: 42px;
  }

  .history-hero__panel {
    width: min(54%, 500px);
  }

  .history-hero__outline {
    font-size: clamp(4rem, 6.7vw, 5.55rem);
  }

  .history-proof {
    width: min(100% - var(--history-side) * 2, 980px);
  }

  .history-clients__intro {
    gap: 44px;
  }

  .history-records__inner {
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 36px;
  }

  .history-year-tabs a {
    min-width: 150px;
  }

  .records-table th,
  .records-table td {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.68rem;
  }
}

@media (min-width: 821px) and (max-width: 1000px) {
  .history-hero__panel {
    width: min(47%, 400px);
    padding-right: 40px;
    padding-left: 40px;
  }

  .history-records__inner {
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 820px) {
  .history-shell {
    --history-side: 32px;
  }

  .history-hero {
    min-height: 492px;
  }

  .history-hero__image {
    inset: 0;
  }

  .history-hero__image::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.28)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 60%);
  }

  .history-hero__outline {
    top: 30px;
    left: var(--history-side);
    max-width: calc(100% - var(--history-side) * 2);
    font-size: 5.65rem;
    white-space: normal;
  }

  .history-hero__breadcrumb {
    top: 28px;
    left: var(--history-side);
  }

  .history-hero__panel {
    width: min(74%, 450px);
    min-height: 286px;
    margin-top: 170px;
    margin-left: var(--history-side);
    padding: 36px 40px 42px;
  }

  .history-proof {
    width: calc(100% - var(--history-side) * 2);
    margin-top: 0;
  }

  .history-proof__label {
    display: none;
  }

  .history-proof {
    grid-template-columns: 1fr;
  }

  .history-proof__item {
    min-height: 136px;
  }

  .history-proof__item div {
    font-size: 1.66rem;
  }

  .history-proof__item div strong {
    font-size: 4.2rem;
  }

  .history-clients__intro {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 26px;
  }

  .history-records {
    padding-top: 14px;
  }

  .history-records__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .history-records__intro {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    padding-top: 0;
  }

  .history-records__mobile-link {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 22px;
    color: #171714;
    font-size: 0.9rem;
    font-weight: var(--weight-heavy);
  }

  .history-records__mobile-link::after {
    color: var(--history-red);
  }

  .history-year-tabs {
    margin-left: 0;
  }

  .history-year-tabs a {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .history-shell {
    --history-side: 24px;
  }

  .history-page {
    padding-top: var(--header-height);
  }

  .history-hero {
    min-height: 464px;
  }

  .history-hero__image img {
    object-position: 52% center;
  }

  .history-hero__outline {
    top: 24px;
    max-width: 430px;
    font-size: 4.3rem;
    line-height: 0.9;
  }

  .history-hero__breadcrumb {
    top: 22px;
    font-size: 0.72rem;
  }

  .history-hero__panel {
    width: min(70%, 360px);
    min-height: 282px;
    margin-top: 146px;
    padding: 34px 30px 38px;
  }

  .history-hero__panel p {
    font-size: 0.78rem;
  }

  .history-hero__panel h1 {
    font-size: 3.12rem;
  }

  .history-hero__panel strong {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.85;
  }

  .history-proof {
    min-height: 142px;
    margin-bottom: 32px;
  }

  .history-proof__items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .history-proof__item {
    min-height: 142px;
    padding: 16px 8px;
  }

  .history-proof__item p {
    margin-bottom: 8px;
    font-size: 0.8rem;
  }

  .history-proof__item div {
    font-size: 1.22rem;
  }

  .history-proof__item div strong {
    font-size: 3.35rem;
  }

  .history-proof__item span {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .history-clients {
    padding-bottom: 34px;
  }

  .history-section-heading p {
    font-size: 0.74rem;
  }

  .history-section-heading h2 {
    padding-bottom: 14px;
    font-size: 2rem;
  }

  .history-clients__intro > p {
    font-size: 0.86rem;
    line-height: 1.95;
  }

  .history-client-card {
    min-height: 54px;
    padding: 13px 8px;
    font-size: 0.82rem;
  }

  .history-clients__note {
    text-align: left;
  }

  .history-records {
    padding-bottom: 36px;
  }

  .history-records__intro {
    gap: 16px;
  }

  .history-section-heading strong {
    display: none;
  }

  .history-year-tabs {
    gap: 12px;
  }

  .history-year-tabs a {
    min-height: 43px;
    font-size: 0.86rem;
  }

  .history-year-tabs a + a {
    margin-left: 0;
  }

  .history-year-tabs a.is-active::after {
    bottom: -14px;
  }

  .records-table {
    display: none;
  }

  .records-cards {
    display: grid;
    gap: 0;
    margin-top: 0;
    border: 1px solid rgba(18, 18, 18, 0.14);
    background: rgba(255, 255, 255, 0.3);
  }

  .records-card {
    position: relative;
    min-height: 0;
    border: 0;
    background: transparent;
  }

  .records-card + .records-card {
    border-top: 3px solid rgba(18, 18, 18, 0.24);
  }

  .records-card + .records-card::before {
    position: absolute;
    top: -3px;
    left: 0;
    width: 86px;
    height: 3px;
    content: "";
    background: var(--history-red);
  }

  .records-card dl {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .records-card div {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 0;
    border-bottom: 1px solid rgba(18, 18, 18, 0.12);
  }

  .records-card div:last-child {
    border-bottom: 0;
  }

  .records-card:nth-child(even) {
    background: rgba(255, 255, 255, 0.18);
  }

  .records-card dt,
  .records-card dd {
    margin: 0;
    color: #171714;
    font-size: 0.78rem;
    font-weight: var(--weight-heavy);
    line-height: 1.65;
  }

  .records-card dt {
    padding: 8px 14px 8px 18px;
    border-right: 1px solid rgba(18, 18, 18, 0.16);
  }

  .records-card dd {
    padding: 8px 16px 8px 22px;
  }

  .records-card dd span {
    display: inline-block;
    margin-left: 22px;
  }

  .history-records__button {
    min-height: 48px;
    margin-top: 18px;
  }

}

@media (max-width: 520px) {
  .history-proof__item div {
    font-size: 0.98rem;
  }

  .history-proof__item div strong {
    font-size: 2.85rem;
  }

  .history-records__intro {
    grid-template-columns: 1fr;
  }

  .history-records__mobile-link {
    justify-self: end;
    margin-top: -44px;
    margin-bottom: 8px;
  }

  .history-year-tabs {
    gap: 9px;
  }

  .history-year-tabs a {
    font-size: 0.78rem;
  }

  .records-card div {
    grid-template-columns: 74px 1fr;
  }

  .records-card + .records-card::before {
    width: 74px;
  }

  .records-card dt {
    padding-inline: 12px 10px;
  }

  .records-card dd {
    padding-inline: 16px 12px;
  }

  .records-card dd span {
    display: block;
    margin-left: 0;
  }

}

@media (min-width: 600px) and (max-width: 820px) {
  .history-clients__intro {
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: end;
  }

  .history-clients__intro > p {
    margin-bottom: 10px;
  }

}

@media (max-width: 430px) {
  .history-shell {
    --history-side: 18px;
  }

  .history-hero__outline {
    font-size: 3.45rem;
  }

  .history-hero__panel {
    width: calc(100% - var(--history-side) * 2 - 18px);
    padding-inline: 26px;
  }

  .history-hero__panel h1 {
    font-size: 2.62rem;
  }

  .history-hero__panel strong {
    font-size: 0.9rem;
  }

  .history-proof__item p {
    font-size: 0.72rem;
  }

  .history-proof__item div {
    font-size: 0.86rem;
  }

  .history-proof__item div strong {
    font-size: 2.35rem;
  }

  .history-proof__item span {
    font-size: 0.62rem;
  }

  .history-client-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .history-client-card {
    font-size: 0.72rem;
  }

}

@media (max-width: 360px) {
  .history-proof__items {
    grid-template-columns: 1fr;
  }

  .history-proof__item + .history-proof__item {
    border-top: 1px solid rgba(18, 18, 18, 0.18);
    border-left: 0;
  }

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

  .history-year-tabs {
    grid-template-columns: 1fr;
    display: grid;
  }

  .history-records__mobile-link {
    margin-top: 0;
  }

}
