/* Shared portfolio styles */
:root {
  --bg: #f8fafb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --teal: #0d9488;
  --teal-soft: #ccfbf1;
  --teal-dark: #115e59;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --max: 1120px;
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-nav { padding-top: 5.5rem; }

/* Let case-study hero gradients flow behind the fixed nav bar */
body.has-nav:has(.portfolio-nav + header.hero) {
  padding-top: 0;
}

body.has-nav .portfolio-nav + header.hero {
  padding-top: calc(5.5rem + 5rem);
  padding-bottom: 4rem;
}

body.has-nav .portfolio-nav + header.hero.compact {
  padding-top: calc(5.5rem + 3rem);
  padding-bottom: 2.5rem;
}

/* Floating pill navigation */
.portfolio-nav {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.portfolio-nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem 0.5rem 1.4rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(14px);
  max-width: calc(100% - 2rem);
}

.portfolio-nav-brand {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  margin-right: 0.35rem;
}

.portfolio-nav-brand:hover { text-decoration: none; color: var(--teal-dark); }

.portfolio-nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.portfolio-nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
}

.portfolio-nav-links a:hover {
  text-decoration: none;
  color: var(--ink);
  background: rgba(15, 23, 42, 0.05);
}

.portfolio-nav-links a.active {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

/* Case study prev / next at viewport edges */
.portfolio-project-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  max-width: min(220px, 24vw);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.portfolio-project-nav.is-scroll-hidden {
  transform: translateY(calc(-50% - 4.5rem));
  opacity: 0;
  pointer-events: none;
}

.portfolio-project-nav:hover {
  text-decoration: none;
  color: var(--teal-dark);
  border-color: rgba(13, 148, 136, 0.25);
  background: var(--surface);
}

.portfolio-project-nav.prev { left: 1.25rem; }
.portfolio-project-nav.next { right: 1.25rem; }

.portfolio-project-nav-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.portfolio-project-nav-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink);
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(circle at 85% 0%, rgba(13, 148, 136, 0.14), transparent 46%),
    radial-gradient(circle at 10% 92%, rgba(15, 23, 42, 0.04), transparent 35%),
    var(--bg);
}

.hero.compact { padding: 3rem 0 2.5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--teal);
}

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  font-weight: 400;
  margin-bottom: 1rem;
  max-width: 20ch;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.meta-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.meta-grid dd { font-weight: 600; font-size: 0.92rem; }

section { padding: 3.5rem 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.65rem;
}

h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 1rem;
}

.prose { max-width: 68ch; color: var(--muted); }
.prose p + p { margin-top: 0.85rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.25rem;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.experience-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.experience-item {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.experience-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.experience-item .role {
  font-size: 0.9rem;
  color: var(--teal-dark);
  font-weight: 500;
}

.experience-item .where {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }

.tag {
  font-size: 0.76rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.tag.tag-phd {
  background: #faf3ea;
  border-color: #d4bc94;
  color: #7c5c3a;
  font-weight: 600;
}

.tag.tag-business {
  background: #f3e8ff;
  border-color: #c4b5fd;
  color: #6d28d9;
  font-weight: 600;
}

.tag.tag-startup {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
  font-weight: 500;
}

.tag.tag-ai-product {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
  font-weight: 600;
}

.tag.tag-challenge {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
  font-weight: 600;
}

.tag.tag-automation {
  background: #e8f4fb;
  border-color: #7ec8e8;
  color: #0c4a6e;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn:hover { background: var(--teal-dark); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--teal-dark);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: var(--teal-soft); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* Landing */
.landing-hero { padding: 4.5rem 0 2rem; }

.landing-hero h1 { max-width: none; }

.landing-hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.landing-hero-intro { min-width: 0; }

.landing-hero-intro .hero-cta .btn {
  flex: 1 1 0;
  justify-content: center;
}

/* Photo-of-me carousel in the hero: no card, sits on the page background.
   Selector is .carousel.hero-photos so it beats the later `.carousel` card rule. */
.carousel.hero-photos {
  margin-top: 0;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
/* Image fills the full container width; arrows float in the margins outside it */
.hero-photos .carousel-stage {
  position: relative;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.hero-photos .carousel-viewport {
  width: 100%;
  aspect-ratio: 533 / 437;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.09),
    0 6px 18px rgba(15, 23, 42, 0.05);
}
.hero-photos .carousel-slide img {
  object-fit: cover;
  object-position: center;
  background: var(--surface);
  border: none;
}
/* Subtle arrows sitting just outside the image, vertically centred */
.hero-photos .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.4rem;
  line-height: 1;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  backdrop-filter: none;
  transition: color 0.2s, background 0.2s, opacity 0.2s;
}
.hero-photos .carousel-nav.prev { left: -2rem; }
.hero-photos .carousel-nav.next { right: -2rem; }
.hero-photos .carousel-nav:hover { background: transparent; color: var(--teal); }
.hero-photos .carousel-nav:disabled { opacity: 0.25; }
.hero-photos .carousel-meta { margin-top: 1rem; }

@media (max-width: 900px) {
  .landing-hero-layout { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-photos { max-width: 560px; }
  /* Not enough gutter on small screens: tuck the arrows onto the image edges */
  .hero-photos .carousel-nav {
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  }
  .hero-photos .carousel-nav.prev { left: 0.5rem; }
  .hero-photos .carousel-nav.next { right: 0.5rem; }
}

/* Featured / proud work */
.landing-main {
  padding-top: 5rem;
  padding-bottom: 0;
}

.featured-work {
  margin-bottom: 6rem;
}

.featured-work h2 {
  margin-bottom: 0;
}

.featured-panel {
  margin-top: 1.5rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 1.35rem max(1.5rem, calc((100vw - min(var(--max), 100vw - 3rem)) / 2));
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(204, 251, 241, 0.55) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(204, 251, 241, 0.35) 100%);
  border-block: 1px solid rgba(13, 148, 136, 0.22);
  border-inline: none;
  box-shadow:
    0 24px 64px rgba(13, 148, 136, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

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

.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid rgba(13, 148, 136, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 32px rgba(13, 148, 136, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.featured-card:hover {
  border-color: var(--teal);
  box-shadow: 0 18px 48px rgba(13, 148, 136, 0.16);
  transform: translateY(-3px);
  text-decoration: none;
}

.featured-card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  overflow: hidden;
  margin: -1px -1px 0;
  width: calc(100% + 2px);
  border-radius: var(--radius) var(--radius) 0 0;
}

.featured-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.featured-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem 1.25rem 1.35rem;
}

.featured-card-meta {
  margin-bottom: 0.45rem;
}

.featured-card-mark {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--teal);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.18);
  pointer-events: none;
}

.featured-card-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: 0.06em;
}

.featured-card-body h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.featured-card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.featured-card-body .tag-row {
  margin-top: auto;
  padding-top: 1rem;
}

.selected-work h2 {
  margin-bottom: 0;
}

.landing-main .selected-work {
  padding-bottom: 7rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--teal);
  box-shadow: 0 16px 48px rgba(13, 148, 136, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.project-card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  overflow: hidden;
  /* Bleed over the card border so the top edge is one clean clip, not border + image */
  margin: -1px -1px 0;
  width: calc(100% + 2px);
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* AmIToxic: show the full hero framed on white, with a bold divider under it */
.project-card-thumb--amitoxic {
  background: #ffffff;
  border-bottom: 3px solid var(--ink);
}

.project-card-thumb--amitoxic img {
  object-fit: contain;
  padding: 0.6rem 0.75rem;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.4rem;
}

.project-card-body h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  max-width: none;
}

.project-card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.project-card-body .tag-row {
  margin-top: auto;
  padding-top: 1rem;
}

.project-card-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.35rem;
  letter-spacing: 0.06em;
}

/* Carousel */
.carousel {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.carousel-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #0f172a; }
.carousel-viewport { aspect-ratio: 16 / 9; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-slide { flex: 0 0 100%; height: 100%; }
.carousel-slide img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  display: block; background: #f1f5f9; user-select: none;
  border: 1px solid #cbd5e1;
  box-sizing: border-box;
}

.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(15,23,42,0.55); color: white;
  display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(8px); z-index: 2;
}

.carousel-nav:hover { background: rgba(13,148,136,0.85); }
.carousel-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.carousel-nav.prev { left: 1rem; }
.carousel-nav.next { right: 1rem; }

.carousel-meta { margin-top: 1.25rem; display: grid; gap: 0.85rem; }
.carousel-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.carousel-count { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); }
.carousel-title { font-size: 1.1rem; font-weight: 600; }
.carousel-subtitle { font-size: 0.88rem; color: var(--muted); margin-top: 0.1rem; }
.carousel-dots { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; margin-top: 0.25rem; }
.carousel-dot {
  width: 2rem; height: 4px; border: none; border-radius: 999px;
  background: var(--line); cursor: pointer; padding: 0;
}
.carousel-dot.active { background: var(--teal); transform: scaleY(1.35); }

/* Behance-style case study modules */
.case-study { padding: 0 0 4rem; background: var(--surface); border-top: 1px solid var(--line); }

.case-study-inner {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  padding: 2.5rem 0 1rem;
}

.project-overview {
  padding: 2rem 0 0.5rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.project-overview-text {
  max-width: 72ch;
}

.module-image img,
.module-split-item img,
.module-grid-item img {
  width: 100%;
  display: block;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.module-text-inner {
  max-width: 100%;
  text-align: left;
}

.module-rich h2,
.module-rich h3,
.module-rich h4 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  margin: 1rem 0 0.5rem;
  color: var(--ink);
}

.module-rich p { margin-bottom: 0.75rem; color: var(--muted); }
.module-rich ul, .module-rich ol { margin: 0.5rem 0 1rem 1.25rem; color: var(--muted); }
.module-rich strong { color: var(--ink); }

.module-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.split-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.module-grid-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.module-grid-inner.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.module-grid-inner.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.module-rich h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 0.5rem;
}

.module-rich h3 {
  font-size: 1.15rem;
  margin-top: 0.25rem;
}

@media (max-width: 900px) {
  .module-grid-inner.cols-4,
  .module-grid-inner.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .module-split-grid,
  .module-grid-inner,
  .module-grid-inner.cols-4,
  .module-grid-inner.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Legacy gallery strip */
.gallery-strip {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.gallery-strip img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}

.site-footer {
  padding: 3.5rem 0 0.85rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  text-align: left;
  margin-bottom: 2.5rem;
}

.footer-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.footer-tagline,
.footer-availability {
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-availability {
  margin-top: 0.5rem;
  color: var(--teal-dark);
  font-weight: 500;
}

.footer-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a[href*="linkedin.com"],
.footer-links a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a[href*="linkedin.com"] {
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM3 10h4V21H3V10zm6 0h3.8v1.6h.05c.53-1 1.84-2.1 3.79-2.1 4.05 0 4.8 2.67 4.8 6.14V21h-4v-5.4c0-1.29-.02-2.95-1.8-2.95-1.8 0-2.08 1.4-2.08 2.85V21H9V10z'/%3E%3C/svg%3E");
}

.footer-links a[href^="mailto:"] {
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.footer-links a[href*="linkedin.com"]::before,
.footer-links a[href^="mailto:"]::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}

.footer-copy {
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.2;
  color: #94a3b8;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .portfolio-nav-pill { padding-left: 0.85rem; }
  .portfolio-nav-brand { display: none; }
  .portfolio-project-nav-text { display: none; }
  .portfolio-project-nav {
    padding: 0.55rem 0.7rem;
    max-width: none;
  }
  .portfolio-project-nav.prev { left: 0.65rem; }
  .portfolio-project-nav.next { right: 0.65rem; }
}

@media (max-width: 960px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-panel { padding-block: 1rem; }
}

@media (max-width: 800px) {
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .project-grid { grid-template-columns: 1fr; }
}
