:root {
  --background: #edf2ec;
  --foreground: #0c1511;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --ink: #0c1511;
  --forest: #0f2a21;
  --evergreen: #0b3329;
  --moss: #6d8740;
  --sage: #b9c8ad;
  --signal: #d7ef4f;
  --muted: #65736b;
  --line: rgba(15, 42, 33, 0.14);
  --glass-line: rgba(255, 255, 255, 0.5);
  --shadow: 0 14px 38px rgba(12, 21, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(109, 135, 64, 0.38), transparent 34%),
    linear-gradient(135deg, #f8faf6 0%, #edf2ec 38%, #d9e3d6 100%);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

main {
  min-height: 100vh;
  overflow: hidden;
}

.section-shell {
  margin: 0 auto;
  max-width: 1160px;
  padding: 10px 18px;
  width: 100%;
}

.floating-panel {
  background: var(--panel);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(22px);
  background: rgba(244, 248, 242, 0.93);
  border-bottom: 1px solid rgba(15, 42, 33, 0.12);
  display: flex;
  gap: clamp(18px, 4vw, 52px);
  justify-content: space-between;
  left: 0;
  padding: 8px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: max-content;
}

.brand span {
  align-items: center;
  aspect-ratio: 1;
  background: var(--forest);
  border-radius: 10px;
  color: var(--signal);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 950;
  justify-content: center;
  width: 34px;
}

.brand strong {
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

nav {
  align-items: center;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

nav a {
  border: 1px solid rgba(15, 42, 33, 0.14);
  border-radius: 999px;
  color: #1f2d27;
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  font-weight: 950;
  letter-spacing: -0.01em;
  min-width: 110px;
  padding: 10px 18px;
  text-align: center;
}

nav a:hover {
  background: rgba(15, 42, 33, 0.08);
  color: var(--ink);
}

.nav-contact {
  background: var(--forest);
  color: #ffffff;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.92fr) minmax(160px, 0.25fr);
  padding-top: 8px;
}

.hero-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(241, 246, 239, 0.72)),
    var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 158px;
  padding: clamp(16px, 2.2vw, 24px);
}

.hero-photo {
  background: var(--forest);
  min-height: 158px;
  position: relative;
}

.hero-photo img,
.contact-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-caption {
  background: linear-gradient(180deg, transparent, rgba(12, 21, 17, 0.88));
  bottom: 0;
  color: #ffffff;
  display: grid;
  gap: 4px;
  left: 0;
  padding: 38px 12px 12px;
  position: absolute;
  right: 0;
}

.photo-caption span,
.work-meta span,
.reference-list small,
footer,
.contact-list span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.photo-caption span {
  color: #dce7dc;
}

.photo-caption strong {
  font-size: 0.76rem;
  line-height: 1.18;
}

.eyebrow {
  color: var(--moss);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(1.65rem, 3.15vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin-bottom: 9px;
  max-width: 610px;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.34rem, 2.2vw, 2.35rem);
  letter-spacing: -0.026em;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hero-text {
  color: #3d4d44;
  font-size: clamp(0.84rem, 1vw, 0.94rem);
  line-height: 1.35;
  margin-bottom: 12px;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.button {
  align-items: center;
  border: 1px solid var(--forest);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 950;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
}

.button.primary {
  background: var(--forest);
  color: #ffffff;
}

.button.primary:hover,
.nav-contact:hover {
  background: #1d4a38;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.66);
  color: var(--forest);
}

.button.secondary:hover {
  background: #ffffff;
}

.dashboard-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.56fr) minmax(240px, 0.46fr);
  padding-top: 0;
}

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

.metric {
  background: rgba(255, 255, 255, 0.74);
  min-height: 88px;
  padding: 13px;
}

.metric strong {
  color: var(--forest);
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 8px;
}

.metric span {
  color: #3a4b42;
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.22;
}

.metric-visual-card {
  background: rgba(255, 255, 255, 0.82);
  padding: 15px;
}

.metric-visual-card h2 {
  font-size: clamp(1.05rem, 1.45vw, 1.42rem);
  line-height: 1.03;
  margin-bottom: 12px;
}

.bar-list {
  display: grid;
  gap: 9px;
}

.bar-row {
  display: grid;
  gap: 5px;
}

.bar-row div {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.bar-row span {
  color: #4a5c52;
  font-size: 0.68rem;
  font-weight: 900;
}

.bar-row strong {
  color: var(--forest);
  font-size: 0.78rem;
  white-space: nowrap;
}

.bar-row i {
  background: rgba(15, 42, 33, 0.13);
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.bar-row i::after {
  background: linear-gradient(90deg, var(--forest), var(--moss), var(--signal));
  border-radius: inherit;
  content: "";
  display: block;
  height: 100%;
  width: var(--value);
}

.entity-card {
  background: linear-gradient(145deg, var(--forest), var(--evergreen));
  color: #ffffff;
  padding: 17px;
}

.entity-card .eyebrow {
  color: var(--signal);
}

.entity-card h2 {
  color: #ffffff;
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
  line-height: 1.06;
  margin-bottom: 13px;
}

.entity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.entity-list span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 7px 9px;
}

.built-section {
  display: grid;
  gap: 10px;
}

.built-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.built-card {
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.built-card:hover {
  border-color: rgba(15, 42, 33, 0.24);
  box-shadow: 0 14px 34px rgba(12, 21, 17, 0.16);
  transform: translateY(-2px);
}

.built-media {
  aspect-ratio: 16 / 8;
  background: rgba(15, 42, 33, 0.06);
  overflow: hidden;
}

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

.built-copy {
  display: grid;
  padding: 10px 12px 11px;
}

.built-copy .eyebrow {
  font-size: 0.58rem;
  margin-bottom: 5px;
}

.built-copy h3 {
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}

.built-copy .text-link {
  font-size: 0.72rem;
  margin-top: 8px;
}

.carousel-section {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 0.25fr 1fr;
}

.carousel-heading h2 {
  font-size: clamp(1.18rem, 1.8vw, 1.9rem);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 760px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.carousel-window {
  background: rgba(255, 255, 255, 0.62);
  padding: 9px;
}

.carousel-track {
  animation: carousel-scroll 34s linear infinite;
  display: flex;
  gap: 10px;
  width: max-content;
}

.carousel-window:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  flex: 0 0 235px;
  height: 180px;
  overflow: hidden;
  position: relative;
}

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

.earth-card img {
  object-fit: cover;
}

.carousel-caption {
  background: linear-gradient(180deg, transparent, rgba(12, 21, 17, 0.84));
  bottom: 0;
  color: #ffffff;
  display: grid;
  gap: 3px;
  left: 0;
  padding: 42px 12px 12px;
  position: absolute;
  right: 0;
}

.carousel-caption span {
  color: #d9e4d9;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.carousel-caption strong {
  font-size: 0.88rem;
  line-height: 1.08;
}

@keyframes carousel-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 5px));
  }
}

.split-intro {
  display: grid;
  gap: 12px;
  grid-template-columns: 0.72fr 1fr;
}

.split-intro .floating-panel {
  padding: 18px;
}

.prose-card p,
.proof-copy p {
  color: #3a4b42;
  font-size: 0.92rem;
  line-height: 1.48;
  margin-bottom: 0;
}

.work-grid,
.service-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.work-card,
.service-card {
  background: rgba(255, 255, 255, 0.76);
  padding: 17px;
}

.work-meta {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.work-meta strong {
  color: var(--moss);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.work-card h3,
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.work-card p,
.service-card p {
  color: #415249;
  font-size: 0.82rem;
  line-height: 1.4;
}

ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 11px 0 0;
  padding: 0;
}

li {
  color: #273730;
  font-size: 0.78rem;
  line-height: 1.35;
  padding-left: 16px;
  position: relative;
}

li::before {
  background: var(--moss);
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: 0.5em;
  width: 6px;
}

.text-link {
  color: var(--forest);
  display: inline-flex;
  font-weight: 950;
  margin-top: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.services-band {
  background: rgba(15, 42, 33, 0.05);
  border-block: 1px solid rgba(15, 42, 33, 0.1);
  margin-top: 10px;
}

.proof-section {
  background:
    linear-gradient(115deg, rgba(109, 135, 64, 0.8), rgba(15, 42, 33, 0.98) 48%),
    var(--forest);
  color: #ffffff;
  margin-top: 10px;
}

.proof-grid {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  padding-block: 34px;
}

.proof-copy .eyebrow {
  color: var(--signal);
}

.proof-copy h2 {
  color: #ffffff;
  margin-bottom: 12px;
}

.proof-copy p {
  color: #d8e3d8;
}

.reference-list {
  display: grid;
  gap: 9px;
}

.reference-list a {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
}

.reference-list a:hover {
  background: rgba(255, 255, 255, 0.13);
}

.reference-list span {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 950;
}

.reference-list small {
  color: #c8d6ce;
}

.contact-section {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
}

.contact-photo {
  min-height: 230px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.8);
  padding: clamp(20px, 3vw, 32px);
}

.contact-card h2 {
  margin-bottom: 16px;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.contact-list div {
  background: rgba(15, 42, 33, 0.05);
  border: 1px solid rgba(15, 42, 33, 0.09);
  border-radius: 12px;
  display: grid;
  gap: 3px;
  padding: 11px 13px;
}

.contact-list strong,
.contact-list a {
  color: var(--ink);
  font-size: clamp(0.86rem, 1.3vw, 1rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  padding: 16px 18px;
}

@media (max-width: 1020px) {
  .dashboard-grid,
  .carousel-section,
  .split-intro,
  .proof-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .metrics-grid,
  .built-list,
  .work-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  nav {
    justify-content: stretch;
    width: 100%;
  }

  nav a {
    flex: 1;
    font-size: 0.92rem;
    min-width: 0;
    padding: 9px 8px;
  }

  .section-shell {
    padding: 10px 12px;
  }

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

  .hero-panel {
    min-height: auto;
    padding: 22px;
  }

  .hero-photo {
    min-height: 240px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .metrics-grid,
  .built-list,
  .work-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .carousel-card {
    flex-basis: 218px;
    height: 168px;
  }

  .button {
    width: 100%;
  }
}

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

  .carousel-track {
    animation: none;
  }
}


/* v7 refinements */
.site-header {
  padding-block: 10px;
}

nav a {
  font-size: clamp(1.08rem, 1.35vw, 1.25rem);
  min-width: 118px;
  padding: 11px 20px;
}

.hero {
  align-items: start;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.42fr);
  padding-top: 10px;
}

.hero-panel {
  min-height: 174px;
}

.hero-photo-card {
  background: rgba(255,255,255,0.82);
  display: grid;
  overflow: hidden;
}

.hero-portrait {
  height: 185px;
  object-fit: cover;
  object-position: center 34%;
  width: 100%;
}

.hero-bio {
  display: grid;
  gap: 7px;
  padding: 12px 14px 14px;
}

.hero-bio p {
  color: #304139;
  font-size: 0.76rem;
  line-height: 1.38;
  margin: 0;
}

.hero-bio .bio-thread {
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1.3;
}

.dashboard-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  padding-bottom: 6px;
}

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

.metric {
  min-height: 76px;
  padding: 11px 13px;
}

.entity-strip {
  align-items: center;
  background: linear-gradient(135deg, var(--forest), var(--evergreen));
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 12px 14px;
}

.entity-strip h2 {
  color: #fff;
  font-size: clamp(1.02rem, 1.4vw, 1.42rem);
  margin: 0;
  white-space: nowrap;
}

.entity-logo-list {
  align-items: center;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.entity-logo-list a {
  align-items: center;
  background: #fffdf8;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 7px 10px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.entity-logo-list a:hover {
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

.entity-logo-list img {
  height: 30px;
  max-width: 200px;
  object-fit: contain;
  width: auto;
}

.metric-visual-card {
  padding: 14px;
}

.metric-visual-card h2 {
  margin-bottom: 10px;
}

.logic-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logic-metric {
  background: rgba(15,42,33,0.045);
  border: 1px solid rgba(15,42,33,0.08);
  border-radius: 13px;
  display: grid;
  gap: 6px;
  padding: 11px;
}

.logic-metric span {
  color: #4b5b52;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.logic-metric strong {
  color: var(--forest);
  font-size: clamp(1.05rem, 1.6vw, 1.48rem);
  letter-spacing: -0.04em;
  line-height: .95;
}

.logic-metric i {
  background: rgba(15,42,33,0.12);
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.logic-metric i::after {
  background: linear-gradient(90deg, var(--forest), var(--evergreen), var(--moss));
  border-radius: inherit;
  content: "";
  display: block;
  height: 100%;
  width: var(--value);
}

.logic-metric small {
  color: #526258;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.25;
}

.built-section {
  gap: 8px;
  padding-top: 2px;
}

.built-heading h2 {
  font-size: clamp(1.22rem, 1.7vw, 1.85rem);
}

.built-list {
  gap: 8px;
}

.built-card {
  border-radius: 13px;
}

.built-media {
  aspect-ratio: 16 / 6.4;
}

.built-copy {
  padding: 8px 10px 9px;
}

.built-copy h3 {
  font-size: 0.9rem;
}

.built-copy .text-link,
.built-copy .eyebrow {
  font-size: 0.56rem;
}

.carousel-section {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
  padding-top: 6px;
}

.carousel-heading p {
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.carousel-window {
  padding: 8px;
  width: 100%;
}

.carousel-track {
  animation-duration: 70s;
  gap: 9px;
}

.carousel-card {
  flex-basis: 255px;
  height: 192px;
}

.person-card img {
  object-fit: cover;
  object-position: center;
}

.person-card img[src*="brick-home"] {
  object-position: center 37%;
}

.person-card img[src*="subway-motion"] {
  object-position: center 42%;
}

.person-card img[src*="portrait-city"] {
  object-position: center 22%;
}

.person-card img[src*="conference-display"] {
  object-position: center 40%;
}

.split-intro {
  padding-top: 6px;
}

.proof-copy h2 {
  line-height: 1.02;
}

.contact-list .linkedin-button {
  align-items: center;
  background: var(--forest);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 950;
  justify-content: center;
  margin-top: 2px;
  padding: 10px 16px;
  text-decoration: none;
  width: fit-content;
}

.contact-list .linkedin-button:hover {
  background: #1d4a38;
}

.resume-body {
  background: linear-gradient(135deg, #f8faf6, #edf2ec);
}

.resume-main {
  overflow: visible;
}

.resume-shell {
  background: rgba(255,255,255,.9);
  margin: 24px auto 42px;
  max-width: 980px;
  padding: clamp(22px, 4vw, 48px);
}

.resume-top {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.resume-top h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  margin-bottom: 8px;
  max-width: none;
}

.resume-top p,
.resume-section p {
  color: #34443c;
  line-height: 1.5;
}

.resume-section {
  border-bottom: 1px solid rgba(15,42,33,.08);
  padding: 18px 0;
}

.resume-section:last-child {
  border-bottom: 0;
}

.resume-section h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.resume-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-tags span {
  background: rgba(15,42,33,.07);
  border: 1px solid rgba(15,42,33,.1);
  border-radius: 999px;
  color: var(--forest);
  font-size: .78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.resume-role {
  border-top: 1px solid rgba(15,42,33,.08);
  padding: 15px 0;
}

.resume-role:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.resume-role h3,
.resume-education h3 {
  font-size: 1rem;
  margin-bottom: 3px;
}

.resume-role p,
.resume-education p {
  color: var(--moss);
  font-size: .82rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.resume-role li {
  font-size: .86rem;
}

@media (max-width: 1020px) {
  .hero,
  .dashboard-grid,
  .carousel-section,
  .split-intro,
  .proof-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .entity-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .entity-logo-list {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  .metrics-grid,
  .logic-metrics,
  .built-list,
  .work-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    height: 240px;
  }

  .carousel-card {
    flex-basis: 232px;
    height: 176px;
  }

  .entity-logo-list img {
    max-width: 178px;
  }
}


/* v8 updates */
.hero-dashboard {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.66fr) minmax(280px, 0.34fr);
  padding-top: 10px;
}

.hero-left-stack {
  display: grid;
  gap: 12px;
}

.hero-title-compact {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 0.97;
  max-width: 720px;
}

.metrics-grid-compact {
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics-grid-compact .metric {
  min-height: 92px;
  padding: 12px 14px;
}

.metrics-grid-compact .metric strong {
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  margin-bottom: 6px;
}

.metrics-grid-compact .metric span {
  font-size: 0.76rem;
  line-height: 1.18;
}

.hero-photo-card {
  align-self: start;
  margin-top: 10px;
}

.hero-portrait-wrap {
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(237,242,236,.92));
  display: flex;
  justify-content: center;
  padding: 14px 14px 0;
}

.hero-portrait {
  background: rgba(255,255,255,.96);
  border-radius: 12px;
  height: 210px;
  object-fit: contain;
  object-position: center top;
  width: 100%;
}

.hero-bio-shifted {
  padding-top: 14px;
}

.hero-bio p {
  font-size: 0.82rem;
  line-height: 1.4;
}

.bio-thread {
  margin-top: 2px;
}

.institution-section-shell {
  display: grid;
  gap: 10px;
  padding-top: 0;
}

.interactive-entity {
  align-items: stretch;
  gap: 18px;
  overflow: hidden;
  padding: 14px 16px;
  transition: transform 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.interactive-entity .entity-strip-copy {
  min-width: 240px;
}

.interactive-entity .entity-logo-list {
  gap: 10px;
  justify-content: flex-start;
}

.interactive-entity .entity-logo-list a {
  min-height: 48px;
  padding: 9px 14px;
}

.interactive-entity .entity-logo-list img {
  height: 34px;
  max-width: 190px;
}

.interactive-entity.is-active,
.interactive-entity:hover {
  box-shadow: 0 20px 50px rgba(6, 22, 17, 0.32), inset 0 0 0 1px rgba(215,239,79,0.12);
  padding: 18px 18px;
  transform: translateY(-2px) scale(1.01);
}

.interactive-entity.is-active .entity-logo-list a,
.interactive-entity:hover .entity-logo-list a {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  transform: translateY(-1px) scale(1.03);
}

.interactive-entity.is-active .entity-logo-list img,
.interactive-entity:hover .entity-logo-list img {
  height: 38px;
}

.logic-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.built-copy h3 {
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
}

.built-button {
  align-items: center;
  background: var(--forest);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 950;
  justify-content: center;
  margin-top: 10px;
  min-height: 32px;
  padding: 7px 12px;
  text-decoration: none;
  width: fit-content;
}

.built-card:hover .built-button {
  background: #1d4a38;
}

.carousel-track {
  animation-duration: 60s;
}

.split-intro {
  display: none;
}

.resume-top h1 {
  font-size: clamp(1.7rem, 3.8vw, 3rem);
}

.resume-section ul {
  margin-top: 8px;
}

.resume-section li {
  font-size: 0.84rem;
}

@media (max-width: 1100px) {
  .hero-dashboard {
    grid-template-columns: 1fr;
  }

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

  .interactive-entity {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .metrics-grid-compact,
  .logic-metrics {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    height: 240px;
  }

  .interactive-entity .entity-logo-list a {
    width: 100%;
    justify-content: center;
  }
}


/* v9 image visibility updates */
.featured-card {
  flex-basis: 340px;
  height: 214px;
}

.featured-subway img {
  object-fit: cover;
  object-position: center 32%;
}

.featured-subway .carousel-caption {
  padding-top: 54px;
}

.resume-top-grid {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 180px;
}

.resume-top-copy p {
  margin-bottom: 0;
}

.resume-top-photo {
  background: rgba(15,42,33,.04);
  border: 1px solid rgba(15,42,33,.08);
  border-radius: 16px;
  overflow: hidden;
}

.resume-top-photo img {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center 25%;
  width: 100%;
}

@media (max-width: 720px) {
  .featured-card {
    flex-basis: 280px;
    height: 190px;
  }

  .resume-top-grid {
    grid-template-columns: 1fr;
  }

  .resume-top-photo {
    max-width: 220px;
  }
}


/* v10 bio and hover refinements */
.hero-bio-button-wrap {
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  justify-content: flex-start;
  padding: 12px 14px 0;
}

.bio-page-button {
  font-size: 0.84rem;
  min-height: 34px;
  padding: 7px 15px;
  width: fit-content;
}

.interactive-entity.is-active,
.interactive-entity:hover {
  box-shadow: 0 30px 78px rgba(6, 22, 17, 0.38), inset 0 0 0 1px rgba(215, 239, 79, 0.22);
  padding: 28px 24px;
  transform: translateY(-6px) scale(1.045);
}

.interactive-entity.is-active .entity-logo-list,
.interactive-entity:hover .entity-logo-list {
  gap: 16px;
}

.interactive-entity.is-active .entity-logo-list a,
.interactive-entity:hover .entity-logo-list a {
  min-height: 72px;
  padding: 15px 22px;
  transform: translateY(-2px) scale(1.08);
}

.interactive-entity.is-active .entity-logo-list img,
.interactive-entity:hover .entity-logo-list img {
  height: 52px;
  max-width: 260px;
}

.resume-top h1 {
  font-size: clamp(1.25rem, 2.35vw, 2rem) !important;
  line-height: 1.06;
}

.bio-body {
  background: linear-gradient(135deg, #f8faf6, #edf2ec);
}

.bio-main {
  overflow: visible;
}

.bio-shell {
  background: rgba(255, 255, 255, 0.9);
  margin: 24px auto 42px;
  max-width: 980px;
  padding: clamp(22px, 4vw, 44px);
}

.bio-top-grid {
  align-items: start;
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  grid-template-columns: 260px minmax(0, 1fr);
}

.bio-page-photo {
  background: rgba(15, 42, 33, 0.04);
  border: 1px solid rgba(15, 42, 33, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.bio-page-photo img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center 25%;
  width: 100%;
}

.bio-copy h1 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: 12px;
  max-width: none;
}

.bio-copy p {
  color: #304139;
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  line-height: 1.54;
  margin-bottom: 12px;
}

.education-logo-row {
  border-top: 1px solid rgba(15, 42, 33, 0.09);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
}

.education-logo-row img {
  background: #ffffff;
  border: 1px solid rgba(15, 42, 33, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(12, 21, 17, 0.08);
  height: 74px;
  object-fit: contain;
  padding: 8px 12px;
  width: auto;
}

@media (max-width: 720px) {
  .bio-top-grid {
    grid-template-columns: 1fr;
  }

  .bio-page-photo {
    max-width: 260px;
  }

  .education-logo-row img {
    height: auto;
    max-width: 100%;
    width: 100%;
  }

  .interactive-entity.is-active,
  .interactive-entity:hover {
    transform: translateY(-3px) scale(1.01);
  }
}


/* v11 bio-home cleanup and smoother institution expansion */
.hero-dashboard {
  align-items: start;
  gap: 10px;
  padding-bottom: 4px;
}

.hero-photo-card {
  margin-top: 0;
}

.hero-bio-button-wrap {
  justify-content: center;
  padding: 14px;
}

.bio-page-button {
  background: rgba(255,255,255,0.72);
  border-color: var(--forest);
  color: var(--forest);
  min-width: 150px;
}

.institution-section-shell {
  margin-top: -4px;
  padding-top: 0;
}

.interactive-entity {
  max-height: 148px;
  transition:
    max-height 420ms cubic-bezier(.2,.8,.2,1),
    padding 320ms ease,
    box-shadow 320ms ease,
    background 320ms ease;
  will-change: max-height, padding;
}

.interactive-entity .entity-logo-list {
  align-content: flex-start;
  max-height: 74px;
  overflow: hidden;
  transition: max-height 420ms cubic-bezier(.2,.8,.2,1), gap 320ms ease;
}

.interactive-entity .entity-logo-list a {
  transition: min-height 320ms ease, padding 320ms ease, transform 320ms ease, box-shadow 320ms ease;
}

.interactive-entity.is-active,
.interactive-entity:hover {
  max-height: 360px;
  padding: 30px 26px;
  transform: translateY(-2px);
}

.interactive-entity.is-active .entity-logo-list,
.interactive-entity:hover .entity-logo-list {
  max-height: 245px;
}

.interactive-entity.is-active .entity-logo-list a,
.interactive-entity:hover .entity-logo-list a {
  min-height: 78px;
  padding: 17px 24px;
  transform: translateY(-1px);
}

.interactive-entity.is-active .entity-logo-list img,
.interactive-entity:hover .entity-logo-list img {
  height: 56px;
  max-width: 280px;
}

.education-logo-row {
  align-items: center;
  gap: 16px;
}

.education-logo-row img {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 70px;
  max-width: min(100%, 470px);
  object-fit: contain;
  padding: 0;
}

.education-logo-row img[src*="fitchburg"] {
  height: 62px;
}

@media (max-width: 1100px) {
  .interactive-entity {
    max-height: 250px;
  }

  .interactive-entity.is-active,
  .interactive-entity:hover {
    max-height: 520px;
  }

  .interactive-entity .entity-logo-list,
  .interactive-entity.is-active .entity-logo-list,
  .interactive-entity:hover .entity-logo-list {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .education-logo-row img,
  .education-logo-row img[src*="fitchburg"] {
    height: auto;
    width: 100%;
  }
}


/* v12 institution-facing section redesign */
.institution-section-shell {
  gap: 12px;
  padding-top: 8px;
}

.institution-wall {
  --institution-glow: rgba(215, 239, 79, 0.22);
  background:
    radial-gradient(circle at 8% 0%, rgba(215, 239, 79, 0.15), transparent 32%),
    radial-gradient(circle at 96% 18%, rgba(185, 200, 173, 0.16), transparent 30%),
    linear-gradient(135deg, #061812 0%, #0a2f25 48%, #123f32 100%);
  border: 1px solid rgba(215, 239, 79, 0.18);
  color: #ffffff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 1fr);
  isolation: isolate;
  overflow: visible;
  padding: clamp(18px, 2.4vw, 28px);
  position: relative;
  transform: translateY(0) scale(1);
  transition:
    box-shadow 360ms cubic-bezier(.2,.8,.2,1),
    transform 360ms cubic-bezier(.2,.8,.2,1),
    border-color 360ms ease,
    background 360ms ease;
}

.institution-wall::before {
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.18), transparent);
  content: "";
  inset: -40% auto -40% -32%;
  opacity: 0.42;
  pointer-events: none;
  position: absolute;
  transform: rotate(8deg);
  transition: left 520ms cubic-bezier(.2,.8,.2,1), opacity 360ms ease;
  width: 42%;
  z-index: -1;
}

.institution-wall:hover,
.institution-wall:focus-within {
  border-color: rgba(215, 239, 79, 0.36);
  box-shadow:
    0 22px 70px rgba(6, 24, 18, 0.35),
    0 0 0 1px rgba(215, 239, 79, 0.08) inset,
    0 0 42px rgba(215, 239, 79, 0.08);
  transform: translateY(-2px) scale(1.006);
}

.institution-wall:hover::before,
.institution-wall:focus-within::before {
  left: 92%;
  opacity: 0.66;
}

.institution-wall-copy {
  align-self: center;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.institution-wall-copy .eyebrow {
  color: var(--signal);
  margin: 0;
}

.institution-wall-copy h2 {
  color: #ffffff;
  font-size: clamp(1.45rem, 2.1vw, 2.45rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
}

.institution-wall-copy p:not(.eyebrow) {
  color: rgba(244, 250, 240, 0.78);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.4;
  margin: 0;
  max-width: 340px;
}

.institution-logo-grid {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.institution-tile {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 244, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.74) inset;
  display: flex;
  justify-content: center;
  min-height: 82px;
  overflow: hidden;
  padding: 14px 16px;
  position: relative;
  transition:
    transform 260ms cubic-bezier(.2,.8,.2,1),
    box-shadow 260ms ease,
    border-color 260ms ease,
    min-height 260ms ease,
    background 260ms ease;
}

.institution-tile::after {
  background: linear-gradient(90deg, transparent, rgba(215, 239, 79, 0.18), transparent);
  content: "";
  inset: auto 16px 8px 16px;
  height: 3px;
  opacity: 0;
  position: absolute;
  transition: opacity 260ms ease;
}

.institution-tile img {
  display: block;
  filter: contrast(1.08) saturate(1.04);
  height: auto;
  max-height: 50px;
  max-width: 92%;
  object-fit: contain;
  transition: max-height 260ms ease, transform 260ms ease;
  width: auto;
}

.institution-tile.priority {
  min-height: 92px;
}

.institution-tile.priority img {
  max-height: 60px;
}

.institution-tile.wide {
  grid-column: span 2;
}

.institution-wall:hover .institution-tile,
.institution-wall:focus-within .institution-tile {
  min-height: 96px;
}

.institution-wall:hover .institution-tile.priority,
.institution-wall:focus-within .institution-tile.priority {
  min-height: 108px;
}

.institution-tile:hover,
.institution-tile:focus-visible {
  border-color: rgba(215, 239, 79, 0.72);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(215, 239, 79, 0.2) inset;
  transform: translateY(-5px) scale(1.025);
}

.institution-tile:hover::after,
.institution-tile:focus-visible::after {
  opacity: 1;
}

.institution-tile:hover img,
.institution-tile:focus-visible img {
  max-height: 66px;
  transform: scale(1.035);
}

.metric-visual-card {
  margin-top: 0;
}

@media (max-width: 1020px) {
  .institution-wall {
    grid-template-columns: 1fr;
  }

  .institution-wall-copy p:not(.eyebrow) {
    max-width: 720px;
  }

  .institution-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .institution-wall {
    border-radius: 20px;
    padding: 18px;
  }

  .institution-logo-grid {
    grid-template-columns: 1fr;
  }

  .institution-tile,
  .institution-tile.priority,
  .institution-wall:hover .institution-tile,
  .institution-wall:focus-within .institution-tile,
  .institution-wall:hover .institution-tile.priority,
  .institution-wall:focus-within .institution-tile.priority {
    min-height: 88px;
  }

  .institution-tile.wide {
    grid-column: auto;
  }
}


/* v13 institution logo additions and bio copy update */
.institution-logo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.institution-tile.partner-tile {
  background: #ffffff;
  min-height: 92px;
}

.institution-tile.partner-tile img {
  max-height: 64px;
  max-width: 96%;
}

.institution-tile.partner-tile.wide img {
  max-height: 54px;
}

.institution-tile[href*="creativehub"] img {
  max-height: 78px;
}

.institution-tile[href*="visionsinternships"] img {
  max-height: 46px;
}

.institution-wall:hover .institution-tile[href*="creativehub"] img,
.institution-wall:focus-within .institution-tile[href*="creativehub"] img {
  max-height: 88px;
}

.institution-wall:hover .institution-tile[href*="visionsinternships"] img,
.institution-wall:focus-within .institution-tile[href*="visionsinternships"] img {
  max-height: 58px;
}

.bio-copy p {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.56;
}

@media (max-width: 1180px) {
  .institution-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .institution-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .institution-logo-grid {
    grid-template-columns: 1fr;
  }
}

/* v14 bio copy and carousel cleanup */


/* v15: social thumbnail and simplified homepage sections. */


/* v16: mobile Safari carousel visibility fix
   On iPhone/Safari, the animated max-content track could fail to paint after layout changes.
   Mobile now uses a visible, swipeable carousel row with scroll snap while desktop keeps rotation. */
.carousel-section {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.carousel-window {
  min-height: 210px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (max-width: 760px) {
  .carousel-section {
    display: block !important;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .carousel-heading {
    display: block !important;
    margin: 0 0 10px !important;
    max-width: none;
  }

  .carousel-heading p {
    color: var(--forest);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    line-height: 1.2;
    margin: 0 0 8px;
    text-transform: uppercase;
  }

  .carousel-window {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    display: block !important;
    min-height: 232px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 100%;
  }

  .carousel-window::-webkit-scrollbar {
    display: none;
  }

  .carousel-track {
    animation: none !important;
    display: flex !important;
    gap: 10px;
    transform: none !important;
    width: max-content;
  }

  .carousel-card,
  .featured-card {
    border-radius: 16px;
    display: block !important;
    flex: 0 0 78vw !important;
    height: 210px !important;
    max-width: 315px;
    min-width: 250px;
    scroll-snap-align: start;
    visibility: visible !important;
  }

  .carousel-card img {
    display: block !important;
    height: 100% !important;
    object-fit: cover;
    width: 100% !important;
  }

  .earth-card img {
    object-fit: cover;
  }

  .carousel-caption {
    display: grid !important;
    padding: 54px 13px 13px;
  }
}

@media (max-width: 390px) {
  .carousel-card,
  .featured-card {
    flex-basis: 82vw !important;
    height: 196px !important;
    min-width: 238px;
  }
}


/* v17: header bio button, stronger bio CTA, larger institution logos, clearer built labels */
.site-header nav a[href="/bio.html"] {
  background: rgba(15, 42, 33, 0.08);
  border-color: rgba(15, 42, 33, 0.22);
  color: var(--forest);
}

.site-header nav a[href="/bio.html"]:hover {
  background: var(--forest);
  color: #ffffff;
}

.hero-bio-button-wrap {
  padding: 18px 14px 16px;
}

.bio-page-button {
  background: var(--forest) !important;
  border-color: var(--forest) !important;
  box-shadow: 0 12px 26px rgba(12, 21, 17, 0.18);
  color: #ffffff !important;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  min-height: 44px;
  min-width: 176px;
  padding: 11px 22px;
}

.bio-page-button:hover {
  background: #1d4a38 !important;
  transform: translateY(-1px);
}

/* Keep the institution bubbles the same size, but make the logos inside them larger and easier to spot. */
.institution-tile img {
  max-height: 64px;
  max-width: 98%;
}

.institution-tile.priority img {
  max-height: 72px;
}

.institution-tile.partner-tile img {
  max-height: 74px;
}

.institution-tile.partner-tile.wide img {
  max-height: 64px;
}

.institution-tile[href*="creativehub"] img {
  max-height: 84px;
}

.institution-tile[href*="visionsinternships"] img {
  max-height: 58px;
}

.institution-tile:hover img,
.institution-tile:focus-visible img {
  max-height: 76px;
}

.institution-wall:hover .institution-tile[href*="creativehub"] img,
.institution-wall:focus-within .institution-tile[href*="creativehub"] img {
  max-height: 90px;
}

.institution-wall:hover .institution-tile[href*="visionsinternships"] img,
.institution-wall:focus-within .institution-tile[href*="visionsinternships"] img {
  max-height: 66px;
}

.built-heading h2 {
  text-transform: none;
}

.built-copy .eyebrow {
  color: var(--moss);
  font-size: clamp(0.68rem, 0.92vw, 0.82rem) !important;
  letter-spacing: 0.035em;
  line-height: 1.18;
  margin-bottom: 7px;
}

@media (max-width: 720px) {
  .bio-page-button {
    width: 100%;
  }

  .institution-tile img,
  .institution-tile.priority img,
  .institution-tile.partner-tile img,
  .institution-tile.partner-tile.wide img {
    max-height: 72px;
  }

  .institution-tile[href*="creativehub"] img {
    max-height: 86px;
  }

  .institution-tile[href*="visionsinternships"] img {
    max-height: 62px;
  }
}


/* v18 admin analytics portal */
.admin-body {
  min-height: 100vh;
}

.admin-main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px 18px 58px;
}

.admin-hero {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  margin-bottom: 18px;
}

.admin-hero-card,
.admin-login-card,
.admin-panel {
  padding: clamp(20px, 4vw, 34px);
}

.admin-hero-card h1,
.admin-login-card h1 {
  font-size: clamp(2.05rem, 5vw, 4.4rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
  margin: 0 0 14px;
}

.admin-hero-card p,
.admin-login-card p,
.admin-note {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
}

.admin-status-card {
  background: linear-gradient(145deg, rgba(11, 51, 41, 0.97), rgba(15, 42, 33, 0.86));
  color: #f7fff4;
  display: grid;
  gap: 12px;
  padding: 22px;
}

.admin-status-card small {
  color: rgba(247, 255, 244, 0.72);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-status-card strong {
  display: block;
  font-size: 2.4rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.admin-login-card {
  margin: 26px auto;
  max-width: 650px;
}

.admin-login-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.admin-login-form label {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-login-form input {
  appearance: none;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 42, 33, 0.18);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  min-height: 52px;
  padding: 0 18px;
  width: 100%;
}

.admin-login-form input:focus {
  border-color: rgba(109, 135, 64, 0.82);
  box-shadow: 0 0 0 4px rgba(215, 239, 79, 0.24);
  outline: none;
}

.admin-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.admin-error {
  color: #9b2d20;
  font-weight: 800;
  margin-top: 12px;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-dashboard[hidden],
.admin-login-card[hidden] {
  display: none !important;
}

.admin-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metric-card {
  padding: 20px;
}

.admin-metric-card small {
  color: var(--muted);
  display: block;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.admin-metric-card strong {
  display: block;
  font-size: clamp(2.05rem, 4vw, 3.2rem);
  letter-spacing: -0.08em;
  line-height: 1;
}

.admin-metric-card span {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  line-height: 1.4;
  margin-top: 10px;
}

.admin-two-col {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.admin-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 0 0 16px;
}

.admin-chart {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.admin-chart-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 82px minmax(0, 1fr) 58px;
}

.admin-chart-date,
.admin-chart-value {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-bar-track {
  background: rgba(15, 42, 33, 0.08);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.admin-bar-fill {
  background: linear-gradient(90deg, var(--evergreen), var(--moss), var(--signal));
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 8px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 100%;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(15, 42, 33, 0.1);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-table td {
  font-size: 0.93rem;
  line-height: 1.35;
}

.admin-table td:nth-child(2),
.admin-table td:nth-child(3) {
  font-weight: 850;
}

.admin-feed {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.admin-feed li {
  align-items: start;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 42, 33, 0.08);
  border-radius: 15px;
  display: grid;
  gap: 4px;
  list-style: none;
  padding: 12px 13px;
}

.admin-feed time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-feed strong {
  color: var(--forest);
  font-size: 0.96rem;
}

.admin-feed span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  word-break: break-word;
}

.admin-hidden-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .admin-hero,
  .admin-two-col,
  .admin-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding-top: 22px;
  }
}

@media (max-width: 620px) {
  .admin-chart-row {
    grid-template-columns: 72px minmax(0, 1fr) 44px;
  }

  .admin-actions .button {
    width: 100%;
  }
}


/* v19: tutoring, education, and intellectual stimulation sections */
.education-strip,
.tutoring-strip,
.intellectual-strip {
  margin-top: 8px;
}

.skinny-panel {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto;
  min-height: 128px;
  padding: clamp(18px, 2.5vw, 28px);
}

.skinny-panel h2,
.skinny-panel h3 {
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.skinny-panel p {
  color: var(--muted);
  font-size: clamp(0.93rem, 1.15vw, 1.04rem);
  line-height: 1.55;
  margin: 0;
}

.education-panel {
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
}

.education-items {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.education-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(15, 42, 33, 0.11);
  border-radius: 15px;
  display: grid;
  gap: 12px;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 96px;
  padding: 12px 14px;
}

.education-item img {
  max-height: 62px;
  max-width: 108px;
  object-fit: contain;
  width: 100%;
}

.education-item strong {
  color: var(--ink);
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  line-height: 1.22;
}

.education-item span {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 3px;
}

.tutoring-panel {
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.78fr) auto;
}

.tutoring-strip-images {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tutoring-strip-images img {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.strip-actions {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.intellectual-panel {
  grid-template-columns: minmax(230px, 0.5fr) minmax(0, 1.15fr) auto;
}

.intellectual-mini-window {
  overflow: hidden;
}

.intellectual-mini-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: intellectual-scroll 28s linear infinite;
}

.intellectual-mini-card {
  background: #0b3329;
  border-radius: 16px;
  min-width: 236px;
  overflow: hidden;
  position: relative;
}

.intellectual-mini-card img {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.intellectual-mini-card span {
  background: linear-gradient(180deg, transparent, rgba(12, 21, 17, 0.9));
  bottom: 0;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  left: 0;
  letter-spacing: -0.01em;
  padding: 36px 12px 10px;
  position: absolute;
  right: 0;
}

@keyframes intellectual-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 6px)); }
}

.interior-page-main {
  padding: 18px 18px 42px;
}

.interior-shell {
  margin: 0 auto;
  max-width: 1160px;
  padding: clamp(18px, 3vw, 30px);
}

.interior-hero {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
}

.interior-hero-copy,
.interior-card,
.tutoring-gallery-card,
.video-gallery-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 42, 33, 0.11);
  border-radius: 18px;
  padding: clamp(18px, 2.5vw, 28px);
}

.interior-hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 4.1rem);
  letter-spacing: -0.065em;
  line-height: 0.94;
  margin: 0 0 14px;
}

.interior-hero-copy p,
.interior-card p,
.video-page-caption p {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  margin: 0;
}

.interior-hero-image img {
  border-radius: 18px;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  width: 100%;
}

.interior-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.interior-card h2,
.tutoring-gallery-card h2,
.video-gallery-card h2 {
  font-size: clamp(1.18rem, 1.8vw, 1.52rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 10px;
}

.tutoring-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tutoring-chip-list span {
  background: rgba(15, 42, 33, 0.08);
  border: 1px solid rgba(15, 42, 33, 0.12);
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 8px 11px;
}

.tutoring-photo-grid,
.tutoring-tech-grid,
.video-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.tutoring-photo-grid img,
.tutoring-tech-grid img,
.video-card img {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
  width: 100%;
}

.tutoring-tech-grid img {
  background: #ffffff;
  object-fit: contain;
}

.tutoring-page-section,
.video-page-section {
  margin-top: 16px;
}

.video-page-title h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 12px;
}

.video-page-caption {
  max-width: 920px;
}

.video-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 42, 33, 0.11);
  border-radius: 18px;
  overflow: hidden;
}

.video-card-copy {
  padding: 14px 15px 16px;
}

.video-card-copy h2 {
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin: 0 0 6px;
}

.video-card-copy p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

.video-note {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 800;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .skinny-panel,
  .education-panel,
  .tutoring-panel,
  .intellectual-panel,
  .interior-hero {
    grid-template-columns: 1fr;
  }

  .strip-actions {
    justify-content: flex-start;
  }

  .education-items,
  .interior-grid,
  .tutoring-photo-grid,
  .tutoring-tech-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .intellectual-mini-window {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .intellectual-mini-track {
    animation: none;
  }
}

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

  .tutoring-strip-images {
    grid-template-columns: 1fr 1fr;
  }

  .intellectual-mini-card {
    min-width: 210px;
  }

  .interior-hero-copy h1 {
    font-size: clamp(1.8rem, 12vw, 3rem);
  }
}


/* v20 intellectual stimulation live link updates */
.intellectual-mini-card img[src^="https://img.youtube.com"] {
  background: #0b3329;
}

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

.intellectual-link-card {
  color: inherit;
  display: block;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.intellectual-link-card:hover,
.intellectual-link-card:focus-visible {
  border-color: rgba(15, 42, 33, 0.28);
  box-shadow: 0 18px 46px rgba(15, 42, 33, 0.14);
  transform: translateY(-3px);
}

.video-thumb-wrap {
  background: #0b3329;
  position: relative;
}

.video-thumb-wrap img {
  display: block;
}

.play-badge {
  align-items: center;
  background: rgba(246, 243, 233, 0.92);
  border: 1px solid rgba(15, 42, 33, 0.12);
  border-radius: 999px;
  color: #123b30;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  left: 14px;
  position: absolute;
  top: 14px;
  width: 42px;
}

.survey-badge {
  font-size: 1.15rem;
}

.video-label {
  color: var(--moss) !important;
  font-size: 0.76rem !important;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
  text-transform: uppercase;
}

.video-open-text {
  color: var(--forest);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 950;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .video-grid.intellectual-video-grid {
    grid-template-columns: 1fr;
  }
}


/* v21: tighter education/tutoring sections, larger intellectual carousel, smaller intellectual page thumbnails, refined bio card */
.hero-photo-card {
  background: linear-gradient(145deg, rgba(15, 42, 33, 0.96), rgba(91, 120, 76, 0.86));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 58px rgba(12, 21, 17, 0.22);
  padding: 9px;
}

.hero-portrait-wrap {
  background: rgba(246, 243, 233, 0.18);
  border-radius: 18px 18px 10px 10px;
  overflow: hidden;
}

.hero-portrait {
  height: 245px;
  object-fit: cover;
  object-position: center 30%;
  width: 100%;
}

.hero-bio-button-wrap {
  background: rgba(246, 243, 233, 0.12);
  border-radius: 0 0 18px 18px;
  padding: 14px 14px 16px;
}

.bio-page-button {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

/* Institutional Education: slimmer strip, no secondary label, stronger logos. */
.education-strip {
  margin-top: 2px;
  padding-bottom: 3px;
  padding-top: 3px;
}

.education-panel.skinny-panel,
.education-panel {
  gap: 12px;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  min-height: 64px;
  padding: 8px 14px;
}

.education-panel h2 {
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.02;
}

.education-items {
  gap: 8px;
}

.education-item {
  border-radius: 13px;
  gap: 10px;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 64px;
  padding: 6px 10px;
}

.education-item img {
  max-height: 72px;
  max-width: 116px;
}

.education-item strong {
  font-size: 0.9rem;
  line-height: 1.1;
}

.education-item span {
  font-size: 0.78rem;
  line-height: 1.22;
  margin-top: 2px;
}

/* Tutoring strip: one-third smaller feel while keeping photo presence. */
.tutoring-strip {
  margin-top: 3px;
  padding-bottom: 5px;
  padding-top: 5px;
}

.tutoring-panel.skinny-panel,
.tutoring-panel {
  gap: 12px;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.78fr) auto;
  min-height: 88px;
  padding: 12px 16px;
}

.tutoring-panel h2 {
  font-size: clamp(1rem, 1.45vw, 1.34rem);
  line-height: 1.03;
}

.tutoring-panel .eyebrow {
  font-size: 0.66rem;
  margin-bottom: 5px;
}

.tutoring-strip-images img {
  min-height: 104px;
}

/* Intellectual Stimulation home section now mirrors the rotating proof carousel scale. */
.intellectual-strip {
  margin-top: 8px;
  padding-bottom: 10px;
  padding-top: 10px;
}

.intellectual-panel {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 0.25fr 1fr auto;
  min-height: 226px;
  padding: 10px;
}

.intellectual-panel-copy h2 {
  color: var(--forest);
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.intellectual-mini-window {
  background: rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  min-height: 210px;
  overflow: hidden;
  padding: 8px;
  width: 100%;
}

.intellectual-mini-track {
  gap: 9px;
  height: 192px;
  animation-duration: 70s;
}

.intellectual-mini-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  flex: 0 0 255px;
  height: 192px;
  min-width: 255px;
}

.intellectual-mini-card img {
  aspect-ratio: auto;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.intellectual-mini-card span {
  display: none !important;
}

.intellectual-actions .button {
  white-space: nowrap;
}

/* Intellectual Stimulation page: personality tests first and all thumbnails reduced. */
.video-grid.intellectual-video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intellectual-video-grid .video-thumb-wrap img {
  aspect-ratio: 16 / 9;
  height: 118px;
  object-fit: cover;
}

.intellectual-video-grid .video-card-copy {
  padding: 11px 12px 13px;
}

.intellectual-video-grid .video-card-copy h2 {
  font-size: 0.98rem;
}

.intellectual-video-grid .video-card-copy p:not(.video-label) {
  font-size: 0.82rem;
  line-height: 1.36;
}

.intellectual-video-grid .video-open-text {
  font-size: 0.76rem;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .education-panel.skinny-panel,
  .education-panel,
  .tutoring-panel.skinny-panel,
  .tutoring-panel,
  .intellectual-panel {
    grid-template-columns: 1fr;
  }

  .education-item {
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .education-items {
    grid-template-columns: 1fr;
  }

  .intellectual-mini-window {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .intellectual-mini-track {
    animation: none !important;
    width: max-content;
  }

  .intellectual-mini-card {
    flex: 0 0 78vw;
    max-width: 315px;
    min-width: 250px;
    scroll-snap-align: start;
  }

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

@media (max-width: 640px) {
  .hero-portrait {
    height: 280px;
  }

  .education-panel.skinny-panel,
  .education-panel {
    padding: 10px;
  }

  .education-item img {
    max-height: 66px;
  }

  .tutoring-strip-images img {
    min-height: 92px;
  }

  .video-grid.intellectual-video-grid {
    grid-template-columns: 1fr;
  }

  .intellectual-video-grid .video-thumb-wrap img {
    height: 104px;
  }
}

/* v22 admin storage status */
.admin-storage-warning {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(186, 141, 86, 0.35);
  background: rgba(250, 240, 222, 0.88);
  color: #38493f;
  font-weight: 700;
  line-height: 1.45;
}


/* v25: education copy/logos, full page navigation highlighting, less-cropped hero photo, tutoring copy, and carousel fixes */
.site-header nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-header nav a[aria-current="page"],
.site-header nav a.active-nav {
  background: var(--forest) !important;
  border-color: var(--forest) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(12, 21, 17, 0.14);
}

.site-header nav a[aria-current="page"]:hover,
.site-header nav a.active-nav:hover {
  background: #1d4a38 !important;
  color: #ffffff !important;
}

/* Keep the hero image fully visible instead of zoomed/cropped. */
.hero-portrait-wrap {
  align-items: center;
  background: linear-gradient(145deg, rgba(246, 243, 233, 0.28), rgba(215, 239, 79, 0.08));
  display: flex;
  justify-content: center;
}

.hero-portrait {
  background: rgba(246, 243, 233, 0.35);
  height: 245px !important;
  object-fit: contain !important;
  object-position: center center !important;
  width: 100%;
}

/* Institutional Education: keep same bubbles, enlarge logos inside. */
.education-item {
  overflow: visible;
}

.education-item img {
  object-fit: contain;
  transform-origin: center center;
}

.education-item img[src*="clark"] {
  max-height: 78px !important;
  max-width: 132px !important;
  transform: scale(1.25);
}

.education-item img[src*="fitchburg"] {
  max-height: 92px !important;
  max-width: 160px !important;
  transform: scale(1.72);
}

.education-item span {
  font-size: 0.8rem;
}

/* Keep personality test thumbnails readable in the home carousel. */
.intellectual-mini-card img[src*="thumb-bigfive"],
.intellectual-mini-card img[src*="thumb-personality"] {
  background: #ffffff;
  object-fit: contain !important;
  padding: 8px;
}

/* Make the intellectual stimulation CTA match the filled button style. */
.intellectual-actions .button,
.intellectual-actions .button.secondary {
  background: var(--forest) !important;
  border-color: var(--forest) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(12, 21, 17, 0.16);
}

.intellectual-actions .button:hover,
.intellectual-actions .button.secondary:hover {
  background: #1d4a38 !important;
  color: #ffffff !important;
}

@media (max-width: 760px) {
  .site-header nav {
    justify-content: flex-start;
  }

  .site-header nav a {
    font-size: 0.86rem;
    padding: 8px 12px;
  }
}

@media (max-width: 640px) {
  .hero-portrait {
    height: 280px !important;
  }

  .education-item img[src*="clark"] {
    transform: scale(1.12);
  }

  .education-item img[src*="fitchburg"] {
    transform: scale(1.36);
  }
}

/* v25 nav reset: Bio should not look selected unless it is the current page. */
.site-header nav a[href="/bio.html"]:not([aria-current="page"]):not(.active-nav) {
  background: rgba(255, 255, 255, 0.52) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
  color: var(--forest) !important;
}

.site-header nav a[href="/bio.html"]:not([aria-current="page"]):not(.active-nav):hover {
  background: var(--forest) !important;
  color: #ffffff !important;
}


/* v26: remove Intellectual from header nav in HTML; tighten Institutional Education layout without changing logo scale. */
.education-panel.skinny-panel,
.education-panel {
  gap: 8px !important;
  grid-template-columns: minmax(130px, 0.22fr) minmax(0, 1fr) !important;
}

.education-panel h2 {
  max-width: 150px;
}

.education-items {
  align-items: center;
  display: grid;
  gap: 8px !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) !important;
  min-width: 0;
}

.education-item {
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.education-item:first-child {
  grid-template-columns: 168px minmax(0, 1fr) !important;
}

.education-item:nth-child(2) {
  grid-template-columns: 274px minmax(0, 1fr) !important;
}

.education-item img {
  justify-self: center;
}

.education-item div {
  min-width: 0;
}

.education-item strong,
.education-item span {
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .education-panel.skinny-panel,
  .education-panel {
    grid-template-columns: 1fr !important;
  }

  .education-panel h2 {
    max-width: none;
  }

  .education-items {
    grid-template-columns: 1fr !important;
  }

  .education-item:first-child,
  .education-item:nth-child(2) {
    grid-template-columns: 190px minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .education-item:first-child,
  .education-item:nth-child(2) {
    grid-template-columns: 145px minmax(0, 1fr) !important;
  }
}


/* v27: mobile-only Institutional Education fix so the Fitchburg logo does not overlap text. Desktop remains unchanged. */
@media (max-width: 640px) {
  .education-item:nth-child(2) {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    align-items: start !important;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .education-item:nth-child(2) img[src*="fitchburg"] {
    justify-self: start !important;
    transform-origin: left center !important;
    max-width: 160px !important;
  }

  .education-item:nth-child(2) div {
    width: 100%;
  }
}
