.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(190, 154, 82, 0.2), transparent 25rem),
    linear-gradient(145deg, #0d2b22 0%, #173f32 58%, #224b3c 100%);
  color: #fffdf7;
  padding: 9.5rem 0 5.5rem;
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.65fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 2.25rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-hidden] { color: var(--gold); }

.detail-hero .eyebrow { color: #d9bc7d; }

.detail-hero h1 {
  max-width: 12ch;
  margin: 0.8rem 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.detail-hero h1 em { color: #e1c48a; font-weight: 400; }

.detail-lead {
  max-width: 41rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.detail-facts li {
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
}

.detail-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.detail-visual::before {
  position: absolute;
  width: 75%;
  aspect-ratio: 1;
  top: 14%;
  border: 1px solid rgba(214, 180, 112, 0.26);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.025), 0 0 0 84px rgba(255, 255, 255, 0.018);
  content: "";
}

.detail-visual img {
  position: relative;
  width: min(100%, 25rem);
  max-height: 43rem;
  border-radius: 2.1rem;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 2.5rem 5rem rgba(2, 13, 10, 0.45);
  transform: rotate(2deg);
}

.detail-body { padding: clamp(5rem, 10vw, 9rem) 0; }

.detail-intro {
  display: grid;
  grid-template-columns: minmax(13rem, 0.45fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.detail-intro h2,
.detail-step h2,
.related-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.2vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.detail-intro-copy > p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.2;
}

.detail-intro-copy p {
  max-width: 45rem;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.85;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: clamp(4rem, 8vw, 7rem) 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-card {
  min-height: 20rem;
  padding: clamp(2rem, 4vw, 3.4rem);
  background: var(--paper);
}

.detail-card .card-number {
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.detail-card h3 {
  margin: 3.4rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.detail-card p { margin: 0; color: var(--muted); line-height: 1.75; }

.detail-step {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.detail-step + .detail-step { border-top: 1px solid var(--line); }
.detail-step.reverse .step-copy { order: 2; }
.detail-step.reverse .step-media { order: 1; }

.step-copy p { color: var(--muted); font-size: 1.02rem; line-height: 1.8; }

.step-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.step-list li::before {
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold-dark);
  content: "";
}

.step-media {
  display: flex;
  justify-content: center;
  min-height: 32rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1.2rem;
  background: var(--green);
  overflow: hidden;
}

.step-media img {
  width: min(100%, 23rem);
  max-height: 39rem;
  border-radius: 1.6rem;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 1.8rem 4rem rgba(0, 0, 0, 0.28);
}

.detail-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  margin: 0 0 clamp(5rem, 9vw, 8rem);
  padding: 1.5rem;
  border: 1px solid rgba(145, 101, 37, 0.2);
  border-radius: 0.75rem;
  background: rgba(190, 154, 82, 0.08);
}

.detail-note strong { color: var(--green); }
.detail-note p { margin: 0; color: var(--muted); line-height: 1.7; }

.related {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: #e9e2d4;
}

.related-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related-card {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border: 1px solid rgba(18, 55, 43, 0.13);
  border-radius: 0.8rem;
  background: rgba(255, 253, 247, 0.65);
  transition: transform 180ms ease, background 180ms ease;
}

.related-card:hover { transform: translateY(-4px); background: #fffdf7; }
.related-card span { color: var(--gold-dark); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.related-card h3 { margin: 2rem 0 0; font-family: var(--serif); font-size: 2.1rem; font-weight: 400; }

.not-found-page { background: var(--green); color: #fff; }
.not-found-main { width: min(100% - 2rem, 56rem); min-height: 100vh; display: flex; flex-direction: column; justify-content: center; margin: 0 auto; padding: 5rem 0; }
.not-found-main .brand { align-self: flex-start; margin-bottom: 6rem; color: #fff; }
.not-found-main h1 { margin: 0 0 1.5rem; font-family: var(--serif); font-size: clamp(3.5rem, 9vw, 7.5rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.055em; }
.not-found-main h1 em { color: #e1c48a; font-weight: 400; }
.not-found-main > p:not(.eyebrow) { max-width: 38rem; color: rgba(255, 255, 255, 0.7); font-size: 1.1rem; line-height: 1.7; }

@media (max-width: 900px) {
  .detail-hero-inner, .detail-intro, .detail-step { grid-template-columns: 1fr; }
  .detail-hero { padding-top: 8rem; }
  .detail-visual { margin-top: 1rem; }
  .detail-visual img { width: min(72vw, 24rem); }
  .detail-grid, .related-grid { grid-template-columns: 1fr; }
  .detail-card { min-height: 0; }
  .detail-card h3 { margin-top: 2rem; }
  .detail-step.reverse .step-copy, .detail-step.reverse .step-media { order: initial; }
}

@media (max-width: 600px) {
  .detail-hero { padding-bottom: 4rem; }
  .detail-hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .detail-visual img { width: min(86vw, 22rem); }
  .step-media { min-height: 0; padding: 1.5rem; }
  .related-heading { align-items: start; flex-direction: column; }
}
