@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  color-scheme: dark;
  font-family: 'Kanit', system-ui, sans-serif;
  background: #0c0c0c;
  color: #d7e2ea;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: #0c0c0c;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
}

a {
  color: #d9ff4a;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #f0ffaf;
}

a:focus-visible {
  outline: 2px solid #d9ff4a;
  outline-offset: 4px;
}

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

.skip {
  position: absolute;
  z-index: 3;
  top: -5rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  background: #d9ff4a;
  color: #0c0c0c;
}

.skip:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid rgba(215, 226, 234, 0.16);
  background: rgba(12, 12, 12, 0.94);
}

.bar {
  display: flex;
  max-width: 1440px;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: auto;
  padding: 0 2rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.6rem;
  color: #d7e2ea;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 1px solid rgba(215, 226, 234, 0.2);
  border-radius: 3px;
  background: #404040;
  object-fit: contain;
}

.brand span {
  color: #d9ff4a;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  color: rgba(215, 226, 234, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-link:hover {
  color: #d9ff4a;
}

.history-shell {
  max-width: 1440px;
  margin: auto;
  padding: 4rem 2rem 7rem;
}

.history-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  min-height: 620px;
  padding: 20px;
  border: 2px solid rgba(215, 226, 234, 0.68);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(215, 226, 234, 0.05), rgba(215, 226, 234, 0.012)),
    rgba(12, 12, 12, 0.92);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
}

.history-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid rgba(215, 226, 234, 0.12);
  border-radius: 14px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #d9ff4a;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: #f3f6ed;
  letter-spacing: 0;
}

.history-hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #f9fff2 0%, #bbccd7 42%, #626a73 100%);
  background-clip: text;
  color: transparent;
  font-size: 5rem;
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 35rem;
  margin-bottom: 2rem;
  color: rgba(215, 226, 234, 0.78);
  font-size: 1.18rem;
  font-weight: 300;
  line-height: 1.6;
}

.history-rankline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(215, 226, 234, 0.15);
  border-bottom: 1px solid rgba(215, 226, 234, 0.15);
}

.history-rankline span {
  padding: 0.75rem 0.5rem 0.75rem 0;
  color: rgba(215, 226, 234, 0.82);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.history-rankline b {
  margin-right: 0.35rem;
  color: #d9ff4a;
}

.source-note {
  margin: 1.4rem 0 0;
  color: rgba(215, 226, 234, 0.5);
  font-size: 0.88rem;
  line-height: 1.6;
}

.history-hero-visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(215, 226, 234, 0.13);
  border-radius: 18px;
  background: #111613;
}

.history-hero-visual figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(215, 226, 234, 0.14);
  border-radius: 10px;
  background: #1a201c;
}

.history-hero-main {
  grid-row: span 2;
}

.history-hero-visual figure::after {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(180deg, transparent, rgba(12, 12, 12, 0.8));
  content: '';
}

.history-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-hero-main img {
  object-position: 57% 50%;
}

.history-hero-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  color: #f3f6ed;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.history-hero-visual figcaption strong {
  color: #d9ff4a;
  font-size: 1.65rem;
  font-weight: 900;
}

.history-hero-mark {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(215, 226, 234, 0.25);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.72);
  color: #d9ff4a;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.story-list {
  margin-top: 4rem;
}

.story-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.4rem;
}

.story-list-heading h2 {
  margin: 0;
  background: linear-gradient(180deg, #f9fff2 0%, #bbccd7 46%, #626a73 100%);
  background-clip: text;
  color: transparent;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.story-list-heading p {
  max-width: 32rem;
  margin: 0;
  color: rgba(215, 226, 234, 0.56);
  line-height: 1.55;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
  padding: 14px;
  border: 2px solid rgba(215, 226, 234, 0.45);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(215, 226, 234, 0.045), rgba(215, 226, 234, 0.012)),
    rgba(12, 12, 12, 0.92);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.26);
}

.story-card > div:first-child {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(215, 226, 234, 0.13);
  border-radius: 12px;
  background: #151a17;
}

.story-card > div:first-child > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oyo-visual-stack {
  display: grid;
  align-self: start;
  min-height: 0;
  height: 560px;
  grid-template-rows: 0.9fr 1.1fr;
  gap: 10px;
  padding: 10px;
}

.case-visual-item {
  position: relative;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(215, 226, 234, 0.14);
  border-radius: 9px;
  background: #151a17;
}

.case-visual-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-visual-infographic {
  background: #f2f1ed;
}

.case-visual-infographic img {
  object-fit: contain;
}

.case-visual-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2rem 0.9rem 0.7rem;
  background: linear-gradient(transparent, rgba(12, 12, 12, 0.88));
  color: #f3f6ed;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-body {
  max-width: 780px;
  padding: 20px 24px;
}

.article-body .eyebrow {
  margin-bottom: 0.4rem;
}

.article-body h2 {
  margin-bottom: 1.3rem;
  color: #f3f6ed;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}

.article-body h3 {
  margin: 1.35rem 0 0.35rem;
  color: #d9ff4a;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-body p {
  margin-bottom: 1rem;
  color: rgba(215, 226, 234, 0.74);
  font-size: 1rem;
  line-height: 1.68;
}

.article-body a {
  font-weight: 700;
}

.case-video {
  margin: 1.5rem 0 0;
}

.case-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(215, 226, 234, 0.16);
  border-radius: 10px;
  background: #070807;
}

.case-video figcaption {
  margin-top: 0.55rem;
  color: rgba(215, 226, 234, 0.56);
  font-size: 0.82rem;
  line-height: 1.45;
}

.proof-item {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border: 1px solid rgba(215, 226, 234, 0.14);
  border-radius: 12px;
  background: rgba(215, 226, 234, 0.055);
}

.proof-item h3 {
  margin: 0 0 0.75rem;
  color: #f3f6ed;
  font-size: 1.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-item p {
  margin: 0;
  color: rgba(215, 226, 234, 0.66);
  line-height: 1.65;
}

.operating-history-video {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 1.3rem 0;
  border: 1px solid rgba(215, 226, 234, 0.16);
  border-radius: 10px;
  background: #070807;
}

.source-links {
  margin-top: 3rem;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(215, 226, 234, 0.18);
}

.source-links h2 {
  margin: 0 0 0.8rem;
  color: #f3f6ed;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rush-logo-lockup {
  display: grid;
  width: 104px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  margin: 1.3rem 0 0.8rem;
  border: 1px solid rgba(215, 226, 234, 0.2);
  border-radius: 8px;
  background: #fff;
}

.rush-logo-lockup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.source-links h3 {
  margin: 1.5rem 0 0.4rem;
  color: #d9ff4a;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-links p {
  max-width: 65rem;
  color: rgba(215, 226, 234, 0.7);
  line-height: 1.65;
}

.earlier-list {
  max-width: 65rem;
  margin: 1.2rem 0;
  padding: 0;
  border-top: 1px solid rgba(215, 226, 234, 0.16);
  list-style: none;
}

.earlier-list li {
  display: grid;
  grid-template-columns: minmax(11rem, 0.45fr) 1fr;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(215, 226, 234, 0.16);
  color: rgba(215, 226, 234, 0.7);
  line-height: 1.6;
}

.earlier-list strong {
  color: #f3f6ed;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid rgba(215, 226, 234, 0.16);
}

.site-footer .bar {
  min-height: 82px;
}

.site-footer a {
  color: rgba(215, 226, 234, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: #d9ff4a;
}

@media (max-width: 1000px) {
  .history-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .history-hero-copy {
    padding: 22px;
  }

  .history-hero h1 {
    font-size: 4rem;
  }

  .history-hero-visual {
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .bar {
    min-height: auto;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
  }

  .site-header nav {
    width: 100%;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.45rem;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .earlier-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .nav-link {
    flex: 0 0 auto;
  }

  .history-shell {
    padding: 1.5rem 1rem 4rem;
  }

  .history-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 12px;
    border-radius: 18px;
  }

  .history-hero-copy {
    min-height: 460px;
    padding: 20px;
  }

  .history-hero h1 {
    font-size: 3.3rem;
  }

  .history-hero-visual {
    min-height: 470px;
  }

  .story-list {
    margin-top: 3rem;
  }

  .story-list-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .story-list-heading h2 {
    font-size: 2.55rem;
  }

  .story-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
  }

  .story-card > div:first-child {
    min-height: 250px;
  }

  .story-card > div:first-child.oyo-visual-stack {
    height: 460px;
  }

  .article-body {
    padding: 20px 12px 12px;
  }

  .article-body h2 {
    font-size: 2.55rem;
  }

  .site-footer .bar {
    align-items: start;
    flex-direction: column;
    gap: 0.6rem;
  }
}

@media (max-width: 480px) {
  .history-hero-copy {
    min-height: 430px;
    padding: 17px;
  }

  .history-hero h1 {
    font-size: 2.8rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .history-rankline span {
    font-size: 0.76rem;
  }

  .history-hero-visual {
    min-height: 370px;
    gap: 7px;
    padding: 7px;
  }

  .history-hero-visual figcaption {
    right: 8px;
    bottom: 8px;
    left: 8px;
    font-size: 0.68rem;
  }

  .history-hero-visual figcaption strong {
    font-size: 1.2rem;
  }

  .history-hero-mark {
    top: 13px;
    right: 13px;
    font-size: 0.55rem;
  }

  .story-card > div:first-child {
    min-height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
