.page-home {
  background: var(--vault-black);
  color: var(--ink);
  overflow-x: hidden;
}

.page-home .meta-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--ink-2);
}

.page-home .eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--crown);
  margin: 0 0 12px;
}

.page-home .section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
  max-width: 22ch;
}

.page-home .text-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 138, 30, 0.4);
  padding-bottom: 3px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .text-link:hover,
.page-home .text-link:focus-visible {
  color: var(--white);
  border-bottom-color: var(--amber);
}

/* ---------- HERO ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-top: clamp(48px, 8vw, 92px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(42, 44, 49, 0.5) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(42, 44, 49, 0.34) 0 1px, transparent 1px 72px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: grayscale(0.35) contrast(1.1);
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 11, 13, 0.97) 0%, rgba(11, 11, 13, 0.9) 46%, rgba(11, 11, 13, 0.55) 100%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.35) 0%, rgba(11, 11, 13, 0.96) 92%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 5vw, 44px);
  padding-bottom: clamp(40px, 7vw, 76px);
}

.page-home .hero-context {
  margin: 0 0 clamp(16px, 3vw, 26px);
  padding-left: 14px;
  border-left: 1px solid var(--gold-line);
  color: var(--mist);
  text-transform: none;
  line-height: 1.7;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 9.5vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0;
  max-width: 15ch;
}

.page-home .hero-title__accent {
  display: block;
  color: var(--crown);
  margin-top: 0.12em;
}

.page-home .home-hero__aside {
  min-width: 0;
}

@media (min-width: 920px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
  .page-home .home-hero__aside {
    border-left: 1px solid var(--line-soft);
    padding-left: clamp(20px, 3vw, 34px);
    padding-bottom: 6px;
  }
}

.page-home .hero-lead {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 40ch;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 13px 26px;
  border-radius: var(--pill);
  border: 1px solid var(--amber);
  color: var(--amber);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}

.page-home .hero-pill:hover,
.page-home .hero-pill:focus-visible {
  background: rgba(255, 138, 30, 0.14);
  transform: translateY(-2px);
}

.page-home .hero-pill--solid {
  background: var(--amber);
  color: var(--vault-black);
  border-color: var(--amber);
}

.page-home .hero-pill--solid:hover,
.page-home .hero-pill--solid:focus-visible {
  background: transparent;
  color: var(--amber);
}

.page-home .scan-band {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 54px;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(201, 162, 39, 0.14) 0 1px, transparent 1px 16px);
}

.page-home .scan-band::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(47, 224, 208, 0.18), transparent);
  animation: home-scan 12s linear infinite;
}

.page-home .scan-band__label {
  position: relative;
  z-index: 1;
  color: var(--mist);
  letter-spacing: 0.22em;
}

@keyframes home-scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(320%); }
}

/* ---------- CHAPTER SHELL ---------- */
.page-home .home-chapter {
  padding: clamp(56px, 8vw, 108px) 0;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-chapter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
}

.page-home .home-chapter__body {
  min-width: 0;
}

@media (min-width: 880px) {
  .page-home .home-chapter__grid {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
  }
  .page-home .home-chapter__rail {
    padding-top: 6px;
  }
  .page-home .chapter__number {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.32em;
  }
}

.page-home .chapter__number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--crown);
  opacity: 0.85;
}

.page-home .section-head {
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-home .section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.page-home .section-head--row .text-link {
  margin-top: 0;
}

/* ---------- ENTRY PAIR ---------- */
.page-home .entry-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}

@media (min-width: 840px) {
  .page-home .entry-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .entry {
  background: var(--deep-black);
  padding: clamp(22px, 3.4vw, 36px);
  display: flex;
  flex-direction: column;
}

.page-home .entry--accent {
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.1), rgba(18, 19, 23, 1) 62%);
}

.page-home .entry__tag {
  margin: 0 0 14px;
  color: var(--crown);
}

.page-home .entry__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 12px;
}

.page-home .entry__text {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.page-home .entry__list {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .entry__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

.page-home .entry__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--cyan);
}

.page-home .entry .text-link {
  margin-top: auto;
  padding-top: 20px;
}

/* ---------- SHIFT / V4 ---------- */
.page-home .shift-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
}

@media (min-width: 940px) {
  .page-home .shift-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.page-home .shift-list {
  display: grid;
  gap: 14px;
}

.page-home .shift {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px 20px 22px;
  border-left: 2px solid var(--crown);
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.1), rgba(18, 19, 23, 0.2) 78%);
}

.page-home .shift--amber {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, rgba(255, 138, 30, 0.1), rgba(18, 19, 23, 0.2) 78%);
}

.page-home .shift--cyan {
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(47, 224, 208, 0.09), rgba(18, 19, 23, 0.2) 78%);
}

.page-home .shift__index {
  color: var(--mist);
  padding-top: 3px;
}

.page-home .shift__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.25;
  color: var(--white);
  margin: 0 0 8px;
}

.page-home .shift__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 52ch;
}

.page-home .shift-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--deep-black);
  padding: 10px;
}

.page-home .shift-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.page-home .shift-figure__cap {
  display: block;
  padding: 12px 4px 4px;
  font-size: 11px;
  color: var(--mist);
  line-height: 1.6;
}

/* ---------- TOOL CARDS ---------- */
.page-home .tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 660px) {
  .page-home .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .page-home .tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }
  .page-home .tool-card:nth-child(2) {
    margin-top: 30px;
  }
  .page-home .tool-card:nth-child(3) {
    margin-top: 12px;
  }
  .page-home .tool-card:nth-child(4) {
    margin-top: 42px;
  }
}

.page-home .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--deep-black);
  border: 1px solid var(--line);
  padding: 18px;
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.page-home .tool-card:hover,
.page-home .tool-card:focus-within {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.page-home .tool-card__media {
  margin: -2px -2px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--vault-black);
}

.page-home .tool-card__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-home .tool-card .tag {
  align-self: flex-start;
  margin-bottom: 12px;
}

.page-home .tag--quarter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--crown);
  border: 1px solid var(--gold-line);
  padding: 4px 9px;
  border-radius: var(--r-sm);
  background: rgba(74, 59, 18, 0.25);
}

.page-home .tool-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  line-height: 1.28;
  color: var(--white);
  margin: 0 0 10px;
}

.page-home .tool-card__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ---------- BLOG LIST ---------- */
.page-home .blog-list {
  border-top: 1px solid var(--line);
}

.page-home .blog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s var(--ease);
}

@media (min-width: 780px) {
  .page-home .blog-row {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 24px 8px;
  }
}

.page-home .blog-row:hover,
.page-home .blog-row:focus-visible {
  background: rgba(42, 44, 49, 0.32);
}

.page-home .blog-row__when {
  color: var(--crown);
}

.page-home .blog-row__body {
  display: block;
  min-width: 0;
}

.page-home .blog-row__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 4px;
}

.page-home .blog-row__desc {
  display: block;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.page-home .blog-row .tag {
  justify-self: start;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

/* ---------- SERVICE BAND ---------- */
.page-home .service-band {
  padding: clamp(48px, 7vw, 88px) 0 clamp(52px, 8vw, 96px);
  border-top: 1px solid var(--gold-line);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(201, 162, 39, 0.12), transparent 62%),
    var(--deep-black);
}

.page-home .service-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

@media (min-width: 940px) {
  .page-home .service-band__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.page-home .service-band__lead {
  margin: 16px 0 24px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 58ch;
}

.page-home .service-list {
  margin: 0 0 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}

@media (min-width: 620px) {
  .page-home .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .service-item {
  background: var(--vault-black);
  padding: 14px 16px;
}

.page-home .service-item__label {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--mist);
}

.page-home .service-item__value {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--white);
  word-break: break-word;
}

.page-home .service-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .service-figure {
  margin: 0;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--vault-black);
}

.page-home .service-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 5 / 3;
}

.page-home .service-figure__cap {
  display: block;
  padding: 12px 4px 4px;
  font-size: 11px;
  color: var(--mist);
  line-height: 1.6;
}

/* ---------- MOTION SAFETY ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .scan-band::after {
    animation: none;
    opacity: 0.4;
  }
  .page-home .tool-card,
  .page-home .hero-pill,
  .page-home .text-link {
    transition: none;
  }
  .page-home .tool-card:hover,
  .page-home .tool-card:focus-within,
  .page-home .hero-pill:hover,
  .page-home .hero-pill:focus-visible {
    transform: none;
  }
}
