@import url("/assets/shared/common.css");

:root {
  --night: #151218;
  --night-soft: #211a25;
  --night-lift: #2b2130;
  --cream: #f7f2ea;
  --cream-muted: #c9c0c7;
  --pink: #ef476f;
  --pink-dark: #c92f55;
  --teal: #2dd4bf;
  --teal-dark: #137c74;
  --gold: #f7b32b;
  --line: rgba(247, 242, 234, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--cream);
  background:
    radial-gradient(circle at 84% 4%, rgba(239, 71, 111, 0.18), transparent 28rem),
    linear-gradient(135deg, #151218 0%, #151218 58%, #112423 100%);
  font-family: "Be Vietnam Pro", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(247, 242, 234, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 242, 234, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

h1,
h2,
h3,
.brand,
.contact-address {
  font-family: "Be Vietnam Pro", sans-serif;
}

h1,
h2 {
  letter-spacing: -0.06em;
  line-height: 0.98;
}

p {
  color: var(--cream-muted);
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
}

.skip-link {
  color: var(--night);
  background: var(--teal);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 18, 24, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  gap: 34px;
}

.brand {
  flex: 0 0 auto;
  color: var(--cream);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.brand span {
  color: var(--teal);
}

.nav-list {
  gap: 4px;
}

.nav-list a {
  position: relative;
  padding: 11px 13px;
  color: #d8cfd5;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--cream);
  background: rgba(247, 242, 234, 0.07);
}

.nav-list a[aria-current="page"] {
  color: var(--night);
  background: var(--teal);
}

.eyebrow,
.beat-label,
.track-kicker,
.chapter-index {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  padding: 74px 0 64px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: -160px;
  bottom: -270px;
  width: 570px;
  height: 570px;
  content: "";
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 76px rgba(45, 212, 191, 0.035), 0 0 0 152px rgba(45, 212, 191, 0.025);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.hero-copy {
  animation: rise-in 650ms ease-out both;
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 24px;
  font-size: clamp(3.6rem, 8.2vw, 7.6rem);
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--pink);
}

.hero-lead {
  max-width: 660px;
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.8;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.button-primary {
  color: var(--night);
  background: var(--pink);
}

.button-primary:hover {
  color: var(--night);
  background: #ff668b;
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--cream);
  border-color: var(--line);
  background: rgba(247, 242, 234, 0.03);
}

.button-secondary:hover {
  color: var(--cream);
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.08);
}

.scroll-link::before {
  width: 7px;
  height: 12px;
  margin-right: 9px;
  content: "";
  border: 1.5px solid currentColor;
  border-radius: 8px;
}

.hero-visual {
  position: relative;
  animation: rise-in 750ms 100ms ease-out both;
}

.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.42));
}

.tempo-badge {
  position: absolute;
  right: -24px;
  bottom: 70px;
  width: 148px;
  padding: 17px;
  color: var(--night);
  background: var(--gold);
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.24);
  transform: rotate(4deg);
}

.tempo-badge strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.08em;
}

.tempo-badge span {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
}

.section-heading > p {
  margin: 0;
  line-height: 1.75;
}

.entry-section {
  position: relative;
  color: var(--night);
  background: var(--cream);
  clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%);
}

.entry-section p {
  color: #655c65;
}

.entry-section .eyebrow {
  color: var(--pink-dark);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.entry-card {
  position: relative;
  grid-column: span 4;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(21, 18, 24, 0.17);
  background: #fffaf2;
}

.entry-card:nth-child(2) {
  margin-top: 44px;
  background: var(--night);
}

.entry-card:nth-child(2) h3,
.entry-card:nth-child(2) .card-arrow {
  color: var(--cream);
}

.entry-card:nth-child(2) p {
  color: var(--cream-muted);
}

.entry-card:nth-child(3) {
  background: var(--teal);
}

.entry-card:nth-child(3) p {
  color: #173d3a;
}

.entry-card h3 {
  max-width: 290px;
  margin: 58px 0 15px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.entry-card p {
  max-width: 330px;
  line-height: 1.65;
}

.card-number {
  position: absolute;
  top: 25px;
  left: 28px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.card-arrow {
  position: absolute;
  right: 25px;
  bottom: 22px;
  font-size: 2rem;
}

.entry-card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: 12px 14px 0 var(--pink);
}

.rhythm-section {
  padding-top: 120px;
}

.rhythm-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(0, 1.36fr);
  gap: 52px;
  align-items: center;
}

.rhythm-copy h2 {
  margin: 14px 0 18px;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.rhythm-copy p {
  line-height: 1.75;
}

.rhythm-panel {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(247, 242, 234, 0.035);
  box-shadow: var(--shadow);
}

.rhythm-panel img {
  width: 100%;
}

.count-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.count-strip span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 800;
}

.count-strip span:nth-child(1),
.count-strip span:nth-child(5) {
  color: var(--night);
  border-color: var(--pink);
  background: var(--pink);
}

.floor-code {
  color: var(--night);
  background: var(--teal);
}

.floor-code .section-heading p,
.floor-code p {
  color: #17433f;
}

.floor-code .eyebrow {
  color: #6e1634;
}

.etiquette-list {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 1px;
  border: 1px solid rgba(21, 18, 24, 0.24);
  background: rgba(21, 18, 24, 0.24);
}

.etiquette-item {
  min-height: 260px;
  padding: 28px;
  background: var(--teal);
}

.etiquette-item:nth-child(2) {
  color: var(--cream);
  background: var(--night);
}

.etiquette-item:nth-child(2) p {
  color: var(--cream-muted);
}

.etiquette-item strong {
  display: block;
  margin-bottom: 70px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.etiquette-item h3 {
  margin: 0 0 14px;
  font-size: 1.65rem;
  letter-spacing: -0.05em;
}

.cooperation-summary {
  background: var(--night);
}

.cooperation-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 58px;
  padding: clamp(30px, 6vw, 68px);
  border: 1px solid var(--line);
  background:
    linear-gradient(130deg, rgba(239, 71, 111, 0.12), transparent 45%),
    var(--night-lift);
  box-shadow: var(--shadow);
}

.cooperation-panel h2 {
  margin: 14px 0 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.cooperation-panel p {
  line-height: 1.75;
}

.site-footer {
  color: var(--cream);
  border-top: 1px solid var(--line);
  background: #0d0b0f;
}

.site-footer p,
.footer-bottom {
  color: #aaa0a8;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--teal);
}

.page-hero {
  position: relative;
  padding: 88px 0 76px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(239, 71, 111, 0.16), transparent 55%),
    var(--night-soft);
}

.page-hero::after {
  position: absolute;
  top: 30px;
  right: 8vw;
  width: 176px;
  height: 176px;
  content: "";
  border: 24px solid rgba(45, 212, 191, 0.16);
  border-radius: 50%;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 900px;
  margin: 15px 0 20px;
  font-size: clamp(3rem, 7vw, 6.6rem);
}

.page-hero p:last-child {
  max-width: 720px;
  font-size: 1.04rem;
  line-height: 1.8;
}

.article-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.article-aside,
.contact-note {
  position: sticky;
  top: 106px;
  padding: 24px;
  color: var(--night);
  background: var(--gold);
  box-shadow: 9px 10px 0 rgba(0, 0, 0, 0.3);
}

.article-aside p,
.contact-note li {
  color: #4d3b1b;
  line-height: 1.65;
}

.prose {
  max-width: 790px;
}

.prose h2 {
  margin: 0 0 18px;
  padding-top: 38px;
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.prose h2:first-child {
  padding-top: 0;
}

.prose h3 {
  margin-top: 32px;
  color: var(--teal);
  font-size: 1.3rem;
}

.prose p,
.prose li {
  color: var(--cream-muted);
  line-height: 1.85;
}

.prose li::marker {
  color: var(--pink);
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.chapter-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(247, 242, 234, 0.035);
}

.chapter-card h3 {
  margin: 34px 0 10px;
  color: var(--cream);
}

.step-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 30px 0;
}

.step-board div {
  min-height: 118px;
  padding: 16px;
  color: var(--night);
  background: var(--teal);
}

.step-board div:nth-child(even) {
  background: var(--pink);
}

.step-board strong {
  display: block;
  margin-bottom: 28px;
  font-size: 1.7rem;
}

.status-note {
  margin: 34px 0;
  padding: 24px;
  border-left: 5px solid var(--gold);
  background: rgba(247, 179, 43, 0.08);
}

.status-note strong {
  color: var(--gold);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.65fr);
  gap: 30px;
  align-items: start;
}

.contact-panel {
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--line);
  background: var(--night-lift);
  box-shadow: var(--shadow);
}

.contact-address {
  display: inline-block;
  max-width: 100%;
  margin: 16px 0;
  color: var(--teal);
  font-size: clamp(1.45rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}

.contact-panel > p:not(.eyebrow) {
  max-width: 690px;
  line-height: 1.75;
}

.error-main {
  min-height: 64vh;
  display: grid;
  align-items: center;
}

.error-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.error-code {
  color: transparent;
  font-size: clamp(6rem, 18vw, 13rem);
  font-weight: 800;
  letter-spacing: -0.1em;
  -webkit-text-stroke: 2px var(--pink);
}

.error-layout h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.error-layout p {
  max-width: 620px;
  line-height: 1.75;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .header-inner {
    display: block;
    padding: 15px 0 11px;
  }

  .header-inner nav {
    width: 100%;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-list {
    width: max-content;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .rhythm-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: min(640px, 92%);
    margin: 0 auto;
  }

  .entry-card {
    grid-column: span 6;
  }

  .entry-card:nth-child(2) {
    margin-top: 0;
  }

  .entry-card:nth-child(3) {
    grid-column: 4 / span 6;
  }

  .article-aside,
  .contact-note {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding: 54px 0 72px;
  }

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

  .hero h1 {
    font-size: clamp(3.3rem, 19vw, 5.4rem);
  }

  .tempo-badge {
    right: -5px;
    bottom: 24px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading,
  .cooperation-panel,
  .contact-layout,
  .error-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .entry-section {
    clip-path: none;
  }

  .entry-card,
  .entry-card:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 280px;
  }

  .etiquette-list,
  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .etiquette-item {
    min-height: 230px;
  }

  .step-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    padding: 64px 0 58px;
  }

  .page-hero::after {
    right: -70px;
  }

  .button-row .button {
    width: 100%;
    justify-content: center;
  }

  .footer-main,
  .footer-bottom {
    gap: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
