:root {
  /* Official Huiwu brand colors, confirmed 2026-09-22. */
  --red: #F83821;
  --yellow: #FDC202;
  --brand-text: #363636;
  --ink: #050505;
  --surface: #111111;
  --line: rgba(255, 255, 255, 0.16);
  --paper: #ffffff;
  --muted: #a8a8a8;
  --max: 1440px;
  --gutter: clamp(22px, 4vw, 72px);
  --display: "Arial Narrow", "DIN Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 84px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter); border-bottom: 1px solid transparent; transition: background .35s, border-color .35s;
}
.site-header.is-scrolled { background: rgba(5,5,5,.9); border-color: var(--line); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; width: max-content; }
.brand img { width: clamp(138px, 11.5vw, 176px); height: 58px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 52px); font-size: 13px; letter-spacing: .08em; }
.site-nav a, .header-cta { transition: color .2s; }
.site-nav a:hover { color: var(--red); }
.header-cta { justify-self: end; padding: 13px 22px; border: 1px solid rgba(255,255,255,.46); font-size: 13px; }
.header-cta:hover { background: var(--paper); color: var(--ink); }
.menu-button { display: none; }

.hero { position: relative; min-height: 900px; height: 100svh; max-height: 1080px; display: grid; align-items: start; overflow: hidden; background: #000; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.58) 38%, rgba(0,0,0,.05) 75%); pointer-events: none; }
.hero-collage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.hero-copy { position: relative; z-index: 2; width: min(860px, 58vw); text-align: left; margin: clamp(170px, 20vh, 225px) 0 0 var(--gutter); }
.hero h1 { margin: 0; font: 800 clamp(56px, 5.9vw, 106px)/1.09 var(--display); letter-spacing: .012em; }
.hero h1 span { display: block; }
.hero p { max-width: 620px; margin: 30px 0 0; color: #e1e1e1; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.75; letter-spacing: .015em; }
.hero-actions { margin-top: 36px; display: flex; justify-content: flex-start; align-items: center; gap: 28px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 28px; font-size: 14px; font-weight: 700; letter-spacing: .04em; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: white; }
.button-primary:hover { background: #ff4a35; }
.text-link { font-size: 14px; font-weight: 700; padding-bottom: 5px; border-bottom: 1px solid currentColor; }
.text-link span { display: inline-block; margin-left: 10px; color: var(--red); }
.hero-note { position: absolute; z-index: 3; left: var(--gutter); bottom: 30px; margin: 0; font-size: 10px; letter-spacing: .08em; color: rgba(255,255,255,.48); }
.scroll-cue { position: absolute; z-index: 3; right: var(--gutter); bottom: 28px; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .25em; color: rgba(255,255,255,.7); }

.section { padding: clamp(96px, 11vw, 180px) var(--gutter); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-index { margin-top: 0; margin-bottom: 42px; color: var(--red); font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.section-index.dark { color: var(--brand-text); }
.intro h2, .courses h2, .method h2, .booking h2 { margin: 0; font: 800 clamp(50px, 6vw, 104px)/1.08 var(--display); letter-spacing: .01em; }
.intro-copy { width: min(580px, 100%); margin: 36px auto 72px 50%; color: #aaa; font-size: 18px; line-height: 1.9; }

.student-rail { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; scrollbar-width: none; }
.student-rail::-webkit-scrollbar { display: none; }
.student-card { position: relative; aspect-ratio: 3 / 4; min-height: 0; overflow: hidden; background: #1b1b1b; transition: transform .35s; }
.student-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.18) 56%, transparent 78%); pointer-events: none; }
.student-card > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .55s ease; }
.student-card:hover { transform: translateY(-8px); }
.student-card:hover > img { transform: scale(1.025); }
.student-card-a > img { object-position: center; }
.student-card-b > img { object-position: center; }
.student-card-c > img { object-position: center; }
.student-card-d > img { object-position: 50% center; }
.student-card > div { position: absolute; z-index: 2; inset: auto 26px 30px; }
.student-card span { color: var(--yellow); font-size: 11px; letter-spacing: .18em; }
.student-card h3 { margin: 12px 0 10px; font-size: 24px; letter-spacing: -.03em; }
.student-card p { margin: 0; color: #b8b8b8; font-size: 13px; line-height: 1.6; }

.growth-films { display: grid; grid-template-columns: repeat(12, 1fr); gap: 30px 20px; margin-top: 150px; padding-top: 34px; border-top: 1px solid var(--line); }
.growth-films-heading { grid-column: 1 / 5; align-self: end; padding: 0 28px 32px 0; }
.growth-films-heading p { margin: 0 0 28px; color: var(--yellow); font-size: 11px; letter-spacing: .2em; }
.growth-films-heading h3 { margin: 0; font-size: clamp(32px, 3.7vw, 62px); line-height: 1.12; letter-spacing: .01em; }
.growth-film { margin: 0; }
.growth-film-primary { grid-column: 5 / 13; }
.growth-film-interview { grid-column: 1 / 8; margin-top: 72px; }
.growth-film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.growth-film > .film-caption { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: baseline; padding-top: 18px; }
.growth-film span { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.growth-film h4 { margin: 0; font-size: clamp(20px, 2vw, 30px); line-height: 1.42; letter-spacing: .01em; }

.courses { border-top: 1px solid var(--line); }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 70px; }
.section-heading-row .section-index { margin-bottom: 42px; }
.product-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 80px 20px; }
.product-card { min-width: 0; }
.product-wushu { grid-column: span 7; }
.product-sanda { grid-column: span 5; padding-top: 124px; }
.product-elite, .product-camp, .product-competition { grid-column: span 4; }
.product-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; filter: saturate(.96) contrast(1.03); }
.product-meta { display: flex; justify-content: space-between; margin: 20px 0 12px; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.product-meta span:first-child { color: var(--yellow); }
.product-card h3 { margin: 0; font-size: clamp(32px, 3.8vw, 64px); line-height: 1.08; letter-spacing: .015em; }
.product-card p { max-width: 420px; margin: 18px 0 0; color: #aaa; font-size: 14px; line-height: 1.8; }

.video-frame { position: relative; overflow: hidden; isolation: isolate; background: #050505; border: 1px solid rgba(255,255,255,.12); }
.video-frame::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.02) 45%, rgba(0,0,0,.62) 100%); transition: opacity .3s ease; }
.video-frame video { transition: transform .55s ease, filter .4s ease; }
.video-frame:not(.has-started):hover video { transform: scale(1.018); filter: saturate(1.04) contrast(1.04); }
.media-play { position: absolute; z-index: 3; left: 50%; top: 50%; width: clamp(64px, 6vw, 86px); height: clamp(64px, 6vw, 86px); display: grid; place-items: center; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; color: white; background: var(--red); box-shadow: 0 16px 45px rgba(0,0,0,.35); cursor: pointer; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.media-play:hover { transform: translate(-50%, -50%) scale(1.08); background: #ff4a35; box-shadow: 0 18px 55px rgba(248,56,33,.32); }
.media-play:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }
.media-play svg { width: 26%; height: 31%; margin-left: 5%; fill: currentColor; }
.video-duration { position: absolute; z-index: 3; right: 14px; bottom: 14px; padding: 7px 9px 6px; color: var(--ink); background: var(--yellow); font: 800 10px/1 var(--sans); letter-spacing: .1em; pointer-events: none; }
.video-frame.has-started::after, .video-frame.has-started .media-play, .video-frame.has-started .video-duration { opacity: 0; visibility: hidden; }

.method { min-height: 880px; display: grid; grid-template-columns: 1.18fr .82fr; background: var(--paper); color: var(--brand-text); }
.method-media { min-height: 760px; overflow: hidden; }
.method-media img { width: 100%; height: 100%; object-fit: cover; object-position: 34% center; }
.method-copy { padding: clamp(70px, 8vw, 140px) clamp(32px, 5vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.method-copy h2 { max-width: 8em; font-size: clamp(50px, 4.3vw, 76px); line-height: 1.12; letter-spacing: .01em; }
.method-copy > p:not(.section-index) { max-width: 560px; margin: 40px 0 44px; color: #555; font-size: 17px; line-height: 1.95; letter-spacing: .01em; }
.method ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid #d8d8d8; }
.method li { display: flex; align-items: flex-start; gap: 26px; padding: 24px 0 25px; border-bottom: 1px solid #d8d8d8; }
.method li span { flex: 0 0 auto; padding-top: 5px; color: var(--red); font-size: 11px; letter-spacing: .08em; }
.method li div { min-width: 0; }
.method li strong { display: block; color: var(--brand-text); font-size: 15px; line-height: 1.5; letter-spacing: .035em; }
.method li p { max-width: 520px; margin: 9px 0 0; color: #666; font-size: 13px; line-height: 1.8; letter-spacing: .02em; }

.belief { background: var(--red); }
.belief .section-index { color: #1b0805; }
.belief blockquote { margin-top: 0; margin-bottom: 80px; max-width: var(--max); font: 800 clamp(42px, 6vw, 96px)/1.16 var(--display); letter-spacing: .01em; }
.belief-signature { display: flex; align-items: center; gap: 22px; }
.belief-signature p { margin: 0; max-width: 24em; font-size: clamp(20px, 2.2vw, 32px); font-weight: 800; line-height: 1.6; letter-spacing: .08em; }

.booking { padding: clamp(90px, 10vw, 160px) var(--gutter); background: var(--yellow); color: var(--brand-text); }
.booking-head { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 60px; }
.booking .section-index { color: #6d5500; }
.booking-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.button-light { background: var(--ink); color: white; }
.booking-actions p { margin: 0; font-size: 13px; line-height: 1.8; }
.trial-dialog { position: relative; width: min(1440px, calc(100vw - 64px)); max-width: none; max-height: calc(100svh - 48px); padding: 0; border: 0; color: var(--brand-text); background: transparent; overflow: auto; }
.trial-dialog::backdrop { background: rgba(5, 5, 5, .88); backdrop-filter: blur(8px); }
.trial-dialog-close { position: absolute; z-index: 2; top: 20px; right: 22px; width: 44px; height: 44px; padding: 0; border: 1px solid #bdbdbd; border-radius: 50%; color: var(--brand-text); background: rgba(255,255,255,.9); font-size: 28px; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s, transform .2s; }
.trial-dialog-close:hover { color: var(--red); border-color: var(--red); transform: rotate(6deg); }
.trial-dialog .trial-form { margin-top: 0; }
body.trial-dialog-open { overflow: hidden; }
.trial-form { margin-top: clamp(64px, 7vw, 104px); padding: clamp(32px, 4vw, 64px); display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(48px, 7vw, 112px); background: var(--paper); border-top: 8px solid var(--red); }
.trial-form-intro > span { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.trial-form-intro h3 { margin: 24px 0 26px; font: 800 clamp(38px, 4vw, 66px)/1.08 var(--display); letter-spacing: .02em; }
.trial-form-intro p { max-width: 360px; margin: 0; color: #666; font-size: 14px; line-height: 1.85; }
.trial-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
.trial-form-fields label { min-width: 0; }
.trial-form-fields label > span { display: block; margin-bottom: 12px; color: #686868; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.trial-form input, .trial-form select { width: 100%; min-height: 48px; padding: 0 2px; border: 0; border-bottom: 1px solid #9e9e9e; border-radius: 0; outline: 0; color: var(--brand-text); background: transparent; font: 600 15px/1.4 var(--sans); transition: border-color .2s; }
.trial-form input:focus, .trial-form select:focus { border-color: var(--red); }
.trial-form input::placeholder { color: #aaa; font-weight: 400; }
.trial-consent { margin-top: 30px; display: flex; align-items: flex-start; gap: 12px; color: #666; font-size: 12px; line-height: 1.7; cursor: pointer; }
.trial-consent input { flex: 0 0 auto; width: 16px; min-height: 16px; margin-top: 2px; accent-color: var(--red); }
.trial-preview-note { margin: 15px 0 0; color: #8a6a00; font-size: 12px; line-height: 1.7; }
.trial-form-submit { margin-top: 28px; display: flex; align-items: center; gap: 24px; }
.trial-form-submit button { border: 0; cursor: pointer; }
.trial-form-status { margin: 0; color: #5d5d5d; font-size: 12px; line-height: 1.6; }
.campus-directory { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 2.5vw, 40px); border-top: 1px solid rgba(54, 54, 54, .45); }
.campus-link { position: relative; min-width: 0; padding: 24px 0; display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: center; gap: 12px; color: inherit; text-decoration: none; border-bottom: 1px solid rgba(54, 54, 54, .28); transition: color .2s ease; }
.campus-link strong { min-width: 0; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.35; letter-spacing: .04em; }
.campus-arrow { font-size: 20px; transition: transform .2s ease; }
.campus-address { position: absolute; z-index: 10; top: calc(100% - 8px); left: 0; right: 0; padding: 14px 16px; color: white; background: var(--ink); box-shadow: 0 14px 34px rgba(0, 0, 0, .22); font-size: 12px; line-height: 1.65; letter-spacing: .02em; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease; }
.campus-link:hover, .campus-link:focus-visible { z-index: 20; color: var(--red); }
.campus-link:hover .campus-arrow, .campus-link:focus-visible .campus-arrow { transform: translate(3px, -3px); }
.campus-link:hover .campus-address, .campus-link:focus-visible .campus-address { opacity: 1; visibility: visible; transform: translateY(0); }

footer { min-height: 160px; padding: 44px var(--gutter); display: flex; align-items: center; gap: 36px; border-top: 1px solid var(--line); color: #777; font-size: 11px; letter-spacing: .08em; }
.footer-brand { display: flex; align-items: center; color: white; }
.footer-brand img { width: clamp(150px, 14vw, 210px); height: 70px; object-fit: contain; object-position: left center; }
footer p:last-child { margin-left: auto; }

@media (max-width: 1024px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .header-cta { margin-right: 52px; }
  .menu-button { display: grid; place-content: center; gap: 6px; position: absolute; right: var(--gutter); width: 38px; height: 38px; padding: 0; border: 0; color: white; background: transparent; }
  .menu-button span:not(.sr-only) { display: block; width: 22px; height: 1px; background: currentColor; }
  .site-nav.is-open { display: flex; position: absolute; top: 84px; left: 0; right: 0; padding: 34px var(--gutter); flex-direction: column; align-items: flex-start; background: rgba(5,5,5,.98); border-top: 1px solid var(--line); }
  .hero { min-height: 760px; }
  .hero-copy { width: min(620px, 60vw); }
  .student-rail { grid-template-columns: repeat(4, 310px); margin-right: calc(var(--gutter) * -1); }
  .growth-films-heading { grid-column: 1 / 6; }
  .growth-film-primary { grid-column: 6 / 13; }
  .growth-film-interview { grid-column: 1 / 9; }
  .product-wushu, .product-sanda { grid-column: span 6; }
  .product-sanda { padding-top: 80px; }
  .product-elite, .product-camp { grid-column: span 6; }
  .product-competition { grid-column: 4 / 10; }
  .method { grid-template-columns: 1fr; }
  .method-media { min-height: 560px; }
  .method-copy { padding: 90px var(--gutter); }
  .booking-head { grid-template-columns: 1fr; align-items: start; }
  .trial-form { grid-template-columns: 1fr; }
  .campus-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .site-header { height: 70px; }
  .brand img { width: 128px; height: 48px; }
  .header-cta { display: none; }
  .site-nav.is-open { top: 70px; }
  .hero { min-height: 760px; height: 100svh; align-items: end; }
  .hero-collage { display: block; object-position: 8% center; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.35) 52%, rgba(0,0,0,.94) 100%); }
  .hero-copy { width: 90vw; margin: 0 0 104px var(--gutter); }
  .hero h1 { font-size: clamp(40px, 10.6vw, 50px); line-height: 1.13; letter-spacing: .01em; }
  .hero p { width: min(330px, 86vw); margin: 22px 0 0; line-height: 1.7; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-note { display: none; }
  .intro h2, .courses h2, .method h2, .booking h2 { font-size: clamp(44px, 12vw, 64px); }
  .method-copy h2 { max-width: none; font-size: 40px; line-height: 1.16; }
  .intro-copy { margin: 30px 0 52px; font-size: 16px; }
  .student-rail { grid-template-columns: repeat(4, 82vw); }
  .student-card { min-height: 0; }
  .growth-films { display: block; margin-top: 90px; padding-top: 28px; }
  .growth-films-heading { padding: 0 0 46px; }
  .growth-films-heading h3 { font-size: 40px; }
  .growth-film + .growth-film { margin-top: 60px; }
  .growth-film-interview { margin-top: 0; }
  .growth-film > .film-caption { grid-template-columns: 1fr; gap: 8px; }
  .section-heading-row { display: block; margin-bottom: 52px; }
  .section-heading-row > .text-link { display: inline-block; margin-top: 34px; }
  .product-grid { grid-template-columns: 1fr; gap: 64px; }
  .product-wushu, .product-sanda, .product-elite, .product-camp, .product-competition { grid-column: auto; padding-top: 0; }
  .product-card h3 { font-size: 44px; }
  .media-play { width: 66px; height: 66px; }
  .video-duration { right: 10px; bottom: 10px; }
  .method-media { min-height: 480px; }
  .method-media img { object-position: 30% center; }
  .belief blockquote { font-size: 38px; line-height: 1.22; letter-spacing: .015em; }
  .belief blockquote br { display: none; }
  .booking { padding-top: 90px; padding-bottom: 90px; }
  .booking-head { gap: 40px; }
  .trial-dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
  .trial-dialog-close { position: fixed; top: 14px; right: 14px; }
  .trial-dialog .trial-form { min-height: 100svh; }
  .trial-form { margin-top: 56px; padding: 30px 24px 34px; gap: 44px; }
  .trial-form-fields { grid-template-columns: 1fr; gap: 28px; }
  .trial-form-submit { align-items: flex-start; flex-direction: column; gap: 16px; }
  .trial-form-submit .button { width: 100%; }
  .campus-directory { margin-top: 64px; grid-template-columns: 1fr; }
  .campus-link { padding: 19px 0; gap: 11px; }
  .campus-link strong { font-size: 20px; }
  footer { align-items: flex-start; flex-direction: column; gap: 16px; }
  footer p { margin: 0; }
  footer p:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
