.portal-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: calc(100svh - 78px);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.portal-copy {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding-top: 6rem;
  padding-bottom: 5rem;
}

.portal-kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: clamp(3.5rem, 6vw, 6.5rem);
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 620;
  letter-spacing: 0.18em;
}

.portal-kicker i {
  width: 36px;
  height: 1px;
  background: var(--text-muted);
}

.portal-copy h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(4.4rem, 7.8vw, 8.6rem);
  font-weight: 570;
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.portal-statement {
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-size: clamp(1.3rem, 2.2vw, 2.15rem);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.portal-statement span { color: var(--accent); }

.portal-intro {
  max-width: 610px;
  margin-bottom: 2.2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.9;
}

.portal-actions { display: flex; }

.portal-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  margin-top: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid var(--border);
}

.portal-stats div {
  display: grid;
  gap: 0.4rem;
  min-width: 130px;
  padding: 1.2rem 1.6rem 0 0;
}

.portal-stats div + div {
  padding-left: 1.6rem;
  border-left: 1px solid var(--border);
}

.portal-stats strong {
  font-size: 1.25rem;
  font-weight: 560;
  letter-spacing: 0.03em;
}

.portal-stats span {
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.portal-visual {
  position: relative;
  grid-column: 7 / -1;
  min-height: calc(100svh - 78px);
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--border);
  background: var(--surface);
}

.portal-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 19, 17, 0.22), transparent 28%, rgba(17, 19, 17, 0.12));
  content: "";
  pointer-events: none;
}

.portal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  filter: saturate(0.68) contrast(1.04) brightness(0.82);
}

.portal-visual figcaption {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--text-primary);
}

.portal-visual figcaption > span {
  margin-top: 26%;
  font-size: 0.72rem;
  line-height: 1.75;
  letter-spacing: 0.18em;
}

.portal-visual figcaption > div {
  display: grid;
  grid-template-columns: auto 72px auto;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.portal-visual figcaption b { color: var(--accent); font-size: 0.8rem; font-weight: 580; }
.portal-visual figcaption i { height: 1px; background: rgba(255, 255, 255, 0.5); }

.home-section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  background: var(--bg-alt);
}

.home-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-bottom: clamp(4rem, 7vw, 7rem);
}

.home-heading > div { grid-column: 1 / span 6; }
.home-heading > p {
  grid-column: 8 / -1;
  align-self: end;
  max-width: 560px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.85;
}

.home-heading > div > p {
  margin-bottom: 1rem;
  color: var(--accent-secondary);
  font-size: 0.62rem;
  font-weight: 620;
  letter-spacing: 0.18em;
}

.home-heading h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 560;
  letter-spacing: -0.065em;
}

.chapter-index { border-top: 1px solid var(--divider); }

.featured-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 4fr 4fr;
  gap: var(--grid-gap);
  min-height: 440px;
  padding: 2rem 0;
  border-bottom: 1px solid var(--divider);
  transition: opacity 240ms ease;
}

.featured-chapter:hover { opacity: 0.84; }

.featured-number {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--accent);
}

.featured-number > span {
  font-size: 2.4rem;
  font-weight: 520;
  letter-spacing: -0.04em;
}

.featured-number small,
.featured-copy > small {
  color: var(--text-muted);
  font-size: 0.56rem;
  font-weight: 620;
  letter-spacing: 0.15em;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.3rem 1rem 0.3rem 0;
}

.featured-copy h3 {
  margin: auto 0 1.3rem;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.featured-copy h3 span { color: var(--accent); }

.featured-copy p {
  max-width: 540px;
  margin-bottom: 1.4rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.8;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.tag-row span { color: var(--text-muted); font-size: 0.53rem; font-weight: 620; letter-spacing: 0.14em; }

.featured-image { min-width: 0; overflow: hidden; background: var(--surface); }
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% center;
  filter: saturate(0.58) brightness(0.74);
  transition: transform 500ms var(--ease), filter 300ms ease;
}
.featured-chapter:hover .featured-image img { filter: saturate(0.68) brightness(0.82); transform: scale(1.015); }

.featured-arrow {
  position: absolute;
  right: 1rem;
  bottom: 2.8rem;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: var(--text-primary);
  background: rgba(17, 19, 17, 0.68);
}

.planned-chapters { border-bottom: 1px solid var(--divider); }
.planned-chapters button {
  display: grid;
  grid-template-columns: 1fr 7fr 2fr;
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color 200ms ease, padding 220ms var(--ease);
}
.planned-chapters button:last-child { border-bottom: 0; }
.planned-chapters button:hover { padding-left: 0.5rem; color: var(--text-secondary); }
.planned-chapters button > span { font-size: 0.72rem; letter-spacing: 0.1em; }
.planned-chapters button b { font-size: 0.9rem; font-weight: 520; }
.planned-chapters button small { justify-self: end; font-size: 0.54rem; letter-spacing: 0.14em; }

.about-section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.about-section > p {
  margin-bottom: 4rem;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 620;
  letter-spacing: 0.18em;
}

.about-section > div {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 8.333%;
}

.about-section h2 {
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 6.6rem);
  font-weight: 540;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.about-section h2 span { color: var(--accent); }

.about-copy {
  align-self: end;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
}
.about-copy p { margin: 0; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.85; }
.about-copy p + p { margin-top: 1.5rem; }

@media (max-width: 1100px) {
  .portal-copy { grid-column: 1 / span 7; }
  .portal-visual { grid-column: 8 / -1; }
  .portal-copy h1 { font-size: clamp(4rem, 8vw, 6.5rem); }
  .portal-visual figcaption > span { display: none; }
  .featured-chapter { grid-template-columns: 1fr 5fr 4fr; }
}

@media (max-width: 820px) {
  .portal-hero { display: flex; flex-direction: column; }
  .portal-copy { min-height: auto; padding-top: 6rem; padding-bottom: 4rem; }
  .portal-visual { min-height: 520px; border-top: 1px solid var(--border); border-left: 0; }
  .portal-visual img { position: absolute; inset: 0; }
  .portal-visual figcaption { padding: 2rem var(--page-gutter); }
  .portal-visual figcaption > span { display: block; margin-top: 0; }
  .home-heading { grid-template-columns: 1fr; }
  .home-heading > div,
  .home-heading > p { grid-column: auto; }
  .featured-chapter { grid-template-columns: 90px 1fr; }
  .featured-image { grid-column: 1 / -1; min-height: 340px; }
  .featured-number { grid-row: 1; }
  .featured-copy { grid-row: 1; }
  .featured-number small { display: none; }
  .about-section > div { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 560px) {
  .portal-copy { padding-top: 4.5rem; padding-bottom: 3.5rem; }
  .portal-kicker { margin-bottom: 3.5rem; }
  .portal-copy h1 { font-size: clamp(3.25rem, 16vw, 4.7rem); }
  .portal-statement { font-size: 1.25rem; }
  .portal-stats { width: 100%; }
  .portal-stats div { min-width: 0; padding-right: 0.8rem; }
  .portal-stats div + div { padding-left: 0.8rem; }
  .portal-visual { min-height: 440px; }
  .portal-visual figcaption > span { font-size: 0.62rem; }
  .portal-visual figcaption > div { grid-template-columns: auto 42px; }
  .portal-visual figcaption > div span { display: none; }
  .featured-chapter { grid-template-columns: 58px 1fr; min-height: 0; }
  .featured-number > span { font-size: 1.7rem; }
  .featured-copy h3 { margin-top: 3rem; font-size: 2.65rem; }
  .featured-image { min-height: 260px; }
  .featured-arrow { right: 0.75rem; bottom: 2.75rem; width: 40px; height: 40px; }
  .planned-chapters button { grid-template-columns: 62px 1fr auto; }
  .about-section > p { margin-bottom: 2.5rem; }
  .about-section h2 { font-size: clamp(2.6rem, 12vw, 4rem); }
}
