/* ============================================================
   GLOBAL STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #F5F0E8;
  --nav-green: #2C4A3E;
  --nav-green-dark: #213830;
  --accent-green: #3D6357;
  --text-dark: #1E2B27;
  --text-mid: #4A5550;
  --text-light: #7A8A84;
  --card-bg: #FDFAF4;
  --border: #DDD8CC;
  --white: #FFFFFF;
  --tan-light: #F9F5EC;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 4px 20px rgba(44, 74, 62, 0.10);
  --shadow-card: 0 2px 12px rgba(44, 74, 62, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 400; }

p {
  font-family: var(--font-body);
  color: var(--text-mid);
  margin-bottom: 1rem;
  font-size: 0.975rem;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--nav-green);
}

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

/* ============================================================
   NAV BAR
   ============================================================ */

.navbar {
  background-color: var(--nav-green);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.navbar__logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar__brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-decoration: none;
  margin-left: 0.65rem;
  margin-right: auto;
  min-width: 0;
}

.navbar__logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: none;
}

.navbar__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.navbar__name {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.97);
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.15;
}

.navbar__title {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  list-style: none;
}

.navbar__links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition: background 0.18s, color 0.18s;
}

.navbar__links a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.navbar__links a:visited {
  color: rgba(200, 220, 210, 0.78);
}

.navbar__links a:visited:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.navbar__links a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.navbar__linkedin-icon {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.5rem !important;
  border-radius: 50% !important;
}

.navbar__linkedin-icon svg {
  display: block;
}

/* Mobile hamburger */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.775rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  background-color: var(--bg);
  letter-spacing: 0.02em;
}

.site-footer__logo {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  display: block;
}

.site-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-footer__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.01em;
  line-height: 1.2;
  display: block;
}

.site-footer__role {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-light);
  display: block;
  margin-top: 0.2rem;
  margin-bottom: 0.85rem;
}

.site-footer__ai {
  font-size: 0.7rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.site-footer__credit {
  font-size: 0.7rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  border: none;
}

.btn--primary {
  background-color: var(--nav-green);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--nav-green-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(44,74,62,0.3);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--nav-green);
  border: 2px solid var(--nav-green);
}

.btn--outline:hover {
  background: var(--nav-green);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   PAGE WRAPPER / CONTAINER
   ============================================================ */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-section {
  padding: 4rem 0;
}

/* ============================================================
   BACK TO PORTFOLIO NAV
   ============================================================ */

.back-nav {
  background-color: var(--bg);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nav-green);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: gap 0.2s, color 0.2s;
}

.back-link:hover {
  color: var(--accent-green);
  gap: 0.6rem;
}

/* Bottom "Back to Portfolio" on project pages */
.back-bottom {
  text-align: center;
  padding: 0.5rem 1.5rem 3.5rem;
}

.back-link::before {
  content: '←';
  font-size: 1rem;
}

/* ============================================================
   INDEX — HERO / ABOUT
   ============================================================ */

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

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

.hero__photo {
  padding-top: 5.75rem;
}

.hero__text h1 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero__text p {
  font-size: 0.975rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-green);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.hero__linkedin:hover {
  color: var(--nav-green);
}

.hero__photo-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.hero__badge {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.hero__linkedin svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Single pre-composited photo+frame image */
.hero__photo {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.hero__photo-wrap {
  width: 460px;
  max-width: 100%;
}

.hero__photo-wrap img.photo-base {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */

.portfolio-header {
  padding: 3.5rem 0 1rem;
  text-align: center;
}

.portfolio-header h1 {
  margin-bottom: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  padding: 2.5rem 0 5rem;
}

/* 3D card flip */
.card-flip {
  perspective: 1200px;
  cursor: pointer;
  height: 300px;
}

.card-flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
  .card-flip:hover .card-flip__inner {
    transform: rotateY(-180deg);
  }
}

.card-flip.flipped .card-flip__inner {
  transform: rotateY(-180deg);
}

.card-flip__front,
.card-flip__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card-flip__front {
  background: var(--card-bg);
}

.card-flip__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Teacup card: always keep the image's blue framing the brown (no edge crop) */
.card-flip__front.front--teacup {
  background: #8AAAB8;
}

.card-flip__front.front--teacup img {
  object-fit: contain;
}

.card-flip__back {
  background: var(--card-bg);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 1.25rem 1.25rem 1.25rem;
  border: 1px solid var(--border);
}

.card-flip__back h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.card-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  width: 100%;
}

.card-cta {
  margin-top: auto;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--nav-green);
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}

.card-cta:hover {
  background: var(--nav-green-dark);
  color: #fff;
}

/* ── Tags ─────────────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  border: 1.5px solid var(--accent-green);
  color: var(--accent-green);
  background: transparent;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: center;
}

/* Card tags — fill columns, wrap to two lines, vertically centered */
.card-tags .tag {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  padding: 0.15rem 0.45rem;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

/* ── Skills section ───────────────────────────────────────────────────────── */
.skills-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.skills-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  padding-left: 2.5rem;
}

.skills-badge {
  width: 360px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  justify-self: center;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.skills-text {
  text-align: left;
}

.skills-text p {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.skills-text .skills-lead {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-dark);
}

.skills-text a {
  color: var(--nav-green);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */

.thanks-section {
  padding: 6rem 0 5rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.thanks-section__icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 2rem;
}

.thanks-section__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thanks-section h1 {
  margin-bottom: 0.25rem;
}

.thanks-section p {
  font-size: 0.975rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-section {
  padding: 4rem 0 5rem;
  max-width: 640px;
  margin: 0 auto;
}

.contact-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-section__header h1 {
  margin-bottom: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(61, 99, 87, 0.12);
}

.form-group textarea {
  min-height: 160px;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--nav-green);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.linkedin-link:hover {
  background: var(--nav-green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.linkedin-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   PROJECT PAGES
   ============================================================ */

/* Smaller hero — contained, not full bleed */
.project-hero {
  padding: 2rem 0 0;
}

.project-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.project-hero__inner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Centered project intro */
.project-intro {
  padding: 2rem 0 0;
  text-align: center;
}

.project-intro h1 {
  margin-bottom: 0.75rem;
}

.project-tags .tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.75rem auto 0;
  max-width: 760px;
  padding: 0 1.5rem;
}

.project-intro .btn {
  margin-top: 1rem;
  display: inline-block;
}

.project-subtitle-dev {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.project-note {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.project-divider {
  width: 60px;
  height: 3px;
  background: var(--accent-green);
  margin: 1rem auto;
  border-radius: 2px;
}

.case-study {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.case-study-section {
  margin-bottom: 3.5rem;
}

.case-study-section__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
}

.case-study-section__header h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.25;
}

.case-study-section p {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--text-mid);
}

.media-block {
  margin: 1.75rem 0;
}

.media-pair {
  display: flex;
  gap: 1.25rem;
  margin: 1.75rem 0;
  align-items: flex-start;
}

.media-pair__item {
  flex: 1;
}

.media-pair--equal .media-pair__item img {
  height: 500px;
  object-fit: cover;
  object-position: top;
}

.case-video {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.case-image {
  width: 80%;
  margin: 0 auto;
  border-radius: 12px;
  display: block;
}

.media-caption {
  font-size: 0.825rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

.screenshot-placeholder {
  margin-left: 96px;
  width: calc(100% - 96px);
  height: 300px;
  background: var(--border);
  border-radius: 6px;
  margin: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__photo {
    order: -1;
    padding-top: 0;
  }

  .hero__photo-wrap {
    width: 300px;
  }
}

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

  .navbar {
    padding: 0.5rem 1rem;
    position: relative;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--nav-green-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 180px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    border-radius: 0 0 6px 6px;
    z-index: 100;
    padding: 0.5rem 0;
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__links li {
    width: 100%;
  }

  .navbar__links a {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    display: block;
  }

  .navbar {
    padding: 0 1rem;
    height: 56px;
  }

  .navbar__brand-text {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
  }

  .navbar__name {
    font-size: 1.1rem;
    line-height: 1;
  }

  .navbar__name::after {
    content: ' |';
    color: rgba(255,255,255,0.35);
    font-family: var(--font-body);
    font-size: 0.9rem;
  }

  .navbar__title {
    font-size: 0.46rem;
    letter-spacing: 0.04em;
  }

  .navbar__logo {
    width: 34px;
    height: 34px;
  }

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

  .project-hero__inner img {
    height: 200px;
  }

  .case-study {
    padding: 2rem 1rem 4rem;
  }

  .skills-section {
    padding: 1rem 0 1.5rem;
  }

  .skills-inner {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    padding: 0;
    gap: 1rem;
  }

  /* #1 — vertically center "Learning Designer" beside the name */
  .navbar__brand-text {
    align-items: center;
  }

  .navbar__title {
    line-height: 1;
    position: relative;
    top: 1px;
  }

  /* #5 — LinkedIn becomes a full menu item with icon + label, left-aligned */
  .navbar__links a.navbar__linkedin-icon {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 1rem 1.5rem !important;
    border-radius: 0 !important;
  }

  .navbar__linkedin-icon::after {
    content: 'LinkedIn';
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.85);
  }

  /* #2 — project titles shrink and wrap instead of clipping */
  .project-intro h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  /* #3 — project tags stack two-by-two like the card backs */
  .project-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    max-width: 340px;
    padding: 0 1rem;
  }

  .project-tags .tag {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  /* #4 — About-page skills in two neat columns */
  .skills-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .skills-tags .tag {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  /* #6 — taller cards so tags never overlap the View Project button */
  .card-flip {
    height: 330px;
  }

  /* Any remaining side-by-side image pairs stack vertically on mobile */
  .media-pair {
    flex-direction: column;
  }

  /* Footer credit lines: shrink to fit on a single line each */
  .site-footer__ai,
  .site-footer__credit {
    white-space: nowrap;
    font-size: 2.7vw;
  }

  /* #8 — show whole Student Support Finder image, fill with its purple */
  .card-flip__front.front--ssf {
    background: #7B6B9B;
  }

  .card-flip__front.front--ssf img {
    object-fit: contain;
  }
}
