:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --text: #111c17;
  --text-secondary: #557066;
  --grid-line: rgba(17, 28, 23, 0.045);
  --accent: #059669;
  --accent-bright: #059669;
  --accent-deep: #15803d;
  --halo-jade: rgba(5, 150, 105, 0.08);
  --halo-jade-strong: rgba(5, 150, 105, 0.13);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  padding: clamp(2.5rem, 5.2vw, 4.75rem) clamp(3rem, 8.9vw, 8rem) clamp(2rem, 4vw, 3.5rem);
  isolation: isolate;
}

.bg-grid,
.bg-halo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-grid {
  z-index: -2;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg);
  background-size: 7.5rem 7.5rem;
  opacity: 0.72;
}

.bg-halo {
  z-index: -1;
  background:
    radial-gradient(ellipse 54% 44% at 50% 56%, var(--halo-jade-strong) 0%, var(--halo-jade) 31%, transparent 70%),
    linear-gradient(180deg, rgba(244, 247, 245, 0.08), rgba(244, 247, 245, 0.72));
}

.stage,
.foot {
  position: relative;
  z-index: 1;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.7rem 0 3.25rem;
}

.mark-hero {
  width: clamp(4rem, 7vw, 7.7rem);
  height: clamp(4rem, 7vw, 7.7rem);
  margin-bottom: clamp(1.65rem, 3vw, 2.6rem);
  color: var(--accent-bright);
  filter:
    drop-shadow(0 0 2.2rem rgba(5, 150, 105, 0.15));
}

.title-lockup {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) max-content;
  align-items: end;
  gap: clamp(2rem, 4.2vw, 4rem);
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(6.4rem, 11vw, 11.2rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-align: left;
  width: max-content;
}

h1 span {
  display: block;
}

.side-line {
  margin: 0 0 1.05rem;
  max-width: 18rem;
  color: var(--text-secondary);
  font-size: clamp(1.6rem, 2.35vw, 2.35rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-align: left;
}

.period {
  color: var(--accent-deep);
}

.foot {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes up {
    from {
      opacity: 0;
      transform: translateY(1.125rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mark-hero,
  h1,
  .foot {
    animation: up 0.7s var(--ease-out-expo) both;
  }

  .mark-hero { animation-delay: 0.06s; }
  h1 { animation-delay: 0.2s; }
  .foot { animation-delay: 0.32s; }
}

@media (max-width: 640px) {
  .page {
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    padding: 1.75rem 1.35rem 1.5rem;
  }

  .bg-grid {
    background-size: 4.8rem 4.8rem;
  }

  .bg-halo {
    background:
      radial-gradient(ellipse 80% 42% at 50% 49%, var(--halo-jade-strong) 0%, var(--halo-jade) 30%, transparent 72%),
      linear-gradient(180deg, rgba(244, 247, 245, 0.08), rgba(244, 247, 245, 0.72));
  }

  .stage {
    padding: 2.8rem 0 3.2rem;
  }

  .mark-hero {
    margin-bottom: 2rem;
  }

  h1 {
    font-size: clamp(2.45rem, 10.6vw, 3.35rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
    text-align: center;
    width: auto;
  }

  .title-lockup {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 21rem;
  }

  .side-line {
    max-width: 18rem;
    margin: 0;
    font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.3rem, 5.8vw, 1.7rem);
    font-weight: 300;
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-align: center;
    text-transform: none;
  }

  .foot {
    font-size: 0.95rem;
  }
}
