:root {
  --bg: #f7fbff;
  --bg-soft: #eef6ff;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-solid: #ffffff;
  --text: #10243d;
  --muted: #466484;
  --accent: #0fa7d4;
  --accent-2: #1bc9a4;
  --emphasis-red: #e82142c0;
  --border: rgba(96, 142, 193, 0.24);
  --shadow: 0 18px 45px rgba(22, 76, 136, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  /* font-family: "Manrope", sans-serif; */
  font-family: "Zen Kaku Gothic New", "Manrope", sans-serif;
  /* font-family: "IBM Plex Sans JP", "Manrope", sans-serif; */
  color: var(--text);
  background:
    radial-gradient(circle at 82% 9%, rgba(55, 186, 255, 0.25), transparent 40%),
    radial-gradient(circle at 18% 68%, rgba(27, 201, 164, 0.17), transparent 45%),
    linear-gradient(180deg, #f8fbff 0%, #f0f7ff 46%, #f8fcff 100%);
  min-height: 100vh;
  line-height: 1.6;
}

.scene-loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(55, 186, 255, 0.2), transparent 45%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.97), rgba(240, 247, 255, 0.97));
  transition: opacity 260ms ease, visibility 260ms ease;
}

.scene-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.scene-loader__panel {
  width: min(380px, 86vw);
  padding: 1.2rem 1.2rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.scene-loader__brand {
  margin: 0 0 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0c3f69;
  letter-spacing: 0.05em;
}

.scene-loader__text {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.scene-loader__track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(74, 127, 188, 0.18);
  overflow: hidden;
}

.scene-loader__bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #2cc4ff);
  transition: width 170ms linear;
}

.scene-loader__progress {
  margin: 0.5rem 0 0;
  color: #2f5b84;
  font-size: 0.84rem;
  text-align: right;
}

.noscript-notice {
  width: min(1120px, 92%);
  margin: 0.8rem auto 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(96, 142, 193, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: #2f5b84;
  font-size: 0.9rem;
}

.noscript-panel {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(96, 142, 193, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #2f5b84;
}

.noscript-panel p {
  margin: 0.25rem 0;
}

.noscript-panel a {
  text-decoration: underline;
}

.site-header.site-header--noscript {
  position: sticky;
  top: 0;
}

.site-header--noscript .nav-links--noscript {
  margin: 0;
  padding: 0;
}

.is-loading main,
.is-loading .site-header,
.is-loading .site-footer {
  opacity: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(12px);
  background: rgba(247, 251, 255, 0.84);
  border-bottom: 1px solid var(--border);
}

.site-header .brand-logo {
  display: flex;
  align-items: end;
  position: relative;
  z-index: 32;
}

.site-header .brand-logo img {
  height: 28px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
}

.nav-links a {
  transition: color 0.35s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--emphasis-red);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background-color: #333333;
  transition: 0.3s;
}

.hamburger:hover span {
  background-color: var(--emphasis-red);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  transform: translateX(22px) rotate(180deg);
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 5.25rem 0;
}

.three-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.8;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 3.5rem;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 3.5rem;
}

.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent) !important;
  font-size: 0.72rem;
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.6rem;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(18, 151, 222, 0.28);
}

.section-head {
  max-width: 70ch;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}

.product-card {
  display: block;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(243, 249, 255, 0.32));
  border: 1px solid var(--border);
  border-color: var(--border);
  border-radius: 18px;
  padding: 0.75rem;
  /* min-height: 365px; */
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  will-change: transform;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-card p {
  color: var(--muted);
  margin: 0;
}

.product-card .button-container {
  position: relative;
  bottom: 0;
  margin-top: 1rem;
  margin-right: 0.5rem;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 0.25rem;
  color: #1d5d92;
  font-size: 0.9rem;
  font-weight: 600;
}

.product-card .button-container::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translateX(0);
  transition: transform 220ms ease;
}

.product-card:hover .button-container,
.product-card:focus-visible .button-container {
  color: var(--emphasis-red);
}

.product-card:hover .button-container::after,
.product-card:focus-visible .button-container::after {
  transform: rotate(45deg) translate(3px, -3px);
}

.product-copy {
  margin-top: 122px;
  height: calc(100% - 122px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.83), rgba(243, 249, 255, 0.88));
  border: 1px solid rgba(96, 142, 193, 0.2);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 2rem 3.5rem 1fr;
}

.product-header {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 0.5rem;
}

.product-header .product-name::before {
  content: " - ";
}

.product-media {
  display: flex;
  justify-content: start;
  align-items: center;
  margin: 0.8rem 0;
}

.product-logo {
  /* width: min(190px, 84%); */
  height: 32px;
  object-fit: contain;
  object-position: left center;
  filter: saturate(1.05) contrast(1.02);
}

.tag {
  color: var(--accent-2);
  font-size: 1.25rem;
  font-weight: 700;
  /* margin-bottom: 0.7rem; */
}

.cards-foot {
  margin-top: 1.5rem;
  display: flex;
  justify-content: end;
}

.more-info {
  position: relative;
  bottom: 0;
  margin-right: 0.5rem;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  font-weight: 500;
}

.more-info::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translateX(0);
  transition: transform 220ms ease;
}

.more-info:hover,
.more-info:focus-visible {
  color: var(--emphasis-red);
}

.more-info:hover::after,
.more-info:focus-visible::after {
  transform: rotate(45deg) translate(3px, -3px);
}

.about {
  position: relative;
}

.about p {
  color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 2fr;
  position: relative;
  z-index: 4;
}

.about-cycle-image {
  position: absolute;
  top: -10%;
  left: -40%;
  /* width: min(100%, 430px); */
  width: 70%;
  height: auto;
  justify-self: center;
  align-self: center;
  transform-origin: 50% 50%;
  will-change: transform;
  filter: drop-shadow(0 10px 28px rgba(11, 82, 139, 0.14));
}

.about-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.about-panel__header {
  padding: 0.5rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.about-panel__content {
  padding: 1.2rem;
  color: var(--muted);
}

.metric {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  margin: 0;
  color: var(--accent-2) !important;
}

.news p {
  color: var(--muted);
}

.recent-news-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.75rem;
}

.recent-news-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(96, 142, 193, 0.22);
  border-radius: 14px;
  padding: 0.72rem 0.85rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(244, 249, 255, 0.88));
}

.recent-news-item__header {
  display: flex;
  gap: 0.7rem;
}

.recent-news-date {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1d4f7a;
}

.recent-news-category {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(27, 201, 164, 0.3);
  background: rgba(27, 201, 164, 0.1);
  color: #0f7e67;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.recent-news-title {
  color: #12344f;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.recent-news-title:hover,
.recent-news-title:focus-visible {
  text-decoration: underline;
}

.recent-news-foot {
  margin-top: 1rem;
  display: flex;
  justify-content: end;
}

.recent-news-more {
  position: relative;
  bottom: 0;
  margin-right: 0.5rem;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
}

.recent-news-more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translateX(0);
  transition: transform 220ms ease;
}

.recent-news-more:hover,
.recent-news-more:focus-visible {
  color: var(--emphasis-red);
}

.recent-news-more:hover::after,
.recent-news-more:focus-visible::after {
  transform: rotate(45deg) translate(3px, -3px);
}

.recent-news-empty {
  margin: 0;
}

.contact {
  margin: 0 auto;
}

.contact p {
  color: var(--muted);
  /* max-width: 64ch; */
}

.contact-btn-container {
  text-align: center;
}

.site-footer {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) repeat(2, minmax(180px, 1fr));
  gap: 1.25rem;
  padding: 0.35rem 0 1.35rem;
}

.footer-links h3 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  color: #1e5f90;
}

.footer-links a {
  display: block;
  margin: 0.28rem 0;
  color: #3d6388;
  font-size: 0.93rem;
  transition: color 0.35s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #12669e;
  color: var(--emphasis-red);
}

.footer-bottom {
  border-top: 1px solid rgba(96, 142, 193, 0.18);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #1b6fa7;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.scale-reveal {
  opacity: 0.1;
  transform: scale(0.6);
  transition: opacity 700ms ease, transform 700ms ease;
}

.scale-reveal.in-view {
  opacity: 1;
  transform: scale(1);
}

.scroll-fade {
  opacity: calc(1 - var(--scroll-progress, 0));
}

.red-emphasis {
  color: var(--emphasis-red);
}

.horizontal-spacer {
  margin: 0 0.8rem;
}

@media (max-width: 900px) {
  body:has(.nav-toggle:checked) {
    overflow: hidden;
  }

  .hero {
    padding-top: 25rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 4.5rem;
    margin-top: 4.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-cycle-container {
    text-align: center;
  }

  .about-cycle-image {
    position: relative;
    top: 0;
    left: 0;
    width: min(72vw, 420px);
  }

  .site-header {
    padding: 0.9rem 1rem;
    background: rgba(247, 251, 255, 0.66);
    backdrop-filter: blur(14px);
  }

  .site-header .brand-logo img {
    height: 28px;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #ffffffe0;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }

  .nav-links a {
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease, color 0.35s ease;
  }

  .nav-links a:first-child {
    margin-top: 10px;
  }

  .nav-links a:last-child {
    margin-bottom: 10px;
  }

  .nav-links.show {
    max-height: 500px;
    opacity: 1;
  }

  .nav-links.show a {
    transform: translateY(0);
    opacity: 1;
  }

  .hamburger {
    display: flex;
  }

  .site-header.site-header--noscript {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-header--noscript .nav-links--noscript {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    opacity: 1;
    padding: 0;
    background: transparent;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .site-header--noscript .nav-links--noscript a {
    transform: none;
    opacity: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-links h3 {
    margin-bottom: 0.35rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .recent-news-item {
    flex-direction: column;
    align-items: start;
    gap: 0.4rem;
  }

  .horizontal-spacer {
    margin: 0 0.5rem;
  }

  .u-desktop {
    display: none;
  }
}