:root {
  --cream: #F5EFE6;
  --ink: #2B2620;
  --red: #E4572E;
  --amber: #F2A900;
  --brown: #4A3728;
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(245, 239, 230, .92);
  --light-gray: #EBE5DA;
  --mid-gray: #8A7A68;
  --deep-blue: #1A2E3F;
  --sage: #7A9B76;
  --font-heading: "Playfair Display", Georgia, "Songti SC", "SimSun", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .9, .3, 1);
  --shadow-sm: 0 1px 2px rgba(43, 38, 32, .06);
  --shadow-lg: 0 16px 40px rgba(43, 38, 32, .16);
  --radius: 6px;
  --fs-display: clamp(2.5rem, 6vw, 4.5rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.5rem, 3vw, 2rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(74, 55, 40, .055) 1px, transparent 1px);
  background-size: 24px 24px;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.22;
  margin: 0 0 .45em;
  font-weight: 800;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
a { color: var(--red); text-decoration-thickness: .08em; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
[hidden] { display: none !important; }
::selection { background: var(--red); color: var(--cream); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 640px) { .container { padding-inline: 28px; } }
@media (min-width: 1280px) { .container { padding-inline: 32px; } }

.main-content { flex: 1 0 auto; scroll-margin-top: 96px; }

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 400;
  padding: 12px 20px;
  background: var(--red);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; }

.topbar {
  background: var(--deep-blue);
  color: rgba(245, 239, 230, .88);
  font-size: .78rem;
  border-bottom: 1px solid rgba(245, 239, 230, .12);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  min-height: 34px;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.topbar__item--phone { color: rgba(245, 239, 230, .78); }
.topbar__item--icp { color: rgba(245, 239, 230, .52); }
.topbar__live {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.topbar__live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  animation: topbar-pulse 1.8s ease-out infinite;
}
.topbar__link {
  margin-left: auto;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  padding: 3px 0;
  border-bottom: 1px solid var(--amber);
  white-space: nowrap;
}
.topbar__link:hover { color: var(--amber); border-bottom-color: var(--cream); }
@media (max-width: 640px) {
  .topbar__item--phone,
  .topbar__item--icp { display: none; }
}
@keyframes topbar-pulse {
  0% { transform: scale(.55); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43, 38, 32, .12);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--red), var(--amber));
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -.02em;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.brand__mark::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--deep-blue);
  box-shadow: 0 0 0 2px rgba(245, 239, 230, .65);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-size: 1rem; font-weight: 800; letter-spacing: .02em; }
.brand__sub {
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--mid-gray);
  text-transform: uppercase;
}
.brand__sub em { font-style: normal; color: var(--red); font-weight: 800; }
.brand--footer .brand__mark { width: 40px; height: 40px; font-size: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--cream);
  border: 1px solid rgba(43, 38, 32, .22);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 12px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.site-nav__num {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  color: var(--mid-gray);
  letter-spacing: .04em;
}
.site-nav__label { display: inline-flex; align-items: center; }
.site-nav__link:hover { background: var(--light-gray); color: var(--ink); }
.site-nav__link[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.site-nav__link[aria-current="page"] .site-nav__num { color: var(--red); }
.site-nav__cta { margin-left: 10px; font-size: .84rem; padding: 10px 16px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--ink);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height .4s var(--ease), opacity .3s var(--ease), visibility .3s var(--ease);
  }
  .site-nav[data-open] {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 16px 4px;
  }
  .site-nav__link {
    justify-content: space-between;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(43, 38, 32, .09);
    border-radius: 0;
    font-size: .98rem;
  }
  .site-nav__cta { margin: 14px 16px 18px; display: flex; justify-content: center; }
}

.site-footer {
  flex-shrink: 0;
  margin-top: 90px;
  background: var(--brown);
  color: var(--cream);
}
.site-footer__main { padding: 60px 0 28px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 36px 40px;
}
.site-footer .brand__name { color: var(--cream); }
.site-footer .brand__sub { color: rgba(245, 239, 230, .62); }
.site-footer__note {
  margin: 18px 0 0;
  max-width: 44ch;
  font-size: .88rem;
  line-height: 1.8;
  color: rgba(245, 239, 230, .76);
}
.site-footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
}
.site-footer__title::before { content: ""; width: 10px; height: 10px; background: var(--red); flex-shrink: 0; }
.site-footer__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__list a {
  color: rgba(245, 239, 230, .86);
  text-decoration: none;
  text-decoration: underline transparent;
  text-underline-offset: 4px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.site-footer__list a:hover { color: var(--amber); text-decoration-color: var(--amber); }
.site-footer__list--info {
  font-size: .86rem;
  line-height: 1.7;
  color: rgba(245, 239, 230, .72);
}
.site-footer__list--info li { display: flex; gap: 8px; align-items: baseline; }
.site-footer__list--info li::before { content: "▸"; color: var(--red); flex-shrink: 0; }
.site-footer__bar {
  border-top: 1px solid rgba(245, 239, 230, .18);
  padding: 18px 0 22px;
  font-size: .78rem;
  color: rgba(245, 239, 230, .66);
}
.site-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
}
.site-footer__copyright { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.site-footer__legal a { color: rgba(245, 239, 230, .82); text-decoration: none; }
.site-footer__legal a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__icp { color: rgba(245, 239, 230, .55); }
@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bar-inner { flex-direction: column; align-items: flex-start; gap: 6px 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  border: 1px solid transparent;
  border-radius: 2px 12px 12px 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: var(--ink); border-color: var(--red); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(43, 38, 32, .45); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  color: var(--deep-blue);
  background: rgba(26, 46, 63, .09);
  border-left: 3px solid var(--red);
  border-radius: 2px;
}
.tag--amber { border-left-color: var(--amber); color: var(--brown); background: rgba(242, 169, 0, .16); }
.tag--sage { border-left-color: var(--sage); color: rgba(74, 55, 40, .9); background: rgba(122, 155, 118, .16); }

.card {
  position: relative;
  padding: 20px;
  background: var(--cream);
  border: 1px solid rgba(43, 38, 32, .13);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card--glass {
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, .85);
}
.card--clip {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  border-radius: 0;
}
.card--ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.card--ink h1, .card--ink h2, .card--ink h3, .card--ink h4 { color: var(--cream); }

.section { padding: 52px 0; border-bottom: 1px solid rgba(43, 38, 32, .07); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 6px 12px 6px 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(228, 87, 46, .08);
  border-left: 4px solid var(--red);
}
.section-label::before { content: ""; width: 9px; height: 9px; background: var(--red); display: inline-block; }
.section-title { margin-bottom: 10px; font-size: var(--fs-h2); }
.section-desc { margin: 0 0 24px; color: var(--mid-gray); max-width: 62ch; line-height: 1.75; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.bento__cell { grid-column: span 4; }
.bento__cell--wide { grid-column: span 8; }
.bento__cell--tall { grid-row: span 2; }
.bento__cell--full { grid-column: 1 / -1; }
@media (max-width: 1024px) {
  .bento__cell, .bento__cell--wide { grid-column: span 6; }
  .bento__cell--tall { grid-row: auto; }
}
@media (max-width: 640px) {
  .bento__cell, .bento__cell--wide { grid-column: 1 / -1; }
}

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(228, 87, 46, .32);
}
.timeline__item { position: relative; padding: 0 0 30px 18px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--amber);
}
.timeline__date {
  display: block;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .06em;
}
.timeline__title { margin: 4px 0 6px; font-family: var(--font-heading); font-size: 1.08rem; font-weight: 800; }
.timeline__desc { color: var(--mid-gray); font-size: .92rem; line-height: 1.7; margin: 0; }

.breadcrumb { margin: 0 0 26px; padding: 0; font-size: .8rem; color: var(--mid-gray); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item:not(:last-child)::after { content: "/"; color: rgba(138, 122, 104, .7); }
.breadcrumb__link { color: var(--mid-gray); text-decoration: none; }
.breadcrumb__link:hover { color: var(--red); }
.breadcrumb__current { color: var(--ink); font-weight: 600; }

.prose {
  max-width: 72ch;
  font-size: .98rem;
  line-height: 1.9;
  color: var(--ink);
}
.prose h2 {
  margin-top: 1.6em;
  font-size: var(--fs-h2);
  border-bottom: 2px solid rgba(228, 87, 46, .25);
  padding-bottom: .3em;
}
.prose h3 { margin-top: 1.4em; font-size: var(--fs-h3); }
.prose p { margin: .9em 0; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.4em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .4em 0; }
.prose strong { color: var(--red); font-weight: 700; }
.prose blockquote {
  margin: 1.2em 0;
  padding: .6em 1em;
  border-left: 4px solid var(--red);
  background: rgba(228, 87, 46, .06);
  color: var(--brown);
}

.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 20% 30%, rgba(242, 169, 0, .35), transparent 42%),
    linear-gradient(145deg, var(--deep-blue), var(--ink));
  border-radius: var(--radius);
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 239, 230, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 239, 230, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: 1;
}
.media::after {
  content: attr(aria-label);
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cream);
  background: rgba(26, 46, 63, .85);
  border-left: 3px solid var(--red);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media--landscape { aspect-ratio: 16 / 9; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--panorama { aspect-ratio: 21 / 9; }

.page-hero {
  position: relative;
  padding: 56px 0 28px;
  border-bottom: 1px solid rgba(43, 38, 32, .14);
  margin-bottom: 40px;
}
.page-hero::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--red), var(--amber));
}
.page-hero__title { max-width: 18em; font-size: var(--fs-h1); }
.page-hero__desc { margin: 14px 0 0; max-width: 64ch; color: var(--mid-gray); font-size: 1.05rem; line-height: 1.75; }

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: transparent;
  border: 1px solid rgba(43, 38, 32, .22);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mid-gray); transition: background .2s var(--ease); }
.filter-pill:hover { border-color: var(--red); color: var(--red); }
.filter-pill:hover::before { background: var(--red); }
.filter-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.filter-pill[aria-pressed="true"]::before { background: var(--amber); }

html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
html.has-js [data-reveal].is-revealed { opacity: 1; transform: none; }
html.has-js [data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
html.has-js [data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
html.has-js [data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--red) 0 60%, var(--amber));
  pointer-events: none;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 6px;
  background: var(--deep-blue);
  color: var(--cream);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), visibility .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.back-top:hover { background: var(--red); color: var(--ink); }
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html.has-js [data-reveal] { opacity: 1; transform: none; }
  .topbar__live::after { animation: none; }
}
