/* =====================================================
   likethefish — Shared Stylesheet
   Will Herring · grey2scale.github.io/likethefish
   ===================================================== */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --coral: #D85A30;
  --coral-light: #FAECE7;
  --coral-mid: #F0997B;
  --ink: #1a1814;
  --ink-mid: #4a4844;
  --ink-light: #8a8784;
  --ink-faint: #e8e5e0;
  --page: #faf9f7;
  --white: #ffffff;
  /* palette swatches used for card/tag backgrounds */
  --blue-bg: #E6F1FB;
  --green-bg: #EAF3DE;
  --amber-bg: #FAEEDA;
  --teal-bg: #E1F5EE;
  --pink-bg: #FBEAF0;
  --gray-bg: #F1EFE8;
  --purple-bg: #F0EAF9;
  /* layout */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1040px;
  --pad: 2rem;
  --content-w: 680px;
}

html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ─── Layout ─── */
.site-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─── Nav ─── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2rem 0 1.75rem;
  border-bottom: 1px solid var(--ink-faint);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 2.25rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem;
  color: var(--ink-mid);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--coral);
  transition: width 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* ─── Back link (project pages) ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--ink-light);
  margin-top: 2.25rem;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--coral); }
.back-link svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.15s ease;
}
.back-link:hover svg { transform: translateX(-2px); }

/* ─── Project Header ─── */
.project-header {
  padding: 2.5rem 0 2.75rem;
  max-width: var(--content-w);
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.project-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid;
}
.tag-games   { color: #185FA5; border-color: #B5D4F4; background: #E6F1FB; }
.tag-brands  { color: #3B6D11; border-color: #C0DD97; background: #EAF3DE; }
.tag-motion  { color: #854F0B; border-color: #FAC775; background: #FAEEDA; }
.tag-personal { color: var(--coral); border-color: var(--coral-light); background: var(--coral-light); }
.tag-writing { color: #5B3B8C; border-color: #C9B5E8; background: #F0EAF9; }

.project-year { font-size: 0.8125rem; color: var(--ink-light); }

.project-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.project-title em { font-style: italic; }

.project-role {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
.project-role span { color: var(--ink-mid); }

.project-description {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
}
.project-description p + p { margin-top: 1em; }
.project-description a {
  color: var(--coral);
  border-bottom: 1px solid var(--coral-light);
  transition: border-color 0.15s ease;
}
.project-description a:hover { border-color: var(--coral); }

/* ─── Project Links ─── */
.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--ink-faint);
  color: var(--ink-mid);
  background: var(--white);
  transition: all 0.15s ease;
}
.project-link:hover { border-color: var(--ink-mid); color: var(--ink); }
.project-link.primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.project-link.primary:hover { background: var(--coral); border-color: var(--coral); }
.project-link svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ─── Divider ─── */
.divider { border: none; border-top: 1px solid var(--ink-faint); margin: 0; }

/* ─── Media Section ─── */
.media-section { padding: 3rem 0; }
.media-hero {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--ink-faint);
  border: 1px solid rgba(0,0,0,0.06);
}
.media-hero img { width: 100%; height: auto; display: block; }
.media-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.2);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.media-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.media-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.media-item {
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-faint);
  border: 1px solid rgba(0,0,0,0.06);
  aspect-ratio: 1;
}
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item.wide { aspect-ratio: 16 / 9; }
.media-grid.r43 .media-item { aspect-ratio: 4 / 3; }
.media-caption {
  font-size: 0.8125rem;
  color: var(--ink-light);
  line-height: 1.5;
  margin-top: 0.625rem;
  font-style: italic;
}

/* ─── Credits ─── */
.credits {
  margin-top: 2rem;
  padding-top: 2rem;
  padding-bottom: 0;
  border-top: 1px solid var(--ink-faint);
  max-width: var(--content-w);
}
.credits-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1rem;
}
.credits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem 2rem;
  list-style: none;
}
.credits-list li { font-size: 0.875rem; color: var(--ink-mid); line-height: 1.4; }
.credits-list li strong { font-weight: 500; color: var(--ink); display: block; }
.credits-list a {
  color: var(--coral);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.credits-list a:hover { border-color: var(--coral); }

/* ─── Press Section (project pages) ─── */
.press-section {
  margin-top: 2rem;
  padding-top: 2rem;
  padding-bottom: 0;
  border-top: 1px solid var(--ink-faint);
  max-width: var(--content-w);
}
.press-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1rem;
}
.press-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.press-list li a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--ink-mid);
  transition: color 0.15s ease;
}
.press-list li a:hover { color: var(--coral); }
.press-outlet-name { font-weight: 500; color: var(--ink); font-size: 0.8125rem; flex-shrink: 0; }
.press-headline { color: var(--ink-mid); font-weight: 300; }
.press-list li.has-meta { display: flex; flex-direction: column; gap: 0.2rem; }
.press-item-meta { font-size: 0.8125rem; color: var(--ink-light); font-weight: 300; padding-left: 0.125rem; }
.press-item-meta a { color: var(--coral); }
.press-item-meta a:hover { text-decoration: underline; }

/* ─── Next Project ─── */
.next-project {
  margin-top: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--ink-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.next-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.375rem;
}
.next-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.next-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
  color: var(--ink-mid);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.next-project:hover .next-arrow {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
  transform: translateX(3px);
}
.next-arrow svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--ink-faint);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.next-project + .site-footer { margin-top: 0; }
.footer-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--ink-mid);
}
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.8125rem; color: var(--ink-light); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--coral); }

/* ─── Index: Hero ─── */
.hero { padding: 4rem 0 3.5rem; max-width: 680px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--coral);
}
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-heading em { font-style: italic; color: var(--ink-mid); }
.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 560px;
}
.hero-sub strong { font-weight: 500; color: var(--ink); }

/* ─── Index: Work Section ─── */
.work-section { padding-top: 3rem; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink-faint);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ─── Index: Filters ─── */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--ink-faint);
  background: transparent;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
}
.filter-btn:hover { border-color: var(--ink-light); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ─── Index: Work Grid ─── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.work-card.hidden { display: none; }
.work-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
}
.work-thumb-bg {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.work-card:hover .work-thumb-bg { transform: scale(1.03); }
.work-thumb-emoji { font-size: 2.5rem; line-height: 1; }
.work-thumb-placeholder {
  position: absolute;
  bottom: 8px; right: 8px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.25);
}
.work-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.125rem; }
.work-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.work-tag.tag-games   { color: #185FA5; }
.work-tag.tag-brands  { color: #3B6D11; }
.work-tag.tag-motion  { color: #854F0B; }
.work-tag.tag-personal { color: var(--coral); }
.work-tag.tag-writing { color: #5B3B8C; }
.work-tag-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); flex-shrink: 0; }
.work-title { font-size: 0.9375rem; font-weight: 500; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.work-desc { font-size: 0.8125rem; font-weight: 300; color: var(--ink-mid); line-height: 1.5; }

/* ─── Index: Press Strip ─── */
.press-strip {
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  padding: 1.25rem 0;
  margin-bottom: 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.press-strip .press-label {
  white-space: nowrap;
  padding-right: 2rem;
  border-right: 1px solid var(--ink-faint);
  flex-shrink: 0;
  margin-bottom: 0;
}
.press-outlets { display: flex; gap: 2.5rem; padding-left: 2rem; flex-wrap: wrap; }
.press-outlet {
  font-size: 0.8125rem;
  color: var(--ink-light);
  white-space: nowrap;
  font-style: italic;
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
  :root { --pad: 1.25rem; }
  .nav-links { gap: 1.25rem; }
  /* index */
  .hero { padding: 2.5rem 0; }
  .section-header { flex-direction: column; gap: 1rem; }
  .section-label { white-space: nowrap; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .press-outlets { gap: 1.25rem; }
  /* project pages */
  .media-grid { grid-template-columns: 1fr; }
  .media-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credits-list { grid-template-columns: 1fr; }
  .next-project { gap: 1rem; }
  .next-title { font-size: 1.125rem; }
  /* shared */
  .site-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 600px) {
  .media-grid.cols-2 { grid-template-columns: 1fr; }
  .media-grid.cols-3 { grid-template-columns: 1fr; }
  .media-grid.cols-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8125rem; }
  .work-grid { grid-template-columns: 1fr; }
  .press-list li a { flex-direction: column; gap: 0.125rem; }
}

/* ─── Active nav state ─── */
.nav-links a.active { color: var(--ink); }

/* ─── Page Header (about, cv) ─── */
.page-header {
  padding: 4rem 0 3rem;
}
.page-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.page-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--coral);
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.page-title em { font-style: italic; color: var(--ink-mid); }

/* ─── Download link (cv) ─── */
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--ink-faint);
  color: var(--ink-mid);
  background: var(--white);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.download-link:hover { border-color: var(--ink-mid); color: var(--ink); }
.download-link svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ─── About layout ─── */
.about-layout {
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 5rem;
  padding-bottom: 5rem;
  align-items: start;
}
.about-body { padding-top: 0.25rem; }
.about-body p {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 1.5em;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { font-weight: 500; color: var(--ink); }
.about-body a {
  color: var(--coral);
  border-bottom: 1px solid var(--coral-light);
  transition: border-color 0.15s ease;
}
.about-body a:hover { border-color: var(--coral); }
.about-sidebar { padding-top: 0.5rem; }

/* ─── CTA block (about) ─── */
.cta-block {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ink-faint);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--ink-faint);
  color: var(--ink-mid);
  background: var(--white);
  transition: all 0.15s ease;
}
.cta-link:hover { border-color: var(--ink-mid); color: var(--ink); }
.cta-link.primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cta-link.primary:hover { background: var(--coral); border-color: var(--coral); }
.cta-link svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ─── Shared Sidebar blocks (about, cv) ─── */
.sidebar-block { margin-bottom: 2.5rem; }
.sidebar-block:last-child { margin-bottom: 0; }
.sidebar-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.875rem;
}
.sidebar-label-ruled {
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--ink-faint);
}
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-list li { font-size: 0.875rem; color: var(--ink-mid); font-weight: 300; line-height: 1.5; }
.sidebar-list li strong { font-weight: 500; color: var(--ink); display: block; font-size: 0.9rem; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.sidebar-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--ink-faint);
  color: var(--ink-mid);
  background: var(--white);
}

/* ─── CV layout ─── */
.cv-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 5rem;
  padding-bottom: 5rem;
  align-items: start;
}
.cv-sidebar { padding-top: 0.25rem; }
.cv-section { margin-bottom: 3.5rem; }
.cv-section:last-child { margin-bottom: 0; }
.cv-section-title {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--ink-faint);
  margin-bottom: 2rem;
}
.cv-role { margin-bottom: 2.5rem; }
.cv-role:last-child { margin-bottom: 0; }
.cv-role-header { margin-bottom: 0.875rem; }
.cv-company {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.cv-position { font-size: 0.9375rem; font-weight: 500; color: var(--ink-mid); margin-top: 0.2rem; }
.cv-meta { display: flex; gap: 1rem; margin-top: 0.375rem; flex-wrap: wrap; }
.cv-date { font-size: 0.8125rem; color: var(--ink-light); }
.cv-location { font-size: 0.8125rem; color: var(--ink-light); }
.cv-location::before { content: '·'; margin-right: 1rem; }
.cv-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.cv-bullets li {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-mid);
  padding-left: 1.125rem;
  position: relative;
}
.cv-bullets li::before { content: '–'; position: absolute; left: 0; color: var(--ink-light); }
.cv-clients { margin-top: 1rem; font-size: 0.8125rem; color: var(--ink-light); line-height: 1.6; }
.cv-clients strong { font-weight: 500; color: var(--ink-mid); }
.cv-credits { margin-top: 1rem; }
.cv-credits-title { font-size: 0.8125rem; font-weight: 500; color: var(--ink-mid); margin-bottom: 0.5rem; }
.cv-credits-list { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.cv-credits-list li { font-size: 0.8125rem; color: var(--ink-light); font-weight: 300; line-height: 1.5; }
.cv-credits-list li strong { font-weight: 500; color: var(--ink-mid); }

/* ─── Contact layout ─── */
.contact-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}
.contact-inner { max-width: 560px; }
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.contact-heading em { font-style: italic; color: var(--ink-mid); }
.contact-body {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 2.5rem;
}
.contact-links { display: flex; flex-direction: column; gap: 0.875rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--ink-faint);
  background: var(--white);
  transition: all 0.2s ease;
}
.contact-link:hover { border-color: var(--coral); transform: translateX(4px); }
.contact-link-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-link-icon svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.contact-link-icon.email { background: var(--coral-light); color: var(--coral); }
.contact-link-icon.linkedin { background: #E6F1FB; color: #185FA5; }
.contact-link-icon.cv { background: var(--ink-faint); color: var(--ink-mid); }
.contact-link-text { flex: 1; }
.contact-link-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.2rem;
}
.contact-link-value { font-size: 0.9375rem; font-weight: 400; color: var(--ink); }
.contact-link-arrow {
  width: 14px; height: 14px;
  stroke: var(--ink-light); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s ease, stroke 0.2s ease;
  flex-shrink: 0;
}
.contact-link:hover .contact-link-arrow { stroke: var(--coral); transform: translateX(2px); }

/* ─── Sub-project rows (BuzzFeed hub etc.) ─── */
.sub-projects { margin-top: 2.5rem; }
.sub-projects-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--ink-faint);
}
.sub-project-row {
  display: grid;
  grid-template-columns: 72px 1fr 1rem;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ink-faint);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}
.sub-project-row:hover { opacity: 0.6; }
.sub-project-thumb {
  width: 72px;
  height: 72px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
  background: #ece9e3;
}
.sub-project-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.sub-project-desc {
  font-size: 0.8125rem;
  color: var(--ink-mid);
  line-height: 1.45;
}
.sub-project-arrow { color: var(--ink-light); }
.sub-project-arrow svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ─── Responsive video embeds ─── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  border-radius: 8px;
}
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.video-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.video-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.video-embed.portrait {
  padding-bottom: 177.78%; /* 9:16 */
}
.video-embed.ratio-4-3 {
  padding-bottom: 75%; /* 4:3 */
}
@media (max-width: 720px) {
  .video-grid.cols-2 { grid-template-columns: 1fr; }
  .video-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-grid.cols-3 { grid-template-columns: 1fr; }
}

/* ─── Project link card (non-embeddable external content) ─── */
.video-embed-placeholder {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}
.project-link-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-faint);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid color-mix(in srgb, var(--ink) 12%, transparent);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.project-link-card:hover {
  background: color-mix(in srgb, var(--coral) 8%, var(--ink-faint));
  border-color: color-mix(in srgb, var(--coral) 40%, transparent);
}
.project-link-card-inner {
  text-align: center;
  padding: 1.5rem;
}
.project-link-card-label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin: 0 0 0.4rem;
}
.project-link-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  margin: 0 0 0.3rem;
}
.project-link-card-url {
  font-size: 0.8125rem;
  color: var(--coral);
  margin: 0 0 0.75rem;
}
.project-link-card-arrow {
  width: 18px; height: 18px;
  stroke: var(--coral); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ─── Responsive additions ─── */
@media (max-width: 860px) {
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .cv-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cv-sidebar { border-top: 1px solid var(--ink-faint); padding-top: 2.5rem; }
}
@media (max-width: 720px) {
  .page-header { padding-bottom: 2rem; }
  .contact-wrap { padding: 3rem 0; min-height: auto; }
}
