/* ============================================================
   eternego.ai — homepage-specific styles
   Imports design-system.css. Everything brand-shared lives there.
   ============================================================ */

@import url('./design-system.css');

/* ---------- header over the dark hero ----------
   On the homepage, the header sits over the navy hero. Keep it transparent +
   light until the user scrolls past the hero, then snap to the normal
   cream-blur header.
*/
.eg-header:not([data-scrolled="true"]) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.eg-header:not([data-scrolled="true"]) .eg-brand { color: var(--hero-ink); }
.eg-header:not([data-scrolled="true"]) .eg-brand__mark { color: var(--accent-on-dark); }
.eg-header:not([data-scrolled="true"]) .eg-brand__site { color: var(--hero-ink-3); }
.eg-header:not([data-scrolled="true"]) .eg-nav a { color: var(--hero-ink-2); }
.eg-header:not([data-scrolled="true"]) .eg-nav a:hover {
  color: var(--hero-ink);
  background: rgba(255, 255, 255, 0.06);
}
.eg-header:not([data-scrolled="true"]) .eg-nav a[aria-current="page"] { color: var(--hero-ink); }
.eg-header:not([data-scrolled="true"]) .eg-nav a[aria-current="page"]::after { background: var(--accent-on-dark); }
.eg-header:not([data-scrolled="true"]) .eg-theme-toggle {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--hero-ink-2);
}
.eg-header:not([data-scrolled="true"]) .eg-theme-toggle:hover {
  color: var(--hero-ink);
  border-color: var(--hero-ink-2);
}

/* ---------- hero ----------
   The hero commits to a dark navy ground regardless of theme — it matches the
   logo's own ground and gives the page real visual rhythm. The rest of the
   page sits on warm cream (or warm dark) below it.
*/
.hero {
  margin-top: -68px;
  padding: calc(68px + clamp(var(--s9), 9vw, 132px)) 0 clamp(var(--s9), 9vw, 120px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% 20%, rgba(224, 135, 105, 0.07), transparent 65%),
    linear-gradient(135deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 100%);
  color: var(--hero-ink);
  border-bottom: 1px solid #000;
}
/* subtle film-grain so the dark ground has texture, not flat slop */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0 1px,
      transparent 1px 3px
    );
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(var(--s6), 5vw, var(--s9));
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__copy { max-width: 40rem; }

.hero__eyebrow {
  margin-bottom: var(--s6);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-on-dark);
  opacity: 0.7;
}
.hero__eyebrow b { font-weight: 500; color: var(--hero-ink); letter-spacing: 0.16em; }
.hero__eyebrow .sep { color: var(--hero-ink-3); }

.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: var(--s6);
  font-weight: 500;
  letter-spacing: -0.028em;
  color: var(--hero-ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-on-dark);
  font-weight: 500;
}
.hero h1 .line {
  display: block;
}
.hero h1 .line + .line { margin-top: 0.08em; }

.hero__sub {
  font-size: 1.18rem;
  color: var(--hero-ink-2);
  max-width: 44ch;
  margin-bottom: var(--s7);
  line-height: 1.55;
}
.hero__sub code {
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--accent-on-dark);
  padding: 0.12em 0.45em;
  border-radius: var(--r-sm);
}

/* download row — four equal-weight buttons, no primary */
.dl-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: var(--s4);
}
@media (max-width: 700px) {
  .dl-row { grid-template-columns: repeat(2, 1fr); }
}
.dl-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s4);
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  color: var(--hero-ink);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
  position: relative;
  min-height: 96px;
  backdrop-filter: blur(4px);
}
.dl-btn:hover {
  border-color: var(--accent-on-dark);
  background: rgba(224, 135, 105, 0.07);
  transform: translateY(-1px);
}
.dl-btn[data-detected="true"] {
  border-color: var(--accent-on-dark);
  background: rgba(224, 135, 105, 0.10);
  box-shadow: 0 0 0 1px rgba(224, 135, 105, 0.20);
}
.dl-btn[data-detected="true"]::after {
  content: "detected";
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}
.dl-btn__os-icon {
  width: 22px;
  height: 22px;
  color: var(--hero-ink-2);
  flex-shrink: 0;
}
.dl-btn[data-detected="true"] .dl-btn__os-icon { color: var(--accent-on-dark); }
.dl-btn__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}
.dl-btn__name {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--hero-ink);
  line-height: 1.2;
}
.dl-btn__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--hero-ink-3);
  letter-spacing: 0.02em;
}

.hero__fineprint {
  font-size: var(--t-caption);
  color: var(--hero-ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.hero__fineprint a { color: var(--hero-ink-2); }
.hero__fineprint a:hover { color: var(--accent-on-dark); }

/* ---------- hero visual: a real memory file ----------
   Force warm-cream surfaces regardless of theme — the file glows against
   the dark hero ground like a lit window in the dark.
*/
.memfile {
  --window-body: #fbf6ea;
  --window-chrome: #ede4d1;
  --memfile-ink: #211c19;
  --memfile-ink-2: #5a4f47;
  --memfile-ink-3: #8a7e70;
  --memfile-rule: #ddd0b7;
  --memfile-em: #7a3a26;

  background: var(--window-body);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 40px 80px -30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(224, 135, 105, 0.06),
    0 0 60px -20px rgba(224, 135, 105, 0.18);
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.65;
  position: relative;
  color: var(--memfile-ink);
}
.memfile__chrome {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 10px 14px;
  background: var(--window-chrome);
  border-bottom: 1px solid var(--memfile-rule);
}
.memfile__dots { display: flex; gap: 6px; }
.memfile__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(33, 28, 25, 0.22); }
.memfile__path {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--memfile-ink-3);
  flex: 1;
  text-align: center;
  letter-spacing: 0.01em;
}
.memfile__caret {
  color: var(--memfile-ink-3);
  font-size: 0.7rem;
  font-family: var(--font-mono);
}
.memfile__body {
  padding: 18px 22px 22px;
  color: var(--memfile-ink);
  min-height: 360px;
}
.memfile__body .mf-h1 { color: var(--memfile-ink-3); font-weight: 500; margin-bottom: 6px; }
.memfile__body .mf-blank { height: 0.7em; }
.memfile__body .mf-dim { color: var(--memfile-ink-3); }
.memfile__body .mf-em { color: var(--memfile-em); font-style: italic; font-weight: 500; }
.memfile__body .mf-com { color: var(--memfile-ink-3); }
.memfile__body p { margin: 0 0 0.4em 0; }
.memfile__body .mf-entry { margin-bottom: 0.85em; }
.memfile__body .mf-entry .mf-when { color: var(--memfile-ink-3); font-style: italic; }
.memfile__body .mf-cursor {
  display: inline-block;
  width: 7px;
  height: 0.95em;
  background: var(--memfile-em);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: mf-blink 1.1s steps(2, end) infinite;
}
@keyframes mf-blink { to { opacity: 0; } }
.memfile__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px;
  background: var(--window-chrome);
  border-top: 1px solid var(--memfile-rule);
  font-size: 0.66rem;
  color: var(--memfile-ink-3);
  letter-spacing: 0.04em;
}
.memfile__footer span { display: inline-flex; align-items: center; gap: 6px; }
.memfile__footer .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4caf73;
  box-shadow: 0 0 0 3px rgba(76, 175, 115, 0.25);
}

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { order: 1; }
  .memfile { order: 2; }
  .memfile__body { min-height: 280px; }
}

/* ---------- section scaffolding ---------- */
.section {
  padding: var(--s10) 0;
  position: relative;
}
.section--tight { padding: var(--s8) 0; }
.section--dark {
  background: var(--bg-sunk);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s8);
  margin-bottom: var(--s8);
  align-items: end;
}
.section__head h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); line-height: 1.08; }
.section__head p { color: var(--ink-2); font-size: var(--t-body-lg); max-width: 50ch; margin: 0; }
@media (max-width: 760px) {
  .section { padding: var(--s8) 0; }
  .section__head { grid-template-columns: 1fr; gap: var(--s4); margin-bottom: var(--s6); }
}

/* ---------- pain block (three lines) ---------- */
.pain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pain__line {
  background: var(--bg);
  padding: var(--s7) var(--s6);
}
.pain__line .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-bottom: var(--s4);
  display: block;
}
.pain__line p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.4rem);
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
}
.pain__line .resp {
  display: block;
  margin-top: var(--s4);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.86rem;
  color: var(--ink-3);
  letter-spacing: 0;
}
.pain__line .resp::before {
  content: "→ ";
  color: var(--accent);
  font-style: normal;
}
@media (max-width: 880px) {
  .pain { grid-template-columns: 1fr; }
}

/* ---------- feature grid (8) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  position: relative;
  min-height: 180px;
}
.feature__icon {
  width: 26px; height: 26px;
  color: var(--accent-ink);
  margin-bottom: var(--s2);
}
[data-theme="dark"] .feature__icon { color: var(--accent); }
.feature h4 {
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.feature p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }

/* ---------- proof row ---------- */
.proof {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: var(--s5);
}
.proof__item {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.proof__media {
  aspect-ratio: 4 / 3;
  background: var(--bg-sunk);
  position: relative;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.proof__media .slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in oklab, var(--ink) 4%, transparent) 0 1px,
      transparent 1px 12px
    );
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  padding: var(--s4);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.proof__media img { width: 100%; height: 100%; object-fit: cover; }
.proof__body { padding: var(--s5); flex: 1; display: flex; flex-direction: column; }
.proof__caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0 0 var(--s3) 0;
  line-height: 1.4;
}
.proof__byline {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
}
.proof__byline a { color: var(--ink-3); }
.proof__byline a:hover { color: var(--accent-ink); }

/* tweet card */
.tweet {
  padding: var(--s5);
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tweet__head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.tweet__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent-ink);
  font-size: 1.15rem;
}
[data-theme="dark"] .tweet__avatar { color: var(--accent); }
.tweet__who { display: flex; flex-direction: column; gap: 0; line-height: 1.2; }
.tweet__name { font-weight: 600; font-size: 0.9rem; }
.tweet__handle { color: var(--ink-3); font-size: 0.78rem; font-family: var(--font-mono); }
.tweet__body { color: var(--ink); margin-bottom: var(--s3); }
.tweet__body .mention { color: var(--accent-ink); }
[data-theme="dark"] .tweet__body .mention { color: var(--accent); }
.tweet__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}

/* blog excerpt card */
.blogcard { padding: var(--s5); display: flex; flex-direction: column; height: 100%; }
.blogcard__kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s3);
}
.blogcard__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 var(--s3) 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.blogcard__excerpt {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 var(--s4) 0;
}
.blogcard__signed {
  margin-top: auto;
  border-top: 1px dashed var(--rule);
  padding-top: var(--s3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  line-height: 1.6;
}
.blogcard__signed em { color: var(--ink-2); font-style: normal; }

@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } }

/* ---------- differentiators (badge row) ---------- */
.diffs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.diff {
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: var(--bg);
}
.diff__mark {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.diff__label {
  font-size: 0.86rem;
  color: var(--ink);
  font-weight: 500;
}
.diff__note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  margin-left: auto;
}
@media (max-width: 1000px) { .diffs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .diffs { grid-template-columns: 1fr; } }

/* ---------- folder tree ---------- */
.folder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: start;
}
.folder__tree {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s6);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--ink);
}
.folder__tree .dim { color: var(--ink-3); }
.folder__tree .row { display: flex; align-items: baseline; gap: 14px; }
.folder__tree .row .name { color: var(--ink); }
.folder__tree .row .note { color: var(--ink-3); margin-left: auto; font-size: 0.78rem; }
.folder__tree .indent { display: inline-block; width: 18px; color: var(--ink-3); }
.folder__copy h3 {
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: var(--s4);
}
.folder__copy p { color: var(--ink-2); font-size: var(--t-body-lg); max-width: 38ch; }
.folder__list {
  margin-top: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.folder__list li {
  list-style: none;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: var(--s4);
  font-size: 0.92rem;
  padding-top: var(--s3);
  border-top: 1px dashed var(--rule);
}
.folder__list li:first-child { border-top: 0; padding-top: 0; }
.folder__list code {
  font-size: 0.82rem;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--accent-ink);
}
[data-theme="dark"] .folder__list code { color: var(--accent); }
.folder__list span { color: var(--ink-2); }
@media (max-width: 900px) { .folder { grid-template-columns: 1fr; } }

/* ---------- install / second CTA ---------- */
.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: start;
}
.install h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.15; margin-bottom: var(--s4); }
.install p { color: var(--ink-2); margin-bottom: var(--s5); max-width: 38ch; }
.install__snippet {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.install__snippet header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.install__snippet pre {
  margin: 0;
  padding: var(--s5);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink);
  overflow-x: auto;
  white-space: pre;
}
.install__snippet pre .prompt { color: var(--ink-3); user-select: none; }
.install__snippet pre .flag { color: var(--accent-ink); }
[data-theme="dark"] .install__snippet pre .flag { color: var(--accent); }
.install__copy-btn {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  padding: 5px 9px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--t-fast) var(--ease);
}
.install__copy-btn:hover { color: var(--ink); border-color: var(--ink-3); background: var(--bg); }
.install__copy-btn[data-copied="true"] { color: var(--accent-ink); border-color: var(--accent); }
[data-theme="dark"] .install__copy-btn[data-copied="true"] { color: var(--accent); }
.install__note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: var(--s4);
  line-height: 1.6;
}
.install__note a { color: var(--ink-3); }
.install__note a:hover { color: var(--accent-ink); }
@media (max-width: 900px) { .install { grid-template-columns: 1fr; } }

/* ---------- curious cards ---------- */
.curious {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.curious__card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s6);
  text-decoration: none;
  color: var(--ink);
  transition: all var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.curious__card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.curious__card .kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.curious__card h4 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.curious__card p {
  color: var(--ink-2);
  font-size: 0.92rem;
  margin: 0;
  flex: 1;
}
.curious__card .go {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-ink);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
[data-theme="dark"] .curious__card .go { color: var(--accent); }
.curious__card:hover .go::after { transform: translateX(3px); }
.curious__card .go::after {
  content: "→";
  transition: transform var(--t-fast) var(--ease);
  display: inline-block;
}
@media (max-width: 880px) { .curious { grid-template-columns: 1fr; } }

/* ---------- small section: closing line ---------- */
.closing {
  padding: var(--s10) 0;
  text-align: center;
}
.closing p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 32ch;
  margin: 0 auto;
  font-weight: 400;
}
.closing__sig {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: var(--s5);
  letter-spacing: 0.04em;
}

/* ---------- mobile (<= 700px) ---------- */
@media (max-width: 700px) {
  /* Hero memfile: shrink mono so the typewriter lines fit the narrower card.
     Drop the "modified · 4m ago" marker (lowest signal) to give the path room. */
  .memfile { font-size: 0.62rem; line-height: 1.6; }
  .memfile__chrome { padding: 8px 10px; gap: var(--s2); }
  .memfile__path { font-size: 0.58rem; }
  .memfile__caret { display: none; }
  .memfile__body { padding: 14px 14px 18px; min-height: 240px; }
  .memfile__footer { padding: 6px 10px; font-size: 0.56rem; }

  /* Install snippet: wrap the long URL instead of letting it trail off. */
  .install__snippet pre {
    font-size: 0.72rem;
    padding: var(--s4);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  /* Folder tree: keep monospace, but let it shrink + scroll horizontally if needed. */
  .folder__tree {
    font-size: 0.68rem;
    line-height: 1.7;
    padding: var(--s4);
    overflow-x: auto;
  }

  /* Folder list: stack each item (filename above description) — the
     11rem column was eating too much width. */
  .folder__list li {
    grid-template-columns: 1fr;
    gap: var(--s1);
  }

  /* Closing section: 96px×2 was eating half a phone screen. */
  .closing { padding: var(--s7) 0; }

  /* Hero: tighten top padding — the -68px margin-top compensates a
     desktop-sized header that's ~50px on mobile, so we over-pull by ~18px.
     Plus the clamp's vw branch never reaches s9 at narrow widths anyway. */
  .hero {
    margin-top: -52px;
    padding-top: calc(52px + var(--s7));
    padding-bottom: var(--s8);
  }
}
