/* Extracted from templates/home.php so it is cached and not re-sent on every page load. */

/* ─────────────────────────────────────────────────────────────
   § 1  HERO
───────────────────────────────────────────────────────────── */
.hp-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 0;
  overflow: hidden;
}
.hp-hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 52px;
  align-items: center;
}

.hp-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 3.8vw, 54px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 22px;
}

.hp-hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-3);
  margin-bottom: 32px;
  max-width: 460px;
}

.hp-hero-actions {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 36px;
}
.hp-hero-stats {
  display: flex; align-items: stretch; gap: 0;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.hp-stat { flex: 1; text-align: center; }
.hp-stat-num {
  display: block;
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 5px;
}
.hp-stat-lbl { font-size: 11px; color: var(--ink-4); line-height: 1.45; }
.hp-stat-sep { width: 1px; background: var(--border); flex: none; margin: 4px 0; }

.hp-hero-right { display: flex; align-items: flex-start; }
.hp-metric-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.hp-metric-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow 0.18s, transform 0.15s, border-color 0.15s;
}
.hp-metric-card:hover {
  box-shadow: 0 6px 24px rgba(44,43,40,0.09);
  transform: translateY(-2px);
  border-color: var(--border-md);
}
.hp-metric-icon {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  background: var(--ink); color: rgba(255,255,255,0.7);
}
.hp-metric-num {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.025em; line-height: 1;
}
.hp-metric-lbl { font-size: 11.5px; color: var(--ink-4); line-height: 1.4; }

/* ─────────────────────────────────────────────────────────────
   § 2  EBOOKS
───────────────────────────────────────────────────────────── */
.hp-ebooks {
  padding: 80px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hp-section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px; gap: 16px; flex-wrap: wrap;
}
.hp-section-h2 {
  font-family: var(--serif); font-size: 30px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.025em; line-height: 1.2;
}
.hp-see-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-3);
  text-decoration: none; white-space: nowrap; flex: none;
  transition: color 0.12s;
}
.hp-see-all:hover { color: var(--ink); }

.hp-ebook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hp-ebook-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden; background: var(--bg);
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: box-shadow 0.18s, transform 0.15s, border-color 0.15s;
}
.hp-ebook-card:hover {
  box-shadow: 0 6px 28px rgba(44,43,40,0.1);
  transform: translateY(-3px);
  border-color: var(--border-md);
}

.hp-ebook-cover {
  width: 100%;
  aspect-ratio: 3 / 2.8;
  position: relative; overflow: hidden;
}
.hp-ebook-cover-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 16px 18px; position: relative;
}
.hp-ebook-cover-inner::before {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(255,255,255,0.07); pointer-events: none;
}
.hp-ebook-cover-inner::after {
  content: '';
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.hp-cover-1 { background: #2c2b28; }
.hp-cover-2 { background: #252421; }
.hp-cover-3 { background: #201f1c; }
.hp-cover-4 { background: #2c2b28; }

.hp-ebook-badge {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 3px 9px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
}
.hp-ebook-cover-label {
  font-size: 8.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 5px;
}
.hp-ebook-cover-title {
  font-family: var(--serif); font-size: 14.5px; font-weight: 600;
  line-height: 1.3; color: #fff;
}

.hp-ebook-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.hp-ebook-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 5px;
}
.hp-ebook-tag::before {
  content: ''; display: block;
  width: 10px; height: 1.5px;
  background: var(--accent); border-radius: 1px;
}
.hp-ebook-title {
  font-family: var(--serif); font-size: 13.5px; font-weight: 600;
  line-height: 1.38; color: var(--ink); flex: 1;
}
.hp-ebook-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--ink-4);
}
.hp-ebook-download {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; color: var(--ink);
}

/* ── Native dialog popup ──────────────────────────────────── */
dialog.hp-popup-dialog {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  width: min(760px, 95vw);
  max-height: 90vh;
  box-shadow: 0 24px 64px rgba(20,19,18,0.2);
  overflow: hidden;
  background: var(--bg);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
dialog.hp-popup-dialog::backdrop {
  background: rgba(20,19,17,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body:has(dialog.hp-popup-dialog[open]) {
  overflow: hidden;
}
.hp-popup {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hp-popup-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border-md); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-3);
  transition: background 0.12s, color 0.12s;
  z-index: 10;
}
.hp-popup-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.hp-popup-left {
  padding: 36px 32px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px;
}
.hp-popup-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}
.hp-popup-book-title {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: #fff; line-height: 1.25; margin-bottom: 12px;
}
.hp-popup-book-desc {
  font-size: 13px; color: rgba(255,255,255,0.58);
  line-height: 1.65; margin-bottom: 24px;
}
.hp-popup-includes {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md); padding: 14px 16px;
}
.hp-popup-includes-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 9px;
}
.hp-popup-include-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,0.65);
  padding: 4px 0;
}
.hp-popup-include-icon {
  width: 20px; height: 20px; border-radius: 4px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  flex: none; color: rgba(255,255,255,0.65);
}
.hp-popup-right {
  padding: 36px 32px; background: var(--bg);
  display: flex; flex-direction: column;
}
.hp-popup-right-title {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--ink); margin-bottom: 5px;
}
.hp-popup-right-sub {
  font-size: 13px; color: var(--ink-4); margin-bottom: 26px; line-height: 1.5;
}
.hp-popup-field { margin-bottom: 14px; }
.hp-popup-field label {
  display: block; font-size: 11.5px; font-weight: 500;
  color: var(--ink-3); margin-bottom: 5px;
}
.hp-popup-field label span { color: var(--accent); }
.hp-popup-input {
  width: 100%; padding: 10px 13px;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--border-md);
  border-radius: var(--r); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hp-popup-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(44,43,40,0.07);
}
.hp-popup-input::placeholder { color: var(--ink-4); }
.hp-popup-submit {
  width: 100%; margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  padding: 12px 22px; border-radius: var(--r); border: none;
  cursor: pointer; transition: background 0.15s;
}
.hp-popup-submit:hover { background: var(--ink-2); }
.hp-popup-note {
  font-size: 10.5px; color: var(--ink-4);
  text-align: center; margin-top: 10px;
}

/* ─────────────────────────────────────────────────────────────
   § 3  TECH TICKER — scattered chips on near-black
   Each chip carries --tilt / --shift (set inline by home.php) so
   the rows look hand-placed while the loop stays seamless.
───────────────────────────────────────────────────────────── */
.hp-ticker {
  --tk-bg: #0c0c0d;
  background: var(--tk-bg);
  padding: 44px 0 36px;
  overflow: hidden;
}

/* Heading */
.hp-ticker-head {
  text-align: center;
  padding: 0 20px;
  margin-bottom: 18px;
}
.hp-ticker-h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.hp-ticker-h2 em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}

.hp-ticker-track-wrap {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px;
}
/* Soft fade on both edges */
.hp-ticker-track-wrap::before,
.hp-ticker-track-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2;
  pointer-events: none;
}
.hp-ticker-track-wrap::before { left: 0;  background: linear-gradient(to right, var(--tk-bg), transparent); }
.hp-ticker-track-wrap::after  { right: 0; background: linear-gradient(to left,  var(--tk-bg), transparent); }

.hp-ticker-track {
  display: flex; align-items: center; gap: 22px;
  width: max-content;
  padding: 10px 0;            /* room so tilted chips aren't clipped */
  animation: hp-ticker-scroll 96s linear infinite;
}
.hp-ticker-track:hover { animation-play-state: paused; }
.hp-ticker-track-2 {
  animation-direction: reverse;
  animation-duration: 112s;
  margin-left: -90px;         /* stagger rows so chips don't stack in columns */
}
.hp-ticker-track-3 {
  animation-duration: 104s;
  margin-left: -40px;
}
@keyframes hp-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Chip */
.hp-tech-chip {
  --tilt: 0deg;
  --shift: 0px;
  display: inline-flex; align-items: center; gap: 9px;
  flex: none;
  background: #fff;
  color: #141413;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25), 0 6px 18px rgba(0,0,0,0.28);
  transform: translateY(var(--shift)) rotate(var(--tilt));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hp-tech-chip:hover {
  transform: translateY(var(--shift)) rotate(0deg) scale(1.05);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), 0 12px 28px rgba(0,0,0,0.35);
}

/* Sizes */
.hp-tech-chip--s { font-size: 12.5px; padding: 8px 13px; }
.hp-tech-chip--m { font-size: 14px;   padding: 10px 16px; }
.hp-tech-chip--l { font-size: 16.5px; padding: 12px 20px; font-weight: 600; }

.hp-tech-chip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  font-size: 1.05em; line-height: 1;
}

/* ─────────────────────────────────────────────────────────────
   § 4  NEWSLETTER
───────────────────────────────────────────────────────────── */
.hp-nl {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}
.hp-nl-inner {
  max-width: 600px; margin: 0 auto;
  padding: 0 40px; text-align: center;
}
.hp-nl-h2 {
  font-family: var(--serif); font-size: 34px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.025em; line-height: 1.2;
  margin-bottom: 12px;
}
.hp-nl-sub {
  font-size: 15.5px; color: var(--ink-3); line-height: 1.7;
  margin-bottom: 32px;
}
.hp-nl-avatars {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.hp-nl-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 600; color: #fff;
  margin-left: -7px; flex: none;
}
.hp-nl-avatar:first-child { margin-left: 0; }
.hp-nl-reader-count {
  font-size: 12px; color: var(--ink-3); margin-left: 11px;
}
.hp-nl-reader-count strong { color: var(--ink); font-weight: 600; }
.hp-nl-form {
  display: flex; gap: 8px;
  max-width: 420px; margin: 0 auto 14px;
}
.hp-nl-input {
  flex: 1; padding: 12px 15px;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--border-md);
  border-radius: var(--r); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hp-nl-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(44,43,40,0.07);
}
.hp-nl-input::placeholder { color: var(--ink-4); }
.hp-nl-btn {
  padding: 12px 22px; background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  border: none; border-radius: var(--r); cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
.hp-nl-btn:hover { background: var(--ink-2); }
.hp-nl-note { font-size: 11px; color: var(--ink-4); }


/* ═══════════════════════════════════════════════════════════
   § 5  PROJECT DESK — academic wingman
   Background: --surface (#f2f0ec) — same as the screenshot's
   light warm-grey. Card is white (#fff) sitting on top.
═══════════════════════════════════════════════════════════ */
.hp-pd {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 80px;
}

/* ── Section header ─────────────────────────────────────── */
.hp-pd-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.hp-pd-h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.025em; line-height: 1.2;
  margin: 0;
}
/* Shared "Visit Project Desk →" / "See all →" link style */
.hp-pd-header-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  text-decoration: none; white-space: nowrap;
  transition: color 0.12s;
  flex: none;
  padding-bottom: 2px; /* optical alignment with the h2 baseline */
}
.hp-pd-header-link:hover { color: var(--ink); }

/* ── Main card ──────────────────────────────────────────── */
.hp-pd-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 55fr 45fr;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(44,43,40,0.05);
}

/* ── Left panel ─────────────────────────────────────────── */
.hp-pd-left {
  padding: 44px 48px 44px 44px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.hp-pd-left-eyebrow { margin-bottom: 14px; }
.hp-pd-left-h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: var(--ink); line-height: 1.25; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hp-pd-left-sub {
  font-size: 14px; color: var(--ink-3); line-height: 1.68;
  margin-bottom: 28px;
}

/* Checklist */
.hp-pd-checklist {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 11px;
}
.hp-pd-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-2); line-height: 1.5;
}
.hp-pd-check {
  flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(23,115,20,0.1);
  border: 1px solid rgba(23,115,20,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  color: var(--accent);
}

/* Action buttons reuse .hp-btn-primary and .hp-btn-ghost */
.hp-pd-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Right panel ────────────────────────────────────────── */
.hp-pd-right {
  padding: 44px 44px 0;
  display: flex;
  flex-direction: column;
}
.hp-pd-services-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 16px;
}

/* Services list */
.hp-pd-services {
  list-style: none; padding: 0; margin: 0; flex: 1;
}
.hp-pd-service {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.hp-pd-service:last-child { border-bottom: none; }
.hp-pd-service-icon {
  flex: none;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.hp-pd-service-name {
  flex: 1;
  font-size: 14px; font-weight: 500; color: var(--ink);
  line-height: 1.3;
}

/* Status badges */
.hp-pd-badge {
  flex: none;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
  border: 1px solid transparent;
  line-height: 1.6;
}
.hp-pd-badge--free {
  color: #177314;
  background: rgba(23,115,20,0.08);
  border-color: rgba(23,115,20,0.22);
}
.hp-pd-badge--premium {
  color: #7c3aed;
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.22);
}
.hp-pd-badge--popular {
  color: #1558d6;
  background: rgba(21,88,214,0.08);
  border-color: rgba(21,88,214,0.22);
}
.hp-pd-badge--available {
  color: var(--ink-3);
  background: var(--surface);
  border-color: var(--border-md);
}

/* Stats row at the bottom of the right panel */
.hp-pd-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.hp-pd-stat { flex: 1; text-align: center; }
.hp-pd-stat-num {
  display: block;
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 4px;
}
.hp-pd-stat-lbl {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-4);
}
.hp-pd-stat-sep { width: 1px; background: var(--border); flex: none; height: 32px; }


/* ═══════════════════════════════════════════════════════════
   § 6  HOW THINGS ACTUALLY WORK
   Background: pure white (#fff) as requested.
═══════════════════════════════════════════════════════════ */
.hp-htaw {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 72px 0 80px;
}

/* ── Section header ─────────────────────────────────────── */
.hp-htaw-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.hp-htaw-h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.025em; line-height: 1.2;
  margin: 0;
}

/* ── Article list ───────────────────────────────────────── */
.hp-htaw-list { display: flex; flex-direction: column; }

.hp-htaw-row {
  display: grid;
  grid-template-columns: 36px 96px 1fr 28px;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.12s;
  border-radius: 0;
}
.hp-htaw-row:last-child { border-bottom: none; }
.hp-htaw-row:hover { background: #fafaf8; }
.hp-htaw-row:hover .hp-htaw-title { color: var(--ink-2); }
.hp-htaw-row:hover .hp-htaw-arrow { color: var(--ink); transform: translateX(3px); }

/* Counter */
.hp-htaw-num {
  font-family: var(--serif); font-size: 15px; font-weight: 600;
  color: var(--ink-4); letter-spacing: -0.01em;
  text-align: right;
  align-self: center;
  padding-right: 4px;
}

/* Thumbnail */
.hp-htaw-thumb {
  width: 96px; height: 64px;
  border-radius: var(--r);
  background: var(--surface);
  flex: none;
  overflow: hidden;
}

/* Body */
.hp-htaw-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hp-htaw-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 3px;
}
.hp-htaw-cat-line {
  display: block; width: 14px; height: 1.5px;
  background: var(--accent); border-radius: 1px; flex: none;
}
.hp-htaw-title {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  color: var(--ink); line-height: 1.35; letter-spacing: -0.01em;
  transition: color 0.12s;
}
.hp-htaw-excerpt {
  font-size: 13.5px; color: var(--ink-3); line-height: 1.55;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hp-htaw-meta {
  font-size: 12px; color: var(--ink-4);
  margin-top: 2px;
}

/* Arrow */
.hp-htaw-arrow {
  color: var(--ink-4);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, transform 0.18s;
  flex: none;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — new sections
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Project Desk: stack panels */
  .hp-pd-card { grid-template-columns: 1fr; }
  .hp-pd-left { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 28px; }
  .hp-pd-right { padding: 32px 28px 0; }

  /* HTAW: tighter grid */
  .hp-htaw-row { grid-template-columns: 28px 72px 1fr 24px; gap: 14px; }
  .hp-htaw-thumb { width: 72px; height: 48px; }
}

@media (max-width: 640px) {
  /* Project Desk header */
  .hp-pd-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hp-pd-left { padding: 28px 20px; }
  .hp-pd-right { padding: 24px 20px 0; }
  .hp-pd-left-h3 { font-size: 22px; }
  .hp-pd-stats { padding: 16px 0 20px; }

  /* Ticker: tighter on phones */
  .hp-ticker { padding: 36px 0 28px; }
  .hp-ticker-head { margin-bottom: 12px; }
  .hp-ticker-track { gap: 14px; padding: 8px 0; }
  .hp-ticker-track-wrap { gap: 0; }
  .hp-ticker-track-wrap::before,
  .hp-ticker-track-wrap::after { width: 48px; }
  .hp-tech-chip--s { font-size: 11.5px; padding: 7px 11px; }
  .hp-tech-chip--m { font-size: 12.5px; padding: 8px 13px; }
  .hp-tech-chip--l { font-size: 14px;   padding: 9px 15px; }

  /* HTAW: hide counter + thumbnail on very small screens */
  .hp-htaw-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hp-htaw-row { grid-template-columns: 64px 1fr 20px; gap: 12px; padding: 18px 0; }
  .hp-htaw-num { display: none; }
  .hp-htaw-thumb { width: 64px; height: 44px; }
  .hp-htaw-excerpt { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   EXISTING responsive rules (unchanged)
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hp-ebook-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hp-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hp-hero-right { display: none; }
  .hp-hero { padding: 60px 0 0; }
  .hp-popup { grid-template-columns: 1fr; }
  .hp-popup-left { display: none; }
  .hp-popup-right { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .hp-hero-inner { padding: 0 20px; }
  .hp-ebook-grid { grid-template-columns: 1fr; }
  .hp-nl-form { flex-direction: column; }
  .hp-nl-btn { width: 100%; }
  .hp-nl-inner { padding: 0 20px; }
  .hp-nl-h2 { font-size: 27px; }
}