:root {
  color-scheme: dark;
  --bg: #020504;
  --ink: #f3fff7;
  --ink-soft: rgba(243, 255, 247, .78);
  --muted: rgba(210, 224, 216, .64);
  --quiet: rgba(183, 201, 191, .46);
  --line: rgba(243, 255, 247, .14);
  --accent: #86e6bc;
  --accent-ink: #07110d;
  --header-height: 72px;
  --content-width: 1160px;
  --font-sans: "Aptos", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

a,
button {
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--accent-ink);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.painting-underlay,
.background-scrim,
[data-vrellis-field] {
  position: fixed;
  inset: 0;
}

.painting-underlay {
  z-index: 0;
  pointer-events: none;
  background: center / cover no-repeat url("assets/source/starry-night-1280.jpg");
  opacity: .22;
  filter: saturate(1.08) contrast(1.08) brightness(.78);
  mix-blend-mode: screen;
}

.background-scrim {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(2, 5, 4, .42), rgba(2, 5, 4, .05) 32%, rgba(2, 5, 4, .35) 78%),
    linear-gradient(180deg, rgba(2, 5, 4, .10), rgba(2, 5, 4, .05) 44%, rgba(2, 5, 4, .33));
}

[data-vrellis-field] {
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(243, 255, 247, .10);
  background: linear-gradient(180deg, rgba(2, 5, 4, .80), rgba(2, 5, 4, .14));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 760;
  text-decoration: none;
}

.home-page .site-header {
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .brand-lockup {
  color: rgba(243, 255, 247, .94);
  text-shadow:
    0 2px 18px rgba(0, 0, 0, .88),
    0 0 1px rgba(243, 255, 247, .32);
}

.site-main,
.about-main {
  position: relative;
  z-index: 5;
}

.home-root {
  scroll-snap-type: y mandatory;
}

.home-section {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + 44px) clamp(24px, 6vw, 88px) 52px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.home-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 52%, rgba(2, 5, 4, .58), rgba(2, 5, 4, .18) 44%, transparent 74%);
}

.home-copy {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  text-align: center;
}

.mission-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  text-align: center;
}

.hero-title,
.mission-title {
  margin: 0 auto;
  max-width: 1120px;
  color: var(--ink);
  font-size: 6.25rem;
  line-height: 1.04;
  font-weight: 790;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow:
    0 16px 64px rgba(0, 0, 0, .74),
    0 0 30px rgba(243, 255, 247, .07);
}

.mission-title {
  max-width: 1040px;
  margin: 0 auto;
  font-size: 2.85rem;
  line-height: 1.24;
  font-weight: 740;
  text-wrap: pretty;
}

.mission-statement {
  max-width: 1040px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 2.85rem;
  line-height: 1.24;
  font-weight: 540;
  text-wrap: balance;
  text-shadow: 0 10px 36px rgba(0, 0, 0, .64);
}

.closing-section {
  align-items: center;
  padding-top: calc(var(--header-height) + 34px);
  padding-bottom: 24px;
}

.closing-section::before {
  background:
    linear-gradient(180deg, rgba(2, 5, 4, .06), rgba(2, 5, 4, .62) 76%),
    radial-gradient(ellipse at 50% 36%, rgba(2, 5, 4, .50), rgba(2, 5, 4, .12) 48%, transparent 78%);
}

.closing-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.closing-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.closing-copy {
  max-width: 940px;
  margin: 0 auto;
  color: rgba(243, 255, 247, .88);
  font-size: 1.22rem;
  line-height: 1.72;
  font-weight: 520;
  text-wrap: pretty;
  text-shadow: 0 12px 42px rgba(0, 0, 0, .72);
}

.closing-action {
  display: grid;
  justify-items: center;
}

.closing-action .primary-link {
  margin-top: 26px;
}

.primary-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0 22px;
  border: 1px solid rgba(243, 255, 247, .30);
  border-radius: 999px;
  background: rgba(243, 255, 247, .94);
  color: var(--accent-ink);
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
  font: inherit;
  cursor: pointer;
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), background .24s ease;
}

.primary-link:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.primary-link:active {
  transform: translateY(1px);
}

.link-arrow {
  font-size: 1.15em;
  line-height: 1;
}

.closing-footer {
  width: 100%;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .66fr);
  gap: clamp(52px, 7vw, 96px);
  align-items: start;
  text-align: left;
}

.footer-brand {
  min-width: 0;
  padding-top: 2px;
}

.footer-brand-name {
  margin: 0;
  color: rgba(243, 255, 247, .94);
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 760;
}

.footer-tagline {
  max-width: 430px;
  margin: 13px 0 0;
  color: rgba(218, 232, 223, .70);
  font-size: .96rem;
  line-height: 1.65;
}

.footer-meta {
  display: grid;
  gap: 18px;
  justify-items: end;
}

.footer-contact-block,
.footer-legal {
  width: min(100%, 360px);
}

.footer-heading {
  margin: 0 0 13px;
  color: rgba(243, 255, 247, .86);
  font-size: .82rem;
  line-height: 1.4;
  font-weight: 680;
}

.footer-contact-row {
  display: grid;
  gap: 18px;
  align-items: start;
}

.footer-email {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  color: rgba(218, 232, 223, .70);
  font-size: .76rem;
  line-height: 1.55;
}

.footer-field-label {
  color: rgba(195, 213, 202, .54);
}

.footer-email-link {
  min-width: 0;
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.footer-email-link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.footer-link {
  color: inherit;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.footer-link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.footer-qr {
  position: relative;
  width: 104px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(243, 255, 247, .20);
  background: #fff;
}

.footer-qr-list {
  display: grid;
  grid-template-columns: repeat(2, 104px);
  gap: 18px;
  justify-content: start;
}

.footer-qr-item {
  width: 104px;
  margin: 0;
}

.footer-qr-caption {
  margin-top: 7px;
  color: rgba(195, 213, 202, .64);
  font-size: .68rem;
  line-height: 1.4;
  text-align: center;
}

.contact-qr-image,
.official-account-qr-image {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.contact-qr-image {
  width: 160%;
}

.official-account-qr-image {
  width: 100%;
}

.footer-legal {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  color: rgba(218, 232, 223, .64);
  font-size: .74rem;
  line-height: 1.55;
}

.footer-legal p {
  margin: 0;
}

.about-root {
  color-scheme: light;
  scroll-behavior: auto;
  background: #faf9f5;
}

.about-page {
  --about-bg: #faf9f5;
  --about-ink: #141413;
  --about-soft: #3d3d3a;
  --about-muted: #5e5d59;
  --about-line: rgba(20, 20, 19, .14);
  --about-accent: #c6613f;
  background: var(--about-bg);
  color: var(--about-ink);
}

.about-page .skip-link {
  background: var(--about-ink);
  color: var(--about-bg);
}

.about-page .painting-underlay {
  background-position: right -110px top 72px;
  background-size: max(980px, 82vw) auto;
  opacity: .055;
  filter: grayscale(.72) sepia(.18) contrast(1.28) brightness(1.12);
  mix-blend-mode: multiply;
}

.about-page .background-scrim {
  background-color: rgba(250, 249, 245, .91);
  background-image:
    linear-gradient(rgba(20, 20, 19, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 19, .035) 1px, transparent 1px);
  background-size: 72px 72px;
}

.about-page .site-header {
  justify-content: space-between;
  border-bottom-color: rgba(20, 20, 19, .13);
  background: rgba(250, 249, 245, .90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.about-page .brand-lockup {
  color: var(--about-ink);
}

.about-page-label {
  color: var(--about-soft);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1;
  font-weight: 400;
}

.about-main {
  padding-top: var(--header-height);
}

.about-main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(26px, calc((100vw - 1240px) / 2));
  width: 1px;
  background: var(--about-line);
  pointer-events: none;
}

.about-section {
  position: relative;
  min-height: 0;
  scroll-margin-top: var(--header-height);
  padding: 60px clamp(38px, 7vw, 112px) 68px;
  border-bottom: 1px solid var(--about-line);
}

.about-section:last-child {
  padding-bottom: 84px;
  border-bottom: 0;
}

.about-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(350px, .72fr) minmax(0, 1.28fr);
  gap: 0 clamp(52px, 5vw, 76px);
  align-items: start;
}

.about-title {
  position: static;
  max-width: 390px;
  margin: 0;
  color: var(--about-ink);
  font-size: 2.75rem;
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: 0;
  text-wrap: balance;
}

.about-title::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 18px;
  background: var(--about-accent);
}

.about-prose {
  max-width: 720px;
  margin: 0;
  color: var(--about-soft);
  font-size: 1.06rem;
  line-height: 1.84;
}

.about-prose p {
  margin: 0;
}

.about-prose p + p {
  margin-top: 18px;
}

.about-final .about-prose {
  max-width: 720px;
}

.about-actions {
  grid-column: 2;
  margin: 34px 0 0;
}

.about-page .primary-link {
  border-color: var(--about-accent);
  background: var(--about-accent);
  color: #fff;
  box-shadow: none;
}

.about-page .primary-link:hover {
  background: var(--about-ink);
}

.about-page .link-arrow {
  transition: transform .24s cubic-bezier(.16, 1, .3, 1);
}

.about-page .primary-link:hover .link-arrow {
  transform: translateX(3px);
}

.contact-dialog {
  width: min(400px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(20, 20, 19, .18);
  border-radius: 8px;
  background: var(--about-bg);
  color: var(--about-ink);
  box-shadow: 0 28px 90px rgba(12, 15, 14, .30);
}

.contact-dialog::backdrop {
  background: rgba(7, 12, 10, .68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-dialog-inner {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 34px 34px 32px;
  text-align: center;
}

.contact-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--about-soft);
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.contact-dialog-close:hover {
  background: rgba(20, 20, 19, .07);
  color: var(--about-ink);
}

.contact-dialog-kicker {
  margin: 0 0 6px;
  color: var(--about-accent);
  font-size: .78rem;
  line-height: 1.4;
  font-weight: 700;
}

.contact-dialog-title {
  margin: 0;
  color: var(--about-ink);
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 760;
}

.contact-dialog-qr {
  position: relative;
  width: min(272px, 100%);
  aspect-ratio: 1;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 19, .12);
  background: #fff;
}

.contact-dialog-email {
  margin-top: 20px;
  color: var(--about-soft);
  font-size: .9rem;
  line-height: 1.5;
  text-underline-offset: 4px;
  text-decoration-color: rgba(20, 20, 19, .26);
}

.contact-dialog-email:hover {
  color: var(--about-accent);
  text-decoration-color: currentColor;
}

.about-footer {
  position: relative;
  z-index: 5;
  padding: 40px clamp(38px, 7vw, 112px) 44px;
  border-top: 1px solid var(--about-line);
  background: rgba(250, 249, 245, .78);
}

.about-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .66fr);
  gap: clamp(52px, 7vw, 96px);
  align-items: start;
}

.about-footer .footer-brand-name,
.about-footer .footer-heading {
  color: var(--about-ink);
}

.about-footer .footer-tagline,
.about-footer .footer-email,
.about-footer .footer-legal {
  color: var(--about-muted);
}

.about-footer .footer-field-label {
  color: rgba(20, 20, 19, .48);
}

.about-footer .footer-legal {
  border-top-color: var(--about-line);
}

.about-footer .footer-link:hover {
  color: var(--about-ink);
}

.about-footer .footer-email-link:hover {
  color: var(--about-ink);
}

.about-footer .footer-qr {
  border-color: rgba(20, 20, 19, .20);
  background: #fff;
}

.about-footer .footer-qr-caption {
  color: rgba(20, 20, 19, .56);
}

.about-endnote {
  margin-top: 48px;
  color: var(--about-muted);
  font-size: .78rem;
  line-height: 1.6;
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .85s cubic-bezier(.16, 1, .3, 1),
    transform .85s cubic-bezier(.16, 1, .3, 1);
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero-title {
    font-size: 5rem;
  }

  .mission-title,
  .mission-statement {
    font-size: 2.55rem;
  }

  .about-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 900px) {
  .hero-title {
    font-size: 4.1rem;
  }

  .mission-layout {
    max-width: 760px;
    gap: 30px;
  }

  .mission-title,
  .mission-statement {
    font-size: 2.4rem;
    line-height: 1.26;
  }

  .mission-statement {
    padding: 0;
    border: 0;
  }

  .closing-intro {
    gap: 18px;
  }

  .closing-action {
    padding: 0;
    border: 0;
  }

  .closing-copy {
    font-size: 1.1rem;
  }

  .closing-footer {
    gap: 30px;
  }

  .about-footer-inner {
    gap: 30px;
  }

  .footer-meta {
    justify-items: start;
  }

  .footer-contact-block,
  .footer-legal {
    width: min(100%, 420px);
  }

  .about-title {
    position: static;
    font-size: 2.55rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-actions {
    grid-column: 1;
  }

  .about-prose {
    margin-top: 28px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 66px;
  }

  .home-root {
    scroll-snap-type: y proximity;
  }

  .site-header {
    padding: 0 18px;
  }

  .brand-lockup {
    font-size: 1.08rem;
  }

  .about-page-label {
    font-size: .92rem;
  }

  .home-section {
    min-height: 100dvh;
    padding: calc(var(--header-height) + 44px) 20px 48px;
  }

  .hero-title {
    font-size: 3.2rem;
    line-height: 1.1;
  }

  .mission-layout {
    gap: 24px;
  }

  .mission-title,
  .mission-statement {
    font-size: 2rem;
    line-height: 1.28;
  }

  .mission-statement {
    padding: 0;
  }

  .closing-section {
    min-height: 100dvh;
    padding-top: calc(var(--header-height) + 34px);
    padding-bottom: 20px;
  }

  .closing-copy {
    font-size: 1.04rem;
    line-height: 1.68;
  }

  .closing-action .primary-link {
    margin-top: 20px;
  }

  .primary-link {
    min-height: 44px;
    margin-top: 20px;
  }

  .closing-footer {
    grid-template-columns: 1fr;
    margin-top: 26px;
    padding-top: 18px;
    gap: 26px;
  }

  .about-footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand-name {
    font-size: 1.15rem;
  }

  .footer-tagline {
    margin-top: 10px;
    font-size: .9rem;
  }

  .footer-contact-row {
    gap: 16px;
  }

  .footer-qr-list {
    grid-template-columns: repeat(2, 96px);
    gap: 16px;
  }

  .footer-qr,
  .footer-qr-item {
    width: 96px;
  }

  .about-section {
    min-height: 0;
    padding: 50px 20px 54px;
  }

  .about-final {
    min-height: 0;
    padding-bottom: 68px;
  }

  .about-main::before {
    display: none;
  }

  .about-page .painting-underlay {
    background-position: center top 66px;
    background-size: auto 720px;
    opacity: .045;
  }

  .about-page .background-scrim {
    background-size: 48px 48px;
  }

  .about-title {
    font-size: 2.35rem;
    line-height: 1.14;
  }

  .about-title::after {
    width: 34px;
    margin-top: 16px;
  }

  .about-prose {
    font-size: 1rem;
    line-height: 1.82;
  }

  .about-actions {
    margin-top: 28px;
  }

  .about-footer {
    padding: 30px 20px 36px;
  }

  .contact-dialog-inner {
    padding: 32px 24px 26px;
  }

  .contact-dialog-qr {
    width: min(260px, 100%);
  }
}

@media (max-width: 460px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .mission-title,
  .mission-statement {
    font-size: 1.78rem;
  }

  .closing-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .footer-contact-block,
  .footer-legal {
    width: 100%;
  }

  .about-title {
    font-size: 2.2rem;
  }
}

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

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

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }
}
