:root {
  --bg: #0a0a0a;
  --fg: #f5f3ee;
  --red: #d4111c;
  --red-2: #ff2a36;
  --muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--red);
  color: #fff;
}

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

button {
  font: inherit;
}

svg {
  display: block;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pulse-fx {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  mix-blend-mode: difference;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: "Anton", sans-serif;
  font-size: 22px;
  letter-spacing: 0;
}

.logo .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
}

.nav-links a::before {
  content: attr(data-num);
  color: var(--red);
  margin-right: 6px;
  font-size: 9px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: var(--fg);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  cursor: pointer;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}

body.nav-open .menu-btn span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

body.nav-open .menu-btn span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 120px 40px 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.96) 0%, rgba(10, 10, 10, 0.82) 36%, rgba(10, 10, 10, 0.32) 74%, rgba(10, 10, 10, 0.58) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.08) 48%, rgba(10, 10, 10, 0.78) 100%),
    url("assets/riatis-pulse-hero.png");
  background-position: center;
  background-size: cover;
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(212, 17, 28, 0.35), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(212, 17, 28, 0.15), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-meta b {
  color: var(--red);
}

.hero h1 {
  font-family: "Anton", sans-serif;
  font-size: 13.75rem;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: hero-up 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.hero h1 .line:nth-child(2) > span {
  animation-delay: 0.15s;
}

.hero h1 .line:nth-child(3) > span {
  animation-delay: 0.3s;
}

.hero h1 .out {
  color: transparent;
  -webkit-text-stroke: 2px var(--fg);
}

.hero h1 .red {
  position: relative;
  color: var(--red);
  font-style: italic;
}

.hero h1 .red::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 8%;
  height: 10px;
  background: var(--red);
  opacity: 0.3;
  mix-blend-mode: multiply;
}

@keyframes hero-up {
  to {
    transform: translateY(0);
  }
}

.hero-sub {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
  margin-top: 54px;
  opacity: 0;
  animation: fade-up 1s ease 0.8s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-jp {
  max-width: 580px;
  padding-left: 22px;
  border-left: 3px solid var(--red);
  color: rgba(255, 255, 255, 0.9);
  font-family: "Shippori Mincho", serif;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.95;
}

.bpm {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: uppercase;
}

.bpm .num {
  color: var(--red);
  font-family: "Anton", sans-serif;
  font-size: 52px;
  letter-spacing: 0;
  animation: pulse 1s ease-in-out infinite;
}

.bpm-label {
  color: #fff;
  margin-top: 4px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

.ecg {
  position: relative;
  display: flex;
  align-items: center;
  height: 120px;
  background: var(--red);
  overflow: hidden;
}

.ecg svg {
  width: 200%;
  height: 100%;
  animation: ecg-move 6s linear infinite;
}

@keyframes ecg-move {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ecg .words {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 40px;
  align-items: center;
  padding-left: 40px;
  color: #000;
  font-family: "Anton", sans-serif;
  font-size: 28px;
  letter-spacing: 0;
  pointer-events: none;
}

.ecg .words span {
  opacity: 0.8;
  white-space: nowrap;
}

.scroll-theater {
  position: relative;
  background: #000;
}

.scroll-theater .sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.scroll-theater .act {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.scroll-theater .act.on {
  opacity: 1;
}

.act-copy {
  text-align: center;
}

.scroll-theater .act h2 {
  padding: 0 40px;
  font-family: "Anton", sans-serif;
  font-size: 13.75rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.scroll-theater .act .sm {
  display: block;
  margin-bottom: 20px;
  color: var(--red);
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.scroll-theater .act .r {
  color: var(--red);
}

.scroll-theater .act .o {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--fg);
}

.scroll-theater .anchor {
  height: 100vh;
}

.progress {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.progress .bar {
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

.scroll-theater .idx {
  position: fixed;
  top: 50%;
  left: 30px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.45s ease;
}

.scroll-theater .idx.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-theater .idx span {
  opacity: 0.4;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.scroll-theater .idx span.on {
  color: var(--red);
  opacity: 1;
}

.belief,
.svc {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 140px 40px;
}

.eyebrow {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--red);
}

.stitle {
  margin-bottom: 50px;
  font-family: "Anton", sans-serif;
  font-size: 7.5rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stitle em {
  color: var(--red);
  font-style: italic;
}

.values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.value {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 36px 28px 44px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.4s ease;
}

.value::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--red);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.value:hover::before,
.value:focus-within::before {
  transform: translateY(0);
}

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

.value .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.value:hover .top,
.value:focus-within .top {
  color: rgba(255, 255, 255, 0.8);
}

.value h3 {
  margin-bottom: 14px;
  color: var(--fg);
  font-family: "Anton", sans-serif;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.value:hover h3,
.value:focus-within h3 {
  color: #fff;
}

.value p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.7;
  transition: color 0.4s ease;
}

.value:hover p,
.value:focus-within p {
  color: rgba(255, 255, 255, 0.95);
}

.value .iconbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.4s ease;
}

.value:hover .iconbox,
.value:focus-within .iconbox {
  border-color: #fff;
}

.value .iconbox svg {
  width: 28px;
  height: 28px;
  stroke: var(--red);
  transition: stroke 0.4s ease;
}

.value:hover .iconbox svg,
.value:focus-within .iconbox svg {
  stroke: #fff;
}

.band {
  position: relative;
  padding: 80px 40px;
  overflow: hidden;
  background: var(--red);
  color: #0a0a0a;
  text-align: center;
}

.band .pre {
  margin-bottom: 18px;
  color: #0a0a0a;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
  opacity: 0.7;
  text-transform: uppercase;
}

.band h2 {
  font-family: "Shippori Mincho", serif;
  font-size: 4.25rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

.band h2 i {
  color: transparent;
  font-style: italic;
  -webkit-text-stroke: 1.5px #0a0a0a;
}

.svc-list {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.svc-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1.1fr 1.6fr 90px;
  gap: 28px;
  align-items: center;
  padding: 38px 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: padding 0.5s ease;
}

.svc-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.svc-item:hover::before,
.svc-item:focus-within::before {
  transform: scaleX(1);
}

.svc-item > * {
  position: relative;
  z-index: 1;
}

.svc-item:hover,
.svc-item:focus-within {
  padding-left: 44px;
}

.svc-item .n {
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0;
}

.svc-item:hover .n,
.svc-item:focus-within .n {
  color: #0a0a0a;
}

.svc-item .nm {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: "Anton", "Noto Sans JP", sans-serif;
  font-size: 2.875rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.svc-item .nm svg {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  stroke: var(--red);
  transition: stroke 0.4s ease;
}

.svc-item:hover .nm,
.svc-item:focus-within .nm {
  color: #0a0a0a;
}

.svc-item:hover .nm svg,
.svc-item:focus-within .nm svg {
  stroke: #0a0a0a;
}

.svc-item .ds {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.75;
  transition: color 0.4s ease;
}

.svc-item:hover .ds,
.svc-item:focus-within .ds {
  color: rgba(0, 0, 0, 0.88);
}

.svc-item .ar {
  font-family: "Anton", sans-serif;
  font-size: 40px;
  text-align: right;
  transition: color 0.4s ease, transform 0.4s ease;
}

.svc-item:hover .ar,
.svc-item:focus-within .ar {
  color: #0a0a0a;
  transform: translateX(10px);
}

.cta-final {
  position: relative;
  padding: 160px 40px;
  overflow: hidden;
  text-align: center;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.98)),
    url("assets/riatis-pulse-hero.png");
  background-position: center bottom;
  background-size: cover;
  filter: saturate(1.15);
  opacity: 0.44;
  transform: scaleX(-1);
}

.cta-final > * {
  position: relative;
  z-index: 1;
}

.center-eyebrow {
  justify-content: center;
}

.cta-final .big {
  font-family: "Anton", sans-serif;
  font-size: 13.75rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cta-final .big .r {
  color: var(--red);
}

.cta-final .big .o {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--fg);
}

.cta-final .btn {
  position: relative;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 50px;
  padding: 22px 36px;
  overflow: hidden;
  background: var(--fg);
  color: #000;
  font-family: "Anton", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

.cta-final .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.cta-final .btn:hover::before,
.cta-final .btn:focus-visible::before {
  transform: translateY(0);
}

.cta-final .btn:hover,
.cta-final .btn:focus-visible {
  color: #fff;
}

.cta-final .btn > * {
  position: relative;
  z-index: 1;
}

footer {
  padding: 60px 40px 30px;
  border-top: 1px solid var(--line);
}

.ft-big {
  margin-bottom: 40px;
  font-family: "Anton", sans-serif;
  font-size: 15rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ft-big .r {
  color: var(--red);
}

.ft-bot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .hero h1,
  .scroll-theater .act h2,
  .cta-final .big {
    font-size: 10rem;
  }

  .stitle {
    font-size: 6rem;
  }

  .band h2 {
    font-size: 3.5rem;
  }

  .ft-big {
    font-size: 12rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 1100px) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .site-nav {
    padding: 16px 18px;
    mix-blend-mode: normal;
  }

  .logo,
  .menu-btn {
    position: relative;
    z-index: 2;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 10, 10, 0.96);
    font-size: 4rem;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a::before {
    display: block;
    margin: 0 0 8px;
    font-size: 12px;
  }

  .hero {
    padding: 110px 20px 100px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }

  .hero h1,
  .scroll-theater .act h2,
  .cta-final .big {
    font-size: 5.5rem;
  }

  .hero-jp {
    font-size: 1rem;
  }

  .stitle {
    font-size: 4.5rem;
  }

  .band h2 {
    font-size: 2.625rem;
  }

  .hero-sub {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .bpm {
    justify-content: flex-start;
  }

  .bpm .num {
    font-size: 40px;
  }

  .scroll-theater .idx {
    display: none;
  }

  .svc {
    padding: 90px 20px;
  }

  .svc-item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 10px 16px;
    padding: 28px 0;
  }

  .svc-item::before {
    display: none;
  }

  .svc-item:hover,
  .svc-item:focus-within {
    padding-left: 0;
  }

  .svc-item .n {
    grid-column: 1 / 3;
  }

  .svc-item .nm {
    grid-column: 1;
    grid-row: 2;
    font-size: 30px;
  }

  .svc-item .ds {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .svc-item .ar {
    grid-column: 2;
    grid-row: 2;
    color: var(--red);
  }

  footer {
    padding: 40px 20px 24px;
  }

  .ft-bot {
    flex-direction: column;
    align-items: flex-start;
  }

  .ft-big {
    font-size: 7rem;
  }
}

@media (max-width: 640px) {
  .values {
    grid-template-columns: 1fr;
  }

  .belief {
    padding: 90px 20px;
  }

  .scroll-theater .act h2 {
    padding: 0 18px;
  }

  .hero h1,
  .scroll-theater .act h2,
  .cta-final .big {
    font-size: 4rem;
  }

  .stitle {
    font-size: 3.375rem;
  }

  .band h2 {
    font-size: 1.9rem;
  }

  .nav-links {
    font-size: 3.125rem;
  }

  .ecg .words {
    gap: 24px;
    padding-left: 20px;
    font-size: 22px;
  }

  .cta-final {
    padding: 120px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
