:root {
  --history-ink: #151f35;
  --history-muted: #667085;
  --history-orange: #f7921e;
  --history-purple: #4b2e83;
  --history-cream: #fff8ef;
  --history-soft: #f6efe8;
}

body.history-page {
  background: #fffaf4;
  color: var(--history-ink);
  font-family: "Inter", "Nunito", sans-serif;
}

.history-page .site-nav .nav-brand {
  text-decoration: none;
}

.history-showcase {
  position: relative;
  min-height: 100svh;
  padding: clamp(118px, 15vh, 160px) 0 clamp(70px, 8vw, 110px);
  overflow: hidden;
  background:
    radial-gradient(circle at 11% 78%, rgba(247, 146, 30, .14), transparent 15%),
    radial-gradient(circle at 68% 15%, rgba(75, 46, 131, .08), transparent 19%),
    linear-gradient(180deg, #fffaf6 0%, #f8f1eb 100%);
}

.history-showcase::before {
  content: "";
  position: absolute;
  right: -16vw;
  bottom: -34vw;
  width: min(930px, 76vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, .35), transparent 27%),
    linear-gradient(135deg, #ffb14a, var(--history-orange));
  z-index: 0;
}

.history-showcase::after {
  content: "";
  position: absolute;
  right: -4vw;
  top: 13vh;
  width: min(780px, 48vw);
  aspect-ratio: 1;
  border: clamp(28px, 3.4vw, 54px) solid rgba(255, 255, 255, .98);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.history-showcase-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, .88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
}

.history-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--history-ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: 0 18px 42px rgba(75, 46, 131, .08);
}

.history-pill i {
  color: #0066d9;
  font-size: 20px;
}

.history-intro h1 {
  max-width: 760px;
  margin: 26px 0 18px;
  color: var(--history-ink);
  font-size: clamp(44px, 5vw, 82px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 900;
}

.history-intro > p {
  max-width: 680px;
  margin: 0 0 34px;
  color: #5e6574;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.65;
}

.history-feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 780px);
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 30px 80px rgba(30, 22, 16, .11);
}

.history-feature-grid article {
  min-height: 154px;
  padding: clamp(24px, 2.4vw, 38px);
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  border-right: 1px solid rgba(75, 46, 131, .12);
  border-bottom: 1px solid rgba(75, 46, 131, .12);
}

.history-feature-grid article:nth-child(2n) {
  border-right: 0;
}

.history-feature-grid article:nth-child(n + 3) {
  border-bottom: 0;
}

.history-feature-grid span {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff6f0;
  color: var(--history-ink);
  font-size: 30px;
  box-shadow: inset 0 0 0 1px rgba(247, 146, 30, .1);
}

.history-feature-grid strong {
  display: block;
  color: var(--history-ink);
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.18;
  font-weight: 900;
}

.history-feature-grid small {
  display: block;
  margin-top: 6px;
  color: var(--history-muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.history-actions .btn-p,
.history-actions .btn-s {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 32px;
  font-weight: 900;
  text-decoration: none;
}

.history-visual {
  position: relative;
  min-height: clamp(520px, 50vw, 780px);
  z-index: 1;
}

.visual-ring {
  position: absolute;
  overflow: hidden;
  border: clamp(16px, 2.2vw, 34px) solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 34px 80px rgba(28, 20, 14, .18);
}

.visual-ring img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.visual-ring-main {
  right: 0;
  top: 0;
  width: min(650px, 43vw);
  aspect-ratio: 1;
}

.visual-ring-small {
  left: 2%;
  bottom: 8%;
  width: min(380px, 27vw);
  aspect-ratio: 1;
}

.visual-badge {
  position: absolute;
  left: 33%;
  bottom: 0;
  width: clamp(112px, 10vw, 154px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border: 12px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--history-purple);
  box-shadow: 0 18px 50px rgba(75, 46, 131, .16);
}

.visual-badge strong {
  color: var(--history-orange);
  font-size: clamp(38px, 4vw, 64px);
  line-height: .9;
  font-weight: 900;
}

.visual-badge span {
  font-weight: 900;
}

.history-route {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border: 3px dashed rgba(247, 146, 30, .34);
  border-radius: 50%;
}

.route-one {
  left: 7%;
  top: 17%;
  width: 180px;
  height: 520px;
  border-right-color: transparent;
  transform: rotate(-13deg);
}

.route-two {
  right: 20%;
  top: -6%;
  width: 320px;
  height: 320px;
  opacity: .7;
}

.history-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 53% 20%, transparent 0 10px, rgba(247, 146, 30, .24) 11px 12px, transparent 13px),
    radial-gradient(circle at 54% 27%, transparent 0 17px, rgba(247, 146, 30, .24) 18px 19px, transparent 20px),
    radial-gradient(circle at 74% 9%, transparent 0 10px, rgba(247, 146, 30, .18) 11px 12px, transparent 13px);
  z-index: 1;
}

.history-story {
  padding: clamp(70px, 8vw, 120px) 0;
  background: #fff;
}

.history-story-inner {
  max-width: 1220px;
}

.history-story-head {
  max-width: 820px;
  margin-bottom: 42px;
}

.history-content-grid {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.history-side-card {
  position: sticky;
  top: 120px;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(21, 31, 53, .12);
}

.history-side-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.history-side-content {
  padding: 28px;
}

.history-side-content h3 {
  margin: 0 0 18px;
  color: var(--history-ink);
  font-size: 24px;
  font-weight: 900;
}

.history-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.history-stats div {
  min-height: 92px;
  padding: 16px;
  border-radius: 18px;
  background: #fff7ee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.history-stats strong {
  color: var(--history-orange);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.history-stats span {
  margin-top: 7px;
  color: var(--history-muted);
  font-size: 13px;
  font-weight: 800;
}

.history-copy {
  color: #515765;
  font-size: 18px;
  line-height: 1.78;
}

.history-copy p {
  margin: 0 0 22px;
}

.history-copy h3 {
  margin: 36px 0 12px;
  color: var(--history-ink);
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.16;
  font-weight: 900;
}

.history-lead,
.history-quote {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(247, 146, 30, .11), rgba(75, 46, 131, .08));
  color: var(--history-ink);
  font-weight: 700;
}

.timeline-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.timeline-mini div {
  padding: 20px;
  border-radius: 20px;
  background: #fbf7f3;
  border: 1px solid rgba(75, 46, 131, .08);
}

.timeline-mini span {
  display: block;
  color: var(--history-purple);
  font-size: 24px;
  font-weight: 900;
}

.timeline-mini p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
}

.history-page .site-footer {
  margin-top: 0;
}

body.dark-mode.history-page {
  background: #111018;
  color: #f7f2ff;
}

body.dark-mode .history-showcase {
  background:
    radial-gradient(circle at 16% 74%, rgba(247, 146, 30, .15), transparent 17%),
    radial-gradient(circle at 66% 18%, rgba(247, 146, 30, .1), transparent 20%),
    linear-gradient(180deg, #15111d 0%, #211236 100%);
}

body.dark-mode .history-intro h1,
body.dark-mode .history-feature-grid strong,
body.dark-mode .history-story-head .section-title,
body.dark-mode .history-copy h3,
body.dark-mode .history-side-content h3,
body.dark-mode .history-lead,
body.dark-mode .history-quote {
  color: #fff;
}

body.dark-mode .history-intro > p,
body.dark-mode .history-copy,
body.dark-mode .history-story-head .section-subtitle {
  color: rgba(255, 255, 255, .72);
}

body.dark-mode .history-pill,
body.dark-mode .history-feature-grid,
body.dark-mode .history-side-card {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
}

body.dark-mode .history-feature-grid span,
body.dark-mode .history-stats div,
body.dark-mode .timeline-mini div {
  background: rgba(255, 255, 255, .07);
}

body.dark-mode .history-feature-grid small,
body.dark-mode .history-stats span {
  color: rgba(255, 255, 255, .68);
}

body.dark-mode .history-story {
  background: #111018;
}

body.dark-mode .timeline-mini div {
  border-color: rgba(255, 255, 255, .1);
}

@media (max-width: 1180px) {
  .history-showcase-inner {
    grid-template-columns: 1fr;
  }

  .history-intro {
    max-width: 900px;
  }

  .history-visual {
    min-height: 600px;
    width: min(100%, 820px);
    margin: 0 auto;
  }

  .visual-ring-main {
    width: min(620px, 76vw);
  }

  .visual-ring-small {
    width: min(330px, 42vw);
  }
}

@media (max-width: 820px) {
  .history-showcase {
    padding-top: 108px;
  }

  .history-showcase-inner {
    width: min(100% - 28px, 640px);
  }

  .history-intro h1 {
    font-size: clamp(38px, 10vw, 56px);
  }

  .history-feature-grid {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .history-feature-grid article {
    min-height: 122px;
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(75, 46, 131, .12);
  }

  .history-feature-grid article:nth-child(n + 3) {
    border-bottom: 1px solid rgba(75, 46, 131, .12);
  }

  .history-feature-grid article:last-child {
    border-bottom: 0;
  }

  .history-feature-grid span {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .history-visual {
    min-height: 430px;
  }

  .visual-ring-main {
    width: min(420px, 88vw);
  }

  .visual-ring-small {
    left: 0;
    width: min(240px, 54vw);
  }

  .visual-badge {
    left: auto;
    right: 7%;
    bottom: 2%;
  }

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

  .history-side-card {
    position: relative;
    top: auto;
  }

  .timeline-mini {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .history-showcase {
    padding-bottom: 56px;
  }

  .history-pill {
    min-height: 42px;
    padding: 0 16px;
    font-size: 11px;
  }

  .history-intro > p,
  .history-copy {
    font-size: 16px;
  }

  .history-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .history-actions .btn-p,
  .history-actions .btn-s {
    width: 100%;
  }

  .history-visual {
    min-height: 360px;
  }

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

@media (max-width: 520px) {
  .history-showcase-inner {
    width: min(100% - 32px, 390px);
    gap: 28px;
  }

  .history-intro h1 {
    margin-top: 18px;
    margin-bottom: 14px;
    font-size: clamp(34px, 9.6vw, 44px);
    line-height: 1.06;
  }

  .history-intro > p {
    margin-bottom: 22px;
    line-height: 1.55;
  }

  .history-feature-grid article {
    min-height: 92px;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 18px;
  }

  .history-feature-grid span {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .history-feature-grid strong {
    font-size: 18px;
  }

  .history-feature-grid small {
    font-size: 12px;
  }

  .history-visual {
    min-height: 330px;
  }

  .visual-ring-main {
    right: -8px;
    width: min(350px, 86vw);
  }

  .visual-ring-small {
    bottom: 4%;
    width: min(205px, 52vw);
  }
}

/* Keep the internal history page independent from the home hero #inicio rules. */
.history-page #inicio.history-showcase {
  position: relative !important;
  display: block !important;
  height: auto !important;
  min-height: 100svh !important;
  padding: clamp(118px, 15vh, 160px) 0 clamp(70px, 8vw, 110px) !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 11% 78%, rgba(247, 146, 30, .14), transparent 15%),
    radial-gradient(circle at 68% 15%, rgba(75, 46, 131, .08), transparent 19%),
    linear-gradient(180deg, #fffaf6 0%, #f8f1eb 100%) !important;
}

.history-page #inicio.history-showcase::before {
  content: "" !important;
  position: absolute !important;
  right: -16vw !important;
  bottom: -34vw !important;
  left: auto !important;
  top: auto !important;
  width: min(930px, 76vw) !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, .35), transparent 27%),
    linear-gradient(135deg, #ffb14a, var(--history-orange)) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.history-page #inicio.history-showcase::after {
  content: "" !important;
  position: absolute !important;
  right: -4vw !important;
  top: 13vh !important;
  left: auto !important;
  bottom: auto !important;
  width: min(780px, 48vw) !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  border: clamp(28px, 3.4vw, 54px) solid rgba(255, 255, 255, .98) !important;
  border-radius: 50% !important;
  background: transparent !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.history-page .history-intro h1 {
  color: var(--history-ink) !important;
}

body.dark-mode.history-page #inicio.history-showcase {
  background:
    radial-gradient(circle at 16% 74%, rgba(247, 146, 30, .15), transparent 17%),
    radial-gradient(circle at 66% 18%, rgba(247, 146, 30, .1), transparent 20%),
    linear-gradient(180deg, #15111d 0%, #211236 100%) !important;
}

body.dark-mode.history-page .history-intro h1 {
  color: #fff !important;
}

@media (max-width: 820px) {
  .history-page #inicio.history-showcase {
    min-height: 0 !important;
    padding: 104px 0 54px !important;
  }

  .history-page #inicio.history-showcase::before {
    right: -50vw !important;
    bottom: 120px !important;
    width: 620px !important;
    opacity: .72 !important;
  }

  .history-page #inicio.history-showcase::after {
    right: -44vw !important;
    top: 57% !important;
    width: 520px !important;
    opacity: .92 !important;
  }
}

/* Final typography, wave ending and dark-mode polish. */
.history-page .history-intro h1 {
  font-weight: 800 !important;
  line-height: 1.02;
}

.history-page .history-intro > p {
  font-weight: 500;
  letter-spacing: -.01em;
}

.history-page .history-feature-grid strong {
  font-weight: 800;
}

.history-page #inicio.history-showcase {
  padding-bottom: clamp(118px, 10vw, 156px) !important;
}

.history-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  height: clamp(74px, 7.4vw, 128px);
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 160' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 74C126 28 240 128 376 83C517 36 639 14 791 68C956 126 1080 122 1229 74C1322 44 1386 52 1440 68V160H0V74Z' fill='%23ffffff'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
}

.history-page .history-feature-grid span {
  color: var(--history-purple);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .9), transparent 38%),
    #fff2e6;
}

.history-page .history-feature-grid span i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  color: inherit;
  font-size: inherit;
}

.history-page .history-feature-grid article > span {
  grid-row: 1 / span 2;
}

.history-page .history-feature-grid article > strong,
.history-page .history-feature-grid article > small {
  grid-column: 2;
}

/* Keep the chronology content breathing like the hero container. */
.history-page .history-story-inner {
  width: min(100% - 44px, 1220px);
  max-width: none;
}

@media (max-width: 820px) {
  .history-page .history-story-inner {
    width: min(100% - 30px, 640px);
  }
}

@media (max-width: 520px) {
  .history-page .history-story-inner {
    width: min(100% - 32px, 390px);
  }
}

.history-page .history-pill {
  color: var(--history-ink);
}

.history-page .history-pill i {
  color: var(--history-orange);
}

body.dark-mode.history-page #inicio.history-showcase {
  padding-bottom: clamp(118px, 10vw, 156px) !important;
}

body.dark-mode.history-page .history-wave {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 160' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 74C126 28 240 128 376 83C517 36 639 14 791 68C956 126 1080 122 1229 74C1322 44 1386 52 1440 68V160H0V74Z' fill='%23111018'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
}

body.dark-mode.history-page .history-pill {
  background: rgba(255, 255, 255, .11);
  color: #fff;
  border-color: rgba(255, 255, 255, .16);
}

body.dark-mode.history-page .history-pill i {
  color: #ffad3d;
}

body.dark-mode.history-page .history-feature-grid {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

body.dark-mode.history-page .history-feature-grid article {
  border-color: rgba(255, 255, 255, .12);
}

body.dark-mode.history-page .history-feature-grid span {
  color: #ffad3d;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .12), transparent 40%),
    rgba(255, 255, 255, .08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 173, 61, .22),
    0 10px 26px rgba(0, 0, 0, .16);
}

body.dark-mode.history-page .history-feature-grid strong {
  color: #fff;
}

body.dark-mode.history-page .history-feature-grid small {
  color: rgba(255, 255, 255, .76);
}

body.dark-mode.history-page .history-route {
  border-color: rgba(255, 173, 61, .28);
}

body.dark-mode.history-page .history-bubbles {
  opacity: .8;
}

@media (max-width: 820px) {
  .history-page #inicio.history-showcase,
  body.dark-mode.history-page #inicio.history-showcase {
    padding-bottom: 112px !important;
  }

  .history-wave {
    height: 72px;
  }
}

@media (max-width: 520px) {
  .history-page .history-intro h1 {
    letter-spacing: -.04em;
  }

  .history-page #inicio.history-showcase,
  body.dark-mode.history-page #inicio.history-showcase {
    padding-bottom: 92px !important;
  }
}

/* Compact visual pass inspired by the travel reference. */
.history-page #inicio.history-showcase {
  min-height: auto !important;
  padding-top: clamp(108px, 12vh, 136px) !important;
  padding-bottom: clamp(92px, 7vw, 124px) !important;
}

.history-page .history-showcase-inner {
  width: min(100% - 44px, 1340px);
  grid-template-columns: minmax(390px, .9fr) minmax(500px, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
}

.history-page .history-pill {
  min-height: 42px;
  padding: 0 20px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .105em;
  box-shadow: 0 14px 34px rgba(75, 46, 131, .07);
}

.history-page .history-intro h1 {
  max-width: 680px;
  margin: 22px 0 14px;
  font-family: "Inter", sans-serif !important;
  font-size: clamp(42px, 4.25vw, 66px);
  font-weight: 850 !important;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.history-page .history-intro > p {
  max-width: 610px;
  margin-bottom: 24px;
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.58;
  color: #5c6474;
}

.history-page .history-feature-grid {
  width: min(100%, 680px);
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(30, 22, 16, .1);
}

.history-page .history-feature-grid article {
  min-height: 126px;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 17px;
  padding: clamp(20px, 2vw, 30px);
}

.history-page .history-feature-grid span {
  width: 58px;
  height: 58px;
  font-size: 25px;
}

.history-page .history-feature-grid strong {
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.22;
  letter-spacing: -.035em;
}

.history-page .history-feature-grid small {
  margin-top: 5px;
  font-size: 13px;
}

.history-page .history-actions {
  margin-top: 24px;
}

.history-page .history-actions .btn-p,
.history-page .history-actions .btn-s {
  min-height: 52px;
  padding: 0 27px;
  font-size: 14px;
}

.history-page .history-visual {
  min-height: clamp(440px, 42vw, 640px);
}

.history-page .visual-ring {
  border-width: clamp(14px, 1.8vw, 28px);
}

.history-page .visual-ring-main {
  width: min(560px, 40vw);
}

.history-page .visual-ring-small {
  width: min(310px, 23vw);
  left: 8%;
  bottom: 5%;
}

.history-page .visual-badge {
  width: clamp(96px, 8vw, 126px);
  border-width: 9px;
}

.history-page .visual-badge strong {
  font-size: clamp(34px, 3vw, 50px);
}

.history-page .history-wave {
  height: clamp(58px, 5.5vw, 96px);
}

body.dark-mode.history-page .history-intro > p {
  color: rgba(255, 255, 255, .74);
}

body.dark-mode.history-page .history-feature-grid {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .32);
}

body.dark-mode.history-page .history-feature-grid strong {
  color: #fff;
}

body.dark-mode.history-page .history-feature-grid small {
  color: rgba(255, 255, 255, .74);
}

body.dark-mode.history-page .history-feature-grid span {
  color: #ffad3d;
  background: rgba(255, 255, 255, .08);
}

body.dark-mode.history-page .history-pill {
  color: #fff;
}

@media (max-width: 1180px) {
  .history-page .history-showcase-inner {
    grid-template-columns: 1fr;
  }

  .history-page .history-visual {
    width: min(100%, 760px);
    min-height: 520px;
  }

  .history-page .visual-ring-main {
    width: min(520px, 72vw);
  }

  .history-page .visual-ring-small {
    width: min(290px, 40vw);
  }
}

@media (max-width: 820px) {
  .history-page #inicio.history-showcase,
  body.dark-mode.history-page #inicio.history-showcase {
    padding-top: 104px !important;
    padding-bottom: 86px !important;
  }

  .history-page .history-showcase-inner {
    width: min(100% - 30px, 640px);
    gap: 24px;
  }

  .history-page .history-intro h1 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.06;
  }

  .history-page .history-feature-grid article {
    min-height: 88px;
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 15px 17px;
  }

  .history-page .history-feature-grid span {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .history-page .history-visual {
    min-height: 332px;
  }

  .history-page .visual-ring-main {
    width: min(345px, 86vw);
  }

  .history-page .visual-ring-small {
    width: min(205px, 54vw);
    left: 0;
  }

  .history-page .history-wave {
    height: 58px;
  }
}

@media (max-width: 520px) {
  .history-page .history-pill {
    min-height: 40px;
    padding: 0 15px;
    font-size: 10px;
  }

  .history-page .history-intro h1 {
    margin-top: 16px;
    margin-bottom: 12px;
    font-size: clamp(31px, 8.8vw, 40px);
  }

  .history-page .history-intro > p {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .history-page .history-feature-grid {
    border-radius: 22px;
  }

  .history-page .history-feature-grid strong {
    font-size: 17px;
  }

  .history-page .history-feature-grid small {
    font-size: 12px;
  }
}

