:root {
  --ink: #000;
  --paper: #fff;
  --soft: #f6f6f6;
  --line: #d7d7d7;
  --body: #666;
  --link: #057dbc;
  --orange: #ff6a00;
  --sans: HelveticaNeue, "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", YuGothic, "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

p {
  margin-top: 0;
}

.site-header {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.masthead {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  margin: 0 auto;
  padding: 0 16px 0 56px;
}

.menu-button {
  display: none;
  width: 56px;
  height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: start;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-open .menu-button span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.menu-open .menu-button span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.site-logo {
  display: flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--ink);
  height: 50px;
  white-space: nowrap;
}

.category-nav {
  display: flex;
  justify-content: start;
  gap: 18px;
  padding: 0 24px 0 32px;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav a,
.header-actions a {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-self: end;
}

.membership-banner {
  display: grid;
  grid-template-columns: 88px minmax(0, 496px) 160px;
  gap: 24px;
  align-items: center;
  justify-content: center;
  max-width: 1152px;
  min-height: 88px;
  margin: 80px auto 56px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.banner-mark {
  display: grid;
  justify-items: center;
  gap: 2px;
  font-size: 18px;
  font-weight: 900;
}

.banner-mark span {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.membership-banner p {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.72;
}

.membership-banner a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
}

.top-stories {
  display: grid;
  grid-template-columns: 264px 560px 264px;
  grid-template-areas:
    "leftTop lead rightTop"
    "leftBottom lead rightBottom";
  gap: 28px 32px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 0 48px;
  border-bottom: 1px solid var(--ink);
}

.story-card {
  min-width: 0;
}

.lead-card {
  grid-area: lead;
}

.left-top {
  grid-area: leftTop;
}

.left-bottom {
  grid-area: leftBottom;
}

.right-top {
  grid-area: rightTop;
}

.right-bottom {
  grid-area: rightBottom;
}

.story-image {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
  overflow: hidden;
  background: #f2f2f2;
}

.lead-card .story-image {
  aspect-ratio: 560 / 445;
}

.story-image canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.static-image {
  background: #f2f2f2;
}

.static-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.screenshot-image img,
.screenshot-image video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.tall-static {
  aspect-ratio: 1 / 1;
}

.kicker {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--body);
}

.lead-card h1 {
  margin-bottom: 14px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.62;
  letter-spacing: 0;
}

.story-card h2 {
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
}

.side-card h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  margin: 16px 0 18px;
  background: #9eb1c9;
}

.dek {
  margin-bottom: 12px;
  color: var(--body);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
}

.byline {
  margin-bottom: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c8c8c;
}

.reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.reference-links a {
  border: 1px solid var(--line);
  padding: 6px 8px 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-links a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.axis-visual span,
.ring-visual span {
  position: absolute;
  background: var(--ink);
}

.axis-visual span:nth-child(1) {
  width: 66%;
  height: 7px;
  left: 17%;
  top: 48%;
  transform: rotate(-18deg);
}

.axis-visual span:nth-child(2) {
  width: 54%;
  height: 7px;
  left: 23%;
  top: 52%;
  transform: rotate(52deg);
}

.axis-visual span:nth-child(3),
.axis-visual span:nth-child(4) {
  width: 16px;
  height: 16px;
}

.axis-visual span:nth-child(3) {
  left: 64%;
  top: 24%;
}

.axis-visual span:nth-child(4) {
  left: 28%;
  top: 68%;
}

.bar-visual {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 24px 18px;
}

.bar-visual span {
  flex: 1;
  height: var(--h);
  background: var(--ink);
}

.grid-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  padding: 0;
}

.grid-visual span {
  background: var(--paper);
}

.grid-visual span:nth-child(2),
.grid-visual span:nth-child(4),
.grid-visual span:nth-child(6) {
  background: var(--ink);
}

.ring-visual {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    var(--soft);
  background-size: 34px 34px;
}

.ring-visual span {
  border: 1px solid var(--ink);
  background: transparent;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ring-visual span:nth-child(1) {
  width: 34%;
  height: 34%;
}

.ring-visual span:nth-child(2) {
  width: 58%;
  height: 58%;
}

.ring-visual span:nth-child(3) {
  width: 10px;
  height: 10px;
  background: var(--ink);
}

.section-block {
  max-width: 1152px;
  margin: 0 auto;
  padding: 58px 0 56px;
  border-bottom: 1px solid var(--ink);
}

.section-block h2,
.more-from h2 {
  margin-bottom: 36px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
  text-align: center;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.compact-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
  background: var(--soft);
}

.sonar-thumb {
  background:
    radial-gradient(circle at 50% 50%, var(--ink) 0 5px, transparent 6px),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 38px, var(--ink) 39px 40px),
    var(--soft);
}

.blocks-thumb {
  background:
    linear-gradient(90deg, var(--ink) 0 18%, transparent 18% 24%, var(--ink) 24% 58%, transparent 58% 66%, var(--ink) 66%),
    var(--soft);
}

.lines-thumb {
  background:
    linear-gradient(30deg, transparent 42%, var(--ink) 42% 45%, transparent 45%),
    linear-gradient(150deg, transparent 35%, var(--ink) 35% 38%, transparent 38%),
    var(--soft);
}

.recent-list {
  display: grid;
  gap: 0;
}

.recent-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.recent-row:last-child {
  border-bottom: 1px solid var(--line);
}

.row-thumb {
  display: block;
  aspect-ratio: 4 / 3;
}

.row-body {
  display: grid;
  gap: 5px;
}

.row-body em {
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.row-body strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.row-body small {
  color: var(--body);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
}

.row-body b {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.more-from {
  max-width: 1152px;
  margin: 0 auto;
  padding: 58px 0 64px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.more-grid a {
  display: grid;
  min-height: 210px;
  align-content: end;
  gap: 10px;
  background: var(--soft);
  padding: 18px;
}

.more-grid strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.more-grid span {
  color: var(--body);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 0 20px;
}

.footer-inner {
  display: grid;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-brand {
  display: grid;
  grid-template-columns: 240px minmax(0, 620px);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  padding: 34px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-logo {
  display: inline-block;
  color: var(--paper);
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.footer-logo span {
  display: inline;
  text-align: left;
  transform: none;
}

.footer-brand p {
  max-width: 600px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.72;
}

.footer-directory {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 0;
  padding: 18px 22px 22px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-column + .footer-column {
  padding-left: 22px;
}

.footer-column:last-child {
  border-right: 0;
}

.footer-column h2 {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-column a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-column a::after {
  content: "↗";
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-column a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .footer-brand {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .footer-logo {
    font-size: 30px;
  }

  .footer-directory {
    grid-template-columns: 1fr 1fr;
  }

  .footer-column {
    min-height: 0;
    border-bottom: 0;
  }

  .footer-column:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 0 14px;
  }

  .footer-brand {
    padding: 28px 0 22px;
  }

  .footer-logo {
    font-size: 28px;
  }

  .footer-brand p {
    font-size: 13px;
    line-height: 1.8;
  }

  .footer-directory {
    grid-template-columns: 1fr;
  }

  .footer-column,
  .footer-column + .footer-column,
  .footer-column:last-child {
    grid-column: auto;
    padding: 20px 0 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .footer-column:last-child {
    border-bottom: 0;
  }

  .footer-column h2 {
    margin-bottom: 18px;
  }

  .footer-column a {
    font-size: 12px;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
  }
}

.editorial-intro {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 16px 32px;
  max-width: 1152px;
  margin: 80px auto 48px;
  padding-top: 0;
  border-top: none;
}

.intro-label {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
  display: inline-block;
  width: fit-content;
  align-self: start;
}

.intro-desc {
  grid-column: 1;
  grid-row: 2;
  margin-bottom: 0;
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 100%;
}

.editorial-intro h1 {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-bottom: 0;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 900;
  line-height: 1.05;
}

.topic-index {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1152px;
  margin: 0 auto 64px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.topic-tile {
  display: grid;
  min-height: 230px;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--ink);
  padding: 16px;
  background: var(--paper);
}

.topic-tile span,
.topic-heading span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: 0.16em;
}

.topic-tile strong {
  align-self: end;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.08;
}

.topic-tile em {
  color: var(--body);
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.featured-topic {
  background: var(--orange);
  color: var(--paper);
}

.featured-topic em {
  color: rgba(255, 255, 255, 0.75);
}

.topic-sections {
  max-width: 1152px;
  margin: 0 auto;
}

.section-rule {
  border-top: 1px solid var(--ink);
  padding: 16px 0 28px;
}

.section-rule h2 {
  margin-bottom: 0;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: end;
}

.feature-visual {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f2f2;
}

.feature-visual canvas,
.canvas-image canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.feature-copy h3 {
  margin-bottom: 14px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.62;
}

.topic-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--ink);
  scroll-margin-top: 72px;
}

.topic-heading {
  display: grid;
  align-content: start;
  gap: 14px;
}

.topic-heading h2 {
  margin-bottom: 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
}

.topic-heading p {
  margin-bottom: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.75;
}

.topic-work-grid {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 106, 0, 0.45) transparent;
  padding-bottom: 18px;
}

.wide-work {
  flex-basis: 680px;
}

.text-only-card {
  min-height: 280px;
  border-left: 1.5px solid var(--ink);
  padding: 4px 0 4px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topic-work-grid .story-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
}

.topic-work-grid .wide-work {
  flex: 0 0 680px;
}

.story-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.footprint-visual,
.cluster-visual,
.island-visual,
.rings-visual {
  background: #f2f2f2;
}

.footprint-visual {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 1fr;
  gap: 2px;
  padding: 24px;
}

.footprint-visual span {
  background: var(--ink);
}

.footprint-visual span:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 2 / 5;
}

.footprint-visual span:nth-child(2) {
  grid-column: 3 / 6;
  grid-row: 1 / 3;
}

.footprint-visual span:nth-child(3) {
  grid-column: 6 / 9;
  grid-row: 3 / 6;
}

.footprint-visual span:nth-child(4) {
  grid-column: 2 / 5;
  grid-row: 6 / 9;
}

.footprint-visual span:nth-child(5) {
  grid-column: 5 / 7;
  grid-row: 6 / 8;
}

.footprint-visual span:nth-child(6) {
  grid-column: 7 / 9;
  grid-row: 7 / 9;
}

.cluster-visual span,
.island-visual span,
.rings-visual span {
  position: absolute;
}

.cluster-visual {
  background:
    radial-gradient(circle at 34% 42%, var(--ink) 0 7px, transparent 8px),
    radial-gradient(circle at 42% 38%, var(--ink) 0 5px, transparent 6px),
    radial-gradient(circle at 47% 49%, var(--ink) 0 9px, transparent 10px),
    radial-gradient(circle at 56% 43%, var(--ink) 0 6px, transparent 7px),
    radial-gradient(circle at 61% 55%, var(--ink) 0 8px, transparent 9px),
    radial-gradient(circle at 72% 38%, var(--ink) 0 4px, transparent 5px),
    #f2f2f2;
}

.cluster-visual span {
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}

.cluster-visual span:nth-child(1) {
  width: 120px;
  height: 70px;
  left: 26%;
  top: 28%;
  transform: rotate(-18deg);
}

.cluster-visual span:nth-child(2) {
  width: 90px;
  height: 54px;
  left: 44%;
  top: 40%;
  transform: rotate(14deg);
}

.island-visual {
  background:
    linear-gradient(112deg, transparent 0 40%, var(--ink) 40% 42%, transparent 42%),
    linear-gradient(68deg, transparent 0 47%, var(--ink) 47% 49%, transparent 49%),
    #f2f2f2;
}

.island-visual span {
  border: 1px solid var(--ink);
  border-radius: 48% 52% 44% 56%;
  background: var(--paper);
}

.island-visual span:nth-child(1) {
  width: 110px;
  height: 72px;
  left: 22%;
  top: 28%;
}

.island-visual span:nth-child(2) {
  width: 88px;
  height: 54px;
  left: 54%;
  top: 46%;
}

.island-visual span:nth-child(3) {
  width: 48px;
  height: 34px;
  left: 48%;
  top: 22%;
}

.rings-visual {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    #f2f2f2;
  background-size: 32px 32px;
}

.rings-visual span {
  border: 1px solid var(--ink);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.rings-visual span:nth-child(1) {
  width: 22%;
  height: 32%;
}

.rings-visual span:nth-child(2) {
  width: 44%;
  height: 62%;
}

.rings-visual span:nth-child(3) {
  width: 66%;
  height: 86%;
}

.rings-visual span:nth-child(4) {
  width: 12px;
  height: 12px;
  background: var(--ink);
}

.route-visual {
  background:
    radial-gradient(circle at 72% 24%, var(--ink) 0 7px, transparent 8px),
    radial-gradient(circle at 28% 72%, var(--ink) 0 7px, transparent 8px),
    #f2f2f2;
}

.route-visual span {
  position: absolute;
  background: var(--ink);
}

.route-visual span:nth-child(1) {
  width: 54%;
  height: 2px;
  left: 23%;
  top: 50%;
  transform: rotate(-36deg);
}

.route-visual span:nth-child(2) {
  width: 48px;
  height: 48px;
  left: calc(50% - 24px);
  top: calc(50% - 24px);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}

.route-visual span:nth-child(3) {
  width: 12px;
  height: 12px;
  left: calc(50% - 6px);
  top: calc(50% - 6px);
}

@media (max-width: 980px) {
  .masthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
    padding: 0 16px;
  }

  .menu-button {
    display: flex;
    order: 2;
    width: 44px;
    height: 44px;
    justify-self: end;
  }

  .site-logo {
    order: 1;
  }

  .category-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .membership-banner {
    grid-template-columns: 88px 1fr 150px;
    margin: 40px 20px 40px;
    padding: 18px 20px;
  }

  .top-stories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "lead lead"
      "leftTop rightTop"
      "leftBottom rightBottom";
    padding-left: 20px;
    padding-right: 20px;
  }

  .lead-card {
    grid-column: 1 / -1;
  }

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

  .editorial-intro,
  .feature-layout,
  .topic-section {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }

  .editorial-intro {
    grid-template-rows: auto;
    gap: 16px;
  }

  .intro-label,
  .intro-desc,
  .editorial-intro h1 {
    grid-column: auto;
    grid-row: auto;
  }

  .topic-index,
  .featured-work,
  .topic-sections {
    margin-left: 20px;
    margin-right: 20px;
  }

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

  .topic-tile {
    min-height: 190px;
  }
}

@media (max-width: 640px) {
  .masthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    padding: 0 16px;
  }

  .site-logo {
    font-size: 14px;
  }

  .category-nav {
    display: none;
  }

  .membership-banner {
    grid-template-columns: 1fr;
    margin: 28px 14px 36px;
  }

  .top-stories,
  .section-block,
  .more-from {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "leftTop"
      "rightTop"
      "leftBottom"
      "rightBottom";
    padding-left: 14px;
    padding-right: 14px;
  }

  .more-grid {
    grid-template-columns: 1fr;
  }

  .editorial-intro {
    margin: 44px 0 32px;
    padding-top: 0;
  }

  .editorial-intro h1 {
    font-size: 42px;
  }

  .topic-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 28px;
    border-top: 1px solid var(--ink);
    border-left: 0;
    border-right: 0;
    background: transparent;
  }

  .topic-index .topic-tile {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    min-height: 40px;
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    border-radius: 0;
  }

  .topic-index .topic-tile:nth-child(odd) {
    padding-right: 8px;
  }

  .topic-index .topic-tile:nth-child(even) {
    padding-left: 8px;
  }

  .topic-index .topic-tile em {
    display: none;
  }

  .topic-index .topic-tile span {
    font-size: 10px;
    font-weight: 500;
    font-family: var(--mono);
    color: var(--body);
    line-height: 1.4;
  }

  .topic-index .topic-tile strong {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    align-self: auto;
  }

  .topic-index .featured-topic {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
  }

  .topic-index .featured-topic span {
    color: var(--orange);
  }

  .topic-index .featured-topic strong {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
  }

  .featured-work,
  .topic-sections,
  .topic-index {
    margin-left: 14px;
    margin-right: 14px;
  }

  .feature-copy h3 {
    font-size: 25px;
    line-height: 1.45;
  }

  .topic-work-grid {
    display: flex;
    margin-right: -14px;
    padding-right: 14px;
  }

  .topic-work-grid .story-card,
  .topic-work-grid .wide-work {
    flex-basis: min(86vw, 322px);
  }

  .lead-card h1 {
    font-size: 38px;
  }

  .story-card h2,
  .compact-card h3,
  .row-body strong {
    font-size: 21px;
  }

  .recent-row {
    grid-template-columns: 112px 1fr;
    gap: 12px;
  }
}

/* Refined portfolio layout */
.editorial-intro {
  grid-template-columns: 240px minmax(0, 1fr);
  margin-top: 64px;
  margin-bottom: 34px;
  padding-top: 0;
}

.editorial-intro h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(48px, 6.8vw, 92px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.intro-desc {
  max-width: 100%;
  font-size: 14.5px;
  line-height: 1.85;
}

.topic-index {
  margin-bottom: 44px;
}

.topic-tile {
  min-height: 190px;
  transition: background-color 160ms ease, color 160ms ease;
}

.topic-tile:hover {
  background: var(--ink);
  color: var(--paper);
}

.topic-tile:hover em {
  color: #d8d8d8;
}

.topic-tile strong {
  font-size: 20px;
}

.topic-sections {
  border-top: 1px solid var(--ink);
}

.topic-section {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  padding: 38px 0 42px;
}

.topic-heading {
  position: sticky;
  top: 18px;
}

.topic-heading h2 {
  font-size: 28px;
}

.topic-heading p {
  max-width: 220px;
}

.topic-work-grid {
  gap: 22px;
  margin-right: calc((100vw - 1152px) / -2);
  padding-right: max(24px, calc((100vw - 1152px) / 2));
  padding-bottom: 22px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent);
}

.topic-work-grid::-webkit-scrollbar {
  height: 2px;
}

.topic-work-grid::-webkit-scrollbar-track {
  background: transparent;
}

.topic-work-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 106, 0, 0.45);
  border-radius: 1px;
}

.topic-work-grid:hover::-webkit-scrollbar-thumb,
.topic-work-grid::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

.topic-work-grid .story-card {
  flex-basis: 340px;
}

.topic-work-grid .wide-work {
  flex-basis: 560px;
}

.story-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.story-image {
  margin-bottom: 14px;
}

.story-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.55;
}

.dek {
  margin-bottom: 16px;
}

.byline {
  margin-top: auto;
}

.text-only-card {
  min-height: 320px;
}

.text-only-card h3 {
  margin-top: 0;
  font-size: 22px;
  line-height: 1.45;
}

.static-image img,
.screenshot-image img {
  filter: saturate(0.94) contrast(1.02);
}

.site-footer {
  margin-top: 0;
}

@media (max-width: 980px) {
  .editorial-intro,
  .topic-section {
    grid-template-columns: 1fr;
  }

  .topic-heading {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: baseline;
    gap: 8px 12px;
  }

  .topic-heading span {
    grid-column: 1;
    grid-row: 1;
  }

  .topic-heading h2 {
    grid-column: 2;
    grid-row: 1;
    font-size: 24px;
  }

  .topic-heading p {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 640px;
  }

  .topic-work-grid {
    margin-right: -20px;
    padding-right: 20px;
  }

}

.press-table {
  border-top: 1px solid var(--ink);
}

.press-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.press-row:hover {
  opacity: 0.65;
  text-decoration: none;
}

.press-row span,
.press-row em {
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c8c8c;
}

.press-row em {
  text-align: right;
}

.press-row strong {
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 640px) {
  .press-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .press-row em {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .editorial-intro {
    margin-top: 34px;
    margin-bottom: 28px;
  }

  .editorial-intro h1 {
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -0.03em;
  }

  .intro-desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .topic-heading h2 {
    font-size: 21px;
    line-height: 1.25;
  }

  .topic-heading p {
    font-size: 13px;
    line-height: 1.6;
  }

  .story-card h3 {
    font-size: 17px;
    line-height: 1.4;
  }

  .dek {
    font-size: 13px;
    line-height: 1.65;
  }

  .press-row strong {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
  }



  .topic-section {
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .topic-work-grid {
    margin-right: -14px;
    padding-right: 14px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent);
  }

  .topic-work-grid .story-card,
  .topic-work-grid .wide-work {
    flex: 0 0 min(86vw, 322px);
  }

  .text-only-card {
    min-height: 280px;
  }

}

/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 980px) {
  .mobile-menu-overlay {
    display: flex;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    background: var(--paper);
    z-index: 100;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 32px 64px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--line);
  }

  .menu-open .mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .mobile-nav a {
    font-family: var(--sans);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .menu-open .mobile-nav a {
    opacity: 1;
    transform: translateY(0);
  }
  .menu-open .mobile-nav a:nth-child(1) { transition-delay: 0.05s; }
  .menu-open .mobile-nav a:nth-child(2) { transition-delay: 0.1s; }
  .menu-open .mobile-nav a:nth-child(3) { transition-delay: 0.15s; }
  .menu-open .mobile-nav a:nth-child(4) { transition-delay: 0.2s; }
  .menu-open .mobile-nav a:nth-child(5) { transition-delay: 0.25s; }
  .menu-open .mobile-nav a:nth-child(6) { transition-delay: 0.3s; }

  .mobile-actions {
    display: flex;
    gap: 28px;
    border-top: 1px solid var(--line);
    padding-top: 32px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
  }

  .menu-open .mobile-actions {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-actions a {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--body);
  }

  .mobile-actions a:hover {
    color: var(--ink);
  }
}

@media (max-width: 640px) {
  .mobile-menu-overlay {
    top: 54px;
    height: calc(100vh - 54px);
    height: calc(100dvh - 54px);
    padding: 36px 24px 48px;
  }
  .mobile-nav a {
    font-size: 22px;
    gap: 18px;
  }
}
