/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colours */
  --purple:        #5c35d6;
  --purple-dark:   #3d1a8c;
  --purple-light:  #ede8ff;
  --coral:         #f25c54;
  --coral-light:   #ffe8e7;
  --mint:          #06b89a;
  --mint-light:    #d5f5ef;
  --yellow:        #fbbf24;
  --yellow-light:  #fef9e7;
  --lavender:      #a78bfa;
  --lavender-light:#f3f0ff;
  --sky:           #38bdf8;
  --rose:          #f472b6;

  /* Neutrals */
  --cream:         #fffdf8;
  --cream-dark:    #f5f0e8;
  --dark:          #1c1624;
  --dark-mid:      #3b3352;
  --mid:           #6b6589;
  --light:         #e8e4f0;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Type */
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'DM Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(28, 22, 36, 0.08);
  --shadow-md: 0 4px 20px rgba(28, 22, 36, 0.12);
  --shadow-card: 4px 6px 0 var(--purple-light);

  /* Transitions */
  --transition: 200ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dark);
  background-color: var(--cream);
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:hover { text-decoration-skip-ink: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 700;
}

p { max-width: 72ch; }

ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.35em; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: var(--space-3xl);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(242, 92, 84, 0.35);
}
.btn-coral:hover {
  background: #d94940;
  box-shadow: 4px 5px 0 rgba(242, 92, 84, 0.4);
}

.btn-purple {
  background: var(--purple);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(92, 53, 214, 0.35);
}
.btn-purple:hover {
  background: var(--purple-dark);
  box-shadow: 4px 5px 0 rgba(92, 53, 214, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}
.btn-outline:hover {
  background: var(--purple);
  color: #fff;
}

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }

/* ============================================================
   TAGS
   ============================================================ */
.tag {
  display: inline-block;
  padding: 0.2em 0.75em;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--purple-light);
  color: var(--purple-dark);
  letter-spacing: 0.01em;
}

.tag--sm { font-size: 0.72rem; padding: 0.15em 0.6em; }

/* Tag colour cycle */
.tag:nth-child(3n+1) { background: var(--mint-light); color: #065f46; }
.tag:nth-child(3n+2) { background: var(--coral-light); color: #9b1c1c; }
.tag:nth-child(3n+3) { background: var(--purple-light); color: var(--purple-dark); }

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,253,248,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light);
}

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

.logo {
  text-decoration: none;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple);
  background: linear-gradient(135deg, var(--purple), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark-mid);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition);
}

.nav-link:hover { color: var(--purple); }
.nav-link:hover::after { width: 60%; }
.nav-link.active { color: var(--purple); font-weight: 600; }
.nav-link.active::after { width: 60%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover { background: var(--purple-light); }

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 60%, #7c3aed 100%);
  overflow: hidden;
  color: #fff;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.hero-blob--1 {
  width: 500px; height: 500px;
  top: -150px; right: -100px;
  background: var(--lavender);
}
.hero-blob--2 {
  width: 350px; height: 350px;
  bottom: -100px; left: 10%;
  background: var(--coral);
  opacity: 0.25;
}
.hero-blob--3 {
  width: 280px; height: 280px;
  top: 40%; right: 30%;
  background: var(--mint);
  opacity: 0.2;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-block: var(--space-3xl);
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-family: var(--font-body);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.float-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap;
}

.float-tag--1 { background: rgba(255,255,255,0.15); color: #fff; }
.float-tag--2 { background: var(--coral); color: #fff; }
.float-tag--3 { background: rgba(6,184,154,0.3); color: #d5f5ef; border-color: var(--mint); }
.float-tag--4 { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
.float-tag--5 { background: rgba(167,139,250,0.3); color: #e9e3ff; border-color: var(--lavender); }

/* ============================================================
   EXPERTISE STRIP
   ============================================================ */
.expertise-strip {
  background: #fff;
  padding-block: var(--space-2xl);
  border-bottom: 1px solid var(--light);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.expertise-item {
  text-align: center;
}

.expertise-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.expertise-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--purple-dark);
}

.expertise-item p {
  font-size: 0.9rem;
  color: var(--mid);
  max-width: 22ch;
  margin-inline: auto;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--dark);
}

.section-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  flex-shrink: 0;
  transition: gap var(--transition);
}
.section-link:hover { text-decoration: underline; }

/* ============================================================
   POST CARDS (home grid)
   ============================================================ */
.section--writing {
  background: var(--cream);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--light);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
}

.post-card-date {
  font-size: 0.8rem;
  color: var(--mid);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.post-card-title {
  font-size: 1.05rem;
  font-family: var(--font-head);
  line-height: 1.3;
}

.post-card-title a {
  text-decoration: none;
  color: var(--dark);
}

.post-card-title a:hover { color: var(--purple); }

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.5;
  flex: 1;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
  padding-block: var(--space-3xl);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.cta-inner p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-block: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 24px 24px;
}

.page-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  position: relative;
}

.page-hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-top: 0.75rem;
  position: relative;
}

.page-hero--purple {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
}
.page-hero--purple .page-hero-sub { color: rgba(255,255,255,0.8); }

.page-hero--coral {
  background: linear-gradient(135deg, #c9302a, var(--coral));
  color: #fff;
}
.page-hero--coral .page-hero-sub { color: rgba(255,255,255,0.8); }

.page-hero--mint {
  background: linear-gradient(135deg, #047a67, var(--mint));
  color: #fff;
}
.page-hero--mint .page-hero-sub { color: rgba(255,255,255,0.8); }

.page-hero--yellow {
  background: linear-gradient(135deg, #d97706, var(--yellow));
  color: var(--dark);
}
.page-hero--yellow .page-hero-sub { color: rgba(28,22,36,0.75); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-content {
  padding-block: var(--space-3xl);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--dark-mid);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--dark-mid);
}

.about-text strong { color: var(--purple); }

.about-note {
  font-size: 0.875rem;
  color: var(--mid);
  border-left: 3px solid var(--light);
  padding-left: 1rem;
}

.about-note a { color: var(--purple); }

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
}

.about-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.about-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-card li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.about-card li strong { font-size: 0.9375rem; }
.about-card li span { font-size: 0.8125rem; color: var(--mid); }

.about-card--purple {
  background: var(--purple-light);
  border-color: var(--lavender);
}
.about-card--purple h3 { color: var(--purple-dark); }

.about-card--coral {
  background: var(--coral-light);
  border-color: #fca5a5;
}
.about-card--coral h3 { color: #9b1c1c; }

.about-card--yellow {
  background: var(--yellow-light);
  border-color: #fcd34d;
}
.about-card--yellow h3 { color: #92400e; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.work-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--light);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.work-card--featured {
  grid-column: 1 / -1;
  background: var(--purple-light);
  border-color: var(--lavender);
}

.work-card-accent {
  height: 5px;
  flex-shrink: 0;
}
.work-card-accent--purple { background: var(--purple); }
.work-card-accent--coral  { background: var(--coral); }
.work-card-accent--mint   { background: var(--mint); }
.work-card-accent--yellow { background: var(--yellow); }
.work-card-accent--lavender { background: var(--lavender); }

.work-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.work-card--featured .work-card-body {
  padding: 2rem 2.5rem;
}

.work-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.work-card-title {
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--dark);
}

.work-card--featured .work-card-title {
  font-size: 1.8rem;
}

.work-card-date {
  font-size: 0.8rem;
  color: var(--mid);
  font-weight: 500;
}

.work-card p {
  color: var(--dark-mid);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

/* ============================================================
   BLOG LISTING
   ============================================================ */
.year-group {
  margin-bottom: var(--space-2xl);
}

.year-heading {
  font-size: 2rem;
  color: var(--purple);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--purple-light);
  font-weight: 900;
}

.post-list {
  display: flex;
  flex-direction: column;
}

.post-list-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--light);
  align-items: start;
  transition: background var(--transition);
}

.post-list-item:hover {
  background: var(--purple-light);
  margin-inline: -1rem;
  padding-inline: 1rem;
  border-radius: var(--radius-sm);
}

.post-list-date {
  font-size: 0.8125rem;
  color: var(--mid);
  font-weight: 500;
  padding-top: 0.15rem;
  white-space: nowrap;
}

.post-list-title {
  font-size: 1rem;
  font-family: var(--font-head);
  line-height: 1.4;
  font-weight: 700;
}

.post-list-title a {
  text-decoration: none;
  color: var(--dark);
}

.post-list-title a:hover { color: var(--purple); }

.post-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

/* ============================================================
   POST ARTICLE
   ============================================================ */
.post-header {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: #fff;
  padding-block: var(--space-2xl);
}

.post-header-inner {
  max-width: 800px;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition);
}
.back-link:hover { color: #fff; }

.post-date {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

.post-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.post-excerpt {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  font-style: italic;
  margin-bottom: 1rem;
  max-width: 60ch;
}

.post-meta-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.reading-time {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  background: rgba(255,255,255,0.1);
  padding: 0.2em 0.8em;
  border-radius: var(--radius-pill);
}

/* Post body typography */
.post-body {
  padding-block: var(--space-3xl);
}

.post-content {
  max-width: 740px;
}

.post-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--purple-dark);
}

.post-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.post-content p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: var(--dark-mid);
}

.post-content a {
  color: var(--purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.post-content a:hover { text-decoration-thickness: 2px; }

.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
}

.post-content li {
  font-size: 1.0625rem;
  color: var(--dark-mid);
  line-height: 1.65;
}

.post-content blockquote {
  border-left: 4px solid var(--purple);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--purple-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--dark-mid);
}

.post-content blockquote p { margin-bottom: 0; }

.post-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin-block: 1.5rem;
}

.post-content figure {
  margin-block: 2rem;
}

.post-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--mid);
  margin-top: 0.5rem;
  font-style: italic;
}

.post-content pre {
  background: var(--dark);
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-block: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--purple-light);
  color: var(--purple-dark);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.5rem;
  font-size: 0.9375rem;
}

.post-content th,
.post-content td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--light);
}

.post-content th {
  background: var(--purple-light);
  font-weight: 700;
  color: var(--purple-dark);
}

.post-content tr:nth-child(even) td { background: #fafafa; }

/* Video embeds */
.post-content .video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-block: 2rem;
  background: var(--dark);
}

.post-content .video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.post-footer {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--light);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.contact-inner {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--light);
  padding: 3rem 3.5rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.contact-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.contact-card p {
  color: var(--mid);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 40ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.75);
  padding-block: var(--space-2xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name nav"
    "tagline nav"
    "copy copy";
  gap: 0.5rem 3rem;
  align-items: center;
}

.footer-name {
  grid-area: name;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
}

.footer-tagline {
  grid-area: tagline;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}

.footer-nav {
  grid-area: nav;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-nav a:hover { color: #fff; }

.footer-copy {
  grid-area: copy;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  max-width: 100%;
}

.footer-copy a { color: rgba(255,255,255,0.55); }
.footer-copy a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .work-card--featured {
    grid-column: 1;
  }

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

@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--light);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open { display: flex; }

  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-tags { display: none; }

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

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .post-list-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .post-list-date { padding-top: 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "tagline"
      "nav"
      "copy";
  }

  .footer-nav {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }
}

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

  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
