/* Commercial upgrade layer: scoped additions for the 90 PROJECT homepage. */
.hero {
  --hero-depth-x: 0px;
  --hero-depth-y: 0px;
  overflow: hidden;
}

.hero,
.hero *,
.hero::before,
.hero::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.hero::before,
.hero::after {
  display: none !important;
  content: none !important;
}

.hero-media picture,
.hero-media picture::before,
.hero-media picture::after {
  animation: none !important;
}

.hero-media picture::before,
.hero-media picture::after {
  display: none !important;
}

.hero-media picture,
.hero-media img {
  transition: opacity .42s ease, filter .42s ease;
}

.hero-media picture {
  transform: none !important;
}

.hero-media img {
  transform: none !important;
  filter: none !important;
}

.hero-overlay {
  display: none !important;
  background: none !important;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  display: block;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 6, 4, .74));
  z-index: 2;
}

.hero-experience {
  display: none !important;
}

.growth-spotlight-hidden {
  display: none !important;
}

.nav-member-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(239, 207, 154, .72);
  border-radius: 999px;
  color: #17120d;
  background: linear-gradient(135deg, #ffdf9a, #d6a85c);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

.nav-member-quick:hover,
.nav-member-quick:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(214, 168, 92, .2);
}

.growth-spotlight-final {
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
  border-inline: 0;
  border-color: rgba(214, 168, 92, .28);
  background:
    linear-gradient(120deg, rgba(9, 7, 5, .98), rgba(37, 22, 10, .96) 58%, rgba(8, 7, 5, .98)),
    url("../assets/images/reference-series/contact-table.png") center / cover;
  box-shadow: none;
}

.growth-spotlight-final .growth-spotlight-copy {
  max-width: 680px;
}

.growth-spotlight-final .growth-spotlight-steps div {
  background: rgba(255, 248, 232, .055);
  backdrop-filter: blur(7px);
}

.weekly-reference-card {
  overflow: hidden;
}

.weekly-reference-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  overflow: visible;
  padding: 0;
}

.weekly-reference-grid article {
  display: flex;
  min-height: 100%;
  padding: 14px;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border: 1px solid rgba(150, 101, 40, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .64);
  box-shadow: 0 14px 34px rgba(45, 31, 18, .06);
}

.weekly-reference-grid picture {
  order: -1;
  margin: 0 0 11px !important;
  aspect-ratio: 1.55 / 1 !important;
  border-radius: 7px !important;
}

.weekly-reference-grid strong {
  margin-bottom: 6px !important;
  color: #9b6a36;
  font-size: 15px !important;
  line-height: 1.2;
}

.weekly-reference-grid span {
  color: #2e261f;
  font-size: 15px !important;
  font-weight: 800;
  line-height: 1.36 !important;
  overflow-wrap: anywhere;
}

body[data-language="en"] .weekly-reference-grid span {
  font-size: 13px !important;
  line-height: 1.32 !important;
}

@media (max-width: 1180px) {
  .weekly-reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .nav-member-quick {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .weekly-reference-card {
    padding: 20px 18px 16px !important;
  }

  .weekly-reference-grid {
    grid-template-columns: 1fr !important;
    overflow-x: visible;
    padding: 0;
    gap: 10px !important;
  }

  .weekly-reference-grid article {
    display: grid !important;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 112px;
    padding: 9px !important;
  }

  .weekly-reference-grid picture {
    grid-row: span 4;
    margin: 0 !important;
    height: 94px;
    aspect-ratio: auto !important;
  }

  .weekly-reference-grid strong {
    margin: 0 0 3px !important;
    font-size: 14px !important;
  }

  .weekly-reference-grid span,
  body[data-language="en"] .weekly-reference-grid span {
    font-size: 13px !important;
    line-height: 1.34 !important;
  }
}

.hero-experience-copy {
  max-width: 440px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .52);
}

.hero-experience-kicker,
.brand-story-copy span {
  display: block;
  color: #f0c779;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-experience-copy h2 {
  margin: 10px 0 8px;
  color: #fff4dc;
  font-size: clamp(30px, 4.1vw, 58px);
  line-height: .98;
  max-width: 10ch;
}

.hero-experience-copy p {
  margin: 0;
  color: rgba(255, 244, 222, .82);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.62;
}

.hero-experience-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.hero-experience-highlights span {
  border: 1px solid rgba(240, 199, 121, .38);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(8, 7, 5, .42);
  color: #ffe9bf;
  font-size: 12px;
  font-weight: 800;
}

.hero-experience-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 17px;
  padding: 0 18px;
  border: 1px solid rgba(247, 213, 146, .56);
  border-radius: 999px;
  background: linear-gradient(180deg, #e5b965, #956326);
  color: #130d07;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
}

.hero-service-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(237, 196, 122, .22);
  background: rgba(11, 10, 8, .7);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
}

.hero-service-tabs button {
  min-height: 82px;
  border: 0;
  border-right: 1px solid rgba(237, 196, 122, .16);
  border-radius: 0;
  background: transparent;
  color: #d7bc84;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}

.hero-service-tabs button:last-child {
  border-right: 0;
}

.hero-service-tabs button i,
.hero-service-tabs button span {
  display: block;
}

.hero-service-tabs button i {
  margin-bottom: 7px;
  font-size: 25px;
}

.hero-service-tabs button span {
  font-size: 13px;
  line-height: 1.2;
}

.hero-service-tabs button:is(:hover, .is-active) {
  background:
    radial-gradient(circle at top, rgba(246, 204, 128, .22), transparent 58%),
    rgba(216, 162, 76, .1);
  color: #fff1ce;
}

.hero-service-tabs button:focus-visible,
.hero-experience-cta:focus-visible {
  outline: 2px solid #f5c979;
  outline-offset: 3px;
}

.brand-story-transition {
  padding: clamp(38px, 6vw, 74px) 0;
  background:
    linear-gradient(180deg, #fffaf3, #f1e7d8 58%, #15100c 58%, #080706);
}

.experience-heading {
  margin-top: clamp(20px, 4vw, 42px);
  margin-bottom: 16px;
  color: #17100b;
}

.experience-heading span {
  display: block;
  color: #a16d2e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.experience-heading h2 {
  margin: 8px 0 7px;
  color: #120d09;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.experience-heading p {
  max-width: 720px;
  margin: 0;
  color: #6f6256;
  font-size: 15px;
  line-height: 1.7;
}

.brand-story-grid {
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
}

.brand-story-copy {
  color: #1d1711;
  align-self: start;
  padding-top: clamp(10px, 2.2vw, 26px);
}

.brand-story-copy h2 {
  max-width: 11.5ch;
  margin: 12px 0 16px;
  color: #17100b;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: clamp(34px, 3.35vw, 48px);
  line-height: 1.13;
  letter-spacing: 0;
  text-wrap: balance;
}

.brand-story-copy p {
  max-width: 560px;
  margin: 0;
  color: #705f51;
  font-size: 17px;
  line-height: 1.78;
}

.brand-story-collage {
  position: relative;
  min-height: clamp(300px, 42vw, 520px);
  overflow: hidden;
  border: 1px solid rgba(237, 196, 122, .28);
  background: #090806;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .25);
  isolation: isolate;
}

.brand-story-collage::before {
  content: "";
  position: absolute;
  inset: auto 22px 22px;
  z-index: 3;
  height: 3px;
  border: 0;
  background: linear-gradient(90deg, #d8a24c 0 33%, rgba(255, 255, 255, .22) 33% 66%, rgba(255, 255, 255, .22) 66%);
  box-shadow: none;
}

.brand-story-collage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  opacity: 1;
  transform: none;
  box-shadow: none;
}

@media (max-width: 980px) {
  .hero-experience {
    inset: auto 18px 18px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-experience-copy {
    max-width: 560px;
  }

  .hero-experience-copy h2 {
    max-width: 13ch;
    font-size: clamp(28px, 7vw, 44px);
  }

  .hero-service-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-service-tabs button {
    min-height: 68px;
  }

  .brand-story-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .brand-story-copy {
    padding-top: 0;
  }

  .brand-story-copy h2 {
    max-width: 16ch;
    font-size: clamp(32px, 6vw, 42px);
  }
}

@media (max-width: 640px) {
  .nav-member-quick {
    position: fixed;
    top: clamp(29px, 7vw, 36px);
    right: clamp(166px, 38vw, 194px);
    z-index: 1005;
    width: clamp(72px, 17vw, 88px);
    min-height: 32px;
    padding: 5px 8px;
    gap: 4px;
    border-color: rgba(255, 223, 154, .68);
    color: #17120d;
    background: linear-gradient(135deg, #ffdf9a, #d8aa60);
    font-size: 0;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  }

  .nav-member-quick i {
    font-size: 15px;
  }

  .nav-member-quick span {
    font-size: 0;
  }

  .nav-member-quick span::after {
    content: "\4F1A\5458";
    font-size: 12px;
    font-weight: 950;
  }

  .weekly-reference-grid {
    grid-template-columns: 1fr !important;
  }

  .weekly-reference-grid article {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    min-height: 100px;
  }

  .weekly-reference-grid picture {
    height: 84px;
  }

  .weekly-reference-grid span,
  body[data-language="en"] .weekly-reference-grid span {
    font-size: 12px !important;
  }

  .hero {
    min-height: 0;
    height: auto;
    aspect-ratio: 1672 / 941;
  }

  .hero-media img {
    object-position: center center;
  }

  .brand-story-transition {
    padding-block: 34px;
    background:
      linear-gradient(180deg, #fffaf3, #f1e7d8 46%, #15100c 46%, #080706);
  }

  .brand-story-copy h2 {
    max-width: 12ch;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.16;
  }

  .brand-story-copy p {
    font-size: 15px;
    line-height: 1.72;
  }

  .brand-story-collage {
    min-height: 300px;
  }

  .brand-story-collage video {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-story-collage video {
    opacity: 1;
    transform: none;
  }

  .hero-media picture {
    transform: scale(1.02);
  }
}

/* Final polish: clearer weekly menu, reliable admin previews, tidy mobile header. */
.weekly-reference-card {
  padding: 30px !important;
}

.weekly-reference-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)) !important;
  grid-auto-flow: row;
  gap: 18px !important;
  margin-top: 18px !important;
  padding: 4px !important;
  overflow: visible !important;
}

.weekly-reference-grid article {
  display: flex !important;
  min-width: 0;
  min-height: 0;
  padding: 14px 14px 16px !important;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border: 1px solid rgba(150, 101, 40, .2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 250, 243, .66));
  box-shadow: 0 16px 34px rgba(45, 31, 18, .08);
}

.weekly-reference-grid picture {
  order: -1;
  display: block;
  width: 100%;
  height: auto !important;
  margin: 0 0 12px !important;
  aspect-ratio: 1.42 / 1 !important;
  overflow: hidden;
  border-radius: 12px !important;
  background: #eadfd1;
}

.weekly-reference-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.weekly-reference-grid strong {
  margin-bottom: 7px !important;
  color: #94612e;
  font-size: 17px !important;
  line-height: 1.15;
}

.weekly-reference-grid span {
  color: #231b14;
  font-size: 16px !important;
  font-weight: 900;
  line-height: 1.36 !important;
  overflow-wrap: anywhere;
}

body[data-language="en"] .weekly-reference-grid span {
  font-size: 14px !important;
  line-height: 1.34 !important;
}

.admin-weekly-row {
  grid-template-columns: 120px minmax(210px, .85fr) minmax(190px, .8fr) minmax(220px, 1fr) minmax(220px, 1fr);
  grid-template-areas:
    "day preset preview zh en"
    "image image preview alt alt";
  align-items: stretch;
}

.admin-weekly-day {
  grid-area: day;
}

.admin-weekly-preset {
  grid-area: preset;
}

.admin-weekly-preview {
  grid-area: preview;
}

.admin-weekly-zh {
  grid-area: zh;
}

.admin-weekly-en {
  grid-area: en;
}

.admin-weekly-image {
  grid-area: image;
}

.admin-weekly-alt {
  grid-area: alt;
}

.admin-weekly-preview {
  display: grid;
  gap: 8px;
  align-self: stretch;
  min-height: 112px;
  padding: 9px;
  border: 1px solid rgba(255, 223, 154, .24);
  border-radius: 14px;
  background: rgba(255, 247, 232, .06);
}

.admin-weekly-preview img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(255, 247, 232, .12);
}

.admin-weekly-preview span {
  color: #ffdf9a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.admin-weekly-preview.is-empty {
  opacity: .74;
}

.admin-weekly-row [readonly] {
  cursor: not-allowed;
  background: #f8ecd9;
}

@media (max-width: 980px) {
  .weekly-reference-card {
    padding: 22px 18px 18px !important;
  }

  .weekly-reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .weekly-reference-grid article {
    display: flex !important;
    min-width: 0;
    min-height: 0;
    padding: 13px !important;
  }

  .weekly-reference-grid picture {
    height: auto !important;
    aspect-ratio: 1.38 / 1 !important;
  }

  .admin-weekly-row {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .admin-weekly-day,
  .admin-weekly-preset,
  .admin-weekly-preview,
  .admin-weekly-zh,
  .admin-weekly-en,
  .admin-weekly-image,
  .admin-weekly-alt {
    grid-area: auto;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 6px;
    align-items: center;
    min-height: 92px;
    padding: 14px;
  }

  body.is-scrolled .nav-shell {
    min-height: 82px;
  }

  .brand-lockup {
    min-width: 0;
    gap: 7px;
  }

  .brand-lockup img {
    width: 40px;
    height: 40px;
  }

  .brand-lockup strong {
    font-size: 15px;
    letter-spacing: 1px;
  }

  .brand-lockup small {
    font-size: 10px;
    letter-spacing: 1.3px;
  }

  .language-switch {
    position: static !important;
    inset: auto !important;
    grid-column: 2;
    grid-row: 1;
    order: 0;
    margin-left: 0;
  }

  .language-switch button {
    padding: 6px 7px;
    font-size: 11px;
  }

  .nav-member-quick {
    position: static !important;
    inset: auto !important;
    grid-column: 3;
    grid-row: 1;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    gap: 0;
    border-radius: 14px;
  }

  .nav-member-quick i {
    font-size: 18px;
  }

  .nav-member-quick span,
  .nav-member-quick span::after {
    content: none;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }

  .menu-toggle {
    position: static !important;
    inset: auto !important;
    grid-column: 4;
    grid-row: 1;
    display: grid;
    width: 48px;
    height: 48px;
    margin-left: 0;
  }

  .nav-links {
    grid-column: 1 / -1;
  }
}
