:root {
  --action: #0065cc;
  --action-hover: #0058b3;
  --focus-ring: #0878e2;
  --motion-settle: cubic-bezier(.18, .78, .25, 1);
  --motion-exit: cubic-bezier(.32, 0, .68, 1);
}
:root[data-theme="dark"] {
  --action: #0065cc;
  --action-hover: #0774e4;
  --focus-ring: #67b5ff;
}
html { scroll-padding-top: calc(var(--jw-header-height) + 12px); }
body { font-family: Aptos, "Microsoft YaHei", "PingFang SC", sans-serif; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 31;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--card);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.hero p { font-family: "Aptos", "Segoe UI", "PingFang SC", sans-serif; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: none; }
}

.hero { padding: 58px 0 40px; }
.hero h1 { margin-bottom: 19px; font-size: clamp(40px, 4.7vw, 62px); line-height: 1.13; }
.hero-actions { margin-top: 24px; }
.hero-actions .main-action { position: relative; display: inline-grid; color: white; border-radius: 99px; }
.hero-actions .main-action::after { content: none; }
.main-action span {
  pointer-events: none;
  display: grid;
  align-items: center;
  min-height: 46px;
  padding: 0 23px;
  border-radius: inherit;
  background: var(--action);
  font-weight: 700;
  translate: var(--pull-x, 0px) var(--pull-y, 0px);
  transition: transform 210ms var(--motion-settle), background-color 150ms ease-out, box-shadow 150ms ease-out;
}
@media (hover: hover) {
  .main-action:hover span {
    background: var(--action-hover);
    box-shadow: 0 7px 18px #0065cc36;
    transform: translateY(-2px);
  }
}
.main-action:active span { filter: brightness(.91); transform: scale(.96); }
.hero-visual {
  height: clamp(260px, 27vw, 320px);
  margin-top: 39px;
  box-shadow: 0 16px 45px #233a5d17;
  background: radial-gradient(ellipse at 28% 35%, var(--visual-a), transparent 69%),
    linear-gradient(135deg, var(--visual-a), var(--visual-b));
}
.hero-visual::before { background-size: 40px 40px; }
.hero-visual::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: var(--spot-active, 0);
  background: radial-gradient(270px circle at var(--spot-x, 50%) var(--spot-y, 50%), #349bff52, transparent 100%);
  pointer-events: none;
  transition: opacity 230ms ease-out;
}
.logo-stage { padding: 38px 80px; gap: 66px; }
.logo-symbol { max-height: 185px; }
.logo-lockup { padding-left: 47px; }
.identity-statement { margin-top: 0; font-size: clamp(36px, 4.8vw, 56px); line-height: 1; }
.logo-rule { margin-top: 20px; }

.section { padding: 18px 0 0; }
.section-head { text-align: left; margin-bottom: 19px; }
.section-head h2 { margin-top: 0; font-size: clamp(30px, 4vw, 42px); }
.projects { gap: 16px; }
.project {
  min-height: 0;
  padding: clamp(24px, 4vw, 50px);
  border: 1px solid var(--line);
  border-radius: 26px;
}
.project h3, .risk-copy h3 { margin: 0 0 12px; font-size: clamp(30px, 3.45vw, 45px); }
.project p { font-size: 16px; line-height: 1.68; }
.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 650;
}
.project-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-link::after { margin-left: 6px; }
.project-meta { margin-top: 12px; }
.project-meta span { font-size: 12px; }
.price-project, .risk-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
  text-align: left;
}
.market-scope { margin-top: 13px !important; font-size: 13px !important; }
.price-stage { min-width: 0; margin: 0; }
.price-stage img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px #122d541d;
}
.price-stage figcaption { margin-top: 8px; text-align: right; color: var(--sub); font-size: 12px; }
.price-stage img, .risk-screen, .curling-rink { border-radius: 16px; }
.risk-project .risk-screen { box-shadow: 0 12px 28px #122d541a; }
.curling-project .curling-rink { height: 220px; }
.project.reveal, .hero.reveal { opacity: 1; transform: none; animation: none; }
.project.reveal.arriving { animation: project-arrive 390ms var(--motion-settle) both; }
.project.reveal.arriving:nth-child(2) { animation-delay: 55ms; }
.project.reveal.arriving:nth-child(3) { animation-delay: 100ms; }
@keyframes project-arrive {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.back-to-top {
  position: fixed;
  z-index: 15;
  right: max(18px, calc((100% - 1280px) / 2));
  bottom: 20px;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 5px 14px #14294220;
  font-size: 20px;
  cursor: pointer;
  animation: menu-in 200ms ease-out;
}
.back-to-top:hover { color: var(--blue); border-color: var(--blue); }

@media (min-width: 920px) {
  .hero-title-line { display: inline; }
  .hero-title-line + .hero-title-line { margin-left: .14em; }
}
@media (max-width: 760px) {
  .hero { padding: 35px 0 28px; }
  .hero h1 { font-size: clamp(32px, 8.3vw, 51px); }
  .hero-copy-line, .hero-title-line { white-space: normal; }
  .hero-visual { height: 194px; margin-top: 29px; border-radius: 21px; }
  .logo-stage { padding: 27px; gap: 0; }
  .logo-symbol { max-height: 120px; }
  .section { padding-top: 15px; }
  .price-project, .risk-layout { grid-template-columns: minmax(0, 1fr); text-align: left; gap: 16px; }
  .risk-copy { text-align: left; }
  .risk-copy p { margin: 0; }
  .risk-copy .project-meta { justify-content: flex-start; }
  .project { border-radius: 19px; }
  .risk-screen { padding: 14px; }
  .risk-item { grid-template-columns: 55px minmax(0, 1fr); gap: 8px; }
  .risk-summary { gap: 8px; }
  .curling-project .curling-rink { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .main-action span, .hero-visual::after { transition: none; }
  .back-to-top, .project.reveal.arriving { animation: none; }
  .main-action span, .main-action:hover span, .main-action:active span { transform: none; translate: none; }
}
