:root {
  --brand-ink: #08251d;
  --brand-muted: #557168;
  --brand-green: #0d8f68;
  --brand-green-strong: #066549;
  --brand-lime: #9bdc53;
  --brand-surface: #f7fbf8;
  --brand-line: rgba(8, 74, 54, .18);
  --brand-radius: 8px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  color: var(--brand-ink);
}

.brand-hero,
.brand-closing {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  margin-left: 0;
  overflow: hidden;
  isolation: isolate;
}

.brand-hero {
  min-height: calc(100dvh - 20px);
  color: #fff;
  background: #214a32;
}

.brand-hero-media,
.brand-closing-media,
.brand-hero-shade,
.brand-closing-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brand-hero-media,
.brand-closing-media {
  z-index: -3;
  object-fit: cover;
}

.brand-hero-media {
  object-position: 58% 48%;
  transform: scale(1.055);
  filter: saturate(.88) contrast(1.03);
  transition: transform 1.8s cubic-bezier(.2,.72,.2,1), filter 1.2s ease;
}

.brand-hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 35, 25, .82) 0%, rgba(5, 35, 25, .6) 30%, rgba(5, 35, 25, .13) 62%, rgba(5, 35, 25, .06) 100%),
    linear-gradient(180deg, rgba(3, 27, 20, .42) 0%, transparent 30%, transparent 63%, rgba(3, 26, 19, .7) 100%);
}

.brand-hero::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--brand-lime), #38cf91 54%, rgba(255,255,255,.8));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1) .8s;
}

.brand-nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  width: min(1600px, calc(100% - 80px));
  min-height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.3);
}

.brand-mark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-self: start;
  color: #fff;
  text-decoration: none;
}

.brand-mark-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 50%;
  color: var(--brand-lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark b,
.brand-mark small {
  display: block;
  letter-spacing: 0;
}

.brand-mark b {
  font-size: 16px;
}

.brand-mark small {
  margin-top: 2px;
  color: rgba(255,255,255,.68);
  font-size: 9px;
  font-weight: 700;
}

.brand-nav-links {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  justify-content: center;
}

.brand-nav-links a {
  position: relative;
  padding: 25px 0 22px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}

.brand-nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brand-lime);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.brand-nav-links a:hover {
  color: #fff;
}

.brand-nav-links a:hover::after {
  transform: scaleX(1);
}

.brand-nav-action {
  min-height: 40px;
  padding: 0 18px;
  justify-self: end;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 6px;
  color: #fff;
  background: rgba(4, 52, 36, .24);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.brand-hero-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(40px, calc((100vw - 1600px) / 2));
  width: min(650px, 46vw);
  transform: translateY(-46%);
}

.brand-eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
  color: #d7ffae;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.brand-eyebrow::before {
  width: 38px;
  height: 2px;
  content: "";
  background: var(--brand-lime);
}

.brand-hero h1 {
  max-width: 12em;
  margin: 0;
  color: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(48px, 5.5vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 4px 26px rgba(0,0,0,.24);
}

.brand-hero .subtitle {
  margin: 22px 0 0;
  color: #fff;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-hero-note {
  max-width: 34em;
  margin: 16px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 15px;
  line-height: 1.8;
}

.brand-hero .hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}

.brand-hero #refreshButton,
.brand-secondary-action {
  display: inline-flex;
  min-height: 48px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.brand-hero #refreshButton {
  border: 1px solid var(--brand-lime);
  color: #08251d;
  background: var(--brand-lime);
  box-shadow: 0 12px 30px rgba(30, 116, 76, .26);
}

.brand-secondary-action {
  border: 1px solid rgba(255,255,255,.48);
  color: #fff;
  background: rgba(3, 39, 28, .2);
  backdrop-filter: blur(10px);
}

.brand-hero-rail {
  position: absolute;
  z-index: 3;
  right: max(40px, calc((100vw - 1600px) / 2));
  bottom: 28px;
  left: max(40px, calc((100vw - 1600px) / 2));
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.brand-hero-intro {
  display: grid;
  grid-template-columns: 8px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  background: rgba(4, 45, 32, .42);
  backdrop-filter: blur(16px);
}

.brand-hero-intro > span {
  grid-row: 1 / 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4af0a6;
  box-shadow: 0 0 0 6px rgba(74, 240, 166, .12), 0 0 20px rgba(74, 240, 166, .55);
}

.brand-hero-intro b {
  font-size: 11px;
  letter-spacing: .12em;
}

.brand-hero-intro small {
  color: rgba(255,255,255,.68);
  font-size: 11px;
}

.brand-hero .diagnostics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(16px);
}

.brand-hero .diagnostics-strip span {
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px 12px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: rgba(3, 38, 27, .5);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.brand-ready) .brand-nav,
body:not(.brand-ready) .brand-hero-copy,
body:not(.brand-ready) .brand-hero-rail {
  opacity: 0;
}

.brand-nav,
.brand-hero-copy,
.brand-hero-rail {
  transition: opacity .8s ease, transform .9s cubic-bezier(.16,1,.3,1);
}

body:not(.brand-ready) .brand-nav { transform: translateY(-18px); }
body:not(.brand-ready) .brand-hero-copy { transform: translateY(calc(-46% + 28px)); }
body:not(.brand-ready) .brand-hero-rail { transform: translateY(22px); }
body.brand-ready .brand-hero-media { transform: scale(1); filter: saturate(1) contrast(1); }
body.brand-ready .brand-hero::after { transform: scaleX(1); }

.brand-closing {
  min-height: 88dvh;
  margin-top: 34px;
  color: #fff;
  background: #22382c;
}

.brand-closing-media {
  /* The portrait source needs a top-biased crop on wide screens so her face stays whole. */
  object-position: center 2%;
  transform: scale(1.06);
  transition: transform 1.6s cubic-bezier(.16,1,.3,1);
}

.brand-closing-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 31, 22, .82) 0%, rgba(5, 31, 22, .62) 32%, rgba(5, 31, 22, .08) 65%),
    linear-gradient(180deg, rgba(0,0,0,.12), transparent 55%, rgba(3,24,17,.6));
}

.brand-closing-copy {
  position: absolute;
  top: 50%;
  left: max(40px, calc((100vw - 1600px) / 2));
  width: min(590px, 44vw);
  opacity: 0;
  transform: translateY(calc(-50% + 42px));
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.16,1,.3,1);
}

.brand-closing-kicker {
  margin: 0 0 16px;
  color: var(--brand-lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

.brand-closing h2 {
  max-width: 10em;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.brand-closing-copy > p:not(.brand-closing-kicker) {
  margin: 22px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 16px;
  line-height: 1.8;
}

.brand-closing-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  margin-top: 30px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 6px;
  color: #fff;
  background: rgba(4, 45, 32, .22);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.brand-closing-signature {
  position: absolute;
  right: max(40px, calc((100vw - 1600px) / 2));
  bottom: 30px;
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand-closing.is-visible .brand-closing-media { transform: scale(1); }
.brand-closing.is-visible .brand-closing-copy { opacity: 1; transform: translateY(-50%); }

@media (max-width: 960px) {
  .brand-nav {
    grid-template-columns: 1fr auto;
    width: calc(100% - 36px);
    min-height: 64px;
  }

  .brand-nav-links { display: none; }
  .brand-nav-action { padding: 0 13px; }

  .brand-hero-copy {
    top: auto;
    right: 18px;
    bottom: 166px;
    left: 18px;
    width: auto;
    transform: none;
  }

  body:not(.brand-ready) .brand-hero-copy { transform: translateY(28px); }

  .brand-hero h1 { font-size: clamp(42px, 10vw, 64px); }

  .brand-hero-rail {
    right: 18px;
    bottom: 16px;
    left: 18px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .brand-hero-intro { display: none; }
  .brand-hero .diagnostics-strip { overflow-x: auto; grid-template-columns: repeat(4, minmax(145px, 1fr)); }
  .brand-hero .diagnostics-strip span { min-height: 46px; }

  .brand-closing { min-height: 78dvh; }
  .brand-closing-copy { right: 24px; left: 24px; width: auto; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 10px; }

  .brand-hero {
    min-height: 100dvh;
    max-height: none;
  }

  .brand-hero-media { object-position: 57% center; }
  .brand-hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 28, 19, .46) 0%, rgba(3, 28, 19, .02) 34%, rgba(3, 28, 19, .28) 57%, rgba(3, 28, 19, .88) 100%);
  }

  .brand-mark span:last-child { display: none; }
  .brand-nav-action { min-height: 36px; font-size: 12px; }

  .brand-hero-copy { bottom: 180px; }
  .brand-hero-rail { bottom: 86px; }
  .brand-eyebrow { margin-bottom: 14px; font-size: 10px; }
  .brand-eyebrow::before { width: 24px; }
  .brand-hero h1 { max-width: 8em; font-size: clamp(38px, 12vw, 52px); line-height: 1.08; }
  .brand-hero .subtitle { margin-top: 12px; font-size: 18px; }
  .brand-hero-note { display: none; }
  .brand-hero .hero-actions { margin-top: 22px; }
  .brand-hero #refreshButton,
  .brand-secondary-action { min-height: 44px; padding: 0 14px; font-size: 12px; }

  .brand-hero .diagnostics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }

  .brand-hero .diagnostics-strip span {
    min-height: 34px;
    padding: 7px 6px;
    font-size: 9px;
  }

  .brand-closing { min-height: calc(100dvh - 68px); margin-bottom: 62px; }
  .brand-closing-media { object-position: 50% 50%; }
  .brand-closing-shade {
    background: linear-gradient(180deg, rgba(4,31,22,.16) 0%, rgba(4,31,22,.18) 42%, rgba(4,31,22,.9) 100%);
  }
  .brand-closing-copy { top: auto; bottom: 86px; transform: translateY(34px); }
  .brand-closing.is-visible .brand-closing-copy { transform: translateY(0); }
  .brand-closing h2 { max-width: 9em; font-size: clamp(36px, 11vw, 50px); }
  .brand-closing-copy > p:not(.brand-closing-kicker) { margin-top: 14px; font-size: 14px; }
  .brand-closing-link { margin-top: 20px; }
  .brand-closing-signature { right: 24px; bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .brand-hero-media,
  .brand-closing-media { transform: none !important; }
  .brand-nav,
  .brand-hero-copy,
  .brand-hero-rail,
  .brand-closing-copy { opacity: 1 !important; transform: none !important; }
}
