:root {
  --bg: #f8f5ef;
  --surface: #ffffff;
  --text: #1d1f1e;
  --muted: #5f6b63;
  --accent: #0f766e;
  --accent-2: #e07a5f;
  --ring: #f4d35e;
  --glow-1: rgba(15, 118, 110, 0.24);
  --glow-2: rgba(224, 122, 95, 0.22);
  --glow-3: rgba(244, 211, 94, 0.25);
  --shadow: 0 18px 40px rgba(15, 20, 15, 0.12);
  --radius: 18px;
  --max-width: 1120px;
  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Space Grotesk", "Trebuchet MS", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 15% 20%, #efe9de, transparent 55%),
    radial-gradient(circle at 85% 10%, #e8f3f1, transparent 50%),
    var(--bg);
  background-size: 160% 160%, 140% 140%, auto;
  background-position: 0% 0%, 100% 0%, 0 0;
  min-height: 100vh;
  line-height: 1.6;
  animation: background-drift 28s ease-in-out infinite;
  isolation: isolate;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

button {
  font-family: inherit;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.page-reveal {
  opacity: 1;
  transform: none;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--text);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  z-index: 9999;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 245, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6ded2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.site-nav a {
  font-weight: 500;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #d9d1c4;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.section {
  padding: 4.5rem 0;
}

.glass {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35));
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(230, 222, 210, 0.6);
  backdrop-filter: blur(12px);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.18), transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.2), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "intro media"
    "details media";
  gap: 1.5rem 3rem;
  align-items: start;
}

.hero-content,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero-intro {
  grid-area: intro;
}

.hero-details {
  grid-area: details;
}

.hero-media {
  grid-area: media;
  align-self: center;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  margin: 0.6rem 0 1rem;
}

.hero-content .lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 44ch;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -80% 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%);
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: #d6cec1;
  background: #ffffff;
}

.hero-badges {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 1.6rem;
  padding: 1.4rem 1.6rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 34px rgba(15, 20, 15, 0.12);
  backdrop-filter: blur(18px);
}

.glass-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(244, 211, 94, 0.2), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stats-hint {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(230, 222, 210, 0.7);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.35rem;
  box-shadow: 0 10px 20px rgba(15, 20, 15, 0.08);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.stat-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.hero-social {
  justify-content: flex-start;
}

.badge {
  background: #ffffff;
  border: 1px solid #e2dacd;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual {
  width: min(420px, 90vw);
  border-radius: 20px;
  border: 1px solid #e6ded2;
  box-shadow: var(--shadow);
}

.error-hero .hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

.error-snark {
  margin-top: 0.75rem;
  color: var(--muted);
}

.error-links {
  margin-top: 1.5rem;
}

.error-panel {
  width: min(420px, 90vw);
  background: #151716;
  color: #f8f5ef;
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid rgba(244, 211, 94, 0.4);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.error-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 118, 110, 0.2), transparent 60%);
  opacity: 0.6;
}

.error-stamp {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(244, 211, 94, 0.8);
  text-shadow: 0 0 18px rgba(244, 211, 94, 0.4);
}

.error-terminal {
  position: relative;
  z-index: 1;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  display: grid;
  gap: 0.4rem;
}

.error-label {
  color: #f4d35e;
}

.error-muted {
  color: rgba(248, 245, 239, 0.7);
}

.error-cursor {
  display: inline-block;
  width: 10px;
  height: 1em;
  background: #f4d35e;
  margin-left: 0.25rem;
}

.error-bits {
  position: absolute;
  bottom: 1rem;
  right: 1.4rem;
  display: flex;
  gap: 0.35rem;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: rgba(248, 245, 239, 0.7);
  z-index: 1;
}

.error-bits span {
  display: inline-block;
}

.avatar {
  width: min(320px, 80vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid #ffffff;
  box-shadow: var(--shadow);
  height: auto;
}

.hero-media::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.15), transparent 65%);
  z-index: -1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid #ede5d9;
  box-shadow: 0 8px 20px rgba(15, 20, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.work-thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e6ded2;
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

.work-card:hover .work-thumb {
  transform: scale(1.03);
}

.card-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: var(--muted);
}

.card-list strong {
  color: var(--text);
}

.work-block {
  display: grid;
  gap: 1.5rem;
}

.work-block+.work-block {
  margin-top: 2.5rem;
}

.work-head h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.work-head p {
  color: var(--muted);
}

.section-divider {
  border: 0;
  border-top: 1px solid #e6ded2;
  margin: 2.5rem 0;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-links a {
  font-weight: 600;
  color: var(--accent);
}

.card:hover {
  box-shadow: 0 14px 32px rgba(15, 20, 15, 0.14);
}

.card:not([data-tilt]):hover {
  transform: translateY(-4px);
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid #ede5d9;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.featured-post:hover {
  box-shadow: 0 22px 44px rgba(15, 20, 15, 0.16);
}

.featured-post:not([data-tilt]):hover {
  transform: translateY(-4px);
}

.featured-post::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(244, 211, 94, 0.4), transparent 70%);
  opacity: 0.8;
  pointer-events: none;
}

.featured-media,
.featured-body {
  position: relative;
  z-index: 1;
}

.featured-thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e6ded2;
  box-shadow: 0 12px 26px rgba(15, 20, 15, 0.12);
}

.featured-body h3 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid #ede5d9;
  box-shadow: 0 8px 20px rgba(15, 20, 15, 0.08);
  overflow: hidden;
  display: grid;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 14px 32px rgba(15, 20, 15, 0.14);
}

.post-card:not([data-tilt]):hover {
  transform: translateY(-4px);
}

.card-thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid #e6ded2;
  transition: transform 0.4s ease;
}

.post-card:hover .card-thumb {
  transform: scale(1.04);
}

[data-tilt] {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: -6px;
  --spot-x: 50%;
  --spot-y: 50%;
  --lift: 0px;
  --reveal-y: 0px;
  --reveal-scale: 1;
  position: relative;
  transform: perspective(900px) translateY(calc(var(--lift) + var(--reveal-y))) scale(var(--reveal-scale)) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-tilt].is-tilting {
  transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.7s ease;
}

[data-tilt]:hover {
  --lift: var(--tilt-lift);
}

.card[data-tilt] {
  --tilt-lift: -8px;
}

.featured-post[data-tilt] {
  --tilt-lift: -6px;
}

.hero-media[data-tilt] {
  --tilt-lift: -10px;
}

[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--spot-x) var(--spot-y), rgba(15, 118, 110, 0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

[data-tilt]:hover::after {
  opacity: 1;
}

.post-card-body {
  padding: 1.25rem 1.5rem 1.6rem;
}

.post-card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.text-link {
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid transparent;
}

.text-link:hover,
.text-link:focus-visible {
  border-bottom-color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-social {
  margin-top: 1.5rem;
}

.hero-social a {
  background: rgba(255, 255, 255, 0.92);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid #e1d8cc;
  background: #ffffff;
  font-weight: 600;
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.prose {
  max-width: 72ch;
  margin: 0 auto;
  font-size: clamp(1.05rem, 0.6vw + 1rem, 1.2rem);
  line-height: 1.8;
  color: #2b302d;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.prose h1 {
  font-family: var(--font-head);
  margin: 0 0 1.2rem;
  font-size: clamp(2.2rem, 2vw + 1.6rem, 3rem);
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-head);
  margin: 2.5rem 0 1rem;
  color: var(--text);
  line-height: 1.3;
  text-wrap: balance;
}

.prose h2 {
  font-size: 2rem;
}

.prose h3 {
  font-size: 1.5rem;
}

.prose h4 {
  font-size: 1.25rem;
}

.prose h5,
.prose h6 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 2rem 0 0.8rem;
}

.prose p {
  margin-bottom: 1.4rem;
}

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

.prose ul,
.prose ol {
  margin: 0 0 1.4rem 1.8rem;
  padding-left: 0.6rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  background: #f4f1ea;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text);
  margin: 2rem 0;
}

.prose code {
  background: #efe9de;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
  color: #d63384;
}

.prose pre {
  background: #1e1e1e;
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.prose a:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent-2);
}

.prose img {
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 95, 75, 0.45), transparent);
  margin: 2.5rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid #e6ded2;
  padding: 0.75rem 0.9rem;
  text-align: left;
}

.prose th {
  background: #f4f1ea;
  font-weight: 600;
}

.prose tbody tr:nth-child(even) {
  background: rgba(244, 241, 234, 0.45);
}

.post-header {
  margin-bottom: 1.5rem;
}

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  margin: 0.75rem 0 0.5rem;
  align-items: center;
}

.meta-item {
  font-weight: 600;
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 211, 94, 0.2);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 0.75rem;
}

.tag {
  background: #f1ece2;
  color: #6b5f4b;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.post-hero {
  margin: 2.5rem 0 2.2rem;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e6ded2;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 20, 15, 0.12);
}

.post-hero[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.post-hero.is-tilting::after {
  opacity: 1;
}

.post-hero-image {
  width: 100%;
  height: clamp(240px, 45vw, 520px);
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.post-hero:hover .post-hero-image {
  transform: scale(1.05);
}

.post-hero-glow {
  position: absolute;
  inset: auto 12% -35% 12%;
  height: 60%;
  background: radial-gradient(circle, rgba(244, 211, 94, 0.45), transparent 70%);
  filter: blur(10px);
  opacity: 0.9;
  pointer-events: none;
}

.post-hero figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.thumbnail-card {
  background: #ffffff;
  border: 1px solid #e6ded2;
  border-radius: 14px;
  padding: 0.75rem;
  text-align: center;
}

.thumbnail-card img {
  border-radius: 10px;
  border: 1px solid #efe6da;
  margin-bottom: 0.5rem;
}

.post-footer {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.share-bar {
  margin: 2.4rem auto 0;
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.share-label {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #e1d8cc;
  background: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(15, 20, 15, 0.12);
}

.share-x:hover {
  border-color: #111111;
}

.share-linkedin:hover {
  border-color: #0a66c2;
}

.share-facebook:hover {
  border-color: #1877f2;
}

.share-handshake:hover {
  border-color: #1a4bff;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid #e6ded2;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-note {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "media"
      "details";
    text-align: center;
  }

  .hero-content .lead {
    margin: 0 auto;
  }

  .cta-group {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-stats {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-panel {
    margin: 0 auto;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: #ffffff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-2);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  --reveal-y: 30px;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.2s ease;
}

.fade-in-up.visible {
  opacity: 1;
  --reveal-y: 0px;
}

.fade-in-up:not([data-tilt]) {
  transform: translateY(var(--reveal-y));
}

.reveal-text {
  display: inline-block;
  max-width: 100%;
  padding-bottom: 0.1em;
  background-image: linear-gradient(120deg, rgba(244, 211, 94, 0.45), rgba(244, 211, 94, 0.45));
  background-repeat: no-repeat;
  background-size: 0% 35%;
  background-position: 0 85%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease, background-size 0.9s ease;
}

.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
  background-size: 100% 35%;
}

.scale-up {
  opacity: 0;
  --reveal-scale: 0.96;
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.2s ease;
}

.scale-up.visible {
  opacity: 1;
  --reveal-scale: 1;
}

.scale-up:not([data-tilt]) {
  transform: scale(var(--reveal-scale));
}


@media (max-width: 600px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 9vw, 3.4rem);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .featured-post {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .featured-body h3 {
    font-size: 1.5rem;
  }

  .card-thumb {
    height: 160px;
  }

  .post-card-body {
    padding: 1rem 1.2rem 1.4rem;
  }

  .prose {
    font-size: 1.02rem;
    line-height: 1.75;
  }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #ffffff;
    border-bottom: 1px solid #e6ded2;
    padding: 1rem 0;
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .site-header.nav-open .site-nav {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-reveal {
    animation: page-reveal 0.9s ease both;
  }

  .hero-content {
    animation: fade-up 0.9s ease both;
  }

  .hero::before {
    animation: aura 12s ease-in-out infinite;
  }

  .hero::after {
    animation: orbit 16s linear infinite;
  }

  .avatar {
    animation: float 6s ease-in-out infinite;
  }

  .error-panel {
    animation: float 7s ease-in-out infinite;
  }

  .error-stamp {
    animation: wobble 4s ease-in-out infinite;
  }

  .error-cursor {
    animation: blink 1s steps(2) infinite;
  }

  .error-bits span {
    animation: bits-drop 4s ease-in-out infinite;
  }

  .error-bits span:nth-child(2) {
    animation-delay: 0.3s;
  }

  .error-bits span:nth-child(3) {
    animation-delay: 0.6s;
  }

  .error-bits span:nth-child(4) {
    animation-delay: 0.9s;
  }

  .error-bits span:nth-child(5) {
    animation-delay: 1.2s;
  }

  .hero-badges .badge {
    animation: bob 6s ease-in-out infinite;
  }

  .hero-badges .badge:nth-child(2) {
    animation-delay: 0.6s;
  }

  .hero-badges .badge:nth-child(3) {
    animation-delay: 1.2s;
  }

  .card {
    animation: fade-up 0.8s ease both;
  }

  .card:nth-child(2) {
    animation-delay: 0.1s;
  }

  .card:nth-child(3) {
    animation-delay: 0.2s;
  }

  .card:nth-child(4) {
    animation-delay: 0.3s;
  }

  .featured-post {
    animation: fade-up 0.9s ease both;
  }

  .featured-post::before {
    animation: drift 10s ease-in-out infinite;
  }

  .featured-thumb {
    animation: slow-zoom 12s ease-in-out infinite;
    transform-origin: center;
  }

  .post-card {
    animation: fade-up 0.8s ease both;
  }

  .post-grid .post-card:nth-child(2) {
    animation-delay: 0.1s;
  }

  .post-grid .post-card:nth-child(3) {
    animation-delay: 0.2s;
  }

  .post-grid .post-card:nth-child(4) {
    animation-delay: 0.3s;
  }

  .hero .btn.primary {
    animation: btn-pulse 3.6s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-in-up,
  .reveal-text,
  .scale-up {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes aura {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(16px, -12px) scale(1.05);
  }
}

@keyframes orbit {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-20px, 12px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-18px, 16px);
  }
}

@keyframes background-drift {
  0% {
    background-position: 0% 0%, 100% 0%, 0 0;
  }

  50% {
    background-position: 60% 30%, 40% 60%, 0 0;
  }

  100% {
    background-position: 0% 0%, 100% 0%, 0 0;
  }
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes slow-zoom {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes wobble {

  0%,
  100% {
    transform: rotate(0deg);
  }

  40% {
    transform: rotate(-4deg);
  }

  70% {
    transform: rotate(3deg);
  }
}

@keyframes bits-drop {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  60% {
    opacity: 1;
  }

  100% {
    transform: translateY(18px);
    opacity: 0;
  }
}

@keyframes page-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orb-float {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(30px, -40px, 0) scale(1.05);
  }
}

@keyframes grid-shift {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.18;
  }

  50% {
    transform: translate3d(-40px, 30px, 0);
    opacity: 0.28;
  }
}

@keyframes mist-drift {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-20px, 30px, 0) scale(1.04);
  }
}

@keyframes btn-pulse {

  0%,
  100% {
    box-shadow: var(--shadow), 0 0 0 0 rgba(15, 118, 110, 0.18);
  }

  50% {
    box-shadow: var(--shadow), 0 0 0 16px rgba(15, 118, 110, 0);
  }
}

.interactive-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(1200px circle at 15% 20%, rgba(15, 118, 110, 0.08), transparent 60%);
}

.interactive-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(rgba(15, 118, 110, 0.12) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.25;
  animation: grid-shift 40s linear infinite;
}

.interactive-bg::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 20% 20%, var(--glow-1), transparent 55%),
    radial-gradient(circle at 80% 30%, var(--glow-2), transparent 60%),
    radial-gradient(circle at 70% 80%, var(--glow-3), transparent 60%);
  opacity: 0.7;
  animation: mist-drift 26s ease-in-out infinite;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.8;
  animation: orb-float 24s ease-in-out infinite;
}

.bg-orb.orb-1 {
  width: 420px;
  height: 420px;
  top: -12%;
  left: -6%;
  background: radial-gradient(circle, var(--glow-1), transparent 70%);
  animation-duration: 26s;
}

.bg-orb.orb-2 {
  width: 520px;
  height: 520px;
  bottom: -20%;
  right: -12%;
  background: radial-gradient(circle, var(--glow-2), transparent 70%);
  animation-duration: 30s;
}

.bg-orb.orb-3 {
  width: 360px;
  height: 360px;
  top: 22%;
  right: -8%;
  background: radial-gradient(circle, var(--glow-3), transparent 70%);
  animation-duration: 24s;
  animation-delay: -6s;
}

.bg-orb.orb-4 {
  width: 300px;
  height: 300px;
  bottom: 18%;
  left: 8%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.18), transparent 70%);
  animation-duration: 28s;
  animation-delay: -10s;
}
