/* ══════════════════════════════════════════════════════════════
   Black Sheep Jade — shared design system
   Palette, background layers and typography carried over from
   the original landing page.
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --jade-void:      #050f0a;
  --jade-abyss:     #091710;
  --jade-deep:      #0d2318;
  --jade-stone:     #163d28;
  --jade-mid:       #245c3d;
  --jade-bright:    #3a8a5f;
  --jade-accent:    #4aab78;
  --jade-light:     #72c49a;
  --jade-mint:      #a8d8be;
  --jade-pale:      #d4ede3;
  --ivory:          #f2ede6;
  --gold:           #c4a35a;
  --gold-pale:      #e2c98a;

  /* Cool accent reserved for jadeite so the two stones read apart
     without leaving the jade palette. */
  --ice:            #a7cdf0;
  --ice-deep:       #5a96d2;

  --measure: 1180px;
  --rule: 1px solid rgba(74, 171, 120, 0.16);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background-color: #0a1210;
  font-family: 'Cormorant Garamond', serif;
  color: var(--jade-pale);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ─── Background layers ─── */
.bg-stone {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-image: url('jade-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Darkened well past the landing page: long-form reading needs the
   contrast that a single centred card did not. */
.bg-stone::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 100% at 50% 28%, rgba(5, 15, 10, 0.56) 0%, rgba(5, 15, 10, 0.88) 100%),
    linear-gradient(180deg, rgba(5, 15, 10, 0.72) 0%, rgba(5, 15, 10, 0.84) 60%, rgba(5, 15, 10, 0.93) 100%);
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 620px; height: 620px; top: -140px; left: -120px;
  background: radial-gradient(circle, rgba(74, 171, 120, 0.13) 0%, transparent 70%);
  animation: orb-drift-1 18s ease-in-out infinite alternate;
}
.orb-2 {
  width: 520px; height: 520px; bottom: -100px; right: -80px;
  background: radial-gradient(circle, rgba(36, 92, 61, 0.20) 0%, transparent 70%);
  animation: orb-drift-2 22s ease-in-out infinite alternate;
}
.orb-3 {
  width: 320px; height: 320px; top: 44%; left: 58%;
  background: radial-gradient(circle, rgba(114, 196, 154, 0.08) 0%, transparent 70%);
  animation: orb-drift-3 14s ease-in-out infinite alternate;
}
.orb-4 {
  width: 220px; height: 220px; top: 18%; right: 12%;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.07) 0%, transparent 70%);
  animation: orb-drift-4 26s ease-in-out infinite alternate;
}

@keyframes orb-drift-1 { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,80px) scale(1.1); } }
@keyframes orb-drift-2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-50px,-70px) scale(1.15); } }
@keyframes orb-drift-3 { from { transform: translate(0,0); } to { transform: translate(-40px,60px); } }
@keyframes orb-drift-4 { from { transform: translate(0,0); } to { transform: translate(30px,-40px); } }

.particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(168, 216, 190, 0.6);
  animation: particle-float linear infinite;
}

.particle:nth-child(1) { left: 8%;  animation-duration: 28s; animation-delay: 0s;   width: 1px; height: 1px; }
.particle:nth-child(2) { left: 18%; animation-duration: 22s; animation-delay: -6s;  background: rgba(196, 163, 90, 0.4); }
.particle:nth-child(3) { left: 32%; animation-duration: 35s; animation-delay: -12s; width: 1px; height: 1px; }
.particle:nth-child(4) { left: 45%; animation-duration: 25s; animation-delay: -4s;  }
.particle:nth-child(5) { left: 58%; animation-duration: 30s; animation-delay: -18s; width: 1px; height: 1px; background: rgba(196, 163, 90, 0.3); }
.particle:nth-child(6) { left: 70%; animation-duration: 20s; animation-delay: -9s;  }
.particle:nth-child(7) { left: 82%; animation-duration: 32s; animation-delay: -15s; width: 1px; height: 1px; }
.particle:nth-child(8) { left: 92%; animation-duration: 24s; animation-delay: -3s;  background: rgba(196, 163, 90, 0.4); }

@keyframes particle-float {
  0%   { transform: translateY(105vh) translateX(0); opacity: 0; }
  5%   { opacity: 0.8; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-10vh) translateX(20px); opacity: 0; }
}

/* ─── Masthead ─── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(5, 15, 10, 0.94) 0%, rgba(5, 15, 10, 0.8) 70%, rgba(5, 15, 10, 0) 100%);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  border-bottom: var(--rule);
}

.masthead-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.mark img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  object-position: 50% 34%;
  border-radius: 50%;
  border: 1px solid rgba(196, 163, 90, 0.3);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

.mark-text {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  color: var(--ivory);
  line-height: 1.1;
}

.mark-text span {
  display: block;
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.52rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(196, 163, 90, 0.6);
  margin-top: 4px;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(168, 216, 190, 0.62);
  text-decoration: none;
  padding: 8px 13px;
  border: 1px solid transparent;
  transition: color 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--jade-pale);
  border-color: rgba(74, 171, 120, 0.3);
  background: rgba(22, 61, 40, 0.35);
}

.nav a[aria-current="page"] {
  color: var(--gold-pale);
  border-color: rgba(196, 163, 90, 0.28);
}

/* ─── Page shell ─── */
.shell {
  position: relative;
  z-index: 10;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 28px 120px;
}

section { scroll-margin-top: 92px; }

/* ─── Type scale ─── */
.eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(196, 163, 90, 0.62);
  margin-bottom: 18px;
}

h1.display {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: clamp(2.3rem, 6.6vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--ivory);
  background: linear-gradient(135deg, var(--ivory) 0%, #c8e8d8 42%, var(--ivory) 72%, var(--gold-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.16;
  color: var(--ivory);
  margin-bottom: 20px;
}

h3.sub-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  color: var(--jade-mint);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

h4.micro-title {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(196, 163, 90, 0.68);
  margin-bottom: 14px;
}

p.lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.18rem, 2.4vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--jade-pale);
}

.prose p {
  font-size: clamp(1.04rem, 1.9vw, 1.17rem);
  line-height: 1.82;
  color: rgba(212, 237, 227, 0.86);
  margin-bottom: 1.1em;
}

.prose p:last-child { margin-bottom: 0; }

.prose strong {
  font-weight: 600;
  color: var(--jade-mint);
}

.prose em { color: rgba(226, 201, 138, 0.9); font-style: italic; }

.prose sub { font-size: 0.72em; }

.prose a,
.inline-link {
  color: var(--jade-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 171, 120, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.prose a:hover,
.inline-link:hover {
  color: var(--gold-pale);
  border-bottom-color: rgba(196, 163, 90, 0.5);
}

/* Drop cap for the opening paragraph of the essay. */
.prose.opening > p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  float: left;
  font-size: 3.5em;
  line-height: 0.82;
  padding: 0.08em 0.12em 0 0;
  color: var(--gold-pale);
}

/* ─── Ornament rule ─── */
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 26px;
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 216, 190, 0.28), transparent);
}

.ornament-gem {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(74, 171, 120, 0.5);
  transform: rotate(45deg);
  background: rgba(74, 171, 120, 0.2);
  flex-shrink: 0;
}

/* ─── Cards ─── */
.card {
  background: linear-gradient(155deg, rgba(13, 35, 24, 0.78) 0%, rgba(9, 23, 16, 0.87) 50%, rgba(22, 61, 40, 0.62) 100%);
  backdrop-filter: blur(18px) saturate(128%);
  -webkit-backdrop-filter: blur(18px) saturate(128%);
  border-radius: 4px;
  border: 1px solid rgba(74, 171, 120, 0.18);
  box-shadow:
    0 0 0 1px rgba(22, 61, 40, 0.36),
    0 26px 70px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(168, 216, 190, 0.07);
  padding: 42px 40px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 216, 190, 0.3), rgba(196, 163, 90, 0.2), transparent);
}

/* Jadeite-flavoured variant: the seam turns cool. */
.card.ice::before {
  background: linear-gradient(90deg, transparent, rgba(167, 205, 240, 0.34), rgba(196, 163, 90, 0.16), transparent);
}
.card.ice { border-color: rgba(140, 185, 230, 0.2); }

/* ─── Section rhythm ─── */
.band { padding: 88px 0 0; }
.band-tight { padding: 54px 0 0; }

/* ─── Split layouts ─── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 54px;
  align-items: start;
}

.split-flip {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 54px;
  align-items: start;
}

.split-even {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.sticky-aside {
  position: sticky;
  top: 112px;
}

/* ─── Spec table ─── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Jost', sans-serif;
  font-weight: 200;
}

.spec-table caption {
  text-align: left;
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(196, 163, 90, 0.6);
  padding-bottom: 16px;
  line-height: 1.7;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(74, 171, 120, 0.13);
  font-size: 0.87rem;
  line-height: 1.55;
  vertical-align: top;
}

.spec-table thead th {
  font-weight: 300;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(212, 237, 227, 0.55);
  border-bottom-color: rgba(74, 171, 120, 0.3);
  padding-bottom: 12px;
}

.spec-table thead th.col-neph { color: var(--jade-light); }
.spec-table thead th.col-jade { color: var(--ice); }

.spec-table tbody th {
  font-weight: 300;
  color: rgba(226, 201, 138, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  width: 22%;
}

.spec-table td { color: rgba(212, 237, 227, 0.84); }
.spec-table tbody tr:hover td,
.spec-table tbody tr:hover th { background: rgba(22, 61, 40, 0.3); }
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: none; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─── Numbered field tests ─── */
.test-list { list-style: none; counter-reset: test; }

.test {
  counter-increment: test;
  position: relative;
  padding: 32px 0 32px 78px;
  border-bottom: 1px solid rgba(74, 171, 120, 0.13);
}

.test:last-child { border-bottom: none; }

.test::before {
  content: counter(test, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 30px;
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 300;
  color: rgba(196, 163, 90, 0.38);
  line-height: 1;
}

.test h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1.12rem, 2.2vw, 1.38rem);
  color: var(--ivory);
  margin-bottom: 11px;
}

.test p {
  font-size: 1.05rem;
  line-height: 1.78;
  color: rgba(212, 237, 227, 0.84);
  margin-bottom: 0.9em;
}

.test p:last-of-type { margin-bottom: 0; }
.test strong { color: var(--jade-mint); font-weight: 600; }
.test em { color: rgba(226, 201, 138, 0.9); }

.verdict {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(74, 171, 120, 0.16);
  border: 1px solid rgba(74, 171, 120, 0.16);
  margin-top: 20px;
}

.verdict > div {
  background: rgba(9, 23, 16, 0.8);
  padding: 15px 17px;
}

.verdict dt {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.verdict .v-neph dt { color: var(--jade-light); }
.verdict .v-jade dt { color: var(--ice); }

.verdict dd {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.02rem;
  line-height: 1.62;
  color: rgba(212, 237, 227, 0.86);
}

/* ─── Bullet lists ─── */
.tick-list { list-style: none; }

.tick-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 13px;
  font-size: 1.03rem;
  line-height: 1.68;
  color: rgba(212, 237, 227, 0.84);
}

.tick-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.64em;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(74, 171, 120, 0.6);
  background: rgba(74, 171, 120, 0.22);
  transform: rotate(45deg);
}

.tick-list li:last-child { margin-bottom: 0; }
.tick-list strong { color: var(--jade-mint); font-weight: 600; }

/* ─── Mineral chip row (accessory minerals) ─── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.chips li {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 216, 190, 0.76);
  border: 1px solid rgba(74, 171, 120, 0.26);
  background: rgba(22, 61, 40, 0.34);
  padding: 7px 12px;
  border-radius: 2px;
}

.chips.ice li {
  color: rgba(175, 210, 245, 0.8);
  border-color: rgba(140, 185, 230, 0.26);
  background: rgba(30, 52, 74, 0.32);
}

/* ─── Key/value stat strip ─── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 1px;
  background: rgba(74, 171, 120, 0.15);
  border: 1px solid rgba(74, 171, 120, 0.15);
}

.stat {
  background: rgba(9, 23, 16, 0.82);
  padding: 20px 18px;
}

.stat dt {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(196, 163, 90, 0.62);
  margin-bottom: 10px;
  line-height: 1.6;
}

.stat dd {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 1.24rem;
  color: var(--ivory);
  line-height: 1.26;
}

.stat dd small {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  color: rgba(168, 216, 190, 0.58);
  margin-top: 7px;
  font-weight: 200;
  line-height: 1.6;
}

/* ─── The tremolite → ferro-actinolite gradient bar ─── */
.series {
  margin: 6px 0 0;
}

.series-bar {
  height: 54px;
  border-radius: 2px;
  border: 1px solid rgba(74, 171, 120, 0.22);
  background: linear-gradient(90deg,
    #efeae0 0%,
    #dfe6da 14%,
    #b6ccb2 30%,
    #7ba382 46%,
    #4a7a5c 62%,
    #2a5440 76%,
    #163524 88%,
    #0b1a12 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 10px 26px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}

.series-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.series-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(168, 216, 190, 0.66);
}

.series-labels span:last-child { text-align: right; }

.series-note {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(212, 237, 227, 0.6);
  margin-top: 14px;
  line-height: 1.6;
}

/* ─── Specimen frames ─── */
.specimen-frame {
  display: block;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(74, 171, 120, 0.22);
  box-shadow:
    0 0 0 1px rgba(22, 61, 40, 0.3),
    0 16px 46px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(200, 225, 255, 0.05);
  position: relative;
}

.specimen-frame.ice { border-color: rgba(160, 205, 240, 0.24); }

.specimen-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(160, 205, 240, 0.04) 0%, transparent 50%, rgba(0,0,0,0.16) 100%);
  pointer-events: none;
}

.specimen-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.03) saturate(0.92);
}

.specimen-caption {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(168, 216, 190, 0.62);
  margin-top: 13px;
  line-height: 1.7;
}

.specimen-caption.ice { color: rgba(175, 210, 245, 0.64); }

/* ─── Callout ─── */
.callout {
  border-left: 2px solid rgba(196, 163, 90, 0.42);
  padding: 6px 0 6px 24px;
  margin: 32px 0;
}

.callout p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.08rem, 2.1vw, 1.28rem);
  line-height: 1.66;
  color: rgba(226, 201, 138, 0.88);
}

.callout.cool { border-left-color: rgba(167, 205, 240, 0.45); }
.callout.cool p { color: rgba(190, 218, 244, 0.86); }

/* ─── Card links ─── */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
  gap: 22px;
}

a.link-card {
  display: block;
  text-decoration: none;
  padding: 30px 28px 28px;
  background: linear-gradient(155deg, rgba(13, 35, 24, 0.72) 0%, rgba(9, 23, 16, 0.86) 100%);
  border: 1px solid rgba(74, 171, 120, 0.16);
  border-radius: 3px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

a.link-card:hover,
a.link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(196, 163, 90, 0.34);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
}

a.link-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--ivory);
  margin-bottom: 10px;
}

a.link-card p {
  font-size: 1.01rem;
  line-height: 1.62;
  color: rgba(212, 237, 227, 0.74);
  margin-bottom: 16px;
}

a.link-card .go {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(196, 163, 90, 0.7);
}

/* ─── Footer ─── */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: var(--rule);
  background: rgba(5, 15, 10, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 46px 28px 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 1.16rem;
  letter-spacing: 0.16em;
  color: var(--ivory);
  margin-bottom: 8px;
}

.footer-quip {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.97rem;
  color: rgba(196, 163, 90, 0.64);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a,
.footer-mail {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(114, 196, 154, 0.68);
  text-decoration: none;
  transition: color 0.28s ease;
}

.footer-links a:hover,
.footer-mail:hover { color: var(--jade-pale); }

.footer-note {
  max-width: 390px;
  font-size: 0.95rem;
  line-height: 1.68;
  color: rgba(212, 237, 227, 0.52);
}

/* ─── Entrance animation ─── */
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rise { animation: fade-rise 1s cubic-bezier(0.22, 1, 0.36, 1) both; }

.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.32s; }
.d4 { animation-delay: 0.44s; }
.d5 { animation-delay: 0.56s; }

/* Scroll-reveal — JS adds .in when the section enters the viewport. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ─── Focus visibility ─── */
a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--gold-pale);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--jade-deep);
  color: var(--ivory);
  padding: 12px 18px;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.skip-link:focus { left: 12px; top: 12px; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .split,
  .split-flip { grid-template-columns: 1fr; gap: 36px; }
  .sticky-aside { position: static; }
  .split-even { grid-template-columns: 1fr; }
  /* On one column the aside reads better above the prose. */
  .split-flip > *:first-child { order: 2; }
  .split-flip > *:last-child { order: 1; }
}

@media (max-width: 620px) {
  .shell { padding: 0 18px 90px; }
  .masthead-inner { padding: 12px 18px; gap: 12px; }
  .nav { margin-left: 0; width: 100%; gap: 2px; }
  .nav a { padding: 7px 9px; font-size: 0.63rem; letter-spacing: 0.12em; }
  .card { padding: 30px 22px; }
  .band { padding: 64px 0 0; }
  .test { padding-left: 0; padding-top: 48px; }
  .test::before { top: 10px; font-size: 1.55rem; }
  .verdict { grid-template-columns: 1fr; }
  .footer-inner { padding: 38px 18px 44px; }
  .prose.opening > p:first-of-type::first-letter { font-size: 3em; }
}
