.history-body {
  background: #fbfaf7;
}

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

.history-page {
  overflow: hidden;
}

.history-shell {
  width: min(1180px, 88vw);
  margin: 0 auto;
}

.history-eyebrow {
  margin: 0 0 18px;
  color: var(--sage);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.history-eyebrow--light {
  color: var(--gold);
}

.history-hero {
  position: relative;
  min-height: 720px;
  height: min(88vh, 880px);
  overflow: hidden;
  background: #e9e2d7;
}

.history-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-in 1.6s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.history-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 245, 239, 0.98) 0%, rgba(248, 245, 239, 0.94) 28%, rgba(248, 245, 239, 0.45) 50%, rgba(248, 245, 239, 0) 68%);
}

.history-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1180px, 88vw);
  height: 100%;
  margin: 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 76px;
}

.history-hero h1 {
  margin: 0;
  color: #685437;
  font-family: var(--script);
  font-size: clamp(78px, 8.5vw, 132px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.72;
  transform: rotate(-3deg);
}

.history-hero h1 span {
  display: inline-block;
  margin-left: 0.18em;
  font-size: 0.69em;
  letter-spacing: -0.04em;
}

.history-hero__intro {
  max-width: 440px;
  margin: 42px 0 28px 5px;
  color: #4c463d;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.55;
}

.history-hero__button,
.history-cta-band__button {
  border-radius: 18px 18px 18px 7px;
  gap: 10px;
}

.history-hero__button {
  margin-left: 5px;
  background: var(--sage);
  color: white;
}

.history-hero__button:hover,
.history-hero__button:focus-visible {
  background: var(--sage-dark);
}

.history-hero__button:hover .button-paw,
.history-hero__button:focus-visible .button-paw,
.history-cta-band__button:hover .button-paw,
.history-cta-band__button:focus-visible .button-paw {
  animation: paw-step 0.52s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.history-origin {
  background: #fbfaf7;
  padding: 140px 0 150px;
}

.history-origin__layout {
  display: grid;
  grid-template-columns: 90px minmax(300px, 0.8fr) minmax(360px, 1.1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 78px);
}

.history-section-number {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 42px;
  font-style: italic;
  line-height: 1;
}

.history-origin__heading h2,
.history-timeline h2,
.history-values h2,
.history-team h2,
.history-cta-band h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.2vw, 60px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.history-origin__copy {
  padding-top: 28px;
  border-top: 1px solid rgba(180, 154, 104, 0.45);
}

.history-origin__copy p {
  margin: 0 0 22px;
  color: #625c53;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
}

.history-origin__copy p:first-child::first-letter {
  float: left;
  margin: 8px 9px 0 0;
  color: var(--sage);
  font-size: 58px;
  line-height: 0.72;
}

.history-timeline {
  position: relative;
  overflow: hidden;
  background: var(--sage-dark);
  color: white;
  padding: 125px 0 135px;
}

.history-timeline::before {
  position: absolute;
  top: -65px;
  right: -35px;
  color: rgba(255, 255, 255, 0.035);
  content: "2021";
  font-size: clamp(170px, 26vw, 360px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.history-timeline__heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: end;
  gap: 80px;
}

.history-timeline__heading p {
  max-width: 410px;
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.67);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
}

.history-timeline__line {
  position: relative;
  z-index: 1;
  height: 1px;
  margin: 76px 0 0;
  background: rgba(180, 154, 104, 0.55);
}

.history-timeline__items {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.history-milestone {
  position: relative;
  padding-top: 34px;
}

.history-milestone::before {
  position: absolute;
  top: -9px;
  left: -4px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  content: "";
  filter: drop-shadow(0 0 6px rgba(180, 154, 104, 0.45));
  -webkit-mask: url("assets/brand/paw-mark.svg") center / contain no-repeat;
  mask: url("assets/brand/paw-mark.svg") center / contain no-repeat;
}

.history-milestone > span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.history-milestone h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.history-milestone p {
  max-width: 290px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.75;
}

.history-values {
  background: #fbfaf7;
  padding: 140px 0 150px;
}

.history-values__heading {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(30px, 5vw, 78px);
}

.history-values__grid {
  display: grid;
  margin-top: 85px;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.history-value {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid rgba(180, 154, 104, 0.28);
  padding: 40px 34px;
  background: white;
  box-shadow: 0 20px 48px rgba(23, 63, 53, 0.06);
  isolation: isolate;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.history-value::after {
  position: absolute;
  z-index: 0;
  right: -28px;
  bottom: -42px;
  width: 190px;
  height: 240px;
  background: url("assets/brand/veto-friends-mark-v2.webp") center / contain no-repeat;
  content: "";
  opacity: 0.045;
  pointer-events: none;
}

.history-value > * {
  position: relative;
  z-index: 1;
}

.history-value:hover {
  border-color: rgba(180, 154, 104, 0.6);
  box-shadow: 0 28px 60px rgba(23, 63, 53, 0.11);
  transform: translateY(-7px);
}

.history-value > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(180, 154, 104, 0.45);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
}

.history-value h3 {
  margin: 48px 0 16px;
  color: var(--sage-dark);
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
}

.history-value p {
  margin: 0;
  color: #716a61;
  font-size: 12px;
  line-height: 1.75;
}

.history-team {
  background: #eee9df;
  padding: 130px 0;
}

.history-team__layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 90px;
}

.history-team__copy > p:not(.history-eyebrow) {
  max-width: 480px;
  margin: 28px 0 32px;
  color: #676057;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
}

.history-text-link {
  display: inline-flex;
  align-items: center;
  color: var(--sage);
  font-size: 9px;
  font-weight: 800;
  gap: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.history-text-link span {
  color: var(--gold);
  font-size: 15px;
  transition: transform 0.25s ease;
}

.history-text-link:hover span,
.history-text-link:focus-visible span {
  transform: translate(3px, -3px);
}

.history-team__portraits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.history-team__portrait {
  margin: 0;
}

.history-team__portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 0.84;
  border-radius: 120px 120px 18px 18px;
  box-shadow: 0 20px 45px rgba(48, 41, 31, 0.12);
  object-fit: cover;
}

.history-team__portrait:nth-child(2) {
  transform: translateY(34px);
}

.history-team__portrait figcaption {
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  text-align: center;
}

.history-team__portrait figcaption span {
  display: block;
  margin-top: 5px;
  color: #8c847a;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-cta-band {
  background: var(--sage);
  color: white;
  padding: 92px 0;
}

.history-cta-band__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.history-cta-band__copy p:last-child {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
}

.history-cta-band__button {
  flex: 0 0 auto;
  background: #f3eee4;
  color: var(--sage-dark);
}

.history-cta-band__button:hover,
.history-cta-band__button:focus-visible {
  background: white;
}

.history-footer {
  background: #f8f5ef;
  color: #898177;
  padding: 32px 0;
}

.history-footer__layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.history-footer__brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  color: var(--sage-dark);
  gap: 8px;
}

.history-footer__brand img {
  width: 29px;
  height: 40px;
  object-fit: contain;
}

.history-footer__brand .brand-name b {
  font-size: 13px;
}

.history-footer__brand .brand-name small {
  font-size: 5px;
}

.history-footer p {
  margin: 0;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-footer p:last-child {
  justify-self: end;
  text-align: right;
}

.history-footer p span {
  margin: 0 5px;
}

.history-footer p a {
  border-bottom: 1px solid transparent;
  color: inherit;
  opacity: 0.72;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.history-footer p a:hover,
.history-footer p a:focus-visible {
  border-color: currentColor;
  opacity: 1;
}

@media (max-width: 1040px) {
  .history-origin__layout {
    grid-template-columns: 65px 0.8fr 1fr;
    gap: 32px;
  }

  .history-team__layout {
    gap: 50px;
  }

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

  .history-footer p:first-of-type {
    justify-self: end;
  }

  .history-footer p:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 820px) {
  .history-body .mobile-menu a[aria-current="page"] {
    color: var(--sage);
  }

  .history-hero {
    min-height: 760px;
    height: 92vh;
  }

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

  .history-hero__shade {
    background: linear-gradient(180deg, rgba(248, 245, 239, 0.96) 0%, rgba(248, 245, 239, 0.82) 43%, rgba(248, 245, 239, 0.08) 74%);
  }

  .history-hero__content {
    justify-content: flex-start;
    padding-top: 150px;
  }

  .history-hero h1 {
    font-size: clamp(82px, 18vw, 112px);
  }

  .history-hero__intro {
    max-width: 390px;
    margin-top: 35px;
    font-size: 17px;
  }

  .history-origin,
  .history-values {
    padding: 105px 0 115px;
  }

  .history-origin__layout {
    grid-template-columns: 54px 1fr;
  }

  .history-origin__copy {
    grid-column: 2;
  }

  .history-timeline {
    padding: 100px 0 105px;
  }

  .history-timeline__heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .history-timeline__line {
    display: none;
  }

  .history-timeline__items {
    margin-top: 60px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .history-milestone {
    padding: 0 0 45px 34px;
    border-left: 1px solid rgba(180, 154, 104, 0.4);
  }

  .history-milestone:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
  }

  .history-milestone::before {
    top: 1px;
    left: -9px;
  }

  .history-values__heading {
    grid-template-columns: 54px 1fr;
    gap: 32px;
  }

  .history-values__grid {
    margin-top: 60px;
    grid-template-columns: 1fr;
  }

  .history-value {
    min-height: 0;
  }

  .history-team {
    padding: 105px 0 120px;
  }

  .history-team__layout {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .history-team__portraits {
    max-width: 640px;
  }

  .history-cta-band__layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-footer__layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .history-footer p:first-of-type,
  .history-footer p:last-child {
    grid-column: auto;
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .history-shell,
  .history-hero__content {
    width: calc(100vw - 40px);
  }

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

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

  .history-hero__content {
    padding-top: 120px;
  }

  .history-hero h1 {
    font-size: 80px;
  }

  .history-hero__intro {
    max-width: 305px;
    margin-top: 28px;
    font-size: 15px;
  }

  .history-hero__button {
    width: 235px;
    padding-inline: 16px;
  }

  .history-origin__layout,
  .history-values__heading {
    display: block;
  }

  .history-section-number {
    display: block;
    margin-bottom: 30px;
  }

  .history-origin__copy {
    margin-top: 42px;
  }

  .history-origin__heading h2,
  .history-timeline h2,
  .history-values h2,
  .history-team h2,
  .history-cta-band h2 {
    font-size: 38px;
  }

  .history-timeline::before {
    right: -15px;
    font-size: 170px;
  }

  .history-values__grid {
    gap: 14px;
  }

  .history-value {
    padding: 34px 28px;
  }

  .history-value h3 {
    margin-top: 34px;
  }

  .history-team__portraits {
    margin-right: -42px;
    margin-left: -42px;
    gap: 9px;
  }

  .history-team__portrait img {
    border-radius: 80px 80px 12px 12px;
  }

  .history-team__portrait figcaption {
    font-size: 11px;
  }

  .history-team__portrait figcaption span {
    font-size: 6px;
  }

  .history-cta-band {
    padding: 76px 0;
  }

  .history-cta-band__layout {
    gap: 38px;
  }

  .history-cta-band__button {
    width: 220px;
  }
}
