/* SpiralWise v2 — greyscale / sumi palette */
:root {
  --ink: #0d0d0d;
  /* Neutral greyscale only (no warm/beige shift) */
  --paper: #e6e6e6;
  --mist: #9e9e9e;
  --fog: #6b6b6b;
  --wash: rgba(13, 13, 13, 0.06);
  --edge: rgba(13, 13, 13, 0.12);
  --sidebar-w-cap: 18rem;
  --sidebar-w: min(var(--sidebar-w-cap), 100%);
  --font-serif: "Noto Serif", "Georgia", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", "Roboto", sans-serif;
  --font-site-title: "Cormorant SC", "Noto Serif", "Georgia", serif;
  --font-bagua-menu: var(--font-site-title);
  --font-page: "Crimson Pro", "Noto Serif", "Georgia", serif;
  --font-contact: "Yuji Syuku", "Noto Serif", "Georgia", serif;
  --site-max: 72rem;
  --site-gutter: 1rem;
  /* Article column width (main reading measure); widens on large screens via media queries. */
  --page-text-max: 42rem;
  /* Bagua menu: 1.5× prior size; shell gutter matches nav width */
  --bagua-size: 16.875rem;
  --bagua-sector-size: 3.5rem;
  --bagua-taijitu-img-width: 9rem;
  --bagua-tri-size: 1.5rem;
  --bagua-lbl-size: 0.88rem;
  --bagua-shell-pad: calc(var(--bagua-size) + 1.875rem);
  /* Inner white octagon scale (same centre); lower = thicker black ring. Applied via SVG transform attribute in app.js. */
  --bagua-oct-inner-scale: 0.935;
  /* Side background art: max height; gap above/below shows tiled line (same as centre). */
  --site-bg-line-image: url("../images/main-page-background_line.jpg");
  --site-bg-side-art-max-height: min(72vh, 42rem);
  /* Contact card sticky bounds (desktop sidebar); set fully at 1200px+. */
  --contact-sticky-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  --contact-sticky-top: max(1rem, env(safe-area-inset-top, 0px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Hash links to #contact can finish with the full form in view above the fold bottom. */
  scroll-padding-bottom: min(12rem, 28dvh);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

/* Fixed viewport-height strip: temple (left, natural width) | line (stretches) | dragon (right, natural width). */
.site-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  pointer-events: none;
}

.site-bg-side {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.site-bg-side--temple {
  justify-content: flex-start;
  align-items: flex-end;
}

.site-bg-side--dragon {
  justify-content: flex-end;
  align-items: flex-start;
}

.site-bg-side-tile {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--site-bg-line-image);
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
}

.site-bg-temple,
.site-bg-dragon {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-height: var(--site-bg-side-art-max-height);
  object-fit: contain;
}

.site-bg-temple {
  object-position: left bottom;
}

.site-bg-dragon {
  object-position: right top;
}

.site-bg-line {
  min-width: 0;
  height: 100%;
  background-image: var(--site-bg-line-image);
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
}

a {
  color: #3a3a3a;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #000;
}

.site-banner {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1.15rem var(--site-gutter) 1rem;
}

.site-banner-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 0.25rem;
  /* Title stays painted on top of the bagua, but must not steal clicks/hover in the overlap (children default to pointer-events: auto). */
  pointer-events: none;
}

/* When bagua is absolute (≥640px), nudge title right as the viewport tightens so it clears the wheel; 0 when wide. */
@media (min-width: 640px) {
  .site-banner-copy {
    padding-right: var(--site-gutter);
    padding-left: max(
      0px,
      min(
        calc(var(--bagua-shell-pad) + 1rem),
        calc(0.4 * (min(100vw, var(--site-max)) + 2 * var(--bagua-shell-pad) - 100vw))
      )
    );
  }
}

.site-banner-copy * {
  pointer-events: none;
}

.site-banner-copy .site-title {
  margin: 0;
  font-family: var(--font-site-title);
  font-weight: 600;
  font-size: clamp(2.35rem, 3.6vw, 3.5rem);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.site-banner-copy p:not(.site-title) {
  margin: 0.35rem 0 0;
  font-family: var(--font-site-title);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.05vw, 1.28rem);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.shell {
  position: relative;
  /* Below .site-banner (z-index 1): bagua is absolute and extends past the header’s in-flow box, so the shell must not stack above it. */
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 1.25rem var(--site-gutter) 2.5rem;
}

@media (min-width: 640px) {
  .shell {
    padding-top: 3.6rem;
  }
}

.shell-main {
  flex: 1 1 20rem;
  min-width: 0;
  padding-right: 0;
}

@media (min-width: 640px) {
  .shell-main {
    padding-left: var(--bagua-shell-pad);
  }
}

.shell-aside {
  /* Below 1200px: full-width block after main. From 1200px: second column of .shell grid (sticky card). */
  width: 100%;
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  :root {
    /* Clear site title band (banner padding + h1 + tagline); card is in the right column. */
    --contact-sticky-top: calc(
      1.15rem + 1rem + clamp(2.35rem, 3.6vw, 3.5rem) + 0.35rem + clamp(1.05rem, 2.05vw, 1.28rem) + 0.75rem
    );
    /* Viewport bottom padding for sticky contact card. */
    --contact-sticky-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    /* Aside fills row: shell starts below banner in-flow box + shell padding-top. */
    --contact-shell-offset: calc(1.15rem + 5.5rem + 3.25rem + 3.6rem);
    --contact-aside-min-height: calc(
      100dvh - var(--contact-shell-offset) - var(--contact-sticky-bottom) - 2.5rem
    );
  }

  .shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--sidebar-w-cap));
    gap: 1.5rem;
    align-items: stretch;
  }

  .shell-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: auto;
    flex: unset;
    padding-right: 0;
  }

  .shell-aside {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-self: stretch;
    width: auto;
    min-width: 0;
    min-height: var(--contact-aside-min-height);
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    height: auto;
    overflow: visible;
    flex: unset;
  }

  /*
   * Sticky bottom + top: card sits on the viewport bottom when there is room;
   * never scrolls inside the card; document scrollbar reaches a tall form.
   * top keeps the card below the header title band while sticking.
   */
  .shell-aside .contact-card {
    position: sticky;
    bottom: var(--contact-sticky-bottom);
    top: var(--contact-sticky-top);
    width: 100%;
    max-width: none;
    margin-top: auto;
    overflow: visible;
    z-index: 2;
    box-sizing: border-box;
  }
}

@media (max-width: 1199.98px) {
  .shell {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .shell-main {
    flex: 0 1 auto;
    width: 100%;
  }

  .shell-aside {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-top: 2rem;
    padding-top: 1.5rem;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid var(--edge);
    position: relative;
    z-index: 1;
  }

  .shell-aside .contact-card {
    width: 100%;
    max-width: 25rem;
  }
}

.content-stage {
  position: relative;
  min-width: 0;
  margin-top: 0;
}

.page-panel {
  max-width: var(--page-text-max);
  padding: 0.25rem 0 1.5rem;
  font-family: var(--font-page);
}

/* `hidden` must win over any display on .page-panel (e.g. flow-root); otherwise all articles can stay visible. */
.page-panel[hidden] {
  display: none !important;
}

.page-panel:not([hidden]) {
  display: flow-root;
}

/* Hash panel change: asymmetric fade + micro slide (leave 0.44s, enter 0.84s). */
.page-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.84s ease-out, transform 0.84s ease-out;
}

.page-panel.is-active.page-panel--entering {
  opacity: 0;
  transform: translateY(6px);
  transition: none;
}

.page-panel.page-panel--leaving {
  display: flow-root !important;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  max-width: var(--page-text-max);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.44s ease-in, transform 0.44s ease-in;
}

/* Wide desktop: shell cap, bagua, reading width, and contact column scale together. */
@media (min-width: 1200px) {
  :root {
    --site-max: 88rem;
    --bagua-size: 20rem;
    --bagua-sector-size: 4.05rem;
    --bagua-taijitu-img-width: 10.5rem;
    --bagua-tri-size: 1.62rem;
    --bagua-lbl-size: 0.94rem;
    --sidebar-w-cap: 25rem;
    --page-text-max: 50rem;
  }
}

@media (min-width: 1536px) {
  :root {
    --site-max: 100rem;
    --bagua-size: 22.5rem;
    --bagua-sector-size: 4.45rem;
    --bagua-taijitu-img-width: 12rem;
    --bagua-tri-size: 1.72rem;
    --bagua-lbl-size: 1rem;
    --sidebar-w-cap: 28rem;
    --page-text-max: 56rem;
  }
}

.page-panel p {
  margin: 0 0 0.85em;
}

.page-panel sup {
  font-size: 0.6em;
  line-height: 0;
  vertical-align: super;
}

.page-panel > h1 {
  font-family: inherit;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
  text-align: end;
}

.page-panel h2 {
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.35rem 0 0.55rem;
  color: var(--ink);
}

.page-panel h3 {
  font-family: inherit;
  font-size: 1.0rem;
  font-weight: 600;
  margin: 1.35rem 0 0.55rem;
  color: var(--ink);
}

.page-panel h2:first-of-type {
  margin-top: 0.35rem;
}

.page-panel h2[id],
.page-panel h3[id] {
  scroll-margin-top: 1rem;
}

.page-panel .page-toc {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--mist);
}

.page-panel .page-toc-heading {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: var(--fog);
}

.page-panel .page-toc ol {
  margin: 0;
  padding-left: 1.35rem;
}

.page-panel .page-toc li {
  margin: 0.2rem 0;
}

.page-panel .page-toc ol ol {
  margin: 0.15rem 0 0.35rem;
  padding-left: 1.15rem;
  font-size: 0.92em;
}
.page-panel ul {
  margin: 0 0 0.85em;
  padding-left: 1.35rem;
}

.page-panel hr {
  border: none;
  border-top: 1px solid var(--edge);
  margin: 1.25rem 0;
}

.page-panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 0.95rem;
}

.page-panel th,
.page-panel td {
  border: 1px solid var(--edge);
  padding: 0.5rem 0.6rem;
  vertical-align: top;
  text-align: left;
}

.page-panel th {
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

.page-panel .img-float-right {
  float: right;
  max-width: min(12.5rem, 46%);
  height: auto;
  margin: 0 0 0.75rem 1rem;
}

.page-panel .pose-slideshow {
  width: min(12.5rem, 46%);
  height: 17.5rem;
  margin: 0 0 0.75rem 1rem;
  padding: 0;
  border: 0;
}

.page-panel .pose-slideshow__track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-panel .pose-slideshow__slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  float: none;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.page-panel .pose-slideshow__slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-panel .pose-slideshow__slide:not(.is-active) {
    display: none;
  }

  .page-panel .pose-slideshow__slide {
    transition: none;
  }
}

.page-panel .img-float-left {
  float: left;
  max-width: min(12.5rem, 46%);
  height: auto;
  margin: 0 1rem 0.75rem 0;
}

.page-panel .img-block {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.75rem 0;
}

.page-panel figure {
  margin: 0.75rem 0 1rem;
  max-width: 100%;
}

.page-panel figure.float-right {
  float: right;
  margin: 0 0 0.75rem 1rem;
  max-width: min(15rem, 48%);
}

.page-panel figure.float-left {
  float: left;
  margin: 0 1rem 0.75rem 0;
  max-width: min(15rem, 48%);
}

/* Decorative calligraphy on Howard page — keep small (especially when floats stack on narrow viewports) */
.page-panel figure.figure-howard-calligraphy {
  max-width: 8rem;
}

.page-panel figure.figure-howard-calligraphy img {
  width: auto;
  max-width: 100%;
  max-height: 8rem;
  margin-inline: auto;
}

.page-panel figure img {
  width: 100%;
  height: auto;
  display: block;
}

.page-panel figcaption {
  font-size: 0.8rem;
  color: var(--fog);
  margin-top: 0.35rem;
  line-height: 1.35;
  text-align: center;
}

.page-panel .embed-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
}

.page-panel .embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-panel .book-thumb {
  float: left;
  width: 5.5rem;
  height: auto;
  margin: 0 0.65rem 0.5rem 0;
}

.page-panel .media-row {
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.page-panel dl.faq-list {
  margin: 0;
}

.page-panel dl.faq-list dt {
  font-weight: 700;
  margin: 1.1rem 0 0.3rem;
}

.page-panel dl.faq-list dd {
  margin: 0;
}

@media (max-width: 480px) {
  .page-panel .img-float-right,
  .page-panel .img-float-left,
  .page-panel .pose-slideshow,
  .page-panel figure.float-right,
  .page-panel figure.float-left {
    float: none;
    display: block;
    margin: 0.75rem auto;
    max-width: 100%;
  }

  .page-panel .pose-slideshow {
    width: min(14rem, 100%);
    height: 17.5rem;
  }

  .page-panel figure.figure-howard-calligraphy {
    max-width: 3.75rem;
  }

  .page-panel figure.figure-howard-calligraphy img {
    max-height: 3.5rem;
  }
}

/* Bagua in header: over background (z1), under title text (copy z2); aligns with shell column */
.bagua-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 1.35rem auto 0;
  width: fit-content;
  overflow: visible;
}

@media (min-width: 640px) {
  .site-banner {
    min-height: 5.5rem;
    padding-bottom: 3.25rem;
  }

  .bagua-wrap {
    position: absolute;
    top: 2.1rem;
    left: max(var(--site-gutter), calc((100vw - var(--site-max)) / 2 + var(--site-gutter)));
    margin: 0;
    align-items: flex-start;
  }
}

.bagua-nav {
  position: relative;
  width: var(--bagua-size);
  max-width: min(var(--bagua-size), 55vw);
  aspect-ratio: 1;
  margin: 0;
  flex-shrink: 0;
  overflow: visible;
}

/* Phones: 55vw shrinks the octagon while sector buttons stay ~3.5rem → overlap with taijitu / ring.
   Use nearly full width (capped by --bagua-size) and scale sectors + centre from nav width. */
@media (max-width: 639.98px) {
  .bagua-nav {
    --bagua-mobile-nav-w: min(var(--bagua-size), calc(100vw - 2 * var(--site-gutter)));
    width: var(--bagua-mobile-nav-w);
    max-width: var(--bagua-mobile-nav-w);
  }

  .bagua-center .taijitu-img {
    width: min(var(--bagua-taijitu-img-width), 38%);
  }

  .bagua-sector {
    width: max(2.75rem, min(var(--bagua-sector-size), calc(var(--bagua-mobile-nav-w) * 0.19)));
    height: max(2.75rem, min(var(--bagua-sector-size), calc(var(--bagua-mobile-nav-w) * 0.19)));
  }

  .bagua-sector .tri {
    font-size: min(var(--bagua-tri-size), calc(var(--bagua-mobile-nav-w) * 0.056));
  }

  .bagua-sector .lbl {
    font-size: min(var(--bagua-lbl-size), calc(var(--bagua-mobile-nav-w) * 0.034));
    max-width: min(4.1rem, 82%);
  }
}

/* Flat-top regular octagon: black outer + white inner (see index.html SVG). Inner scale: --bagua-oct-inner-scale, applied in app.js as SVG transform. */
.bagua-circle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.bagua-oct-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

@keyframes bagua-taijitu-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* Taijitu centre — PNG sumi art, no inner ring */
.bagua-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  transform: translate(-50%, -50%);
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.bagua-center .taijitu-img {
  display: block;
  width: min(var(--bagua-taijitu-img-width), 56%);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: grayscale(1);
  transform-origin: center;
  animation: bagua-taijitu-rotate 180s linear infinite;
}

.bagua-sector {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: var(--bagua-sector-size);
  height: var(--bagua-sector-size);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  font-family: var(--font-bagua-menu);
  font-weight: 700;
  line-height: 1.05;
  box-shadow: none;
  overflow: visible;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.bagua-sector:hover,
.bagua-sector:focus-visible {
  background: #ececec;
  transform: translate(-50%, -50%) scale(1.06);
  outline: none;
  box-shadow: none;
}

.bagua-sector:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.bagua-sector[aria-current="page"] {
  background: var(--ink);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.bagua-sector[aria-current="page"]:hover,
.bagua-sector[aria-current="page"]:focus-visible {
  background: #1a1a1a;
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.bagua-sector[aria-current="page"]:focus-visible {
  outline-color: #ffffff;
}

.bagua-sector .tri {
  font-size: var(--bagua-tri-size);
  line-height: 1;
}

.bagua-sector .lbl {
  font-size: var(--bagua-lbl-size);
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: 0.02em;
  text-transform: none;
  max-width: 4.1rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contact sidebar — no overflow on the card; page scroll only (see skill). */
.contact-card {
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.25rem;
  background: linear-gradient(165deg, #f4f4f4 0%, #dcdcdc 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.08),
    0 14px 40px rgba(0, 0, 0, 0.12);
  font-family: var(--font-contact);
  overflow: visible;
}

.contact-card h2 {
  margin: 0 0 0.65rem;
  font-family: inherit;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 400;
  text-align: end;
}

.contact-card label {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--fog);
  margin-bottom: 0.2rem;
  text-align: end;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid #8c8c8c;
  border-radius: 2px;
  font: inherit;
  background: #fafafa;
  color: var(--ink);
}

.contact-card textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.contact-card .g-recaptcha {
  display: flex;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.contact-card button[type="submit"] {
  width: 100%;
  padding: 0.55rem 1rem;
  font-weight: 400;
  font-size: 1.05rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  border-radius: 2px;
}

.contact-card button[type="submit"]:hover {
  background: #2a2a2a;
}

.contact-form-error {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: #7a1a1a;
  line-height: 1.35;
}

.contact-form-error[hidden] {
  display: none !important;
}

.contact-card button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.88;
}

.contact-success-dialog {
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: linear-gradient(165deg, #f4f4f4 0%, #dcdcdc 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  font-family: var(--font-contact);
  color: var(--ink);
}

.contact-success-dialog::backdrop {
  background: rgba(13, 13, 13, 0.45);
}

.contact-success-dialog__inner {
  padding: 1.25rem 1.35rem 1.35rem;
  text-align: center;
}

.contact-success-dialog__img {
  width: min(100%, 14rem);
  height: auto;
  margin: 0 auto 0.75rem;
  display: block;
  border-radius: clamp(1.5rem, 12vmin, 3.25rem);
}

.contact-success-dialog__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-success-dialog__text {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fog);
}

.contact-success-dialog__close {
  padding: 0.5rem 1.25rem;
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  cursor: pointer;
}

.contact-success-dialog__close:hover {
  background: #2a2a2a;
}

.contact-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--fog);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .bagua-center .taijitu-img {
    animation: none;
  }

  .bagua-sector {
    transition-duration: 0.01ms;
  }

  .page-panel.is-active,
  .page-panel.page-panel--leaving {
    transition-duration: 0.01ms !important;
  }
}
