* { box-sizing: border-box; }
html { min-height: 100%; color-scheme: dark; background: #080303; }
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 70% 4%, rgba(144, 29, 14, .2), transparent 30%),
    linear-gradient(180deg, #150504, #080303 42%, #0d0403);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.noise { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.page-container { width: min(calc(100% - 40px), 1180px); margin-inline: auto; position: relative; z-index: 2; }

.subpage-main { min-height: 78vh; padding-top: var(--shell-header); }
.subpage-hero {
  min-height: 540px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 181, 61, .2);
}
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 2, 2, .98), rgba(13, 4, 3, .84) 48%, rgba(27, 6, 4, .3)),
    radial-gradient(circle at 76% 46%, rgba(255, 126, 31, .24), transparent 19%),
    repeating-linear-gradient(120deg, transparent 0 78px, rgba(255, 158, 43, .025) 79px 80px);
}
.subpage-hero::after {
  content: "";
  width: min(46vw, 590px);
  aspect-ratio: 1;
  position: absolute;
  right: -4vw;
  top: 50%;
  z-index: -2;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 192, 75, .23);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 188, 77, .08) 0 20%, transparent 21%),
    repeating-radial-gradient(circle, transparent 0 37px, rgba(255, 171, 48, .06) 38px 39px);
  box-shadow: 0 0 100px rgba(255, 68, 20, .12);
}
.breadcrumb { margin-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #9e8d86; font-size: .68rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { color: #c3802e; font-style: normal; }
.page-eyebrow { margin: 0 0 13px; color: var(--shell-gold); font-size: .7rem; font-weight: 800; letter-spacing: .2em; }
.subpage-hero h1 { max-width: 850px; margin: 0 0 20px; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.subpage-hero h1 span { color: var(--shell-gold); }
.subpage-hero .lead { max-width: 740px; margin: 0; color: #d8cbc4; font-size: clamp(.92rem, 1.5vw, 1.08rem); line-height: 1.8; }
.template-badges { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 9px; }
.template-badges span { padding: 8px 12px; border: 1px solid rgba(255, 183, 62, .27); border-radius: 999px; color: #cdbdb5; background: rgba(26, 6, 4, .72); font-size: .61rem; }
.template-badges strong { color: var(--shell-gold); }

.scaffold-section { padding: 90px 0; position: relative; }
.scaffold-section + .scaffold-section { border-top: 1px solid rgba(255, 181, 61, .13); }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading small { color: var(--shell-gold); font-size: .64rem; font-weight: 800; letter-spacing: .17em; }
.section-heading h2 { margin: 10px 0 14px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: #b6a59e; line-height: 1.75; }

.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.route-card {
  min-height: 188px;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 179, 55, .22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(55, 12, 8, .68), rgba(12, 3, 3, .84));
  box-shadow: 0 20px 42px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .25s, border-color .25s;
}
.route-card:hover { transform: translateY(-5px); border-color: rgba(255, 197, 83, .58); }
.route-card .route-index { color: #bf7a29; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.route-card h3 { margin: 18px 0 8px; font-size: 1rem; }
.route-card p { margin: 0 0 20px; color: #aa9992; font-size: .7rem; line-height: 1.6; }
.route-card .route-link { margin-top: auto; color: var(--shell-gold); font-size: .66rem; font-weight: 700; }

.scaffold-panel {
  padding: 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  border: 1px solid rgba(255, 181, 61, .23);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(42, 9, 6, .74), rgba(11, 3, 3, .88));
}
.scaffold-panel h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.5rem); }
.scaffold-panel p { margin: 0; color: #b6a59e; line-height: 1.75; }
.scaffold-checklist { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.scaffold-checklist li { padding: 11px 13px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #dbcfc8; font-size: .72rem; }
.scaffold-checklist li::before { content: "✓"; margin-right: 9px; color: var(--shell-gold); }
.draft-notice { margin-top: 24px; padding: 13px 15px; border-left: 2px solid var(--shell-gold); color: #a89891; background: rgba(255, 176, 51, .05); font-size: .64rem; line-height: 1.6; }

.entity-strip {
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 182, 63, .21);
  border-radius: 18px;
  background: rgba(17, 4, 3, .76);
}
.entity-strip article { min-width: 0; }
.entity-strip small { color: #95857e; font-size: .6rem; }
.entity-strip strong { margin-top: 5px; display: block; color: var(--shell-cream); font-size: .84rem; }
.entity-strip i { color: var(--shell-gold); font-style: normal; font-size: 1.1rem; }

@media (max-width: 920px) {
  .subpage-hero { min-height: 500px; }
  .subpage-hero::after { width: 520px; right: -250px; opacity: .65; }
  .route-grid { grid-template-columns: 1fr 1fr; }
  .scaffold-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page-container { width: calc(100% - 28px); }
  .subpage-hero { min-height: 520px; }
  .subpage-hero h1 { font-size: 2.65rem; }
  .route-grid { grid-template-columns: 1fr; }
  .scaffold-section { padding: 68px 0; }
  .entity-strip { grid-template-columns: 1fr; }
  .entity-strip i { transform: rotate(90deg); }
}
