/* The Personal Intelligence editorial layer is deliberately local to News.
   Article height follows the content; no full-screen pins or reading gaps. */
.journal-page {
  --journal-line: #90bdd32b;
  --journal-surface: #111d2b;
  --journal-ease: cubic-bezier(.22,.8,.22,1);
  background: radial-gradient(ellipse at 70% 4%,#1c354b55,transparent 32rem), #0a111a;
}
.journal-page .site-progress { top: 0; }
.journal-page .site-header nav a[aria-current="page"]::after,
.journal-page .site-header nav a[data-current-section]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -12px;
  height: 2px;
  background: linear-gradient(90deg,#9bd9f0,#bbaeec);
}
.journal-page .site-header nav a[data-current-section] { color: var(--ice); }
.journal-page :focus-visible { outline: 2px solid #a9e2ee; outline-offset: 5px; }
.journal-main { padding-top: var(--head); }
.journal-shell { width: min(100%,1350px); margin-inline: auto; padding-inline: var(--gutter); }
.journal-tag {
  font: 500 .71rem/1.5 Martian,monospace;
  letter-spacing: .09em; text-transform: uppercase;
  color: #acd0e2;
}
.journal-masthead {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: 1px solid var(--journal-line);
  background: radial-gradient(ellipse at 78% 30%,#26496350,transparent 65%),
              linear-gradient(118deg,#0e1926,#101b2c 70%,#1b2034);
}
.journal-masthead .journal-shell {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr);
  align-items: center; gap: 3rem;
  padding-top: clamp(3.1rem,5.9vw,5.8rem);
  padding-bottom: clamp(3rem,4.5vw,4.6rem);
}
.journal-masthead .journal-heading { position: relative; z-index: 2; }
.journal-masthead .journal-heading .eyebrow { margin-bottom: 1.1rem; }
.journal-masthead h1 {
  font: 900 clamp(4.1rem,10.4vw,9.25rem)/.93 Gaude,sans-serif;
  letter-spacing: -.045em;
  color: #e1f1fc;
}
.journal-masthead h1 em {
  color: #b9c9fa;
  background: linear-gradient(110deg,#a4e4f1,#cbbaf8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.journal-masthead .journal-deck {
  position: relative; z-index: 2; border-left: 1px solid #8db9d43f;
  padding: 1.05rem 0 1.05rem clamp(1.35rem,3.3vw,3rem);
}
.journal-deck h2 { font-size: clamp(1.6rem,2.65vw,2.6rem); line-height: 1.19; letter-spacing: -.045em; }
.journal-deck p { font-size: clamp(1rem,1.35vw,1.125rem); line-height: 1.65; max-width: 36rem; margin-top: .8rem; }
.journal-masthead .journal-orbit {
  position: absolute; z-index: -1; right: -5%; top: 50%; translate: 0 -50%;
  width: min(48vw,650px); height: auto; opacity: .19; pointer-events: none;
  filter: drop-shadow(0 0 44px #659cdb4a);
}
.journal-feed { padding-block: clamp(2.35rem,4.6vw,4.4rem) clamp(3.3rem,6vw,5.5rem); }
.journal-feed-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.1rem; margin-bottom: 1.55rem; border-bottom: 1px solid var(--journal-line);
}
.journal-feed-bar h2 { font-size: clamp(1.25rem,2vw,1.8rem); letter-spacing: -.035em; line-height: 1.25; }
.journal-feed-bar .journal-tag { text-align: right; white-space: nowrap; }
.journal-story-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(1.1rem,2.25vw,2.05rem);
}
.journal-card {
  min-width: 0; position: relative; display: flex; flex-direction: column;
  border: 1px solid #87b3d454; border-radius: 1.125rem; overflow: hidden;
  background: linear-gradient(136deg,#172a3be3 0%,#111c2de8 53%,#191c32);
  box-shadow: inset 0 1px 1px #d1ebff13,0 15px 35px #0003;
  transition: border-color .28s,box-shadow .28s;
}
.journal-card:hover,.journal-card:focus-within { border-color: #a4d9edb0; box-shadow: 0 16px 38px #0005,0 0 28px #80cbe916; }
.journal-card .journal-card-image { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #101d2a; }
.journal-card-image img,.journal-hero-image img,.journal-related-image img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.journal-card-image img,.journal-related-image img { transition: transform .7s var(--journal-ease),filter .45s; }
.journal-card:hover .journal-card-image img,.journal-related-card:hover img { transform: scale(1.035); filter: brightness(1.045); }
.journal-card-image::after {
  content: ""; position: absolute; inset: auto 0 0; height: 35%;
  background: linear-gradient(transparent,#06101d4f); pointer-events: none;
}
.journal-card-content { display: flex; flex-direction: column; flex: 1; padding: clamp(1.3rem,2.65vw,2.35rem); }
.journal-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; color: #9ab9cc; font-size: .82rem; line-height: 1.5; }
.journal-card-meta .journal-category { color: #b4dfec; font-weight: 750; }
.journal-card-meta .journal-meta-separator { width: 3px; height: 3px; border-radius: 100%; background: #9bbccd; }
.journal-card h3 {
  margin-top: 1rem; margin-bottom: .75rem;
  font: 900 clamp(1.7rem,2.45vw,2.44rem)/1.17 Gaude,sans-serif;
  letter-spacing: -.02em; color: #eaf4fc; text-wrap: balance;
}
.journal-card h3 a:hover { color: var(--ice); }
.journal-card-content > p {
  font-size: clamp(.99rem,1.18vw,1.08rem); line-height: 1.66; color: #b4c9d9; margin-bottom: 1.4rem;
}
.journal-card-foot {
  display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--journal-line); padding-top: 1.15rem; margin-top: auto;
}
.journal-byline { display: flex; align-items: center; gap: .7rem; }
.journal-byline img {
  display: block; flex: none; width: 2.2rem; height: 2.2rem; object-fit: contain;
  padding: .22rem; background: #182f43; border: 1px solid #91bedb54; border-radius: 50%;
}
.journal-byline span { display: flex; flex-direction: column; gap: .02rem; color: #bad1e0; font-size: .79rem; line-height: 1.45; }
.journal-byline span b { font-size: .87rem; color: #e2f2fc; font-weight: 700; }
.journal-read-link { color: var(--ice); font-size: .95rem; font-weight: 750; display: inline-flex; padding-block: .4rem; align-items: center; gap: .55rem; }
.journal-read-link::after { content: ""; display: block; width: 1.1rem; height: .12rem; background: linear-gradient(90deg,var(--ice),#c5b0f7); transform-origin: left; transition: transform .25s; }
.journal-read-link:hover::after { transform: scaleX(1.42); }
.journal-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.13fr) minmax(0,1fr); }
.journal-feature .journal-card-image { height: 100%; min-height: 20rem; aspect-ratio: auto; }
.journal-feature .journal-card-content { padding: clamp(1.65rem,3.6vw,3.2rem); justify-content: center; }
.journal-feature h3 { font-size: clamp(2rem,2.81vw,3rem); line-height: 1.14; }
.journal-feature .journal-card-foot { margin-top: 0; }
.journal-feature .journal-feature-label {
  position: absolute; top: 1.05rem; left: 1.05rem; z-index: 1;
  background: #101f2ae8; border: 1px solid #a4dceb78;
  padding: .5rem .8rem; border-radius: 999px; color: #d1eaf3;
}
.journal-company-link { border-top: 1px solid var(--journal-line); background: linear-gradient(105deg,#0d1a27,#161f32); }
.journal-company-link .journal-shell { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: 2.45rem; }
.journal-company-link h2 { font-size: clamp(1.35rem,2.2vw,1.9rem); letter-spacing: -.04em; margin-top: .35rem; }
.journal-company-link p { margin-top: .3rem; line-height: 1.55; }
.journal-company-link .glass-button { flex: none; }
.journal-company-link .glass-button img { width: 1.65rem; height: 1.65rem; object-fit: contain; }

/* Individual editorial stories */
.journal-article-main { padding-bottom: clamp(3.5rem,7vw,6.25rem); }
.journal-reader-nav { padding-block: 1.9rem 1.1rem; }
.journal-back {
  display: inline-flex; align-items: center; gap: .7rem; color: #b4e0ed;
  font-weight: 700; font-size: .96rem; padding-block: .35rem;
}
.journal-back::before { content: ""; flex: none; width: .85rem; height: .85rem; border: solid #abdbe9; border-width: 0 0 2px 2px; rotate: 45deg; border-radius: 1px; }
.journal-back:hover { color: white; }
.journal-article {
  max-width: 69rem; margin-inline: auto; border: 1px solid #769dbb46; border-radius: 1.25rem; overflow: hidden;
  background: linear-gradient(135deg,#162333,#101b29 33%,#101a28 80%,#161d2c);
  box-shadow: 0 20px 70px #0003;
  padding: clamp(1.85rem,6.2vw,5.5rem) clamp(1.5rem,6.2vw,6rem);
}
.journal-article-head { position: relative; }
.journal-article-head .journal-tag { margin-bottom: 1.35rem; }
.journal-article-head .journal-header-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem 1.5rem; margin-bottom: 1.6rem; }
.journal-article-head .journal-card-meta { font-size: .9rem; }
.journal-article-head h1 {
  font: 900 clamp(2.5rem,4.65vw,4.65rem)/1.05 Gaude,sans-serif;
  letter-spacing: -.026em; color: #eaf5fc; text-wrap: balance;
}
.journal-article-head .journal-standfirst {
  color: #b9e4ef; font-size: clamp(1.2rem,2vw,1.5rem); line-height: 1.48;
  font-weight: 650; letter-spacing: -.025em; margin-top: 1.45rem;
}
.journal-hero-image { overflow: hidden; border-radius: .85rem; border: 1px solid #80aecb56; aspect-ratio: 16 / 10; background: #172635; margin-top: 2rem; }
.journal-image-note { margin-top: .55rem; color: #90aebf; font-size: .8rem; line-height: 1.5; }
.journal-article-copy { max-width: 46.5rem; margin: 2.4rem auto 0; color: #c7dce8; font-size: clamp(1.04rem,1.25vw,1.16rem); line-height: 1.81; }
.journal-article-copy p { color: #c1d4e1; }
.journal-article-copy p + p { margin-top: 1.12rem; }
.journal-article-copy h2 { font-size: clamp(1.55rem,2.45vw,2.22rem); line-height: 1.25; letter-spacing: -.045em; color: #e9f4fa; margin: 2.5rem 0 .8rem; }
.journal-article-copy h2 em { color: #b3e5f0; }
.journal-article-copy .journal-opening { font-size: clamp(1.18rem,1.65vw,1.4rem); font-weight: 700; color: #edf6fa; line-height: 1.53; }
.journal-article-copy a:not(.glass-button) { color: #ace6f2; text-decoration: underline; text-decoration-color: #8ecddd70; text-underline-offset: .2em; }
.journal-article-copy a:not(.glass-button):hover { color: #edfcff; }
.journal-article-copy strong { color: #e8f4fb; font-weight: 750; }
.journal-example {
  margin: 1.8rem 0; padding: clamp(1.1rem,2.5vw,1.7rem); overflow: hidden;
  border: 1px solid #89bdd65c; border-radius: 1rem; isolation: isolate;
  background: radial-gradient(ellipse at 96% 100%,#50447a48,transparent 65%),linear-gradient(140deg,#1b3849,#15263b);
  box-shadow: inset 0 1px 0 #c3eaff22,0 12px 32px #0003;
}
.journal-example .journal-example-heading { display: flex; align-items: center; gap: .9rem; }
.journal-example .journal-example-heading img { width: 3rem; height: 3rem; object-fit: contain; filter: drop-shadow(0 5px 10px #050c16a8); }
.journal-example .journal-example-heading b { display: block; line-height: 1.35; font-size: 1.08rem; }
.journal-example .journal-example-heading .journal-tag { display: block; margin-bottom: .2rem; font-size: .65rem; }
.journal-example .journal-note { margin: 1.15rem 0; padding: .85rem 1.05rem; font-size: 1rem; border-left: 2px solid #a7d9ec; background: #0917266e; color: #e0f1f7; line-height: 1.55; }
.journal-detail-list { margin: 1rem 0 0; padding: 0; }
.journal-detail-list > div {
  display: grid; grid-template-columns: minmax(6.5rem,.48fr) minmax(0,1fr); gap: .85rem;
  padding-block: .68rem; border-top: 1px solid #8eb5d52a; font-size: .96rem; line-height: 1.55;
}
.journal-detail-list dt { color: #b4e4ef; font-weight: 700; }
.journal-detail-list dd { margin: 0; color: #d4e2ed; }
.journal-example .journal-disclaimer { margin-top: .95rem; font-size: .8rem; line-height: 1.5; color: #a2bed0; }
.journal-article-copy ul { padding-left: 1.4rem; margin-block: .8rem 1.2rem; }
.journal-article-copy li { padding-left: .2rem; margin-top: .5rem; }
.journal-product-link {
  margin-top: 2.2rem; border: 1px solid #9ebed44a; border-radius: 1rem;
  background: linear-gradient(120deg,#1b3245,#22253f); padding: clamp(1.2rem,2.5vw,1.7rem);
}
.journal-product-link h2 { margin-top: .5rem; font-size: clamp(1.5rem,2.18vw,1.9rem); }
.journal-product-link p { font-size: 1rem; line-height: 1.63; }
.journal-product-link .glass-button { margin-top: 1rem; font-size: .91rem; padding-inline: 1.15rem; }
.journal-product-link .glass-button img { width: 1.9rem; height: 1.9rem; object-fit: contain; }
.journal-sources { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--journal-line); }
.journal-sources h2 { font-size: 1.2rem; margin: 0 0 .7rem; }
.journal-sources ol { margin: 0; padding-left: 1.15rem; }
.journal-sources li { margin: .6rem 0; font-size: .95rem; line-height: 1.58; color: #a8c0d1; }
.journal-related { max-width: 69rem; margin: 2.7rem auto 0; }
.journal-related-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.journal-related-heading h2 { font-size: clamp(1.45rem,2.1vw,1.9rem); letter-spacing: -.04em; }
.journal-related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.1rem; }
.journal-related-card {
  display: grid; grid-template-columns: minmax(0,.68fr) minmax(0,1fr); align-items: center;
  border: 1px solid #80adc94d; border-radius: .9rem; overflow: hidden;
  background: linear-gradient(135deg,#192c3b,#172135); transition: border-color .25s;
}
.journal-related-card:hover { border-color: #a4d9edb0; }
.journal-related-image { height: 100%; min-height: 8rem; overflow: hidden; }
.journal-related-text { padding: 1rem 1rem 1.05rem; }
.journal-related-text small { color: #afd6e7; font-size: .76rem; display: block; margin-bottom: .4rem; line-height: 1.35; }
.journal-related-text b { display: block; font-size: clamp(1rem,1.32vw,1.18rem); line-height: 1.36; color: #e3f2fb; letter-spacing: -.025em; }
.journal-product-figure { margin: 1.9rem 0; max-width: 100%; }
.journal-product-figure .journal-app-image { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; border: 1px solid #8daeba65; border-radius: .8rem; background: #0b1420; box-shadow: 0 13px 28px #0006; }
.journal-product-figure figcaption { font-size: .83rem; line-height: 1.5; margin-top: .75rem; color: #a4bdcc; }

/* True scroll-position-driven planes, with the same 1400 px perspective
   as the main AEGIS presentation. Layout stays content-fit, while visual
   planes approach independently and retain their exact resting geometry. */
.journal-page.journal-motion [data-journal-depth] { transform-origin: 50% 18%; }
.journal-page.journal-motion [data-journal-depth="heading"],
.journal-page.journal-motion [data-journal-depth="track-left"] { transform-origin: 0 50%; }
.journal-page.journal-motion [data-journal-depth]:has(:focus-visible) { transform: none !important; }
.journal-page.journal-motion .journal-orbit { animation: journal-orbit-drift 23s linear infinite; }
@keyframes journal-orbit-drift { from { rotate: 0deg; } to { rotate: 360deg; } }
@media (min-width: 1450px) { .journal-shell { padding-inline: 3rem; } }
@media (max-width: 1000px), (max-height: 590px) { .journal-page { --head: 76px; } }
@media (max-width: 850px) {
  .journal-masthead .journal-shell { gap: 1.7rem; }
  .journal-feature { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .journal-feature .journal-card-content { padding: 1.5rem; }
  .journal-card h3 { font-size: 1.9rem; }
  .journal-feature h3 { font-size: 2rem; }
  .journal-card-foot { gap: .45rem .9rem; }
  .journal-related-card { grid-template-columns: 1fr; }
  .journal-related-image { aspect-ratio: 16/9; min-height: 0; }
}
@media (max-width: 760px) {
  .journal-page { --head: 68px; }
  .journal-page .site-header nav a[aria-current="page"]::after,.journal-page .site-header nav a[data-current-section]::after { bottom: -5px; }
  .journal-masthead .journal-shell { grid-template-columns: 1fr; gap: 1.3rem; padding-block: 2.9rem 2.3rem; }
  .journal-masthead h1 { font-size: clamp(4.25rem,15vw,7rem); }
  .journal-masthead .journal-deck { padding: 0; border-left: 0; }
  .journal-deck h2 { font-size: clamp(1.45rem,5vw,2rem); }
  .journal-masthead .journal-orbit { width: 65vw; right: -15%; opacity: .16; }
  .journal-story-grid { grid-template-columns: 1fr; }
  .journal-feature { grid-column: auto; display: flex; }
  .journal-feature .journal-card-image { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .journal-feature .journal-card-content,.journal-card .journal-card-content { padding: 1.35rem; }
  .journal-company-link .journal-shell { flex-direction: column; align-items: flex-start; }
  .journal-article { padding: 1.65rem clamp(1.2rem,4vw,2.1rem); border-radius: 1rem; }
  .journal-article-head h1 { font-size: clamp(2.1rem,7.3vw,3.35rem); text-wrap: balance; }
  .journal-article-head .journal-header-meta { margin-bottom: 1.2rem; gap: .75rem; }
  .journal-hero-image { margin-top: 1.6rem; aspect-ratio: 4/3; }
  .journal-reader-nav { padding-block: 1.35rem .8rem; }
  .journal-article-copy { margin-top: 1.6rem; }
  .journal-related-grid { grid-template-columns: 1fr; }
  .journal-related-card { grid-template-columns: minmax(0,.72fr) minmax(0,1fr); }
  .journal-related-image { min-height: 7rem; height: 100%; aspect-ratio: auto; }
  .journal-feed-bar { align-items: flex-end; }
}
@media (max-width: 420px) {
  .journal-shell { padding-inline: 1.05rem; }
  .journal-article { padding-inline: 1.05rem; }
  .journal-detail-list > div { grid-template-columns: 1fr; gap: .2rem; }
  .journal-article-head .journal-card-meta { font-size: .8rem; }
  .journal-feed-bar .journal-tag { font-size: .64rem; }
  .journal-card h3,.journal-feature h3 { font-size: 1.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .journal-page.journal-motion [data-journal-depth] { opacity: 1; transform: none !important; transition: none; }
  .journal-page.journal-motion .journal-orbit { animation: none; }
}
