:root {
  --waken-canvas: #fff8ef;
  --waken-paper: #fffdf8;
  --waken-ink: #1c1c1a;
  --waken-secondary: #625f58;
  --waken-line: #dcd4c8;
  --waken-coral: #ff5e33;
  --waken-cobalt: #4663f5;
  --waken-acid: #c5e85b;
  --waken-blush: #ffc3c6;
  --waken-pale-blue: #d7dfff;
}

.waken-body {
  margin: 0;
  background: var(--waken-canvas);
}

.waken-site,
.waken-site * {
  box-sizing: border-box;
}

.waken-site {
  min-height: 100vh;
  overflow: hidden;
  color: var(--waken-ink);
  background: var(--waken-canvas);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

.waken-site a {
  color: inherit;
}

.waken-header {
  width: min(1260px, calc(100% - 72px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.waken-brand {
  width: fit-content;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--waken-ink);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.waken-brand span {
  color: var(--waken-coral);
  font-size: 7px;
}

.waken-header nav {
  display: flex;
  gap: 32px;
}

.waken-header nav a,
.waken-status {
  color: var(--waken-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.waken-header nav a:hover,
.waken-header nav a:focus-visible {
  color: var(--waken-coral);
}

.waken-status {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.waken-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--waken-acid);
  box-shadow: 0 0 0 4px rgb(197 232 91 / 22%);
}

.waken-hero {
  position: relative;
  width: min(1260px, calc(100% - 72px));
  min-height: calc(100svh - 84px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(60px, 9vw, 150px);
  padding: 84px 0 108px;
}

.waken-hero::before,
.waken-hero::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.waken-hero::before {
  top: 8%;
  left: -104px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--waken-acid);
  opacity: 0.42;
}

.waken-hero::after {
  right: -74px;
  bottom: 14%;
  width: 128px;
  height: 128px;
  border: 28px solid var(--waken-cobalt);
  border-radius: 42px;
  opacity: 0.14;
  rotate: 16deg;
}

.waken-hero-copy,
.waken-preview {
  position: relative;
  z-index: 1;
}

.waken-kicker {
  margin: 0;
  color: var(--waken-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.waken-hero h1,
.waken-about h2,
.waken-flow h2,
.waken-closing h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.065em;
}

.waken-hero h1 {
  margin-top: 22px;
  font-size: clamp(58px, 6.5vw, 94px);
  line-height: 1.07;
}

.waken-lead {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--waken-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
}

.waken-hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.waken-action {
  width: 210px;
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--waken-paper) !important;
  border-radius: 18px;
  background: var(--waken-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.waken-action span {
  color: var(--waken-coral);
  font-size: 18px;
}

.waken-hero-actions > span {
  color: var(--waken-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.09em;
}

.waken-preview {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
  animation: waken-preview-float 5s ease-in-out infinite;
}

.preview-layer,
.preview-card {
  position: absolute;
  width: min(470px, 84%);
  min-height: 420px;
  border: 1px solid var(--waken-line);
  border-radius: 34px;
  transform-origin: center;
  animation: waken-pop-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.preview-layer-back {
  translate: 48px -34px;
  rotate: 5deg;
  background: var(--waken-pale-blue);
}

.preview-layer-middle {
  translate: -32px 24px;
  rotate: -4deg;
  background: var(--waken-blush);
  animation-delay: 90ms;
}

.preview-card {
  z-index: 2;
  padding: 34px;
  display: flex;
  flex-direction: column;
  background: var(--waken-paper);
  box-shadow: 0 34px 80px rgb(28 28 26 / 10%);
  animation-delay: 180ms;
}

.preview-card header,
.preview-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-card header span {
  font-size: 14px;
  font-weight: 600;
}

.preview-card header small,
.preview-card footer span,
.preview-progress small,
.preview-note {
  color: var(--waken-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.preview-goal {
  margin: 54px 0 38px;
}

.preview-goal p {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.preview-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 48px;
}

.preview-progress > div:first-child {
  display: grid;
}

.preview-progress strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.preview-card footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--waken-line);
}

.preview-card footer b {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--waken-acid);
  font-size: 12px;
}

.preview-note {
  z-index: 3;
  padding: 10px 13px;
  border: 1px solid var(--waken-line);
  border-radius: 999px;
  background: var(--waken-paper);
  font-size: 12px;
  font-weight: 700;
}

.note-one {
  position: absolute;
  top: 42px;
  left: 8%;
}

.note-two {
  position: absolute;
  right: 2%;
  bottom: 54px;
}

.waken-rhythm {
  height: 68px;
  display: flex;
  align-items: end;
  gap: 7px;
}

.waken-rhythm i {
  width: 100%;
  min-width: 6px;
  display: block;
  border-radius: 999px;
  background: var(--waken-line);
  transform-origin: bottom;
  animation: waken-bar-grow 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.waken-rhythm i:nth-child(2) {
  animation-delay: 60ms;
}

.waken-rhythm i:nth-child(3) {
  animation-delay: 120ms;
}

.waken-rhythm i:nth-child(4) {
  animation-delay: 180ms;
}

.waken-rhythm i:nth-child(5) {
  animation-delay: 240ms;
}

.waken-rhythm i:nth-child(6) {
  animation-delay: 300ms;
}

.waken-rhythm i:nth-child(7) {
  animation-delay: 360ms;
}

.waken-rhythm.is-coral i.is-active {
  background: var(--waken-coral);
}

.waken-rhythm.is-cobalt i.is-active {
  background: var(--waken-cobalt);
}

.waken-rhythm.is-acid i.is-active {
  background: var(--waken-acid);
}

.waken-about {
  width: min(1260px, calc(100% - 72px));
  min-height: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 110px 1fr 320px;
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
  border-top: 1px solid var(--waken-line);
}

.about-index {
  align-self: stretch;
  padding-top: 76px;
  border-right: 1px solid var(--waken-line);
}

.about-index > span {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
}

.about-index .waken-rhythm {
  width: 48px;
  height: 86px;
  margin-top: 28px;
  gap: 3px;
}

.about-index .waken-rhythm i {
  min-width: 3px;
}

.about-copy h2,
.waken-flow h2,
.waken-closing h2 {
  margin-top: 20px;
  font-size: clamp(43px, 5.2vw, 70px);
  line-height: 1.1;
}

.about-copy > p:last-child {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--waken-secondary);
  font-size: 16px;
  line-height: 2;
}

.waken-about aside {
  padding: 26px;
  border: 1px solid var(--waken-line);
  border-radius: 26px;
  background: var(--waken-paper);
}

.waken-about aside p {
  margin: 0;
  color: var(--waken-secondary);
  font-size: 13px;
}

.waken-about aside strong {
  display: block;
  margin-top: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 42px;
  font-weight: 500;
}

.waken-about aside .waken-rhythm {
  margin-top: 28px;
}

.waken-flow {
  width: min(1260px, calc(100% - 72px));
  margin: 0 auto;
  padding: 110px 0;
  border-top: 1px solid var(--waken-line);
}

.waken-flow > header {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: end;
}

.waken-flow > header h2 {
  margin-top: 0;
}

.waken-step-list {
  margin-top: 74px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.waken-step-list article {
  min-height: 420px;
  padding: 28px;
  display: grid;
  grid-template-rows: 18px 264px auto;
  align-content: start;
  border: 1px solid var(--waken-line);
  border-radius: 28px;
  background: var(--waken-paper);
  transition: translate 260ms ease, rotate 260ms ease, box-shadow 260ms ease;
}

.waken-step-list article:hover {
  translate: 0 -8px;
  box-shadow: 0 20px 44px rgb(28 28 26 / 9%);
}

.waken-step-list article:nth-child(2):hover {
  rotate: 1deg;
}

.waken-step-list article:nth-child(3):hover {
  rotate: -1deg;
}

.waken-step-list article.is-coral {
  background: #fff0e9;
}

.waken-step-list article.is-cobalt {
  background: #eef1ff;
}

.waken-step-list article.is-acid {
  background: #f3fad8;
}

.waken-step-list article > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.waken-step-list article > header > span {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.waken-step-list article > header > i {
  width: 11px;
  height: 11px;
  border-radius: 4px;
}

.waken-step-list .is-coral > header > i {
  background: var(--waken-coral);
}

.waken-step-list .is-cobalt > header > i {
  background: var(--waken-cobalt);
}

.waken-step-list .is-acid > header > i {
  background: var(--waken-acid);
}

.step-illustration {
  --feature-accent: var(--waken-coral);
  position: relative;
  height: 188px;
  margin: 18px 0 24px;
  display: grid;
  place-items: center;
}

.step-illustration.is-record {
  --feature-accent: var(--waken-cobalt);
}

.step-illustration.is-stamps {
  --feature-accent: var(--waken-acid);
}

.feature-panel {
  position: relative;
  width: min(230px, 88%);
  height: 158px;
  overflow: hidden;
  border: 2px solid var(--waken-ink);
  border-radius: 26px;
  background: var(--waken-paper);
  box-shadow: 8px 9px 0 var(--feature-accent);
  transform: rotate(-2deg);
  transition:
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 300ms ease;
}

.waken-step-list article:hover .feature-panel {
  box-shadow: 12px 14px 0 var(--feature-accent);
  transform: translateY(-7px) rotate(1deg);
}

.room-list {
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.room-option {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  border: 2px solid var(--waken-ink);
  border-radius: 12px;
  background: var(--waken-paper);
}

.room-option i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--waken-blush);
}

.room-option b {
  width: 78%;
  height: 6px;
  border-radius: 999px;
  background: var(--waken-ink);
}

.room-option-two {
  grid-template-columns: 22px 1fr 22px;
  background: #f3fad8;
}

.room-option-two i {
  background: var(--waken-acid);
}

.room-option-three i {
  background: var(--waken-pale-blue);
}

.room-option em {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid var(--waken-ink);
  border-radius: 50%;
  background: var(--waken-acid);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.record-sheet {
  padding: 24px;
}

.record-title {
  display: block;
  width: 58%;
  height: 12px;
  border-radius: 999px;
  background: var(--waken-ink);
}

.record-lines {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  height: 72px;
  display: flex;
  align-items: end;
  gap: 10px;
}

.record-lines i {
  width: 100%;
  border-radius: 999px;
  background: var(--waken-cobalt);
}

.record-lines i:nth-child(1) {
  height: 44%;
}

.record-lines i:nth-child(2) {
  height: 68%;
}

.record-lines i:nth-child(3) {
  height: 52%;
}

.record-lines i:nth-child(4) {
  height: 86%;
}

.record-lines i:nth-child(5) {
  height: 72%;
}

.record-sheet > b {
  position: absolute;
  top: 15px;
  right: 17px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--waken-ink);
  border-radius: 50%;
  background: var(--waken-acid);
  font-size: 19px;
}

.reaction-panel {
  padding: 24px 20px;
}

.reaction-person {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
}

.reaction-person i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--waken-pale-blue);
}

.reaction-person b {
  width: 70%;
  height: 8px;
  border-radius: 999px;
  background: var(--waken-ink);
}

.reaction-set {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
}

.reaction-pill {
  min-width: 42px;
  padding: 7px 8px;
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--waken-canvas);
  font-family:
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  transition: transform 220ms ease;
}

.reaction-pill.is-active {
  background: var(--waken-acid);
}

.reaction-pill b {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
}

.waken-step-list article:hover .reaction-pill {
  transform: translateY(-2px);
}

.waken-step-list article:hover .reaction-pill:nth-child(2) {
  transition-delay: 35ms;
}

.waken-step-list article:hover .reaction-pill:nth-child(3) {
  transition-delay: 70ms;
}

.waken-step-list article:hover .reaction-pill:nth-child(4) {
  transition-delay: 105ms;
}

.waken-step-list article > div:last-child {
  margin-top: 0;
}

.waken-step-list h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.waken-step-list p {
  margin: 12px 0 0;
  color: var(--waken-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.waken-closing {
  width: min(1260px, calc(100% - 72px));
  min-height: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
  border-top: 1px solid var(--waken-line);
}

.waken-closing > div:first-child > p:last-child {
  margin: 24px 0 0;
  color: var(--waken-secondary);
  font-size: 16px;
}

.closing-card {
  min-height: 420px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  background: var(--waken-cobalt);
  color: var(--waken-paper);
  rotate: 3deg;
}

.closing-card > span,
.closing-card > small {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.closing-card > strong {
  margin-top: 42px;
  font-family: "JetBrains Mono", monospace;
  font-size: 120px;
  font-weight: 500;
  line-height: 0.9;
}

.closing-card > small {
  margin-top: 10px;
  color: rgb(252 250 245 / 65%);
}

.closing-card .waken-rhythm {
  margin-top: auto;
}

.waken-footer {
  width: min(1260px, calc(100% - 72px));
  min-height: 170px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--waken-line);
}

.waken-footer p,
.waken-footer small {
  margin: 0;
  color: var(--waken-secondary);
  font-size: 12px;
}

.waken-footer small {
  justify-self: end;
  font-family: "JetBrains Mono", monospace;
}

.waken-header {
  animation: waken-header-in 560ms ease both;
}

.waken-hero-copy > * {
  animation: waken-copy-in 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.waken-hero-copy > :nth-child(2) {
  animation-delay: 80ms;
}

.waken-hero-copy > :nth-child(3) {
  animation-delay: 150ms;
}

.waken-hero-copy > :nth-child(4) {
  animation-delay: 220ms;
}

.note-one {
  animation: waken-note-one 4.2s ease-in-out infinite;
}

.note-two {
  animation: waken-note-two 4.8s ease-in-out infinite;
}

@keyframes waken-header-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes waken-copy-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes waken-pop-in {
  from {
    opacity: 0;
    transform: scale(0.88) rotate(-3deg);
  }
}

@keyframes waken-preview-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes waken-bar-grow {
  from {
    transform: scaleY(0);
  }
}

@keyframes waken-note-one {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}

@keyframes waken-note-two {
  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }
  50% {
    transform: translateY(8px) rotate(-2deg);
  }
}

@keyframes waken-reveal {
  from {
    opacity: 0;
    transform: translateY(38px);
  }
}

@supports (animation-timeline: view()) {
  .about-copy,
  .waken-about aside,
  .waken-flow > header,
  .waken-step-list article,
  .waken-closing > div {
    animation: waken-reveal linear both;
    animation-timeline: view();
    animation-range: entry 4% cover 24%;
  }
}

@media (max-width: 880px) {
  .waken-header,
  .waken-hero,
  .waken-about,
  .waken-flow,
  .waken-closing,
  .waken-footer {
    width: calc(100% - 36px);
  }

  .waken-header {
    grid-template-columns: 1fr auto;
  }

  .waken-header nav {
    display: none;
  }

  .waken-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 76px;
    padding: 84px 0 100px;
  }

  .waken-hero h1 {
    font-size: clamp(48px, 13vw, 72px);
  }

  .waken-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .waken-preview {
    min-height: 500px;
  }

  .preview-layer,
  .preview-card {
    width: min(410px, 84%);
    min-height: 380px;
  }

  .waken-about {
    grid-template-columns: 54px 1fr;
    gap: 26px;
    padding: 70px 0;
  }

  .about-index {
    padding-top: 8px;
  }

  .waken-about aside {
    grid-column: 2;
  }

  .waken-flow > header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .waken-step-list {
    grid-template-columns: 1fr;
  }

  .waken-step-list article {
    min-height: 390px;
  }

  .waken-closing {
    grid-template-columns: 1fr;
    gap: 70px;
    padding: 90px 0;
  }

  .closing-card {
    width: min(380px, 88%);
    justify-self: center;
  }

  .waken-footer {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
  }

  .waken-footer small {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .waken-status {
    font-size: 12px;
  }

  .waken-lead br {
    display: none;
  }

  .preview-card {
    padding: 24px;
  }

  .preview-goal p {
    font-size: 26px;
  }

  .preview-progress {
    gap: 24px;
  }

  .note-one {
    left: 0;
  }

  .note-two {
    right: 0;
  }

  .waken-flow {
    padding: 82px 0;
  }

  .about-copy h2,
  .waken-flow h2,
  .waken-closing h2 {
    font-size: clamp(38px, 10.8vw, 52px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .waken-site *,
  .waken-site *::before,
  .waken-site *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
