:root {
  --accent-r: 255;
  --accent-g: 202;
  --accent-b: 43;
  --accent-color: rgb(var(--accent-r), var(--accent-g), var(--accent-b));
}


* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #030303;
  color: #f7f7f7;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.2;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 202, 43, .16), transparent 28%),
    radial-gradient(circle at 80% 14%, rgba(255, 255, 255, .06), transparent 24%),
    linear-gradient(180deg, #070707 0%, #000 46%, #080808 100%);
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 36px clamp(22px, 4vw, 76px) 80px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
  margin: -36px calc(clamp(22px, 4vw, 76px) * -1) clamp(44px, 6vw, 90px);
  padding: 0 clamp(22px, 4vw, 76px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  background: rgba(3, 3, 3, .72);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .14em;
  color: #fff;
}
.logo-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  margin-left: auto;
  gap: 34px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  color: #d7d7d7;
  text-transform: uppercase;
}
.nav-links a,
.nav-links button,
.back-link {
  transition: color .25s ease;
}
.nav-links a:hover,
.nav-links button:hover,
.back-link:hover {
  color: #fff;
}
.nav-links button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-transform: uppercase;
}
.nav > .back-link {
  margin-left: auto;
}
.back-link {
  color: #aaa;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* HERO */
.hero {
  position: relative;
  min-height: clamp(520px, 68vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(42px, 6vw, 96px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.hero-field {
  position: absolute;
  inset: -120px -80px -80px -80px;
  width: calc(100% + 160px);
  height: calc(100% + 200px);
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}
.hero-main,
.hero-side {
  position: relative;
  z-index: 2;
}
.hero-kicker {
  margin-bottom: 30px;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .22em;
}
.hero-title {
  max-width: 1320px;
  font-size: clamp(58px, 8.5vw, 158px);
  line-height: .92;
  letter-spacing: -.085em;
  font-weight: 840;
}
.hero-title span {
  display: block;
  width: max-content;
  max-width: 100%;
  transition: color .25s ease, text-shadow .25s ease, transform .25s ease;
}
.hero-title span.is-hot {
  color: #fff;
  text-shadow: 0 0 32px rgba(var(--accent-r), var(--accent-g), var(--accent-b),.32);
}
.hero-title .muted {
  color: #747474;
}
.hero-side {
  border-left: 1px solid rgba(255,255,255,.14);
  padding-left: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  font-size: 20px;
  line-height: 1.45;
  color: #9b9b9b;
}
.hero-roles {
  display: grid;
  gap: 10px;
  margin: 4px 0 4px;
  color: #666;
  font-size: 13px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.wechat-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-size: 20px;
}
.wechat-icon {
  width: 44px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.42);
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 24px rgba(255,202,43,.20);
  transform: rotate(-6deg);
}
.wechat-icon svg { width: 22px; height: 22px; fill: #fff; }

/* SECTION */
.section-head {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 56px;
  align-items: end;
  margin: 110px 0 38px;
  padding-top: 38px;
}
.section-head.first {
  margin-top: 0;
}
.section-head h1,
.section-head h2 {
  font-size: clamp(52px, 5vw, 92px);
  line-height: .95;
  letter-spacing: -.07em;
  font-weight: 820;
}
.section-head p {
  color: #999;
  font-size: 18px;
  line-height: 1.7;
}

/* FILTER */
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
  padding: 20px 0;
  margin-bottom: 22px;
  font-size: 17px;
  font-weight: 700;
}
.filters, .blog-filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.filter-btn, .blog-filter {
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.045);
  color: #e8e8e8;
  backdrop-filter: blur(14px);
  font: inherit;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter-btn:hover, .filter-btn.is-active,
.blog-filter:hover, .blog-filter.is-active {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.count { color: #777; }

/* WORK */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1vw, 16px);
}
.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.work-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 40px 110px rgba(0,0,0,.66), 0 0 60px rgba(255,202,43,.14), inset 0 1px 0 rgba(255,255,255,.14);
}
.work-card.is-hidden, .blog-item.is-hidden { display: none; }
.featured { grid-column: span 2; }
.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--block, #1c1c1c);
  overflow: hidden;
}
.cms-media {
  background-position: center;
  background-size: cover;
}
.cms-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.26) 100%);
  pointer-events: none;
}
.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.tag-list {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  pointer-events: none;
}
.tag {
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.36);
  color: rgba(255,255,255,.72);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.hover-modal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, .86);
  opacity: 0;
  transform: scale(.98);
  transition: opacity .28s ease, transform .28s ease;
  text-align: center;
  padding: 32px;
}
.work-card:hover .hover-modal { opacity: 1; transform: scale(1); }
.modal-title {
  font-size: clamp(24px, 2.5vw, 44px);
  line-height: 1;
  font-weight: 780;
  letter-spacing: -0.04em;
  color: #fff;
}
.modal-tag {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-color);
}
.more-link {
  display: inline-flex;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding-bottom: 8px;
}

/* BLOG */
.blog-list { border-top: 1px solid rgba(255,255,255,.14); }
.blog-filters { margin-bottom: 18px; }
.blog-item {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  align-items: center;
  transition: opacity .2s ease, transform .2s ease;
}
.blog-item:hover { opacity: .82; transform: translateX(8px); }
.blog-type {
  color: var(--accent-color);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}
.blog-title {
  font-size: clamp(24px, 2.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -.05em;
  font-weight: 780;
  margin-bottom: 12px;
}
.blog-desc {
  color: #8d8d8d;
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
}
.blog-date { color: #777; text-align: right; font-size: 15px; }

/* COURSE */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.course-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.035);
}
.course-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #171717;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.35);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 820;
  letter-spacing: -.06em;
  overflow: hidden;
}
.course-cover span {
  position: relative;
  z-index: 1;
  text-align: center;
}
.course-info {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.course-info h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.course-info p {
  color: #999;
  font-size: 15px;
  line-height: 1.65;
  margin-top: 14px;
}
.course-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.36);
}
.course-price {
  color: #fff;
  font-size: 22px;
  font-weight: 820;
  letter-spacing: 0;
}
.course-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.42);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: .08em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.course-card:hover .course-button {
  background: #fff;
  border-color: #fff;
  color: #050505;
}

/* DETAIL */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 70px;
  align-items: end;
  margin-bottom: 34px;
}
.detail-title, .article-title {
  font-size: clamp(56px, 7vw, 120px);
  line-height: .95;
  letter-spacing: -.07em;
  font-weight: 820;
}
.detail-meta, .article-meta {
  color: #999;
  font-size: 18px;
  line-height: 1.6;
  padding-bottom: 12px;
}
.detail-video, .article-cover {
  width: 100%;
  background: var(--detail-block, #202020);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.35);
  font-size: clamp(36px, 5vw, 88px);
  font-weight: 820;
  letter-spacing: -.06em;
  margin-bottom: 90px;
}
.detail-video {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: min(72vh, 760px);
  background: #050505;
  object-fit: contain;
}
.detail-content {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 90px;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 54px;
}
.detail-label, .article-type {
  color: var(--accent-color);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 760;
}
.detail-copy {
  font-size: clamp(28px, 3.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -.05em;
  font-weight: 760;
  margin-bottom: 70px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 70px;
}
.detail-image {
  height: 360px;
  background: #181818;
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  color: #555;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.detail-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.note {
  border: 1px solid rgba(255,255,255,.12);
  padding: 28px;
  background: rgba(255,255,255,.035);
}
.note h3 { font-size: 20px; margin-bottom: 14px; }
.note p { color: #999; font-size: 15px; line-height: 1.7; }

/* ARTICLE */
.article-hero {
  max-width: 1120px;
  margin: 0 auto 68px;
  padding-top: 20px;
}
.article-cover {
  aspect-ratio: 4 / 3;
  height: auto;
  background: var(--article-block, #202020);
  object-fit: cover;
}
.article-body {
  max-width: 880px;
  margin: 0 auto;
  color: #d8d8d8;
  font-size: 20px;
  line-height: 1.9;
}
.article-body h2 {
  color: #fff;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -.04em;
  margin: 58px 0 18px;
}
.article-body p { margin-bottom: 24px; }
.article-body blockquote {
  margin: 40px 0;
  padding: 28px;
  border-left: 3px solid var(--accent-color);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 24px;
  line-height: 1.55;
}

/* FOOTER */
.footer {
  margin-top: 100px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  justify-content: space-between;
  gap: 40px;
  font-weight: 700;
  font-size: 18px;
  color: #dcdcdc;
}
.footer-wechat {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding-bottom: 4px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.footer-icp {
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
  align-self: center;
  transition: color .2s ease;
}
.footer-icp:hover { color: #fff; }
.footer-wechat:hover { color: var(--accent-color); border-color: var(--accent-color); }

/* WECHAT POPOVER */
.wechat-popover {
  position: fixed;
  z-index: 100;
  width: min(320px, calc(100vw - 32px));
  display: none;
  background: rgba(7, 7, 7, .96);
  border: 1px solid rgba(255,255,255,.18);
  padding: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,.62), 0 0 46px rgba(255,202,43,.14);
  backdrop-filter: blur(18px);
}
.wechat-popover.is-open { display: block; }
.wechat-popover::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(7, 7, 7, .96);
  border-left: 1px solid rgba(255,255,255,.18);
  border-top: 1px solid rgba(255,255,255,.18);
  transform: rotate(45deg);
}
.wechat-popover[data-placement="bottom"]::before {
  top: -7px; left: var(--arrow-left, 50%); margin-left: -6px;
}
.wechat-popover[data-placement="top"]::before {
  bottom: -7px; left: var(--arrow-left, 50%); margin-left: -6px; transform: rotate(225deg);
}
.wechat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.wechat-card h3 { font-size: 18px; letter-spacing: -.03em; }
.close-modal {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.qr-placeholder {
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, #fff 8px, transparent 8px) 0 0 / 28px 28px,
    linear-gradient(#fff 8px, transparent 8px) 0 0 / 28px 28px,
    #111;
  border: 12px solid #fff;
  margin-bottom: 14px;
}
.wechat-tip { color: #aaa; font-size: 13px; line-height: 1.55; }

@media (max-width: 1100px) {
  .hero, .section-head, .detail-hero, .detail-content, .course-card { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 48px; }
  .hero-side { border-left: 0; padding-left: 0; max-width: 520px; }
  .hero-title span { width: auto; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-column: span 1; }
  .detail-notes { grid-template-columns: 1fr; }
  .blog-item { grid-template-columns: 1fr; gap: 16px; }
  .blog-date { text-align: left; }
}
@media (max-width: 720px) {
  .page { padding-top: 24px; }
  .nav { height: 68px; margin-top: -24px; margin-bottom: 54px; }
  .nav-links { gap: 14px; font-size: 11px; letter-spacing: .1em; }
  .logo { font-size: 15px; gap: 9px; }
  .logo-mark { width: 26px; height: 26px; }
  .filter-row, .footer { flex-direction: column; align-items: flex-start; }
  .work-grid, .detail-grid, .course-grid { grid-template-columns: 1fr; }
  .detail-image { height: 240px; }
}


/* WORK page uniform cards */
.works-page-grid {
  grid-auto-flow: row;
}

.works-page-grid .work-card,
.works-page-grid .work-card.featured {
  grid-column: auto;
}


/* HOME Featured Works uniform cards */
.home-work-grid .work-card,
.home-work-grid .work-card.featured {
  grid-column: auto;
}


/* Homepage section header with right action */
.home-section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.home-section-row .more-link {
  margin-top: 0;
  margin-bottom: 8px;
  white-space: nowrap;
}

/* Smoother work hover content */
.hover-modal .modal-title,
.hover-modal .modal-tag {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .28s ease, transform .28s ease;
}

.hover-modal .modal-tag {
  transform: translateY(12px);
  transition-delay: .04s;
}

.work-card:hover .hover-modal .modal-title,
.work-card:hover .hover-modal .modal-tag {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .home-section-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-section-row .more-link {
    margin-bottom: 0;
  }
}
