:root {
  --paper: #f7f2ea;
  --paper-strong: #fffaf3;
  --ink: #17202d;
  --ink-soft: #445062;
  --accent: #ff7a1f;
  --accent-deep: #cf5200;
  --accent-soft: #ffb67d;
  --navy: #182334;
  --line: rgba(23, 32, 45, 0.1);
  --shadow: 0 22px 40px rgba(33, 24, 16, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 31, 0.14), rgba(255, 122, 31, 0) 22%),
    radial-gradient(circle at bottom right, rgba(24, 35, 52, 0.12), rgba(24, 35, 52, 0) 24%),
    linear-gradient(180deg, #fbf7f0, #f3ece2 60%, #efe6db);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.18;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.journal-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ffb168);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1000;
}

.journal-header {
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(14px);
  background: rgba(247, 242, 234, 0.82);
  border-bottom: 1px solid rgba(23, 32, 45, 0.08);
}

.header-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  width: 128px;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-links a {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(23, 32, 45, 0.08);
  font-weight: 600;
  color: var(--navy);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.top-links a:hover,
.top-links a:focus-visible {
  background: var(--navy);
  color: #fff;
}

.journal-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.35rem 0 2.25rem;
}

.chapter-rail {
  position: relative;
}

.rail-card {
  position: sticky;
  top: 96px;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 34, 46, 0.98), rgba(18, 23, 31, 0.98));
  color: #eef2f8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.2);
}

.rail-label,
.section-tag,
.mini-label {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 122, 31, 0.12);
  color: #ffb67d;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rail-card h2,
.story-head h2,
.hero-copy h1,
.closing-card h2 {
  margin: 0 0 0.55rem;
  font-family: "Roboto Slab", serif;
  line-height: 1.18;
}

.rail-card p,
.story-head p,
.hero-text,
.closing-card p,
.story-flow p,
.publication-body p,
.project-story-copy p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.chapter-nav {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chapter-nav a {
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe3ef;
  font-weight: 600;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.chapter-nav a:hover,
.chapter-nav a:focus-visible,
.chapter-nav a.active {
  background: linear-gradient(135deg, #ff7a1f, #e55b00);
  border-color: rgba(255, 190, 145, 0.6);
  color: #fff;
}

.rail-metrics {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.rail-metrics article {
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.rail-metrics article:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 182, 125, 0.28);
}

.rail-metrics strong {
  display: block;
  color: var(--accent-soft);
  font-size: 1.4rem;
}

.rail-metrics span {
  display: block;
  margin-top: 0.2rem;
  color: #d5deea;
}

.story-flow {
  display: grid;
  gap: 1.25rem;
}

.hero-card,
.story-section,
.closing-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: 1.45rem;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 31, 0.18), rgba(255, 122, 31, 0) 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 239, 229, 0.96));
}

.hero-kicker {
  margin: 0 0 0.6rem;
  color: #8f4511;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.45rem);
}

.hero-panel {
  display: grid;
  gap: 0.85rem;
}

.hero-panel article,
.expertise-note,
.story-section,
.closing-card {
  background: rgba(255, 255, 255, 0.9);
}

.hero-panel article {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(23, 32, 45, 0.08);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.hero-panel article:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 31, 0.22);
  box-shadow: 0 18px 28px rgba(44, 31, 18, 0.08);
}

.story-section {
  padding: 1.25rem;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 31, 0.12), rgba(255, 122, 31, 0) 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 240, 232, 0.98));
}

.story-head {
  margin-bottom: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 14px 24px rgba(207, 82, 0, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #ff8d3c, #ef6611);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(255, 244, 232, 0.98), rgba(245, 223, 198, 0.96));
  border-color: rgba(24, 35, 52, 0.14);
  color: var(--navy);
  box-shadow: 0 12px 22px rgba(34, 24, 15, 0.08);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--navy);
  color: #fff;
}

.expertise-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.expertise-note {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(23, 32, 45, 0.08);
  box-shadow: 0 18px 30px rgba(52, 38, 23, 0.08);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.expertise-note:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 31, 0.24);
  box-shadow: 0 24px 34px rgba(52, 38, 23, 0.12);
}

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

.note-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
}

.note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 0 4px rgba(255, 122, 31, 0.12);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.filter-bar button {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 45, 0.11);
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.filter-bar button:hover,
.filter-bar button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 31, 0.22);
}

.filter-bar button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: #fff;
}

.work-category-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1rem;
}

.work-category-note {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(23, 32, 45, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 239, 229, 0.96));
  box-shadow: 0 18px 30px rgba(44, 31, 18, 0.08);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.work-category-note:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 31, 0.22);
  box-shadow: 0 24px 34px rgba(44, 31, 18, 0.12);
}

.category-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.work-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.work-note {
  position: relative;
  min-height: 355px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 45, 0.08);
  box-shadow: 0 22px 34px rgba(44, 31, 18, 0.12);
  background-image: var(--work-image);
  background-size: cover;
  background-position: top center;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.work-note::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 20, 28, 0.12), rgba(16, 20, 28, 0.16) 34%, rgba(16, 20, 28, 0.84) 100%),
    linear-gradient(125deg, rgba(255, 122, 31, 0.16), rgba(255, 122, 31, 0) 44%);
}

.work-note:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 38px rgba(44, 31, 18, 0.18);
  border-color: rgba(255, 122, 31, 0.2);
}

.work-note-card {
  position: relative;
  z-index: 1;
  min-height: 355px;
  display: flex;
  align-items: flex-end;
}

.work-note-copy {
  width: 100%;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.work-note h3,
.project-story-copy h3,
.publication-summary h3 {
  margin: 0 0 0.45rem;
  font-family: "Roboto Slab", serif;
}

.work-note h3 {
  color: #fff;
}

.work-note p {
  color: #eef3f8;
}

.work-chip {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.32rem 0.64rem;
  border-radius: 999px;
  background: rgba(15, 20, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff0e1;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-links,
.project-links,
.publication-links,
.category-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.work-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 146px;
  padding: 0.56rem 0.94rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 14px 22px rgba(15, 20, 28, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.project-links a,
.publication-links a,
.category-note-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 146px;
  padding: 0.56rem 0.94rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 33, 49, 0.12);
  background: linear-gradient(135deg, rgba(255, 244, 232, 0.98), rgba(245, 223, 198, 0.96));
  color: var(--navy);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 14px 22px rgba(34, 24, 15, 0.1);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.work-links a:hover,
.work-links a:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(15, 20, 28, 0.24);
}

.project-links a:hover,
.publication-links a:hover,
.category-note-actions a:hover,
.project-links a:focus-visible,
.publication-links a:focus-visible,
.category-note-actions a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 31, 0.22);
  box-shadow: 0 16px 24px rgba(34, 24, 15, 0.12);
}

.project-links a.link-live,
.publication-links a.link-live,
.work-links a.link-live {
  background: linear-gradient(135deg, #1f3044, #101925);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.project-links a.link-source,
.publication-links a.link-source,
.work-links a.link-soft {
  background: linear-gradient(135deg, rgba(255, 244, 232, 0.98), rgba(245, 223, 198, 0.96));
  color: var(--navy);
}

.work-links a.link-soft {
  border-color: rgba(255, 255, 255, 0.2);
}

.project-links a.link-note,
.publication-links a.link-note,
.work-links a.link-note,
.category-note-actions a.link-note {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: #fff;
}

.project-links a.link-source:hover,
.publication-links a.link-source:hover,
.project-links a.link-source:focus-visible,
.publication-links a.link-source:focus-visible {
  background: linear-gradient(135deg, #ffffff, #f7e4cf);
  color: var(--navy);
}

.project-links a.link-live:hover,
.publication-links a.link-live:hover,
.work-links a.link-live:hover,
.project-links a.link-live:focus-visible,
.publication-links a.link-live:focus-visible,
.work-links a.link-live:focus-visible {
  background: linear-gradient(135deg, #2a4058, #162231);
  color: #fff;
}

.project-links a.link-note:hover,
.publication-links a.link-note:hover,
.work-links a.link-note:hover,
.category-note-actions a.link-note:hover,
.project-links a.link-note:focus-visible,
.publication-links a.link-note:focus-visible,
.work-links a.link-note:focus-visible,
.category-note-actions a.link-note:focus-visible {
  background: linear-gradient(135deg, #ff903f, #ef6611);
  color: #fff;
}

.project-story-grid {
  display: grid;
  gap: 1rem;
}

.project-story {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 26px;
  border: 1px solid rgba(23, 32, 45, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 239, 229, 0.96));
  box-shadow: 0 22px 36px rgba(44, 31, 18, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.project-story:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 31, 0.22);
  box-shadow: 0 28px 42px rgba(44, 31, 18, 0.16);
}

.browser-shell {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(24, 35, 52, 0.1);
  background: #11161d;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 36px;
  padding: 0 0.9rem;
  background: linear-gradient(180deg, rgba(35, 40, 48, 0.98), rgba(23, 27, 34, 0.98));
}

.browser-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.browser-bar span:nth-child(1) {
  background: #ff605c;
}

.browser-bar span:nth-child(2) {
  background: #ffbd44;
}

.browser-bar span:nth-child(3) {
  background: #00ca4e;
}

.browser-bar p {
  margin: 0 0 0 0.4rem;
  color: #d1d8e3;
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-frame {
  width: 100%;
  height: 320px;
  border: 0;
  background: #fff;
}

.project-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.project-pill,
.pub-pill {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.32rem 0.64rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff0e2, #f5d9bc);
  color: #8a3901;
  font-size: 0.75rem;
  font-weight: 800;
}

.project-points {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  color: var(--ink-soft);
  line-height: 1.72;
}

.publication-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 0 1rem;
}

.publication-summary-strip article {
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(23, 32, 45, 0.08);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.publication-summary-strip article:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 31, 0.22);
  box-shadow: 0 18px 28px rgba(44, 31, 18, 0.1);
}

.publication-summary-strip strong {
  display: block;
  color: var(--accent-deep);
  font-size: 1.45rem;
}

.publication-summary-strip span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
}

.publication-stack {
  display: grid;
  gap: 0.9rem;
}

.publication-note {
  border-radius: 22px;
  border: 1px solid rgba(23, 32, 45, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 240, 232, 0.96));
  box-shadow: 0 18px 30px rgba(44, 31, 18, 0.08);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.publication-note:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 31, 0.2);
  box-shadow: 0 22px 34px rgba(44, 31, 18, 0.12);
}

.publication-note summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem;
}

.publication-note summary::-webkit-details-marker {
  display: none;
}

.publication-summary {
  display: grid;
  gap: 0.35rem;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.publication-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.24rem 0.56rem;
  border-radius: 999px;
  background: rgba(24, 35, 52, 0.06);
  color: var(--navy);
  font-size: 0.77rem;
  font-weight: 700;
}

.publication-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(23, 32, 45, 0.08);
  position: relative;
  z-index: 1;
}

.publication-note[open] {
  border-color: rgba(255, 122, 31, 0.22);
  box-shadow: 0 22px 36px rgba(44, 31, 18, 0.12);
}

.publication-note[open] .publication-summary h3 {
  color: var(--accent-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden-card {
  display: none !important;
}

.closing-card {
  padding: 1.3rem;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 31, 0.16), rgba(255, 122, 31, 0) 22%),
    linear-gradient(180deg, rgba(24, 35, 52, 0.98), rgba(15, 20, 28, 0.98));
  color: #eef2f8;
  border-color: rgba(255, 255, 255, 0.06);
}

.closing-card p,
.closing-card h2 {
  color: #eef2f8;
}

.journal-footer {
  padding: 0 0 1.5rem;
}

.footer-wrap {
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-deep);
}

@media (max-width: 1180px) {
  .journal-main {
    grid-template-columns: 1fr;
  }

  .chapter-rail {
    order: -1;
  }

  .rail-card {
    position: static;
  }

  .hero-card,
  .project-story,
  .publication-summary-strip,
  .work-note-grid,
  .expertise-note-grid,
  .work-category-note-grid {
    grid-template-columns: 1fr;
  }

  .work-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publication-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1rem, 100%);
  }

  .header-wrap {
    padding: 0.6rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-links {
    width: 100%;
  }

  .top-links a {
    flex: 1 1 calc(50% - 0.75rem);
    justify-content: center;
  }

  .hero-card,
  .story-section,
  .closing-card,
  .rail-card,
  .project-story {
    padding: 1rem;
  }

  .work-note-grid,
  .expertise-note-grid,
  .publication-summary-strip,
  .work-category-note-grid {
    grid-template-columns: 1fr;
  }

  .work-note,
  .work-note-card {
    min-height: 330px;
  }

  .project-frame {
    height: 240px;
  }

  .hero-actions,
  .work-links,
  .project-links,
  .publication-links,
  .category-note-actions,
  .top-links,
  .filter-bar {
    flex-direction: column;
  }

  .btn,
  .work-links a,
  .project-links a,
  .publication-links a,
  .category-note-actions a,
  .filter-bar button,
  .top-links a {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(calc(100% - 1.25rem), 100%);
  }

  .journal-main {
    gap: 1rem;
    padding: 1.1rem 0 1.8rem;
  }

  .hero-card,
  .story-section,
  .closing-card,
  .rail-card,
  .project-story {
    padding: 1.05rem;
  }

  .top-links a {
    flex: 1 1 calc(50% - 0.75rem);
    justify-content: center;
  }

  .project-frame {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1rem), 100%);
  }

  .journal-main {
    padding: 1rem 0 1.5rem;
  }

  .header-wrap {
    padding: 0.65rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-links {
    width: 100%;
  }

  .top-links a,
  .btn,
  .work-links a,
  .project-links a,
  .publication-links a,
  .category-note-actions a,
  .filter-bar button {
    width: 100%;
  }

  .hero-card,
  .story-section,
  .closing-card,
  .rail-card,
  .project-story {
    padding: 0.95rem;
  }

  .hero-card h1,
  .story-head h2 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .project-frame {
    height: 220px;
  }
}

body.page-research-blog {
  background:
    radial-gradient(circle at top left, rgba(72, 168, 255, 0.12), rgba(72, 168, 255, 0) 24%),
    radial-gradient(circle at bottom right, rgba(255, 122, 31, 0.1), rgba(255, 122, 31, 0) 22%),
    linear-gradient(180deg, #fbf7f0, #f1ebe2 62%, #ece4d8);
}

body.page-research-blog .journal-header {
  background: rgba(245, 240, 232, 0.86);
}

body.page-research-blog .rail-card {
  background: linear-gradient(180deg, rgba(22, 34, 52, 0.98), rgba(13, 20, 31, 0.98));
}

body.page-research-blog .hero-card {
  background:
    radial-gradient(circle at top right, rgba(72, 168, 255, 0.18), rgba(72, 168, 255, 0) 24%),
    radial-gradient(circle at bottom left, rgba(255, 122, 31, 0.14), rgba(255, 122, 31, 0) 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(242, 236, 228, 0.98));
}

body.page-research-blog .work-note::before {
  background:
    linear-gradient(180deg, rgba(12, 16, 24, 0.06), rgba(12, 16, 24, 0.18) 32%, rgba(12, 16, 24, 0.8) 100%),
    linear-gradient(125deg, rgba(72, 168, 255, 0.16), rgba(72, 168, 255, 0) 44%);
}

body.page-research-blog .top-links a:hover,
body.page-research-blog .top-links a:focus-visible {
  background: #162235;
}
