/* ==========================================================================
   Aurem — Journal section (featured stage + article list + newsletter).
   Uses brand tokens from hero.css (:root --ah-*) and shared components.
   ========================================================================== */

.ah-journal {
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(80px, 12vh, 150px) 0 clamp(90px, 14vh, 160px);
}
.ah-journal > .ah-grain { z-index: 0; opacity: .06; }
.ah-journal__inner { position: relative; z-index: 1; max-width: 1680px; margin: 0 auto; padding: 0 var(--ah-gutter); }

/* ---------- Intro + filters ---------- */
.ah-journal__intro {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-top: clamp(40px, 8vh, 90px);
}
.ah-journal__title {
  font-family: var(--ah-display); font-variation-settings: "opsz" 96;
  font-weight: 600; font-size: clamp(2.6rem, 6.4vw, 7rem);
  line-height: .96; letter-spacing: -.055em;
}
.ah-journal__title em { font-family: var(--ah-serif); font-style: italic; font-weight: 400; font-size: 1.06em; color: var(--ah-blush); letter-spacing: -.02em; }
.ah-journal__filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: .6em; }
/* .ah-chip → components.css */

/* ---------- Grid ---------- */
.ah-journal__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  margin-top: clamp(40px, 8vh, 80px);
  align-items: start;
}

/* ---------- Stage ---------- */
.ah-stage { position: sticky; top: 100px; }
.ah-stage__media {
  position: relative; display: block;
  aspect-ratio: 3 / 2;
  border-radius: var(--ah-radius-lg);
  overflow: hidden; isolation: isolate;
  -webkit-mask-image: linear-gradient(#000, #000); mask-image: linear-gradient(#000, #000);
  background: var(--ah-wine);
}
.ah-stage__slices {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.3) brightness(.9);
  transition: filter .8s var(--ah-ease);
}
.ah-js-journal .ah-stage__slices { background-image: none !important; }
.ah-slice {
  position: absolute; top: 0; bottom: 0;
  background-repeat: no-repeat;
  will-change: transform;
}
/* brand duotone over the slices; lifts on hover */
.ah-stage__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  mix-blend-mode: multiply;
  background:
    radial-gradient(70% 55% at 78% 22%, #ffc08a, transparent 70%),
    linear-gradient(170deg, #ff6a3a 0%, #c8102e 45%, #4a0612 80%, #12040a 100%);
  transition: opacity .8s var(--ah-ease);
}
.ah-stage__media::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
@media (hover: hover) {
  .ah-stage__media:hover::before { opacity: 0; }
  .ah-stage__media:hover .ah-stage__slices { filter: none; }
}
.ah-stage__cat {
  position: absolute; left: 18px; top: 18px; z-index: 4;
  padding: 7px 14px; border-radius: 999px;
  background: var(--ah-ember); color: var(--ah-ink);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}

.ah-stage__body { padding-top: 28px; }
.ah-stage__meta { display: flex; gap: 16px; font-size: 13px; color: var(--ah-muted); }
.ah-stage__meta span + span::before { content: "·"; margin-right: 16px; color: var(--ah-ember); }
.ah-stage__title {
  margin-top: 14px;
  font-family: var(--ah-display); font-weight: 600;
  font-size: clamp(1.8rem, 2.8vw, 3rem); line-height: 1.05; letter-spacing: -.04em;
  overflow: hidden; padding-bottom: .08em;
}
.ah-stage__title-i { display: block; }
.ah-stage__excerpt { margin-top: 14px; max-width: 36rem; font-size: 16px; line-height: 1.65; color: var(--ah-muted); }
.ah-stage__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.ah-stage__author { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.ah-stage__author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ah-ember); }

/* ---------- Article list ---------- */
.ah-posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ah-line); }
.ah-post {
  position: relative;
  background: linear-gradient(var(--ah-line), var(--ah-line)) left bottom / 100% 1px no-repeat;
}
.ah-post__link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 48px; align-items: center; gap: 16px;
  padding: 26px 4px 26px 0;
  transition: opacity .5s var(--ah-ease);
}
.ah-post__num { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ah-muted); transition: color .4s; }
.ah-post__main { display: grid; gap: 8px; }
.ah-post__cat { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ah-gold); }
.ah-post__title {
  font-family: var(--ah-display); font-weight: 600;
  font-size: clamp(1.2rem, 1.6vw, 1.6rem); line-height: 1.2; letter-spacing: -.03em;
  transition: transform .7s var(--ah-ease), color .4s;
}
.ah-post__meta { font-size: 13px; color: var(--ah-muted); }
.ah-post__arrow {
  display: grid; place-items: center; justify-self: end;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ah-line);
  transition: background-color .4s, border-color .4s, transform .7s var(--ah-ease);
}
.ah-post__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ah-post__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; overflow: hidden; }
.ah-post__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ah-crimson), var(--ah-ember), var(--ah-gold)); transform: scaleX(0); transform-origin: left; }

.ah-post.is-active .ah-post__num { color: var(--ah-ember); }
.ah-post.is-active .ah-post__title { transform: translateX(10px); color: var(--ah-blush); }
.ah-post.is-active .ah-post__arrow { background: var(--ah-ember); border-color: var(--ah-ember); transform: rotate(45deg); }
@media (hover: hover) {
  .ah-posts:hover .ah-post:not(:hover) .ah-post__link { opacity: .4; }
}
.ah-post.is-hidden { display: none; }

/* ---------- Newsletter ---------- */
.ah-news {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center;
  gap: clamp(28px, 5vw, 80px);
  margin-top: clamp(80px, 13vh, 150px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--ah-radius-lg);
  border: 1px solid var(--ah-line);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 90, 42, .18), transparent 60%),
    radial-gradient(50% 100% at 0% 100%, rgba(200, 16, 46, .14), transparent 60%),
    rgba(255, 255, 255, .02);
  overflow: hidden;
}
.ah-news__title {
  margin-top: 14px;
  font-family: var(--ah-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -.045em;
}
.ah-news__title em { font-family: var(--ah-serif); font-style: italic; font-weight: 400; color: var(--ah-blush); }
.ah-news__field { position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ah-news__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ah-news__input {
  flex: 1 1 240px; min-width: 0;
  height: 58px; padding: 0 4px;
  background: none; border: 0; border-bottom: 1px solid var(--ah-line);
  color: var(--ah-text); font: 500 clamp(18px, 1.6vw, 22px) var(--ah-sans);
  outline: none;
}
.ah-news__input::placeholder { color: rgba(247, 239, 233, .35); }
.ah-news__line {
  position: absolute; left: 0; bottom: 0; height: 2px;
  width: calc(100% - 16px - var(--btn-w, 190px));
  background: linear-gradient(90deg, var(--ah-crimson), var(--ah-ember), var(--ah-gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ah-ease);
  pointer-events: none;
}
.ah-news__input:focus ~ .ah-news__line { transform: scaleX(1); }
.ah-news.is-error .ah-news__line { transform: scaleX(1); background: #ff3b3b; }
.ah-news__msg { flex-basis: 100%; min-height: 1.4em; font-size: 14px; color: var(--ah-muted); }
.ah-news.is-error .ah-news__msg { color: #ff8a7a; }
.ah-news.is-done .ah-news__msg { color: var(--ah-gold); }
.ah-spark {
  position: absolute; z-index: 5; pointer-events: none;
  font-size: 16px; color: var(--ah-ember);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .ah-journal__grid { grid-template-columns: 1fr; }
  .ah-stage { position: relative; top: auto; }
  .ah-news { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ah-journal__head .ah-label:last-child { display: none; }
  .ah-post__link { grid-template-columns: 30px minmax(0, 1fr) 40px; gap: 12px; padding: 20px 0; }
  .ah-post__arrow { width: 38px; height: 38px; }
  .ah-news__line { width: 100%; }
  .ah-news__btn { width: 100%; justify-content: space-between; }
}
