:root {
  --paper: #f3f5f3;
  --surface: #fbfcfa;
  --ink: #1c2b30;
  --muted: #607076;
  --line: #d7dede;
  --restaurant: #bc633c;
  --beauty: #a74867;
  --relay: #397483;
  --focus: #266ca7;
  --shadow: 0 16px 34px rgba(30, 48, 53, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 9px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transform: translateY(-150%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.market-home { background: var(--paper); }
.site-header {
  width: min(100% - 48px, 2160px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #526168;
  font-size: 13px;
  font-weight: 750;
}
.nav-links > a { transition: color .2s ease; }
.nav-links > a:hover { color: var(--ink); }
.nav-join {
  padding: 8px 13px;
  border: 1px solid #aeb9bb;
  border-radius: 7px;
  color: var(--ink);
}
.nav-join:hover { border-color: var(--ink); }
.market-home .account-link,
.market-home .account-button { color: #526168; }
.market-home .account-link:hover,
.market-home .account-button:hover { color: var(--restaurant); }
.market-home .account-profile::before {
  background: var(--ink);
  color: #fff;
}

.home-hero {
  width: min(100% - 48px, 2160px);
  margin: 0 auto;
}
.home-hero {
  position: relative;
  padding: 34px 0 48px;
  display: grid;
  gap: 16px;
  overflow: clip;
  isolation: isolate;
}
.home-curation-backdrop {
  position: absolute;
  inset: -34px calc((100% - 100vw) / 2) -48px;
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
  pointer-events: none;
}
.home-curation-backdrop::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, .18);
  content: "";
}
.home-curation-backdrop picture,
.home-curation-image {
  display: block;
  width: 100%;
  height: 100%;
}
.home-curation-image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  will-change: transform;
}
.home-curation-window {
  position: absolute;
  top: -18%;
  right: 19%;
  z-index: 2;
  width: 11%;
  height: 126%;
  background: rgba(39, 54, 55, .055);
  transform: rotate(-10deg);
  transform-origin: center;
  will-change: transform, opacity;
}
.home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.home-title {
  margin: 0;
  color: var(--ink);
  font-size: 46px;
  font-weight: 840;
  line-height: 1.12;
}
.hero-copy {
  margin: 11px 0 0;
  color: #485a60;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.75;
}
.hero-projects {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .96fr) minmax(0, .96fr);
  align-items: stretch;
  gap: 12px;
}
.home-project {
  --project-accent: var(--relay);
  --project-beam: rgba(57, 116, 131, .66);
  --project-track: rgba(57, 116, 131, .26);
  min-width: 0;
  min-height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(18, 24, 27, .02);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  will-change: transform;
}
.home-project:hover,
.home-project:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.home-project:focus-visible {
  outline: 2px solid rgba(38, 108, 167, .52);
  outline-offset: 4px;
}
.restaurant-project:hover,
.restaurant-project:focus-visible { border-color: rgba(188, 99, 60, .45); }
.beauty-project:hover,
.beauty-project:focus-visible { border-color: rgba(167, 72, 103, .42); }
.relay-project:hover,
.relay-project:focus-visible { border-color: rgba(57, 116, 131, .42); }
.restaurant-project {
  --project-accent: var(--restaurant);
  --project-beam: rgba(188, 99, 60, .72);
  --project-track: rgba(188, 99, 60, .27);
}
.beauty-project {
  --project-accent: var(--beauty);
  --project-beam: rgba(167, 72, 103, .68);
  --project-track: rgba(167, 72, 103, .25);
}
.relay-project {
  --project-accent: var(--relay);
  --project-beam: rgba(57, 116, 131, .72);
  --project-track: rgba(57, 116, 131, .27);
}
.home-project-motion {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: var(--project-accent);
  opacity: .78;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.home-project-motion span {
  position: absolute;
  display: block;
  will-change: transform, opacity;
}
.project-sweep {
  top: 27%;
  left: -34%;
  width: 168%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--project-track) 30%, var(--project-beam) 50%, var(--project-track) 70%, transparent 100%);
  opacity: .62;
  transform: translateX(-12%) rotate(-2deg);
  transform-origin: center;
}
.project-track {
  right: -24%;
  bottom: 17%;
  width: 132%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--project-beam), transparent);
  opacity: .48;
  transform: translateX(9%) rotate(.8deg);
  transform-origin: right center;
}
.project-node {
  top: 18px;
  right: 18px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .34), 0 0 18px var(--project-beam);
  opacity: .78;
  transform: scale(1);
  transform-origin: center;
}
.home-project:hover .home-project-motion,
.home-project:focus-visible .home-project-motion {
  opacity: 1;
  transform: translateY(-2px);
}
.home-project:hover .project-node,
.home-project:focus-visible .project-node {
  transform: scale(1.22);
}
.home-project-media,
.relay-visual {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe8e5;
}
.home-project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .45s cubic-bezier(.2, .72, .2, 1);
}
.home-project:hover img,
.home-project:focus-visible img { transform: scale(1.035); }
.beauty-project .home-project-media { background: #eee3e4; }
.relay-visual {
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: #dfecee;
  color: #275b65;
}
.relay-visual::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(39, 91, 101, .24);
  border-radius: 7px;
  content: "";
}
.relay-visual b {
  position: relative;
  z-index: 1;
  font-size: 36px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}
.relay-visual i {
  position: absolute;
  height: 1px;
  background: rgba(79, 137, 147, .72);
  transform-origin: left center;
}
.relay-visual i:nth-of-type(1) {
  top: 36%;
  right: 13%;
  left: 41%;
}
.relay-visual i:nth-of-type(2) {
  top: 54%;
  right: 27%;
  left: 48%;
}
.relay-visual i:nth-of-type(3) {
  top: 71%;
  right: 15%;
  left: 34%;
}
.home-project-copy {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  color: var(--ink);
}
.home-project-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.restaurant-project .home-project-copy span { color: var(--restaurant); }
.beauty-project .home-project-copy span { color: var(--beauty); }
.relay-project .home-project-copy span { color: var(--relay); }
.home-project-copy strong {
  margin-top: 8px;
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.28;
}
.home-project-copy small {
  margin-top: 8px;
  color: #68777b;
  font-size: 12px;
  line-height: 1.55;
}
.home-project-copy::after {
  position: absolute;
  right: 18px;
  bottom: 20px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  color: var(--ink);
  transform: rotate(45deg);
  transition: transform .22s ease;
  content: "";
}
.home-project:hover .home-project-copy::after,
.home-project:focus-visible .home-project-copy::after { transform: translateX(3px) rotate(45deg); }

.join h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 820;
  line-height: 1.25;
}
.join-copy > p {
  max-width: 500px;
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.8;
}
.join {
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(390px, 1.12fr);
  gap: clamp(42px, 7vw, 122px);
  padding: 82px max(32px, calc((100% - 1320px) / 2));
  background: #e5ece9;
}
.join-routes {
  margin-top: 28px;
  border-top: 1px solid #bfcfca;
}
.join-routes div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #bfcfca;
}
.join-routes span {
  color: #55726e;
  font-size: 12px;
  font-weight: 800;
}
.join-routes strong {
  color: #394e50;
  font-size: 13px;
  line-height: 1.55;
}
.join-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
  padding: 0;
}
.join-form label {
  display: grid;
  gap: 7px;
  color: #455557;
  font-size: 12px;
  font-weight: 800;
}
.join-form label:nth-of-type(3),
.join-form label:nth-of-type(4),
.join-form button,
.join-form .form-note,
.join-form .form-privacy { grid-column: 1 / -1; }
.join-form input,
.join-form select {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid #b9c8c4;
  border-radius: 7px;
  outline: 0;
  background: rgba(255, 255, 255, .74);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.join-form input:focus,
.join-form select:focus {
  border-color: #3e7770;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(62, 119, 112, .14);
}
.join-form button {
  min-height: 47px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.join-form button:hover {
  background: #3b5054;
  transform: translateY(-1px);
}
.join-form button:disabled {
  opacity: .68;
  cursor: wait;
}
.field-error,
.form-note {
  min-height: 17px;
  margin: 0;
  color: #b33f37;
  font-size: 12px;
  font-style: normal;
}
.form-note.is-ok { color: #2d7162; }
.form-privacy {
  margin: 0;
  color: #687779;
  font-size: 11px;
  line-height: 1.65;
}
.req {
  color: #b33f37;
  font-style: normal;
}
.has-error { border-color: #b33f37 !important; }
.reveal {
  opacity: 0;
  transform: translateY(12px);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.ripple { display: none; }

.market-home a:focus-visible,
.market-home button:focus-visible {
  outline: 3px solid rgba(38, 108, 167, .48);
  outline-offset: 4px;
}

@media (max-width: 920px) {
  .hero-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relay-project { grid-column: 1 / -1; }
  .join {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .site-header,
  .home-hero { width: min(100% - 32px, 1320px); }
  .site-header { min-height: 64px; }
  .brand { font-size: 16px; }
  .nav-links {
    gap: 12px;
    font-size: 12px;
  }
  .nav-links > a:not(.nav-join) { display: none; }
  .nav-join { padding: 7px 9px; }
  .account-slot,
  .account-actions { gap: 8px; }
  .account-link,
  .account-button { font-size: 12px; }
  .home-hero {
    padding: 26px 0 42px;
    gap: 12px;
  }
  .home-curation-backdrop { bottom: -42px; }
  .home-curation-image { object-position: 50% 46%; }
  .home-curation-window { right: 13%; width: 16%; }
  .home-title {
    font-size: 32px;
    line-height: 1.16;
  }
  .hero-copy {
    max-width: 310px;
    font-size: 14px;
  }
  .hero-projects {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .relay-project { grid-column: auto; }
  .home-project-media,
  .relay-visual { aspect-ratio: 16 / 9; }
  .home-project-motion { aspect-ratio: 16 / 9; }
  .project-node {
    top: 14px;
    right: 14px;
  }
  .home-project-copy {
    min-height: 122px;
    padding: 17px;
  }
  .home-project-copy strong { font-size: 18px; }
  .home-project-copy::after {
    right: 18px;
    bottom: 19px;
  }
  .join h2 { font-size: 24px; }
  .join {
    gap: 36px;
    padding: 58px 16px;
  }
  .join-routes div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .join-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .join-form label { grid-column: auto !important; }
  .join-form button,
  .join-form .form-note,
  .join-form .form-privacy { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .home-project,
  .home-project-motion,
  .home-project-motion span,
  .home-project-media img,
  .home-curation-image,
  .home-curation-window,
  .join-form button {
    transition: none !important;
    animation: none !important;
  }
  .home-project:hover,
  .home-project:focus-visible,
  .join-form button:hover { transform: none; }
  .home-project:hover img,
  .home-project:focus-visible img { transform: scale(1.001); }
}
