/* ============================================================
   webdiego.com.br — "Terminal Editorial"
   Direção: tinta escura + âmbar CRT + serifada editorial.
   Cues assinatura: (1) meta em monoespaçada  (2) âmbar #FFB000
   como único acento  (3) ênfase em serifada itálica.
   ============================================================ */

:root {
  --ink: #0a0a0b;
  --ink-2: #101014;
  --panel: #131316;
  --paper: #edeae3;
  --muted: #8b8880;
  --amber: #ffb000;
  --line: rgba(237, 234, 227, 0.14);
  --line-soft: rgba(237, 234, 227, 0.08);

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 48px);
  --r: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--amber); color: #141000; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - var(--gut) * 2);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono--amber { color: var(--amber); }

.serif-it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ---------- header (neo-esqueuomorfismo: blur + camada flutuante) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(10, 10, 11, 0.62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.45s var(--ease);
}
.site-header[data-hidden="true"] { transform: translateY(-100%); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.brand .dot { color: var(--amber); }
.brand small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
}
.site-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--paper);
  opacity: 0.82;
  position: relative;
  padding: 6px 0;
  transition: opacity 0.25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--amber);
  transition: right 0.35s var(--ease);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { right: 0; }
.site-nav .nav-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  opacity: 1;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover {
  border-color: var(--amber);
  box-shadow: 0 6px 22px -8px rgba(255, 176, 0, 0.45);
  transform: translateY(-1px);
}
.nav-clock { color: var(--muted); }
@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .nav-clock { display: none; }
}

/* ---------- hero (tipografia cinética — só o hero se mexe) ---------- */
.hero {
  position: relative;
  padding: clamp(120px, 17vh, 190px) 0 clamp(56px, 8vh, 110px);
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero::after {
  /* rastilho âmbar: detalhe autoral, repete o acento */
  content: "";
  position: absolute;
  left: var(--gut);
  bottom: 34px;
  width: 74px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: clamp(26px, 5vh, 54px);
}
.hero__title {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-size: clamp(3.1rem, 11.2vw, 9.6rem);
  text-transform: none;
}
.hero__title .line {
  display: block;
  will-change: transform;
}
.hero__title .line em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--amber);
  padding-right: 0.06em;
}
.hero__title .line:nth-child(2) { padding-left: clamp(0px, 8vw, 150px); }
.hero__title .line:nth-child(3) { padding-left: clamp(0px, 3vw, 60px); }
.hero__foot {
  margin-top: clamp(34px, 6vh, 64px);
  display: grid;
  grid-template-columns: minmax(0, 46ch) auto;
  gap: 28px;
  align-items: end;
}
.hero__lede {
  color: #cfccc4;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.6;
}
.hero__lede b { color: var(--paper); font-weight: 600; }
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: var(--amber);
  translate: 0 0.14em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero__scroll {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__scroll span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--muted); }
.hero__scroll i {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  color: var(--amber);
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-width: 720px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__scroll { justify-self: start; }
}

/* ---------- faixa de números ---------- */
.strip {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 176, 0, 0.035), transparent 70%);
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
.strip__cell {
  background: var(--ink);
  padding: clamp(18px, 3vw, 30px) clamp(4px, 1vw, 10px);
}
.strip__cell b {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.strip__cell b i { font-style: normal; color: var(--amber); }
.strip__cell span { display: block; margin-top: 8px; }
@media (max-width: 720px) {
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- seções ---------- */
.section { padding: clamp(64px, 11vh, 132px) 0; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 5vh, 56px);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 18px;
}
.section__head h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.section__head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
}

/* ---------- destaques (grid editorial, 1 grande + 3) ---------- */
.featured {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
}
.card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
/* larguras atribuídas pelo build (o nth-child antigo não acompanhava o lead) */
.card--w7 { grid-column: span 7; }
.card--w5 { grid-column: span 5; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85), 0 14px 40px -24px rgba(255, 176, 0, 0.35);
  border-color: rgba(255, 176, 0, 0.35);
}
.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0d10;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.01);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: saturate(0.92) contrast(1.02);
}
.card:hover .card__media img { transform: scale(1.045); filter: saturate(1.05) contrast(1.04); }
.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(10, 10, 11, 0.78);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 5px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.card__body { padding: clamp(16px, 2vw, 24px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.card__row h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card__row h3 a:hover { color: var(--amber); }
.card p { color: #c4c1ba; font-size: 0.94rem; }
.card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
/* destaque principal: imagem grande sangrando no topo dos outros */
.card--lead { grid-column: 1 / -1; }
.card--lead .card__row h3 { font-size: clamp(1.4rem, 2.8vw, 2.3rem); }
.card--lead .card p { font-size: 1.02rem; max-width: 78ch; }
@media (max-width: 860px) {
  .card, .card--lead, .card--w7, .card--w5 { grid-column: 1 / -1; }
}

/* ---------- índice numerado (editorial, estilo RDA) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.filter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  transition: all 0.3s var(--ease);
}
.filter:hover { color: var(--paper); border-color: rgba(237, 234, 227, 0.4); }
.filter[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: #171100;
  box-shadow: 0 10px 26px -14px rgba(255, 176, 0, 0.7);
}
.filter sup { font-size: 0.62rem; opacity: 0.75; margin-left: 4px; }

.index { margin-top: 26px; border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1.5fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  padding: clamp(16px, 2.2vw, 26px) 6px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: background 0.35s var(--ease), padding-left 0.35s var(--ease);
}
.row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.row:hover { background: rgba(255, 255, 255, 0.028); padding-left: 16px; }
.row:hover::before { transform: scaleY(1); }
.row__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.row:hover .row__num { color: var(--amber); }
.row__title { min-width: 0; display: grid; gap: 5px; }
.row__title b {
  font-size: clamp(1.25rem, 2.7vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.row:hover .row__title b { color: var(--amber); }
.row__title small {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 861px) {
  .row__title small { -webkit-line-clamp: 1; }
}
.row__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.row__end { display: flex; align-items: center; gap: 16px; }
.row__end .mono { white-space: nowrap; }
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.status-dot[data-live="true"]::before { background: var(--amber); box-shadow: 0 0 10px rgba(255, 176, 0, 0.8); }
.row.is-hidden { display: none; }
@media (max-width: 860px) {
  .row {
    grid-template-columns: 2.4rem 1fr;
    grid-template-areas: "num name" "num tags" "num end";
    row-gap: 8px;
  }
  .row__num { grid-area: num; }
  .row__title { grid-area: name; }
  .row__tags { grid-area: tags; }
  .row__end { grid-area: end; }
}

/* preview que segue o cursor (motion com função: guia o olhar ao projeto) */
.hover-preview {
  position: fixed;
  top: 0; left: 0;
  width: clamp(240px, 24vw, 340px);
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 176, 0, 0.4);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.92);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 50;
  background: var(--panel);
}
.hover-preview[data-show="true"] { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (hover: none), (max-width: 860px) { .hover-preview { display: none; } }

.index__empty { padding: 40px 6px; color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; }

/* ---------- sobre ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); }
.about__big {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.about__big em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--amber); }
.about p + p { margin-top: 1.1em; }
.about__body { color: #c4c1ba; font-size: 0.98rem; }
.about__links { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.about__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  transition: all 0.3s var(--ease);
}
.about__links a i { font-style: normal; color: var(--amber); transition: transform 0.3s var(--ease); }
.about__links a:hover {
  border-color: rgba(255, 176, 0, 0.5);
  background: rgba(255, 176, 0, 0.05);
  box-shadow: 0 16px 40px -26px rgba(255, 176, 0, 0.6);
}
.about__links a:hover i { transform: translate(3px, -3px); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- footer (wordmark gigante = quebrador de grid) ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(44px, 7vh, 80px);
  overflow: hidden;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding-bottom: clamp(30px, 6vh, 60px);
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer__col a, .footer__col span { display: block; font-size: 0.92rem; color: #c4c1ba; padding: 4px 0; }
.footer__col a:hover { color: var(--amber); }
.wordmark {
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.78;
  font-size: clamp(4.4rem, 17.5vw, 16.5rem);
  transform: translateX(-0.012em);
  color: var(--paper);
  white-space: nowrap;
  user-select: none;
}
.wordmark i { font-style: normal; color: var(--amber); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line-soft);
  margin-top: clamp(16px, 3vh, 34px);
}
@media (max-width: 860px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- página de projeto ---------- */
.p-hero { padding: clamp(104px, 15vh, 160px) 0 clamp(26px, 4vh, 46px); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: clamp(22px, 4vh, 44px); }
.crumb a:hover { color: var(--amber); }
.p-title {
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  overflow-wrap: anywhere;
}
.p-tagline {
  margin-top: clamp(16px, 3vh, 26px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  color: #d9d6ce;
  max-width: 34ch;
}
.p-figure {
  margin-top: clamp(28px, 5vh, 54px);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.9);
}
.p-figure img { width: 100%; }
.p-figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.p-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 84px);
  padding: clamp(44px, 8vh, 90px) 0;
}
.p-body h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.p-body h2:not(:first-child) { margin-top: 40px; }
.p-body p { color: #c9c6bf; font-size: 1.02rem; line-height: 1.7; }
.p-body p + p { margin-top: 1em; }
.p-body a.inline { color: var(--paper); border-bottom: 1px solid var(--amber); }
.p-body a.inline:hover { color: var(--amber); }
.p-highlights { list-style: none; padding: 0; display: grid; gap: 12px; }
.p-highlights li {
  position: relative;
  padding-left: 26px;
  color: #c9c6bf;
  font-size: 0.98rem;
  line-height: 1.6;
}
.p-highlights li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.p-meta {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 30px);
  align-self: start;
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
}
.p-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.p-meta dt { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.p-meta dd { margin: 0; font-size: 0.86rem; text-align: right; }
.p-meta dd .status-dot { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.p-meta .stack { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.btn i { font-style: normal; transition: transform 0.3s var(--ease); }
.btn:hover { border-color: rgba(255, 176, 0, 0.55); background: rgba(255, 176, 0, 0.06); }
.btn:hover i { transform: translate(3px, -3px); }
.btn--amber { background: var(--amber); color: #171100; border-color: var(--amber); font-weight: 500; box-shadow: 0 18px 40px -24px rgba(255, 176, 0, 0.8); }
.btn--amber:hover { background: #ffc233; border-color: #ffc233; }
.p-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 26px);
  padding-bottom: clamp(50px, 9vh, 100px);
}
.p-nav a {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  gap: 8px;
  transition: all 0.35s var(--ease);
}
.p-nav a:hover { border-color: rgba(255, 176, 0, 0.45); background: rgba(255, 255, 255, 0.03); transform: translateY(-3px); }
.p-nav a b { font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; }
.p-nav a.next { text-align: right; }
.p-nav a .mono { color: var(--amber); }
@media (max-width: 860px) {
  .p-grid { grid-template-columns: 1fr; }
  .p-meta { position: static; }
  .p-nav { grid-template-columns: 1fr; }
}

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .line { transform: none !important; }
}
