/* Local design study only. Keep production CSS unchanged until approval. */
:root {
  --rxz-wordmark-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* The wordmark borrows the measured, sturdy uppercase rhythm of airline identity,
   without copying another company's custom lettering. */
html body :is(.editorial-brand, .footer-masthead, .hero-masthead, .follow-section h2) {
  font-family: var(--rxz-wordmark-font) !important;
  font-style: normal;
  font-weight: 800 !important;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  letter-spacing: -.064em !important;
  text-transform: uppercase;
}
html body .editorial-brand {
  font-size: clamp(27px, 2.05vw, 33px);
  line-height: 1;
  white-space: nowrap;
  transition: opacity .25s ease !important;
}
html body .editorial-brand:hover { opacity: .72; }
html body .footer-masthead {
  line-height: .9;
  letter-spacing: -.07em !important;
}
html body .follow-section h2 { letter-spacing: -.065em !important; }
html body :is(.editorial-brand, .footer-masthead, .hero-masthead) > span,
html body .follow-section h2 > span { color: inherit !important; }

/* Header: keep the transparent hero state, tighten the editorial chrome. */
html body .editorial-header nav { gap: clamp(24px, 3vw, 48px); }
html body .editorial-header nav :is(a, button) {
  font-weight: 650;
  letter-spacing: .015em;
}

/* The first articles peek through the hero. Keep the photograph's own lower
   colour at the fold; scrolling gradually settles the chapter into black. */
html body.has-hero .rg-cinematic {
  --rg-peek-size: clamp(225px, 24svh, 245px);
  position: relative;
  height: 170svh;
  background: #05070a;
}
html body.has-hero .rg-cinematic > :is(.editorial-hero,.lead-story,.latest-section,.selected-section) {
  display: none;
}
html body.has-hero .rg-cinematic .rg-showcase {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
}
html body.has-hero .rg-showcase::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: var(--rg-wash-height, 18svh);
  pointer-events: none;
  opacity: var(--rg-wash-opacity, 0);
  background: linear-gradient(180deg,
    rgba(5, 7, 10, var(--rg-wash-top-alpha, 0)) 0%,
    rgba(var(--rg-lower-rgb, 50, 48, 55), .14) 34%,
    rgba(7, 20, 38, .52) 74%,
    #05070a 100%);
}
html body.has-hero .rg-slide[aria-hidden="false"] .rg-slide-media {
  transform: translate3d(0, var(--rg-hero-shift, 0px), 0) scale(var(--rg-hero-scale, 1));
  filter: brightness(var(--rg-hero-brightness, 1));
  opacity: var(--rg-hero-opacity, 1);
  transition: transform .12s linear, filter .12s linear, opacity .12s linear;
}
html body.has-hero .rg-slide-copy {
  bottom: calc(var(--rg-peek-size) - 2px);
  left: max(var(--gutter), calc((100vw - 1040px) / 2));
  max-width: min(78vw, 1000px);
  transform: translate3d(0, var(--rg-copy-shift, 0px), 0);
  opacity: var(--rg-copy-opacity, 1);
}
html body.has-hero .rg-heading-row {
  grid-template-columns: clamp(74px, 6vw, 108px) minmax(0, 1fr);
  gap: clamp(18px, 1.9vw, 30px);
}
html body.has-hero .rg-title {
  font-size: clamp(31px, 3.05vw, 58px);
}
html body.has-hero .rg-cta {
  margin-left: calc(clamp(74px, 6vw, 108px) + clamp(18px, 1.9vw, 30px));
  margin-top: clamp(29px, 2.5vw, 38px);
}
html body.has-hero .rg-controls {
  bottom: calc(var(--rg-peek-size) - 44px);
}
html body.has-hero :is(.rg-controls,.rg-status) {
  opacity: var(--rg-controls-opacity, 1);
}
html body.has-hero .rg-slide::before {
  background:
    linear-gradient(90deg, rgba(5, 9, 17, .62), rgba(5, 9, 17, .22) 43%, transparent 76%),
    linear-gradient(0deg, rgba(5, 9, 17, .18), transparent 55%);
}
html body.has-hero .rg-slide::after {
  height: clamp(330px, 52vh, 620px);
  background:
    linear-gradient(180deg, transparent 12%, rgba(11, 12, 15, .02) 45%, rgba(11, 12, 15, var(--rg-mask-alpha, .04)) 100%),
    linear-gradient(180deg, transparent 34%, rgba(var(--rg-lower-rgb, 50, 48, 55), .06) 65%, rgba(var(--rg-lower-rgb, 50, 48, 55), .23) 100%);
}
html body.has-hero .rg-news {
  position: absolute;
  inset: calc(100svh - var(--rg-peek-size)) 0 auto;
  z-index: 3;
  isolation: isolate;
  margin: 0;
  background: transparent !important;
  padding-top: clamp(26px, 3vw, 40px);
  padding-bottom: clamp(66px, 6vw, 96px);
}
html body.has-hero .rg-news::before,
html body.has-hero .rg-news::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
html body.has-hero .rg-news::before {
  background: linear-gradient(180deg,
    transparent 0px,
    rgba(var(--rg-lower-rgb, 50, 48, 55), .28) 74px,
    var(--rg-seam-color, #232832) var(--rg-peek-size),
    #101114 calc(var(--rg-peek-size) + 210px),
    #05070a calc(var(--rg-peek-size) + 410px));
}
html body.has-hero .rg-news::after {
  background: linear-gradient(180deg,
    rgba(5, 7, 10, var(--rg-news-darkness, 0)) 0px,
    #05070a calc(var(--rg-peek-size) * .78),
    #05070a 100%);
  opacity: var(--rg-news-darkness, 0);
}
html body.has-hero .rg-news-shell { max-width: 1040px; }
html body.has-hero .rg-news-head {
  align-items: center;
  margin-bottom: clamp(15px, 1.8vw, 26px);
  opacity: var(--rg-news-reveal, 0);
  transform: translateY(calc((1 - var(--rg-news-reveal, 0)) * 10px));
}
html body.has-hero .rg-news-head p,
html body.has-hero .rg-news-copy p {
  color: rgba(255, 255, 255, .8);
  letter-spacing: .16em;
}
html body.has-hero .rg-news-head > a {
  border-bottom-color: rgba(255, 255, 255, .75);
  font-weight: 650;
}
html body.has-hero .rg-news-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(20px, 2.1vw, 30px);
  transform: translateY(calc((1 - var(--rg-news-reveal, 0)) * 18px));
}
html body.has-hero .rg-news-list { gap: clamp(12px, 1.2vw, 16px); }
html body.has-hero .rg-news-card {
  color: #fff;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
html body.has-hero .rg-news-card:hover,
html body.has-hero .rg-news-card:focus-visible,
html body.has-hero .rg-news-card:active {
  color: #fff;
  background: transparent !important;
  box-shadow: none !important;
}
html body.has-hero .rg-news-lead {
  min-height: 0;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 8px !important;
  background: #25272c !important;
}
html body.has-hero .rg-news-lead:is(:hover,:focus-visible,:active) {
  background: #2b2d32 !important;
}
html body.has-hero .rg-cinematic + .focus-section {
  padding-top: clamp(54px, 6vw, 90px);
}
html body.has-hero .rg-news-lead > img {
  min-height: 0;
  height: auto;
  aspect-ratio: 1.72;
}
html body.has-hero .rg-news-lead .rg-news-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 170px;
  padding: clamp(20px, 2vw, 28px);
}
html body.has-hero .rg-news-lead .rg-news-copy time { margin-top: auto; }
html body.has-hero .rg-news-lead h3 {
  font-size: clamp(28px, 2.4vw, 38px);
  margin-bottom: .65rem;
}
html body.has-hero .rg-news-item {
  min-height: 126px;
  padding: 0;
  border: 0;
}
html body.has-hero .rg-news-item .rg-news-copy {
  justify-content: space-between;
  padding-block: 7px;
}
html body.has-hero .rg-news-item > img { border-radius: 8px; }
html body.has-hero .rg-news-poster {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  padding: clamp(18px, 2vw, 28px);
  background: linear-gradient(135deg, #1434c7, #3158ff 68%, #b71d41);
  color: #fff;
}
html body.has-hero .rg-news-poster > span {
  font: 700 .72rem/1.2 "Cairo", "PingFang SC", sans-serif;
  letter-spacing: .16em;
}
html body.has-hero .rg-news-poster > strong {
  font: 700 clamp(24px, 2.4vw, 38px)/1.2 "PingFang SC", sans-serif;
  letter-spacing: -.03em;
  text-wrap: balance;
}
html body.has-hero .rg-news-lead :is(.rg-news-copy h3,.rg-news-poster > strong),
html body.has-hero .rg-news-item :is(.rg-news-copy h3,.rg-news-poster > strong) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
html body.has-hero .rg-news-lead > .rg-news-poster {
  width: 100%;
  aspect-ratio: 1.72;
}
html body.has-hero .rg-news-item > .rg-news-poster {
  width: 100%;
  height: 100%;
  padding: 12px;
  border-radius: 8px;
}
html body.has-hero .rg-news-item > .rg-news-poster > span { font-size: .58rem; }
html body.has-hero .rg-news-item > .rg-news-poster > strong { font-size: clamp(13px, 1.1vw, 17px); }
html body.has-hero .rg-news-item .rg-news-copy { padding-right: 0; }
html body.has-hero .rg-news-item h3 {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.28;
}
html body.has-hero .rg-news-copy time { color: rgba(255, 255, 255, .73); }
html body.has-hero .rg-news-item:hover h3,
html body.has-hero .rg-news-item:focus-visible h3,
html body.has-hero .rg-news-lead:hover h3,
html body.has-hero .rg-news-lead:focus-visible h3 {
  text-decoration: underline;
  text-decoration-thickness: .055em;
  text-underline-offset: .14em;
}

/* White chapters give the brand blue its full impact without extra cards. */
html body.has-hero :is(.focus-section, .essay-section, .home-about) {
  background: #fff !important;
}
html body.has-hero :is(.focus-section, .essay-section) .editorial-section-head h2 {
  font-size: clamp(48px, 5.3vw, 82px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
html body.has-hero .manifesto-section h2 {
  color: var(--rxz-blue-deep);
  font-size: clamp(48px, 5.7vw, 92px);
  line-height: 1.15;
  letter-spacing: -.055em;
}
html body.has-hero .home-about h2 { letter-spacing: -.055em; }
html body.has-hero .follow-section {
  background: #edf3ff !important;
  padding-block: clamp(88px, 10vw, 156px);
}
html body.has-hero .follow-section h2 {
  color: var(--rxz-blue-deep);
  margin-block: 20px 15px;
}

/* The same display system carries through archive and profile pages. */
html body.press-index-page .writing-head h1,
html body :is(.page-head, .gallery-hero, .education-hero) h1 {
  letter-spacing: -.055em;
  line-height: 1.04;
}

@media (max-width: 800px) {
  html body .editorial-brand { font-size: 27px; }
  html body.has-hero .rg-cinematic { --rg-peek-size: 154px; height: auto !important; }
  html body.has-hero .rg-cinematic .rg-showcase { position: relative; }
  html body.has-hero .rg-news {
    position: relative;
    inset: auto;
    margin-top: -154px;
    padding-top: 22px;
    padding-bottom: 66px;
  }
  html body.has-hero .rg-news::before {
    background: linear-gradient(180deg, transparent 0px,
      rgba(var(--rg-lower-rgb, 50, 48, 55), .28) 58px,
      var(--rg-seam-color, #232832) 154px,
      #05070a 370px);
  }
  html body.has-hero .rg-slide-copy { left: 18px; right: 18px; bottom: 182px; max-width: none; }
  html body.has-hero .rg-heading-row { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  html body.has-hero .rg-title { font-size: clamp(.93rem, 4vw, 1.08rem); }
  html body.has-hero .rg-cta { margin-left: 54px; margin-top: 1rem; }
  html body.has-hero .rg-controls {
    left: auto;
    right: 18px;
    bottom: 160px;
    gap: 6px;
    padding: 0;
  }
  html body.has-hero .rg-step[aria-current="true"] { width: 38px; }
  html body.has-hero .rg-news-head {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  html body.has-hero .rg-news-head p { font-size: .66rem; }
  html body.has-hero .rg-news-head > a { font-size: .78rem; }
  html body.has-hero .rg-news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  html body.has-hero .rg-news-lead > img {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  html body.has-hero .rg-news-lead .rg-news-copy { padding-bottom: 0; }
  html body.has-hero .rg-news-item { min-height: 122px; }
  html body.has-hero .rg-news-item .rg-news-copy { padding-left: 16px; }
  html body.has-hero .rg-news-item h3 { font-size: clamp(16px, 4.2vw, 20px); }
  html body.has-hero .follow-section h2 { font-size: clamp(48px, 11vw, 80px); }
}

@media (prefers-reduced-motion: reduce) {
  html body .editorial-brand { transition: none !important; }
  html body.has-hero .rg-cinematic { height: auto !important; }
  html body.has-hero .rg-cinematic .rg-showcase { position: relative; }
  html body.has-hero .rg-news { position: relative; inset: auto; margin-top: -154px; }
  html body.has-hero .rg-slide[aria-hidden="false"] .rg-slide-media { transform: none; filter: none; transition: none; }
  html body.has-hero .rg-slide-copy { transform: none; opacity: 1; }
  html body.has-hero .rg-news-grid,
  html body.has-hero .rg-news-head { transform: none; opacity: 1; }
}

/* Release refinements: a restrained auspicious red accent within the blue system. */
html body.has-hero .rg-news-head p::before,
html body.has-hero :is(.focus-section, .essay-section) .eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  vertical-align: .12em;
  background: var(--rxz-red);
}
html body.has-hero .rg-news-head p::before {
  outline: 1px solid rgba(255, 255, 255, .65);
  outline-offset: 2px;
}

/* A consistent RXZ signature on section landing pages, not repeated in every article. */
html body .rxz-page-mark,
html body .rxz-hero-mark {
  display: block;
  width: clamp(72px, 6vw, 88px);
  height: auto;
  object-fit: contain;
  margin: 18px 0 0;
}
html body .writing-head .rxz-page-mark { margin-top: 22px; }
html body .gallery-hero .rxz-page-mark { margin: 20px auto 0; }
html body .rxz-topics-hero .rxz-page-mark { margin-top: 20px; }
html body .education-hero .rxz-page-mark { margin-top: 20px; }

/* 2026-10-31 editorial polish: blue carries the architecture; red is a precise signal. */
html body.has-hero :is(.lead-story,.latest-section,.selected-section,.home-about,.follow-section) .eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 11px;
  vertical-align: .14em;
  background: var(--rxz-red);
}
html body.has-hero .editorial-index li a {
  transition: color .25s ease, background-color .25s ease;
}
html body.has-hero .editorial-index li a .index-arrow {
  transition: color .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
html body.has-hero .editorial-index li a:is(:hover,:focus-visible) .index-arrow {
  color: var(--rxz-red);
  transform: translate(4px,-4px);
}
html body.has-hero :is(.lead-story,.selected-section) .story-meta > span:first-child {
  color: var(--rxz-blue-deep);
  font-weight: 750;
}
html body.has-hero .essay-list a:is(:hover,:focus-visible) > span {
  color: var(--rxz-red);
}
html body.has-hero .rg-news :is(.rg-news-lead,.rg-news-item) > img {
  transition: transform .75s cubic-bezier(.22,1,.36,1), filter .75s ease;
}
html body.has-hero .rg-news :is(.rg-news-lead,.rg-news-item):is(:hover,:focus-visible) > img {
  transform: scale(1.035);
  filter: saturate(1.06);
}
html body.press-index-page .writing-meta span::before {
  background: var(--rxz-red) !important;
}
html body.press-index-page .writing-row a {
  min-height: clamp(158px,12vw,190px);
  padding-block: 27px;
}
html body.press-index-page .writing-row h2 {
  font-size: clamp(27px,2.55vw,43px) !important;
}
html body.rxz-profile-refresh .rxz-topic-content small::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  vertical-align: .13em;
  background: var(--rxz-red);
}
html body.rxz-profile-refresh :is(.rxz-topic-row,.rxz-platform-row) {
  transition: background-color .28s ease;
}
html body.rxz-profile-refresh :is(.rxz-topic-row,.rxz-platform-row):is(:hover,:focus-visible) {
  background: #f4f7ff;
}
html body.rxz-profile-refresh :is(.rxz-topic-row,.rxz-platform-row):is(:hover,:focus-visible) .rxz-row-index {
  color: var(--rxz-red);
}
html body .article-related > .wrap > h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 14px;
  vertical-align: .22em;
  background: var(--rxz-red);
}
html body .next-story .eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  vertical-align: .12em;
  background: var(--rxz-red);
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}
@media (max-width:700px) {
  html body.press-index-page .writing-row a { min-height: 142px; padding-block: 23px; }
  html body.press-index-page .writing-row h2 { font-size: clamp(24px,6.2vw,32px) !important; }
}
@media (prefers-reduced-motion:reduce) {
  html body.has-hero .rg-news :is(.rg-news-lead,.rg-news-item) > img,
  html body.has-hero .editorial-index li a .index-arrow { transition: none; }
}

/* The manifesto mark recedes; the headline carries the AI energy. */
html body.has-hero .manifesto-rxz {
  width: clamp(58px, 5.2vw, 76px);
  height: auto;
  margin: 0 auto 18px;
}
html body.has-hero .manifesto-section h2 {
  margin-top: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
}
html body.has-hero .manifesto-section h2 {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  letter-spacing: -.045em;
  color: var(--rxz-blue-deep);
}
@supports (-webkit-background-clip: text) {
  html body.has-hero .manifesto-section h2 {
    background-image: linear-gradient(105deg, #2448df 2%, #117695 21%, #7044b6 42%, #be315c 62%, #a35324 81%, #2448df 99%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 9px rgba(52, 85, 220, .27));
    animation: rxz-ai-spectrum 10s linear infinite, rxz-ai-glow 4.8s ease-in-out infinite alternate;
  }
}
@keyframes rxz-ai-spectrum {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
@keyframes rxz-ai-glow {
  from { filter: drop-shadow(0 0 5px rgba(52, 85, 220, .18)); }
  to { filter: drop-shadow(0 0 17px rgba(103, 76, 196, .42)); }
}

@media (max-width: 800px) {
  html body .rxz-page-mark,
  html body .rxz-hero-mark { width: 66px; }
  html body.has-hero .manifesto-rxz { width: 58px; }
  html body.has-hero .manifesto-section h2 { font-size: clamp(35px, 8.5vw, 58px); }
  html body.brand-moments-page .education-grid {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }
  html body.brand-moments-page .education-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  html body.brand-moments-page .education-card-top { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html body.has-hero .manifesto-section h2 {
    animation: none;
    filter: none;
  }
}

/* A calmer editorial reading column; preserve the established body size and author styling. */
html body:not(.has-hero):not(.rg-article) .wh-article-body {
  max-width: 820px;
  padding: clamp(38px, 5vw, 66px) clamp(22px, 4vw, 46px) clamp(76px, 8vw, 116px);
  background: #fff;
}
html body:not(.has-hero):not(.rg-article) .wh-article-main {
  background: #fff;
}
html body:not(.has-hero):not(.rg-article) .article-reading {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(20px, 1.35vw, 22px);
  line-height: 1.76;
  letter-spacing: .005em;
  color: #243047;
}
html body:not(.has-hero):not(.rg-article) .article-reading p {
  margin: 0 0 1.36em;
  line-height: inherit;
  text-indent: 0;
}
html body:not(.has-hero):not(.rg-article) .article-reading :is(h2,h3) {
  width: auto;
  transform: none !important;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 750;
  line-height: 1.38;
  text-align: left;
  color: #17264d;
  margin: 2.25em 0 .72em;
}
html body:not(.has-hero):not(.rg-article) .article-reading h2 { font-size: 1.45em; }
html body:not(.has-hero):not(.rg-article) .article-reading h3 { font-size: 1.2em; }
html body:not(.has-hero):not(.rg-article) .article-reading blockquote {
  margin: 1.8em 0;
  padding: .15em 0 .15em 1.15em;
  border-left: 4px solid var(--rxz-blue);
  font: 650 1.05em/1.66 "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #2847a4;
}
html body:not(.has-hero):not(.rg-article) .article-reading :is(ul,ol) { margin: 0 0 1.35em; }
html body:not(.has-hero):not(.rg-article) .article-reading li { margin: .52em 0; }
html body:not(.has-hero):not(.rg-article) .article-reading a {
  color: #3158ff;
  text-decoration: underline;
  text-underline-offset: .13em;
}
html body:not(.has-hero):not(.rg-article) .article-reading strong { font-weight: 750; }
@media (max-width: 700px) {
  html body:not(.has-hero):not(.rg-article) .wh-article-body {
    padding: 30px clamp(18px, 5vw, 28px) 78px;
  }
  html body:not(.has-hero):not(.rg-article) .article-reading {
    font-size: 19px;
    line-height: 1.75;
  }
}
